GUIDOLib
1.7.7
A Music Score Rendering Engine
|
Go to the documentation of this file. 1 #ifndef GUIDOPIANOROLLADAPTER_H 2 #define GUIDOPIANOROLLADAPTER_H 182 std::string
svgExport(PianoRoll *pr,
int width,
int height);
192 GuidoErrCode javascriptExport(PianoRoll *pr,
int width,
int height);
198 #endif // GUIDOPIANOROLLADAPTER_H
GuidoErrCode setLimits(PianoRoll *pr, LimitParams &limitParams)
Sets limits to a piano roll (start/end date, lower/higher pitch)
GuidoErrCode enableMeasureBars(PianoRoll *pr, bool enabled)
Enables or not measure bars (false by default)
GuidoErrCode setHtmlColorToVoice(PianoRoll *pr, int voiceNum, long color)
Sets a html color to a voice (first voice is number 1) (black by default)
std::string svgExport(PianoRoll *pr, int width, int height)
svgExport Draw the piano roll on SVG device and return the xml string.
GuidoErrCode onDraw(PianoRoll *pr, int width, int height, VGDevice *dev)
Draw the piano roll on a VGDevice.
GuidoErrCode destroyPianoRoll(PianoRoll *pr)
Destroys a guido piano roll and releases all the associated ressources.
virtual ~GUIDOPianoRollAdapter()
GuidoErrCode enableAutoVoicesColoration(PianoRoll *pr, bool enabled)
Enables or not the automatic voices coloration (not enabled by default) (not for a midi rendering) //...
Time2GraphicMap getMap(PianoRoll *pr, int width, int height)
Gets the piano roll map.
GuidoErrCode setColorToVoice(PianoRoll *pr, int voiceNum, const std::string &color)
Sets a html color to a voice (first voice is number 1) (black by default)
std::vector< TMapSegments > Time2GraphicMap
Definition: GUIDOScoreMap.h:89
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
PianoRoll * ar2PianoRoll(PianoRollType type, ARHandler arh)
Creates a new piano roll from AR, corresponding to type : simplePianoRoll -> basic piano roll traject...
Generic platform independant drawing device.
Definition: VGDevice.h:68
A struct to set a piano roll boundaries in time and in pitch.
Definition: GUIDOPianoRoll.h:57
PianoRollType
PianoRollType.
Definition: GUIDOPianoRoll.h:32
struct NodeAR * ARHandler
Definition: GUIDOEngine.h:36
#define class_export
Definition: GUIDOExport.h:38
class_export GUIDOPianoRollAdapter
Definition: GUIDOPianoRollAdapter.h:30
GuidoErrCode setRGBColorToVoice(PianoRoll *pr, int voiceNum, int r, int g, int b, int a)
Sets a RGB color to a voice (first voice is number 1) (black by default)
GuidoErrCode enableKeyboard(PianoRoll *pr, bool enabled)
Enables keyboard or not (not enabled by default)
GuidoErrCode setPitchLinesDisplayMode(PianoRoll *pr, int mode)
Sets the pitch lines display mode (automatic by default). Use Pitch lines display mode constants to p...
PianoRoll * midi2PianoRoll(PianoRollType type, const std::string &midiFileName)
Creates a new piano roll from Midi, corresponding to type : simplePianoRoll -> basic piano roll traje...
GuidoErrCode removeColorToVoice(PianoRoll *pr, int voiceNum)
remove a color to a voice (first voice is number 1) (black by default)
float getKeyboardWidth(PianoRoll *pr, int height)
Gets the piano roll keyboard width.