Skip to content

Commit 4e8a6b1

Browse files
committed
Add UG #8 / #9 sweep presets, remove Elite: dying and Thrust: explosion
Two BBC User Guide-style examples added that exercise the chip's pitch register wrap and large multi-section pitch envelopes: - UG #8 sweep: -26/-36/-45 PI deltas over 255 steps each, held loud, with the 8-bit pitch register wrapping continuously. - UG #9 ramp: +2/-4/+4 PI over 50 steps each, net upward drift over a long held tone. Removed Elite: dying and Thrust: explosion since they did not audition cleanly under the new envelope timing model.
1 parent aa18259 commit 4e8a6b1

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/presets.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,6 @@ export const PRESETS: Preset[] = [
149149
aa: 6, ad: 1, as: 0, ar: -2, ala: 120, ald: 126 },
150150
sound: { channel: 2, amplitude: 2, pitch: 44, duration: 8 },
151151
},
152-
{
153-
name: "Elite: dying",
154-
description: "Elite — first part of the death sound; also used for hits/kills (envelope 3)",
155-
env: { n: 3, t: 1, pi1: 1, pi2: -1, pi3: -3, pn1: 17, pn2: 32, pn3: 128,
156-
aa: 1, ad: 0, as: 0, ar: -1, ala: 1, ald: 1 },
157-
sound: { channel: 1, amplitude: 3, pitch: 240, duration: 24 },
158-
},
159152
{
160153
name: "Elite: ECM",
161154
description: "Elite — E.C.M. (Electronic Counter Measures) firing; envelope 4 with sweeping pitch over a long duration",
@@ -177,13 +170,6 @@ export const PRESETS: Preset[] = [
177170
aa: 126, ad: -7, as: -7, ar: -12, ala: 126, ald: 0 },
178171
sound: { channel: 2, amplitude: 1, pitch: 80, duration: 2 },
179172
},
180-
{
181-
name: "Thrust: explosion",
182-
description: "Thrust — explosion tone component on channel 1 (envelope 2; the original game pairs this with a parallel noise burst)",
183-
env: { n: 2, t: 2, pi1: -1, pi2: 0, pi3: 1, pn1: 9, pn2: 9, pn3: 9,
184-
aa: 0, ad: 0, as: 0, ar: 1, ala: 1, ald: 1 },
185-
sound: { channel: 1, amplitude: 2, pitch: 150, duration: 40 },
186-
},
187173
{
188174
name: "Thrust: hostile",
189175
description: "Thrust — hostile gun firing (envelope 4)",
@@ -248,4 +234,18 @@ export const PRESETS: Preset[] = [
248234
aa: 121, ad: -10, as: -5, ar: -2, ala: 120, ald: 1 },
249235
sound: { channel: 1, amplitude: 1, pitch: 100, duration: 40 },
250236
},
237+
{
238+
name: "UG #8 sweep",
239+
description: "BBC User Guide example — large negative pitch deltas wrap the chip's 8-bit pitch register, producing a rapidly cycling sweep. Held loud (AA=127, AR=0) over a short SOUND duration so the wrapping pitch is the dominant feature.",
240+
env: { n: 1, t: 1, pi1: -26, pi2: -36, pi3: -45, pn1: 255, pn2: 255, pn3: 255,
241+
aa: 127, ad: 0, as: 0, ar: 0, ala: 126, ald: 0 },
242+
sound: { channel: 1, amplitude: 1, pitch: 1, duration: 1 },
243+
},
244+
{
245+
name: "UG #9 ramp",
246+
description: "BBC User Guide example — three-section pitch envelope with large excursions (rise +100, drop -200, rise +200 per loop). Net +100 per loop produces an upward-drifting sweep over a long held-loud tone.",
247+
env: { n: 2, t: 3, pi1: 2, pi2: -4, pi3: 4, pn1: 50, pn2: 50, pn3: 50,
248+
aa: 127, ad: 0, as: 0, ar: 0, ala: 126, ald: 0 },
249+
sound: { channel: 1, amplitude: 2, pitch: 1, duration: 10 },
250+
},
251251
];

0 commit comments

Comments
 (0)