2 audio-item.cc -- implement Audio items.
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "audio-item.hh"
10 #include "midi-item.hh"
12 #include "audio-column.hh"
14 Audio_instrument::Audio_instrument (String instrument_str
)
17 str_
= instrument_str
;
21 Audio_instrument::midi_item_p()
23 return str_
.length_i() ? new Midi_instrument(0, str_
) : 0;
27 Audio_item::Audio_item (Request
* req_l
)
33 Audio_key::Audio_key (Request
* req_l
)
39 Audio_key::midi_item_p()
41 return new Midi_key (this);
45 Audio_note::Audio_note (Request
* req_l
, int transposing_i
)
48 transposing_i_
= transposing_i
;
52 Audio_note::midi_item_p()
54 return new Midi_note (this);
59 Audio_tempo::Audio_tempo (int per_minute_4_i
)
62 per_minute_4_i_
= per_minute_4_i
;
66 Audio_tempo::midi_item_p()
68 return new Midi_tempo (this);
73 Audio_time_signature::Audio_time_signature (Request
* req_l
)
79 Audio_time_signature::midi_item_p()
81 return new Midi_time_signature (this);
86 Audio_text::Audio_text (Audio_text::Type type
, String text_str
)
94 Audio_text::midi_item_p()
96 return text_str_
.length_i() ? new Midi_text(this) : 0;
103 Audio_item::do_print () const
108 DOUT
<< "at: "<< audio_column_l_
->at_mom ();