Old 09-17-2019, 03:08 PM   #1
clepsydrae
Human being with feelings
 
clepsydrae's Avatar
 
Join Date: Nov 2011
Posts: 2,427
Default pitch bend CC question

I need to precisely control pitch bend CC's to generate precise frequencies for a project.

My understanding is that CC value 8192 is +0%, 16383 is +100%, and 0 is -100%.

This means that the positive range is over 8191 integers, where the negative range is over 8192, meaning, the upper and lower halves are different scales. Is this correct?

So, assuming a pitch bend range of +/- 1 semitone, the conversion from cents to pitch bend value is:

if cents > 0:
(cents/100)*8191+8192
else
(cents/100)*8192+8192

Right?

Thanks!
clepsydrae is offline   Reply With Quote
Old 09-18-2019, 04:41 PM   #2
WernerB
Human being with feelings
 
WernerB's Avatar
 
Join Date: May 2019
Location: Munich / Germany
Posts: 10
Default A matter of 14 bits

The number range and the "if terms" you have set out are entirely correct. You may refer to this exemplary page (header “pitch bend”):
https://www.cs.cmu.edu/~music/cmsip/...-midi-spec.htm

Btw: The accuracy of this calculation is well beyond any pitch difference perceivable by the human ear. Each cent may now be subdivided into nearly 82 (8.191/100 or 8.192/100) further steps! I wonder what kind of project you are pursuing
WernerB is offline   Reply With Quote
Old 09-18-2019, 05:49 PM   #3
clepsydrae
Human being with feelings
 
clepsydrae's Avatar
 
Join Date: Nov 2011
Posts: 2,427
Default

Thanks!

Quote:
Originally Posted by WernerB View Post
I wonder what kind of project you are pursuing
It's a video about the 12 tone scale, including demonstrations about just intonation, etc, so while it isn't necessarily crucial to be that accurate, I'd like to make sure I'm getting as close as I can. :-)
clepsydrae is offline   Reply With Quote
Old 09-20-2019, 08:23 PM   #4
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Posts: 103
Default

Bending range from - 8192 to 8191.
dangguidan is offline   Reply With Quote
Old 09-22-2019, 11:37 PM   #5
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 2,975
Default

BTW, "pitch bend CC" doesn't really make sense; pitch bend and CC are different MIDI message types:
  • 1011nnnn (0xB0) = Control Change (CC)
  • 1110nnnn (0xE0) = Pitch Bend Change
__________________
Martinic Kee Bass - Scanner Vibrato - Elka Panther - Tale's JSFX Pack
Tale is offline   Reply With Quote
Old 09-23-2019, 11:07 AM   #6
clepsydrae
Human being with feelings
 
clepsydrae's Avatar
 
Join Date: Nov 2011
Posts: 2,427
Default

Thanks!
clepsydrae is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.