-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathARMusic.h
More file actions
77 lines (56 loc) · 2.28 KB
/
ARMusic.h
File metadata and controls
77 lines (56 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef ARMusic_H
#define ARMusic_H
/*
GUIDO Library
Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
Copyright (C) 2002-2017 Grame
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
research@grame.fr
*/
#include "MusicalVoiceList.h"
#include "ARMusicalEvent.h"
#include "ARMusicalVoiceState.h"// for MusicalVoiceList
#include "GUIDOScoreMap.h"
#include "kf_ilist.h" // for MusicalVoiceList
class ARMusic;
extern ARMusic * gCurArMusic;
/** \brief Translation of a GUIDO Segment into a class.
*/
class ARMusic : public MusicalVoiceList, public ARMusicalEvent
{
public:
ARMusic();
virtual ~ARMusic();
void MarkVoice(int voicenum,int fromnum, int fromdenom, int lengthnum, int lengthdenom, unsigned char red, unsigned char green, unsigned char blue);
void MarkVoice(int voicenum, float from, float length, unsigned char red, unsigned char green, unsigned char blue);
int countVoices() const;
void doAutoStuff();
GuidoPos AddTail(ARMusicalVoice * newMusicalVoice);
void adjustDuration(TYPE_DURATION newDuration);
virtual void accept(ARVisitor& visitor);
// virtual void resetGRRepresentation();
virtual void getTimeMap (TimeMapCollector& f) const;
bool getMeterAt (int voicenum, const GuidoDate &date, GuidoMeter& meter);
bool getMetersAt (int voicenum, const GuidoDate &date, GuidoMeters& meters);
size_t getTempoList (GuidoTempoList& tempi);
void removeAutoTags();
const NVstring & getName() const { return mName; }
void setName(const char * in) { mName = in; }
const std::vector<std::string> &getPath() const { return mPaths; }
void setPath( std::vector<std::string> inPaths) { mPaths = inPaths; }
void setParseTime(long time) { mParseTime = time; }
long getParseTime() const { return mParseTime; }
long mMaxTagId;
static int mRefCount;
protected:
void doAutoBreaks();
// check multiple octava on multiple voice, same staff
void doOctavaCheck();
NVstring mName;
std::vector<std::string> mPaths;
long mParseTime;
};
#endif