netsid radio

sid tunes from the net

A SID music radio for the Commodore 64. The server streams tunes from the High Voltage SID Collection over the network to real C64s. The tunes play on the C64's own SID chip, and everyone tuned in to the same playlist can chat.

The netsid client playing Wizball by Martin Galway, with chat lines from other listeners at the bottom of the screen

What is it?

netsid radio has a server and a small C64 client. The server holds the whole HVSC (over 60,000 tunes) and a set of playlists. Your C64 connects, you choose a playlist, and the server sends the tunes one after another. Each tune is loaded into the C64's memory and played by the real SID chip. Nothing is pre-recorded. The client runs from the cartridge and switches itself out of the way while the tune plays, so the tune has nearly all of the C64's memory and nearly every PSID tune can play. When a tune needs the memory the cartridge's screen would use, the client moves itself into a free corner of the C64's RAM for that tune and keeps its screen and chat.

live stations

Everyone hears the same tune at the same time, like a radio. If you join halfway through a tune, the client silently fast-forwards to catch up when it can. Otherwise it plays the tune from the start and moves on when the station does.

on demand

You go through the playlist at your own pace and can skip tunes. If you switch off and come back later, it continues where you left off.

search

Press F3 and type a few words to search all of the HVSC, then pick a tune from the list. Every tune your client can play is there to listen to. Press F to keep a tune in your own favourites playlist.

chat

Everyone listening to the same playlist shares a chat. The screen shows the tune title, composer, year and time left, plus the latest chat lines.

your own

Favourites, your own playlist filled from searches, the STIL story behind a tune, every song of a tune with + and -, back to the last tune with ←, repeat with R, and pause. The server remembers it all for your C64.

the right SID

On an Ultimate 64 each tune can play on the SID chip it was made for: a 6581 or 8580 in a socket, a PDsid, ARMSID or FPGASID switched to the right mode, or the Ultimate's UltiSID.

What you need

A C64 with Ultimate hardware on a network: a 1541 Ultimate-II/II+, an Ultimate 64 or a C64 Ultimate. A C128 with a 1541 Ultimate-II works too, in C64 mode. The client uses the Ultimate Command Interface to reach the network.

Download

For Ultimate hardware

1541U-II/II+, Ultimate 64, C64 Ultimate. The client is a Retro Replay cartridge image that the Ultimate starts like any cartridge.

  • netsid.crtcartridge image (build 161), start it with Run cart

Have an older netsid.crt (a 16 KB cartridge)? The server no longer accepts it and says old cartridge: download new netsid.crt. Download this one and start it the same way.

server: your.server.address
port: 6581

Connect with an Ultimate

  1. Connect the Ultimate to your network. Plug in the Ethernet cable. The Ultimate gets its address from your router (DHCP).
  2. Turn on the Command Interface. Press F2 in the Ultimate menu to open the settings. In C64 and Cartridge Settings, set Command Interface to Enabled. The client can't reach the network without it.
  3. Copy the client to the Ultimate. Put netsid.crt on the USB stick or SD card, or send it over the network with the Ultimate's FTP or web interface.
  4. Start it. Select netsid.crt in the Ultimate's file browser and choose Run cart.
  5. Answer three questions. Type a nickname and press RETURN. The server address your.server.address and the port 6581 are already filled in, so just press RETURN for both. To use another server, delete the address with DEL and type its name or IP address.
The client's start screen with nickname c64fan, server voidhole.com and port 6581
The start screen. Leave the nickname empty to keep the one the server remembers from last time.

Using it

1. Pick a playlist

After you connect, the client lists the server's playlists. Press the number or letter beside a playlist (1-9, A-Z) to tune in. The figure on the right of each line is how many listeners it has now.

Your own lists come first: my favourites (see below) and my playlist, which you fill from a search. They only show once they have tunes in them.

The next time you connect, the client goes straight back to the playlist you were on. Press M to pick another one.

The playlist menu: my favourites, my playlist and four playlists, numbered 1 to 6, with the F3 search hint at the bottom
The playlist menu, with your favourites and your own playlist first.

2. Listen and chat

The top of the screen shows the tune, the composer, the release, the song number and the time played. Chat lines from the other listeners appear at the bottom.

SPACESkip to the next tune (on-demand playlists only)
+ -Next or previous song of a tune that has several (on-demand playlists only)
←Back to the previous tune (on-demand playlists only)
RRepeat: the tune plays on past its end, the clock in green, until you move on (on-demand playlists only)
RUN/STOPPause the tune, and press again to play on (on-demand playlists only)
MBack to the playlist menu
RETURNStart a chat line. RETURN sends it, RUN/STOP cancels.
FAdd the tune to your favourites. Press it again to remove it.
F3Search the HVSC (see below)
F1Switch the chat area to tune info and back. Tune info shows where the tune sits in memory, its init and play addresses, and its timing.
F5The tune's STIL entry and back (see below)
F7Your settings and back (see 5. Settings)
Wizball playing, song 4 of 9, with chat lines from other listeners
Wizball playing, with other listeners chatting.

The story behind a tune

Many tunes have an entry in STIL, the SID Tune Information List that comes with the HVSC: who made it and for what, the original it covers, or a note from the composer. Press F5 while the tune plays to read it in the chat area. A long entry has more pages: F5 again shows the next one. Typing /stil on the chat line shows it as chat lines instead.

The STIL entry of Wizball song 4: Martin Galway's own note on how the tune was made
F5 on Wizball: Martin Galway's own note on the tune.

3. Find any tune

Press F3, while a tune plays or in the playlist menu. A find: line opens at the bottom of the screen. Type a few words and press RETURN. Each word can be part of a title, a composer's name, a release or a folder in the HVSC:

hubbard commando
galway
tel cybernoid #2
hubbard 8580
bass -8580

The tunes found are listed like the playlist menu. Press the number or letter beside one to play it. The rest of the list follows, and SPACE skips to the next one. 19 fit on the screen at a time: F7 (or SPACE) shows the next 19 and F1 the ones before, wrapping round at either end.

Your search isn't shown to the other listeners. It stays in the menu as the first entry, search: …, which opens the list again. Add #2, #3, and so on to play that song of each tune instead of the main one. Add 6581 or 8580 to keep only tunes made for that SID chip (tunes that work on both are kept too). A - in front of a word leaves out what it would find: -8580 drops the 8580 tunes, -remix drops anything with “remix” in it. The results only include tunes the client can play.

Press + in the list to put every tune found on my playlist and play it. Your playlist keeps up to 2000 tunes; /add on the chat line adds the last search too, and /clear empties it.

A search for hubbard: the first 19 tunes found, keys 1 to j, with the hint f1/f7 page, + add all, f3 find
The first 19 tunes found for hubbard. Press a number or letter to play one.

4. Favourites

Press F while a tune is playing to add it to your favourites. The server confirms in the chat area, for example + fav (3): Commando #1. The number is the song: in a tune with several songs, each one you keep is a favourite of its own, so change the song with + and - first. Press F again to remove it. Typing /fav on the chat line does the same.

The f fav on the help line shows whose favourite the song is: green when it's one of yours, light grey when someone else keeps it, and dim like the rest of the line when nobody does. It changes at once when anyone listening presses F (cartridge build 155 and later).

Once you have a favourite, the menu shows my favourites near the top, with the number of tunes. It plays your favourites in the order you added them, and SPACE skips.

Favourites are kept on the server for your C64 and your nickname, so they're still there next time. People who share a C64 each get their own list if they use different nicknames.

Wizball playing; the chat area confirms + fav (4): Wizball #4
F pressed on Wizball: now four favourites.

5. Settings and the SID switch

Press F7 while a tune plays to see your settings, and a number key to change one. They're kept on the server for your C64 and nickname, like favourites. All of them are in the table below.

With the switch on, a tune made for the 6581 plays on every socket that can play it: a 6581, and a PDsid, ARMSID or FPGASID set to 6581 mode. The other sockets are switched off for that tune. A tune made for the 8580 works the same way. If no socket fits, the Ultimate's own UltiSID plays it, set to sound like the right chip. Tunes that don't say which chip they were made for, or say either, play on the 6581 unless you choose otherwise with unknown sid model plays as.

The switch needs Ultimate firmware 3.15 or later. It changes the Ultimate's SID addresses until you reset or switch it off. Your saved settings aren't touched, and the client writes its small config file (netsid-sid.cfg) to the Ultimate's RAM disk (/Temp). If the switch can't be made, the settings screen says why.

The settings in the chat area: shuffles off, switch sid per tune on, socket 1 has a 6581, socket 2 a PDsid
F7: a 6581 in socket 1 and a PDsid in socket 2.
shuffle my playlist, shuffle my favouritesPlay your own lists in random order
switch sid per tuneUltimate 64 and C64 Ultimate: give each tune the SID chip it was written for
sid socket 1 has, sid socket 2 hasUltimate 64 and C64 Ultimate: what sits in each SID socket: none, 6581, 8580, pdsid, armsid or fpgasid
unknown sid model plays asUltimate 64 and C64 Ultimate: the chip for tunes that don't say which one they were made for, or say either: 6581 (the default), 8580, or as is (left as the previous tune set it)

Keys

All the keys in one place. Press them without SHIFT (+ and - are keys of their own on the C64). Keys that do nothing at the moment are blacked out on the screen: F5 when a tune has no STIL entry, everything but SPACE, M and F during a tune that has the C64 to itself.

while a tune plays

SPACENext tune (on-demand playlists, search, favourites)
+ -Next or previous song of the tune (not on live stations)
←Previous tune (on-demand playlists, search, favourites; build 157 on)
RRepeat on/off: the tune doesn't end at its time (not on live stations; build 159 on)
RUN/STOPPause, and play on (not on live stations)
MPlaylist menu
FAdd to favourites, or remove
F1Tune info in the chat area, and back
F3Search the HVSC
F5The tune's STIL entry, and back
F7Your settings (on an Ultimate 64 also the SID switch), and back
RETURNWrite a chat line

in the menu

1-9 A-ZPick a playlist, or a tune from a search
F3Search the HVSC

in a search result

F7 SPACENext 19 tunes
F1The 19 before
+Put the whole result on your playlist and play it

typing a chat line or a search

RETURNSend
DELDelete the last character
RUN/STOPCancel

On the chat line

/find wordsSearch, as with F3. The result is added to the menu.
/favSame as F
/stilThe tune's STIL entry as chat lines
/addPut the last search on my playlist
/clearEmpty my playlist
If the server restarts, the tune keeps playing and the chat area says server gone - reconnecting. The client reconnects by itself within a minute. If the server doesn't come back, it says so and a key press tries again.

FAQ

Why are some HVSC tunes never played?

The client plays single-SID PSID tunes, and many RSID tunes and tunes without a play routine that the server has turned into PSID-like ones and checked against VICE, song by song. Some sample tunes play with the C64 to themselves (see below). What's left out: RSID tunes that are BASIC programs or rely on exact cycle timing, MUS files, multi-SID tunes, and tunes that leave no free memory at all for the client's few switching routines. Some tunes with several songs play only the songs that convert.

Why does the screen sometimes go dark while a tune plays?

While a tune plays, the cartridge can only write to the first 4 KB of the C64's memory, so that's where its screen normally lives. When a tune needs that memory, the client copies itself into free RAM elsewhere for that tune, with its own screen and character set, and everything keeps working (cartridge build 158 on). Only a couple of hundred tunes use so much memory that there's no corner left for it: they play with the screen switched off, and chat comes back with the next tune.

Why is there no chat during some tunes?

Some tunes, mostly ones with sampled drums or speech (Rob Hubbard's Skate or Die, Martin Galway's Arkanoid), can't share the C64 with the client, so they get the whole machine while they play. The server adds a tiny watchdog to the tune before sending it: it counts the time, shows the clock, watches SPACE (next tune), M (the menu) and F (favourite), and hands the C64 back to the client when the tune is over. Meanwhile the client isn't running at all, so there's no network: no chat and no other keys, and the screen blacks out the ones that don't work. You're back in the chat as soon as the tune ends.

Why are sample tunes hard for a player like this?

An ordinary SID tune is driven by a play routine the player calls 50 times a second. Each call takes a small part of a frame, and the rest of the time is free: that's when the client reads the network, scans the keyboard, keeps the clock and draws the chat. A tune can share the C64 like that.

Sample tunes play sound the SID wasn't designed for, by changing a SID register thousands of times a second, usually the volume. To keep the sample in tune, every change has to come exactly on time. Some tunes do it from a timer interrupt (an NMI) firing up to 8,000 times a second; others never return at all and time their writes by counting CPU cycles in a loop. Either way there's no gap left for anyone else, and anything that takes the CPU away for even a moment, like reading a byte from the network, scanning the keyboard or the cartridge switching itself in and out, comes out as clicks, distortion or wrong pitch.

Such tunes also expect the C64 to be theirs: they reprogram the interrupts and the memory layout, and some never hand control back. A player on a disk can simply let them have the machine. A network player has to stay reachable, because chat lines and the next tune arrive whenever the server sends them. That's why these tunes get the whole C64 with the small watchdog described above. A few hundred tunes need even more than that, such as cycle-exact video tricks, and aren't offered.

Does the server remember me?

Yes. The client sends the Ultimate's network (MAC) address, and the server uses it to remember your nickname, the playlist you were on, your place in on-demand playlists and your favourites.

What if someone else already uses my nickname?

Then you're shown as anna2 (or anna3, and so on) while they're connected. The server tells you in the chat area once you tune in to a playlist. Your favourites and remembered nickname stay under the name you typed. If your own C64 reconnects, for example after a power cut, it gets its old nickname back.

Which port do I need to open?

None on your side. The C64 connects out to TCP port 6581 on the server, just as a web browser connects out to a web server.

Is the sound streamed?

No. Only the tune data is sent, usually a few kilobytes per tune. The C64 runs the music code itself, so you hear your own SID chip (6581 or 8580) or the Ultimate's emulated one.

Can a tune play on the SID chip it was made for?

On an Ultimate 64 or C64 Ultimate with firmware 3.15 or later, yes. Turn on switch sid per tune with F7 and say which chip is in each socket (see Settings and the SID switch). A PDsid, ARMSID or FPGASID in a socket is switched between 6581 and 8580 mode for each tune. On a 1541 Ultimate-II the tune plays on whatever SID the C64 has.