Struct sampler::map::Sample [] [src]

pub struct Sample<A> {
    pub base_hz: Hz,
    pub base_vel: Velocity,
    pub audio: A,
}

A performable Sample with some base playback Hz and Velocity.

Fields

Methods

impl<A> Sample<A>
[src]

Constructor for a new Sample with the given base Hz and Velocity.

Maps the Sample with some Audio type A to a Sample with some Audio type B.

Trait Implementations

impl<A: Clone> Clone for Sample<A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: Debug> Debug for Sample<A>
[src]

Formats the value using the given formatter.

impl<A: PartialEq> PartialEq for Sample<A>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.