back to list

Midi Pitch Bend Question

🔗Jeremy Hunt <jrmy@berkeley.edu>

10/18/2005 10:52:48 AM

Hi All,

I am using the Max programing environment to work in some different tuning systems, etc. and there is an object that makes fluidsynth available. In order to engage the LSB of the pitch bend message it says I must use a decimal argument. So normally I send it the message "bend pbv ch" where pbv is the pitch bend value and ch is the channel. So, as usual, with the MSB the value ranges from +/- 64 with 64 being no change. With the decimal added it can take values such as 64.09. My question is this: what is the conversion operation I would need to translate this kinky decimal arrangement to a cents value and visa versa? Would it involve converting base 2 to base 10? I am at a loss.

Thanks in advance,

Jeremy Hunt

🔗Gene Ward Smith <gwsmith@svpal.org>

10/18/2005 11:40:38 AM

--- In tuning-math@yahoogroups.com, Jeremy Hunt <jrmy@b...> wrote:
>
> Hi All,
>
> I am using the Max programing environment to work in some different
> tuning systems, etc. and there is an object that makes fluidsynth
> available. In order to engage the LSB of the pitch bend message it
> says I must use a decimal argument. So normally I send it the message
> "bend pbv ch" where pbv is the pitch bend value and ch is the channel.
> So, as usual, with the MSB the value ranges from +/- 64 with 64 being
> no change. With the decimal added it can take values such as 64.09.
> My question is this: what is the conversion operation I would need to
> translate this kinky decimal arrangement to a cents value and visa
> versa? Would it involve converting base 2 to base 10? I am at a loss.

The 64 corresponds to 100 cents up, and the -64 to 100 cents down, so
to convert to a pitch bend in cents, simply mulitply by 100/64 = 25/16.