COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 04-08-2019, 05:39 PM   #1
Caiminatrix
Human being with feelings
 
Join Date: Oct 2016
Posts: 24
Default Why is mOffset set to 0 for pitch bend and control change IMidiMsg ?

IMidiMsg::MakePitchWheelMsg() and IMidiMsg::MakeControlChangeMsg() both clear mOffset to 0

What is the reason for this? Why can I set an offset for note on and off messages but not MIDI CC?

should i just do the following to assign the offset?
Code:
//...
case NOTE_OFF:
	msg.MakeNoteOffMsg(midievent.note, offset, 0);
	break;

case CONTROL_CHANGE:
	msg.MakeControlChangeMsg((IMidiMsg::EControlChangeMsg)index, value, 0);
	msg.mOffset = offset;
	break;

default:
	break;
}
SendMidiMsg(&msg);

Last edited by Caiminatrix; 04-08-2019 at 09:05 PM.
Caiminatrix 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 05:48 AM.


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