Struct xsynth_render::SoundfontInitOptions
source · pub struct SoundfontInitOptions {
pub bank: Option<u8>,
pub preset: Option<u8>,
pub linear_release: bool,
pub use_effects: bool,
pub interpolator: Interpolator,
}
Expand description
Options for initializing/loading a new sample soundfont.
Fields§
§bank: Option<u8>
The bank number (0-128) to extract and use from the soundfont.
None
means to use all available banks (bank 0 for SFZ).
Default: None
preset: Option<u8>
The preset number (0-127) to extract and use from the soundfont.
None
means to use all available presets (preset 0 for SFZ).
Default: None
linear_release: bool
If set to true, the voices generated using this soundfont will release using a linear function instead of convex.
Default: false
use_effects: bool
If set to true, the voices generated using this soundfont will be able to use signal processing effects. Currently this option only affects the cutoff filter.
Default: true
interpolator: Interpolator
The type of interpolator to use for the new soundfont. See the
documentation of the Interpolator
enum for available options.
Default: Nearest
Trait Implementations§
source§impl Clone for SoundfontInitOptions
impl Clone for SoundfontInitOptions
source§fn clone(&self) -> SoundfontInitOptions
fn clone(&self) -> SoundfontInitOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SoundfontInitOptions
impl Debug for SoundfontInitOptions
source§impl Default for SoundfontInitOptions
impl Default for SoundfontInitOptions
source§fn default() -> SoundfontInitOptions
fn default() -> SoundfontInitOptions
impl Copy for SoundfontInitOptions
Auto Trait Implementations§
impl Freeze for SoundfontInitOptions
impl RefUnwindSafe for SoundfontInitOptions
impl Send for SoundfontInitOptions
impl Sync for SoundfontInitOptions
impl Unpin for SoundfontInitOptions
impl UnwindSafe for SoundfontInitOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)