Enum TrigQuantizationMode

Source
#[repr(u32)]
pub enum TrigQuantizationMode {
Show 18 variants Direct = 255, PatternLength = 0, OneStep = 1, TwoSteps = 2, ThreeSteps = 3, FourSteps = 4, SixSteps = 5, EightSteps = 6, TwelveSteps = 7, SixteenSteps = 8, TwentyFourSteps = 9, ThirtyTwoSteps = 10, FourtyEightSteps = 11, SixtyFourSteps = 12, NinetySixSteps = 13, OneTwentyEightSteps = 14, OneNinetyTwoSteps = 15, TwoFiveSixSteps = 16,
}
Expand description

Sample attributes Trig Quantization options (quantization when manually triggering samples via track buttons). See Octatrack Manaul section 13.2.4 ATTRIBUTES

Variants§

§

Direct = 255

Play back immediately, no quantization.

§

PatternLength = 0

Play once the pattern ends

§

OneStep = 1

Play after 1 sequencer step(s).

§

TwoSteps = 2

Play after 2 sequencer step(s).

§

ThreeSteps = 3

Play after 3 sequencer step(s).

§

FourSteps = 4

Play after 4 sequencer step(s).

§

SixSteps = 5

Play after 6 sequencer step(s).

§

EightSteps = 6

Play after 8 sequencer step(s).

§

TwelveSteps = 7

Play after 12 sequencer step(s).

§

SixteenSteps = 8

Play after 16 sequencer step(s).

§

TwentyFourSteps = 9

Play after 24 sequencer step(s).

§

ThirtyTwoSteps = 10

Play after 32 sequencer step(s).

§

FourtyEightSteps = 11

Play after 48 sequencer step(s).

§

SixtyFourSteps = 12

Play after 64 sequencer step(s).

§

NinetySixSteps = 13

Play after 96 sequencer step(s).

§

OneTwentyEightSteps = 14

Play after 128 sequencer step(s).

§

OneNinetyTwoSteps = 15

Play after 192 sequencer step(s).

§

TwoFiveSixSteps = 16

Play after 256 sequencer step(s).

Trait Implementations§

Source§

impl Clone for TrigQuantizationMode

Source§

fn clone(&self) -> TrigQuantizationMode

Returns a duplicate 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 TrigQuantizationMode

Source§

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

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

impl Default for TrigQuantizationMode

Source§

fn default() -> TrigQuantizationMode

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TrigQuantizationMode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for TrigQuantizationMode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl OptionEnumValueConvert<u32> for TrigQuantizationMode

Source§

fn from_value(v: &u32) -> Result<Self, Box<dyn Error>>

Get an Enum instance from some value.
Source§

fn value(&self) -> Result<u32, Box<dyn Error>>

Get a numeric value for an Enum instance.
Source§

impl PartialEq for TrigQuantizationMode

Source§

fn eq(&self, other: &TrigQuantizationMode) -> 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 Serialize for TrigQuantizationMode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for TrigQuantizationMode

Source§

impl Eq for TrigQuantizationMode

Source§

impl StructuralPartialEq for TrigQuantizationMode

Auto Trait Implementations§

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,