#[repr(transparent)]pub struct AudioUnitParameterUnit(pub u32);
AudioUnitProperties
only.Expand description
untyped value generally between 0.0 and 1.0
takes an integer value (good for menu selections)
0.0 means FALSE, non-zero means TRUE
usually from 0 -> 100, sometimes -50 -> +50
absolute or relative time
one sample frame equals (1.0/sampleRate) seconds
-180 to 180 degrees
rate multiplier, for playback speed, etc. (e.g. 2.0 == twice as fast)
absolute frequency/pitch in cycles/second
unit of relative pitch
useful for coarse detuning
absolute pitch as defined in the MIDI spec (exact freq may depend on tuning table)
a generic MIDI controller value from 0 -> 127
logarithmic relative gain
linear relative gain
-180 to 180 degrees, similar to phase but more general (good for 3D coord system)
0 -> 100, crossfade mix two sources according to sqrt(x) and sqrt(1.0 - x)
0.0 -> 1.0, pow(x, 3.0) -> linear gain to simulate a reasonable mixer channel fader response
standard left to right mixer pan
distance measured in meters
absolute frequency measurement : if f is freq in hertz then absoluteCents = 1200 * log2(f / 440) + 6900
octaves in relative pitch where a value of 1 is equal to 1200 cents
beats per minute, ie tempo
time relative to tempo, i.e., 1.0 at 120 BPM would equal 1/2 a second
parameter is expressed in milliseconds
for compression, expansion ratio, etc.
this is the parameter unit type for parameters that present a custom unit name
a generic MIDI 2.0 controller value with 32-bit range
See also Apple’s documentation
Tuple Fields§
§0: u32
Implementations§
Source§impl AudioUnitParameterUnit
impl AudioUnitParameterUnit
pub const Generic: Self
pub const Indexed: Self
pub const Boolean: Self
pub const Percent: Self
pub const Seconds: Self
pub const SampleFrames: Self
pub const Phase: Self
pub const Rate: Self
pub const Hertz: Self
pub const Cents: Self
pub const RelativeSemiTones: Self
pub const MIDINoteNumber: Self
pub const MIDIController: Self
pub const Decibels: Self
pub const LinearGain: Self
pub const Degrees: Self
pub const EqualPowerCrossfade: Self
pub const MixerFaderCurve1: Self
pub const Pan: Self
pub const Meters: Self
pub const AbsoluteCents: Self
pub const Octaves: Self
pub const BPM: Self
pub const Beats: Self
pub const Milliseconds: Self
pub const Ratio: Self
pub const CustomUnit: Self
pub const MIDI2Controller: Self
Trait Implementations§
Source§impl Clone for AudioUnitParameterUnit
impl Clone for AudioUnitParameterUnit
Source§fn clone(&self) -> AudioUnitParameterUnit
fn clone(&self) -> AudioUnitParameterUnit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more