GUIDOLib  1.7.7
A Music Score Rendering Engine
GUIDOReducedProportional.h
Go to the documentation of this file.
1 
2 #ifndef GUIDOReducedProportional_H
3 #define GUIDOReducedProportional_H
4 
5 /*
6  GUIDO Library
7  Copyright (C) 2015 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 "GUIDOEngine.h"
19 #include "GUIDOExport.h"
20 #include "GUIDOScoreMap.h"
21 
22 class RProportional;
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
40  GUIDOAPI RProportional* GuidoAR2RProportional(ARHandler arh);
41 
47  GUIDOAPI RProportional* GuidoMidi2RProportional(const char *midiFileName);
48 
55 
66  GUIDOAPI GuidoErrCode GuidoRProportionalSetLimits(RProportional *pr, GuidoDate start, GuidoDate end, int lowpitch, int highpitch);
67 
74  GUIDOAPI GuidoErrCode GuidoRProportionalDrawDurationLines(RProportional *pr, bool enabled);
75 
85 
96  GUIDOAPI GuidoErrCode GuidoRProportionalSetRGBColorToVoice(RProportional *pr, int voiceNum, int r, int g, int b, int a=255);
97 
105  GUIDOAPI GuidoErrCode GuidoRProportionalSetHtmlColorToVoice(RProportional *pr, int voiceNum, const char* color);
106 
113  GUIDOAPI GuidoErrCode GuidoRProportionalRemoveColorToVoice(RProportional *pr, int voiceNum);
114 
121  GUIDOAPI GuidoErrCode GuidoRProportionalEnableMeasureBars(RProportional *pr, bool enabled);
122 
131  GUIDOAPI GuidoErrCode GuidoRProportionalGetMap(const RProportional *pr, int width, int height, Time2GraphicMap &outmap);
132 
141  GUIDOAPI GuidoErrCode GuidoRProportionalOnDraw(RProportional *pr, int width, int height, VGDevice* dev);
142 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif /* GUIDOPianoRollAPI_H */
GuidoRProportionalSetLimits
GuidoErrCode GuidoRProportionalSetLimits(RProportional *pr, GuidoDate start, GuidoDate end, int lowpitch, int highpitch)
Sets limits to a reduced proportional representation (start/end date, lower/higher pitch)
GUIDOEngine.h
GuidoRProportionalEnableMeasureBars
GuidoErrCode GuidoRProportionalEnableMeasureBars(RProportional *pr, bool enabled)
Enables or disable measure bars (false by default)
GuidoRProportionalSetHtmlColorToVoice
GuidoErrCode GuidoRProportionalSetHtmlColorToVoice(RProportional *pr, int voiceNum, const char *color)
Sets a html color to a voice (first voice is number 1) (black by default)
GuidoRProportionalRemoveColorToVoice
GuidoErrCode GuidoRProportionalRemoveColorToVoice(RProportional *pr, int voiceNum)
remove a color to a voice (first voice is number 1) (black by default)
GuidoAR2RProportional
RProportional * GuidoAR2RProportional(ARHandler arh)
Creates a new reduced proportional representation from AR.
GuidoRProportionalDrawDurationLines
GuidoErrCode GuidoRProportionalDrawDurationLines(RProportional *pr, bool enabled)
Enables or disable duration lines (enabled by default)
GUIDOScoreMap.h
GuidoRProportionalGetMap
GuidoErrCode GuidoRProportionalGetMap(const RProportional *pr, int width, int height, Time2GraphicMap &outmap)
Gets a reduced proportional representation map.
GuidoRProportionalEnableAutoVoicesColoration
GuidoErrCode GuidoRProportionalEnableAutoVoicesColoration(RProportional *pr, bool enabled)
Enables or not the automatic voices coloration (not enabled by default) If a color is manually set wi...
GUIDOAPI
#define GUIDOAPI
Definition: GUIDOExport.h:39
GuidoMidi2RProportional
RProportional * GuidoMidi2RProportional(const char *midiFileName)
Creates a new reduced proportional representation from a midi file.
Time2GraphicMap
std::vector< TMapSegments > Time2GraphicMap
Definition: GUIDOScoreMap.h:89
GuidoErrCode
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
GUIDOExport.h
GuidoDate
Representation of a date as a rational value.
Definition: GUIDOEngine.h:83
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GuidoDestroyRProportional
GuidoErrCode GuidoDestroyRProportional(RProportional *pr)
Destroys a reduced proportional representation and releases all the associated ressources.
GuidoRProportionalOnDraw
GuidoErrCode GuidoRProportionalOnDraw(RProportional *pr, int width, int height, VGDevice *dev)
Draw the reduced proportional representation on a VGDevice.
ARHandler
struct NodeAR * ARHandler
Definition: GUIDOEngine.h:36
GuidoRProportionalSetRGBColorToVoice
GuidoErrCode GuidoRProportionalSetRGBColorToVoice(RProportional *pr, int voiceNum, int r, int g, int b, int a=255)
Sets a RGB color to a voice (first voice is number 1) (black by default)

Guido Project Copyright © 2019 Grame-CNCM