Sequencer Demo

Location

$CAFE_ROOT/system/src/demo/ax

Description

Demonstrates how to load and play multiple MIDI sequences. Specifically, it shows how to:

The demo arranges playback with a two MIDI sequences simultaneously, one on PowerPC and the other on DSP. You are encouraged to experiment with the sequence table and more complex control.

NOTE:
Make sure the DRC is in STEREO mode for this demo to work as it is intended.The demo contains aux effect calls which have been updated to the new effects library. The original effects can be reinstated by remaking the demos as follows.
make AXFX_DEMO_OLD_EFFECTS=1

Console Output

After the program is invoked, it will display the following output:

    *********************************************************
    *********************************************************
    *               Sequencer demo                          *
    *********************************************************
    *********************************************************
    *    PAD Buttons are:                                   *
    *    Home        Quit Program                           *
    *    Zr          clear the max profiling information    *
    *    B           Start/Stop playing first midi sequence *
    *    X           Cycle through midi files for first seq *
    *    A           Start/Stop playing first midi sequence *
    *    Y           Cycle through midi files for second seq*
    *    Rt/Lt       +/- selected parameter                 *
    *    Up/Dn       move parameter selection cursor        *
    *    Substick Y  Crossfade DRC <-> TV                   *
    *********************************************************
    *********************************************************
    Added sequence 2nd_time
    Added sequence annie
    Added sequence autumnal
    Added sequence candy
    Added sequence j_cycle
    Added sequence worm
    This demo uses the Roland GS Sound Set under license.
    (P) 1996 Roland Corportation U.S.

TV Output

The current parameter settings are displayed to the TV:

                seqdemo.c built 18:43:20 Oct 31 2011
        First Sequence Control                      MAX Profile Info 
             B Play       >OFF                          MAX CPU Usage: 5.89%
             X Midi File  2nd_time                      MAX DSP Usage: 15.99%
                                                        MAX Voices:    0

        Second Sequence Control                     Current Profile Info
             A Play       LPF                           Cur CPU Usage: 5.79%
             Y Midi File  2nd_time                      Cur DSP Usage: 15.25%
    Substick Y Cross-fade 126                           Cur Voices:    0


    
            Zr Clear Profile                        Home        Quit
                                                    Up/Dn       move cursor
                                                    Left/Right  Toggle Value
   Roland GS Sound Set used under license from
   (P) 1996 Roland Corporation U.S.

The left column display sequence control parameters. The upper right column displays the profiling information. The lower right column describes the PAD navigation controls.

Profiles are reported once per second.

Files

$CAFE_ROOT/system/src/demo/ax/seqdemo.c Demo source code.

MIDI Files

The following MIDI files are included at the location:

    $CAFE_ROOT/data/disc/content/content/axdemo/midi/
2nd_time.mid
annie.mid
autumnal.mid
candy.mid
j_cycle.mid
worm.mid

See Also

SEQAddSequence
SEQInit
SEQDRCSetVolume
SEQSetVolume
SEQSetMixerSelect
SEQSetState
SEQRunAudioFrame
SYNRunAudioFrame
SEQQuit

Revision History

2013/05/08 Automated cleanup pass.
2012/01/26 Updated for SDK 2.02 Release


CONFIDENTIAL