2 // midi-event.hh -- declare midi_event
4 // copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
12 // * be Voice_elements/requests
13 // * get a name-change
21 virtual String mudela_str( bool command_mode_bo ) = 0;
22 void output_mudela( Lily_stream& lily_stream_r, bool command_mode_bo );
26 class Midi_key : public Midi_event {
28 Midi_key( int accidentals_i, int minor_i );
30 String notename_str( int pitch_i );
31 virtual String mudela_str( bool command_mode_bo );
39 class Midi_note : public Midi_event {
41 // int const c0_pitch_i_c_ = 60; // huh?
42 int const c0_pitch_i_c_ = 48;
44 Midi_note( String name_str, Duration dur );
46 virtual String mudela_str( bool command_mode_bo );
49 static bool const simple_plet_b_s = false;
54 class Midi_tempo : public Midi_event {
56 Midi_tempo( int useconds_per_4_i );
58 int get_tempo_i( Moment moment );
59 virtual String mudela_str( bool command_mode_bo );
60 int useconds_per_4_i();
63 int useconds_per_4_i_;
64 Real seconds_per_1_f_;
67 class Midi_text : public Midi_event {
70 TEXT = 1, COPYRIGHT, TRACK_NAME, INSTRUMENT_NAME, LYRIC,
73 Midi_text( Midi_text::Type type, String str );
74 virtual String mudela_str( bool command_mode_bo );
80 class Midi_time : public Midi_event {
82 Midi_time( int num_i, int den_i, int division_4_i, int count_32_i );
84 Duration i2_dur( int time_i, int division_1_i );
88 virtual String mudela_str( bool command_mode_bo );
99 #endif // MIDI_EVENT_HH