~ubuntu-branches/ubuntu/precise/lilypond/precise

« back to all changes in this revision

Viewing changes to lily/performer.cc

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2006-12-19 10:18:12 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061219101812-7awtjkp0i393wxty
Tags: 2.8.7-3
scripts/midi2ly.py: When setting DATADIR, find Lilypond python files
in the @TOPLEVEL_VERSION@ directory, not 'current'.  Patch thanks to
Chris Lamb (chris@chris-lamb.co.uk).  (Closes: #400550)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
  source file of the GNU LilyPond music typesetter
5
5
 
6
 
  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7
 
               Jan Nieuwenhuizen <janneke@gnu.org>
8
 
 */
 
6
  (c) 1996--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
7
  Jan Nieuwenhuizen <janneke@gnu.org>
 
8
*/
9
9
 
10
10
#include "context.hh"
11
 
#include "performer-group-performer.hh"
 
11
#include "performer-group.hh"
12
12
#include "warn.hh"
13
13
 
14
 
void 
15
 
Performer::play_element (Audio_element* p) 
16
 
17
 
  get_daddy_performer ()->play_element (p); 
 
14
void
 
15
Performer::play_element (Audio_element *p)
 
16
{
 
17
  get_daddy_performer ()->play_element (p);
18
18
}
19
19
 
20
20
int
23
23
  return get_daddy_performer ()->get_tempo ();
24
24
}
25
25
 
26
 
Performer_group_performer*
 
26
Performer_group *
27
27
Performer::get_daddy_performer () const
28
28
{
29
29
  return
30
 
    dynamic_cast<Performer_group_performer *> (get_daddy_translator ());
 
30
    dynamic_cast<Performer_group *> (get_daddy_translator ());
31
31
}
32
32
 
33
33
void
40
40
{
41
41
}
42
42
 
43
 
 
44
43
void
45
44
Performer::announce_element (Audio_element_info i)
46
45
{
47
46
  if (!i.origin_trans_)
48
 
    i.origin_trans_= this;
 
47
    i.origin_trans_ = this;
 
48
 
49
49
  get_daddy_performer ()->announce_element (i);
50
50
}