pub struct NoteEvent {
pub frequency: f32,
pub amplitude: f32,
pub duration: f32,
pub pan: f32,
pub voice: NoteVoice,
}Expand description
A note produced by the music engine for the audio thread.
Fields§
§frequency: f32§amplitude: f32§duration: f32§pan: f32§voice: NoteVoiceTrait Implementations§
Auto Trait Implementations§
impl Freeze for NoteEvent
impl RefUnwindSafe for NoteEvent
impl Send for NoteEvent
impl Sync for NoteEvent
impl Unpin for NoteEvent
impl UnsafeUnpin for NoteEvent
impl UnwindSafe for NoteEvent
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