]> git.donarmstrong.com Git - lilypond.git/blob - lily/audio-item.cc
release: 1.1.53
[lilypond.git] / lily / audio-item.cc
1 /*
2   audio-item.cc -- implement Audio items.
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8 #include "debug.hh"
9 #include "audio-item.hh"
10 #include "midi-item.hh"
11 #include "audio-column.hh"
12
13 Audio_instrument::Audio_instrument (String instrument_str)
14 {
15   str_ = instrument_str;
16 }
17
18 Audio_item::Audio_item ()
19 {
20   audio_column_l_ = 0;
21 }
22
23 Audio_note::Audio_note (Musical_pitch p, Moment m, int transposing_i)
24 {
25   pitch_ = p;
26   length_mom_ = m;
27   transposing_i_ = transposing_i;
28 }
29
30 Audio_key::Audio_key (Key_def const& k)
31 {
32   key_ = k;
33 }
34
35 Audio_tempo::Audio_tempo (int per_minute_4_i)
36 {
37   per_minute_4_i_ = per_minute_4_i;
38 }
39
40 Audio_time_signature::Audio_time_signature (int beats, int one_beat)
41 {
42   beats_i_ = beats;
43   one_beat_i_ = one_beat;
44 }
45
46 Audio_text::Audio_text (Audio_text::Type type, String text_str)
47 {
48   text_str_ = text_str;
49   type_ = type;
50 }
51
52 Audio_tie::Audio_tie ()
53 {
54   note_l_drul_[RIGHT] = 0;
55   note_l_drul_[LEFT] = 0;
56 }
57
58 void
59 Audio_tie::set_note (Direction d, Audio_note* note_l)
60 {
61   assert (!note_l_drul_[d]);
62   note_l_drul_[d] = note_l;
63   //set_bounds (d, head_l);
64
65   //  add_dependency (head_l);
66 }
67
68 void
69 Audio_item::do_print () const
70 {
71 #ifndef NPRINT
72   if (audio_column_l_)
73     {
74       DOUT << "at: "<< audio_column_l_->at_mom ();
75     }
76 #endif
77 }
78