pub struct FastSineBankGenerator(/* private fields */);Implementations§
Source§impl FastSineBankGenerator
impl FastSineBankGenerator
pub fn new( context: &Context, initial_frequency: f64, waves: &[SineBankWave], ) -> Result<FastSineBankGenerator>
pub fn new_sine( context: &Context, initial_frequency: f64, ) -> Result<FastSineBankGenerator>
pub fn new_square( context: &Context, initial_frequency: f64, partials: u32, ) -> Result<FastSineBankGenerator>
pub fn new_triangle( context: &Context, initial_frequency: f64, partials: u32, ) -> Result<FastSineBankGenerator>
pub fn new_saw( context: &Context, initial_frequency: f64, partials: u32, ) -> Result<FastSineBankGenerator>
pub fn pitch_bend(&self) -> DoubleProperty<'_>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn frequency(&self) -> DoubleProperty<'_>
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
pub fn get_type(&self) -> Result<ObjectType>
Sourcepub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
pub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
Try to cast this object to another object type. Will return
Ok(None) if this is because of a type mismatch, otherwise Err.
Clones self on success in order to prevent throwing the object
away on error.
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync>, ) -> Result<()>
pub fn config_delete_behavior( &self, config: &DeleteBehaviorConfig, ) -> Result<()>
pub fn current_time(&self) -> DoubleProperty<'_>
pub fn suggested_automation_time(&self) -> DoubleProperty<'_>
pub fn pause(&self) -> Result<()>
pub fn play(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for FastSineBankGenerator
impl Clone for FastSineBankGenerator
Source§fn clone(&self) -> FastSineBankGenerator
fn clone(&self) -> FastSineBankGenerator
Returns a duplicate of the value. Read more
1.0.0 · 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 FastSineBankGenerator
impl Debug for FastSineBankGenerator
Source§impl From<&FastSineBankGenerator> for Generator
impl From<&FastSineBankGenerator> for Generator
Source§fn from(other: &FastSineBankGenerator) -> Generator
fn from(other: &FastSineBankGenerator) -> Generator
Converts to this type from the input type.
Source§impl From<&FastSineBankGenerator> for Handle
impl From<&FastSineBankGenerator> for Handle
Source§fn from(other: &FastSineBankGenerator) -> Handle
fn from(other: &FastSineBankGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<FastSineBankGenerator> for Generator
impl From<FastSineBankGenerator> for Generator
Source§fn from(input: FastSineBankGenerator) -> Generator
fn from(input: FastSineBankGenerator) -> Generator
Converts to this type from the input type.
Source§impl From<FastSineBankGenerator> for Handle
impl From<FastSineBankGenerator> for Handle
Source§fn from(input: FastSineBankGenerator) -> Handle
fn from(input: FastSineBankGenerator) -> Handle
Converts to this type from the input type.
Source§impl Hash for FastSineBankGenerator
impl Hash for FastSineBankGenerator
Source§impl Ord for FastSineBankGenerator
impl Ord for FastSineBankGenerator
Source§fn cmp(&self, other: &FastSineBankGenerator) -> Ordering
fn cmp(&self, other: &FastSineBankGenerator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FastSineBankGenerator
impl PartialEq for FastSineBankGenerator
Source§impl PartialOrd for FastSineBankGenerator
impl PartialOrd for FastSineBankGenerator
Source§impl TryFrom<&Generator> for FastSineBankGenerator
impl TryFrom<&Generator> for FastSineBankGenerator
Source§impl TryFrom<&Handle> for FastSineBankGenerator
impl TryFrom<&Handle> for FastSineBankGenerator
Source§impl TryFrom<Generator> for FastSineBankGenerator
impl TryFrom<Generator> for FastSineBankGenerator
Source§impl TryFrom<Handle> for FastSineBankGenerator
impl TryFrom<Handle> for FastSineBankGenerator
impl Eq for FastSineBankGenerator
impl StructuralPartialEq for FastSineBankGenerator
Auto Trait Implementations§
impl Freeze for FastSineBankGenerator
impl RefUnwindSafe for FastSineBankGenerator
impl Send for FastSineBankGenerator
impl Sync for FastSineBankGenerator
impl Unpin for FastSineBankGenerator
impl UnwindSafe for FastSineBankGenerator
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