From 200cb34d18e1494b05677e97faee3512ac882f3a Mon Sep 17 00:00:00 2001 From: Postbox2 <53163105+host12prog@users.noreply.github.com> Date: Wed, 29 Jun 2022 18:44:36 +0700 Subject: [PATCH] ah the bitch! markdown you anger mee --- papers/doc/7-systems/soundunit.md | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/papers/doc/7-systems/soundunit.md b/papers/doc/7-systems/soundunit.md index e6a676f65..a869b6e28 100644 --- a/papers/doc/7-systems/soundunit.md +++ b/papers/doc/7-systems/soundunit.md @@ -2,22 +2,22 @@ This is a fantasy sound chip, used in the specs2 fantasy console designed by tildearrow. It includes native support for sample playback, but with only 20K of sample data. Since 0.6pre1, this sound chip is no longer hidden by default and can be accessed through the module creation screen and can be added or removed. # Effects - `10xx`: set waveform - - 0: pulse wave - - 1: sawtooth - - 2: sine wave - - 3: triangle wave - - 4: noise - - 5: periodic noise - - 6: TODO find name for waves 6, 7 - - 7: TODO find name for waves 6, 7 + - 0: pulse wave + - 1: sawtooth + - 2: sine wave + - 3: triangle wave + - 4: noise + - 5: periodic noise + - 6: TODO find name for waves 6, 7 + - 7: TODO find name for waves 6, 7 - `12xx`: set waveform (0 to 7F) - `13xx`: set resonance of filter (0 to FF) - - despite what the internal effects list says (0 to F), you can use a resonance value from 0 to FF (255) + - despite what the internal effects list says (0 to F), you can use a resonance value from 0 to FF (255) - `14xx`: set filter mode and ringmod - - bit 0: ring mod - - bit 1: low pass - - bit 2: high pass - - bit 3: band pass + - bit 0: ring mod + - bit 1: low pass + - bit 2: high pass + - bit 3: band pass - `15xx`: set frequency sweep period low byte - `16xx`: set frequency sweep period high byte - `17xx`: set volume sweep period low byte @@ -30,14 +30,14 @@ This is a fantasy sound chip, used in the specs2 fantasy console designed by til - `1Exx`: set phase reset period low byte - `1Fxx`: set phase reset period high byte - `20xx`: toggle frequency sweep - - bit 0-6: speed - - bit 7: up direction + - bit 0-6: speed + - bit 7: up direction - `21xx`: toggle volume sweep - - bit 0-4: speed - - bit 5: up direction - - bit 6: loop - - bit 7: alternate + - bit 0-4: speed + - bit 5: up direction + - bit 6: loop + - bit 7: alternate - `22xx`: toggle cutoff sweep - - bit 0-6: speed - - bit 7: up direction + - bit 0-6: speed + - bit 7: up direction - `4xxx`: set cutoff (0 to FFF)