source file of the GNU LilyPond music typesetter
- (c) 1997--2004 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1997--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "audio-item.hh"
+
#include "midi-item.hh"
#include "audio-column.hh"
-Audio_instrument::Audio_instrument (String instrument_string)
+Audio_instrument::Audio_instrument (string instrument_string)
{
str_ = instrument_string;
}
audio_column_ = 0;
}
-Audio_note::Audio_note (Pitch p, Moment m, int transposing_i)
+Audio_note::Audio_note (Pitch p, Moment m, bool tie_event, int transposing_i)
{
pitch_ = p;
length_mom_ = m;
tied_ = 0;
transposing_ = transposing_i;
+ tie_event_ = tie_event;
}
void
-Audio_note::tie_to (Audio_note* t)
+Audio_note::tie_to (Audio_note *t)
{
tied_ = t;
- Audio_note* first = t;
+ Audio_note *first = t;
while (first->tied_)
first = first->tied_;
first->length_mom_ += length_mom_;
length_mom_ = 0;
}
-
Audio_key::Audio_key (int acc, bool major)
{
- accidentals_=acc;
- major_=major;
+ accidentals_ = acc;
+ major_ = major;
}
Audio_dynamic::Audio_dynamic (Real volume)
one_beat_ = one_beat;
}
-Audio_text::Audio_text (Audio_text::Type type, String text_string)
+Audio_text::Audio_text (Audio_text::Type type, string text_string)
{
text_string_ = text_string;
type_ = type;
}
-Audio_tie::Audio_tie ()
-{
- note_drul_[RIGHT] = 0;
- note_drul_[LEFT] = 0;
-}
-
-void
-Audio_tie::set_note (Direction d, Audio_note* note)
-{
- assert (!note_drul_[d]);
- note_drul_[d] = note;
- //set_bound (d, head);
-
- // add_dependency (head);
-}
-
-
-