Search found 621 matches

by ZeroByte
Wed Jan 04, 2023 4:50 pm
Forum: Programming
Topic: Change palette mid-scanline
Replies: 5
Views: 7420

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: 61243

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: 61243

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: 61243

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 = ...
by ZeroByte
Wed Dec 21, 2022 8:28 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 61243

Kernal & BASIC sound API for the ROM - ideas?

One thing you'll be happy to hear, <a contenteditable="false" data-ipshover="" data-ipshover-target="<___base_url___>/index.php?/profile/73-tomxp411/&do=hovercard" data-mentionid="73" href="<___base_url___>/index.php?/profile/73-tomxp411/" rel="">@TomXP411</a>: we're using MIDI as the underlyin...
by ZeroByte
Wed Dec 21, 2022 8:19 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 61243

Kernal & BASIC sound API for the ROM - ideas?

This lets you have the ability to play sounds at points during a program's execution. (tada.wav, anyone?)<br />   Let's not forget though, that it's definitely quite doable for "background player" code to exist - you just have to load it and run it, and communicate with it via SYS calls (or if the ...
by ZeroByte
Wed Dec 21, 2022 8:07 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 61243

Kernal & BASIC sound API for the ROM - ideas?

PCMPLAY (if implemented) would behave as follows:<br />   PCMPLAY "filename" - it proceeds to play the file, and execution halts while the file plays. So long as the file's data rate didn't exceed the ability to stream it into the FIFO, all would go well. In the forthcoming r42 kernal, MACPTR is ab...
by ZeroByte
Mon Dec 19, 2022 7:53 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 61243

Kernal & BASIC sound API for the ROM - ideas?


There have already been a couple of lightweight sound engines designed for BASIC extension posted here on the site, come to think of it...

by ZeroByte
Mon Dec 19, 2022 7:49 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 61243

Kernal & BASIC sound API for the ROM - ideas?

BASIC and PCM aren't a good match for each other. <ol> <li> PCM takes up gobs of space... would consume large swaths of ROM real-estate, and would also be crappy (of necessity). </li> <li> PCM requires lots of shepherding by the CPU, which BASIC is not really suited to doing, except in cases where ...
by ZeroByte
Mon Dec 19, 2022 3:06 pm
Forum:
Topic: Kernal & BASIC sound API for the ROM - ideas?
Replies: 62
Views: 61243

Kernal & BASIC sound API for the ROM - ideas?

One thing I'd like to point out is that the FMINST command represents a gateway to "intermediate mode" sound programming for the YM as well. If there is a set of FM instruments built into the ROM and an API to activate them on voices, you can use just this one BASIC command and then use your own ro...