The 1702 monitor drawn as a wireframe beside a solid Commodore 64.

Under the hood

How SIDbase plays a song

The player in every export, the frames it runs on, and how it compares: with the trackers you know, and with the real chip.

The player

The preview is the player

Most editors for an old machine play your song with a second engine, written for the computer you sit at, and the two can drift apart. SIDbase doesn't have one.

Every edit packs your song and assembles the 6502 player for it, with only the code paths its music and player options need. That image runs on an emulated 6502, cycle by cycle, and reSIDfp turns its writes to the chip into sound at the cycles they happen. Export, and the .sid holds the same player and the same song data, packed into one block.

So the editor refuses what the export would. You can't write a song that sounds right here but doesn't play on the c64: if a song can't play, the transport shows CANNOT PLAY and takes you to the reason.

Your songClips, notes, instruments, settings
The packerYour song as the player's data, checked against what it can play
One 6502 player, built for this songRebuilt on every edit, in a millisecond or two
Emulated 6502 + reSIDfpClocked between the player's writes at their true cycles
Your speakersWhile you edit
The .sid exportThe same player and data in one compact block
A real C64Or any SID player, a demo, a game

Frame by frame

Fifty times a second

The player runs once a frame, 50 times a second on a PAL C64. An instrument is a set of small programs, its lanes - waveform, pulse, filter, pitch, vibrato and arpeggio - and each steps through its values at its own speed, with its own length and loop.

A note's first frame is its note-init frame: it sets the waveform and the envelope and nothing else. Pitch and pulse start on the frame after, where the lanes take their first step. Before the note, hard restart forces the envelope down for two frames, so each note's attack starts from the same place.

Hard restart Note-init frame The note's lanes Still the note before

What's in the box?

People like numbers, right!?

3Voices

The SID's own count. A chord is arranged across them, or played as an arpeggio.

64Instruments

Each one its own set of lanes. CensorEd 1.7 stopped at 16.

12bitPulse width

The chip's full range, $000-$fff, drawn as a curve or adjusted with a sweep.

11bitFilter cutoff

Curves reach the chip's full cutoff and keep fractions of a step, for sweeps slower than one step a frame.

16xMultispeed

Up to 16 calls a frame: the whole player, or the instruments alone, per voice and per instrument.

16Commands

For a clip's steps, with four automation lanes: one for the song, one per voice.

HRHard restart

Allowed for the song and switched off per instrument, each with its own gate lead. The HR envelope is any value you like.

3.8KBA whole song

Swing it, exported: the player and every note of the song in one .sid file.

Song cost: The transport's Raster time box shows the rasterlines the player spends each frame, and the Settings page shows what each player option costs in bytes and cycles, for the song you have open.

The trackers

Quick comparison

SIDbase's player began as CensorEd 1.7's but has since gone its own way. Here it is next to the players of the trackers you know, on four things that shape a sound.

SIDbaseGoatTracker 2.73SID Factory II
driver 11
SID-Wizard 1.97CensorEd 1.7
Commands per step 2, with the note and its instrumentAnd four automation lanes of their own: one per voice, one for the song 1And the command rows of an instrument's wavetable 1 1 with a note and an instrument2 on a step that sets no instrument, 3 on one with no note NoneA step has no command column
Filter cutoff 11 bits, or 8, per song 8 bits 11 bits 11 bits8 in its Light and Bare players 8 bits
Hard restart On or off per instrumentAny HR envelope, $0F00 by default; the window parks the voice or keeps its lanes running, per song Per instrument: hard restart and gate-off, gate-off only, or neitherAny HR envelope, $0F00 by default, chosen at export Always two frames of gate-offThe HR envelope from 8 table rows, $0F00 in row 0 Normal and Extra players: any HR envelope, 0-2 frames, and a TEST "staccato" formThe others: two frames of $0F00 NoA note's own first frame sets TEST and drops the gate
Multispeed 1-16 calls a frameThe whole player, or the instruments alone at 1x-16x per voice and per instrument 1-16 calls a frameChosen at export No 1-8 calls a frameThe extra calls step the instruments alone; not in the Bare player No

From a tracker to SIDbase

In a trackerIn SIDbaseWhat changes
Order listThe timelineClips on three voice tracks. A repeated pattern is a linked clip: edit one and every copy follows.
PatternA clip, in the piano rollOr as note columns in the Retro view. Both are views of the same song, not a conversion.
Wave, pulse and filter tablesInstrument lanesEach with its own length, loop and speed, drawn as steps or curves, and packed once when two instruments share one.
Effect commandsThe command laneA command on any step of a clip, or along an automation lane.
Hard restart tricksA switchAllowed for the song, opted out of per instrument, instead of written by hand.
A test note on SpacePlay-along and takesPlay from the computer keyboard or a MIDI keyboard; a take lands as a new clip. One note a voice: arm two or three voices for a chord, or enable the Arp mode.

The real C64

Measured against the real chip

SIDbase's preview has been measured against real C64s: eleven chips so far, five 6581s and six 8580s.

11

Chips measured: five 6581s and six 8580R5s.

0.3 dB

Waveforms, sync, the envelope's timing and the volume steps on an 8580R5 are the preview's, within this.

0.1 ms

How far the preview drifts from a real C64 over a minute of music.

On an 8580

A song plays on the C64 as the preview plays it, with a few differences: filtered sounds sit a little lower in pitch, and lower still with three voices through the filter; resonant sweeps through the lowest cutoffs peak softer; a faint unfiltered edge sits under filtered voices; release tails hang on at the bottom, then drop out; a filter mode switching in clicks louder; $D418 samples are quieter unless a voice is held high; and the C64's own buzz and hiss sit 50-55 dB down.

The waveforms, the envelope's timing, sync and ring, the volume and the headroom at full volume measure equal.

On a 6581

The 6581's filter is different on every chip. Of the five measured, the emulation's 6581 filter can be set to follow the two brighter ones; the three darker ones sit close to an octave below anything it reaches.

A voice whose envelope has closed still leaks its waveform on a 6581, about 43 dB down, enough for a silent voice synced to another to be heard. The preview leaks it too; most SID players leave it out.

Ready.

Interested?

SIDbase is free for macOS, Windows and Linux, and open source under the GPL.

Listen to the songs