GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARMMRest.h
1 
2 /*
3  GUIDO Library
4  Copyright (C) 2020 Grame
5 
6  This Source Code Form is subject to the terms of the Mozilla Public
7  License, v. 2.0. If a copy of the MPL was not distributed with this
8  file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
11  research@grame.fr
12 
13 */
14 
15 #pragma once
16 
17 #include <string>
18 
19 #include "ARMTParameter.h"
20 #include "ARPositionTag.h"
21 
22 
23 /*@mkdoc
24 
25 @group:Notes
26 
27 @tagname:\mrest
28 @tagtype:R
29 @tagnotation:when applied to a whole measure rest, indicates the measures count.
30 @tagdesc
31 @tagend
32 
33 @params:
34 @param:count:integer:a measures count:*none*:false
35 @paramdesc
36 [Common parameters](../../tagsparams#common-parameters) are applied to the measures count only.
37 You can use the [\restFormat](#restformat) tag to control the rest appearance.
38 
39 The tag is ignored when not applied to a rest.
40 When the rest is not a full measure rest, the rest appearance is preserved and the count is still displayed.
41 @paramend
42 
43 */
44 
45 
48 class ARMMRest : public ARMTParameter, public ARPositionTag
49 {
50  public:
51  ARMMRest();
52  virtual ~ARMMRest() {};
53 
54  virtual const char* getParamsStr() const { return kARMMRestParams; };
55  virtual const char* getTagName () const { return "ARMMRest"; };
56  virtual std::string getGMNName () const { return "\\mrest"; };
57 
58  int getMeasuresCount() const;
59 };
ARMMRest::getGMNName
virtual std::string getGMNName() const
Definition: ARMMRest.h:56
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARMMRest::getParamsStr
virtual const char * getParamsStr() const
Definition: ARMMRest.h:54
ARMMRest::getTagName
virtual const char * getTagName() const
Definition: ARMMRest.h:55
ARMMRest::~ARMMRest
virtual ~ARMMRest()
Definition: ARMMRest.h:52
ARMMRest::getMeasuresCount
int getMeasuresCount() const
ARMMRest
intended to multiple measures rests
Definition: ARMMRest.h:48
ARPositionTag
The base class for all range tags.
Definition: ARPositionTag.h:26
ARMMRest::ARMMRest
ARMMRest()

Guido Project Copyright © 2019 Grame-CNCM