pub struct PulseImportedMidi { /* private fields */ }Expand description
A MIDI file imported into a tunes mixer.
Implementations§
Source§impl PulseImportedMidi
impl PulseImportedMidi
Sourcepub fn as_clip(&self) -> PulseMidiClip
pub fn as_clip(&self) -> PulseMidiClip
Returns this imported MIDI file as an arrangeable song or phrase clip.
Sourcepub fn export(&self, path: impl AsRef<Path>) -> PulseResult<()>
pub fn export(&self, path: impl AsRef<Path>) -> PulseResult<()>
Exports the imported MIDI mixer based on the output file extension.
Sourcepub fn export_with_options(
&self,
path: impl AsRef<Path>,
options: ExportOptions,
) -> PulseResult<()>
pub fn export_with_options( &self, path: impl AsRef<Path>, options: ExportOptions, ) -> PulseResult<()>
Exports the imported MIDI mixer based on the output file extension with options.
Sourcepub fn export_wav(&self, path: impl AsRef<Path>) -> PulseResult<()>
pub fn export_wav(&self, path: impl AsRef<Path>) -> PulseResult<()>
Exports the imported MIDI mixer to WAV.
Sourcepub fn export_wav_with_options(
&self,
path: impl AsRef<Path>,
options: ExportOptions,
) -> PulseResult<()>
pub fn export_wav_with_options( &self, path: impl AsRef<Path>, options: ExportOptions, ) -> PulseResult<()>
Exports the imported MIDI mixer to WAV with explicit export options.
Sourcepub fn export_flac(&self, path: impl AsRef<Path>) -> PulseResult<()>
pub fn export_flac(&self, path: impl AsRef<Path>) -> PulseResult<()>
Exports the imported MIDI mixer to FLAC.
Sourcepub fn export_flac_with_options(
&self,
path: impl AsRef<Path>,
options: ExportOptions,
) -> PulseResult<()>
pub fn export_flac_with_options( &self, path: impl AsRef<Path>, options: ExportOptions, ) -> PulseResult<()>
Exports the imported MIDI mixer to FLAC with explicit export options.
Sourcepub fn export_midi(&self, path: impl AsRef<Path>) -> PulseResult<()>
pub fn export_midi(&self, path: impl AsRef<Path>) -> PulseResult<()>
Exports the imported MIDI mixer to a Standard MIDI File.
Sourcepub fn export_midi_with_options(
&self,
path: impl AsRef<Path>,
options: ExportOptions,
) -> PulseResult<()>
pub fn export_midi_with_options( &self, path: impl AsRef<Path>, options: ExportOptions, ) -> PulseResult<()>
Exports the imported MIDI mixer to a Standard MIDI File with explicit export options.
Trait Implementations§
Source§impl Clone for PulseImportedMidi
impl Clone for PulseImportedMidi
Source§fn clone(&self) -> PulseImportedMidi
fn clone(&self) -> PulseImportedMidi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PulseImportedMidi
impl Debug for PulseImportedMidi
Source§impl UserData for PulseImportedMidi
impl UserData for PulseImportedMidi
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 !Freeze for PulseImportedMidi
impl !RefUnwindSafe for PulseImportedMidi
impl !Sync for PulseImportedMidi
impl !UnwindSafe for PulseImportedMidi
impl Send for PulseImportedMidi
impl Unpin for PulseImportedMidi
impl UnsafeUnpin for PulseImportedMidi
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.