2 audio-item.cc -- implement Audio items.
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
9 #include "audio-item.hh"
10 #include "midi-item.hh"
12 Audio_instrument::Audio_instrument (String instrument_str
)
15 str_
= instrument_str
;
19 Audio_instrument::midi_item_p()
21 return str_
.length_i() ? new Midi_instrument(0, str_
) : 0;
24 Audio_item::Audio_item (Request
* req_l
)
30 Audio_key::Audio_key (Request
* req_l
)
36 Audio_key::midi_item_p()
38 return new Midi_key (this);
42 Audio_note::Audio_note (Request
* req_l
)
48 Audio_note::midi_item_p()
50 return new Midi_note (this);
53 Audio_tempo::Audio_tempo (int per_minute_4_i
)
56 per_minute_4_i_
= per_minute_4_i
;
60 Audio_tempo::midi_item_p()
62 return new Midi_tempo (this);
65 Audio_meter::Audio_meter (Request
* req_l
)
71 Audio_meter::midi_item_p()
73 return new Midi_meter (this);
76 Audio_text::Audio_text (Audio_text::Type type
, String text_str
)
84 Audio_text::midi_item_p()
86 return text_str_
.length_i() ? new Midi_text(this) : 0;
90 IMPLEMENT_IS_TYPE_B1(Audio_item
, Audio_element
);