GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARArpeggio.h
1 #ifndef ARArpeggio_H
2 #define ARArpeggio_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2002-2017 Grame
8 
9  This Source Code Form is subject to the terms of the Mozilla Public
10  License, v. 2.0. If a copy of the MPL was not distributed with this
11  file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 
13  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
14  research@grame.fr
15 
16 */
17 
18 #include "ARMTParameter.h"
19 #include "ARPositionTag.h"
20 
21 /*@mkdoc
22 
23 @group:Ornaments
24 
25 @tagname:\arpeggio
26 @tagalias:
27 @tagtype:R
28 @tagnotation:an arpeggio sign
29 @tagdesc
30 The **\arpeggio** tag displays arpeggio signs and should be applied to chords only.
31 It has no effect on single notes.
32 @tagend
33 
34 @params:
35 @param:direction:string:up or down:*none*:true
36 @paramdesc
37 - up: to display an up arrow
38 - down: to display a down arrow
39 
40 See the [Articulations](@EXAMPLES/articulations/) example.
41 @paramend
42 
43 */
44 
47 class ARArpeggio : public ARMTParameter, public ARPositionTag
48 {
49  public:
50  ARArpeggio();
51  virtual ~ARArpeggio() {}
52 
53  enum dir { kUnknown, kUp, kDown };
54 
55  virtual bool MatchEndTag(const char * s);
56 
57  virtual const char* getParamsStr() const { return kARArpeggioParams; };
58  virtual const char* getTagName() const { return "ARArpeggio"; };
59  virtual std::string getGMNName() const { return "\\arpeggio"; };
60 
61  virtual void setTagParameters (const TagParameterMap& params);
62 
63  dir getDirection() const { return fDirection; }
64 
65  protected:
67 };
68 
69 #endif
70 
ARArpeggio::kUp
Definition: ARArpeggio.h:53
ARArpeggio::fDirection
dir fDirection
Definition: ARArpeggio.h:66
ARArpeggio::~ARArpeggio
virtual ~ARArpeggio()
Definition: ARArpeggio.h:51
ARArpeggio
Abstract representation of aa arpeggio.
Definition: ARArpeggio.h:47
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARArpeggio::MatchEndTag
virtual bool MatchEndTag(const char *s)
ARArpeggio::dir
dir
Definition: ARArpeggio.h:53
ARArpeggio::getParamsStr
virtual const char * getParamsStr() const
Definition: ARArpeggio.h:57
ARArpeggio::setTagParameters
virtual void setTagParameters(const TagParameterMap &params)
ARArpeggio::kDown
Definition: ARArpeggio.h:53
ARPositionTag
The base class for all range tags.
Definition: ARPositionTag.h:26
TagParameterMap
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
ARArpeggio::ARArpeggio
ARArpeggio()
ARArpeggio::kUnknown
Definition: ARArpeggio.h:53
ARArpeggio::getTagName
virtual const char * getTagName() const
Definition: ARArpeggio.h:58
ARArpeggio::getGMNName
virtual std::string getGMNName() const
Definition: ARArpeggio.h:59
ARArpeggio::getDirection
dir getDirection() const
Definition: ARArpeggio.h:63

Guido Project Copyright © 2019 Grame-CNCM