GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARRepeatBegin.h
1 #ifndef ARRepeatBegin_H
2 #define ARRepeatBegin_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 "ARBar.h"
19 
20 class ARRepeatEnd;
21 
22 /*@mkdoc
23 
24 @group:Repeat Signs
25 
26 @tagname:\repeatBegin
27 @tagalias:
28 @tagtype:P
29 @tagnotation:A begin repeat bar
30 @tagdesc
31 See the [Repeat Signs](@EXAMPLES/repeats/) example.
32 @tagend
33 
34 */
35 
39 {
40  public:
41  ARRepeatBegin() { dur.setNumerator(-1); }
42  virtual ~ARRepeatBegin() {}
43 
44  virtual const char* getTagName() const { return "ARRepeatBegin"; };
45  virtual std::string getGMNName() const { return "\\repeatBegin"; };
46  virtual void browse(TimeUnwrap& mapper) const;
47 
48  virtual void setRepeatEnd( const ARRepeatEnd * );
49 
50  ARMusicalObject *isARRepeatBegin() { return this; }
51  const ARBar::TRanges& getRanges () const { return fRanges; }
52  void setRanges (const ARBar::TRanges& r) { fRanges = r; }
53 
54  private:
55  ARBar::TRanges fRanges;
56  TYPE_DURATION dur;
57 };
58 
59 #endif
Fraction
Numerator and denominator.
Definition: Fraction.h:23
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARBar::TRanges
std::vector< std::pair< int, int > > TRanges
Definition: ARBar.h:54
ARRepeatBegin::~ARRepeatBegin
virtual ~ARRepeatBegin()
Definition: ARRepeatBegin.h:42
ARRepeatBegin
The right facing repeat sign.
Definition: ARRepeatBegin.h:38
Fraction::setNumerator
void setNumerator(long long newNumerator)
ARRepeatBegin::isARRepeatBegin
ARMusicalObject * isARRepeatBegin()
Definition: ARRepeatBegin.h:50
ARRepeatBegin::setRepeatEnd
virtual void setRepeatEnd(const ARRepeatEnd *)
ARRepeatBegin::browse
virtual void browse(TimeUnwrap &mapper) const
ARRepeatEnd
not yet documented
Definition: ARRepeatEnd.h:39
ARMusicalObject
The base class for all AR objects. It contains all musical information : duration and time position.
Definition: ARMusicalObject.h:33
ARRepeatBegin::getGMNName
virtual std::string getGMNName() const
Definition: ARRepeatBegin.h:45
ARRepeatBegin::getTagName
virtual const char * getTagName() const
Definition: ARRepeatBegin.h:44
TimeUnwrap
Definition: TimeUnwrap.h:29
ARRepeatBegin::getRanges
const ARBar::TRanges & getRanges() const
Definition: ARRepeatBegin.h:51
ARRepeatBegin::ARRepeatBegin
ARRepeatBegin()
Definition: ARRepeatBegin.h:41
ARRepeatBegin::setRanges
void setRanges(const ARBar::TRanges &r)
Definition: ARRepeatBegin.h:52

Guido Project Copyright © 2019 Grame-CNCM