Hello
I a writing a script to automatically create many tracks using one Samplomatic5000 per track. So far so good.
I would like to automatically Midi learn some parameters on each track.
Should I use the reaper.SetTrackStateChunk function?
Any simple example or should I simply patch the chunk?
Here are my thoughts:
(Parameter 9 / MIDI Chan 1 / CC 12 / CC Mode Relative 2 / enable only when track or item is selected)
gives =>
FLOATPOS 0 0 0 0
FXID {1C3C1BEE-0E1D-40CA-8059-63D824210D73}
PARMLEARN 9 134320 1
WAK 0
I guess that
9 = Parameter No
1 = Enable only when track or item is selected
CC 16 => 135344
CC 1 => 131504
CC 1 in Absolute Mode => 432
CC 1 in Relative 1 => 65968
My guess: 0 = Absolute Mode, 65536 = Relative 1 , 131072 = relative 2 ...
each CC is 432 + 256 * (CC_No-1)
then 134320 = 131072 + 432 + 256 * 11 => CC 12 in Relative 2
Any cleaner way to get there?
Thank you
Nz0
I a writing a script to automatically create many tracks using one Samplomatic5000 per track. So far so good.
I would like to automatically Midi learn some parameters on each track.
Should I use the reaper.SetTrackStateChunk function?
Any simple example or should I simply patch the chunk?
Here are my thoughts:
(Parameter 9 / MIDI Chan 1 / CC 12 / CC Mode Relative 2 / enable only when track or item is selected)
gives =>
FLOATPOS 0 0 0 0
FXID {1C3C1BEE-0E1D-40CA-8059-63D824210D73}
PARMLEARN 9 134320 1
WAK 0
I guess that
9 = Parameter No
1 = Enable only when track or item is selected
CC 16 => 135344
CC 1 => 131504
CC 1 in Absolute Mode => 432
CC 1 in Relative 1 => 65968
My guess: 0 = Absolute Mode, 65536 = Relative 1 , 131072 = relative 2 ...
each CC is 432 + 256 * (CC_No-1)
then 134320 = 131072 + 432 + 256 * 11 => CC 12 in Relative 2
Any cleaner way to get there?
Thank you
Nz0
Lua Midi Learn
Aucun commentaire:
Enregistrer un commentaire