A cart I wrote to experiment with the 0x808 serial port. Arrow keys adjust the frequency and volume of the sin wav being written to the port. A graph of the samples written each frame is displayed to the screen.
Added some enhancements:
Added several waveforms besides sine which can be cycled using 🅾️❎
Tuned to C4 = 256 Hz rather than A4 = 440 Hz to have a nice 12 cycles per frame synced initially
Updated graph to distinguish between points and the lines between them and added a zero line
Displaying the min and max of current waveform (useful for testing that new waveforms stay in range)
@dw817 Try running this in native pico-8 ( > load #picotuner ) and see if you get as much clicking. I am not sure how browsers handle audio, but I suspect there is some audio processing tomfoolery behind the scenes causing this. I've noticed I get some pops and clicks in other carts too when I'm using a browser, and carts using the 0x0808 port seem especially affected. I just checked this out with Zep's #aajibi cart and it sounds a lot cleaner in native pico-8 then it does on the BBS.
Ah ! That seems to have fixed it, @mattu82. Hmm ... You know I don't remember Pico-8 having so many online problems in previous versions.
There may be something to learn from this.
In any case your program is working perfectly, no clicking, when run offline. And that deserves a gold star in itself.
Something you might also consider is adding the new flags of
[Please log in to post a comment]