Latency compensation

A place for developers to share ideas and assist each other in solving problems.

Moderators: valis, garyb

Post Reply
blazesboylan
Posts: 777
Joined: Sat May 25, 2002 4:00 pm
Location: The Great White North
Contact:

Post by blazesboylan »

OK I've been searching all night and can't find any delay modules that show the delay in terms of samples... I'm looking for a delay module that can delay by 1 sample, 2 sample, ... up to 127 samples. (In my case, 0 to 2.8798185941043083900226757369615 ms.)

Anyone have any suggestions?

There should be something, since some of the CW mixers have latency compensation delays in terms of samples...

Thanks in advance,

Johann
User avatar
astroman
Posts: 8454
Joined: Fri Feb 08, 2002 4:00 pm
Location: Germany

Post by astroman »

pre-calculate the 'perfect' values (with whatever applies) and store them in a 1 dimensional array.
Then use numbers_of_samples as an index to pick the proper value.

cheers, Tom
Shayne White
Posts: 1454
Joined: Tue Dec 11, 2001 4:00 pm
Location: California
Contact:

Post by Shayne White »

44.1 samples is one millisecond (if you're running at 44.1 khz). In the effects/delay folder of the SDK, you'll see a module called "200 Delay DSP". The field readout on the module is in milliseconds, but as you adjust the knob, you'll see in the PadList that the value is in integer numbers...those are samples. Change the field on the delay's surface to the following pad settings:

Divisor: 1
Format: %1.0f smp
Max: 2147483647

You'll have a sample delay now!

Shayne

_________________
Melodious Synth Radio
http://www.melodious-synth.com

Indieanna: Integrated Solutions for the Independent Musician
http://www.indieanna.com

<font size=-1>[ This Message was edited by: Shayne White on 2005-10-02 19:58 ]</font>
blazesboylan
Posts: 777
Joined: Sat May 25, 2002 4:00 pm
Location: The Great White North
Contact:

Post by blazesboylan »

*kisses Shayne*

Thanks man, you rock!
j9k
Posts: 266
Joined: Sun Feb 24, 2002 4:00 pm
Location: san diego
Contact:

Post by j9k »

as a mr. lind told me "the feedback mdl will give you a one sample delay" no more no less i might add....

j9k
blazesboylan
Posts: 777
Joined: Sat May 25, 2002 4:00 pm
Location: The Great White North
Contact:

Post by blazesboylan »

Oooooo... Interesting, I'll have to check that out. Thanks J.!
Post Reply