Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums

Forums > C64 Composing > Music Player Routine
2021-06-09 18:05

Registered: Mar 2019
Posts: 8
Music Player Routine

I literally have zero clue, how do I take my music file .prg and make it into a file that will load and run on a C64 or emulator?

PSID64 V1.2 was suggested to me but unfortunately the program will not open on my laptop (Windows 10 Pro).

I have some tunes to upload but don't want to have the MOD guys having to clear up after me every time.

I have no access to a real C64 but would use an emulator if needed.
... 2 posts hidden. Click here to view all posts....
2021-06-09 20:27
iAN CooG

Registered: May 2002
Posts: 2965
psid64 is a commandline program, you have to open cmd and run it from there. Don't expect some fancy windows mouse friendly program =)
once opened cmd, at commandline, assuming in c:\your_path\ you have psid64.exe and yourtune.sid, type
cd \your_path
psid64 yourtune.sid
Also, better use some filemanager like Far Manager or Total commander to navigate easily.
2021-06-09 20:44

Registered: Mar 2003
Posts: 1587
The SID Factory manual says you can export tunes directly to .sid.

Hit F6, then select "Pack", and then finally:

If you type a filename without an extension, it will actually save to a PRG file as the default. But if you want to save it as a SID file, you have to specify the .sid extension too. Now SID Factory II asks for the title, author and copyright strings, and then saves a SID file.
2021-06-09 20:46

Registered: Mar 2009
Posts: 1459
As you mentioned, you would use and emulator, of course you can also use PlayIt contained in PlayEm64 V1.2 Tools (and Music) Collection on an emulator.

rename your .SID file to .PRG drop it on a .D64 together with PlayIt, run PlayIt, rest is almost self-explaining (enter filename, enter Playing Time if you want). Rest is done by PlayIt and you find some FILENAME!EXE.prg on the image.

2021-06-09 20:52

Registered: Mar 2019
Posts: 8
Thanks for the input guys, I know I can export as a prg from SF2 but it is not executable. I'm looking again at psid and will Playem64 after that.. :)
2021-06-09 21:19

Registered: Jan 2019
Posts: 39
If you want to include a SID-File in your own programs, this Stackoverflow discussion might be helpful:

But the example there is missing switching the interrupt to 50 HZ VIC (on PAL), which will cause most tunes to play too fast.
2021-06-09 21:30

Registered: Mar 2019
Posts: 8
30 odd years ago, I could create a little player typing in hex in the machine code monitor... Can't even manage a cmd line now lol
2021-06-09 21:57

Registered: Mar 2019
Posts: 8
TheRyk, I got as far as creating a disc with both files on, opening Playit but the file does not load, or has an error / is incompatible. Does this work with Sid Factory 2 music? It's been exported as a prg....
2021-06-09 23:43

Registered: Mar 2003
Posts: 1587
Not sure, but I would guess that this program loads .sid files rather than .prg files (since the screenshot shows that it includes information about the author's name and so forth, which is precisely the kind of information that is included in .sid files). So, specify ".sid" when you export from sid factory and try that instead of your .prg file. It won't give you an executable sid tune file of course, but if your goal is to be able to play the tune on the real hardware or in an emulator, that shouldn't matter.
2021-06-10 00:58

Registered: Mar 2009
Posts: 1459
@TLF: just to make sure we're talking same shit,
source _WAS_ a .SID file - re-indexed to .PRG?
Then try shortening/truncating via [*] as in "FILENAM*"

If even creating .SID file is the issue, there is SID-Edit V4.02+

Anyway, contact me via PM if you feel dead end, then we'll definetely sort out what IS the problem

@Frantic: Thanks for reminding me the documentation's in need of work :)
2021-06-10 12:50
Hate Bush

Registered: Jul 2002
Posts: 437
Quote: 30 odd years ago, I could create a little player typing in hex in the machine code monitor... Can't even manage a cmd line now lol


you've got two examples of such tiny players here.
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Users Online
Guests online: 71
Top Demos
1 E2IRA  (9.7)
2 Edge of Disgrace  (9.6)
3 Coma Light 13  (9.6)
4 Uncensored  (9.6)
5 Comaland 100%  (9.6)
6 Bromance  (9.6)
7 Lunatico  (9.5)
8 Memento Mori  (9.5)
9 Wonderland XII  (9.5)
10 Median  (9.5)
Top onefile Demos
1 Copper Booze  (9.5)
2 Daah, Those Acid Pil..  (9.5)
3 Dawnfall V1.1  (9.5)
4 Cityscape 2730  (9.5)
5 Barry Boomer - Trapp..  (9.5)
6 Lovecats  (9.5)
7 Elite Code Mechanics  (9.5)
8 Square Booze  (9.5)
9 To Norah  (9.4)
10 Plasma Ninja  (9.4)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Crest  (9.3)
4 Censor Design  (9.2)
5 1001 Crew  (9.2)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Horizon  (9.9)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2022
Page generated in: 0.04 sec.