[][src]Struct fpsdk::voice::LevelParams

#[repr(C)]pub struct LevelParams {
    pub pan: f32,
    pub vol: f32,
    pub pitch: f32,
    pub mod_x: f32,
    pub mod_y: f32,
}

This structure holds the parameters for a channel. They're used both for final voice levels (voice levels+parent channel levels) and original voice levels. LevelParams is used in Params.

All of these parameters can go outside their defined range!

Fields

pan: f32

Panning (-1..1).

vol: f32

Volume/velocity (0..1).

pitch: f32

Pitch (in cents) (semitone=pitch/100).

mod_x: f32

Modulation X or filter cutoff (-1..1).

mod_y: f32

Modulation Y or filter resonance (-1..1).

Trait Implementations

impl Clone for LevelParams[src]

impl Debug for LevelParams[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.