tools and code for a game which will probably never exist
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
446 B

8 years ago
  1. # *
  2. ## music
  3. ### engine
  4. * custom-designed, 2a03 APU-like sound architecture
  5. * event, not register based
  6. #### channels
  7. * 3 pulse
  8. * 3 saw|tri
  9. * 1 noise
  10. * 2 wave
  11. * sample: [i8]
  12. Every channel can have the following parameters set:
  13. * `panning: i8`. 0 is centered, -127 is full left, and 127 is full right.
  14. * `volume: u8`. Given `f32` samples, a volume of 255 corresponds to an amplitude of 1.0, and a volume of 0 to an amplitude of 0.
  15. * `note: u8`