XX CMake Package
Loading...
Searching...
No Matches
XX::Note Class Reference

musical note More...

#include <XXNote.h>

Detailed Description

musical note

Public Types

enum  Value : uchar {
  C = 0 , Cs , D , Ds ,
  E , F , Fs , G ,
  Gs , A , As , B ,
  Invalid
}
using List = QList<Note>
using Octave = uchar

Public Member Functions

 Note ()
bool operator== (const Note &other) const
bool operator!= (const Note &other) const
bool operator< (const Note &other) const
Note up () const
Note down () const
bool isWhiteKey () const
bool isBlackKey () const
bool isValid () const
const QString & getName () const
const ValuegetValue () const
const OctavegetOctave () const
const float & getFrequency () const
const float & getVoltage () const
const uchar & getMidiValue () const

Static Public Member Functions

static const NotefromVoltage (float voltage)
static const NotefromMidi (uchar midi)
static const NotefromFrequency (float frequency)
static const NotefromValue (Value value)

Static Public Attributes

static const QString sharpSymbol
static const QString flatSymbol
static const Note zeroNote
static const List availableNotes
static const uchar maxNoteIndex

Member Typedef Documentation

◆ List

using XX::Note::List = QList<Note>

◆ Octave

using XX::Note::Octave = uchar

Member Enumeration Documentation

◆ Value

enum XX::Note::Value : uchar
Enumerator
Cs 
Ds 
Fs 
Gs 
As 
Invalid 

Constructor & Destructor Documentation

◆ Note()

XX::Note::Note ( )

Member Function Documentation

◆ down()

Note XX::Note::down ( ) const

◆ fromFrequency()

const Note & XX::Note::fromFrequency ( float frequency)
static

◆ fromMidi()

const Note & XX::Note::fromMidi ( uchar midi)
static

◆ fromValue()

const Note & XX::Note::fromValue ( Value value)
static

◆ fromVoltage()

const Note & XX::Note::fromVoltage ( float voltage)
static

◆ getFrequency()

const float & XX::Note::getFrequency ( ) const

◆ getMidiValue()

const uchar & XX::Note::getMidiValue ( ) const

◆ getName()

const QString & XX::Note::getName ( ) const

◆ getOctave()

const Octave & XX::Note::getOctave ( ) const

◆ getValue()

const Value & XX::Note::getValue ( ) const

◆ getVoltage()

const float & XX::Note::getVoltage ( ) const

◆ isBlackKey()

bool XX::Note::isBlackKey ( ) const

◆ isValid()

bool XX::Note::isValid ( ) const

◆ isWhiteKey()

bool XX::Note::isWhiteKey ( ) const

◆ operator!=()

bool XX::Note::operator!= ( const Note & other) const

◆ operator<()

bool XX::Note::operator< ( const Note & other) const

◆ operator==()

bool XX::Note::operator== ( const Note & other) const

◆ up()

Note XX::Note::up ( ) const

Member Data Documentation

◆ availableNotes

const List XX::Note::availableNotes
static

◆ flatSymbol

const QString XX::Note::flatSymbol
static

◆ maxNoteIndex

const uchar XX::Note::maxNoteIndex
static

◆ sharpSymbol

const QString XX::Note::sharpSymbol
static

◆ zeroNote

const Note XX::Note::zeroNote
static

The documentation for this class was generated from the following file: