Jump to content
IGNORED

A2600 Music


Der Luchs

Recommended Posts

Please explain how it works in VisualbB

Like in this one:

8,4,23
0,0,0
9
2,4,23
0,0,0
8
8,4,21
0,0,0
6
8,4,19
0,0,0
6
8,4,17
0,0,0
6

8,4,23
0,0,0
9
2,4,23
0,0,0
8
8,4,21
0,0,0
6
8,4,19
0,0,0
6
8,4,17
0,0,0
6

How to Loop the first part 1x and the second one 2 times?

I don't think I have to write:

LSR
8,4,23
0,0,0
9
2,4,23
0,0,0
8
8,4,21
0,0,0
6
8,4,19
0,0,0
6
8,4,17
0,0,0
6
LSR
LSR
8,4,23
0,0,0
9
2,4,23
0,0,0
8
8,4,21
0,0,0
6
8,4,19
0,0,0
6
8,4,17
0,0,0
6
LSR

Link to comment
Share on other sites

VisualbB has a music engine template that you "graft" onto your BASIC game code. What you're playing with there is the raw DATA statements that the VisualbB sound editor produces. So, inserting assembly directy into the DATA statements wont work the way you think. You would actually have to enhance the music engine template that VisualbB uses to handle loops and such.

Link to comment
Share on other sites

Ok here's the code I'm using to play the song. It sounds like music but it doesn't sound like the scary theme you started the thread with. The song you listed is the same as the one you played in the first sample?

 

DEC duration
bne GotMusic
ldx musicData
lda musicData_begin,x
inc musicData
inx
STA AUDV0
lda musicData_begin,x
inc musicData
inx
STA AUDC0
lda musicData_begin,x
inc musicData
inx
STA AUDF0

skipL052


lda musicData_begin,x
inc musicData
inx
STA AUDV1
lda musicData_begin,x
inc musicData
inx
STA AUDC1
lda musicData_begin,x
inc musicData
inx
STA AUDF1


lda musicData_begin,x
inc musicData
inx
STA duration

GotMusic

lda musicData_begin,x
cmp #255
bne resetx
lda #0
sta musicData
resetx
musicData_begin
 .byte	  8,4,23
 .byte	  0,0,0
 .byte	  15
 .byte	  2,4,23
 .byte	  0,0,0
 .byte	  8
 .byte	  8,4,26
 .byte	  0,0,0
 .byte	  11
 .byte	  8,4,23
 .byte	  0,0,0
 .byte	  11
 .byte	  8,4,21
 .byte	  0,0,0
 .byte	  9
 .byte	  2,4,21
 .byte	  0,0,0
 .byte	  8
 .byte	  8,4,23
 .byte	  0,0,0
 .byte	  9
 .byte	  2,4,23
 .byte	  0,0,0
 .byte	  8
 .byte	  8,4,26
 .byte	  0,0,0
 .byte	  11
 .byte	  8,4,29
 .byte	  0,0,0
 .byte	  9
 .byte	  2,4,29
 .byte	  0,0,0
 .byte	  8

.byte  255

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...