GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARIntens.h
1 #ifndef ARIntens_H
2 #define ARIntens_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 <string>
19 
20 #include "ARFontAble.h"
21 
22 
23 /*@mkdoc
24 
25 @group:Dynamics
26 
27 @tagname:\intensity
28 @tagalias:\intens<br />\i
29 @tagtype:P
30 @tagnotation:dynamic marks
31 @tagdesc
32 @tagend
33 
34 
35 @params:
36 @param:type:string:a dynamic string:*none*:false
37 @param:before:string:a string displayed before the dynamic mark:*none*:true
38 @param:after:string:a string displayed after the dynamic mark:*none*:true
39 @param:autopos:boolean:when 'on', try to automatically avoid collisions:off:true
40 #fontparams:
41 @paramdesc
42 - supported dynamic strings are "p", "pp", "ppp", "pppp", "f", "ff", "fff", "ffff", "mf", "mp", "sf", "sfz", "rfz" and "fz"
43 
44 See the [Dynamics](@EXAMPLES/dynamics/) example.
45 @paramend
46 
47 */
48 
51 class ARIntens : public ARFontAble
52 {
53  public:
54  ARIntens(const char * txt);
55  ARIntens(bool autopos);
56  virtual ~ARIntens() {}
57 
58  virtual void setTagParameters (const TagParameterMap& params);
59 
60  virtual const std::string& getText() const { return fIntens; }
61  virtual const std::string& getTextBefore() const { return fBefore; }
62  virtual const std::string& getTextAfter() const { return fAfter; }
63 
64  virtual const char* getParamsStr() const { return kARIntensParams; };
65  virtual const char* getTagName() const { return "ARIntens"; };
66  virtual std::string getGMNName() const { return "\\intens"; };
67 
68  virtual void browse(TimeUnwrap& mapper) const;
69 
70  bool autoPos() const { return fAutoPos; }
71 
72  protected:
73  std::string fIntens;
74  std::string fBefore;
75  std::string fAfter;
76  bool fAutoPos;
77 };
78 
79 #endif
ARIntens::~ARIntens
virtual ~ARIntens()
Definition: ARIntens.h:56
ARIntens::ARIntens
ARIntens(const char *txt)
ARIntens
The intensity tag.
Definition: ARIntens.h:51
ARFontAble
Definition: ARFontAble.h:21
ARIntens::browse
virtual void browse(TimeUnwrap &mapper) const
ARIntens::autoPos
bool autoPos() const
Definition: ARIntens.h:70
ARIntens::getTagName
virtual const char * getTagName() const
Definition: ARIntens.h:65
ARIntens::fAfter
std::string fAfter
Definition: ARIntens.h:75
ARIntens::getTextAfter
virtual const std::string & getTextAfter() const
Definition: ARIntens.h:62
ARIntens::getTextBefore
virtual const std::string & getTextBefore() const
Definition: ARIntens.h:61
ARIntens::getText
virtual const std::string & getText() const
Definition: ARIntens.h:60
ARIntens::getGMNName
virtual std::string getGMNName() const
Definition: ARIntens.h:66
ARIntens::setTagParameters
virtual void setTagParameters(const TagParameterMap &params)
TagParameterMap
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
ARIntens::fIntens
std::string fIntens
Definition: ARIntens.h:73
ARIntens::fAutoPos
bool fAutoPos
Definition: ARIntens.h:76
ARIntens::fBefore
std::string fBefore
Definition: ARIntens.h:74
TimeUnwrap
Definition: TimeUnwrap.h:29
ARIntens::getParamsStr
virtual const char * getParamsStr() const
Definition: ARIntens.h:64

Guido Project Copyright © 2019 Grame-CNCM