Synthesizer Demo

Post Reply
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Synthesizer Demo

Post by DusanStrakl »

I wrote couple of tutorials on how to use ROM functions to program AY2151. As result I also wrote a demo for it in form of simple synth.

Image

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!
Attachments
SYNTH.zip
(4.51 KiB) Downloaded 278 times
Last edited by DusanStrakl on Wed Feb 12, 2025 11:58 pm, edited 1 time in total.
Xiphod
Posts: 595
Joined: Thu Apr 15, 2021 8:05 am

Re: Synthesizer Demo

Post by Xiphod »

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 ]
Last edited by Xiphod on Mon Feb 10, 2025 12:40 pm, edited 1 time in total.
Xiphod
Posts: 595
Joined: Thu Apr 15, 2021 8:05 am

Re: Synthesizer Demo

Post by Xiphod »

Wow, and something I just noticed: with the (expensive) WASD Keyboard, I can press all the keys I want for the Synth.

But on the standard Perixx keyboard, I can only press a few different key combinations.

And this is also the case in my own VSynth. It's something I never noticed before - thought was an SMC issue/limitation?

Anyway, neat, I can fully Synth with the WASD Keyboard :)
Last edited by Xiphod on Mon Feb 10, 2025 4:48 am, edited 2 times in total.
DragWx
Posts: 382
Joined: Tue Mar 07, 2023 9:07 pm

Re: Synthesizer Demo

Post by DragWx »

Xiphod wrote: Mon Feb 10, 2025 4:14 am Wow, and something I just noticed: with the (expensive) WASD Keyboard, I can type all the keys I want for the Synth.

But on the standard Perixx keyboard, I can only press a few different key combinations.
You're encountering Key Rollover. The WASD keyboard has N-Key rollover, and the Perixx keyboard does not.
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Re: Synthesizer Demo

Post by DusanStrakl »

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 ]
Good to know. I will use slightly darker gray for letters on white keys for next build.

Yes, I was thinking about recording functionality. It is definitely doable but require some more time. I was also thinking about adding some background base/drum rhythms or metronome. Then another thing could be adding PSG support for additional 16 channels, looping feature, etc. but then we are already in full blown tracker territory :-)
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Re: Synthesizer Demo

Post by DusanStrakl »

DragWx wrote: Mon Feb 10, 2025 4:27 am
Xiphod wrote: Mon Feb 10, 2025 4:14 am Wow, and something I just noticed: with the (expensive) WASD Keyboard, I can type all the keys I want for the Synth.

But on the standard Perixx keyboard, I can only press a few different key combinations.
You're encountering Key Rollover. The WASD keyboard has N-Key rollover, and the Perixx keyboard does not.
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.

If I understand correctly, this problem is caused by hardware fault and there is no workaround to fix it in software.
DragWx
Posts: 382
Joined: Tue Mar 07, 2023 9:07 pm

Re: Synthesizer Demo

Post by DragWx »

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.
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.
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Re: Synthesizer Demo

Post by DusanStrakl »

Xiphod wrote: Mon Feb 10, 2025 3:41 am 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).
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.
Xiphod
Posts: 595
Joined: Thu Apr 15, 2021 8:05 am

Re: Synthesizer Demo

Post by Xiphod »

This is so polished and enjoyable to use! Especially I like the little "channel" lights.


One reason I'd like a key-stroke recording is so that sequence can be used to play a composition back (in terms of notes) - which should be smaller (more compact) than an actual digitized audio recording (like in terms of one of the PLAY commands in BASIC, or just in sending note/tempo instructions to the chip). But I see it's surprisingly hard, as those key-strokes don't (generally) fall into "normal" rhythms (except maybe for very well trained musicians?).

Another Someday-Project is resurrecting 3DO CPU Bach - and its concept of generative music (Sid Meier wrote an extensive whitepaper on his approach). Or another tangent - I reinstalled WinXP recently for some unrelated project, and I found more audio samples as part of its installer, and was reminded of the "generative imagery' that old Microsoft Media Player had when playing WAVs.
Post Reply