Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sound.pitch not implemented #859

Closed
ZeWaka opened this issue Oct 25, 2022 · 1 comment
Closed

/sound.pitch not implemented #859

ZeWaka opened this issue Oct 25, 2022 · 1 comment
Labels
Runtime Involves the OpenDream server/runtime v515 Features and changes introduced in BYOND/DM v515

Comments

@ZeWaka
Copy link
Collaborator

ZeWaka commented Oct 25, 2022

Can be used to shift the pitch of a sound up or down. This works similarly to frequency except that it doesn't impact playback speed.
The value of this var should be a multiple relative to 1, so for instance to go up a full octave, the value would be 2; to go down an octave, use 0.5.

Potential way to improve upon BYOND's impl:

The filter that handles pitch shifting only goes from 0.5 to 2. The player will stack up to three filters if it has to, so the range is really from 0.125 to 8. You will however hear much poorer quality at more extreme values.

https://www.byond.com/docs/ref/#/sound/var/pitch

@ZeWaka ZeWaka added Runtime Involves the OpenDream server/runtime v515 Features and changes introduced in BYOND/DM v515 labels Oct 25, 2022
@amylizzle
Copy link
Collaborator

Closed in favour of #2194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Runtime Involves the OpenDream server/runtime v515 Features and changes introduced in BYOND/DM v515
Projects
None yet
Development

No branches or pull requests

2 participants