Sound 2 Library Effects Demo

Location

$CAFE_ROOT/system/src/demo/sound2

Description

Demonstrates how to use the sound 2 library effects. It demonstrates how to initialize, register, alter, and shut down the following effects.

The following are required for this demo.

Five samples are included in ADPCM audio formats.

This demo is interactive. Follow the on-screen instructions to play sounds and select individual filters for each of the three AUX channels.

Console Output

When invoked, the program will display the following.

********************************************************
********************************************************
*                Sound 2 Audio Effects Demo            *
********************************************************
********************************************************
*    PAD Buttons are:                                  *
*    Home        Quit Program                          *
*    Rt/Lt       move parameter selection cursor       *
*    Up/Dn       +/- selected parameter                *
*    Stick Y     Vary selected numeric parameter       *
*    B           Cycle through samples                 *
*    A           Cycle AuxA effect                     *
*    X           Cycle AuxB effect                     *
*    Y           Cycle AuxC effect                     *
*    L           Cycle 32k and 48k mode                *
*    Zr          Start/Stop playing current tone       *
********************************************************
********************************************************

TV Output

The current controls and setting (left side) and adjustable parameters (right side) are displayed to the TV:

        axfx2effects.c built 14:45:39 Nov 12 2013  

        Voice      1
      L renderer    48K            MAX AUX Usage: 19.27%
     Zr Play         ON            MAX CPU Usage: 27.62%
      B Voice       >STRINGS       MAX DSP Usage: 25.47%
      A AuxA Effect  ReverbI3DL2   MAX Voices:    1
      X AuxB Effect  (none)                       MIN%  AVG%  MAX%
      Y AuxC Effect  (none)        Cur AUX Usage:  5.34  5.57  5.80
        AuxA Send    0    dBx10    Cur AUX Usage: 13.24 13.43 13.71
        AuxB Send    0    dBx10    Cur CPU Usage: 19.07 19.11 19.15
        AuxC Send    0    dBx10    Cur Voices:    1 
     pitch_shift A  0.0 semitones
     pitch_shift B  7.0 semitones     Home       Quit  
     pitch_shift C 12.0 semitones     Up/Dn      move cursor
                                      Left/Right toggle value
                                      Stick Y    vary value

Navigating With the GamePad

Parameters

Renderer Switch between 32K and 48K audio library renderer.
Play Start or stop playing the current sound. Pressing Zr will also toggle this value.
Voice Selects which sound effect is played. Pressing B will also cycle through the available sounds.
AuxA Selects the effect for AUXA. Pressing A will also cycle through the available sound effects.
AuxB Selects the effect for AUXB. Pressing X will also cycle through the available sound effects.
AuxC Selects the effect for AUXC. Pressing Y will also cycle through the available sound effects.
AuxA Send Attenuation level applied to the AUXA effects path.
AuxB Send Attenuation level applied to the AUCB effects path.
AuxC Send Attenuation level applied to the AUXC effects path.
pitch_shift A Pitchshift adjust (in semitones) when the pitchshift effect is selected for AUXA.
pitch_shift B Pitchshift adjust (in semitones) when the pitchshift effect is selected for AUXB.
pitch_shift C Pitchshift adjust (in semitones) when the pitchshift effect is selected for AUXC.

Files

$CAFE_ROOT/system/src/demo/sound2/axfx2effects.c Demo source code.
$CAFE_ROOT/data/disc/content/axdemo/sound2/32k/
  acousticE.dsp
  acousticEshort.dsp
  cowbell.dsp
  crash.dsp
  cymbal.dsp
  kick.dsp
  snare.dsp
  tom1.dsp
  tom2.dsp
  tom3.dsp
  strings.dsp

32K DSP sound files.
$CAFE_ROOT/data/disc/content/axdemo/sound2/48k/
  acousticE.dsp
  acousticEshort.dsp
  cowbell.dsp
  crash.dsp
  cymbal.dsp
  kick.dsp
  snare.dsp
  tom1.dsp
  tom2.dsp
  tom3.dsp
  strings.dsp

48K DSP sound files.
$CAFE_ROOT/data/disc/content/axdemo/spdemo/spdemo.spt Sound Pipeline table file.
$CAFE_ROOT/data/disc/content/axdemo/spdemo/spdemo.spd Sound Pipeline sample file.

See Also

AXFX2 Reverb Overview
AXFX2 Reverb I3DL2 Overview
AXFX2 Chorus Overview
AXFX2 Delay Overview
AXFX2 Compressor Overview
AXFX2 Overdrive Overview
AXFX2 Pitchshift Overview
AXFX2 Flanger Overview

Revision History

2013/11/07 32/48K AX switching
2013/10/29 Update details.
2013/08/25 Initial version.


CONFIDENTIAL