#include <sequencer.h>
Inheritance diagram for jdkmidi::MIDISequencerGUIEventNotifierText:

Public Member Functions | |
| MIDISequencerGUIEventNotifierText (FILE *f) | |
| virtual | ~MIDISequencerGUIEventNotifierText () |
| virtual void | Notify (const MIDISequencer *seq, MIDISequencerGUIEvent e) |
| virtual bool | GetEnable () const |
| virtual void | SetEnable (bool f) |
Private Attributes | |
| FILE * | f |
| bool | en |
|
|
Definition at line 66 of file jdkmidi_sequencer.cpp.
|
|
|
Definition at line 76 of file jdkmidi_sequencer.cpp.
00077 {
00078 }
|
|
|
Implements jdkmidi::MIDISequencerGUIEventNotifier. Definition at line 131 of file jdkmidi_sequencer.cpp. References en.
00132 {
00133 return en;
00134 }
|
|
||||||||||||
|
Implements jdkmidi::MIDISequencerGUIEventNotifier. Definition at line 81 of file jdkmidi_sequencer.cpp. References en, f, jdkmidi::MIDISequencer::GetCurrentBeat(), jdkmidi::MIDISequencer::GetCurrentMeasure(), jdkmidi::MIDISequencerGUIEvent::GetEventGroup(), jdkmidi::MIDISequencerGUIEvent::GetEventItem(), jdkmidi::MIDISequencerGUIEvent::GetEventSubGroup(), jdkmidi::MIDISequencer::GetTrackState(), jdkmidi::MIDISequencerTrackState::tempobpm, jdkmidi::MIDISequencerTrackState::timesig_denominator, and jdkmidi::MIDISequencerTrackState::timesig_numerator.
00085 {
00086 if( en )
00087 {
00088 fprintf( f, "GUI EVENT: G=%d, SG=%d, ITEM=%d\n",
00089 e.GetEventGroup(),
00090 e.GetEventSubGroup(),
00091 e.GetEventItem()
00092 );
00093
00094 if( e.GetEventGroup() == MIDISequencerGUIEvent::GROUP_TRANSPORT )
00095 {
00096 if(
00097 e.GetEventItem() == MIDISequencerGUIEvent::GROUP_TRANSPORT_BEAT
00098 )
00099 {
00100 fprintf( f, "MEAS %3d BEAT %3d\n",
00101 seq->GetCurrentMeasure()+1,
00102 seq->GetCurrentBeat()+1
00103 );
00104 }
00105 }
00106 else
00107 if( e.GetEventGroup() == MIDISequencerGUIEvent::GROUP_CONDUCTOR )
00108 {
00109
00110 if(
00111 e.GetEventItem() == MIDISequencerGUIEvent::GROUP_CONDUCTOR_TIMESIG
00112 )
00113 {
00114 fprintf( f, "TIMESIG: %d/%d\n",
00115 seq->GetTrackState(0)->timesig_numerator,
00116 seq->GetTrackState(0)->timesig_denominator
00117 );
00118 }
00119 if(
00120 e.GetEventItem() == MIDISequencerGUIEvent::GROUP_CONDUCTOR_TEMPO
00121 )
00122 {
00123 fprintf( f, "TEMPO: %3.2f\n",
00124 seq->GetTrackState(0)->tempobpm
00125 );
00126 }
00127 }
00128 }
00129 }
|
|
|
Implements jdkmidi::MIDISequencerGUIEventNotifier. Definition at line 136 of file jdkmidi_sequencer.cpp. References en.
00137 {
00138 en = f;
00139 }
|
|
|
Definition at line 163 of file sequencer.h. |
|
|
Definition at line 162 of file sequencer.h. |