pub struct Note {
pub x: Option<NonZeroU8>,
pub y: PulseNumber,
pub l: u32,
pub c: bool,
}
Expand description
Sound note to ring a sound file.
Fields§
§x: Option<NonZeroU8>
Lane information. The Some
number represents the key to play, otherwise it is not playable (BGM) note.
y: PulseNumber
Position to be placed.
l: u32
Length of pulses of the note. It will be a normal note if zero, otherwise a long note.
c: bool
Continuation flag. It will continue to ring rest of the file when play if true
, otherwise it will play from start.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Note
impl PartialEq for Note
impl Eq for Note
impl StructuralEq for Note
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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