View Single Post
Old 03-05-2018, 07:10 AM   #4
Human being with feelings
Tale's Avatar
Join Date: Jul 2008
Location: Holland
Posts: 2,904

Originally Posted by RichB74 View Post
MIDImessage.mOffset = offset; //(passed the value of s to offset here)
Well, as long as your offset if in samples from the start of the next audio buffer (i.e. not from the current sample!), this should work I guess.

BTW, you don't have to loop through all samples i.e. you could probably do this more efficient, because it doesn't matter when you SendMidiMsg(), as long as the offset is correct.
Tale is offline   Reply With Quote