Log In  

Okay, so after realizing that c0-e5 was 65 total notes, I did a little digging into this. The sfx format specifies that pitch is a number from 0-63, so why does e5 work when you press [p] in the editor, while octave 4 is selected? The sound is higher than d#5, too.

First, let's try some p8scii. In the console, print("\a0szd#5e5") cstore(0x3200,0x3200,68) both plays a constant d#5d#5, and stores that in sfx 0. Then go to the sfx editor and select octave 4, and change it to d#5e5 via pressing [p], and press space to play back. Two different notes!

Now, go back to the console and do sfx(0). This gets the very weird behavior of d#5c1, almost like a default, but not the same default that \a has.

Then, go back to the editor and add a c1 directly below the e5, and press space for playback. Three notes. Then go back to the console and run sfx(0) again. This time you get a weird fading blend between the two c1 notes, almost like pico-8 sees them as two separate pitch values internally.

Finally, save the cart, reboot, and reload. The e5 is saved as a d#5 on the cart, which means playback changes again!

This could all be fixed by removing the ability to add e5 in the sfx editor, but there are some inconsistencies still with how it's handled in p8scii (since e5-b5 become d#5, but all other notes out of range (i.e. e6) become c5).

Lots to tweak here. It was an interesting glimpse into the internal systems that do the actual audio playback.

P#115121 2022-08-01 18:29

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-08-10 04:33:17 | 0.004s | Q:6