|
|
Thread Tools | Display Modes |
03-28-2018, 03:55 PM | #1 |
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
ReaScript: Editing text or sysex event position immediately crashes REAPER (FIXED)
If a script changes the position of a text or sysex event, resulting in a (temporary) negative offset between the text/sysex events, REAPER immediately crashes.
This can happen with the functions MIDI_SetAllEvts, MIDI_SetEvt and MIDI_SetTextSysexEvt (with nosort=true). For example, starting with three text events such as: Running the following simple script (which moves event 3 to the start of the take) immediately crashes REAPER: Code:
take = reaper.MIDIEditor_GetTake(reaper.MIDIEditor_GetActive()) reaper.MIDI_SetTextSysexEvt(take, 2, true, false, 0, nil, "", true) |
03-28-2018, 06:42 PM | #2 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,117
|
Thanks, fixing the crash. You should definitely call reaper.MIDI_Sort(take); after calling with nosort=true, though, or various things may not work as desired.
Last edited by Justin; 03-28-2018 at 06:52 PM. |
Thread Tools | |
Display Modes | |
|
|