Old 06-10-2018, 04:10 PM   #1
patogen
Human being with feelings
 
Join Date: Jul 2014
Posts: 2
Default "pooled" Midi by API, crash Reaper when delete item

Hi,

I'm trying "pooling" MIDI Takes via API - i use "SetMediaItemTake_Source".


I did something like that:

Code:
(...)
	local ATake =  reaper.GetMediaItemTake(SEQ.BAR.A, 0)
	 reaper.GetSetMediaItemTakeInfo_String(ATake, "P_NAME", "My Test Take", true)

	 local SRC1 = reaper.GetMediaItemTake_Source(ATake)
	 local testbar = reaper.CreateNewMIDIItemInProj(SEQ.Track.A, reaper.TimeMap2_beatsToTime(0, maxTS), reaper.TimeMap2_beatsToTime(0, maxTS) * 2)
	 
	 local TestTake = reaper.GetMediaItemTake(testbar, 0)
	 reaper.SetMediaItemTake_Source(TestTake, SRC1)
and now:
- when i add midi events in one of this clips (via MIDI EDITOR), events is added to the second clip;
- there is no "pooled" icon;
- when i check clip properties: "MIDI events are not pooled"
- when i delete (via keybord) one of this clips - Reaper crash out.

I do something wrong? Or this is a bug?
patogen 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 06:53 AM.


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