Enum Note

Source
#[repr(u8)]
pub enum Note {
Show 109 variants Rest = 0, C0 = 1, CsDb0 = 2, D0 = 3, DsEb0 = 4, E0 = 5, F0 = 6, FsGb0 = 7, G0 = 8, GsAb0 = 9, A0 = 10, AsBb0 = 11, B0 = 12, C1 = 13, CsDb1 = 14, D1 = 15, DsEb1 = 16, E1 = 17, F1 = 18, FsGb1 = 19, G1 = 20, GsAb1 = 21, A1 = 22, AsBb1 = 23, B1 = 24, C2 = 25, CsDb2 = 26, D2 = 27, DsEb2 = 28, E2 = 29, F2 = 30, FsGb2 = 31, G2 = 32, GsAb2 = 33, A2 = 34, AsBb2 = 35, B2 = 36, C3 = 37, CsDb3 = 38, D3 = 39, DsEb3 = 40, E3 = 41, F3 = 42, FsGb3 = 43, G3 = 44, GsAb3 = 45, A3 = 46, AsBb3 = 47, B3 = 48, C4 = 49, CsDb4 = 50, D4 = 51, DsEb4 = 52, E4 = 53, F4 = 54, FsGb4 = 55, G4 = 56, GsAb4 = 57, A4 = 58, AsBb4 = 59, B4 = 60, C5 = 61, CsDb5 = 62, D5 = 63, DsEb5 = 64, E5 = 65, F5 = 66, FsGb5 = 67, G5 = 68, GsAb5 = 69, A5 = 70, AsBb5 = 71, B5 = 72, C6 = 73, CsDb6 = 74, D6 = 75, DsEb6 = 76, E6 = 77, F6 = 78, FsGb6 = 79, G6 = 80, GsAb6 = 81, A6 = 82, AsBb6 = 83, B6 = 84, C7 = 85, CsDb7 = 86, D7 = 87, DsEb7 = 88, E7 = 89, F7 = 90, FsGb7 = 91, G7 = 92, GsAb7 = 93, A7 = 94, AsBb7 = 95, B7 = 96, C8 = 97, CsDb8 = 98, D8 = 99, DsEb8 = 100, E8 = 101, F8 = 102, FsGb8 = 103, G8 = 104, GsAb8 = 105, A8 = 106, AsBb8 = 107, B8 = 108,
}
Expand description

Notes on an piano keyboard, where A4 = 440 Hz.

Variants§

§

Rest = 0

§

C0 = 1

§

CsDb0 = 2

§

D0 = 3

§

DsEb0 = 4

§

E0 = 5

§

F0 = 6

§

FsGb0 = 7

§

G0 = 8

§

GsAb0 = 9

§

A0 = 10

§

AsBb0 = 11

§

B0 = 12

§

C1 = 13

§

CsDb1 = 14

§

D1 = 15

§

DsEb1 = 16

§

E1 = 17

§

F1 = 18

§

FsGb1 = 19

§

G1 = 20

§

GsAb1 = 21

§

A1 = 22

§

AsBb1 = 23

§

B1 = 24

§

C2 = 25

§

CsDb2 = 26

§

D2 = 27

§

DsEb2 = 28

§

E2 = 29

§

F2 = 30

§

FsGb2 = 31

§

G2 = 32

§

GsAb2 = 33

§

A2 = 34

§

AsBb2 = 35

§

B2 = 36

§

C3 = 37

§

CsDb3 = 38

§

D3 = 39

§

DsEb3 = 40

§

E3 = 41

§

F3 = 42

§

FsGb3 = 43

§

G3 = 44

§

GsAb3 = 45

§

A3 = 46

§

AsBb3 = 47

§

B3 = 48

§

C4 = 49

§

CsDb4 = 50

§

D4 = 51

§

DsEb4 = 52

§

E4 = 53

§

F4 = 54

§

FsGb4 = 55

§

G4 = 56

§

GsAb4 = 57

§

A4 = 58

§

AsBb4 = 59

§

B4 = 60

§

C5 = 61

§

CsDb5 = 62

§

D5 = 63

§

DsEb5 = 64

§

E5 = 65

§

F5 = 66

§

FsGb5 = 67

§

G5 = 68

§

GsAb5 = 69

§

A5 = 70

§

AsBb5 = 71

§

B5 = 72

§

C6 = 73

§

CsDb6 = 74

§

D6 = 75

§

DsEb6 = 76

§

E6 = 77

§

F6 = 78

§

FsGb6 = 79

§

G6 = 80

§

GsAb6 = 81

§

A6 = 82

§

AsBb6 = 83

§

B6 = 84

§

C7 = 85

§

CsDb7 = 86

§

D7 = 87

§

DsEb7 = 88

§

E7 = 89

§

F7 = 90

§

FsGb7 = 91

§

G7 = 92

§

GsAb7 = 93

§

A7 = 94

§

AsBb7 = 95

§

B7 = 96

§

C8 = 97

§

CsDb8 = 98

§

D8 = 99

§

DsEb8 = 100

§

E8 = 101

§

F8 = 102

§

FsGb8 = 103

§

G8 = 104

§

GsAb8 = 105

§

A8 = 106

§

AsBb8 = 107

§

B8 = 108

Trait Implementations§

Source§

impl Clone for Note

Source§

fn clone(&self) -> Note

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Note

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Into<Frequency> for Note

Source§

fn into(self) -> Frequency

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for Note

Source§

fn eq(&self, other: &Note) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Note

Source§

impl StructuralPartialEq for Note

Auto Trait Implementations§

§

impl Freeze for Note

§

impl RefUnwindSafe for Note

§

impl Send for Note

§

impl Sync for Note

§

impl Unpin for Note

§

impl UnwindSafe for Note

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.