Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

MIDI Feedback with ctlout()

MiluX Jul 10, 2018 05:07PM CEST

Hi there. I'm trying to avoid using the Object Target of a Fader to have a little more complex MIDI routing.
So now I just created a small script for my fader (Target: none, Execution: On Expression (x)):
ctlout(0,1,floor(x*127),1);

However, I'm running into an issue:
When I stop playback in my DAW (having already recorded the CC1 MIDI data), the fader keeps going between what seems to be the 2 last values (some kind of MIDI Feedback?). When I use the built-in "Object Target", this Feedback doesn't happen. Should I put another script to filter the input maybe ?

Up 0 rated Down
MiluX Jul 11, 2018 09:17AM CEST
And here of course my input Script:

On MIDI, Target 0, CC0-127, CH1-16
if (MIDI_ARGS[0] == 1)
{
Fader6.x = MIDI_ARGS[1]/127;
}
Up 1 rated Down
MiluX Jul 12, 2018 04:05PM CEST
Hi there!
Here is the answer, if someone is looking for it: Just add if(z) or if(!z) (if I have my finger on the fader, don't update its value and don't send it neither) :

input()
if (MIDI_ARGS[0] == 1)
{
if(!z) Fader6.x = MIDI_ARGS[1]/127;
}

output()
if (z) ctlout(0,1,floor(x*127),1);

Hope it's useful for someone!

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
support@liine.net
http://assets2.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete