2 audio-item.cc -- implement Audio items.
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "audio-item.hh"
10 #include "midi-item.hh"
11 #include "audio-column.hh"
13 Audio_instrument::Audio_instrument (String instrument_str
)
15 str_
= instrument_str
;
18 Audio_item::Audio_item ()
23 Audio_note::Audio_note (Pitch p
, Moment m
, int transposing_i
)
28 transposing_i_
= transposing_i
;
32 Audio_note::tie_to (Audio_note
* t
)
35 Audio_note
* first
= t
;
38 first
->length_mom_
+= length_mom_
;
43 Audio_key::Audio_key () // Key_def const& k)
48 Audio_dynamic::Audio_dynamic (Real volume
)
53 Audio_tempo::Audio_tempo (int per_minute_4_i
)
55 per_minute_4_i_
= per_minute_4_i
;
58 Audio_time_signature::Audio_time_signature (int beats
, int one_beat
)
61 one_beat_i_
= one_beat
;
64 Audio_text::Audio_text (Audio_text::Type type
, String text_str
)
70 Audio_tie::Audio_tie ()
72 note_l_drul_
[RIGHT
] = 0;
73 note_l_drul_
[LEFT
] = 0;
77 Audio_tie::set_note (Direction d
, Audio_note
* note_l
)
79 assert (!note_l_drul_
[d
]);
80 note_l_drul_
[d
] = note_l
;
81 //set_bound (d, head_l);
83 // add_dependency (head_l);