Convert Note Length from Dn-Famitracker to other formats
Moderator: Moderators
-
- Posts: 18
- Joined: Wed Jun 22, 2022 7:00 am
Convert Note Length from Dn-Famitracker to other formats
I'm working on a Hack ROM of a NES game with custom music.
A person is composing the songs for me on Dn-Famitracker and I am adapting the music to the game format.
However, I ran into a problem regarding note lengths.
How do I convert the Dn-famitracker note lengths to the format of the game I'm working on?
Excuse me, but I've never worked with this type of program before, so far I'm just seeing how it works.
A person is composing the songs for me on Dn-Famitracker and I am adapting the music to the game format.
However, I ran into a problem regarding note lengths.
How do I convert the Dn-famitracker note lengths to the format of the game I'm working on?
Excuse me, but I've never worked with this type of program before, so far I'm just seeing how it works.
- TakuikaNinja
- Posts: 38
- Joined: Mon Jan 09, 2023 6:42 pm
- Location: New Zealand
- Contact:
Re: Convert Note Length from Dn-Famitracker to other formats
That would depend on the sound driver you are using. Is it from the original game, or have you implemented some other sound driver?
-
- Posts: 18
- Joined: Wed Jun 22, 2022 7:00 am
Re: Convert Note Length from Dn-Famitracker to other formats
Yes, I'm using the original game's sound driver, and it has note length commands.TakuikaNinja wrote: ↑Fri Mar 17, 2023 7:54 pm That would depend on the sound driver you are using. Is it from the original game, or have you implemented some other sound driver?
- TakuikaNinja
- Posts: 38
- Joined: Mon Jan 09, 2023 6:42 pm
- Location: New Zealand
- Contact:
Re: Convert Note Length from Dn-Famitracker to other formats
Okay. Which game, then? Note length commands can be implemented in a few different ways. Ultimately, you need to have a good understanding of how this particular game handles them.
-
- Posts: 18
- Joined: Wed Jun 22, 2022 7:00 am
Re: Convert Note Length from Dn-Famitracker to other formats
I'm working on a Tetris NES Hack ROM, and it works with a sound engine that is also used in other games like Dr Mario and Mother 1.TakuikaNinja wrote: ↑Sat Mar 18, 2023 6:21 pm Okay. Which game, then? Note length commands can be implemented in a few different ways. Ultimately, you need to have a good understanding of how this particular game handles them.
This engine has very simple note length commands (Actually it's almost a single command)
It only consists of 1 byte:
Code: Select all
$BX ; (%1011XXXX)
This is easy to understand.
The problem is that, How are the note lengths in Dn-Famitracker?
And sorry, as I said at the beginning, I have never used both this program and the original Famitracker to compose before.
Last edited by arcangeldemerida on Sat Mar 18, 2023 7:04 pm, edited 1 time in total.
- TakuikaNinja
- Posts: 38
- Joined: Mon Jan 09, 2023 6:42 pm
- Location: New Zealand
- Contact:
Re: Convert Note Length from Dn-Famitracker to other formats
FamiTracker doesn't really have a notion of note lengths - the note keeps going until it encounters a new note. However, most sound drivers which convert from FT (possibly including the official NSF driver) tend to use the number of rows between notes as the note length.
So how does the Nintendo one (let's just call it that for now) measure note lengths, then?
So how does the Nintendo one (let's just call it that for now) measure note lengths, then?
-
- Posts: 18
- Joined: Wed Jun 22, 2022 7:00 am
Re: Convert Note Length from Dn-Famitracker to other formats
There if I don't know how to explain it well, but basically it is that byte in this following example:TakuikaNinja wrote: ↑Sat Mar 18, 2023 7:02 pm So how does the Nintendo one (let's just call it that for now) measure note lengths, then?
Code: Select all
$B1 ; $1 is the value of an eighth note.
A1 ; This is an A-1 note.
Here there is a notion of the duration of the notes.
- TakuikaNinja
- Posts: 38
- Joined: Mon Jan 09, 2023 6:42 pm
- Location: New Zealand
- Contact:
Re: Convert Note Length from Dn-Famitracker to other formats
I figured it would be something based on sheet music notation. That makes this a bit tricky. You basically need to determine the fraction of a bar (4 quavers in common time) the note takes up. Some proper documentation for the driver would help here.
Re: Convert Note Length from Dn-Famitracker to other formats
The documentation below says Tetris's music format is the same as Mother's music format but using different data tables.TakuikaNinja wrote: ↑Sat Mar 18, 2023 8:01 pmSome proper documentation for the driver would help here.
Tetris (NES) Music Format Addendum: GitHub, ROMhacking.net
Mother Music Format: GitHub, ROMhacking.net