Forums
How to set independent delays L/R channels - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: .NET 2.0 - 4.0 Components (/forum-8.html)
+--- Forum: AudioLab (/forum-16.html)
+--- Thread: How to set independent delays L/R channels (/thread-592.html)



How to set independent delays L/R channels - delima - 08-31-2012 03:50 AM

Hi, first sorry my bad english

in my program, i must to set different delays for left and right channels. how can I do this?

thanks


RE: How to set independent delays L/R channels - delima - 09-16-2012 07:24 AM

anyone ???


RE: How to set independent delays L/R channels - Dave - 09-16-2012 10:36 AM

Hi, try 2 seperate delays.

Regards,
Dave


RE: How to set independent delays L/R channels - delima - 09-18-2012 12:29 AM

Hi Dave, thank you for answer

i tried for a long time use this:

DSAudioPlayer1 | --> DelayLine1 --> DSAudioOut1
.....................|--> DelayLine2 --> DSAudioOut2

DSAudioOut1.balance= -10000 and DSAudioOut2.balance= 10000

but didn´t work, the channels play out of synchronism


so i tried a new configuration and works fine

DSAudioPlayer1 --> ChannelSplitter1| --> DelayLine1 --> | ChannelMerger1| --> DSAudioOut1
.................................................|--> DelayLine2 --> |


however i have another problem, the delay of DelayLine componente don´t allow decimal value (it´s long type)

i need to work with smaller values than milisecond, ideally 1/100 milisecond to set the different distances of listener to speakers in centimeters
it´s possible?

thanks


RE: How to set independent delays L/R channels - Dave - 09-18-2012 01:05 AM

Indeed it's an integer value. Depending on your samplerate you could try setting the DelayValue->Mode to dmSamples and use a very high samplerate and small buffersize but...
in your case, because of the very short delay, you'd probably be better off using an ALGenericFilter and write the delay yourself.

Regards,
Dave


RE: How to set independent delays L/R channels - delima - 09-18-2012 05:04 AM

i'm a beginner programmer

any example of delay code for this generic filter?


again very very thank you


RE: How to set independent delays L/R channels - Dave - 09-18-2012 05:53 AM

Sorry no samplecode and i was just throwing ideas but you can have a look at various demos that use GenericFilters, understanding a VLGenericFilter might help you on your way; they are very similar in operation.


RE: How to set independent delays L/R channels - delima - 09-18-2012 09:40 AM

ok, thank you anyway