* scm/beam.scm (check-slope-callbacks): check sign of slope.
[lilypond.git] / lily / audio-element-info.cc
blob55bd91e29ebb09f2df0b99bf72c5428846a5c8d3
1 /*
2 Audio-element-info.cc -- implement Audio_element_info
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "audio-element-info.hh"
10 #include "translator-group.hh"
11 #include "context.hh"
13 Audio_element_info::Audio_element_info (Audio_element*s, Music *r)
15 elem_ = s;
16 origin_trans_ =0;
17 event_ = r;
21 Audio_element_info::Audio_element_info ()
23 elem_ = 0;
24 event_ = 0;
25 origin_trans_ =0;
29 Link_array<Context>
30 Audio_element_info::origin_contexts (Translator* end) const
32 Context * t = origin_trans_->context ();
33 Link_array<Context> r;
34 do {
35 r.push (t);
36 t = t->get_parent_context ();
37 } while (t && t != end->context ());
39 return r;