## Latency compensation

Scope and XITE Development

Original topic on PlanetZ: https://forums.scopeusers.com/viewtopic.php?t=16963

####

Posted: Sat Oct 01, 2005 9:34 pm
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

####

Posted: Sun Oct 02, 2005 11:59 am
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

####

Posted: Sun Oct 02, 2005 3:53 pm
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

####

Posted: Sun Oct 02, 2005 10:12 pm
by blazesboylan
*kisses Shayne*
Thanks man, you rock!

####

Posted: Tue Oct 11, 2005 3:32 am
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

####

Posted: Fri Oct 14, 2005 9:26 pm
by blazesboylan
Oooooo... Interesting, I'll have to check that out. Thanks J.!