Skip to content

How are you applying effects like PitchBend to the tracks? #317

Closed Answered by ryohey
corysimmons asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @corysimmons, The pitch is changed by changing the playback speed of the sample. The synthesizer code is implemented in the wavelet package. This code changes the playback speed of the sample according to the pitch bend value. The samples are PCM data, that is, an array of amplitudes. If you advance the index of the array one at a time, the pitch is the same as the PCM data, but if you advance the index two at a time, for example, the pitch is an octave higher. This means that the pitch bend value is converted to the size of the index advancement.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@corysimmons
Comment options

@ryohey
Comment options

@corysimmons
Comment options

Answer selected by corysimmons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants