Fixed length freq per midi-key
Posted: Mon Jul 21, 2014 11:46 pm
I wanted to have signals that run for a specified time when a note-on event for special keys is recognized. My current solution is filtering the incoming midi and then generate midi notes with Note Event, since I can assign a time value.
The downside is that any new note of the same key overrides the older one, so I also implemented a counter that spits out a new midi note number for each orignial note on event. That's ok, since I only need the start and the time, generating a fixed freqenzy from it.
But I need this construction for each key I use and that seems a bit weird. So I looked for simpler solutions. Midi to Sample isn't sufficient since I don't get a fixed length for each note-on. I also tried dsp code (but that's my weak point). I can easily seperate the keys and send out frequencies on dedicated streamouts, but I don't see how to time those freq. I played around with a counter, but that stopped each signal on a streamout, not just the one that timed out.
Generally, what I'm looking for is a timing system that converts incoming note-ons to to a start-stop-mechanic, where each midi key can be triggered even overlapping without stopping the prior event (up to 32 times), and also for each midi key the start-stop-mechanic can be edited individually in case of duration.
Is my Note Event solution the best I can achieve, or are there any other ideas?
The downside is that any new note of the same key overrides the older one, so I also implemented a counter that spits out a new midi note number for each orignial note on event. That's ok, since I only need the start and the time, generating a fixed freqenzy from it.
But I need this construction for each key I use and that seems a bit weird. So I looked for simpler solutions. Midi to Sample isn't sufficient since I don't get a fixed length for each note-on. I also tried dsp code (but that's my weak point). I can easily seperate the keys and send out frequencies on dedicated streamouts, but I don't see how to time those freq. I played around with a counter, but that stopped each signal on a streamout, not just the one that timed out.
Generally, what I'm looking for is a timing system that converts incoming note-ons to to a start-stop-mechanic, where each midi key can be triggered even overlapping without stopping the prior event (up to 32 times), and also for each midi key the start-stop-mechanic can be edited individually in case of duration.
Is my Note Event solution the best I can achieve, or are there any other ideas?