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
TLF

Registered: Mar 2019
Posts: 9
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.
2021-06-09 18:16
Frantic

Registered: Mar 2003
Posts: 1627
What program do you use to produce the music files in the first place?
2021-06-09 20:25
TLF

Registered: Mar 2019
Posts: 9
Sid Factory 2
2021-06-09 20:27
iAN CooG

Registered: May 2002
Posts: 3132
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
Frantic

Registered: Mar 2003
Posts: 1627
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
TheRyk

Registered: Mar 2009
Posts: 2069
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.

[/endofcommercial]
2021-06-09 20:52
TLF

Registered: Mar 2019
Posts: 9
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
wil

Registered: Jan 2019
Posts: 42
If you want to include a SID-File in your own programs, this Stackoverflow discussion might be helpful:
https://stackoverflow.com/questions/40950140/how-to-include-a-s..

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
TLF

Registered: Mar 2019
Posts: 9
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
TLF

Registered: Mar 2019
Posts: 9
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
Frantic

Registered: Mar 2003
Posts: 1627
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.
 
... 2 posts hidden. Click here to view all posts....
 
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
Advanced
Users Online
Scrap/Genesis Project
Menace/Spaceballs
mutetus/Ald ^ Ons
jmin
Erhan/Nostalgia
Krill/Plush
Guests online: 71
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.047 sec.