COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 06-09-2009, 04:44 AM   #1
Stu Kennedy
Human being with feelings
 
Join Date: Mar 2009
Location: Glasgow UK
Posts: 83
Default IPlug MakePitchWheelMsg( )

Hi,

The MakePitchWheelMsg( ) function seems to have a bug.

If I pass it 0 (the documentation says to pass a double [-1,1]) It bends the note down a semi-tone!

How can I fix it?

Stu
Stu Kennedy is offline   Reply With Quote
Old 06-09-2009, 04:48 PM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,823
Default

That's a bug. IMidiMsg::MakePitchWheelMsg should do this instead of what it is now doing:

mData2 = i>>7;
mData1 = i&0x7F;
schwa is offline   Reply With Quote
Old 06-10-2009, 02:53 AM   #3
Stu Kennedy
Human being with feelings
 
Join Date: Mar 2009
Location: Glasgow UK
Posts: 83
Default

Thanks again Schwa ... yo the man!
Stu Kennedy 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 10:17 AM.


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