Created
October 1, 2022 00:52
-
-
Save caiodanielnunessantos/fbbe6048a9639db9ba79fd010d99ec0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constexpr unsigned P = 0; | |
constexpr unsigned C0 = round(16.35); | |
constexpr unsigned CS0 = round(17.32); | |
constexpr unsigned D0 = round(18.35); | |
constexpr unsigned DS0 = round(19.45); | |
constexpr unsigned E0 = round(20.60); | |
constexpr unsigned F0 = round(21.83); | |
constexpr unsigned FS0 = round(23.12); | |
constexpr unsigned G0 = round(24.50); | |
constexpr unsigned GS0 = round(25.96); | |
constexpr unsigned A0 = round(27.50); | |
constexpr unsigned AS0 = round(29.14); | |
constexpr unsigned B0 = round(30.87); | |
constexpr unsigned C1 = round(32.70); | |
constexpr unsigned CS1 = round(34.65); | |
constexpr unsigned D1 = round(36.71); | |
constexpr unsigned DS1 = round(38.89); | |
constexpr unsigned E1 = round(41.20); | |
constexpr unsigned F1 = round(43.65); | |
constexpr unsigned FS1 = round(46.25); | |
constexpr unsigned G1 = round(49.00); | |
constexpr unsigned GS1 = round(51.91); | |
constexpr unsigned A1 = round(55.00); | |
constexpr unsigned AS1 = round(58.27); | |
constexpr unsigned B1 = round(61.74); | |
constexpr unsigned C2 = round(65.41); | |
constexpr unsigned CS2 = round(69.30); | |
constexpr unsigned D2 = round(73.42); | |
constexpr unsigned DS2 = round(77.78); | |
constexpr unsigned E2 = round(82.41); | |
constexpr unsigned F2 = round(87.31); | |
constexpr unsigned FS2 = round(92.50); | |
constexpr unsigned G2 = round(98.00); | |
constexpr unsigned GS2 = round(103.83); | |
constexpr unsigned A2 = round(110.00); | |
constexpr unsigned AS2 = round(116.54); | |
constexpr unsigned B2 = round(123.47); | |
constexpr unsigned C3 = round(130.81); | |
constexpr unsigned CS3 = round(138.59); | |
constexpr unsigned D3 = round(146.83); | |
constexpr unsigned DS3 = round(155.56); | |
constexpr unsigned E3 = round(164.81); | |
constexpr unsigned F3 = round(174.61); | |
constexpr unsigned FS3 = round(185.00); | |
constexpr unsigned G3 = round(196.00); | |
constexpr unsigned GS3 = round(207.65); | |
constexpr unsigned A3 = round(220.00); | |
constexpr unsigned AS3 = round(233.08); | |
constexpr unsigned B3 = round(246.94); | |
constexpr unsigned C4 = round(261.63); | |
constexpr unsigned CS4 = round(277.18); | |
constexpr unsigned D4 = round(293.66); | |
constexpr unsigned DS4 = round(311.13); | |
constexpr unsigned E4 = round(329.63); | |
constexpr unsigned F4 = round(349.23); | |
constexpr unsigned FS4 = round(369.99); | |
constexpr unsigned G4 = round(392.00); | |
constexpr unsigned GS4 = round(415.30); | |
constexpr unsigned A4 = round(440.00); | |
constexpr unsigned AS4 = round(466.16); | |
constexpr unsigned B4 = round(493.88); | |
constexpr unsigned C5 = round(523.25); | |
constexpr unsigned CS5 = round(554.37); | |
constexpr unsigned D5 = round(587.33); | |
constexpr unsigned DS5 = round(622.25); | |
constexpr unsigned E5 = round(659.26); | |
constexpr unsigned F5 = round(698.46); | |
constexpr unsigned FS5 = round(739.99); | |
constexpr unsigned G5 = round(783.99); | |
constexpr unsigned GS5 = round(830.61); | |
constexpr unsigned A5 = round(880.00); | |
constexpr unsigned AS5 = round(932.33); | |
constexpr unsigned B5 = round(987.77); | |
constexpr unsigned C6 = round(1046.50); | |
constexpr unsigned CS6 = round(1108.73); | |
constexpr unsigned D6 = round(1174.66); | |
constexpr unsigned DS6 = round(1244.51); | |
constexpr unsigned E6 = round(1318.51); | |
constexpr unsigned F6 = round(1396.91); | |
constexpr unsigned FS6 = round(1479.98); | |
constexpr unsigned G6 = round(1567.98); | |
constexpr unsigned GS6 = round(1661.22); | |
constexpr unsigned A6 = round(1760.00); | |
constexpr unsigned AS6 = round(1864.66); | |
constexpr unsigned B6 = round(1975.53); | |
constexpr unsigned C7 = round(2093.00); | |
constexpr unsigned CS7 = round(2217.46); | |
constexpr unsigned D7 = round(2349.32); | |
constexpr unsigned DS7 = round(2489.02); | |
constexpr unsigned E7 = round(2637.02); | |
constexpr unsigned F7 = round(2793.83); | |
constexpr unsigned FS7 = round(2959.96); | |
constexpr unsigned G7 = round(3135.96); | |
constexpr unsigned GS7 = round(3322.44); | |
constexpr unsigned A7 = round(3520.00); | |
constexpr unsigned AS7 = round(3729.31); | |
constexpr unsigned B7 = round(3951.07); | |
constexpr unsigned C8 = round(4186.01); | |
constexpr unsigned CS8 = round(4434.92); | |
constexpr unsigned D8 = round(4698.64); | |
constexpr unsigned DS8 = round(4978.03); | |
unsigned notes[] = { | |
G4, C5, C5, D5, C5, B4, A4, A4, A4, D5, D5, E5, D5, C5, B4, G4, G4, E5, E5, F5, E5, D5, C5, A4, G4, G4, A4, D5, B4, C5 | |
}; | |
unsigned tempos[] = { | |
4, 4, 8, 8, 8, 8, 4, 4, 4, 4, 8, 8, 8, 8, 4, 4, 4, 4, 8, 8, 8, 8, 4, 4, 8, 8, 4, 4, 4, 2 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment