Classes | Typedefs | Enumerations | Functions | Variables

GUIDOPianoRoll.h File Reference

Go to the source code of this file.

Classes

struct  LimitParams

Typedefs

typedef struct LimitParams LimitParams

Enumerations

enum  PianoRollType { kSimplePianoRoll, kTrajectoryPianoRoll }
 

PianoRollType.

More...

Functions

PianoRoll * GuidoAR2PianoRoll (PianoRollType type, ARHandler arh)
 Creates a new piano roll from AR, corresponding to type : simplePianoRoll -> basic piano roll trajectoryPianoRoll -> every event is graphically linked to the previous one.
PianoRoll * GuidoMidi2PianoRoll (PianoRollType type, const char *midiFileName)
 Creates a new piano roll from Midi, corresponding to type : simplePianoRoll -> basic piano roll trajectoryPianoRoll -> every event is graphically linked to the previous one.
GuidoErrCode GuidoDestroyPianoRoll (PianoRoll *pr)
 Destroys a guido piano roll and releases all the associated ressources.
GuidoErrCode GuidoPianoRollSetLimits (PianoRoll *pr, LimitParams limitParams)
 Sets limits to a piano roll (start/end date, lower/higher pitch)
GuidoErrCode GuidoPianoRollEnableKeyboard (PianoRoll *pr, bool enabled)
 Enables keyboard or not (not enabled by default)
GuidoErrCode GuidoPianoRollGetKeyboardWidth (PianoRoll *pr, int height, float &keyboardWidth)
 Gets the piano roll keyboard width.
GuidoErrCode GuidoPianoRollEnableAutoVoicesColoration (PianoRoll *pr, bool enabled)
 Enables or not the automatic voices coloration (not enabled by default) (not for a midi rendering) // REM: à voir If a color is manually set with GuidoPianoRollSetColorToVoice, automatic color will not be applied for this voice.
GuidoErrCode GuidoPianoRollSetRGBColorToVoice (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 GuidoPianoRollSetHtmlColorToVoice (PianoRoll *pr, int voiceNum, long color)
 Sets a html color to a voice (first voice is number 1) (black by default)
GuidoErrCode GuidoPianoRollEnableMeasureBars (PianoRoll *pr, bool enabled)
 Enables or not measure bars (false by default)
GuidoErrCode GuidoPianoRollSetPitchLinesDisplayMode (PianoRoll *pr, int mode)
 Sets the pitch lines display mode (automatic by default). Use Pitch lines display mode constants to pick lines which will be be displayed. Example : "kCLine + kGLine" will displayed C and G line. "kNoLine" doesn't display any line. "kAutoLines" adjust line display according to piano roll pitch range (automatic possibilities : no line, C line, C and G line, chromatic scale, diatonic scale);.
GuidoErrCode GuidoPianoRollGetMap (PianoRoll *pr, int width, int height, Time2GraphicMap &outmap)
 Gets the piano roll map.
GuidoErrCode GuidoPianoRollOnDraw (PianoRoll *pr, int width, int height, VGDevice *dev)
 Draw the piano roll on a VGDevice.

Variables

const int kCLine = 1
 Pitch lines display mode.
const int kCSharpLine = 1<<1
const int kDLine = 1<<2
const int kDSharpLine = 1<<3
const int kELine = 1<<4
const int kFLine = 1<<5
const int kFSharpLine = 1<<6
const int kGLine = 1<<7
const int kGSharpLine = 1<<8
const int kALine = 1<<9
const int kASharpLine = 1<<10
const int kBLine = 1<<11
const int kAutoLines = 0
const int kNoLine = -1

Typedef Documentation

typedef struct LimitParams LimitParams

Enumeration Type Documentation

PianoRollType.

Enumerator:
kSimplePianoRoll 
kTrajectoryPianoRoll 

Variable Documentation

const int kCLine = 1

Pitch lines display mode.

const int kCSharpLine = 1<<1
const int kDLine = 1<<2
const int kDSharpLine = 1<<3
const int kELine = 1<<4
const int kFLine = 1<<5
const int kFSharpLine = 1<<6
const int kGLine = 1<<7
const int kGSharpLine = 1<<8
const int kALine = 1<<9
const int kASharpLine = 1<<10
const int kBLine = 1<<11
const int kAutoLines = 0
const int kNoLine = -1