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::MIDIShowControlPacket Class Reference

#include <showcontrol.h>

List of all members.

Public Member Functions

 MIDIShowControlPacket ()
void Put_Go ()
void Put_Go (const MIDICue &q_number)
void Put_Go (const MIDICue &q_number, const MIDICue &q_list)
void Put_Go (const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_Stop ()
void Put_Stop (const MIDICue &q_number)
void Put_Stop (const MIDICue &q_number, const MIDICue &q_list)
void Put_Stop (const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_Resume ()
void Put_Resume (const MIDICue &q_number)
void Put_Resume (const MIDICue &q_number, const MIDICue &q_list)
void Put_Resume (const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_TimedGo (uchar hr, uchar mn, uchar sc, uchar fr, uchar ff)
void Put_TimedGo (uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, const MIDICue &q_number)
void Put_TimedGo (uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, const MIDICue &q_number, const MIDICue &q_list)
void Put_TimedGo (uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_Load (const MIDICue &q_number)
void Put_Load (const MIDICue &q_number, const MIDICue &q_list)
void Put_Load (const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_Set (ulong ctrl_num, ulong ctrl_val)
void Put_Set (ulong ctrl_num, ulong ctrl_val, uchar hr, uchar mn, uchar sc, uchar fr, uchar ff)
void Put_Fire (uchar macro_num)
void Put_AllOff ()
void Put_Restore ()
void Put_Reset ()
void Put_GoOff ()
void Put_GoOff (const MIDICue &q_number)
void Put_GoOff (const MIDICue &q_number, const MIDICue &q_list)
void Put_GoOff (const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_GoJam ()
void Put_GoJam (const MIDICue &q_number)
void Put_GoJam (const MIDICue &q_number, const MIDICue &q_list)
void Put_GoJam (const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
void Put_StandbyPlus ()
void Put_StandbyPlus (const MIDICue &q_list)
void Put_StandbyMinus ()
void Put_StandbyMinus (const MIDICue &q_list)
void Put_SequencePlus ()
void Put_SequencePlus (const MIDICue &q_list)
void Put_SequenceMinus ()
void Put_SequenceMinus (const MIDICue &q_list)
void Put_StartClock ()
void Put_StartClock (const MIDICue &q_list)
void Put_StopClock ()
void Put_StopClock (const MIDICue &q_list)
void Put_ZeroClock ()
void Put_ZeroClock (const MIDICue &q_list)
void Put_SetClock (uchar hr, uchar mn, uchar sc, uchar fr, uchar ff)
void Put_SetClock (uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, const MIDICue &q_list)
void Put_MTCChaseOn ()
void Put_MTCChaseOn (const MIDICue &q_list)
void Put_MTCChaseOff ()
void Put_MTCChaseOff (const MIDICue &q_list)
void Put_OpenQList (const MIDICue &q_list)
void Put_CloseQList (const MIDICue &q_list)
void Put_OpenQPath (const MIDICue &q_path)
void Put_CloseQPath (const MIDICue &q_path)
bool ParseEntireSysEx (const MIDISystemExclusive *e)
bool StoreToSysEx (MIDISystemExclusive *e) const

Protected Member Functions

bool StoreTime (MIDISystemExclusive *e) const
bool ParseTime (const MIDISystemExclusive *e, int *pos)
bool Store3Param (MIDISystemExclusive *e) const
bool Parse3Param (const MIDISystemExclusive *e, int *pos)
bool StoreSet (MIDISystemExclusive *e) const
bool ParseSet (const MIDISystemExclusive *e, int *pos)
bool StoreFire (MIDISystemExclusive *e) const
bool ParseFire (const MIDISystemExclusive *e, int *pos)
bool StoreQPath (MIDISystemExclusive *e) const
bool ParseQPath (const MIDISystemExclusive *e, int *pos)
bool StoreQList (MIDISystemExclusive *e) const
bool ParseQList (const MIDISystemExclusive *e, int *pos)
bool StoreAscii (MIDISystemExclusive *e, const char *str) const
bool StoreAsciiNum (MIDISystemExclusive *e, const MIDICue &num) const
bool ParseAsciiNum (const MIDISystemExclusive *e, int *pos, MIDICue *num)
bool ParseAsciiNum (const MIDISystemExclusive *e, int *pos, ulong *num)
void ClearVariableStuff ()
void Put_Simple0 (MIDIShowCommand cmd)
void Put_Simple1 (MIDIShowCommand cmd, const MIDICue &q_number)
void Put_Simple2 (MIDIShowCommand cmd, const MIDICue &q_number, const MIDICue &q_list)
void Put_Simple3 (MIDIShowCommand cmd, const MIDICue &q_number, const MIDICue &q_list, const MIDICue &q_path)
 _ATTRIBUTE (uchar, DeviceId)
 _ATTRIBUTE (uchar, CommandFmt)
 _ATTRIBUTE (MIDIShowCommand, Command)
 _ATTRIBUTE (bool, HasTime)
 _ATTRIBUTE (bool, HasQNumber)
 _ATTRIBUTE (bool, HasQList)
 _ATTRIBUTE (bool, HasQPath)
 _ATTRIBUTE (uchar, Hours)
 _ATTRIBUTE (uchar, Minutes)
 _ATTRIBUTE (uchar, Seconds)
 _ATTRIBUTE (uchar, Frames)
 _ATTRIBUTE (uchar, FractFrames)
 _ATTRIBUTE_REF (MIDICue, QNumber)
 _ATTRIBUTE_REF (MIDICue, QList)
 _ATTRIBUTE_REF (MIDICue, QPath)
 _ATTRIBUTE (ulong, Val1)
 _ATTRIBUTE (ulong, Val2)
 _ACCESS (ulong, MacroNum, Val1)
 _ACCESS (ulong, ControlNum, Val1)
 _ACCESS (ulong, ControlVal, Val2)


Constructor & Destructor Documentation

jdkmidi::MIDIShowControlPacket::MIDIShowControlPacket  ) 
 

Definition at line 32 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDI_SC_GO.

00033     :
00034     QNumber(0),
00035     QList(0),
00036     QPath(0)
00037   {
00038     DeviceId=0;
00039     CommandFmt=0;
00040     Command=MIDI_SC_GO;
00041     HasTime=false;
00042     HasQNumber=false;
00043     HasQList=false;
00044     HasQPath=false;
00045     Hours=0;
00046     Minutes=0;
00047     Seconds=0;
00048     Frames=0;
00049     FractFrames=0;
00050     Val1=0;
00051     Val2=0;
00052   }
  


Member Function Documentation

jdkmidi::MIDIShowControlPacket::_ACCESS ulong  ,
ControlVal  ,
Val2 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ACCESS ulong  ,
ControlNum  ,
Val1 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ACCESS ulong  ,
MacroNum  ,
Val1 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE ulong  ,
Val2 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE ulong  ,
Val1 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
FractFrames 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
Frames 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
Seconds 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
Minutes 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
Hours 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE bool  ,
HasQPath 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE bool  ,
HasQList 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE bool  ,
HasQNumber 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE bool  ,
HasTime 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE MIDIShowCommand  ,
Command 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
CommandFmt 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE uchar  ,
DeviceId 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE_REF MIDICue  ,
QPath 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE_REF MIDICue  ,
QList 
[protected]
 

jdkmidi::MIDIShowControlPacket::_ATTRIBUTE_REF MIDICue  ,
QNumber 
[protected]
 

void jdkmidi::MIDIShowControlPacket::ClearVariableStuff  )  [protected]
 

Definition at line 54 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDI_SC_GO.

00055   {
00056     QNumber.Clear();
00057     QList.Clear();
00058     QPath.Clear();
00059     
00060     Command=MIDI_SC_GO;
00061     HasTime=false;
00062     HasQNumber=false;
00063     HasQList=false;
00064     HasQPath=false;
00065     Hours=0;
00066     Minutes=0;
00067     Seconds=0;
00068     Frames=0;
00069     FractFrames=0;
00070     Val1=0;
00071     Val2=0;
00072   }

bool jdkmidi::MIDIShowControlPacket::Parse3Param const MIDISystemExclusive e,
int *  pos
[protected]
 

Definition at line 320 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData(), jdkmidi::MIDISystemExclusive::GetLength(), and ParseAsciiNum().

00324   {
00325     bool f=true;
00326     MIDICue v;
00327     
00328     if( e->GetData( *pos) !=0xf7 )
00329     {
00330       //
00331       // Read the Q number
00332       //
00333       
00334       f=ParseAsciiNum( e, pos, &v );
00335       
00336       if( f )
00337       {
00338         HasQNumber=true;
00339         SetQNumber( v );
00340         
00341         if( *pos < e->GetLength()  )
00342         {
00343           //
00344           // read the q list
00345           //
00346           
00347           f=ParseAsciiNum( e, pos, &v );
00348           
00349           if( f )
00350           {
00351             HasQList=true;
00352             SetQList( v );
00353             
00354             if( *pos < e->GetLength() )
00355             {
00356               //
00357               // read the q path
00358               //
00359               
00360               f=ParseAsciiNum( e, pos, &v );
00361               
00362               if( f )
00363               {
00364                 HasQPath=true;
00365                 SetQPath( v );
00366                 
00367               }
00368               
00369             }
00370           }
00371           
00372         }
00373       }
00374     }
00375     
00376     return f;
00377   }

bool jdkmidi::MIDIShowControlPacket::ParseAsciiNum const MIDISystemExclusive e,
int *  pos,
ulong num
[protected]
 

Definition at line 655 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData(), jdkmidi::MIDISystemExclusive::GetLength(), uchar, and ulong.

00660   {
00661     bool f=true;
00662     ulong v=0;
00663     uchar c=0;
00664     
00665     //
00666     // Read ascii decimal digits until '.' or 0x00 or 0xf7
00667     //
00668     
00669     while(*pos<e->GetLength())
00670     {
00671       c=e->GetData( (*pos) );
00672       
00673       if( c>='0' && c<='9' )
00674       {
00675         //
00676         // If the character is ascii number then shift our current value and 
00677         // add the digit
00678         //
00679         
00680         v*=10;
00681         v+=c-'0';
00682       }
00683       else if( c==0x00 || c==0xf7 || c=='.' )
00684       {
00685         //
00686         // If the character is 0 or EOX or . then this field is over
00687         //
00688         
00689         *num=v;
00690         
00691         return f;
00692       }
00693       (*pos)++;
00694     }
00695     
00696     *num=v;
00697     return false;
00698   }

bool jdkmidi::MIDIShowControlPacket::ParseAsciiNum const MIDISystemExclusive e,
int *  pos,
MIDICue num
[protected]
 

Definition at line 547 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData(), jdkmidi::MIDISystemExclusive::GetLength(), jdkmidi::MIDICue::SetNumValues(), jdkmidi::MIDICue::SetV1(), jdkmidi::MIDICue::SetV2(), jdkmidi::MIDICue::SetV3(), uchar, and ulong.

00551   {
00552     ulong v;
00553     uchar c;
00554     bool f;
00555     
00556     // check if there is a field
00557     
00558     c= e->GetData( *pos );
00559     
00560     if( c==0xf7 )
00561     {
00562       // no field
00563       
00564       return false;
00565     }
00566     
00567     f=ParseAsciiNum( e, pos, &v );
00568     
00569     if( f )
00570     {
00571       num->SetNumValues(1);
00572       num->SetV1( v );
00573     }
00574     
00575     //
00576     // Is there another field?
00577     //
00578     
00579     c= e->GetData( *pos );
00580     
00581     if( c=='.' )
00582     {
00583       //
00584       // yes read it
00585       //
00586       
00587       (*pos)++;
00588       
00589       f=ParseAsciiNum( e,pos,&v );
00590       
00591       if( f )
00592       {
00593         num->SetNumValues(2);
00594         num->SetV2( v );
00595       }
00596       
00597       //
00598       // Is there another field?
00599       //
00600       
00601       c= e->GetData( *pos );
00602       
00603       if( c=='.' )
00604       {
00605         //
00606         // yes read it
00607         //
00608         
00609         (*pos)++;
00610         
00611         f=ParseAsciiNum( e,pos,&v );
00612         
00613         if( f )
00614         {
00615           num->SetNumValues(2);
00616           num->SetV3( v );
00617         }
00618         
00619         //
00620         // Is there more fields?
00621         //
00622         
00623         c= e->GetData( *pos );
00624         
00625         if( c=='.' )
00626         {
00627           //
00628           // Yes, skip them
00629           //
00630           
00631           while( *pos < e->GetLength() )
00632           {
00633             c=e->GetData( (*pos) );
00634             
00635             if( c==0xf7 || c==0x00 )
00636             {
00637               break;
00638             }
00639             (*pos)++;
00640           }
00641         }
00642       }
00643     }
00644     
00645     while( ++(*pos) < e->GetLength() )
00646     {
00647       if( e->GetData( *pos )!=0 )
00648         break;
00649     }
00650     
00651     return f;
00652   }

bool jdkmidi::MIDIShowControlPacket::ParseEntireSysEx const MIDISystemExclusive e  ) 
 

Definition at line 75 of file jdkmidi_showcontrol.cpp.

References ClearVariableStuff(), jdkmidi::MIDISystemExclusive::GetData(), jdkmidi::MIDISystemExclusive::GetLength(), jdkmidi::MIDI_SC_ALL_OFF, jdkmidi::MIDI_SC_CLOSE_Q_LIST, jdkmidi::MIDI_SC_CLOSE_Q_PATH, jdkmidi::MIDI_SC_FIRE, jdkmidi::MIDI_SC_GO, jdkmidi::MIDI_SC_GO_JAM, jdkmidi::MIDI_SC_GO_OFF, jdkmidi::MIDI_SC_LOAD, jdkmidi::MIDI_SC_MTC_CHASE_OFF, jdkmidi::MIDI_SC_MTC_CHASE_ON, jdkmidi::MIDI_SC_OPEN_Q_LIST, jdkmidi::MIDI_SC_OPEN_Q_PATH, jdkmidi::MIDI_SC_RESET, jdkmidi::MIDI_SC_RESTORE, jdkmidi::MIDI_SC_RESUME, jdkmidi::MIDI_SC_SEQUENCE_MINUS, jdkmidi::MIDI_SC_SEQUENCE_PLUS, jdkmidi::MIDI_SC_SET, jdkmidi::MIDI_SC_SET_CLOCK, jdkmidi::MIDI_SC_STANDBY_MINUS, jdkmidi::MIDI_SC_STANDBY_PLUS, jdkmidi::MIDI_SC_START_CLOCK, jdkmidi::MIDI_SC_STOP, jdkmidi::MIDI_SC_STOP_CLOCK, jdkmidi::MIDI_SC_TIMED_GO, jdkmidi::MIDI_SC_ZERO_CLOCK, jdkmidi::MIDIShowCommand, Parse3Param(), ParseFire(), ParseQList(), ParseQPath(), ParseSet(), and ParseTime().

00076   {
00077     bool f=true;
00078     int pos = 0;
00079     
00080     if( e->GetData( pos++ )!=0xf0 )
00081       return false;
00082     if( e->GetData( pos++ )!=0x7f )
00083       return false;
00084     
00085     ClearVariableStuff();
00086     
00087     DeviceId=e->GetData( pos++ );
00088     
00089     if( e->GetData(pos++)!=0x02 )
00090       return false;
00091     
00092     CommandFmt = e->GetData( pos++ );
00093     Command = (MIDIShowCommand) e->GetData(pos++);
00094     
00095     switch( Command )
00096     {
00097     case MIDI_SC_GO:
00098     case  MIDI_SC_STOP: 
00099     case  MIDI_SC_RESUME: 
00100     case  MIDI_SC_LOAD: 
00101     case  MIDI_SC_GO_OFF: 
00102     case  MIDI_SC_GO_JAM: 
00103     {
00104       f&=Parse3Param( e, &pos );
00105     }
00106     break;
00107     case  MIDI_SC_TIMED_GO:
00108     {
00109       f&=ParseTime( e, &pos );
00110       f&=Parse3Param(e,&pos);
00111     }
00112     break;
00113     case  MIDI_SC_SET:
00114     {
00115       f&=ParseSet(e,&pos);  
00116     }
00117     break;
00118     case  MIDI_SC_FIRE:
00119     {
00120       f&=ParseFire(e,&pos);     
00121     }
00122     break;
00123     case  MIDI_SC_ALL_OFF:
00124     case  MIDI_SC_RESTORE:
00125     case  MIDI_SC_RESET:  
00126       // no additional params.  
00127       break;
00128       
00129     case  MIDI_SC_STANDBY_PLUS:
00130     case  MIDI_SC_STANDBY_MINUS:
00131     case  MIDI_SC_SEQUENCE_PLUS:  
00132     case  MIDI_SC_SEQUENCE_MINUS: 
00133     case  MIDI_SC_START_CLOCK:  
00134     case  MIDI_SC_STOP_CLOCK: 
00135     case  MIDI_SC_ZERO_CLOCK: 
00136     case  MIDI_SC_MTC_CHASE_ON: 
00137     case  MIDI_SC_MTC_CHASE_OFF:    
00138     {
00139       if( e->GetData(pos)!=0xf7 && e->GetData(pos)!=0  )
00140         f&=ParseQList( e,&pos );
00141     }
00142     break;
00143     case  MIDI_SC_SET_CLOCK:
00144     {
00145       f&=ParseTime(e,&pos);
00146       if( e->GetData(pos)!=0xf7 && e->GetData(pos)!=0  )      
00147         f&=ParseQList(e,&pos);
00148     }
00149     break;
00150     case  MIDI_SC_OPEN_Q_LIST:  
00151     case  MIDI_SC_CLOSE_Q_LIST: 
00152     {
00153       f&=ParseQList(e,&pos);  
00154     }
00155     break;
00156     case  MIDI_SC_OPEN_Q_PATH:
00157     case  MIDI_SC_CLOSE_Q_PATH: 
00158     {
00159       f&=ParseQPath(e,&pos ); 
00160     }
00161     break;
00162     default:
00163       f=false;  // unrecognized command
00164       break;
00165     }
00166     
00167     if( e->GetLength() < pos )
00168     {
00169       return false;
00170     }
00171     
00172     return f;
00173   }

bool jdkmidi::MIDIShowControlPacket::ParseFire const MIDISystemExclusive e,
int *  pos
[protected]
 

Definition at line 424 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData().

00425   {
00426     int v;
00427     
00428     v=e->GetData( (*pos)++ );
00429     SetMacroNum( v );
00430     
00431     return true;
00432   }

bool jdkmidi::MIDIShowControlPacket::ParseQList const MIDISystemExclusive e,
int *  pos
[protected]
 

Definition at line 483 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData(), and ParseAsciiNum().

00484   {
00485     bool f=true;
00486     MIDICue v;
00487     
00488     if( e->GetData( *pos) !=0xf7 )
00489     {
00490       //
00491       // Read the Q list
00492       //
00493       
00494       f=ParseAsciiNum( e, pos, &v );
00495       
00496       SetQList( v );
00497       HasQList=true;
00498       
00499       return f;
00500     }
00501     else
00502     {
00503       return false; 
00504     } 
00505   }

bool jdkmidi::MIDIShowControlPacket::ParseQPath const MIDISystemExclusive e,
int *  pos
[protected]
 

Definition at line 446 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData(), and ParseAsciiNum().

00447   {
00448     bool f=true;
00449     MIDICue v;
00450     
00451     if( e->GetData( *pos) !=0xf7 )
00452     {
00453       //
00454       // Read the Q Path
00455       //
00456       
00457       f=ParseAsciiNum( e, pos, &v );
00458       
00459       SetQPath( v );
00460       HasQPath=true;
00461       
00462       return f;
00463     }
00464     else
00465     {
00466       return false; 
00467     }
00468     
00469   }

bool jdkmidi::MIDIShowControlPacket::ParseSet const MIDISystemExclusive e,
int *  pos
[protected]
 

Definition at line 395 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData(), ParseTime(), and ulong.

00396   {
00397     ulong v;
00398     
00399     v=e->GetData( (*pos)++ );
00400     v+=(e->GetData( (*pos)++ )<<7);
00401     SetControlNum( v );
00402     
00403     v=e->GetData( (*pos)++ );
00404     v+=(e->GetData( (*pos)++ )<<7);
00405     SetControlVal(  v );
00406     
00407     if( e->GetData(*pos)!=0xf7 )
00408     {
00409       return ParseTime( e, pos ); 
00410     }
00411     else
00412     {
00413       return true;  
00414     }
00415     
00416   }

bool jdkmidi::MIDIShowControlPacket::ParseTime const MIDISystemExclusive e,
int *  pos
[protected]
 

Definition at line 285 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::GetData().

00286   {
00287     
00288     Hours = e->GetData( (*pos)++ );
00289     Minutes = e->GetData( (*pos)++ );
00290     Seconds = e->GetData( (*pos)++ );
00291     Frames = e->GetData( (*pos)++ );
00292     FractFrames = e->GetData( (*pos)++ ); 
00293     return true;
00294   }

void jdkmidi::MIDIShowControlPacket::Put_AllOff  )  [inline]
 

Definition at line 436 of file showcontrol.h.

References jdkmidi::MIDI_SC_ALL_OFF, and Put_Simple0().

00437         { Put_Simple0( MIDI_SC_ALL_OFF );   }     

void jdkmidi::MIDIShowControlPacket::Put_CloseQList const MIDICue q_list  )  [inline]
 

Definition at line 595 of file showcontrol.h.

References jdkmidi::MIDI_SC_CLOSE_Q_LIST, and Put_Simple0().

00596         { 
00597           Put_Simple0( MIDI_SC_CLOSE_Q_LIST );  
00598           SetQList(q_list);
00599           SetHasQList(true);
00600         }

void jdkmidi::MIDIShowControlPacket::Put_CloseQPath const MIDICue q_path  )  [inline]
 

Definition at line 609 of file showcontrol.h.

References jdkmidi::MIDI_SC_CLOSE_Q_PATH, and Put_Simple0().

00610         { 
00611           Put_Simple0( MIDI_SC_CLOSE_Q_PATH );  
00612           SetQPath(q_path);
00613           SetHasQPath(true);
00614         }

void jdkmidi::MIDIShowControlPacket::Put_Fire uchar  macro_num  )  [inline]
 

Definition at line 433 of file showcontrol.h.

References jdkmidi::MIDI_SC_ALL_OFF, Put_Simple0(), and uchar.

00434         { Put_Simple0( MIDI_SC_ALL_OFF );  SetMacroNum(macro_num);  }     

void jdkmidi::MIDIShowControlPacket::Put_Go const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 313 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO, and Put_Simple3().

00314         { Put_Simple3( MIDI_SC_GO, q_number, q_list, q_path );  }

void jdkmidi::MIDIShowControlPacket::Put_Go const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 310 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO, and Put_Simple2().

00311         { Put_Simple2( MIDI_SC_GO, q_number, q_list );  }

void jdkmidi::MIDIShowControlPacket::Put_Go const MIDICue q_number  )  [inline]
 

Definition at line 307 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO, and Put_Simple1().

00308         { Put_Simple1( MIDI_SC_GO, q_number );  }

void jdkmidi::MIDIShowControlPacket::Put_Go  )  [inline]
 

Definition at line 304 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO, and Put_Simple0().

00305         { Put_Simple0( MIDI_SC_GO );    }

void jdkmidi::MIDIShowControlPacket::Put_GoJam const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 466 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_JAM, and Put_Simple3().

00467         { Put_Simple3( MIDI_SC_GO_JAM, q_number, q_list, q_path );  }       

void jdkmidi::MIDIShowControlPacket::Put_GoJam const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 463 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_JAM, and Put_Simple2().

00464         { Put_Simple2( MIDI_SC_GO_JAM, q_number, q_list );  }       

void jdkmidi::MIDIShowControlPacket::Put_GoJam const MIDICue q_number  )  [inline]
 

Definition at line 460 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_JAM, and Put_Simple1().

00461         { Put_Simple1( MIDI_SC_GO_JAM, q_number );  }       

void jdkmidi::MIDIShowControlPacket::Put_GoJam  )  [inline]
 

Definition at line 457 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_JAM, and Put_Simple0().

00458         { Put_Simple0( MIDI_SC_GO_JAM );  }

void jdkmidi::MIDIShowControlPacket::Put_GoOff const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 454 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_OFF, and Put_Simple3().

00455         { Put_Simple3( MIDI_SC_GO_OFF, q_number, q_list, q_path );  }                   

void jdkmidi::MIDIShowControlPacket::Put_GoOff const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 451 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_OFF, and Put_Simple2().

00452         { Put_Simple2( MIDI_SC_GO_OFF, q_number, q_list );  }         

void jdkmidi::MIDIShowControlPacket::Put_GoOff const MIDICue q_number  )  [inline]
 

Definition at line 448 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_OFF, and Put_Simple1().

00449         { Put_Simple1( MIDI_SC_GO_OFF,q_number );   }                   

void jdkmidi::MIDIShowControlPacket::Put_GoOff  )  [inline]
 

Definition at line 445 of file showcontrol.h.

References jdkmidi::MIDI_SC_GO_OFF, and Put_Simple0().

00446         { Put_Simple0( MIDI_SC_GO_OFF );  }           

void jdkmidi::MIDIShowControlPacket::Put_Load const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 404 of file showcontrol.h.

References jdkmidi::MIDI_SC_LOAD, and Put_Simple3().

00405         { Put_Simple3( MIDI_SC_LOAD, q_number, q_list, q_path );  }   

void jdkmidi::MIDIShowControlPacket::Put_Load const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 401 of file showcontrol.h.

References jdkmidi::MIDI_SC_LOAD, and Put_Simple2().

00402         { Put_Simple2( MIDI_SC_LOAD, q_number, q_list );  }   

void jdkmidi::MIDIShowControlPacket::Put_Load const MIDICue q_number  )  [inline]
 

Definition at line 398 of file showcontrol.h.

References jdkmidi::MIDI_SC_LOAD, and Put_Simple1().

00399         { Put_Simple1( MIDI_SC_LOAD, q_number );  } 

void jdkmidi::MIDIShowControlPacket::Put_MTCChaseOff const MIDICue q_list  )  [inline]
 

Definition at line 581 of file showcontrol.h.

References jdkmidi::MIDI_SC_MTC_CHASE_OFF, and Put_Simple0().

00582         { 
00583           Put_Simple0( MIDI_SC_MTC_CHASE_OFF );   
00584           SetQList(q_list);
00585           SetHasQList(true);
00586         }

void jdkmidi::MIDIShowControlPacket::Put_MTCChaseOff  )  [inline]
 

Definition at line 578 of file showcontrol.h.

References jdkmidi::MIDI_SC_MTC_CHASE_OFF, and Put_Simple0().

00579         { Put_Simple0( MIDI_SC_MTC_CHASE_OFF );   } 

void jdkmidi::MIDIShowControlPacket::Put_MTCChaseOn const MIDICue q_list  )  [inline]
 

Definition at line 572 of file showcontrol.h.

References jdkmidi::MIDI_SC_MTC_CHASE_ON, and Put_Simple0().

00573         { 
00574           Put_Simple0( MIDI_SC_MTC_CHASE_ON );  
00575           SetQList(q_list);
00576           SetHasQList(true);
00577         }

void jdkmidi::MIDIShowControlPacket::Put_MTCChaseOn  )  [inline]
 

Definition at line 569 of file showcontrol.h.

References jdkmidi::MIDI_SC_MTC_CHASE_ON, and Put_Simple0().

00570         { Put_Simple0( MIDI_SC_MTC_CHASE_ON );  } 

void jdkmidi::MIDIShowControlPacket::Put_OpenQList const MIDICue q_list  )  [inline]
 

Definition at line 588 of file showcontrol.h.

References jdkmidi::MIDI_SC_OPEN_Q_LIST, and Put_Simple0().

00589         { 
00590           Put_Simple0( MIDI_SC_OPEN_Q_LIST );   
00591           SetQList(q_list);
00592           SetHasQList(true);
00593         }

void jdkmidi::MIDIShowControlPacket::Put_OpenQPath const MIDICue q_path  )  [inline]
 

Definition at line 602 of file showcontrol.h.

References jdkmidi::MIDI_SC_OPEN_Q_PATH, and Put_Simple0().

00603         { 
00604           Put_Simple0( MIDI_SC_OPEN_Q_PATH );   
00605           SetQPath(q_path);
00606           SetHasQPath(true);
00607         }

void jdkmidi::MIDIShowControlPacket::Put_Reset  )  [inline]
 

Definition at line 442 of file showcontrol.h.

References jdkmidi::MIDI_SC_RESET, and Put_Simple0().

00443         { Put_Simple0( MIDI_SC_RESET );   }     

void jdkmidi::MIDIShowControlPacket::Put_Restore  )  [inline]
 

Definition at line 439 of file showcontrol.h.

References jdkmidi::MIDI_SC_RESTORE, and Put_Simple0().

00440         { Put_Simple0( MIDI_SC_RESTORE );   }     

void jdkmidi::MIDIShowControlPacket::Put_Resume const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 338 of file showcontrol.h.

References jdkmidi::MIDI_SC_RESUME, and Put_Simple3().

00339         { Put_Simple3( MIDI_SC_RESUME, q_number, q_list, q_path );  }   

void jdkmidi::MIDIShowControlPacket::Put_Resume const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 335 of file showcontrol.h.

References jdkmidi::MIDI_SC_RESUME, and Put_Simple2().

00336         { Put_Simple2( MIDI_SC_RESUME, q_number, q_list );  }   

void jdkmidi::MIDIShowControlPacket::Put_Resume const MIDICue q_number  )  [inline]
 

Definition at line 332 of file showcontrol.h.

References jdkmidi::MIDI_SC_RESUME, and Put_Simple1().

00333         { Put_Simple1( MIDI_SC_RESUME, q_number );  }           

void jdkmidi::MIDIShowControlPacket::Put_Resume  )  [inline]
 

Definition at line 329 of file showcontrol.h.

References jdkmidi::MIDI_SC_RESUME, and Put_Simple0().

00330         { Put_Simple0( MIDI_SC_RESUME );  }   

void jdkmidi::MIDIShowControlPacket::Put_SequenceMinus const MIDICue q_list  )  [inline]
 

Definition at line 502 of file showcontrol.h.

References jdkmidi::MIDI_SC_SEQUENCE_MINUS, and Put_Simple0().

00503         { 
00504           Put_Simple0( MIDI_SC_SEQUENCE_MINUS );  
00505           SetQList(q_list);
00506           SetHasQList(true);
00507         }

void jdkmidi::MIDIShowControlPacket::Put_SequenceMinus  )  [inline]
 

Definition at line 499 of file showcontrol.h.

References jdkmidi::MIDI_SC_SEQUENCE_MINUS, and Put_Simple0().

00500         { Put_Simple0( MIDI_SC_SEQUENCE_MINUS );  } 

void jdkmidi::MIDIShowControlPacket::Put_SequencePlus const MIDICue q_list  )  [inline]
 

Definition at line 492 of file showcontrol.h.

References jdkmidi::MIDI_SC_SEQUENCE_PLUS, and Put_Simple0().

00493         { 
00494           Put_Simple0( MIDI_SC_SEQUENCE_PLUS );   
00495           SetQList(q_list);
00496           SetHasQList(true);
00497         }

void jdkmidi::MIDIShowControlPacket::Put_SequencePlus  )  [inline]
 

Definition at line 489 of file showcontrol.h.

References jdkmidi::MIDI_SC_SEQUENCE_PLUS, and Put_Simple0().

00490         { Put_Simple0( MIDI_SC_SEQUENCE_PLUS );   } 

void jdkmidi::MIDIShowControlPacket::Put_Set ulong  ctrl_num,
ulong  ctrl_val,
uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff
[inline]
 

Definition at line 415 of file showcontrol.h.

References jdkmidi::MIDI_SC_SET, Put_Simple0(), uchar, and ulong.

00420         { 
00421           Put_Simple0( MIDI_SC_SET ); 
00422           SetControlNum( ctrl_num );
00423           SetControlVal( ctrl_val );
00424           SetHours( hr );
00425           SetMinutes( mn );
00426           SetSeconds( sc );
00427           SetFrames( fr );
00428           SetFractFrames( ff );
00429           SetHasTime( true );                 
00430         }

void jdkmidi::MIDIShowControlPacket::Put_Set ulong  ctrl_num,
ulong  ctrl_val
[inline]
 

Definition at line 408 of file showcontrol.h.

References jdkmidi::MIDI_SC_SET, Put_Simple0(), and ulong.

00409         { 
00410           Put_Simple0( MIDI_SC_SET ); 
00411           SetControlNum( ctrl_num );
00412           SetControlVal( ctrl_val );  
00413         }

void jdkmidi::MIDIShowControlPacket::Put_SetClock uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff,
const MIDICue q_list
[inline]
 

Definition at line 552 of file showcontrol.h.

References jdkmidi::MIDI_SC_SET_CLOCK, Put_Simple0(), and uchar.

00556         {
00557           Put_Simple0( MIDI_SC_SET_CLOCK );
00558           SetHours( hr );
00559           SetMinutes( mn );
00560           SetSeconds( sc );
00561           SetFrames( fr );
00562           SetFractFrames( ff );
00563           SetHasTime( true );
00564           SetQList( q_list );
00565           SetHasQList(true);
00566         }

void jdkmidi::MIDIShowControlPacket::Put_SetClock uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff
[inline]
 

Definition at line 539 of file showcontrol.h.

References jdkmidi::MIDI_SC_SET_CLOCK, Put_Simple0(), and uchar.

00542         {
00543           Put_Simple0( MIDI_SC_SET_CLOCK );
00544           SetHours( hr );
00545           SetMinutes( mn );
00546           SetSeconds( sc );
00547           SetFrames( fr );
00548           SetFractFrames( ff );
00549           SetHasTime( true );
00550         }

void jdkmidi::MIDIShowControlPacket::Put_Simple0 MIDIShowCommand  cmd  )  [inline, protected]
 

Definition at line 639 of file showcontrol.h.

References ClearVariableStuff().

00640         {
00641           ClearVariableStuff();
00642           SetCommand( cmd );
00643         }

void jdkmidi::MIDIShowControlPacket::Put_Simple1 MIDIShowCommand  cmd,
const MIDICue q_number
[inline, protected]
 

Definition at line 646 of file showcontrol.h.

References ClearVariableStuff().

00650         {
00651           ClearVariableStuff();
00652           SetCommand( cmd );
00653           SetQNumber( q_number );
00654           SetHasQNumber( true );
00655         }

void jdkmidi::MIDIShowControlPacket::Put_Simple2 MIDIShowCommand  cmd,
const MIDICue q_number,
const MIDICue q_list
[inline, protected]
 

Definition at line 658 of file showcontrol.h.

References ClearVariableStuff().

00663         {
00664           ClearVariableStuff();
00665           SetCommand( cmd );
00666           SetQNumber( q_number );
00667           SetHasQNumber( true );
00668           SetQList( q_list );
00669           SetHasQList( true );
00670         }

void jdkmidi::MIDIShowControlPacket::Put_Simple3 MIDIShowCommand  cmd,
const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline, protected]
 

Definition at line 673 of file showcontrol.h.

References ClearVariableStuff().

00679         {
00680           ClearVariableStuff();
00681           SetCommand( cmd );
00682           SetQNumber( q_number );
00683           SetHasQNumber(true);
00684           SetQList( q_list );
00685           SetHasQList(true);  
00686           SetQPath( q_path );
00687           SetHasQPath(true);  
00688         }

void jdkmidi::MIDIShowControlPacket::Put_StandbyMinus const MIDICue q_list  )  [inline]
 

Definition at line 482 of file showcontrol.h.

References jdkmidi::MIDI_SC_STANDBY_MINUS, and Put_Simple0().

00483         { 
00484           Put_Simple0( MIDI_SC_STANDBY_MINUS );   
00485           SetQList(q_list);
00486           SetHasQList(true);
00487         }

void jdkmidi::MIDIShowControlPacket::Put_StandbyMinus  )  [inline]
 

Definition at line 479 of file showcontrol.h.

References jdkmidi::MIDI_SC_STANDBY_MINUS, and Put_Simple0().

00480         { Put_Simple0( MIDI_SC_STANDBY_MINUS );   } 

void jdkmidi::MIDIShowControlPacket::Put_StandbyPlus const MIDICue q_list  )  [inline]
 

Definition at line 473 of file showcontrol.h.

References jdkmidi::MIDI_SC_STANDBY_PLUS, and Put_Simple0().

00474         { 
00475           Put_Simple0( MIDI_SC_STANDBY_PLUS );  
00476           SetQList(q_list);
00477           SetHasQList(true);
00478         }

void jdkmidi::MIDIShowControlPacket::Put_StandbyPlus  )  [inline]
 

Definition at line 470 of file showcontrol.h.

References jdkmidi::MIDI_SC_STANDBY_PLUS, and Put_Simple0().

00471         { Put_Simple0( MIDI_SC_STANDBY_PLUS );  }

void jdkmidi::MIDIShowControlPacket::Put_StartClock const MIDICue q_list  )  [inline]
 

Definition at line 512 of file showcontrol.h.

References jdkmidi::MIDI_SC_START_CLOCK, and Put_Simple0().

00513         { 
00514           Put_Simple0( MIDI_SC_START_CLOCK );   
00515           SetQList(q_list);
00516           SetHasQList(true);
00517         }

void jdkmidi::MIDIShowControlPacket::Put_StartClock  )  [inline]
 

Definition at line 509 of file showcontrol.h.

References jdkmidi::MIDI_SC_START_CLOCK, and Put_Simple0().

00510         { Put_Simple0( MIDI_SC_START_CLOCK );   } 

void jdkmidi::MIDIShowControlPacket::Put_Stop const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 325 of file showcontrol.h.

References jdkmidi::MIDI_SC_STOP, and Put_Simple3().

00326         { Put_Simple3( MIDI_SC_STOP, q_number, q_list, q_path );  } 

void jdkmidi::MIDIShowControlPacket::Put_Stop const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 322 of file showcontrol.h.

References jdkmidi::MIDI_SC_STOP, and Put_Simple2().

00323         { Put_Simple2( MIDI_SC_STOP, q_number, q_list );  }               

void jdkmidi::MIDIShowControlPacket::Put_Stop const MIDICue q_number  )  [inline]
 

Definition at line 319 of file showcontrol.h.

References jdkmidi::MIDI_SC_STOP, and Put_Simple1().

00320         { Put_Simple1( MIDI_SC_STOP, q_number );  }       

void jdkmidi::MIDIShowControlPacket::Put_Stop  )  [inline]
 

Definition at line 316 of file showcontrol.h.

References jdkmidi::MIDI_SC_STOP, and Put_Simple0().

00317         { Put_Simple0( MIDI_SC_STOP );  }       

void jdkmidi::MIDIShowControlPacket::Put_StopClock const MIDICue q_list  )  [inline]
 

Definition at line 522 of file showcontrol.h.

References jdkmidi::MIDI_SC_STOP_CLOCK, and Put_Simple0().

00523         { 
00524           Put_Simple0( MIDI_SC_STOP_CLOCK );  
00525           SetQList(q_list);
00526           SetHasQList(true);
00527         }

void jdkmidi::MIDIShowControlPacket::Put_StopClock  )  [inline]
 

Definition at line 519 of file showcontrol.h.

References jdkmidi::MIDI_SC_STOP_CLOCK, and Put_Simple0().

00520         { Put_Simple0( MIDI_SC_STOP_CLOCK );  } 

void jdkmidi::MIDIShowControlPacket::Put_TimedGo uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff,
const MIDICue q_number,
const MIDICue q_list,
const MIDICue q_path
[inline]
 

Definition at line 383 of file showcontrol.h.

References jdkmidi::MIDI_SC_TIMED_GO, Put_Simple3(), and uchar.

00387         {
00388           Put_Simple3(  MIDI_SC_TIMED_GO, q_number, q_list, q_path );
00389           SetHours( hr );
00390           SetMinutes( mn );
00391           SetSeconds( sc );
00392           SetFrames( fr );
00393           SetFractFrames( ff );
00394           SetHasTime( true );
00395         }

void jdkmidi::MIDIShowControlPacket::Put_TimedGo uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff,
const MIDICue q_number,
const MIDICue q_list
[inline]
 

Definition at line 369 of file showcontrol.h.

References jdkmidi::MIDI_SC_TIMED_GO, Put_Simple2(), and uchar.

00373         {
00374           Put_Simple2(  MIDI_SC_TIMED_GO, q_number, q_list );
00375           SetHours( hr );
00376           SetMinutes( mn );
00377           SetSeconds( sc );
00378           SetFrames( fr );
00379           SetFractFrames( ff );
00380           SetHasTime( true );
00381         }

void jdkmidi::MIDIShowControlPacket::Put_TimedGo uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff,
const MIDICue q_number
[inline]
 

Definition at line 355 of file showcontrol.h.

References jdkmidi::MIDI_SC_TIMED_GO, Put_Simple1(), and uchar.

00359         {
00360           Put_Simple1(  MIDI_SC_TIMED_GO, q_number );
00361           SetHours( hr );
00362           SetMinutes( mn );
00363           SetSeconds( sc );
00364           SetFrames( fr );
00365           SetFractFrames( ff );
00366           SetHasTime( true );
00367         }

void jdkmidi::MIDIShowControlPacket::Put_TimedGo uchar  hr,
uchar  mn,
uchar  sc,
uchar  fr,
uchar  ff
[inline]
 

Definition at line 342 of file showcontrol.h.

References jdkmidi::MIDI_SC_TIMED_GO, Put_Simple0(), and uchar.

00345         {
00346           Put_Simple0(  MIDI_SC_TIMED_GO );
00347           SetHours( hr );
00348           SetMinutes( mn );
00349           SetSeconds( sc );
00350           SetFrames( fr );
00351           SetFractFrames( ff );
00352           SetHasTime( true );
00353         }

void jdkmidi::MIDIShowControlPacket::Put_ZeroClock const MIDICue q_list  )  [inline]
 

Definition at line 532 of file showcontrol.h.

References jdkmidi::MIDI_SC_ZERO_CLOCK, and Put_Simple0().

00533         { 
00534           Put_Simple0( MIDI_SC_ZERO_CLOCK );  
00535           SetQList(q_list);
00536           SetHasQList(true);
00537         }

void jdkmidi::MIDIShowControlPacket::Put_ZeroClock  )  [inline]
 

Definition at line 529 of file showcontrol.h.

References jdkmidi::MIDI_SC_ZERO_CLOCK, and Put_Simple0().

00530         { Put_Simple0( MIDI_SC_ZERO_CLOCK );  } 

bool jdkmidi::MIDIShowControlPacket::Store3Param MIDISystemExclusive e  )  const [protected]
 

Definition at line 297 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::PutByte(), and StoreAsciiNum().

00298   {
00299     bool f=true;
00300     
00301     if( HasQNumber )
00302     {
00303       f&=StoreAsciiNum( e, GetQNumber() );  
00304       if( HasQList )
00305       {
00306         e->PutByte( 0 );
00307         f&=StoreAsciiNum( e, GetQList() );
00308         
00309         if( HasQPath )
00310         {
00311           e->PutByte( 0 );
00312           f&=StoreAsciiNum( e, GetQPath() );
00313         }
00314         
00315       }
00316     }
00317     return f;
00318   }

bool jdkmidi::MIDIShowControlPacket::StoreAscii MIDISystemExclusive e,
const char *  str
const [protected]
 

Definition at line 507 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::PutByte().

00508   {
00509     while( *str )
00510     {
00511       e->PutByte( *str++ ); 
00512     }
00513     return true;
00514   }

bool jdkmidi::MIDIShowControlPacket::StoreAsciiNum MIDISystemExclusive e,
const MIDICue num
const [protected]
 

Definition at line 517 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDICue::GetNumValues(), jdkmidi::MIDICue::GetV1(), jdkmidi::MIDICue::GetV2(), jdkmidi::MIDICue::GetV3(), and StoreAscii().

00521   {
00522     char buf[32];
00523     bool f=false;
00524     
00525     *buf='\0';
00526     
00527     switch( num.GetNumValues() )
00528     {
00529     default:
00530     case 0:
00531       break;
00532     case 1:
00533       sprintf( buf, "%ld", num.GetV1() );
00534       break;
00535     case 2:
00536       sprintf( buf, "%ld.%ld", num.GetV1(), num.GetV2() );
00537       break;
00538     case 3:
00539       sprintf( buf, "%ld.%ld.%ld", num.GetV1(), num.GetV2(), num.GetV3() );
00540       break;
00541     }
00542     
00543     f=StoreAscii( e, buf );
00544     return f;
00545   }

bool jdkmidi::MIDIShowControlPacket::StoreFire MIDISystemExclusive e  )  const [protected]
 

Definition at line 418 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::PutByte(), and uchar.

00419   {
00420     e->PutByte( (uchar)(GetMacroNum()) );
00421     return true;
00422   }

bool jdkmidi::MIDIShowControlPacket::StoreQList MIDISystemExclusive e  )  const [protected]
 

Definition at line 471 of file jdkmidi_showcontrol.cpp.

References StoreAsciiNum().

00472   {
00473     if( HasQList )
00474     {
00475       return StoreAsciiNum( e, GetQList() );
00476     }
00477     else
00478     {
00479       return false; 
00480     } 
00481   }

bool jdkmidi::MIDIShowControlPacket::StoreQPath MIDISystemExclusive e  )  const [protected]
 

Definition at line 434 of file jdkmidi_showcontrol.cpp.

References StoreAsciiNum().

00435   {
00436     if( HasQPath )
00437     {
00438       return StoreAsciiNum( e, GetQPath() );
00439     }
00440     else
00441     {
00442       return false; 
00443     } 
00444   }

bool jdkmidi::MIDIShowControlPacket::StoreSet MIDISystemExclusive e  )  const [protected]
 

Definition at line 380 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::PutByte(), StoreTime(), and uchar.

00381   {
00382     bool f=true;
00383     e->PutByte( (uchar)(GetControlNum() & 0x7f) );
00384     e->PutByte( (uchar)((GetControlNum()>>7) & 0x7f) );
00385     
00386     e->PutByte( (uchar)(GetControlVal() & 0x7f) );
00387     e->PutByte( (uchar)((GetControlVal()>>7) & 0x7f) );
00388     if( HasTime )
00389     {
00390       f=StoreTime( e );
00391     }
00392     return f;
00393   }

bool jdkmidi::MIDIShowControlPacket::StoreTime MIDISystemExclusive e  )  const [protected]
 

Definition at line 268 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::PutByte().

00269   {
00270     if( HasTime )
00271     {
00272       e->PutByte( Hours );
00273       e->PutByte( Minutes );
00274       e->PutByte( Seconds );
00275       e->PutByte( Frames );
00276       e->PutByte( FractFrames );  
00277       return true;
00278     }
00279     else
00280     {
00281       return false;
00282     }
00283   }

bool jdkmidi::MIDIShowControlPacket::StoreToSysEx MIDISystemExclusive e  )  const
 

Definition at line 175 of file jdkmidi_showcontrol.cpp.

References jdkmidi::MIDISystemExclusive::Clear(), jdkmidi::MIDISystemExclusive::IsFull(), jdkmidi::MIDI_SC_ALL_OFF, jdkmidi::MIDI_SC_CLOSE_Q_LIST, jdkmidi::MIDI_SC_CLOSE_Q_PATH, jdkmidi::MIDI_SC_FIRE, jdkmidi::MIDI_SC_GO, jdkmidi::MIDI_SC_GO_JAM, jdkmidi::MIDI_SC_GO_OFF, jdkmidi::MIDI_SC_LOAD, jdkmidi::MIDI_SC_MTC_CHASE_OFF, jdkmidi::MIDI_SC_MTC_CHASE_ON, jdkmidi::MIDI_SC_OPEN_Q_LIST, jdkmidi::MIDI_SC_OPEN_Q_PATH, jdkmidi::MIDI_SC_RESET, jdkmidi::MIDI_SC_RESTORE, jdkmidi::MIDI_SC_RESUME, jdkmidi::MIDI_SC_SEQUENCE_MINUS, jdkmidi::MIDI_SC_SEQUENCE_PLUS, jdkmidi::MIDI_SC_SET, jdkmidi::MIDI_SC_SET_CLOCK, jdkmidi::MIDI_SC_STANDBY_MINUS, jdkmidi::MIDI_SC_STANDBY_PLUS, jdkmidi::MIDI_SC_START_CLOCK, jdkmidi::MIDI_SC_STOP, jdkmidi::MIDI_SC_STOP_CLOCK, jdkmidi::MIDI_SC_TIMED_GO, jdkmidi::MIDI_SC_ZERO_CLOCK, jdkmidi::MIDISystemExclusive::PutByte(), jdkmidi::MIDISystemExclusive::PutEOX(), jdkmidi::MIDISystemExclusive::PutEXC(), Store3Param(), StoreFire(), StoreQList(), StoreQPath(), StoreSet(), and StoreTime().

00176   {
00177     bool f=true;
00178     
00179     e->Clear();
00180     e->PutEXC();
00181     e->PutByte( 0x7f );
00182     e->PutByte( DeviceId );
00183     e->PutByte( 0x02 );
00184     e->PutByte( CommandFmt );
00185     e->PutByte( Command );
00186     
00187     switch( Command )
00188     {
00189     case MIDI_SC_GO:
00190     case  MIDI_SC_STOP: 
00191     case  MIDI_SC_RESUME: 
00192     case  MIDI_SC_LOAD: 
00193     case  MIDI_SC_GO_OFF: 
00194     case  MIDI_SC_GO_JAM: 
00195     {
00196       f&=Store3Param( e );
00197     }
00198     break;
00199     case  MIDI_SC_TIMED_GO:
00200     {
00201       f&=StoreTime( e );
00202       f&=Store3Param(e);
00203     }
00204     break;
00205     case  MIDI_SC_SET:
00206     {
00207       f&=StoreSet(e); 
00208     }
00209     break;
00210     case  MIDI_SC_FIRE:
00211     {
00212       f&=StoreFire(e);      
00213     }
00214     break;
00215     case  MIDI_SC_ALL_OFF:
00216     case  MIDI_SC_RESTORE:
00217     case  MIDI_SC_RESET:  
00218       // no additional params.  
00219       break;
00220       
00221     case  MIDI_SC_STANDBY_PLUS:
00222     case  MIDI_SC_STANDBY_MINUS:
00223     case  MIDI_SC_SEQUENCE_PLUS:  
00224     case  MIDI_SC_SEQUENCE_MINUS: 
00225     case  MIDI_SC_START_CLOCK:  
00226     case  MIDI_SC_STOP_CLOCK: 
00227     case  MIDI_SC_ZERO_CLOCK: 
00228     case  MIDI_SC_MTC_CHASE_ON: 
00229     case  MIDI_SC_MTC_CHASE_OFF:    
00230     {
00231       if( HasQList )
00232         f&=StoreQList( e );
00233     }
00234     break;
00235     case  MIDI_SC_SET_CLOCK:
00236     {
00237       f&=StoreTime(e );
00238       if( HasQList )
00239         f&=StoreQList(e);
00240     }
00241     break;
00242     case  MIDI_SC_OPEN_Q_LIST:  
00243     case  MIDI_SC_CLOSE_Q_LIST: 
00244     {
00245       f&=StoreQList(e); 
00246     }
00247     break;
00248     case  MIDI_SC_OPEN_Q_PATH:
00249     case  MIDI_SC_CLOSE_Q_PATH: 
00250     {
00251       f&=StoreQPath(e );  
00252     }
00253     break;
00254     default:
00255       f=false;  // unrecognized command
00256       break;
00257     }
00258     
00259     e->PutEOX();
00260     
00261     if( e->IsFull() )
00262       return false;
00263     
00264     return f;
00265   }


The documentation for this class was generated from the following files: