2014-05-18 18:33 GMT+02:00 Vesa <[email protected]>:
> It seems like native instruments have a way of adding offset to the
> first period of the note event, so that if they start in the middle of a
> period, their timing is still accurate. For MIDI-instruments, this
> offset doesn't get properly communicated all the way to the end, and
> thus all MIDI note-events start at 0 offset of the period.

Yes, AFAIK there's no way to add an offset information to MIDI events.
The only solution here is to use as small buffer/period sizes as
possible.

>I suppose the instrument can read it from the
> noteplayhandle? If not, it should probably be implemented too...

See PlayHandle::offset() - this offset always has to be taken into
account during the lifetime of a PlayHandle so the rendered buffer
always gets mixed to the FX mixer (to be exact: the AudioPort buffers
of the appropriate FX chain) with offset X where the remainder buffer
is mixed to the second buffer which is going to be processed in the
next period.

HTH

Toby

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to