AVRly - AVR Development Resources
scale.h File Reference

Contains the count values required for the note pitches to work at 8MHZ F_CPU. More...

Go to the source code of this file.

Enumerations

enum  note_pitch_t {
  C0 = 10000 , Cx0 = 9439 , D0 = 8909 , Dx0 = 8409 ,
  E0 = 7937 , F0 = 7492 , Fx0 = 7071 , G0 = 6674 ,
  Gx0 = 6300 , A0 = 5946 , Ax0 = 5612 , B0 = 5297 ,
  C1 = 5000 , Cx1 = 4719 , D1 = 4454 , Dx1 = 4204 ,
  E1 = 3969 , F1 = 3746 , Fx1 = 3536 , G1 = 3337 ,
  Gx1 = 3150 , A1 = 2973 , Ax1 = 2806 , B1 = 2649 ,
  C2 = 2500 , Cx2 = 2360 , D2 = 2227 , Dx2 = 2102 ,
  E2 = 1984 , F2 = 1873 , Fx2 = 1768 , G2 = 1669 ,
  Gx2 = 1575 , A2 = 1487 , Ax2 = 1403 , B2 = 1324 ,
  C3 = 1250 , Cx3 = 1180 , D3 = 1114 , Dx3 = 1051 ,
  E3 = 992 , F3 = 936 , Fx3 = 884 , G3 = 834 ,
  Gx3 = 787 , A3 = 743 , Ax3 = 702 , B3 = 662
}
 Enum to expose the count values required to generate the pitches. More...
 

Detailed Description

Contains the count values required for the note pitches to work at 8MHZ F_CPU.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author
Jason Duffy
Date
10th September 2022

Definition in file scale.h.

Enumeration Type Documentation

◆ note_pitch_t

Enum to expose the count values required to generate the pitches.

Definition at line 38 of file scale.h.

39{
40 C0 = 10000,
41 Cx0 = 9439,
42 D0 = 8909,
43 Dx0 = 8409,
44 E0 = 7937,
45 F0 = 7492,
46 Fx0 = 7071,
47 G0 = 6674,
48 Gx0 = 6300,
49 A0 = 5946,
50 Ax0 = 5612,
51 B0 = 5297,
52 C1 = 5000,
53 Cx1 = 4719,
54 D1 = 4454,
55 Dx1 = 4204,
56 E1 = 3969,
57 F1 = 3746,
58 Fx1 = 3536,
59 G1 = 3337,
60 Gx1 = 3150,
61 A1 = 2973,
62 Ax1 = 2806,
63 B1 = 2649,
64 C2 = 2500,
65 Cx2 = 2360,
66 D2 = 2227,
67 Dx2 = 2102,
68 E2 = 1984,
69 F2 = 1873,
70 Fx2 = 1768,
71 G2 = 1669,
72 Gx2 = 1575,
73 A2 = 1487,
74 Ax2 = 1403,
75 B2 = 1324,
76 C3 = 1250,
77 Cx3 = 1180,
78 D3 = 1114,
79 Dx3 = 1051,
80 E3 = 992,
81 F3 = 936,
82 Fx3 = 884,
83 G3 = 834,
84 Gx3 = 787,
85 A3 = 743,
86 Ax3 = 702,
87 B3 = 662,
note_pitch_t
Enum to expose the count values required to generate the pitches.
Definition: scale.h:39