I have an additional question: Is it possible to let a fader of an audio mixer move slowly from one specific value to another (e.g. from -∞ to 0 db)? I am only able to define a value the fader should go to in no time at all.
Since this is a new question, I moved it to another topic.
Please find the attached.
There are 3 translators
The first translatortakes the input value from your fader and sets the target value (in global variable ga) but does not directly output the value yet. It starts a repeating timer to slowly move the fader using a delay (global variable gb) between iterations… It then starts the timer.
The second translator compares the current value (gc) with the target value (ga) and moves the fader one step at a time to the target.
The third translator kills the repeating timer when the target value ga is equal to the current value (gc)
I am not a Pro and do not understand where to place “my values” into your translator. :-/
My goal is to press a keystroke and then a specific fader should slowly fade up to 0db from the actual position so it would go until “B0 01 66” for example. And with an other keystroke to -∞ that would be “B0 01 00” for example. The “B0 01” is the specific fader and the last to digits are telling the value of the fader. It should go from 00 … 01 … 09 … 0A … 0F … 66 for example.
I want to be able to copy this action for differents Faders and also different final values (the biggest possible value is 7F).
Sorry Steve, I do not understand where to past for example “B0 01 66” as my target position. And how can miditranslator recognize the current position? The Mixer is a QL 1 from Yamaha.
Well I used CC1 so you will need to change the output an probably the timer name to match so you don’t confuse yourself. The current position, initially is unknown, however is updated by the timer as it moves.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
Still no plan. :-/
Could you please create me one complete preset with this “B0 01 66” as target for the outgoing midi message (and ESC-Button to trigger)?
Otherwise I will not be able to use your knowledge.
thanks for your help. It works nearly like wanted.
Only Problem: If the fader was moved manually to an different value, MD does not start moving from that “specific position” to the “wanted position”. It simply jumps to the “last known” position and then moves slowly to the “wanted position”.
Is there a way to “read out” the real fader position all the time and start from that value to move to the “wanted value” without jumping?
This is a matter of capturing the real position back from your device and putting it into the global variable we are using for the actual fader position. In this case, we just take CC1 value and put it into the global variable gc.
At the preset level I define the input port we use for feedback in a new preset… See snapshot and attached update project file:
it works now perfect for CH 1 of the Yamaha QL1.
I think it works for all the channels up to 24. :-))
But from 25 on, the commands seem to change. When I capture CH 25, i get for example “F0 43 10 3E 19 01 00 37 00 00 00 18 00 00 00 00 00 F7”
Can you please tell me how to translate these big codes?
If you can set up the log window to capture the fader movement from min to max, I may be able to figure it out. I suspect the 18 is the channel number which is 24 decimal which would be 25 if you start numbering from 0. The 00 pairs are likely the fader values which I would need to find a pattern unless you have the SyeEX manual for the device.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
in general it is working.
But the fader is jumping back and forward in steps everytime. I changed “tt=uu>>8” to “tt=uu>>7” (not knowing what that is). But after that change it seems smother, but the fader moves now a longer way.
I attached two videos.
Do you know what could be wrong?
in general it is working.
But the fader is jumping back and forward in steps everytime. I changed “tt=uu>>8” to “tt=uu>>7” (not knowing what that is). But after that change it seems smother, but the fader moves now a longer way.
I attached two videos and a screenshot.
Yes it is probably the calculations on how far to move the faders. Shift 7 is probably correct, >>7, however you will also need to adjust the value in the fader feedback. I’ve gone way over my time on free support here so reach out to me via email or PM if you need paid support on this issue. The basic concept is currently there.
Since there are two bytes value for the sysex, I have to combine them into one value before calculating the scaling.
// This is a value greater than 128 so we need to shift the high order bits into a low order byte
tt=uu>>7
// now tt contains the high order byte
qq=uu&127
// no qq contains the low order byte
// on feedback we combine them again before scaling in the opposite direction
// this should probably be a 7 instead of an 8 too
//shift into high order byte with the bit shift operand
rr=tt<<7
// combine with the low order byte using the bit OR operand
qq=rr|qq
// now we can scale it back to the 8 bit value
…
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
thank you so much for your support.
tried with “7” also on the feedback and now it seems to work perfect.
So I will copy/paste the translators anch change the different variables for all faders.
Glad to see you got it working. Documentation was too difficult to follow, however I could see pretty much what I needed to do based on your log information.