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 > Play a SID in ACME
2010-03-03 19:42
MisterMSK
Account closed

Registered: Jul 2009
Posts: 37
Play a SID in ACME

Hi All,

I wanted to first thank stranger so much for his help with adding a Koala picture into a program. It worked beautify. I am also interested into adding music to the program. I went to code base and they had two examples. I found a few SIDs using Pokefinder and made sure they had a start address of $1000. Anyway, when I tried them I got nothing coming from the good old commodore speakers. I loaded the SID up in a player and it played fine. Just curious if anyone here (which I know the answer to) :) has any experience with adding SID music to some assembler code and can point me into the right direction.

Thanks,
MisterMsk


 
... 20 posts hidden. Click here to view all posts....
 
2010-03-09 14:39
MisterMSK
Account closed

Registered: Jul 2009
Posts: 37
Quote: Use a hammer.


Nope. That didn't work. Anyone else know of a good music editor/creator that will create the SID files I would need to use with this code?
2010-03-09 14:49
GT
Account closed

Registered: Sep 2008
Posts: 308
Future Composer V1.0

btw: zoom.sid (mc hammer. You'd need 10 years to achive the same result).
2010-03-09 15:48
Frantic

Registered: Mar 2003
Posts: 1648
On C64, SDI seems quite popular in these days. On PC/Mac, Goattracker is the editor to use, I guess.
2010-07-16 13:04
MisterMSK
Account closed

Registered: Jul 2009
Posts: 37
Hi All,


One last thing. I got the below code embedded in some code. However, when I try to load another program it hangs the music and sometimes crashes. Just curious how I would turn the music off?

*=$0801
entry:
; BASIC stub: "1 SYS 2061"
!by $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00

             sei
             lda #<irq
             ldx #>irq
             sta $314
             stx $315
             lda #$1b
             ldx #$00
             ldy #$7f 
             sta $d011
             stx $d012
             sty $dc0d
             lda #$01
             sta $d01a
             sta $d019 ; ACK any raster IRQs
             lda #$00
             jsr $0A6F ;Initialize
             cli
hold         jmp $0DEE                     
irq
             lda #$01
             sta $d019 ; ACK any raster IRQs
             jsr $0AB4 ;Play
             jmp $ea31

*=$0DEE

rest of code...


      *=$0A6F
      !binary "sound.sid",, $7c+2 

2010-07-16 17:41
Frantic

Registered: Mar 2003
Posts: 1648
I am not quite sure what you are trying to do. You don't really give enough details. ...but it is clear that loading one program over the same memory range as another (while the other one is still running) will crash the previous program.
2010-07-16 18:27
MisterMSK
Account closed

Registered: Jul 2009
Posts: 37
The SID I have uses $0A6F to $0DED. So I actually built the code around the SID. Anyway, I am loading a program into higher memory. Then move it to lower memory from $0801. Then I run the program. All works fine without any problems. Even by loading the SID in place but commenting the above code.

So, I am just trying stop the SID from playing.
2010-07-16 19:27
iAN CooG

Registered: May 2002
Posts: 3197
just restore the irq to $ea31 and silence the sid but you should be really sure you don't load anything over the running code before doing so...
sei
jsr $fd15 ; of course if you don't have anything under $fd30-fd50 
lda #0
sta $d418
cli
rts

2010-07-21 18:04
MisterMSK
Account closed

Registered: Jul 2009
Posts: 37
Thank you. It works flawlessly with some tweaks.
Previous - 1 | 2 | 3 - 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
BYB/Hokuto Force
rexbeng
Da Snake
WVL/Xenon
camper
Chesser/Blazon
Rub_0201
Fred/Channel 4
Paul Bearer
blitzed
Guests online: 128
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

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