XMrs File format library
A no_std library to edit Sound Tracker data with pleasure.
Because "Representation is the Essence of Programming".
For now MOD Amiga Modules and XM FastTracker II files are supported.
Useful struct parts:
- Module
- Pattern
- Instrument
- InstrDefault for Historical XM Instrument
- InstrEkn for Euclidian Rythm Instrument
- InstrMidi for Midi Instrument
- InstrSid for MOS6581 SID Instrument
- InstrRobSid for historical Rob Hubbard Instrument
Load MOD file
- Deserialize
AmigaModulestruct usingAmigaModule::load(&amiga) - Convert to struct
Moduleusing.to_module()
Load XM file
- Deserialize
XmModulestruct usingXmModule::load(&XM) - Convert to struct
Moduleusing.to_module()
Save XM file
- Convert
ModuletoXmModule:XmModule::from_module(&module) - Serialize using
XmModulesave()fn
Edit data using rustified structs, use Module struct.
Note: You can only save InstrDefault using XM fileformat.
About no_std
micromath is used by default in no_std. If you prefer libm, use cargo build --no-default-features --features=libm --release.
About std
if you want to use std feature use cargo build --no-default-features --features=std --release
About std demo
if you want to test examples use cargo build --no-default-features --features=std,demo --release