pub enum BPMChoice {
Default,
Custom(u32),
}Expand description
The BPMChoice is an enum for picking the beats per minute for making songs.
Usage:
use rs_audio::*;
let song = Song::new(vec![
Note { freq: 880.0, dur: 1.0, vol: 0.20, wave: WaveForm::Sine },
Note { freq: 220.0, dur: 1.0, vol: 0.20, wave: WaveForm::Square },
Note { freq: 880.0, dur: 1.0, vol: 0.20, wave: WaveForm::Sine },
Note { freq: 220.0, dur: 1.0, vol: 0.20, wave: WaveForm::Triangle },
], BPMChoice::Default);Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BPMChoice
impl RefUnwindSafe for BPMChoice
impl Send for BPMChoice
impl Sync for BPMChoice
impl Unpin for BPMChoice
impl UnwindSafe for BPMChoice
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