Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Classes | Functions | Variables
MIDI_Notes Namespace Reference

Detailed Description

MIDI note names.

Uses the Scientific Pitch Notation system, where A4 is 440 Hz, and C-1 is 8.1758 Hz.

Octave C C♯/D♭ D D♯/E♭ E F F♯/G♭ G G♯/A♭ A A♯/B♭ B
-1 0 1 2 3 4 5 6 7 8 9 10 11
0 12 13 14 15 16 17 18 19 20 21 22 23
1 24 25 26 27 28 29 30 31 32 33 34 35
2 36 37 38 39 40 41 42 43 44 45 46 47
3 48 49 50 51 52 53 54 55 56 57 58 59
4 60 61 62 63 64 65 66 67 68 69 70 71
5 72 73 74 75 76 77 78 79 80 81 82 83
6 84 85 86 87 88 89 90 91 92 93 94 95
7 96 97 98 99 100 101 102 103 104 105 106 107
8 108 109 110 111 112 113 114 115 116 117 118 119

Classes

class  Note
 

Functions

constexpr int8_t note (Note note, int8_t numOctave)
 Get the MIDI note in the given octave.
 

Variables

constexpr Note C = (Note::C)()
 C (Do)
 
constexpr Note Db = (Note::Db)()
 C♯, D♭ (Do sharp, Re flat)
 
constexpr Note D = (Note::D)()
 D (Re)
 
constexpr Note Eb = (Note::Eb)()
 D♯, E♭ (Re sharp, Mi flat)
 
constexpr Note E = (Note::E)()
 E (Mi)
 
constexpr Note F = (Note::F)()
 F (Fa)
 
constexpr Note Gb = (Note::Gb)()
 F♯, G♭ (Fa sharp, Sol flat)
 
constexpr Note G = (Note::G)()
 G (Sol)
 
constexpr Note Ab = (Note::Ab)()
 G♯, A♭ (Sol sharp, La flat)
 
constexpr Note A = (Note::A)()
 A (La)
 
constexpr Note Bb = (Note::Bb)()
 A♯, B♭ (La sharp, Si flat)
 
constexpr Note B = (Note::B)()
 B (Si)
 
constexpr Note F_ = (Note::F)()
 F (Fa)
 

Function Documentation

◆ note()

constexpr int8_t note ( Note note,
int8_t numOctave )
constexpr

Get the MIDI note in the given octave.

Definition at line 74 of file Notes.hpp.

Variable Documentation

◆ C

constexpr Note C = (Note::C)()
constexpr

◆ Db

constexpr Note Db = (Note::Db)()
constexpr

C♯, D♭ (Do sharp, Re flat)

Examples
Note-ManyAddresses-Transposer.ino.

Definition at line 57 of file Notes.hpp.

◆ D

constexpr Note D = (Note::D)()
constexpr

D (Re)

Examples
2.First-Input.ino, and Transposer.ino.

Definition at line 58 of file Notes.hpp.

◆ Eb

constexpr Note Eb = (Note::Eb)()
constexpr

D♯, E♭ (Re sharp, Mi flat)

Definition at line 59 of file Notes.hpp.

◆ E

constexpr Note E = (Note::E)()
constexpr

E (Mi)

Examples
2.First-Input.ino, and Transposer.ino.

Definition at line 60 of file Notes.hpp.

◆ F

constexpr Note F = (Note::F)()
constexpr

F (Fa)

Examples
2.First-Input.ino, Note-ManyAddresses-Transposer.ino, and Transposer.ino.

Definition at line 61 of file Notes.hpp.

◆ Gb

constexpr Note Gb = (Note::Gb)()
constexpr

F♯, G♭ (Fa sharp, Sol flat)

Examples
Note-ManyAddresses-Transposer.ino.

Definition at line 62 of file Notes.hpp.

◆ G

constexpr Note G = (Note::G)()
constexpr

G (Sol)

Examples
2.First-Input.ino, Note-ManyAddresses-Transposer.ino, and Transposer.ino.

Definition at line 63 of file Notes.hpp.

◆ Ab

constexpr Note Ab = (Note::Ab)()
constexpr

G♯, A♭ (Sol sharp, La flat)

Examples
Note-ManyAddresses-Transposer.ino.

Definition at line 64 of file Notes.hpp.

◆ A

constexpr Note A = (Note::A)()
constexpr

A (La)

Examples
2.First-Input.ino, and Transposer.ino.

Definition at line 65 of file Notes.hpp.

◆ Bb

constexpr Note Bb = (Note::Bb)()
constexpr

A♯, B♭ (La sharp, Si flat)

Definition at line 66 of file Notes.hpp.

◆ B

constexpr Note B = (Note::B)()
constexpr

B (Si)

Examples
2.First-Input.ino, and Transposer.ino.

Definition at line 67 of file Notes.hpp.

◆ F_

constexpr Note F_ = (Note::F)()
constexpr

F (Fa)

Definition at line 70 of file Notes.hpp.