1 / 14

Chorus Effect through Audio DSP

Chorus Effect through Audio DSP. Presented by Leo Aksu University of Utah Dep. of Electrical Eng. Spring 2007 Project sponsored by Harman Music Group A Harman International Company. Chorus Effect. Widely used audio effect

jaeger
Télécharger la présentation

Chorus Effect through Audio DSP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chorus Effect through Audio DSP Presented by Leo Aksu University of Utah Dep. of Electrical Eng. Spring 2007 Project sponsored by Harman Music Group A Harman International Company

  2. Chorus Effect • Widely used audio effect • Makes a single instrument sound like several instruments are being played • Models what happens when 2 or more artists play instruments in unison: • artists are not perfectly synchronized • the pitch of the instruments deviates despite precise tuning

  3. DSP Hardware • Analog Devices ADSP-21364: 32-bit floating point DSP optimized for pro-audio applications • Analog Devices AD1835: 24-bit audio CODEC capable up to 96 kHz A/D and 192 kHz D/A conversion • USB interface to development software

  4. Development Software VisualDSP++ 4.5: C/C++ compiler, assembler, linker

  5. Audio I/O Modified the software template to accomplish the following: • establish audio traffic by correctly initializing the CODEC to do the A/D and D/A conversions • change sampling rate from 48 to 96 kHz • convert audio from unsigned int to float and back to unsigned int • route digitized audio through the DSP chip in a “output = 0.54321 * input” fashion • separate left and right channels

  6. Chorus DSP Block Diagram

  7. Circular Buffer / Fixed Delay • Created a circular delay buffer to write past audio samples to the internal memory of the DSP chip • Read samples off the delay line using a circular index • Made any sample between 0 (current sample) and 24,576 (256 ms. delayed sample) available • Mixed the original signal with its delayed copy • Kept the delay time constant

  8. Delay Time Modulation • Created a 1Hz sine wave (Low Frequency Oscillator) with 96,000 discrete values per second • Modulated the delay amount with the sine wave where: • sine = +1 => delay time = 32.5 ms • sine = -1 => delay time = 27.5 ms • Created the desired pitch shift as a result of the ever varying delay amount

  9. Linear Interpolation 96,000 samples per second is not enough, need infinite samples! Intermediate samples can be created using linear interpolation: “sample 2” “sample 3” “sample 2.7” = 0.7 x “sample 3” + (1-0.7) x “sample 2”

  10. Results • Simplest form of the chorus effect is implemented • Audio is free of artifacts, pops and clicks • Meets (and exceeds) current pro-audio standards with 24-bit A/D and D/A conversions at 96 kHz • Algorithm is professional grade and could be used in a pro-audio effects processor

  11. Room for Improvement • The C code is inefficient: • Precise sine value is calculated for every sample • Most loops and conditionals used to separate left and right channels could be avoided • Algorithm can be optimized • Internal DSP memory is used to store audio samples! Internal memory is very expensive and should only be used to store coefficients. Audio samples should be stored in DRAM.

  12. Audio Demo • Dry acoustic guitar track - “Lexicon Dry Tracks” • Dance track - “Time is Now” by Moloko

  13. Q & A

  14. Acknowledgements • Michael Carnes, Harman Principal DSP Engineer • Paul Howard, Harman Engineering Manager • Jim Lambrick, Harman DSP Engineer • Chris Belcher, Harman DSP Engineer • Analog Devices Tech Support and Sales Staff

More Related