-
-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathEnums.cs
51 lines (48 loc) · 956 Bytes
/
Enums.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Buzzer.Samples
{
/// <summary>
/// Represents all twelve notes.
/// </summary>
internal enum Note
{
C = 1,
Db = 2,
D = 3,
Eb = 4,
E = 5,
F = 6,
Gb = 7,
G = 8,
Ab = 9,
A = 10,
Bb = 11,
B = 12,
}
/// <summary>
/// Represents music octave.
/// </summary>
internal enum Octave
{
First = 1,
Second = 2,
Third = 3,
Fourth = 4,
Fifth = 5,
Sixth = 6,
Seventh = 7,
Eighth = 8
}
/// <summary>
/// Represents music note duration.
/// </summary>
public enum Duration
{
Whole = 1,
Half = 2,
Quarter = 4,
Eighth = 8,
Sixteenth = 16,
}
}