Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > Is it possible to extract instruments from nsf? Owner: xolroc New post
Page 1 of 1 Sort:  
Is it possible to extract instruments from nsf? Posted: 2010-08-02 19:22 Reply | Quote
xolroc

Avatar

Member for: 4373 days
Location: Here
Status: Offline

#8283
Exactly what the title says.

_______________________
If there is evil in this world, it lurks in the hearts of man.
--Trinicus D. Morrison

The Final Fantasy IX 8-bit project: 3 complete
http://famitracker.shoodot.net/forum/posts.php?id=1624
Posted: 2010-08-02 19:32  (Last Edited: 2010-08-02 19:32) Reply | Quote
Delek

Avatar

Member for: 4343 days
Status: Offline

#8285
I think that is impossible. The NSFs are compiled 6502 commands.

Posted: 2010-08-02 19:34 Reply | Quote
Rushjet1
Moderator

Avatar

Member for: 5012 days
Location: Atlanta, GA
Status: Offline

#8286
Well, you could make instruments based on what the commands are doing, but they may not actually correspond to the instruments originally used--for example, if I did everything manually (no instruments), if you were to make instruments based on my song, you may end up with a TON of them simulating volume changes. Hell, even if you have instruments in your song but change volumes on them, that'd create additional ones, unless your conversion program is really smart.

Posted: 2010-08-02 19:43 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#8287
Maybe some day there is a method, but even so each instrument contains two part: Sustain, Release. Some kind of computing might be able to identify identical notes, but the Release part will still be very likely to screw up.

Certain games also do volumes frame by frame. Sometimes you have a really long instrument with volume envelopes containing very few adjustments and a long string of arpeggio envelopes.

On top of that, early games usually use some sort of hardware fade-out (e.g. Donkey Kong). Extraction of such instru- No, hardware fade-outs are not instruments.

That said, it would be good if extraction of instruments is possible in the future so that people no longer have to go with the complicated way.

Posted: 2010-08-03 00:51 Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#8304
However, that would require a ton of work. And besides what you said about hardware sweeps, there's also another problem I foresee.

We already have FamiTracker with its ability to compile the instruments' MML & tracker's notes into 6502 ASM code, but disassembling the ASM code & decompiling it into the necessary MML & notes is a whole different story.

It's like trying to decompile a program into its original C++ source; the smaller the program, the more accurate the result. If the program is fairly complex, the chances of your decompiling it into its original C++ source is slim (resulting in several syntax errors). The same goes for FamiTracker (which I consider as an IDE with its own high-level programming language).

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Page 1 of 1 Sort: