Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Reverse delay audio effect?

  1. #1

    Reverse delay audio effect?

    Hi there!

    Whoud it be possible to have a reverse delay effect based on the teensy deley schetch on git hub?
    I'm not quite sure where to mess in the code, if some one could point me the right direction wold be great!

    Best,
    Manatee

  2. #2
    Senior Member Pensive's Avatar
    Join Date
    Aug 2014
    Location
    Basingstoke, UK
    Posts
    562
    Yes.

    You can't really do a pre-emptive reverse delay effect easily unless your sample is smaller than AUDIO_BLOCK_SAMPLES, I'm sure it could be done I suppose, just need to add another stream fetch on the same audio source in reverse order.

    By far the easiest starting point is try inverting the audio sample index in the delay effect.

    Try changing
    Index = position[channel] / AUDIO_BLOCK_SAMPLES;
    to


    Index = (AUDIO_BLOCK_SAMPLES - (position[channel] / AUDIO_BLOCK_SAMPLES));
    it it should simply reverse the order it plays each tap sample buffer.

    should.

    it might not work at all and I don't think it's even close to a proper reverse delay. You'll have understand how the effects work first though so achieving this is a good first step.

  3. #3
    Senior Member Pensive's Avatar
    Join Date
    Aug 2014
    Location
    Basingstoke, UK
    Posts
    562

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •