[Tool]Pokitto Badass SFX Editor

badass

We’re going to settle this sound generation problem once and for all

First step is that you’re going to get a) samples support b) an editor, that allows you to test different kind of sounds AND will output the necessary code to generate the sound

8000 Hz playback version of SFXeditor

sfxed8k.bin (119.7 KB)

11025 Hz playback version

sfxed11k.bin (119.7 KB)

16000 Hz playback version

sfxed16k.bin (119.7 KB)

22050 Hz playback version

sfxed22k.bin (119.7 KB)

Some example sounds:

Badass alien craft passing by:
setOSC(&osc1,1,5,1,1,1,60,254,6,5,244,6,-300,-2,12,1,0);

Accelerating Atari2600 race car:
setOSC(&osc1,1,3,0,0,0,30,209,18,17,244,18,60,1,0,1,0);

Classic Laser blaster:
setOSC(&osc1,1,1,1,1,1,61,254,0,19,2,0,-215,-20,0,0,0);

14 Likes

Almost ready.

Visual ADSR envelope to explain how attack, decay, sustain and release work

in the corner, shows the actual line of code needed on pokitto to reproduce the sound!

4 Likes

Yep

sfxedit.bin (119.7 KB)

4 Likes

If Ahti (3 yrs of age) can use it, so can you!

6 Likes

Sounds very good on hw too!

That’s through the speaker jack though!

Sounds good also through the internal speaker! Good work.

One suggestion: there could be a small red dot indicating where in the ADSR envelope we are going.

P.s. The code line example is a great idea!

1 Like

The sound editor is for the Pokitto itself? Nice!

1 Like

Hmm… I do not seem to get the usual ADSR graph by changing the ADSR parameters. Meaning this:

Either sustain or release do not work as expected in the graph.

Attack is a rate 1-255, 0 is instant
Decay is a rate 1-255, 0 is off
Sustain is a volume level, 0-255
note: sustain has no effect, if there is no decay set
Release is a rate, 0-255. Note that Release should not be > sustain

Oh yes, now I understand. Yep, sustain is only 1 parameter(level). Duration is not set separately

Ok, so it differs somewhat of ADSR used in e.g. C64. As I understood in C64 there is a gate bit. Setting it starts ADSR, and clearing it ends the sustain phase and starts the release phase. The gate bit is like pressing and releasing a piano key.

1 Like

There is no sine wave? It should be there, that’s the basic wave.

1 Like

It requires a look-up table, no big deal

Added some example sounds to help you get started:

2 Likes

Is the code for this available for study? I’ve been trying to learn sound synthesis for a while now and this looks like it would be very helpful :slight_smile:

2 Likes