60Works
2012-07-03 00:21:35
Hi Folks!
I'm working on a controller for a client, and he needs a single drum pad on his unit. I'm all set on the hardware side with the appropriate wiring and components. (Picture) That square unit sends data based on the amount of pressure you put on it.
Problem is, the MIDI unit for this project doesn't have the firmware to convert those messages into an appropriate velocity-sensitive Note On message. All I can receive is a constant stream of CC data. So, I'm writing my own firmware with MT!
I've spent the day noodling around, and have made some progress. I'm looking for help with one problem, related to this "constant stream of CC data."
Let me try to break this down:
INPUT is a stream of CC data. The starting CC value is random. The length of the stream is random. The end of the stream is ALWAYS a value of 0.
Desired OUTPUT is a Note ON message based on the first CC value of the stream. That note should stay held (not repeated) through the length of the stream. The note is OFF when the stream ends.
What I CAN do:
1. Capture the first CC value and store it through the length of the stream. (This is the note velocity.)
2. Identify when the stream ends. (This is the Note Off.)
What I CANNOT do:
* Hold a SINGLE, NON-REPEATING note through the length of the stream.
Any advice here? The problem here is that the trigger for this action is constantly sending data, while I only care about the start and end points. I think I need to create some kind of external variable + trigger to represent the "Press" action.
Thanks much!
Dave Cross
I'm working on a controller for a client, and he needs a single drum pad on his unit. I'm all set on the hardware side with the appropriate wiring and components. (Picture) That square unit sends data based on the amount of pressure you put on it.
Problem is, the MIDI unit for this project doesn't have the firmware to convert those messages into an appropriate velocity-sensitive Note On message. All I can receive is a constant stream of CC data. So, I'm writing my own firmware with MT!
I've spent the day noodling around, and have made some progress. I'm looking for help with one problem, related to this "constant stream of CC data."
Let me try to break this down:
INPUT is a stream of CC data. The starting CC value is random. The length of the stream is random. The end of the stream is ALWAYS a value of 0.
Desired OUTPUT is a Note ON message based on the first CC value of the stream. That note should stay held (not repeated) through the length of the stream. The note is OFF when the stream ends.
What I CAN do:
1. Capture the first CC value and store it through the length of the stream. (This is the note velocity.)
2. Identify when the stream ends. (This is the Note Off.)
What I CANNOT do:
* Hold a SINGLE, NON-REPEATING note through the length of the stream.
Any advice here? The problem here is that the trigger for this action is constantly sending data, while I only care about the start and end points. I think I need to create some kind of external variable + trigger to represent the "Press" action.
Thanks much!
Dave Cross