]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/audio-item.cc
Imported sources
[lilypond.git] / lily / audio-item.cc
index 06ccec24e921f55b4bf8dddf5a0902da880e2726..d72adbcc7d9011031e3a73f3fd0244e7b2d85338 100644 (file)
@@ -3,29 +3,29 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1999 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1997--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 */
-#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 (Musical_pitch p, Moment m, int transposing_i)
+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
@@ -40,52 +40,49 @@ Audio_note::tie_to (Audio_note* t)
 }
 
                    
-Audio_key::Audio_key (Key_def const& k)
+Audio_key::Audio_key (int acc, bool major)
+{
+  accidentals_=acc;
+  major_=major;
+}
+
+Audio_dynamic::Audio_dynamic (Real volume)
 {
-  key_ = k;
+  volume_ = 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;
+  note_drul_[RIGHT] = 0;
+  note_drul_[LEFT] = 0;
 }
 
 void
-Audio_tie::set_note (Direction d, Audio_note* note_l)
+Audio_tie::set_note (Direction d, Audio_note* note)
 {
-  assert (!note_l_drul_[d]);
-  note_l_drul_[d] = note_l;
-  //set_bounds (d, head_l);
+  assert (!note_drul_[d]);
+  note_drul_[d] = note;
+  //set_bound (d, head);
 
-  //  add_dependency (head_l);
+  //  add_dependency (head);
 }
 
-void
-Audio_item::do_print () const
-{
-#ifndef NPRINT
-  if (audio_column_l_)
-    {
-      DEBUG_OUT << "at: "<< audio_column_l_->at_mom ();
-    }
-#endif
-}
+