loveemu / psf-drivers Goto Github PK
View Code? Open in Web Editor NEWDrivers for PSF (Portable Sound Format) ripping
License: GNU General Public License v3.0
Drivers for PSF (Portable Sound Format) ripping
License: GNU General Public License v3.0
Village BGM (7) slows down at the beginning.
I am 99% sure that this is a duplicate of issue #1. I will close this issue when I have made a proper patch for the game.
Some songs of Super Mario World SNSF has a slowdown at the beginning of song. They don't in usual gameplay, of course.
TL;DR: The problem is caused by octave calculation routine and uninitialized note number. Apparently, it can be fixed by patching the octave routine. Many SNES games based on N-SPC driver have the kind of the same problem.
N-SPC sequences, which enables vibrato at the beginning of song and starts with a "rest" event, may cause notable slowdown.
; Get pitch from note number in A (with octave correction) to YA
sub_getPitch:
mov y,#$00
asl a
mov x,#$18
div ya,x
mov x,a
mov a,$12da+y
mov $16,a
mov a,$12d9+y
bra loc_octaveLoop
loc_decOctave:
lsr $16
ror a
inc x
loc_octaveLoop:
cmp x,#$06
bne loc_decOctave ; Causes redundant repeat for unexpected note!
mov y,$16
ret
I can provide a simple workaround for this.
loc_octaveLoop:
cmp x,#$06
bcc loc_decOctave
; bne (d0h) ==> bcc (90h)
Pros
Cons
I would recommend to make a separate patch as the secondary snsflib, then let only the problematic minisnsf to load the patch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.