]> git.donarmstrong.com Git - lilypond.git/blob - lily/audio-element-info.cc
*** empty log message ***
[lilypond.git] / lily / audio-element-info.cc
1 /*
2   Audio-element-info.cc -- implement Audio_element_info
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "audio-element-info.hh"
10 #include "translator-group.hh"
11
12 Audio_element_info::Audio_element_info (Audio_element*s, Music *r)
13 {
14   elem_ = s;
15   origin_trans_ =0;
16   req_ = r;
17 }
18
19
20 Audio_element_info::Audio_element_info ()
21 {
22   elem_ = 0;
23   req_ = 0;
24   origin_trans_ =0;
25 }
26
27
28 Link_array<Translator>
29 Audio_element_info::origin_transes (Translator* end) const
30 {
31   Translator * t = origin_trans_;
32   Link_array<Translator> r;
33   do {
34     r.push (t);
35     t = t->daddy_trans_;
36   } while (t && t != end->daddy_trans_);
37   
38   return r;
39 }