|
arduino-audio-tools
|
Determination of the frequency of a music note. More...
#include <MusicalNotes.h>
Public Types | |
| enum | MusicalNotesEnum { C , CS , D , DS , E , F , FS , G , GS , A , AS , B } |
| Notes. | |
Public Member Functions | |
| float | frequency (MusicalNotesEnum note, uint8_t octave) const |
| Determines the frequency of the indicate note and octave (0-8) | |
| float | frequency (uint16_t idx) const |
| Determines the frequency of the indicate note index from 0 to 107. | |
| int | frequencyCount () const |
| int | frequencyToMidiNote (float freq) const |
| Provide MIDI note for frequency. | |
| bool | isAudible (float frequency) const |
| Returns true if the frequency is audible (in the range of 20 Hz to 20 kHz) | |
| float | mainFrequency (uint64_t idx) const |
| Determines the frequency of the indicate main note index from 0 to 62. | |
| float | mainFrequency (uint8_t mainNoteIdx, uint8_t octave) const |
| Determines the frequency of the indicate main note index (0-6) and octave (0-8) | |
| float | midiNoteToFrequency (int x) const |
| Determine frequency of MIDI note. | |
| const char * | note (float frequency) const |
| Determines the closes note for a frequency. | |
| const char * | note (float frequency, float &diff) const |
| Determines the closes note for a frequency. We also return the frequency difference. | |
| const char * | noteAt (int idx) |
| Provides the note name for an index position. | |
| float | stkNoteToFrequency (int noteNumber) const |
Protected Attributes | |
| float | notes [9][12] |
| const char * | notes_str [9 *12] |
Determination of the frequency of a music note.
|
protected |
|
protected |