summaryrefslogtreecommitdiff
path: root/lily/include/crescendo.hh
blob: cb6b159ad770c9545a1447d3ed4a16ab4cd6911d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
  crescendo.hh -- declare Crescendo

  source file of the LilyPond music typesetter

  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/


#ifndef CRESCENDO_HH
#define CRESCENDO_HH

#include "spanner.hh"
/**
  The hairpin symbol. (cresc)
 */
class Crescendo : public Spanner {
    int staff_size_i_;
public:
    int grow_dir_i_;
    int dir_i_;
    /// if there is a dynamic at the end, make the sign smaller.
    bool right_dyn_b_;

    /// if there is a dynamic at the end, make the sign smaller.
    bool left_dyn_b_;
    Crescendo(int staff_size_i);
private:
    Spanner* do_break_at( PCol*, PCol*) const;
    Molecule*brew_molecule_p()const;
    NAME_MEMBERS(Crescendo);
};

#endif // CRESCENDO_HH