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;
43 Midi_note( String name_str, Duration dur );
45 virtual String mudela_str( bool command_mode_bo );
48 static bool const simple_plet_b_s = false;
53 class Midi_tempo : public Midi_event {
55 Midi_tempo( int useconds_per_4_i );
57 int get_tempo_i( Moment moment );
58 virtual String mudela_str( bool command_mode_bo );
59 int useconds_per_4_i();
62 int useconds_per_4_i_;
63 Real seconds_per_1_f_;
66 class Midi_text : public Midi_event {
69 TEXT = 1, COPYRIGHT, TRACK_NAME, INSTRUMENT_NAME, LYRIC,
72 Midi_text( Midi_text::Type type, String str );
73 virtual String mudela_str( bool command_mode_bo );
79 class Midi_time : public Midi_event {
81 Midi_time( int num_i, int den_i, int division_4_i, int count_32_i );
83 Duration i2_dur( int time_i, int division_1_i );
87 virtual String mudela_str( bool command_mode_bo );
98 #endif // MIDI_EVENT_HH