1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

zone area and midifile via PGS

Discussion in 'Scripting Workshop' started by JForester, Apr 14, 2021.

  1. JForester

    JForester NI Product Owner

    Messages:
    68
    Hi, for instrument configuration reasons, I manage to run a midifile recording by switch via PGS from one slot to another. However, my problem is that the label area of the drag and drop recovery does not appear at the end of the recording in the slave slot! I tried via PGS without success. Since a label is not configurable in ui_control, this does not surprise me. What to do? For the moment I don't know, an enlightened help would be welcome. Have a nice evening.
     
  2. medusa

    medusa NI Product Owner

    Messages:
    239
    wild guess:
    you might need to set mf_set_export_area() in the script holding the drag MIDI object, AFTER the recording is finished
     
    • Like Like x 1
  3. JForester

    JForester NI Product Owner

    Messages:
    68
    Thank you Medusa, you have unblocked the situation.I used your approach this way in the slave slot : on pgs_changed
    if (pgs_key_exists(CAPTURE) )
    $capture := pgs_get_key_val(CAPTURE,0)
    if ($capture=1)
    {bla bla + mf_set_export_area("MIDI NAME",-1,-1,-1,-1) }
    end if
    end if
    and that work :) !