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
Old 02-26-2020, 03:09 AM   #2
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

I guess the original thinking was that it was very unlikely that you would need to send out sample accurate pitch bend or CCs
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin 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 06:12 PM.


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