jdkmidi class library documentation

Copyright © 2004 J.D. Koftinoff Software, Ltd.

Released under the GNU General Public License (GPL)




Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

jdkmidi Namespace Reference


Classes

class  AdvancedSequencer
class  MIDIBigMessage
class  MIDICue
class  MIDIDeltaTimedBigMessage
class  MIDIDeltaTimedMessage
class  MIDIDriver
class  MIDIDriverDump
class  MIDIEditTrack
class  MIDIEditTrackEventMatcher
class  MIDIFile
struct  MIDIFile::MIDIFileChunk
struct  MIDIFile::MIDIFileHeader
class  MIDIFileEvents
class  MIDIFileRead
class  MIDIFileReadMultiTrack
class  MIDIFileReadStream
class  MIDIFileReadStreamFile
class  MIDIFileShow
class  MIDIFileWrite
class  MIDIFileWriteMultiTrack
class  MIDIFileWriteStream
class  MIDIFileWriteStreamFile
class  MIDIFileWriteStreamFileName
class  MIDIKeySignature
class  MIDIManager
class  MIDIMatrix
class  MIDIMessage
class  MIDIMultiProcessor
class  MIDIMultiTrack
class  MIDIMultiTrackIterator
class  MIDIMultiTrackIteratorState
class  MIDIParser
class  MIDIProcessor
class  MIDIProcessorRechannelizer
class  MIDIProcessorTransposer
class  MIDIQueue
class  MIDISCHandle
class  MIDISequencer
class  MIDISequencerGUIEvent
class  MIDISequencerGUIEventNotifier
class  MIDISequencerGUIEventNotifierText
class  MIDISequencerState
class  MIDISequencerTrackNotifier
class  MIDISequencerTrackProcessor
class  MIDISequencerTrackState
class  MIDIShowControlPacket
class  MIDISong
class  MIDISystemExclusive
class  MIDITempo
class  MIDITick
class  MIDITimedBigMessage
class  MIDITimedMessage
class  MIDITrack
class  MIDITrackChunk
class  SMPTE

Typedefs

typedef unsigned long MIDIClockTime

Enumerations

enum  MIDIAccidentalType {
  ACCFlat = 0,
  ACCNatural,
  ACCSharp
}
enum  {
  NOTE_OFF = 0x80,
  NOTE_ON = 0x90,
  POLY_PRESSURE = 0xa0,
  CONTROL_CHANGE = 0xb0,
  PROGRAM_CHANGE = 0xc0,
  CHANNEL_PRESSURE = 0xd0,
  PITCH_BEND = 0xe0,
  SYSEX_START = 0xf0,
  MTC = 0xf1,
  SONG_POSITION = 0xf2,
  SONG_SELECT = 0xf3,
  TUNE_REQUEST = 0xf6,
  SYSEX_END = 0xf7,
  RESET = 0xff,
  META_EVENT = 0xff
}
enum  {
  TIMING_CLOCK = 0xf8,
  MEASURE_END = 0xf9,
  START = 0xfa,
  CONTINUE = 0xfb,
  STOP = 0xfc,
  ACTIVE_SENSE = 0xfe
}
enum  {
  C_LSB = 0x20,
  C_GM_BANK = 0x00,
  C_MODULATION = 0x01,
  C_BREATH = 0x02,
  C_FOOT = 0x04,
  C_PORTA_TIME = 0x05,
  C_DATA_ENTRY = 0x06,
  C_MAIN_VOLUME = 0x07,
  C_BALANCE = 0x08,
  C_PAN = 0x0a,
  C_EXPRESSION = 0x0b,
  C_GENERAL_1 = 0x10,
  C_GENERAL_2 = 0x11,
  C_GENERAL_3 = 0x12,
  C_GENERAL_4 = 0x13,
  C_DAMPER = 0x40,
  C_PORTA = 0x41,
  C_SOSTENUTO = 0x42,
  C_SOFT_PEDAL = 0x43,
  C_HOLD_2 = 0x45,
  C_GENERAL_5 = 0x50,
  C_GENERAL_6 = 0x51,
  C_GENERAL_7 = 0x52,
  C_GENERAL_8 = 0x53,
  C_EFFECT_DEPTH = 0x5b,
  C_TREMELO_DEPTH = 0x5c,
  C_CHORUS_DEPTH = 0x5d,
  C_CELESTE_DEPTH = 0x5e,
  C_PHASER_DEPTH = 0x5f,
  C_DATA_INC = 0x60,
  C_DATA_DEC = 0x61,
  C_NONRPN_LSB = 0x62,
  C_NONRPN_MSB = 0x63,
  C_RPN_LSB = 0x64,
  C_RPN_MSB = 0x65,
  C_RESET = 0x79,
  C_LOCAL = 0x79,
  C_ALL_NOTES_OFF = 0x7a,
  C_OMNI_OFF = 0x7c,
  C_OMNI_ON = 0x7d,
  C_MONO = 0x7e,
  C_POLY = 0x7f
}
enum  {
  RPN_BEND_WIDTH = 0x00,
  RPN_FINE_TUNE = 0x01,
  RPN_COARSE_TUNE = 0x02
}
enum  {
  META_SEQUENCE_NUMBER = 0x00,
  META_GENERIC_TEXT = 0x01,
  META_COPYRIGHT = 0x02,
  META_INSTRUMENT_NAME = 0x03,
  META_TRACK_NAME = 0x04,
  META_LYRIC_TEXT = 0x05,
  META_MARKER_TEXT = 0x06,
  META_CUE_TEXT = 0x07,
  META_OUTPUT_CABLE = 0x21,
  META_TRACK_LOOP = 0x2E,
  META_DATA_END = 0x2f,
  META_END_OF_TRACK = 0x2F,
  META_TEMPO = 0x51,
  META_SMPTE = 0x54,
  META_TIMESIG = 0x58,
  META_KEYSIG = 0x59,
  META_BEAT_MARKER = 0x7e,
  META_SEQUENCER_SPECIFIC = 0x7F,
  META_NO_OPERATION = 0x7f
}
enum  MIDIShowCommand {
  MIDI_SC_GO = 0x01,
  MIDI_SC_STOP = 0x02,
  MIDI_SC_RESUME = 0x03,
  MIDI_SC_TIMED_GO = 0x04,
  MIDI_SC_LOAD = 0x05,
  MIDI_SC_SET = 0x06,
  MIDI_SC_FIRE = 0x07,
  MIDI_SC_ALL_OFF = 0x08,
  MIDI_SC_RESTORE = 0x09,
  MIDI_SC_RESET = 0x0a,
  MIDI_SC_GO_OFF = 0x0b,
  MIDI_SC_GO_JAM = 0x10,
  MIDI_SC_STANDBY_PLUS = 0x11,
  MIDI_SC_STANDBY_MINUS = 0x12,
  MIDI_SC_SEQUENCE_PLUS = 0x13,
  MIDI_SC_SEQUENCE_MINUS = 0x14,
  MIDI_SC_START_CLOCK = 0x15,
  MIDI_SC_STOP_CLOCK = 0x16,
  MIDI_SC_ZERO_CLOCK = 0x17,
  MIDI_SC_SET_CLOCK = 0x18,
  MIDI_SC_MTC_CHASE_ON = 0x19,
  MIDI_SC_MTC_CHASE_OFF = 0x1a,
  MIDI_SC_OPEN_Q_LIST = 0x1b,
  MIDI_SC_CLOSE_Q_LIST = 0x1c,
  MIDI_SC_OPEN_Q_PATH = 0x1d,
  MIDI_SC_CLOSE_Q_PATH = 0x1e
}
enum  SMPTE_RATE {
  SMPTE_RATE_24 = 0,
  SMPTE_RATE_25,
  SMPTE_RATE_2997,
  SMPTE_RATE_2997DF,
  SMPTE_RATE_30,
  SMPTE_RATE_30DF
}
enum  SAMPLE_RATE {
  SAMPLE_32000 = 0,
  SAMPLE_44056,
  SAMPLE_44100,
  SAMPLE_47952,
  SAMPLE_48000,
  SAMPLE_48048
}

Functions

signed char GetMessageLength (unsigned char stat)
signed char GetSystemMessageLength (unsigned char stat)
bool IsNoteWhite (unsigned char note)
bool IsNoteBlack (unsigned char note)
int GetNoteOctave (unsigned char note)
MIDICue operator- (const MIDICue &c, const MIDICue &d)
MIDICue operator- (const MIDICue &c, ulong v)
MIDICue operator- (ulong v, const MIDICue &c)
MIDICue operator+ (const MIDICue &c, const MIDICue &d)
MIDICue operator+ (const MIDICue &c, ulong v)
MIDICue operator+ (ulong v, const MIDICue &c)
double GetSMPTERateFrequency (SMPTE_RATE r)
long GetSMPTERateFrequencyLong (SMPTE_RATE r)
double GetSampleRateFrequency (SAMPLE_RATE r)
long GetSampleRateFrequencyLong (SAMPLE_RATE r)
SMPTE operator+ (SMPTE a, SMPTE b)
SMPTE operator- (SMPTE a, SMPTE b)
void FixQuotes (char *s_)

Variables

const unsigned long _MThd = OSTYPE('M','T','h','d')
const unsigned long _MTrk = OSTYPE('M','T','r','k')
const signed char lut_msglen [16]
const signed char lut_sysmsglen [16]
const bool lut_is_white [12]
const int MIDITrackChunkSize = 512
const int MIDIChunksPerTrack = 512
const uchar smpte_max_frames []
const double smpte_smpte_rates []
const double smpte_smpte_rates_long []
const double smpte_sample_rates []
const long smpte_sample_rates_long []


Typedef Documentation

typedef unsigned long jdkmidi::MIDIClockTime
 

Definition at line 43 of file midi.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
NOTE_OFF 
NOTE_ON 
POLY_PRESSURE 
CONTROL_CHANGE 
PROGRAM_CHANGE 
CHANNEL_PRESSURE 
PITCH_BEND 
SYSEX_START 
MTC 
SONG_POSITION 
SONG_SELECT 
TUNE_REQUEST 
SYSEX_END 
RESET 
META_EVENT 

Definition at line 49 of file midi.h.

00050     {
00051       NOTE_OFF  =0x80,
00052       NOTE_ON   =0x90,
00053       POLY_PRESSURE =0xa0,
00054       CONTROL_CHANGE  =0xb0,
00055       PROGRAM_CHANGE  =0xc0,
00056       CHANNEL_PRESSURE=0xd0,
00057       PITCH_BEND  =0xe0,
00058       SYSEX_START =0xf0,
00059       MTC   =0xf1,
00060       SONG_POSITION =0xf2,
00061       SONG_SELECT =0xf3,
00062       TUNE_REQUEST  =0xf6,
00063       SYSEX_END =0xf7,
00064       RESET   =0xff,  // 0xff never used as reset in a MIDIMessage
00065       META_EVENT  =0xff // 0xff is for non MIDI messages
00066     };

anonymous enum
 

Enumeration values:
TIMING_CLOCK 
MEASURE_END 
START 
CONTINUE 
STOP 
ACTIVE_SENSE 

Definition at line 74 of file midi.h.

00075     {
00076       TIMING_CLOCK  =0xf8,
00077       MEASURE_END =0xf9,  // proposed measure end byte
00078       START   =0xfa,
00079       CONTINUE  =0xfb,
00080       STOP    =0xfc,
00081       ACTIVE_SENSE  =0xfe   
00082     };

anonymous enum
 

Enumeration values:
C_LSB 
C_GM_BANK 
C_MODULATION 
C_BREATH 
C_FOOT 
C_PORTA_TIME 
C_DATA_ENTRY 
C_MAIN_VOLUME 
C_BALANCE 
C_PAN 
C_EXPRESSION 
C_GENERAL_1 
C_GENERAL_2 
C_GENERAL_3 
C_GENERAL_4 
C_DAMPER 
C_PORTA 
C_SOSTENUTO 
C_SOFT_PEDAL 
C_HOLD_2 
C_GENERAL_5 
C_GENERAL_6 
C_GENERAL_7 
C_GENERAL_8 
C_EFFECT_DEPTH 
C_TREMELO_DEPTH 
C_CHORUS_DEPTH 
C_CELESTE_DEPTH 
C_PHASER_DEPTH 
C_DATA_INC 
C_DATA_DEC 
C_NONRPN_LSB 
C_NONRPN_MSB 
C_RPN_LSB 
C_RPN_MSB 
C_RESET 
C_LOCAL 
C_ALL_NOTES_OFF 
C_OMNI_OFF 
C_OMNI_ON 
C_MONO 
C_POLY 

Definition at line 89 of file midi.h.

00090     {
00091       C_LSB   =0x20,  // add this to a non-switch controller
00092       // to access the LSB.
00093       
00094       C_GM_BANK =0x00,  // general midi bank select
00095       C_MODULATION  =0x01,  // modulation
00096       C_BREATH  =0x02,  // breath controller
00097       C_FOOT    =0x04,  // foot controller
00098       C_PORTA_TIME  =0x05,  // portamento time
00099       C_DATA_ENTRY  =0x06,  // data entry value
00100       C_MAIN_VOLUME =0x07,  // main volume control
00101       C_BALANCE =0x08,  // balance control
00102       C_PAN   =0x0a,  // panpot stereo control
00103       C_EXPRESSION  =0x0b,  // expression control
00104       C_GENERAL_1 =0x10,  // general purpose controller 1
00105       C_GENERAL_2 =0x11,  // general purpose controller 2
00106       C_GENERAL_3 =0x12,  // general purpose controller 3
00107       C_GENERAL_4 =0x13,  // general purpose controller 4
00108       
00109       C_DAMPER  =0x40,  // hold pedal (sustain)
00110       C_PORTA   =0x41,  // portamento switch
00111       C_SOSTENUTO =0x42,  // sostenuto switch
00112       C_SOFT_PEDAL  =0x43,  // soft pedal
00113       C_HOLD_2  =0x45,  // hold pedal 2
00114       
00115       C_GENERAL_5 =0x50,  // general purpose controller 5
00116       C_GENERAL_6 =0x51,  // general purpose controller 6
00117       C_GENERAL_7 =0x52,  // general purpose controller 7
00118       C_GENERAL_8 =0x53,  // general purpose controller 8
00119       
00120       C_EFFECT_DEPTH  =0x5b,  // external effects depth
00121       C_TREMELO_DEPTH =0x5c,  // tremelo depth
00122       C_CHORUS_DEPTH  =0x5d,  // chorus depth
00123       C_CELESTE_DEPTH =0x5e,  // celeste (detune) depth
00124       C_PHASER_DEPTH  =0x5f,  // phaser effect depth
00125       
00126       C_DATA_INC  =0x60,  // increment data value
00127       C_DATA_DEC  =0x61,  // decrement data value
00128       
00129       C_NONRPN_LSB  =0x62,  // non registered parameter LSB
00130       C_NONRPN_MSB  =0x63,  // non registered parameter MSB
00131       
00132       C_RPN_LSB =0x64,  // registered parameter LSB
00133       C_RPN_MSB =0x65,  // registered parameter MSB
00134       
00135       
00136       
00137       C_RESET   =0x79,  // reset all controllers
00138       
00139       C_LOCAL   =0x79,  // local control on/off
00140       C_ALL_NOTES_OFF =0x7a,  // all notes off
00141       C_OMNI_OFF  =0x7c,  // omni off, all notes off
00142       C_OMNI_ON =0x7d,  // omni on, all notes off
00143       C_MONO    =0x7e,  // mono on, all notes off
00144       C_POLY    =0x7f // poly on, all notes off
00145     };

anonymous enum
 

Enumeration values:
RPN_BEND_WIDTH 
RPN_FINE_TUNE 
RPN_COARSE_TUNE 

Definition at line 152 of file midi.h.

00153     {
00154       RPN_BEND_WIDTH  =0x00,  // bender sensitivity
00155       RPN_FINE_TUNE =0x01,  // fine tuning
00156       RPN_COARSE_TUNE =0x02 // coarse tuning
00157     };

anonymous enum
 

Enumeration values:
META_SEQUENCE_NUMBER 
META_GENERIC_TEXT 
META_COPYRIGHT 
META_INSTRUMENT_NAME 
META_TRACK_NAME 
META_LYRIC_TEXT 
META_MARKER_TEXT 
META_CUE_TEXT 
META_OUTPUT_CABLE 
META_TRACK_LOOP 
META_DATA_END 
META_END_OF_TRACK 
META_TEMPO 
META_SMPTE 
META_TIMESIG 
META_KEYSIG 
META_BEAT_MARKER 
META_SEQUENCER_SPECIFIC 
META_NO_OPERATION 

Definition at line 170 of file midi.h.

00171     {
00172       META_SEQUENCE_NUMBER  =0x00,  // value=16 bits. type 2 files
00173       
00174       META_GENERIC_TEXT =0x01,  // value=16 bits, text item #
00175       META_COPYRIGHT    =0x02,  // value=17 bits, text item #
00176       META_INSTRUMENT_NAME  =0x03,
00177       META_TRACK_NAME   =0x04,
00178       META_LYRIC_TEXT   =0x05,
00179       META_MARKER_TEXT  =0x06,
00180       META_CUE_TEXT   =0x07,      
00181      
00182       META_OUTPUT_CABLE =0x21,
00183       META_TRACK_LOOP   =0x2E,
00184       META_DATA_END   =0x2f,      
00185       META_END_OF_TRACK =0x2F,
00186       META_TEMPO    =0x51,  // value=16 bits, tempo(bpm)*256
00187       META_SMPTE    =0x54,  // what for?
00188       META_TIMESIG    =0x58,  // value=num, denom
00189       META_KEYSIG   =0x59,  // value=# of sharps/flats, major/minor
00190       META_BEAT_MARKER =0x7e,
00191       META_SEQUENCER_SPECIFIC =0x7F,
00192       META_NO_OPERATION =0x7f
00193       
00194     };

enum jdkmidi::MIDIAccidentalType
 

Enumeration values:
ACCFlat 
ACCNatural 
ACCSharp 

Definition at line 41 of file keysig.h.

00042     {
00043       ACCFlat=0,
00044       ACCNatural,
00045       ACCSharp  
00046     };

enum jdkmidi::MIDIShowCommand
 

Enumeration values:
MIDI_SC_GO 
MIDI_SC_STOP 
MIDI_SC_RESUME 
MIDI_SC_TIMED_GO 
MIDI_SC_LOAD 
MIDI_SC_SET 
MIDI_SC_FIRE 
MIDI_SC_ALL_OFF 
MIDI_SC_RESTORE 
MIDI_SC_RESET 
MIDI_SC_GO_OFF 
MIDI_SC_GO_JAM 
MIDI_SC_STANDBY_PLUS 
MIDI_SC_STANDBY_MINUS 
MIDI_SC_SEQUENCE_PLUS 
MIDI_SC_SEQUENCE_MINUS 
MIDI_SC_START_CLOCK 
MIDI_SC_STOP_CLOCK 
MIDI_SC_ZERO_CLOCK 
MIDI_SC_SET_CLOCK 
MIDI_SC_MTC_CHASE_ON 
MIDI_SC_MTC_CHASE_OFF 
MIDI_SC_OPEN_Q_LIST 
MIDI_SC_CLOSE_Q_LIST 
MIDI_SC_OPEN_Q_PATH 
MIDI_SC_CLOSE_Q_PATH 

Definition at line 268 of file showcontrol.h.

00269     {
00270       MIDI_SC_GO    = 0x01,
00271       MIDI_SC_STOP    = 0x02,
00272       MIDI_SC_RESUME    = 0x03,
00273       MIDI_SC_TIMED_GO  = 0x04,
00274       MIDI_SC_LOAD    = 0x05,
00275       MIDI_SC_SET   = 0x06,
00276       MIDI_SC_FIRE    = 0x07,
00277       MIDI_SC_ALL_OFF   = 0x08,
00278       MIDI_SC_RESTORE   = 0x09,
00279       MIDI_SC_RESET   = 0x0a,
00280       MIDI_SC_GO_OFF    = 0x0b,
00281       MIDI_SC_GO_JAM    = 0x10,
00282       MIDI_SC_STANDBY_PLUS  = 0x11,
00283       MIDI_SC_STANDBY_MINUS = 0x12,
00284       MIDI_SC_SEQUENCE_PLUS = 0x13,
00285       MIDI_SC_SEQUENCE_MINUS  = 0x14,
00286       MIDI_SC_START_CLOCK = 0x15,
00287       MIDI_SC_STOP_CLOCK  = 0x16,
00288       MIDI_SC_ZERO_CLOCK  = 0x17,
00289       MIDI_SC_SET_CLOCK = 0x18,
00290       MIDI_SC_MTC_CHASE_ON  = 0x19,
00291       MIDI_SC_MTC_CHASE_OFF = 0x1a,
00292       MIDI_SC_OPEN_Q_LIST = 0x1b,
00293       MIDI_SC_CLOSE_Q_LIST  = 0x1c,
00294       MIDI_SC_OPEN_Q_PATH = 0x1d,
00295       MIDI_SC_CLOSE_Q_PATH  = 0x1e
00296     };

enum jdkmidi::SAMPLE_RATE
 

Enumeration values:
SAMPLE_32000 
SAMPLE_44056 
SAMPLE_44100 
SAMPLE_47952 
SAMPLE_48000 
SAMPLE_48048 

Definition at line 52 of file smpte.h.

00053     {
00054       SAMPLE_32000=0,
00055       SAMPLE_44056,
00056       SAMPLE_44100,
00057       SAMPLE_47952,
00058       SAMPLE_48000,
00059       SAMPLE_48048
00060     };

enum jdkmidi::SMPTE_RATE
 

Enumeration values:
SMPTE_RATE_24 
SMPTE_RATE_25 
SMPTE_RATE_2997 
SMPTE_RATE_2997DF 
SMPTE_RATE_30 
SMPTE_RATE_30DF 

Definition at line 40 of file smpte.h.

00041     {
00042       SMPTE_RATE_24=0,
00043       SMPTE_RATE_25,
00044       SMPTE_RATE_2997,
00045       SMPTE_RATE_2997DF,
00046       SMPTE_RATE_30,
00047       SMPTE_RATE_30DF
00048     };


Function Documentation

void jdkmidi::FixQuotes char *  s_  )  [static]
 

Definition at line 7 of file jdkmidi_advancedsequencer.cpp.

00008   {
00009     unsigned char *s = (unsigned char *)s_;
00010     while( *s )
00011     {
00012       if( *s==0xd2 || *s==0xd3 )
00013       {
00014         *s='"';
00015       }
00016       else if( *s==0xd5 )
00017       {
00018         *s='\'';
00019       }
00020       else if( *s>=0x80 )
00021       {
00022         *s = ' ';
00023       }
00024       s++;
00025     }
00026   }

signed char GetMessageLength unsigned char  stat  )  [inline]
 

Definition at line 205 of file midi.h.

References lut_msglen.

00206     { 
00207       return lut_msglen[stat>>4]; 
00208     }

int GetNoteOctave unsigned char  note  )  [inline]
 

Definition at line 235 of file midi.h.

00236     { return (note/12)-1; }

double GetSampleRateFrequency SAMPLE_RATE  r  )  [inline]
 

Definition at line 95 of file smpte.h.

References smpte_sample_rates.

00096     {
00097       extern const double smpte_sample_rates[];
00098       
00099       return smpte_sample_rates[(int)r];
00100     }

long GetSampleRateFrequencyLong SAMPLE_RATE  r  )  [inline]
 

Definition at line 109 of file smpte.h.

References smpte_sample_rates_long.

00110     {
00111       // return the sample rate as a long word of the frequency times 10.
00112       
00113       extern const long smpte_sample_rates_long[];
00114       return smpte_sample_rates_long[(int)r];
00115     }

double GetSMPTERateFrequency SMPTE_RATE  r  )  [inline]
 

Definition at line 69 of file smpte.h.

References smpte_smpte_rates.

00070     {
00071       extern const double smpte_smpte_rates[];
00072       
00073       return smpte_smpte_rates[(int)r];
00074     }

long GetSMPTERateFrequencyLong SMPTE_RATE  r  )  [inline]
 

Definition at line 82 of file smpte.h.

References smpte_smpte_rates_long.

00083     {
00084       extern const double smpte_smpte_rates_long[];
00085       
00086       return (long)smpte_smpte_rates_long[(int)r];
00087     }

signed char GetSystemMessageLength unsigned char  stat  )  [inline]
 

Definition at line 210 of file midi.h.

References lut_sysmsglen.

00211     { 
00212       return lut_sysmsglen[stat-0xf0];  
00213     }

bool IsNoteBlack unsigned char  note  )  [inline]
 

Definition at line 225 of file midi.h.

References lut_is_white.

00226     { 
00227       return !lut_is_white[ note%12 ];  
00228     }

bool IsNoteWhite unsigned char  note  )  [inline]
 

Definition at line 220 of file midi.h.

References lut_is_white.

00221     { 
00222       return lut_is_white[ note%12 ]; 
00223     }

SMPTE operator+ SMPTE  a,
SMPTE  b
[inline]
 

Definition at line 224 of file smpte.h.

00225     {
00226       SMPTE c(a);
00227       
00228       c+=b;
00229       return c;
00230     }

MIDICue operator+ ulong  v,
const MIDICue &  c
[inline]
 

Definition at line 258 of file showcontrol.h.

References ulong, and jdkmidi::MIDICue::v1.

00259     {
00260       MIDICue result(v + c.v1 );
00261       
00262       return result;
00263     }

MIDICue operator+ const MIDICue &  c,
ulong  v
[inline]
 

Definition at line 249 of file showcontrol.h.

References ulong, and jdkmidi::MIDICue::v1.

00250     {
00251       MIDICue result(c);
00252       
00253       result.v1 += v;
00254       return result;
00255       
00256     }

MIDICue operator+ const MIDICue &  c,
const MIDICue &  d
[inline]
 

Definition at line 237 of file showcontrol.h.

References jdkmidi::MIDICue::v1, jdkmidi::MIDICue::v2, and jdkmidi::MIDICue::v3.

00238     {
00239       MIDICue result=c;
00240       
00241       result.v1 += d.v1;
00242       result.v2 += d.v2;
00243       result.v3 += d.v3;
00244       
00245       return result;
00246       
00247     }

SMPTE operator- SMPTE  a,
SMPTE  b
[inline]
 

Definition at line 232 of file smpte.h.

00233     {
00234       SMPTE c(a);
00235       
00236       c-=b;
00237       return c;
00238     }

MIDICue operator- ulong  v,
const MIDICue &  c
[inline]
 

Definition at line 230 of file showcontrol.h.

References ulong, and jdkmidi::MIDICue::v1.

00231     {
00232       MIDICue result(v - c.v1 );
00233       
00234       return result;
00235     }

MIDICue operator- const MIDICue &  c,
ulong  v
[inline]
 

Definition at line 222 of file showcontrol.h.

References ulong, and jdkmidi::MIDICue::v1.

00223     {
00224       MIDICue result(c);
00225       
00226       result.v1 -= v;
00227       return result;
00228     }

MIDICue operator- const MIDICue &  c,
const MIDICue &  d
[inline]
 

Definition at line 211 of file showcontrol.h.

References jdkmidi::MIDICue::v1, jdkmidi::MIDICue::v2, and jdkmidi::MIDICue::v3.

00212     {
00213       MIDICue result=c;
00214       
00215       result.v1 -= d.v1;
00216       result.v2 -= d.v2;
00217       result.v3 -= d.v3;
00218       
00219       return result;
00220     }


Variable Documentation

const unsigned long jdkmidi::_MThd = OSTYPE('M','T','h','d')
 

Definition at line 53 of file file.h.

const unsigned long jdkmidi::_MTrk = OSTYPE('M','T','r','k')
 

Definition at line 54 of file file.h.

const bool jdkmidi::lut_is_white
 

Initial value:

  {



    1,0,  1,0,  1,   1,0, 1,0, 1,0, 1
  }

Definition at line 77 of file jdkmidi_midi.cpp.

const signed char jdkmidi::lut_msglen
 

Initial value:

  {
    0,0,0,0,0,0,0,0,
    3,  
    3,  
    3,  
    3,  
    2,  
    2,  
    3,  
    -1  
  }

Definition at line 43 of file jdkmidi_midi.cpp.

const signed char jdkmidi::lut_sysmsglen
 

Initial value:

  {
    -1, 
    2,  
    3,  
    2,  
    0,  
    0,  
    1,  
    0,  
    1,  
    1,  
    1,  
    1,  
    1,  
    0,  
    1,  
    3 
  }

Definition at line 56 of file jdkmidi_midi.cpp.

const int jdkmidi::MIDIChunksPerTrack = 512
 

Definition at line 58 of file track.h.

const int jdkmidi::MIDITrackChunkSize = 512
 

Definition at line 44 of file track.h.

const uchar jdkmidi::smpte_max_frames[]
 

Initial value:

  {
    24, 25, 30, 30, 30, 30
  }

Definition at line 52 of file jdkmidi_smpte.cpp.

const double jdkmidi::smpte_sample_rates[]
 

Initial value:

  {
    32000.0,
    44055.9,
    44100.0,
    47952.0,
    48000.0,
    48048.0
  }

Definition at line 78 of file jdkmidi_smpte.cpp.

const long jdkmidi::smpte_sample_rates_long[]
 

Initial value:

  {
    320000,
    440559,
    441000,
    479520,
    480000,
    480480
  }

Definition at line 88 of file jdkmidi_smpte.cpp.

const double jdkmidi::smpte_smpte_rates[]
 

Initial value:

 
  {
    24.0,
    25.0,
    29.97,
    29.97,
    30.0,
    30.0
  }

Definition at line 57 of file jdkmidi_smpte.cpp.

const double jdkmidi::smpte_smpte_rates_long[]
 

Initial value:

 
  {
    2400,
    2500,
    2997,
    2997,
    3000,
    3000
  }

Definition at line 67 of file jdkmidi_smpte.cpp.