Post by nic on Apr 12, 2018 9:20:10 GMT
Hi girlvsworld ,
The toggle code was more an example. I suspect things stopped working because it is fiddling with program change 0 which I think you were using for other purposes.
Anyway, massaging the expression pedal into stop start is a different beast. I'll need a bit more information on how you want this to work, but in the meantime I have made some assumptions and offer a solution to try out.
An expression pedal will send a continuous stream of CC messages with different values so we need to understand that is what we are getting as input.
How do you want to trigger stops and starts? Push pedal to 'toe' to start and 'heel' to stop? Or do you want to toggle start/stop each time it reaches toe?
What is the drum machine you are wanting to control? Is that vatanator (not familiar with it) or something else?
I am surprised that it won't stop if you move the pedal to heel as that should generate a CC 0 (OFF). Maybe it never reaches 0 due to calibration? What we will end up doing is thinning out the CC so it sends a full on (once) when it goes over a certain point and an OFF (once) when it goes under a certain point. If we assume that you plug the pedal into the socket for expression 2/16 then this would do the thinning and start on toe and stop on heel:
IF LOAD
ASS L0 = 0
END
IF M0 == B0 10
IF M2 > 50
IF L0 != 1
SND M0 M1 7F
ASS L0 = 1
END
END
IF M2 < 30
IF L0 != 2
SND M0 M1 00
ASS L0 = 2
END
END
XX = XX +B
END
Regards, Nic.
The toggle code was more an example. I suspect things stopped working because it is fiddling with program change 0 which I think you were using for other purposes.
Anyway, massaging the expression pedal into stop start is a different beast. I'll need a bit more information on how you want this to work, but in the meantime I have made some assumptions and offer a solution to try out.
An expression pedal will send a continuous stream of CC messages with different values so we need to understand that is what we are getting as input.
How do you want to trigger stops and starts? Push pedal to 'toe' to start and 'heel' to stop? Or do you want to toggle start/stop each time it reaches toe?
What is the drum machine you are wanting to control? Is that vatanator (not familiar with it) or something else?
I am surprised that it won't stop if you move the pedal to heel as that should generate a CC 0 (OFF). Maybe it never reaches 0 due to calibration? What we will end up doing is thinning out the CC so it sends a full on (once) when it goes over a certain point and an OFF (once) when it goes under a certain point. If we assume that you plug the pedal into the socket for expression 2/16 then this would do the thinning and start on toe and stop on heel:
IF LOAD
ASS L0 = 0
END
IF M0 == B0 10
IF M2 > 50
IF L0 != 1
SND M0 M1 7F
ASS L0 = 1
END
END
IF M2 < 30
IF L0 != 2
SND M0 M1 00
ASS L0 = 2
END
END
XX = XX +B
END
Regards, Nic.