Post by jimbo1qazI'm writing a program which generates smooth volume/pitch/pan bends in a
MIDI file. I'm using a fixed rate of 48 ticks per second.
MIDI doesn't natively support smooth bends, so I'm going to quantize
them as a series of control change events.
What tick spacing should I use between adjacent events?
My first comment would be that 48 tps seems a strangely low rate.
About the lowest rate I can find on a quick scan through my collection
is 240 ticks/quarter note, which at a standard 120 BPM (2 beats/sec)
is 480 ticks/sec.
Or maybe you don't mean midifile ticks, but the max rate that you want
to generate events?
In any case, what you obviously want is to avoid audible 'steps' in
the sweep, and that is going to depend on the actual rate of the sweep.
At any fixed event rate, a fast sweep is going to have bigger steps
that might be detectable, whereas a slower one would probably be heard
as smooth.
For many audio qualities, such as latency, 1/50 sec is often considered
the longest delay that will be tolerated, so I'd be inclined to emit
an event on each of your 1/48 sec ticks. Why not just experiment,
though?
-- Pete --