ptcow 0.4.0

Library for editing and playback of PxTone (.ptcop) music
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// An envelope point
#[derive(Copy, Clone, Default, Debug)]
pub struct EnvPt {
    /// X offset from previous point
    pub x: u16,
    /// Volume
    pub y: u8,
}

impl EnvPt {
    /// `[0, 0]` coordinate
    pub const ZERO: Self = Self { x: 0, y: 0 };
}