Crate ptcrab

Crate ptcrab 

Source
Expand description

A pure-Rust alternative to the official pxtone library.

§Features

  • Support for systems of any endianness
  • Support for generic Wasm targets
  • I/O using standard Read & Write traits
  • Ptvoice data manipulation

§Not yet implemented

  • Ptnoise data manipulation
  • Project (ptcop/pttune) data manipulation
  • Audio rendering/playback

§License

MIT

Modules§

data
(De)serializing pxtone data structures.
prelude
Re-exports for common use cases.
ptvoice
pxtone voice (ptvoice) functionality.
voice
General functionality for all voice types.

Structs§

Key
Expression of pitch where 256 “key” increments = 1 semitone.
PanVolume
Represents relative volume between stereo channels; 0 = full left, 64 = equal, 128 = full right.
Tuning
Multiplier applied to a unit’s pitch.
Volume
Volume ratio where a value of 128 = 100% volume.