X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Faudio-item.cc;h=3774f732e9fa964e8cf9b3738bcd33b1f5b21cf6;hb=26aa7a02d8cad410c4b496b87891653edbba771a;hp=a35f1b42cfed62e1d111b5675f6b88791e145577;hpb=5d5fbb2641fda6605cde61ebcd99b9bef2e94b4a;p=lilypond.git diff --git a/lily/audio-item.cc b/lily/audio-item.cc index a35f1b42cf..3774f732e9 100644 --- a/lily/audio-item.cc +++ b/lily/audio-item.cc @@ -3,21 +3,22 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2001 Jan Nieuwenhuizen + (c) 1997--2005 Jan Nieuwenhuizen */ -#include "debug.hh" + #include "audio-item.hh" + #include "midi-item.hh" #include "audio-column.hh" -Audio_instrument::Audio_instrument (String instrument_str) +Audio_instrument::Audio_instrument (String instrument_string) { - str_ = instrument_str; + str_ = instrument_string; } Audio_item::Audio_item () { - audio_column_l_ = 0; + audio_column_ = 0; } Audio_note::Audio_note (Pitch p, Moment m, int transposing_i) @@ -25,25 +26,24 @@ Audio_note::Audio_note (Pitch p, Moment m, int transposing_i) pitch_ = p; length_mom_ = m; tied_ = 0; - transposing_i_ = transposing_i; + transposing_ = transposing_i; } 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) @@ -53,36 +53,18 @@ Audio_dynamic::Audio_dynamic (Real volume) Audio_tempo::Audio_tempo (int per_minute_4_i) { - per_minute_4_i_ = per_minute_4_i; + per_minute_4_ = per_minute_4_i; } Audio_time_signature::Audio_time_signature (int beats, int one_beat) { - beats_i_ = beats; - one_beat_i_ = one_beat; + beats_ = beats; + one_beat_ = one_beat; } -Audio_text::Audio_text (Audio_text::Type type, String text_str) +Audio_text::Audio_text (Audio_text::Type type, String text_string) { - text_str_ = text_str; + text_string_ = text_string; type_ = type; } -Audio_tie::Audio_tie () -{ - note_l_drul_[RIGHT] = 0; - note_l_drul_[LEFT] = 0; -} - -void -Audio_tie::set_note (Direction d, Audio_note* note_l) -{ - assert (!note_l_drul_[d]); - note_l_drul_[d] = note_l; - //set_bound (d, head_l); - - // add_dependency (head_l); -} - - -