[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

apple II 8bit sound programmers



hi,

the level sequencer of my game allows you to specify:
0)time enemy appears
1)type of enemy
2)speed of enemy
3)location of enemy

the code would work perfect for adding a sound routine
(1bit speaker sound)...

I would need 1) a song ---in  a format similar to this:

time=0  note = 4
time=1  note = 3
time=2  note = 2
time=3  note = 3
time=4  note = 4
time=5  note = 4
time=6  note = 4

can anyone name that tune?  :-)

and a small routine to play the note

ldy duration          ;duration is fixed in this example
  loop0
    lda speaker

    ldx note,time        ;  note = frequency of sound to play
    loop
    dex                      ;
    bne loop              ;

dey
bne loop0


anyone interested in writing a simple tune for an
arcade game?

would be neat to have "I shot the sherrif" playing through
the speaker as you shoot enemies :-)

Rich