
I link full source code from my blog:
https://www.8bitcoding.com/p/sound-in-a ... g-rom.html
https://www.8bitcoding.com/p/sound-in-a ... write.html
You can also try it here: Try It Now!
You're encountering Key Rollover. The WASD keyboard has N-Key rollover, and the Perixx keyboard does not.
Good to know. I will use slightly darker gray for letters on white keys for next build.Xiphod wrote: ↑Mon Feb 10, 2025 3:41 am Very nice!
On my X16's screen/hardware, the letters on the white keys don't show up. They work fine, just I only realized they were even there because of your screenshot. The keys on the black keys are visible fine, just not on the white keys (for me at least).
Now add a record/playback button[ I took a stab at that in my own synth, it's a bit harder than it seems; in terms of recording the note/duration sequence actually played, not just some kind of WAV recording ]
Interesting. I was not familiar with this and I only tested on emulator, need to get my machine from the closet. I also have both keyboards to test with.DragWx wrote: ↑Mon Feb 10, 2025 4:27 amYou're encountering Key Rollover. The WASD keyboard has N-Key rollover, and the Perixx keyboard does not.
Correct, it's a side-effect of how the keyboard's circuitry is designed, and there's no real software workaround other than allowing users to redefine keys if there's a particular combo their keyboard struggles with. And of course, the hardware workaround is to get a keyboard with N-Key rollover, but those are usually higher end.DusanStrakl wrote: ↑Mon Feb 10, 2025 9:19 pm If I understand correctly, this problem is caused by hardware fault and there is no workaround to fix it in software.
I just uploaded updated version with letter on white keys one shade darker. I want them to be subtle but obviously they need to be visible. I hope it looks better now.