Struct bevy_retrograde::audio::kira::arrangement::LoopArrangementSettings [−]
pub struct LoopArrangementSettings { pub id: Option<ArrangementId>, pub default_track: TrackIndex, pub cooldown: Option<f64>, pub semantic_duration: Option<f64>, pub groups: GroupSet, }
Expand description
Settings for a looping Arrangement
.
Fields
id: Option<ArrangementId>
The unique identifier for this arrangement.
default_track: TrackIndex
The track instances of this arrangement will play on by default.
cooldown: Option<f64>
Whether the arrangement should have a “cool off” period after playing before it can be played again, and if so, the duration of that cool off period.
This is useful to avoid situations where the same arrangement is played multiple times at the exact same point in time, resulting in the arrangement being louder than normal.
semantic_duration: Option<f64>
How long the arrangement is musically.
For example, a recording of a 2-bar drum fill in an echoey cathedral may have 5 seconds of actual drumming and then 10 seconds of reverberations from the building. So even though the audio is 15 seconds long, you might say the music only lasts for 5 seconds.
If set, the semantic duration of the arrangement will be used as the default end point when looping the arrangement.
groups: GroupSet
The groups this arrangement belongs to.
Implementations
pub fn new() -> LoopArrangementSettings
pub fn new() -> LoopArrangementSettings
Creates a new LoopArrangementSettings
with the default settings.
pub fn id(self, id: impl Into<ArrangementId>) -> LoopArrangementSettings
pub fn id(self, id: impl Into<ArrangementId>) -> LoopArrangementSettings
Sets the unique identifier for the arrangement.
pub fn default_track<T>(self, track: T) -> LoopArrangementSettings where
T: Into<TrackIndex>,
pub fn default_track<T>(self, track: T) -> LoopArrangementSettings where
T: Into<TrackIndex>,
Sets the track instances of this arrangement will play on by default.
pub fn cooldown(self, cooldown: f64) -> LoopArrangementSettings
pub fn cooldown(self, cooldown: f64) -> LoopArrangementSettings
Sets the cooldown time of the arrangement.
pub fn semantic_duration(
self,
semantic_duration: f64
) -> LoopArrangementSettings
pub fn semantic_duration(
self,
semantic_duration: f64
) -> LoopArrangementSettings
Sets the semantic duration of the arrangement.
pub fn groups(self, groups: impl Into<GroupSet>) -> LoopArrangementSettings
pub fn groups(self, groups: impl Into<GroupSet>) -> LoopArrangementSettings
Sets the group this arrangement belongs to.
Trait Implementations
impl Clone for LoopArrangementSettings
impl Clone for LoopArrangementSettings
pub fn clone(&self) -> LoopArrangementSettings
pub fn clone(&self) -> LoopArrangementSettings
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for LoopArrangementSettings
impl Debug for LoopArrangementSettings
impl Default for LoopArrangementSettings
impl Default for LoopArrangementSettings
pub fn default() -> LoopArrangementSettings
pub fn default() -> LoopArrangementSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LoopArrangementSettings
impl Send for LoopArrangementSettings
impl Sync for LoopArrangementSettings
impl Unpin for LoopArrangementSettings
impl UnwindSafe for LoopArrangementSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> FromWorld for T where
T: Default,
impl<T> FromWorld for T where
T: Default,
pub fn from_world(_world: &mut World) -> T
pub fn from_world(_world: &mut World) -> T
Creates Self
using data from the given [World]
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V