Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari demoscene BBS
 
Re: musicmon 50hz help
Posted by: ggn Dec,04.2012-12:36 

Salut Orion,

> Also, I don't really know what arguments to pass to the init function of musicmon which ask for Timer use (ABCD)

Which version of MusicMon are you using? The latest (v2.5, which can be downloaded from this site) has a function for selecting timers:

INIT1 call (Base+4) now expects a so called 'Timer-Use-Mask' by that
you can control which timers the routine allocates for playing Digis
and SIDs. The specified timers are assigned dynamically to the channels
as needed.


and inside the replay init routine you can find the following:

lea modul(PC),A0
move.w #%1011,D0 ; Timer A,B,D duerfen fuer SIDs, etc. verwendet werden
bsr routine+4 ; * INIT 1 *

So I guess it's safe to assume that if you use a tune that has 2 SID voices you can use %0011 as a mask to enable timers C and D.

As for the 200hz vs 50hz replay... the manual for v2.5 also mentions these routines:

; IV. routbase+12 SOUND, actual replay routine for modules without sounds
; with 100 oder 200Hz
; Call with 50Hz !!!
; ------------------------------------------------------------------------------
; V. routbase+16 SOUND2, also actual replay routine, but for modules
; using sounds with 100 or 200Hz
; Call with 200Hz !!!


Which means that in your case you should jsr routbase+12 inside your vbl routine.

Since you're also busting borders you might want to try it without that first to see if it works, because there is a chance of the player taking too much cpu time for the timer A to kick in reliable to kill the upper border (although in theory, the MFP interrupts have higher priority than the VBL).



Hope any of this helps :)







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
musicmon 50hz help cerror Dec,04.2012-00:04
  Re: musicmon 50hz help ggn Dec,04.2012-00:17
    Re: musicmon 50hz help 505 Dec,04.2012-00:41
      Re: musicmon 50hz help cerror Dec,04.2012-00:54
        Re: musicmon 50hz help cerror Dec,04.2012-01:03
    Re: musicmon 50hz help Orion_ Dec,04.2012-12:12
      Re: musicmon 50hz help ggn Dec,04.2012-12:36
        Re: musicmon 50hz help Orion_ Dec,04.2012-21:27
          Re: musicmon 50hz help Orion_ Dec,04.2012-21:29
      Re: musicmon 50hz help evil Dec,04.2012-22:15
        Re: musicmon 50hz help Orion_ Dec,04.2012-22:33


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson