Skip to main content

rustysynth_ext/
midifile_looptype.rs

1/// Specifies the type of the loop extension to use when playing back a MIDI file.
2#[derive(Clone, Copy, Debug)]
3#[non_exhaustive]
4pub enum MidiFileLoopType {
5    /// Specifies the loop start point by a tick value.
6    LoopPoint(usize),
7
8    /// The RPG Maker style loop.
9    /// CC #111 will be the loop start point.
10    RpgMaker,
11
12    /// The Incredible Machine style loop.
13    /// CC #110 and #111 will be the start and end points of the loop.
14    IncredibleMachine,
15
16    /// The Final Fantasy style loop.
17    /// CC #116 and #117 will be the start and end points of the loop.
18    FinalFantasy,
19}