|
Canorus 0.0
|
Represents a note with custom length and Midi-defined pitch. More...
#include <midinote.h>

Private Attributes | |
| int | _midiPitch |
Additional Inherited Members | |
Public Types inherited from CAMusElement | |
| enum | CAMusElementType { Undefined = 0 , Note , Rest , MidiNote , Barline , Clef , TimeSignature , KeySignature , Slur , Tuplet , Syllable , FunctionMark , FiguredBassMark , Mark } |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Protected Member Functions inherited from CAMusElement | |
| void | setMusElementType (CAMusElementType type) |
Protected Attributes inherited from CAPlayable | |
| CAPlayableLength | _playableLength |
| CAVoice * | _voice |
| CATuplet * | _tuplet |
Protected Attributes inherited from CAMusElement | |
| CAMusElementType | _musElementType |
| QList< CAMark * > | _markList |
| QList< CANoteCheckerError * > | _noteCheckerErrorList |
| CAContext * | _context |
| int | _timeStart |
| int | _timeLength |
| bool | _visible |
| QColor | _color |
| QString | _name |
Represents a note with custom length and Midi-defined pitch.
Copyright (c) 2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
This class is usually used when a composer wants to import his improvisations and the input Midi files are naturally recorded and are too difficult to quantize. However, composer wants to see his recorded notes in the staff so he can transcribe the prototype improvisation into actual notes. The CAMidiNote class represents a Midi Note-On/Note-Off pair of events with defined timeStart, timeLength and Midi pitch. The class is usually used to graphically display the recorded Midi events in the staff and nothing more.
| CAMidiNote::CAMidiNote | ( | int | pitch, |
| int | timeStart, | ||
| int | timeLength, | ||
| CAVoice * | v | ||
| ) |
References CAMusElement::MidiNote, and CAMusElement::setMusElementType().
Referenced by clone().


|
virtual |
|
virtual |
Implements CAPlayable.
References CAMidiNote(), midiPitch(), CAMusElement::timeLength(), and CAMusElement::timeStart().

|
virtual |
Compares the music element with the given elt and returns number of differences in their properties. Returns 0, if the music elements are exact; -1 if the music element type differs; otherwise number greater than 0.
This method is usually used when opening a score document where music elements are written in various voices (eg. barlines), but are eventually merged and written only once per staff.
Implements CAMusElement.
References CAMusElement::MidiNote, midiPitch(), and CAMusElement::musElementType().

|
inline |
References _midiPitch.
Referenced by clone(), compare(), and CALayoutEngine::reposit().

|
inline |
References _midiPitch.
|
private |
Referenced by midiPitch(), and setMidiPitch().