Mod Archive Forums

Music Production => NitroTracker => Tracking => NitroTracker Community => Topic started by: pailes on June 24, 2008, 08:40:52

Title: Open Source!1!11!
Post by: pailes on June 24, 2008, 08:40:52
Why isn't NitroTracker FREE SOFTWARE????

GO GPL!!!

... Just kidding folks ;)
Title: Re: Open Source!1!11!
Post by: unloopy on June 26, 2008, 01:48:16
Why isn't NitroTracker FREE SOFTWARE????

GO GPL!!!

... Just kidding folks ;)

It took milky a good old while! :)

Title: Re: Open Source!1!11!
Post by: raina on June 26, 2008, 11:13:30
And what is different now?
Title: Re: Open Source!1!11!
Post by: m0d on June 26, 2008, 11:37:52
Someone can
And what is different now?

We can now finally put comments like "urmom" in the source code...

:D

Um. Ok, I'll get my coat.
Title: Re: Open Source!1!11!
Post by: 0xtob on June 29, 2008, 13:16:21
palies: NitroTracker will be open source! It's still closed because the source is a little messy and I need to clean it up.
Maybe that's also the reason why Milky was closed until recently :)
Title: Re: Open Source!1!11!
Post by: pailes on July 13, 2008, 00:36:58
palies: NitroTracker will be open source! It's still closed because the source is a little messy and I need to clean it up.
Maybe that's also the reason why Milky was closed until recently :)

At some point I realized that there is a lot of really bad code out there ;)
Title: Re: Open Source!1!11!
Post by: socket on July 19, 2008, 20:04:19
Bad code?  If you're a programmer and you write good code there's something wrong with you.   ;)
Title: Re: Open Source!1!11!
Post by: ljdp on April 15, 2009, 23:46:58
Does Nitrotracker use Maxmod or the simple sound engine? I'd really like to see how you load and edit samples.
Title: Re: Open Source!1!11!
Post by: Synthesis on April 16, 2009, 01:45:32
I think it's based on libnds, and coded for both ARM7 and ARM9 (with two separate source-codes, just like for the Sampling Keyboard). Am I right, Tob?
Title: Re: Open Source!1!11!
Post by: ljdp on April 16, 2009, 08:19:47
Yes, I know. But libnds has two sound api's; simple sound engine and maxmod.
http://libnds.devkitpro.org/

Title: Re: Open Source!1!11!
Post by: Synthesis on April 17, 2009, 21:17:28
Nope. Maxmod is an external library (maybe based on libnds, dunno), and the simple sound engine functions (soundPlayNoise, soundPlaySample, etc.) are made to be called from the ARM9 code.

Also, these two APIs have only been included in version 1.3.1.

I'm pretty sure Tob didn't use any of these functions, but he used the ARM7 macros of the previous libnds versions (lower-level, probably faster).

A sample code looks like:
Code: [Select]
SCHANNEL_TIMER(0) = SOUND_FREQ(22050);
SCHANNEL_SOURCE(0) = (uint32)sample;
SCHANNEL_LENGTH(0) = ((int)sample_end - (int)sample) >> 2;
SCHANNEL_CR(0) = SCHANNEL_ENABLE | SOUND_ONE_SHOT | SOUND_8BIT | SOUND_VOL(0x3F);

Immediately after the values are changed in the registry of channel 0, the sound starts to be played.