Enum megadrive_sys::psg::Note[][src]

#[repr(u16)]pub enum Note {
    C3,
    CSharp3,
    D3,
    DSharp3,
    E3,
    F3,
    FSharp3,
    G3,
    GSharp3,
    A3,
    ASharp3,
    B3,
}

A selection of note frequencies to use with the tone generators.

Variants

C3
CSharp3
D3
DSharp3
E3
F3
FSharp3
G3
GSharp3
A3
ASharp3
B3

Implementations

impl Note[src]

pub fn increase_octave(self, o: usize) -> u16[src]

Return a frequency value for the given note increased by the given number of octaves.

Trait Implementations

impl Clone for Note[src]

impl Copy for Note[src]

impl Debug for Note[src]

Auto Trait Implementations

impl Send for Note

impl Sync for Note

impl Unpin for Note

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.