|
Atari coding BBS
Re: non 50Hz sndh replay question |
Posted by: Bod/STAX
|
Jun,29.2014-17:22
|
Timer C is always called 200 times a second and this can't be changed. So if you wanted to replay a tune at 60hz off timer c you would do the following:
TimerC
subq.w #1,count
cmp.s #0,count
bpl.s skip
move.w #3,count
; don't forget to store/restore regs
bsr play
skip rte
3 is put into count as 200 divides into 60 by 3 (It's actually 3.3). If you wanted to play some music at 50hz you would put 4 into count.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
non 50Hz sndh replay question
|
mkm/lms
|
Jun,27.2014-14:10
|
Re: non 50Hz sndh replay question
|
Bod/STAX
|
Jun,28.2014-08:01
|
Re: non 50Hz sndh replay question
|
mkm/lms
|
Jun,28.2014-11:35
|
Re: non 50Hz sndh replay question
|
gwEm
|
Jun,28.2014-14:14
|
Re: non 50Hz sndh replay question
|
mkm/lms
|
Jun,29.2014-12:46
|
Re: non 50Hz sndh replay question
|
Bod/STAX
|
Jun,29.2014-17:22
|
Re: non 50Hz sndh replay question
|
mkm/lms
|
Jun,29.2014-20:59
|
Re: non 50Hz sndh replay question
|
evil
|
Jun,29.2014-21:37
|
Re: non 50Hz sndh replay question
|
gwEm
|
Jul,02.2014-12:51
|
Re: non 50Hz sndh replay question
|
ggn
|
Jul,02.2014-13:14
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|