Mr.Garibaldi
New Member
Hey,
I made a scripter plugin that allows me to "hotswap" samples in my sampler using MIDI CC. However I can't seem to make the CC values persist once I hit play or record or when I reload the project.
I made a video (w/ sound) that will probably demonstrate what I mean a little more clearly
This is the Script I made.
(Trigger warning for anybody who is an actual programmer)
If anybody has any suggestions how to improve this or where I could ask for help I would really appreciate it.
Thanks
I made a scripter plugin that allows me to "hotswap" samples in my sampler using MIDI CC. However I can't seem to make the CC values persist once I hit play or record or when I reload the project.
I made a video (w/ sound) that will probably demonstrate what I mean a little more clearly
This is the Script I made.
(Trigger warning for anybody who is an actual programmer)
If anybody has any suggestions how to improve this or where I could ask for help I would really appreciate it.
Thanks
var PluginParameters =
[
{name:"Kick1", type:"lin", minValue:0, maxValue:127, numberOfSteps:127, defaultValue:0},
{name:"Kick2", type:"lin", minValue:0, maxValue:127, numberOfSteps:127, defaultValue:0},
{name:"Kick3", type:"lin", minValue:0, maxValue:127, numberOfSteps:127, defaultValue:0},
{name:"Snare", type:"lin", minValue:0, maxValue:127, numberOfSteps:127, defaultValue:0},
{name:"Snare2", type:"lin", minValue:0, maxValue:127, numberOfSteps:127, defaultValue:0}
];
function ParameterChanged(param, value) {
if (param == 0)
{var newControl = new ControlChange();
newControl.number = 2;
newControl.value = value;
newControl.send()};
if (param == 1)
{var newControl = new ControlChange();
newControl.number = 3;
newControl.value = value;
newControl.send()};
if (param == 2)
{var newControl = new ControlChange();
newControl.number = 5;
newControl.value = value;
newControl.send()};
if (param == 3)
{var newControl = new ControlChange();
newControl.number = 8;
newControl.value = value;
newControl.send()};
if (param == 4)
{var newControl = new ControlChange();
newControl.number = 9;
newControl.value = value;
newControl.send()};
}