Search found 627 matches

by ZeroByte
Mon Mar 17, 2025 7:50 pm
Forum: Programming
Topic: Problems with YM sound effects on real hardware (works in emulators)
Replies: 17
Views: 13108

Re: Problems with YM sound effects on real hardware (works in emulators)

Also, the 9 NOPs is to accommodate the YM2164.

It's been a while, but I seem to recall us landing on 5 NOPs as the amount that completely cleared up any corrupted audio during early HW testing with the YM2151.
by ZeroByte
Mon Mar 17, 2025 7:43 pm
Forum: Programming
Topic: Problems with YM sound effects on real hardware (works in emulators)
Replies: 17
Views: 13108

Re: Problems with YM sound effects on real hardware (works in emulators)

The size=18 is due to the fact that when Zsound first released, there was no headerless mode loading routine, so all files on X16 had to have the 2-byte PRG header. That should be 16 now. I'm also trying to figure out a good way to stream writes to the YM2151 without having to do busy-waiting (in ge...
by ZeroByte
Wed Mar 12, 2025 8:30 pm
Forum: Programming
Topic: Problems with YM sound effects on real hardware (works in emulators)
Replies: 17
Views: 13108

Re: Problems with YM sound effects on real hardware (works in emulators)

Glad that fixed it. Once I got thinking about it, I realized how familiar that "works on emu, but not hw" problem was. :D I do want to update Zsound to use the Kernal API call for writing YM and setting attenuation levels. It makes YM writes a bit more expensive, but if you have even 2 wri...
by ZeroByte
Tue Mar 11, 2025 7:19 pm
Forum: Programming
Topic: Problems with YM sound effects on real hardware (works in emulators)
Replies: 17
Views: 13108

Re: Problems with YM sound effects on real hardware (works in emulators)

The reason it works in emu but not in HW is because the emulation doesn't strictly enforce the physical limitations of talking to the YM, especially in the delay requirements between setting the address register and doing a data write. The actual real required delay is variable, depending upon where...
by ZeroByte
Tue Mar 11, 2025 7:10 pm
Forum: Programming
Topic: Problems with YM sound effects on real hardware (works in emulators)
Replies: 17
Views: 13108

Re: Problems with YM sound effects on real hardware (works in emulators)

After some reflection, I'm pretty sure I know what the problem is: There probably needs to be more delay added in the ZFX player between writing the address select and the value. The ZSM player got all of the attention back when I was working with Wavicle during the pre-release HW days. We found tha...
by ZeroByte
Tue Mar 11, 2025 2:28 pm
Forum: Programming
Topic: Problems with YM sound effects on real hardware (works in emulators)
Replies: 17
Views: 13108

Re: Problems with YM sound effects on real hardware (works in emulators)

Hi, folks. First of all, thanks for the kind words about Zsound, Doslogo! Questions: Do the FM sounds play okay if you're not also playing music? Are the SFX using channels that aren't being used by the music? There is no channel contention code in the ZSM/ZFX players, so if your music uses YM chann...
by ZeroByte
Wed Jan 04, 2023 4:50 pm
Forum: Programming
Topic: Change palette mid-scanline
Replies: 5
Views: 8355

Change palette mid-scanline


It's the emulator, which pre-renders entire scanlines with a snapshot of the VERA state - mid-line changes don't take effect on the emulator, but they do on real HW.

 

by ZeroByte
Tue Jan 03, 2023 11:09 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 73872

Kernal & BASIC sound API for the ROM - ideas?

A few notes about the API side of things - this code is accessible through an API located in ROM bank $0A. (A for audio - it was Kismet)<br /> In addition to the underlying BASIC code, there are atomic routines for setting the pitch, volume, and panning for each voice/channel of the two chips, as w...
by ZeroByte
Tue Jan 03, 2023 10:54 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 73872

Kernal & BASIC sound API for the ROM - ideas?

This has definitely turned out to be quite a featureful enhancement for BASIC as well as the functionality available as low-level calls. <a contenteditable="false" data-ipshover="" data-ipshover-target="<___base_url___>/index.php?/profile/3477-mooinglemur/&do=hovercard" data-mentionid="3477" hr...
by ZeroByte
Wed Dec 21, 2022 8:33 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 73872

Kernal & BASIC sound API for the ROM - ideas?

BASIC to FM and PSG is fairly simple because of the note format in BASIC: note=1-12 , octave is a separate argument. (for now - we're not 100% on this)<br /> One issue we've yet to address is the 1-12 range. We're in consensus that it should describe C .. B and not C# .. C as the YM does. note 0 = ...