Re: SFX Expander programming and VICE

From: Gábor Lénárt <>
Date: Sat, 26 Nov 2011 20:27:41 +0100
Message-ID: <>
Hi Richard & others too,

On Sat, Nov 26, 2011 at 04:33:46PM -0000, Richard Atkinson wrote:
> Hi Gábor,
> Could you zip that up or put a file extension like .prg on it? My
> browsers seem determined to download it in text mode.

Ah, sorry, as I am a Linux/UNIX user and system administrator I mainly use
CLI when it's possible so I simply tested the download with wget command
line tool, and it hasn't got such a problems :) :) "Extensions" are only
remainments of the ancient CP/M systems, Unix does not have this notion (and
btw: I've just got a CP/M cartridge for C64, with original box, disks and
book: so this is not off-topic here either then ha-ha).

Maybe this one is better for you, then:

I am not sure how is OK to post attachments directly here onto the list, as
some mailing lists have the policy not to do it. That was the reason I
uploaded it and I gave only the URL.

> I have a few Sound Expander programs I've written in CBM BASIC to
> play with the registers on the YM3526 or YM3812. That file of yours
> looks like it might be a port of Dune music, is that right? My BASIC

Not actually a port, but a grab (I mean grab of the music itself, not the
code I wrote for it) :) But indeed, it's the music of the intro
of DUNE I. DOS game.  It's a feature of DOSBOX that it can capture the OPL2
register events (with timing informations) from any running DOS application. 
Thankfully the grabbed file format (called DRO) is very simple to "parse" so
I simply wrote a program which "plays" the grabbed music.  First it was a
DOS only attempt, but after I realized that heart of the AdLib is also
working with C64 (the YM3812 chip: if it's built with that, since there is
3526 based ones too) I became curious that I can port my really simply
player to play DRO files with C64 using YM3812 in the form of using SFX
Sound Expander cartridge, or at least the emulation (in VICE).  In theory
that play can play any DRO (v2.0 format) files, just now it's only a compile
time option to include the DRO stream.  This is also the reason that the
program file is long: it includes the whole DRO file as-is, with headers

So in nutshell: of course the acutal tune included (Dune I intro) is just an
example to test the player code, it can be anything other too ...

> programs let you experiment with different register settings for the
> voices and also show what 2 or 3 detuned versions of the same voice
> sound like.

       Message was sent through the cbm-hackers mailing list
Received on 2011-11-26 20:00:04

Archive generated by hypermail 2.2.0.