THK music file

GFA, ASM, STOS, ...

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

rockyone
Captain Atari
Captain Atari
Posts: 419
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

THK music file

Postby rockyone » Fri Jul 13, 2018 7:01 pm

In high resolution, the pace is faster
How to change it?

User avatar
Showaddywaddy
Atari Super Hero
Atari Super Hero
Posts: 670
Joined: Thu Jun 06, 2002 12:01 pm
Location: Montreal, Quebec
Contact:

Re: THK music file

Postby Showaddywaddy » Fri Jul 13, 2018 10:49 pm

The megatizer tune will be running on the vertical blank.

You need to use the MFP instead.

rockyone
Captain Atari
Captain Atari
Posts: 419
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: THK music file

Postby rockyone » Fri Jul 13, 2018 11:53 pm

Showaddywaddy wrote:The megatizer tune will be running on the vertical blank. .

ok but I thought it was possible to edit for high resolution

Showaddywaddy wrote:You need to use the MFP instead.

With the MFP, I do not know how to do it!

User avatar
ggn
Atari God
Atari God
Posts: 1198
Joined: Sat Dec 28, 2002 4:49 pm

Re: THK music file

Postby ggn » Sat Jul 14, 2018 8:28 am

rockyone wrote:With the MFP, I do not know how to do it!


Here's a small snippet that illustrates how to do it:

Code: Select all

;
; setup music
;
                move    SR,-(SP)
                move    #$2700,SR
                move.l  $0114.w,oldtimer
                move.l  $0114.w,zakjump+2
                move.l  #zaktimer,$0114.w
                moveq   #1,D0   ;setup music player here if needed
                jsr     music     
                move    (SP)+,SR

...
...
...

musicfreq       EQU 50

zaktimer:       subi.w  #musicfreq,tic
                bgt.s   zakjump
                addi.w  #200,tic

                movem.l D0-A6,-(SP)
                move    SR,-(SP)
                move    #$2300,SR
                jsr     music+8   ;jump to music VBL routine
                move    (SP)+,SR
                movem.l (SP)+,D0-A6
zakjump:        move.l  #'T_C!',-(SP)
                rts

tic:            DC.W 200
oldtimer      ds.l 1


Just change 'musicfreq' to the tune's frequency and you're good to go
is 73 Falcon patched atari games enough ? ^^


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 3 guests