Page 1 of 2

New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 2:17 pm
by kliepatsch



Off The Floor (music demo)




View File






A simple 8-bar loop song bringing you dance floor vibes.

To reduce jitter and audio dropouts, run the demo locally.

It uses all 16 PSG voices and a couple of FM voices.

Would you like to code some graphics to be accommodated by this song? Send me a PM ?






 

New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 2:51 pm
by Yazwho

Sounds great!


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 3:05 pm
by ZeroByte

A lot more of this uses the YM than I expected. It sounds great.

I just tried patching it in MON to run on R39 so I could watch the PSG / YM2151 monitor overlays in Box16 while it plays.

Of course the song is out-of-tune as the YM runs at a lower clock speed on R39... I'd have transposed that too, but finding the note data is much harder than finding "STA $9FE0" though.

 


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 3:44 pm
by kliepatsch

Th PSG is mostly occupied with generating the supersaw sound. Three oscillators per voice isn't much for a supersaw ? Most of the other things are FM sounds.

I am surprised that you got it running in R39, apparently. Concerto uses r0 to communicate. And in R38, r0 is the same as the bank switches in R39, so in R39, Concerto would randomly switch banks ?


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 4:34 pm
by desertfish

Wow this sounds amazing!

Is this an original tune for concerto? Or is it playing a coverted mod or something?


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 5:07 pm
by ZeroByte


On 11/15/2021 at 9:44 AM, kliepatsch said:




And in R38, r0 is the same as the bank switches in R39, so in R39, Concerto would randomly switch banks



Well, if your program doesn't actually use banked memory, it doesn't really matter which bank is currently in the window. The bank latch still functions as normal memory would, since it's readable.

The Kernal doesn't assume "the correct bank is already there" whenever it runs, so it banks in 0 and then restores whatever bank was there when it started. So if you're outside the kernal, you never see it change because Kernal only does this during an IRQ or direct calls to its functions (which also fix any bank changes they may perform).

@desertfish - this isn't a MOD (digital samples) - this is pure synth.


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 6:01 pm
by kliepatsch


On 11/15/2021 at 5:34 PM, desertfish said:




Is this an original tune for concerto? Or is it playing a coverted mod or something?



Yes, it's original ? even though the composition is basically 8 bars on repeat with different instruments muted each repitition


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 6:36 pm
by kliepatsch


On 11/15/2021 at 4:05 PM, ZeroByte said:




Of course the song is out-of-tune as the YM runs at a lower clock speed on R39... I'd have transposed that too, but finding the note data is much harder than finding "STA $9FE0" though.



At $2B5C, there should be a command SBC #3, which is responsible for transposing the notes sent to the YM2151. If you find it, you might mess with that. Of course, it won't fix that the envelopes were programmed for a faster clock speed, but at least it won't sound utterly horrible ?


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 6:55 pm
by ZeroByte

SBC #3 seems odd to me - the YM is off by one whole step from what I can tell, not 3 semitones. I just tried patching that with SBC #0 and it didn't fix the transposition.

Just changed it to SBC #1 and that works properly. It's neat watching all the sliders dancing around in the debug overlays in Box16 ?

Here it is patched for R39 in case anyone's interested in checking it out on Box16:

OFFTFLR39.PRG


New demo uploaded: Off The Floor (music demo)

Posted: Mon Nov 15, 2021 7:15 pm
by kliepatsch

Thank you for the patch! ? I'm looking forward to checking Box16 out.

Hmm... Maybe my PSG frequency table is off by one semitone. I used whatever value made the two audio sources match ?