Repository navigation
Commodore 64
Diffractor began on the Commodore 64, and it still plays and runs the machine's files: SID tunes as audio, and disks, tapes, cartridges and programs on a built-in Commodore 64. Both run on lib64, Diffractor's own emulator. The website's Commodore 64 section shows them; this page has the details.
A .sid file is a C64 music program with one or more tunes. Diffractor runs it on an emulated SID chip rather than decoding a recording, always from the tune's start, and plays it like any other audio.
How long a tune lasts. A SID file does not say, so Diffractor first runs a silent copy far faster than it plays:
- A tune that falls silent ends as its last note dies away.
- A tune that starts again from the beginning plays through once and fades out over three seconds as it repeats.
- A pause, or a phrase played over and over before the tune moves on, is not taken for its end.
- Until that run answers, and for a tune it cannot place within thirty minutes of play, a tune plays for three minutes and fades over the last three seconds.
The chip. Each file's header says which SID it was written for - the MOS 6581 or the later 8580 - and whether it runs at the PAL or NTSC clock; Diffractor plays it so.
The SID monitor replaces the visualizer while a tune plays. It shows each of the three voices - waveform, note, envelope and its ADSR - the chip's output, filter and volume, and the registers the tune writes, as it plays. Its controls start another of the file's tunes, and mute or solo a voice; a voice brought back returns mid-note, since the tune runs on underneath.
In Movie mixer, a SID tune is a clip of its own, drawn as its monitor following the music. A project picks one of a file's tunes with #: c #3 tune.sid plays all of tune 3. See Movie projects.
| File | Is |
|---|---|
D64, D71, D81
|
A 1541, 1571 or 1581 floppy disk |
T64 |
A tape archive |
PRG |
A program file |
P00 |
A program file saved by the PC64 emulator |
CRT |
A cartridge |
A disk, tape or program shows its directory listing in the C64's blue. Click a program's row - any row of a tape - to run it; a program file and a cartridge have Start beneath them. A cartridge is drawn as Commodore's own, black shell, label and gold contacts.
The machine is a PAL Commodore 64. It starts a program as you would have typed it - LOAD"name",8,1 then RUN for a disk - with the boot and the load hurried, then runs at its own speed with its sound. Its picture is drawn as large as fits, at a whole multiple of its pixels where that loses little.
Back or Esc stops the machine and shows the listing again, as selecting another item does. Opening a task view or Options stops it too. The screen saver waits while it runs.
While the machine has the keyboard, the arrow keys and Space are a joystick in port 2. The button beneath the picture moves the joystick to port 1, for games that read it there. Space is the C64's space bar as well as fire.
The C64's other keys are where its keyboard has them. Keys are placed by position, as on a US keyboard:
| PC key | C64 key |
|---|---|
Letters, digits, , . / ; -
|
The same |
| Return | RETURN |
| Backspace, Delete | INST/DEL |
| Insert | INST (Shift and INST/DEL) |
| Home | CLR/HOME |
| Shift | SHIFT |
| Ctrl | CTRL |
| Tab | C= (the Commodore key) |
| Pause, F9 | RUN/STOP |
| Page Up | RESTORE |
| F1, F3, F5, F7 | F1, F3, F5, F7 |
| F2, F4, F6, F8 | F2, F4, F6, F8 (Shift and F1, F3, F5, F7) |
= |
+ |
' |
: |
[ |
@ |
] |
* |
` |
← |
\, and the key beside the left Shift on other layouts |
↑ |
| Page Down | = |
| End | £ |
The arrow keys are the joystick, so the C64's own cursor keys have no PC key. Key combinations with Alt stay Diffractor's.
| You type | Finds |
|---|---|
@c64 |
Disks, tapes, cartridges and programs |
@audio |
SID tunes, with all other audio |
system:"commodore 64" |
Both |
contents:ghostbusters |
A disk or tape holding a file of that name |
ghostbusters |
Also finds a disk or tape by the name it gives itself, and by the files it lists |
A disk or tape is titled by the name it gives itself, and lists the names of the files it holds as its contents.
Using Diffractor
- Search reference
- Formats and codecs
- Metadata
- Name templates
- Faces
- Lossless video editing
- Movie projects (.dfv)
- Commodore 64
Automating
Behind the scenes