FrettedNote Class

The FrettedNote class is derived from Note. It models a musical note that is created on a guitar.

Defined in: fret.hpp and fret.cpp

Class Members

Data Members

public

GuitarString guitarString

Guitar string used to create the note.

Fret guitarFret

Guitar fret used to to create the note.

Member Functions

public

FrettedNote (void)

Constructs a FrettedNote object.

FrettedNote (Note & note, Fret & guitar_fret, GuitarString & guitar_string)

Constructs a FrettedNote object using the specified note, fret and string information.

FrettedNote (const FrettedNote & fretted_note)

Constructs a FrettedNote object that is a copy of the specified FrettedNote.

virtual ~FrettedNote (void)

FrettedNote destructor

FrettedNote & operator= (const FrettedNote & fretted_note)

Assignment operator

bool operator== (const FrettedNote & fretted_note)

Equality operator

unsigned short GetFretNumber (void)

Returns the fret number of the note.

virtual unsigned short getPosition (float x_origin, float y_origin, float & object_x, float & object_y, unsigned short coord_type)

Overrides VObject's getPosition to return positional information about the object.

virtual unsigned short setPosition (float x_origin, float y_origin, float object_x, float object_y, unsigned short coord_type)

Overrides VObject's setPosition to set an object's  positional information.

See Also

Note

Copyright 2002-2007 Outerface Technologies, Inc.