Language…
13 users online: abhinavkrishna123, buggy789, cardboardcell,  Fernap, fsvgm777, Heitor Porfirio, justdew78, kaigem, mmBeefStew, movax_13h, PastaNoSauce, slakkmichael, Zavok - Guests: 85 - Bots: 186
Users: 62,760 (2,525 active)
Latest user: BryonBristow

Flag Controlled Slower Music

UberASM Repository → Flag Controlled Slower Music

Submission Details

Name: Flag Controlled Slower Music
Author: Kevin
Added:
Type: Level, Game Mode
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This UberASM will make the music go slower when a certain flag is set, and go back to normal when it's reset. By default it uses the P-Balloon flag (like in SMA2), but you can change it to whatever you want (like ON/OFF switch, ...). Make sure to check the readme for instructions and info. It uses 1 byte of freeram.
Tags: lorom music sa-1
Comments: 7 (jump to comments)
Rating:
5.0 (1 rating)
No rating
Download 2.65 KiB | 158 downloads

Comments (7)

SJandCharlieTheCat Link
So I'm having a couple issues with this — which I suppose very well could be related to the fact that I've made the AMK edits + applied the patch included with the Music Playlist.

If not, though, here's what's happening:

I'm using the on/off switch as the flag; but when I hit the switch to go back to the normal tempo after the slowdown, it doesn't actually go back to normal, but is slower than usual. This effect is obviously exacerbated on further hits + reverts. [Edit: Should $0B be the reset counterpart of the slowdown value ($F4), instead of $0A?]

Also, for me the normal tempo wasn't being reverted on retry if you die when it's slow. (As a quick fix, I had added the normal tempo to load:)
Francium Link
In slowdown_tempo.txt, it says the following, which is incorrect.
Code
    mov a, #$F4 ; How much the tempo changes ($F4 = -$0A)

The correct value is $F4 = $-0C.
When restoring the tempo in reset_tempo.txt, $0A is being written, which is the cause of the slowdown.
As a countermeasure, rewrite line 5 of reset_tempo.txt as follows
Code
    mov a, #$0C ; Make sure this is the same as in slowdown_tempo (but positive)

Also, if you want to make it closer to SMA2, rewrite the fifth line of slowdown_tempo.txt and reset_tempo.txt as follows
slowdown_tempo.txt
Code
    mov a, #$FA ; How much the tempo changes ($FA = -$06)

reset_tempo.txt
Code
    mov a, #$06 ; Make sure this is the same as in slowdown_tempo (but positive)
 Kevin Author Link
Originally posted by Francium
In slowdown_tempo.txt, it says the following, which is incorrect.
Code
    mov a, #$F4 ; How much the tempo changes ($F4 = -$0A)

The correct value is $F4 = $-0C.

Oopsie
Anas Link
Originally posted by MarioFanGamer
Moderated with:
  • Lunar Magic v3.31
  • SA-1 Pack v1.40
  • UberASM v1.5
  • AddmusicK v1.0.8
  • BSNES v115
It would have been preferable if you could control the speed with $1DFA but since that one is hard to easily modify, a simple dummy sound effect is supplied instead.
It does come with some issues, such as how the music will be played at the wrong speed should either sound effect be skipped (such as entering a door) as the sound effect will also overwrite all existing sounds (e.g. a coin suddenly stops playing). But it is as good as it is, accepted.


I believe the issue with the sound being overwritten should be fixed with AMK 1.0.9's new SFX priority feature
 MarioFanGamer Link
Moderated with:
  • Lunar Magic v3.31
  • SA-1 Pack v1.40
  • UberASM v1.5
  • AddmusicK v1.0.8
  • BSNES v115
It would have been preferable if you could control the speed with $1DFA but since that one is hard to easily modify, a simple dummy sound effect is supplied instead.
It does come with some issues, such as how the music will be played at the wrong speed should either sound effect be skipped (such as entering a door) as the sound effect will also overwrite all existing sounds (e.g. a coin suddenly stops playing). But it is as good as it is, accepted.
Francium Link
I found one problem...after inserting this sfx into the hack, the tempo of the music suddenly speeds up in unrelated places, such as when using a door to move between rooms.
This may not be caused by this sfx, but it started happening right after I inserted it, so if you can fix it, please do.
Francium Link
Nice!
Thank you very much!