GUIDOLib  1.7.7
Guido Engine Internal Documentation
NoteAndChordFactory.h
1 #ifndef NoteAndChordFactory_H
2 #define NoteAndChordFactory_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2003 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 "kf_ilist.h" // required
19 
20 #include "ARDefine.h"
21 //#include "TagParameterList.h"
22 #include "ARMusicalTag.h"
23 #include "ARFactory.h"
24 
25 
32 {
33  public:
34 
36 
38  virtual ~NoteAndChordFactory();
39 
40 
41  virtual void createChord();
42  virtual void addChord();
43 
44  virtual void initChordNote();
45 
46  virtual void createEvent( const char * name );
47  virtual void addEvent();
48 
49  virtual void createTag( TYPE_TAG_NAME_CONST name, int no = -1) {}
50 
51  virtual void tagRange(){}
52 
53  virtual void endTag(){}
54  virtual void addTag(){}
55 
56  virtual void setVoice(ARMusicalVoice * voice) {mCurrentVoice = voice;}
57  virtual void setAccidentals( TYPE_ACCIDENTALS accidentals );
58 
59  virtual void addTagParameter( const char * parameter ){}
60  virtual void addTagParameter( TYPE_TAGPARAMETER_INT parameter ){}
61  virtual void addTagParameter( TYPE_TAGPARAMETER_REAL parameter ){}
62 // virtual void setTagParameterList( TagParameterList theTagParameterList ){}
63 
64  virtual void setParameterName( const char * name ){}
65  virtual void setUnit( const char * s ){}
66 
67  virtual void setRegister(TYPE_REGISTER newRegister);
68 
69  virtual void setNumerator(int newNumerator);
70  virtual void setDenominator(int newDenominator);
71 
72  virtual bool isDone() {return mDone;}
73 
74  private:
75 
76  ARMusicalVoice * mCurrentVoice;
77  ARMusicalEvent * mCurrentEvent;
78 
79  int mCurrentRegister; // (octave)
80  int mCurrentNumerator;
81  int mCurrentDenominator;
82  int mCurrentIntensity;
83  bool mDone;
84  bool mInChord;
85 };
86 
87 #endif
88 
89 
ARMusicalVoice
The class for GUIDO sequence, list of timepositions of events of a stream.
Definition: ARMusicalVoice.h:76
NoteAndChordFactory::setUnit
virtual void setUnit(const char *s)
Definition: NoteAndChordFactory.h:65
NoteAndChordFactory::addChord
virtual void addChord()
NoteAndChordFactory::createTag
virtual void createTag(TYPE_TAG_NAME_CONST name, int no=-1)
Definition: NoteAndChordFactory.h:49
NoteAndChordFactory::BEAMSEXPLICIT
Definition: NoteAndChordFactory.h:35
NoteAndChordFactory::setDenominator
virtual void setDenominator(int newDenominator)
NoteAndChordFactory::addTagParameter
virtual void addTagParameter(const char *parameter)
Definition: NoteAndChordFactory.h:59
NoteAndChordFactory::setParameterName
virtual void setParameterName(const char *name)
Definition: NoteAndChordFactory.h:64
ARMusicalEvent
Class for musical events (events have an own duration tags not)
Definition: ARMusicalEvent.h:26
NoteAndChordFactory::NoteAndChordFactory
NoteAndChordFactory()
NoteAndChordFactory::initChordNote
virtual void initChordNote()
NoteAndChordFactory::addTagParameter
virtual void addTagParameter(TYPE_TAGPARAMETER_INT parameter)
Definition: NoteAndChordFactory.h:60
NoteAndChordFactory::createChord
virtual void createChord()
NoteAndChordFactory::addEvent
virtual void addEvent()
NoteAndChordFactory::setAccidentals
virtual void setAccidentals(TYPE_ACCIDENTALS accidentals)
ARFactory
Class used in order to build the abstract representation (AR) structure of music.
Definition: ARFactory.h:60
NoteAndChordFactory
Class used in order to build the abstract representation (AR) structure of music.
Definition: NoteAndChordFactory.h:31
NoteAndChordFactory::endTag
virtual void endTag()
Definition: NoteAndChordFactory.h:53
NoteAndChordFactory::createEvent
virtual void createEvent(const char *name)
NoteAndChordFactory::addTag
virtual void addTag()
Definition: NoteAndChordFactory.h:54
NoteAndChordFactory::bmstate
bmstate
Definition: NoteAndChordFactory.h:35
NoteAndChordFactory::~NoteAndChordFactory
virtual ~NoteAndChordFactory()
NoteAndChordFactory::tagRange
virtual void tagRange()
Definition: NoteAndChordFactory.h:51
NoteAndChordFactory::isDone
virtual bool isDone()
Definition: NoteAndChordFactory.h:72
NoteAndChordFactory::setNumerator
virtual void setNumerator(int newNumerator)
NoteAndChordFactory::BEAMSOFF
Definition: NoteAndChordFactory.h:35
NoteAndChordFactory::addTagParameter
virtual void addTagParameter(TYPE_TAGPARAMETER_REAL parameter)
Definition: NoteAndChordFactory.h:61
NoteAndChordFactory::setRegister
virtual void setRegister(TYPE_REGISTER newRegister)
NoteAndChordFactory::setVoice
virtual void setVoice(ARMusicalVoice *voice)
Definition: NoteAndChordFactory.h:56
NoteAndChordFactory::BEAMSAUTO
Definition: NoteAndChordFactory.h:35

Guido Project Copyright © 2019 Grame-CNCM