Login
Forum Help



Post Your Message
="hidden" name="cat" value="Programming">
Username: (Login)

Topic:
Message:
 


Previous Messages
Posted By

Exin
on 2019-11-18
09:09:55
 Re: Question: How to play SID Music for my next project

I think he meant SYS 8192.

Posted By

MMS
on 2019-11-17
19:01:58
 Re: Question: How to play SID Music for my next project

Thank you for the details.
It is a great help for the start.
Remark: of we set in Basic gfx Mode, then the machine reallocate the start of the Basic to $4000, so the sid player (of the music data is not too long) may even not collide with Basic code. (That small routine can be entered as data sequence into memory or load Directly to the address. happy

Sys 8192

Posted By

George
on 2019-11-17
10:37:13
 Re: Question: How to play SID Music for my next project

I got my first success and my first assembly programm running!

I load SID File to $1000 (no header, converted to plus/4 with SIDToPlus/4)

A 2000 SEI
A 2001 LDA #$00
A 2003 JSR $1000
A 2006 LDA #$64
A 2008 CMP $FF1D
A 200B BNE $2008
A 200D JSR $1003
A 2010 JMP $2006

SYS 80192

Thank you to all!

Edit:
A remake of the Black Belt screen with SID-tune.

Black Belt


Posted By

gerliczer
on 2019-11-16
11:31:44
 Re: Question: How to play SID Music for my next project

I'm not sure either. I think, you should load the music file to its proper place in memory, put the start address into $2B/$2C, the address of the end (of file or player code? who knows?) into $2D/$2E and start the conversion at $0CA5. It will ask which is the destination address of the SID chip in the machine to translate the register accesses and does an automatic modification on the routine. I'm not convinced that it surely will be able to translate every music file successfully but it must work properly on a lot of them, otherwise this tool wouldn't exist.

Posted By

George
on 2019-11-16
10:44:54
 Re: Question: How to play SID Music for my next project

Hi gerliczer,

i found this tool here Sid Converter, but i have no idea how to use it.

I will continue my researches...any help is useful, because i don't want to reinvent the wheel.

Posted By

gerliczer
on 2019-11-16
06:07:34
 Re: Question: How to play SID Music for my next project

Yes George, the basics should be the same. You trigger some interrupt at or wait in busy loop until the same point in a frame, in most of the cases, and call the player routine.

IDK what kind or tools you are trying to use, but those are most probably for relocating a waveform or frequency converter instead of a SID music player routine. Actually, this latter is not something that any automated tool would do well, IMHO. Your best choice is analysing and understanding the player in a Monitor program and find the locations where you have to make changes.

Posted By

George
on 2019-11-16
05:37:47
 Re: Question: How to play SID Music for my next project

gerliczer Thank you for your hint..i gave it try, but i have no motivation to understand it. Thank you for your help.

Edit: I figured out how to play SID-files on a C64. I guess the programing on a plus/4 is the same. On our System we have to rematch the base D400 registers.There some tools here which do this but i couldnt get them working or understand how to use.
How do i use them? Second question: Can this be done with a simple Hex editor?

Posted By

MMS
on 2019-11-11
16:15:16
 Re: Question: How to play SID Music for my next project

yeah! grin

We have one from IstvanV, but it does not play music, and I am too lame to program it with eg. Bitfire.
(playing music with a fastloader is a challenge, not to mention the decompression of compressed HFLIs)

Not everyone is a multitalent, haha!

Posted By

Chronos
on 2019-11-11
06:47:39
 Re: Question: How to play SID Music for my next project

it sounds like the scene needs a "picture show construction kit"

Posted By

gerliczer
on 2019-11-11
00:18:58
 Re: Question: How to play SID Music for my next project

What about CIA? Only its timer is used for playing music if anything at all. There are timers in TED, too. So?

Posted By

MMS
on 2019-11-10
14:16:26
 Re: Question: How to play SID Music for my next project

I am also interested, as my slideshows were just too silent in the last years, and worth to improve this weakness happy
AFAIK you need to modify the SID music player routine code at $1003 (onwards) from $D40X to $FD4x to able to address the Plus/4 SID card, right?
What if I modify my SID card to be at $D400 (it is possible to set with NST card), then I suppose the SID payer routine works perfectly on Plus/4 without modifications. Or? What about the C64 CIA?

Posted By

gerliczer
on 2019-11-09
19:49:07
 Re: Question: How to play SID Music for my next project

Maybe you should check the Bitfire+4 code repsitory at https://github.com/dotscha/bitfire. The example looks to be a slide show at a cursory glance.

Posted By

George
on 2019-11-09
19:01:32
 Re: Question: How to play SID Music for my next project

Hi gerliczer,

Thank you for the response.

Its for a real SID-card and sid-files will be used.

The idea is a pictrue slideshow with background music.
A player is loaded, which plays the music in the background (interrupts?) and a loader in the foreground loads HiRes files (slideshow) (memory or disk).

Basic would be cool, but i would also give assembler a try this time.

Posted By

gerliczer
on 2019-11-09
18:42:08
 Re: Question: How to play SID Music for my next project

Hi George,

You should be a little more specific about what you need. Will this project be programmed in BASIC or assembly? Or in some other language? What kind of replay are you aiming for? SID-card, Wave-converter, Freq-converter? Is your goal a single-file programme or you want a multi-file one?

Posted By

George
on 2019-11-09
17:20:29
 Question: How to play SID Music for my next project

Hi friends,

i want to play background SID-music for my next slideshow.
Are there any software existing for that or does anybody share some code to show how do this?

Thank you in advance.

Greetings George


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon