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