pub struct PulseSong { /* private fields */ }Expand description
A Lua-friendly song container that can be converted to tunes.
Implementations§
Source§impl PulseSong
impl PulseSong
Sourcepub fn with_tempo(self, bpm: f32) -> PulseResult<Self>
pub fn with_tempo(self, bpm: f32) -> PulseResult<Self>
Sets the song tempo in beats per minute.
Sourcepub fn add_sequence(self, sequence: PulseSequence) -> Self
pub fn add_sequence(self, sequence: PulseSequence) -> Self
Appends one sequence.
Sourcepub fn add_drum_grid(self, grid: PulseDrumGrid) -> Self
pub fn add_drum_grid(self, grid: PulseDrumGrid) -> Self
Appends one drum grid.
Sourcepub fn add_phrase(self, phrase: PulsePhrase) -> Self
pub fn add_phrase(self, phrase: PulsePhrase) -> Self
Appends one reusable phrase to the song arrangement.
Sourcepub fn add_sample_clip(self, sample_clip: PulseSampleClip) -> Self
pub fn add_sample_clip(self, sample_clip: PulseSampleClip) -> Self
Appends one sample clip to the song.
Sourcepub fn add_midi_clip(self, midi_clip: PulseMidiClip) -> Self
pub fn add_midi_clip(self, midi_clip: PulseMidiClip) -> Self
Appends one imported MIDI clip to the song.
Sourcepub fn with_master_effect(self, effect: PulseEffect) -> Self
pub fn with_master_effect(self, effect: PulseEffect) -> Self
Appends a master effect to the song.
Sourcepub fn to_tunes_composition(&self) -> PulseResult<Composition>
pub fn to_tunes_composition(&self) -> PulseResult<Composition>
Converts the wrapper DSL into a tunes composition.
Sourcepub fn to_mixer(&self) -> PulseResult<Mixer>
pub fn to_mixer(&self) -> PulseResult<Mixer>
Converts the wrapper DSL into a tunes mixer and applies master effects.
Sourcepub fn sequences(&self) -> &[PulseSequence]
pub fn sequences(&self) -> &[PulseSequence]
Returns all sequences.
Sourcepub fn drum_grids(&self) -> &[PulseDrumGrid]
pub fn drum_grids(&self) -> &[PulseDrumGrid]
Returns all drum grids.
Sourcepub fn phrases(&self) -> &[PulsePhrase]
pub fn phrases(&self) -> &[PulsePhrase]
Returns all phrases.
Sourcepub fn sample_clips(&self) -> &[PulseSampleClip]
pub fn sample_clips(&self) -> &[PulseSampleClip]
Returns all sample clips.
Sourcepub fn midi_clips(&self) -> &[PulseMidiClip]
pub fn midi_clips(&self) -> &[PulseMidiClip]
Returns all imported MIDI clips.
Sourcepub fn master_effects(&self) -> &[PulseEffect]
pub fn master_effects(&self) -> &[PulseEffect]
Returns master effects in insertion order.
Trait Implementations§
impl StructuralPartialEq for PulseSong
Source§impl UserData for PulseSong
impl UserData for PulseSong
Source§fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
Adds custom fields specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PulseSong
impl !Sync for PulseSong
impl !UnwindSafe for PulseSong
impl Freeze for PulseSong
impl Send for PulseSong
impl Unpin for PulseSong
impl UnsafeUnpin for PulseSong
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.