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


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

Registered: Mar 2019
Posts: 6
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: 2884
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: 1518
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: 944
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: 6
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: 33
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: 6
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: 6
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: 1518
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
TheRyk

Registered: Mar 2009
Posts: 944
@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
chuinho

Registered: Jul 2002
Posts: 416
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

https://codebase64.org/doku.php?id=base:sid_programming

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
Advanced
Users Online
O'Dog
Sentinel/Excess
zscs
Didi/Laxity
Ze Smasher/F4CG
Guests online: 254
Top Demos
1 Edge of Disgrace  (9.6)
2 Coma Light 13  (9.6)
3 Uncensored  (9.6)
4 Comaland 100%  (9.6)
5 Lunatico  (9.6)
6 Unboxed  (9.6)
7 Memento Mori  (9.5)
8 Christmas Megademo  (9.5)
9 Wonderland XII  (9.5)
10 The Shores of Reflec..  (9.5)
Top onefile Demos
1 Copper Booze  (9.8)
2 Daah, Those Acid Pil..  (9.5)
3 Lovecats  (9.5)
4 To Norah  (9.5)
5 Dawnfall V1.1  (9.5)
6 Elite Code Mechanics  (9.4)
7 Square Booze  (9.4)
8 Amber Cow - The Real..  (9.4)
9 Quadrants  (9.4)
10 Coma Job 2/3  (9.4)
Top Groups
1 Booze Design  (9.4)
2 Oxyron  (9.4)
3 Censor Design  (9.4)
4 PriorArt  (9.3)
5 Crest  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Acidchild  (9.7)
4 Violator  (9.6)
5 Starlight  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2021
Page generated in: 0.041 sec.