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 Coding > Adding SID Music to Compiled Basic
2019-09-04 16:06
MrElijahGardner
Account closed

Registered: Jul 2019
Posts: 7
Adding SID Music to Compiled Basic

I'm working on a new game. Here is an older video clip as the game has progressed quite a bit since then.
https://youtube.com/watch?v=o9wBsf8FM88

It is written in basic and then compiled. How can I go about adding Sid Music to it? Any suggestions?

Thanks in Advance
 
... 10 posts hidden. Click here to view all posts....
 
2019-09-04 19:50
4mat

Registered: May 2010
Posts: 63
Long while back I remember using Music Assembler for a few compiled basic things. Calling the save address automatically sets up an IRQ routine for you and plays the track.

Music-Assembler V1.0

But yeah better to have your own routine so you can set up different tracks and manually control them.
2019-09-04 20:07
MrElijahGardner
Account closed

Registered: Jul 2019
Posts: 7
Still trying to figure out music assembler but I think that is the easiest way to achieve the result I need. I tested it with some of the tracks on the disk and it does exactly what I need as long as it gives me some flexibility on the memory addresses.

I was getting ready to go play on the train tracks. THANK YOU
2019-09-04 21:30
TWW

Registered: Jul 2009
Posts: 541
Quote: Long while back I remember using Music Assembler for a few compiled basic things. Calling the save address automatically sets up an IRQ routine for you and plays the track.

Music-Assembler V1.0

But yeah better to have your own routine so you can set up different tracks and manually control them.


Ok, I wrote a small IRQ routine which will play music while in Basic. The source and the actual machine code is shown below. You have to poke in the data to some address ($c000`perhaps) and update the 0314/0315 pointers and also change the music init and play jsr's.

Then you call the routine by sys 49152 or whatever it was $c000 was decimal.




EDIT: haha I quot'ed the wrong post, sorry.
2019-09-04 22:46
MrElijahGardner
Account closed

Registered: Jul 2019
Posts: 7
Thank you,

I'm getting it to work now (-:
2019-09-05 08:47
Count Zero

Registered: Jan 2003
Posts: 1825
<offtopic>
This is Lemon talk.
</offtopic>
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
t0m3000/ibex-crew
Fungus/Nostalgia
Oswald/Resource
celticdesign/G★P/M..
Viti/Hokuto Force
Knut Clausen/SHAPE/F..
syntaxerror
E$G/hOKUtO fOrcE
wil
Adder/Triad
Guests online: 158
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 Memento Mori  (9.6)
10 Bromance  (9.5)
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 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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