[LAU] Online resources/books for programming sound synthesis software?

Robin Gareus robin at gareus.org
Fri Apr 13 07:57:34 EDT 2007



Damon Chaplin wrote:
> On Thu, 2007-04-12 at 15:40 +0200, Robin Gareus wrote:

>> minor detail -  in the jack_process callback:
>>
>>  add   jack_port_get_total_latency(..) to  Note[i].oscillator_offset;
> 
> Can you explain that a bit more - why is it needed?

imagine you "pipe" the output of your synth thru an effect that
introduces a latency (delay).

It might seem insignificant - but: if you use two of those synths with
different Effects afterwards, you get phasing effects!

similar if you have multiple output ports:
http://jackaudio.org/files/docs/html/jack_8h.html#a38


[JACK]MIDI allows to timestamp midi-events. - So the synth-osc's
themselves could be in sync. - try to start two of them, invert the
polarity of one and check if the resulting signal is zero. (bitscope)

If it is, add a LADSPA DJ-EQ (1901) to one of the channels, IIRC that
introduces a latency of 3 samples on that channel and you should hear
some phased signal.


#robin



More information about the Linux-audio-user mailing list