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

Thread: Doppler shift using Audio Library

  1. #1
    Junior Member
    Join Date
    Mar 2015
    Posts
    10

    Doppler shift using Audio Library

    I'm trying to emulate the effect of doppler shift using audio library on teensy 3.2 and PropShield but am having trouble trying to figure out if it is possible to do with just the audio library itself or if I need to figure out another way to implement it with audio. Not real good with audio library since I've just started doing audio stuff with arduino/teensy just recently so any help/pointers would be appreciated.

    Consider this: Using Audio System Design Tool

    Code:
    // GUItool: begin automatically generated code
    AudioSynthWaveformSine   hum_sine;       //xy=125,120
    AudioSynthWaveformSineModulated hum_sine_fm;    //xy=308,120
    AudioSynthWaveform       buzz_waveform;  //xy=308,245
    AudioMixer4              mixer1;         //xy=484,194
    AudioOutputAnalog        dac1;           //xy=665,194
    AudioConnection          patchCord1(hum_sine, hum_sine_fm);
    AudioConnection          patchCord2(hum_sine_fm, 0, mixer1, 0);
    AudioConnection          patchCord3(buzz_waveform, 0, mixer1, 1);
    AudioConnection          patchCord4(mixer1, dac1);
    // GUItool: end automatically generated code
    Would like to doppler shift what comes out of the mixer. Anybody have an idea on how to do this?

    Thanks!

  2. #2
    Junior Member
    Join Date
    Mar 2015
    Posts
    10
    Turns out I was already on the right track for what I was wanting to accomplish but was having problem with clipping (because of too much gain). Just shifting freq's back and fourth around a stationary freq into a mixer worked out great.

Posting Permissions

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