Page 1 of 1
Midi clock from traktor to control pad sustain
Posted: 10 May 2013 16:33
by tput73
Hi erybody!
how does one go about getting
Traktors midi clock signal to control the
length of sustain on a pad(controlling fx on)
thereby having fx on for x amount of bars
of a track and shut off in time?
Thanks for the continuing wisdom
Put
Re: Midi clock from traktor to control pad sustain
Posted: 31 May 2013 12:23
by hakonandersson
Hi Put,
Am very interested in knowing this also - did you ever get anywhere with your attempts? I'm just integrating the traktor midi > lemur side of things in my project, and would like to enable X (whatever it may be) for 4, 8 or 16 bars..
I've got the midi_clock sending his ticks in successfully.. now just need to interpret those to break them into beats and bars..
Cheers.
Re: Midi clock from traktor to control pad sustain
Posted: 31 May 2013 13:36
by Softcore
Midi clock ticks are 24 per quarter note. With that in mind set up a script that will execute every 24 ticks for quarter notes (beat), 2*24=48 ticks for half notes, 4*24=96 (bar) etc, etc.
Re: Midi clock from traktor to control pad sustain
Posted: 02 Jun 2013 15:01
by tput73
Still in the dark over here.
I can receive midi clock ticks
And show them in monitor object
however the value just increases, I can't
Figure out how to cycle as in a bar or measure.
Then applying this time as a condition
of a pads release, I'm perplexed.
T
Re: Midi clock from traktor to control pad sustain
Posted: 02 Jun 2013 16:29
by Softcore
example 1:
create a global expression - name it q (quarters)
Every time a quarter note passes by, q will be zero.
So for example if you want a script excecuted after a quarter note you would make the script "on expression q, dropping to zero (dwon arrow)".
example 2:
create a global expression - name it b (bars)
Every time a bar (loop) passes by, b will be zero.
So for example if you want a script excecuted after a bar you would make the script "on expression b, dropping to zero (down arrow)".
The above provide a way to script an action to turn "off" or "on" a pad. In order to calculate its decay value, you'd have to calculate the time between two subsequent 0s of q or b with an on frame script and then apply that claculated value to your pad's decay.
Re: Midi clock from traktor to control pad sustain
Posted: 02 Jun 2013 17:13
by Softcore
To say the truth, I havent been busy at all with these midi clock stuff - LFO studio in the factory templates appears to be very advanced and also "looks" the exact song position and whatnot. I think it will take some time to "de-code" what is actually going on but it appears to be very elegant and accurate.
Re: Midi clock from traktor to control pad sustain
Posted: 02 Jun 2013 19:27
by tput73
Oi!
I'm almost there I can feel it.
I got the global bar expression
In and it's a perfect bar judging by
my monitor object.
And the pad or custom button loops on and
Off in time, but its continuous.
How would one execute the on/off loop
just once? Or once pressed go through loop
and stay off until pressed again.
T
Ps thanks again for the wisdom, you really
should teach a course!
Re: Midi clock from traktor to control pad sustain
Posted: 02 Jun 2013 19:49
by Softcore
lol naaah, I dont think so really! There are other guys in here WAY more advanced in this scripting thing,. Probably Im just dedicating more time in the forums than others, thats all!
As for your question, Im really starting to lose "touch" with what you are after. Send an example template over so I can see where you are at, and possibly help finish it!