Converting MOD
Re: Converting MOD
Aaah I remember trying to convert MOD to PSM and IT formats.. good times.
What you really need, not what you think you ought to want.
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Re: Converting Terminal Velocity Music
Some coding update i can so far extract data likeBatteryman wrote: ↑Tue Feb 14, 2017 18:56 I'm thinking of going a step up, i'm writing my own program to extract note data from MOD files,
Title name
Instrument Names
Instrument Sample Length ,
Instrument SampleLengthByte Pointer "This is useful for decode data after this pointer"
Instrument Sample Fine Tune , 4 Bit
Also it seems that MOD file use Motorola Byte , so i have to convert numbers too Intel Byte Order, to make anything useful,
That conversion is also ready.
I have too do a few stuff yet, in order to decode actually musical notes to midi tracks
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Re: Converting Terminal Velocity Music
Batteryman wrote: ↑Fri Feb 24, 2017 19:08Some coding update i can so far extract data likeBatteryman wrote: ↑Tue Feb 14, 2017 18:56 I'm thinking of going a step up, i'm writing my own program to extract note data from MOD files,
Title name
Instrument Names
Instrument Sample Length ,
Instrument SampleLengthByte Pointer "This is useful for decode data after this pointer"
Instrument Sample Fine Tune , 4 Bit
Also it seems that MOD file use Motorola Byte , so i have to convert numbers too Intel Byte Order, to make anything useful,
That conversion is also ready.
I have too do a few stuff yet, in order to decode actually musical notes to midi tracks
I'v been doing some more stuff on my App
You can see a screenshot as proof here :
https://goo.gl/RivXcl
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Programming my own Tool, if no one can, do it yourself..
I'v added Magic number identification and done finishing sample rate calculation
After 600 lines of codes
Now i can start to actually try too decode pattern and musical note data
i do also plan to add sample dumper, so you can store them to wav files with correct loop parameters
After 600 lines of codes
Now i can start to actually try too decode pattern and musical note data
i do also plan to add sample dumper, so you can store them to wav files with correct loop parameters
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Re: Programming my own Tool, if no one can, do it yourself..
I'v hit 1003 lines of codes, and a bunch of enum, if someone knows what that isBatteryman wrote: ↑Fri Mar 03, 2017 16:24 I'v added Magic number identification and done finishing sample rate calculation
After 600 lines of codes
Now i can start to actually try too decode pattern and musical note data
i do also plan to add sample dumper, so you can store them to wav files with correct loop parameters
At first my plan was to build a tool that work for Protracker, but i have made my code so it could extend to other formats.
But my goal stands still, that is a tool that preparing tracker music to be worked on in DAW, for remixing or converting with less pain
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Programming my own Tool, MOD music
1251 lines of codes, and a lot of declarations later:
I'v managed to implement a general way to decode Pro Tracker a.k.a mod
also all music data, such as period, effects and controls event is now converted to text
in this Example Format/Signature : Cb3 01 E1 9 C 00
This will allow a text interpreter like Regex / Regular expression,
to do nifty stuff since all events follows exactly 11 bytes.
I'v managed to implement a general way to decode Pro Tracker a.k.a mod
also all music data, such as period, effects and controls event is now converted to text
in this Example Format/Signature : Cb3 01 E1 9 C 00
This will allow a text interpreter like Regex / Regular expression,
to do nifty stuff since all events follows exactly 11 bytes.
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Programming my own Tool, Code cleaning
I'v been cleaning up my code to alot more structured code,
But i do have some more things to add before i could continue with the Music Data to any meaningful Midi like data
i has reached 1468 lines of codes as Visual Studio tells, so i have made progress.
And i will also add : This program i'm making wouldn't be any straight up script to do only Protracker 2 midi
its much more involved than that
But i do have some more things to add before i could continue with the Music Data to any meaningful Midi like data
i has reached 1468 lines of codes as Visual Studio tells, so i have made progress.
And i will also add : This program i'm making wouldn't be any straight up script to do only Protracker 2 midi
its much more involved than that
- keenmaster486
- Vorticon Elite
- Posts: 542
- Joined: Sun Mar 20, 2016 18:29
- Location: Tranquility Base
- Contact:
Re: Converting MOD
So are you actually trying to implement an algorithm that tries to guess from the waveform of a MOD instrument what instrument to choose in the resulting MIDI file?
I flermmed the plootash just like you asked.
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Re: Converting MOD
No this is the thing : But my goal stands still, that is a tool that preparing tracker music to be worked on in DAW, for remixing or converting with less painkeenmaster486 wrote: ↑Sun Apr 09, 2017 19:12 So are you actually trying to implement an algorithm that tries to guess from the waveform of a MOD instrument what instrument to choose in the resulting MIDI file?
The Problem with Protracker is that unlike Midi, Samples often share channels.
The classic ProTracker has only 4 channels, vs Midi has 16, so if you want to arrange ProTracker samples, into individual channels in your DAW
You have too, in most cases, pick them out, manually, and even then guess what Root note the same correspond to.
Even then, some Mods have beats pre recorded in the samples, witch mean you have too reconstruct Midi notes from the beats.
At least making a program to separate each sample/instrument to its individual midi track, is a much better step, than do it manually and use some
tools like Awave studio or MidiPlayer from Falcosoft to get a soundbank, because you really want to monitor the original samples when remixing or converting or making a different format from the ProTracker song.
P.S : i also think Falcosoft MidiPlayer , and Awave studio are excellent programs, but i wanted to build a program that can do some other needed tasks.
-
- Vortininja
- Posts: 48
- Joined: Sat Sep 14, 2013 9:52
Re: Converting MOD
I'v done some debugging after the code cleanup, since i actually encounter a problem if a mod file contain a empty instrument, witch made my program stuck in an infinity loop , only too finally figuring it out after a long debug session, that one line had an incorrect variable name , and that's very typical of me, doing one tiny little mistake that make it looks much worse.
Anyway, i think that's should make it ready to implement the Midi file specification and some meaningful conversion from my internal MOD to Text, to any useful Midi events
Anyway, i think that's should make it ready to implement the Midi file specification and some meaningful conversion from my internal MOD to Text, to any useful Midi events