]> git.donarmstrong.com Git - lilypond.git/blob - lily/audio-column.cc
Run `make grand-replace'.
[lilypond.git] / lily / audio-column.cc
1 /*
2   audio-column.cc -- implement Audio_column
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2008 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #include "audio-column.hh"
10
11 #include "audio-item.hh"
12 #include "performance.hh"
13
14 Audio_column::Audio_column (Moment when)
15 {
16   when_ = when;
17 }
18
19 void
20 Audio_column::add_audio_item (Audio_item *l)
21 {
22   audio_items_.push_back (l);
23   l->audio_column_ = this;
24 }
25
26 Moment
27 Audio_column::when () const
28 {
29   return when_;
30 }
31
32 int
33 Audio_column::ticks () const
34 {
35   return int (moment_to_ticks (when_));
36 }
37
38 void
39 Audio_column::offset_when (Moment m)
40 {
41   when_ += m;
42 }
43
44