|
class NoteThe note event contains a pitch, velocity, enharmonic shift, channel and a vector of ornaments. #include <prPartEditor.h> Inherits: Event |
The note event contains a pitch, velocity, enharmonic shift, channel and a vector of ornaments.
Note ( )
Default constructor
Note (Note*)
Constructor used by copy()
Note (int pitch, int vel, long len, Position pos, int enh, int c=-1)
Use this constructor to build a new note
Note (char* pitch, int vel, long len, Position pos, int enh, int c=-1)
Use this constructor to build a new note
~Note ()
This destructor gets rid of the ornament vector
int pitch ()
returns the pitch
int vel ()
returns the velocity
int enh ()
returns the enharmonic shift
int chan ()
returns the channel. -1 invikes the default (part defined) channel
Vector * ornament ()
returns the ornament-vector
void setPitch (int f)
sets the pitch
void setVel (int v)
sets the velocity
void setEnh (int e)
sets the enharmonic shift
void setChan (int c)
sets the MIDI channel
void add (Ornament*)
adds an ornament to the ornament vector
void remove (Ornament*)
removes an ornament from the ornament vector. The ornament is not deleted here, deletion is done in AddOrnament's destructor
Expression * setExpression (int)
returns an ornament of the ornament vector, and creates it, if necessary
Bow * setBow (int,int,int)
returns an ornament of the ornament vector, and creates it, if necessary
Lyrics * lyrics ()
returns the note's lyrics. No new lyrics are created if they don't exist yet.
char * cPitch ()
returns the pitch in a nice character presentation
ostream & print (int,ostream&) [virtual]
implementation of the print method
void flush (char*) [virtual]
implementation of the flush method
Element * copy () [virtual]
implementation of the copy method
Element * load (char*,ifstream*&,Element*) [static]
implementation of the load method
Generated by: wuerthne@clouseau on Fri Jan 19 23:08:00 200. |