pub struct SF2SynthesisRequest<'a, M>where
M: MidiBytesProvider,{ /* private fields */ }
Expand description
A synthesis request, which can be processed to multiple output types.
Implementations§
Source§impl<M> SF2SynthesisRequest<'_, M>where
M: MidiBytesProvider,
impl<M> SF2SynthesisRequest<'_, M>where
M: MidiBytesProvider,
Sourcepub fn write<W>(&self, writer: W) -> Result<(), SynthesisError>
pub fn write<W>(&self, writer: W) -> Result<(), SynthesisError>
Synthesizes and writes the WAV output to the given writer
.
Sourcepub fn to_file<P>(&self, filename: P) -> Result<(), SynthesisError>
pub fn to_file<P>(&self, filename: P) -> Result<(), SynthesisError>
Synthesizes and writes the WAV output to the given file – overwriting if already present.
Sourcepub fn to_raw_stereo_waveforms(
&self,
) -> Result<(Vec<f32>, Vec<f32>), SynthesisError>
pub fn to_raw_stereo_waveforms( &self, ) -> Result<(Vec<f32>, Vec<f32>), SynthesisError>
Synthesizes and returns the raw stereo waveforms as (Vec<f32>, Vec<f32>)
(left and right channels).
Auto Trait Implementations§
impl<'a, M> Freeze for SF2SynthesisRequest<'a, M>
impl<'a, M> RefUnwindSafe for SF2SynthesisRequest<'a, M>where
M: RefUnwindSafe,
impl<'a, M> Send for SF2SynthesisRequest<'a, M>where
M: Sync,
impl<'a, M> Sync for SF2SynthesisRequest<'a, M>where
M: Sync,
impl<'a, M> Unpin for SF2SynthesisRequest<'a, M>
impl<'a, M> UnwindSafe for SF2SynthesisRequest<'a, M>where
M: RefUnwindSafe,
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