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.
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.
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.
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.
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.
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.
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.
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.
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.
1541U-II/II+, Ultimate 64, C64 Ultimate. The client is a Retro Replay cartridge image that the Ultimate starts like any cartridge.
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.
netsid.crt on the USB stick or SD card,
or send it over the network with the Ultimate's FTP or web interface.netsid.crt in the Ultimate's file browser and choose Run cart.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.
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 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.
| SPACE | Skip 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) |
| R | Repeat: the tune plays on past its end, the clock in green, until you move on (on-demand playlists only) |
| RUN/STOP | Pause the tune, and press again to play on (on-demand playlists only) |
| M | Back to the playlist menu |
| RETURN | Start a chat line. RETURN sends it, RUN/STOP cancels. |
| F | Add the tune to your favourites. Press it again to remove it. |
| F3 | Search the HVSC (see below) |
| F1 | Switch 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. |
| F5 | The tune's STIL entry and back (see below) |
| F7 | Your settings and back (see 5. Settings) |
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.
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.
hubbard. Press a number or letter to play one.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.
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.
shuffle my playlist, shuffle my favourites | Play your own lists in random order |
switch sid per tune | Ultimate 64 and C64 Ultimate: give each tune the SID chip it was written for |
sid socket 1 has, sid socket 2 has | Ultimate 64 and C64 Ultimate: what sits in each SID socket: none, 6581, 8580, pdsid, armsid or fpgasid |
unknown sid model plays as | Ultimate 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) |
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.
| SPACE | Next 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) |
| R | Repeat on/off: the tune doesn't end at its time (not on live stations; build 159 on) |
| RUN/STOP | Pause, and play on (not on live stations) |
| M | Playlist menu |
| F | Add to favourites, or remove |
| F1 | Tune info in the chat area, and back |
| F3 | Search the HVSC |
| F5 | The tune's STIL entry, and back |
| F7 | Your settings (on an Ultimate 64 also the SID switch), and back |
| RETURN | Write a chat line |
| 1-9 A-Z | Pick a playlist, or a tune from a search |
| F3 | Search the HVSC |
| F7 SPACE | Next 19 tunes |
| F1 | The 19 before |
| + | Put the whole result on your playlist and play it |
| RETURN | Send |
| DEL | Delete the last character |
| RUN/STOP | Cancel |
/find words | Search, as with F3. The result is added to the menu. |
/fav | Same as F |
/stil | The tune's STIL entry as chat lines |
/add | Put the last search on my playlist |
/clear | Empty my playlist |
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.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.
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.
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.
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.
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.
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.
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.
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.
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.