GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARSlur.h
1 #ifndef ARSlur_H
2 #define ARSlur_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 "ARBowing.h"
19 
20 /*@mkdoc
21 
22 @group:Articulations
23 
24 @tagname:\slur
25 @tagalias:\sl <br />slurBegin \slurEnd
26 @tagtype:R
27 @tagnotation:slur
28 @tagdesc
29 @tagend
30 
31 @params:
32 @param:curve:string:up or down:*none*:true
33 @param:dx1:unit:displacement of the left anchor point:2hs:true
34 @param:dy1:unit:displacement of the left anchor point:1hs:true
35 @param:dx2:unit:displacement of the right anchor point:-2hs:true
36 @param:dy2:unit:displacement of the right anchor point:1hs:true
37 @param:r3:float:displacement of the inflection point:0.5:true
38 @param:h:unit:height of the curve:2hs:true
39 @paramdesc
40 The **r3** parameter should be between 0 (leftmost) and 1 (rightmost).
41 
42 Note that using **h** parameter while **curve** direction is also specified may be conflicting.
43 
44 See the [Slurs](@EXAMPLES/slurs/) example.
45 @paramend
46 
47 */
48 
51 class ARSlur : public ARBowing
52 {
53  public:
54  ARSlur() {}
55  ARSlur(const ARSlur * slr) : ARBowing(slr) {}
56  virtual ~ARSlur() {}
57 
58  virtual ARMusicalObject * Copy() const { return new ARSlur(this); }
59  virtual bool MatchEndTag(const char *s);
60 
61  virtual const char* getTagName() const { return "ARSlur"; };
62  virtual std::string getGMNName() const { return "\\slur"; };
63 
64  virtual void browse(TimeUnwrap& mapper) const;
65 };
66 
67 
68 #endif
69 
70 
ARSlur::~ARSlur
virtual ~ARSlur()
Definition: ARSlur.h:56
ARSlur::getGMNName
virtual std::string getGMNName() const
Definition: ARSlur.h:62
ARSlur::browse
virtual void browse(TimeUnwrap &mapper) const
ARSlur::ARSlur
ARSlur()
Definition: ARSlur.h:54
ARSlur::getTagName
virtual const char * getTagName() const
Definition: ARSlur.h:61
ARSlur::Copy
virtual ARMusicalObject * Copy() const
Definition: ARSlur.h:58
ARSlur::ARSlur
ARSlur(const ARSlur *slr)
Definition: ARSlur.h:55
ARMusicalObject
The base class for all AR objects. It contains all musical information : duration and time position.
Definition: ARMusicalObject.h:33
TimeUnwrap
Definition: TimeUnwrap.h:29
ARSlur
not yet documented
Definition: ARSlur.h:51
ARSlur::MatchEndTag
virtual bool MatchEndTag(const char *s)
ARBowing
Implement bowing abstract objects (slur, ties...)
Definition: ARBowing.h:23

Guido Project Copyright © 2019 Grame-CNCM