danger.audio
Class Sequence

java.lang.Object
  |
  +--danger.audio.Sequence

public abstract class Sequence
extends java.lang.Object


Field Summary
static byte CONTROL_CHANGE
           
static byte DATA_LSB
           
static byte DATA_MSB
           
static byte DEFAULT_BANK
           
static byte DEFAULT_PROGRAM
           
static byte LED_BRIGHTNESS
           
static byte LED_HUE
           
static byte LED_PURITY
           
static byte MAX_BANKS
           
static int MAX_INSTRUMENTS
           
static byte MAX_MIDI_CHANNELS
           
static byte MAX_MIDI_TRACKS
           
static byte MAX_MIDI_VOLUME
           
static byte NOTE_OFF
           
static byte NOTE_ON
           
static byte NPRN_BUZZER_LSB
           
static byte NPRN_BUZZER_MSB
           
static byte NPRN_FLASHER_LSB
           
static byte NPRN_FLASHER_MSB
           
static byte NRPN_LSB
           
static byte NRPN_MSB
           
static byte PERCUSSION_CHANNEL
           
static byte PITCH_BEND
           
static byte PROGRAM_CHANGE
           
static byte RPN_LSB
           
static byte RPN_MSB
           
static byte VIBRATE
           
static byte VOLUME
           
 
Constructor Summary
Sequence()
           
 
Method Summary
 void allNotesOff()
           
abstract  void allNotesOff(int time)
           
abstract  void allowChannelTranspose(byte channel, boolean allowPitch)
           
abstract  boolean areMidiEventsPending()
           
 void controlChange(byte channel, byte controlNumber, byte controlValue)
           
abstract  void controlChange(byte channel, byte controlNumber, byte controlValue, int time)
           
abstract  void destroy()
           
abstract  boolean doesChannelAllowTranspose(byte channel)
           
abstract  void fadeFromToInTime(int sourceVolume, int destVolume, int timeInMiliseconds)
           
abstract  byte getBank(byte channel)
           
abstract  void getChannelMuteStatus(boolean[] pChannels)
           
abstract  void getChannelSoloStatus(boolean[] pChannels)
           
abstract  byte getControlValue(byte channel, byte controller)
           
abstract  int getLoops()
           
abstract  int getMasterTempo()
           
abstract  int getMicrosecondLength()
           
abstract  int getMicrosecondPosition()
           
abstract  byte getPitchBendLSB(byte channel)
           
abstract  byte getPitchBendMSB(byte channel)
           
abstract  int getPriority()
           
abstract  byte getProgram(byte channel)
           
abstract  void getSoloTrackStatus(boolean[] pTracks)
           
abstract  java.lang.String getTitle()
           
abstract  void getTrackMuteStatus(boolean[] pTracks)
           
abstract  int getTranspose()
           
abstract  int getUniqueID()
           
abstract  int getVolume()
           
abstract  int getVolumeClass()
           
abstract  boolean isDone()
           
abstract  boolean isInstrumentLoaded(int instrument)
           
abstract  boolean isLoaded()
           
abstract  boolean isPaused()
           
 boolean loadFromFile(byte[] data, int length)
           
abstract  boolean loadFromMidi(byte[] data, int length)
           
 boolean loadFromResource(int id)
           
 boolean loadFromResource(int id, Application app)
           
abstract  boolean loadFromRingtone(java.lang.String ringtone)
           
abstract  boolean loadFromRmf(byte[] data, int length)
           
abstract  boolean loadFromRtx(java.lang.String ringtone)
           
abstract  boolean loadInstrument(int instrument)
           
abstract  void muteChannel(byte channel)
           
abstract  void muteTrack(byte track)
           
 void noteOff(byte channel, byte note, byte velocity)
           
abstract  void noteOff(byte channel, byte note, byte velocity, int time)
           
 void noteOn(byte channel, byte note, byte velocity)
           
abstract  void noteOn(byte channel, byte note, byte velocity, int time)
           
 void noteOnWithLoad(byte channel, byte note, byte velocity)
           
abstract  void noteOnWithLoad(byte channel, byte note, byte velocity, int time)
           
 void NRPN(byte channel, byte lsb, byte msb, byte value)
           
 void NRPN(byte channel, byte lsb, byte msb, byte value, int time)
           
 void parseMidiData(byte commandByte, byte data1Byte, byte data2Byte, byte data3Byte)
           
abstract  void parseMidiData(byte commandByte, byte data1Byte, byte data2Byte, byte data3Byte, int time)
           
abstract  void pause()
           
 void pitchBend(byte channel, byte lsb, byte msb)
           
abstract  void pitchBend(byte channel, byte lsb, byte msb, int time)
           
static Sequence play(byte[] data)
           
static Sequence play(int resourceID)
           
 void programBankChange(byte channel, byte programNumber, byte bankNumber)
           
abstract  void programBankChange(byte channel, byte programNumber, byte bankNumber, int time)
           
 void programChange(byte channel, byte programNumber)
           
abstract  void programChange(byte channel, byte programNumber, int time)
           
abstract  void resume()
           
 void RPN(byte channel, byte lsb, byte msb, byte value)
           
 void RPN(byte channel, byte lsb, byte msb, byte value, int time)
           
abstract  void setLoops(int loops)
           
abstract  void setMasterTempo(int tempoFactor)
           
abstract  void setMicrosecondPosition(int ticks)
           
abstract  void setPriority(int priority)
           
abstract  void setRouteBus(int routeBus)
           
abstract  void setTranspose(int offset)
           
abstract  void setVolume(int volume)
           
abstract  void setVolumeClass(int volumeClass)
           
abstract  void soloChannel(byte channel)
           
abstract  void soloTrack(byte track)
           
abstract  void start()
           
 void start(int filter)
           
 void start(int filter, int volume)
           
abstract  void stop()
           
abstract  int translateBankProgramToInstrument(byte bank, byte program, byte channel, byte note)
           
abstract  boolean unloadInstrument(int instrument)
           
abstract  void unmuteChannel(byte channel)
           
abstract  void unmuteTrack(byte track)
           
abstract  void unSoloChannel(byte channel)
           
abstract  void unSoloTrack(byte track)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTE_ON

public static final byte NOTE_ON

NOTE_OFF

public static final byte NOTE_OFF

CONTROL_CHANGE

public static final byte CONTROL_CHANGE

PROGRAM_CHANGE

public static final byte PROGRAM_CHANGE

PITCH_BEND

public static final byte PITCH_BEND

NRPN_LSB

public static final byte NRPN_LSB

NRPN_MSB

public static final byte NRPN_MSB

RPN_LSB

public static final byte RPN_LSB

RPN_MSB

public static final byte RPN_MSB

DATA_LSB

public static final byte DATA_LSB

DATA_MSB

public static final byte DATA_MSB

VOLUME

public static final byte VOLUME

VIBRATE

public static final byte VIBRATE

LED_HUE

public static final byte LED_HUE

LED_PURITY

public static final byte LED_PURITY

LED_BRIGHTNESS

public static final byte LED_BRIGHTNESS

NPRN_BUZZER_LSB

public static final byte NPRN_BUZZER_LSB

NPRN_BUZZER_MSB

public static final byte NPRN_BUZZER_MSB

NPRN_FLASHER_LSB

public static final byte NPRN_FLASHER_LSB

NPRN_FLASHER_MSB

public static final byte NPRN_FLASHER_MSB

MAX_MIDI_CHANNELS

public static final byte MAX_MIDI_CHANNELS

MAX_MIDI_VOLUME

public static final byte MAX_MIDI_VOLUME

MAX_MIDI_TRACKS

public static final byte MAX_MIDI_TRACKS

MAX_INSTRUMENTS

public static final int MAX_INSTRUMENTS

MAX_BANKS

public static final byte MAX_BANKS

DEFAULT_PROGRAM

public static final byte DEFAULT_PROGRAM

DEFAULT_BANK

public static final byte DEFAULT_BANK

PERCUSSION_CHANNEL

public static final byte PERCUSSION_CHANNEL
Constructor Detail

Sequence

public Sequence()
Method Detail

play

public static Sequence play(byte[] data)

play

public static Sequence play(int resourceID)

destroy

public abstract void destroy()

getUniqueID

public abstract int getUniqueID()

getTitle

public abstract java.lang.String getTitle()

loadFromMidi

public abstract boolean loadFromMidi(byte[] data,
                                     int length)

loadFromRmf

public abstract boolean loadFromRmf(byte[] data,
                                    int length)

loadFromRtx

public abstract boolean loadFromRtx(java.lang.String ringtone)

loadFromRingtone

public abstract boolean loadFromRingtone(java.lang.String ringtone)

loadFromFile

public boolean loadFromFile(byte[] data,
                            int length)

loadFromResource

public boolean loadFromResource(int id)

loadFromResource

public boolean loadFromResource(int id,
                                Application app)

start

public abstract void start()

start

public void start(int filter,
                  int volume)

start

public void start(int filter)

stop

public abstract void stop()

fadeFromToInTime

public abstract void fadeFromToInTime(int sourceVolume,
                                      int destVolume,
                                      int timeInMiliseconds)

isLoaded

public abstract boolean isLoaded()

isDone

public abstract boolean isDone()

areMidiEventsPending

public abstract boolean areMidiEventsPending()

setMasterTempo

public abstract void setMasterTempo(int tempoFactor)

getMasterTempo

public abstract int getMasterTempo()

muteTrack

public abstract void muteTrack(byte track)

unmuteTrack

public abstract void unmuteTrack(byte track)

getTrackMuteStatus

public abstract void getTrackMuteStatus(boolean[] pTracks)

soloTrack

public abstract void soloTrack(byte track)

unSoloTrack

public abstract void unSoloTrack(byte track)

getSoloTrackStatus

public abstract void getSoloTrackStatus(boolean[] pTracks)

getMicrosecondLength

public abstract int getMicrosecondLength()

setMicrosecondPosition

public abstract void setMicrosecondPosition(int ticks)

getMicrosecondPosition

public abstract int getMicrosecondPosition()

pause

public abstract void pause()

resume

public abstract void resume()

isPaused

public abstract boolean isPaused()

setRouteBus

public abstract void setRouteBus(int routeBus)

setVolumeClass

public abstract void setVolumeClass(int volumeClass)

getVolumeClass

public abstract int getVolumeClass()

setVolume

public abstract void setVolume(int volume)

getVolume

public abstract int getVolume()

setPriority

public abstract void setPriority(int priority)

getPriority

public abstract int getPriority()

setLoops

public abstract void setLoops(int loops)

getLoops

public abstract int getLoops()

getTranspose

public abstract int getTranspose()

setTranspose

public abstract void setTranspose(int offset)

allowChannelTranspose

public abstract void allowChannelTranspose(byte channel,
                                           boolean allowPitch)

doesChannelAllowTranspose

public abstract boolean doesChannelAllowTranspose(byte channel)

muteChannel

public abstract void muteChannel(byte channel)

unmuteChannel

public abstract void unmuteChannel(byte channel)

getChannelMuteStatus

public abstract void getChannelMuteStatus(boolean[] pChannels)

soloChannel

public abstract void soloChannel(byte channel)

unSoloChannel

public abstract void unSoloChannel(byte channel)

getChannelSoloStatus

public abstract void getChannelSoloStatus(boolean[] pChannels)

loadInstrument

public abstract boolean loadInstrument(int instrument)

unloadInstrument

public abstract boolean unloadInstrument(int instrument)

isInstrumentLoaded

public abstract boolean isInstrumentLoaded(int instrument)

translateBankProgramToInstrument

public abstract int translateBankProgramToInstrument(byte bank,
                                                     byte program,
                                                     byte channel,
                                                     byte note)

getControlValue

public abstract byte getControlValue(byte channel,
                                     byte controller)

getProgram

public abstract byte getProgram(byte channel)

getBank

public abstract byte getBank(byte channel)

getPitchBendLSB

public abstract byte getPitchBendLSB(byte channel)

getPitchBendMSB

public abstract byte getPitchBendMSB(byte channel)

parseMidiData

public abstract void parseMidiData(byte commandByte,
                                   byte data1Byte,
                                   byte data2Byte,
                                   byte data3Byte,
                                   int time)

parseMidiData

public void parseMidiData(byte commandByte,
                          byte data1Byte,
                          byte data2Byte,
                          byte data3Byte)

noteOff

public abstract void noteOff(byte channel,
                             byte note,
                             byte velocity,
                             int time)

noteOff

public void noteOff(byte channel,
                    byte note,
                    byte velocity)

noteOnWithLoad

public abstract void noteOnWithLoad(byte channel,
                                    byte note,
                                    byte velocity,
                                    int time)

noteOnWithLoad

public void noteOnWithLoad(byte channel,
                           byte note,
                           byte velocity)

noteOn

public abstract void noteOn(byte channel,
                            byte note,
                            byte velocity,
                            int time)

noteOn

public void noteOn(byte channel,
                   byte note,
                   byte velocity)

controlChange

public abstract void controlChange(byte channel,
                                   byte controlNumber,
                                   byte controlValue,
                                   int time)

controlChange

public void controlChange(byte channel,
                          byte controlNumber,
                          byte controlValue)

programBankChange

public abstract void programBankChange(byte channel,
                                       byte programNumber,
                                       byte bankNumber,
                                       int time)

programBankChange

public void programBankChange(byte channel,
                              byte programNumber,
                              byte bankNumber)

programChange

public abstract void programChange(byte channel,
                                   byte programNumber,
                                   int time)

programChange

public void programChange(byte channel,
                          byte programNumber)

pitchBend

public abstract void pitchBend(byte channel,
                               byte lsb,
                               byte msb,
                               int time)

pitchBend

public void pitchBend(byte channel,
                      byte lsb,
                      byte msb)

RPN

public void RPN(byte channel,
                byte lsb,
                byte msb,
                byte value,
                int time)

RPN

public void RPN(byte channel,
                byte lsb,
                byte msb,
                byte value)

NRPN

public void NRPN(byte channel,
                 byte lsb,
                 byte msb,
                 byte value,
                 int time)

NRPN

public void NRPN(byte channel,
                 byte lsb,
                 byte msb,
                 byte value)

allNotesOff

public abstract void allNotesOff(int time)

allNotesOff

public void allNotesOff()


Danger Confidential. Copyright © 2000-2003, Danger Inc.