xmrs 0.10.2

A library to edit SoundTracker data with pleasure
Documentation
use serde::{Deserialize, Serialize};

/// Euclidian Rythm Instrument
#[derive(Serialize, Deserialize, Debug)]
pub struct InstrEkn {
    /// Pulsation k
    pub events: u8,
    /// Duration n
    pub steps: u8,
    /// Rotation
    pub rotation: u8,
    /// Instrument number
    pub instr: Option<usize>,
}

impl Default for InstrEkn {
    fn default() -> Self {
        Self {
            events: 3,
            steps: 8,
            rotation: 0,
            instr: None,
        }
    }
}