Old 04-07-2020, 02:57 AM   #1
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Posts: 170
Default Can you set shape while inserting CC?

Can you set shape while inserting CC?
I found that the newly inserted CC could not locate IDX, but I need to set their shape.
dangguidan is offline   Reply With Quote
Old 04-07-2020, 04:13 AM   #2
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 788
Default

Lua boolean reaper.MIDI_SetCCShape(MediaItem_Take take, integer ccidx, integer shape, number beztension, optional boolean noSortIn)
Set CC shape and bezier tension. set noSort if setting multiple events, then call MIDI_Sort when done. See MIDI_SetCC, MIDI_GetCCShape
J Reverb is offline   Reply With Quote
Old 04-07-2020, 06:58 PM   #3
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Posts: 170
Default

Not that. Insert a new cc with MIDI_Insertcc. Then I need to customize the shape of CC. How can I locate the IDX of the new CC?

If only the official could improve the API, insert CC and set the current CC shape at the same time.
dangguidan is offline   Reply With Quote
Old 08-09-2020, 06:12 AM   #4
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Posts: 170
Default

Find a method. First count the number of CC. If the new CC is set to disable sort, then the newly added ccidx is the number of CC, and the newly added CC will be progressive on this number.
dangguidan 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:24 PM.


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