Old 12-19-2014, 01:30 PM   #1
Z317
Human being with feelings
 
Join Date: Dec 2014
Posts: 14
Default Trying to set length/loop-point to a midi item

Hi,

I'm working on a plugin to copy a midi item from one track to another, and I'm stuck trying to set the "internal length" of a midi item, so that it loops when the whole item is extended in the arrangement. It seems I can read the length with PCM_Source_GetSectionInfo(), but how do I set it to the new midi item?

I'm working with PCM_source_transfer_t and midi_realtime_write_struct_t items, but these doesn't seem to take the internal length. I found that PCM_Source::Extended can take a command, PCM_SOURCE_EXT_TRIMITEM, that takes an array with a length value, but it doesn't seem to solve my problem (what is param1=lrflag anyway?).

Does anyone know how to set this internal length of a midi take, preferably w/o going the GetSetTrackState() way?
Z317 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 09:02 AM.


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