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

Thread: Ping Pong Delay

  1. #1
    Junior Member
    Join Date
    Dec 2016

    Ping Pong Delay

    Hi ....

    i started today patching audio objects to make a ping pong delay using the bottom grafic as inspiration. I also use external memory 23LC1024 RAM to get 1.5 seconds of delay time and my electric guitar as input.

    Click image for larger version. 

Name:	delay-f41.gif 
Views:	608 
Size:	6.7 KB 
ID:	9243

    At the end i sounds like a kind of ping peng pong delay... I like it...
    Enjoy using it....
    Here is the code :

    Click image for larger version. 

Name:	ping pong.png 
Views:	287 
Size:	38.8 KB 
ID:	9244

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>

    // GUItool: begin automatically generated code
    AudioInputI2S i2s2; //xy=267.5,270.75
    AudioMixer4 mixer3; //xy=548.7778015136719,134.6667022705078
    AudioMixer4 mixer4; //xy=561.0000305175781,397.7778015136719
    AudioEffectDelayExternal delayExt2(AUDIO_MEMORY_23LC1024, 1000); //xy=708,135
    AudioEffectDelayExternal delayExt1(AUDIO_MEMORY_23LC1024, 1000); //xy=724.3333129882812,396.22222900390625
    AudioMixer4 mixer6; //xy=913,298.5
    AudioMixer4 mixer5; //xy=914.5,226.5
    AudioOutputI2S i2s1; //xy=1170,269
    AudioConnection patchCord1(i2s2, 0, mixer3, 0);
    AudioConnection patchCord2(i2s2, 0, mixer5, 1);
    AudioConnection patchCord3(i2s2, 0, mixer6, 1);
    AudioConnection patchCord4(i2s2, 0, mixer4, 0);
    AudioConnection patchCord5(mixer3, delayExt2);
    AudioConnection patchCord6(mixer4, delayExt1);
    AudioConnection patchCord7(delayExt2, 0, mixer4, 1);
    AudioConnection patchCord8(delayExt2, 0, mixer5, 0);
    AudioConnection patchCord9(delayExt1, 0, mixer3, 1);
    AudioConnection patchCord10(delayExt1, 0, mixer6, 0);
    AudioConnection patchCord11(mixer6, 0, i2s1, 1);
    AudioConnection patchCord12(mixer5, 0, i2s1, 0);
    AudioControlSGTL5000 sgtl5000_1; //xy=626,29
    // GUItool: end automatically generated code

    void setup() {

    delayExt1.delay(0, 1000); // DELAY TIME LEFT
    delayExt2.delay(0, 1000); // DELAY TIME RIGHT

    mixer3.gain(0, 0.7);// INPUT LEFT VOLUME
    mixer3.gain(1, 0.8);// ECHO LEFT EFFECT
    mixer4.gain(0, 0.7);// INPUT RIGHT VOLUME
    mixer4.gain(1, 0.8);// ECHO RIGHT EFFECT

    mixer5.gain(0, 0.7); // ECHO LEFT VOLUME
    mixer5.gain(1, 0.7); // OUTPUT LEFTVOLUME
    mixer6.gain(0, 0.7); // OUTPUT RIGHT VOLUME
    mixer6.gain(1, 0.7); // ECHO RIGHT VOLUME


    void loop() {

    Last edited by Jupiter Moll; 12-28-2016 at 09:04 PM.

  2. #2
    Junior Member
    Join Date
    Dec 2016
    I like them, thank you. I would use them like you.: o

Posting Permissions

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