I would like to write a mod player for a device that has 32k memory and 2k ram. Is it possible? Can anyone point to source?
MOD Player
Miscellaneous Forums/General Discussion/MOD Player where are the modules going to go if there's only 2k RAM or is it going to be chip music?
The 32k is actually flash so that would have to hold the code as well as the song file, instuments etc...
wow, good luck. It should be possible as people wrote tunes for the C64!
Yes, I would try to port some c64 asm code. But hey, 34 KB for everything - that's hard. Especially the samples will be so small, maybe you better use chip tunes with simple amplitude envelopes.
I would like to write a mod player for a device that has 32k memory and 2k ram. Is it possible? Can anyone point to source?
Extremely unlikely within those constraints... but this is also terribly vague: since 32k/2k obviously isn't a PC, what kind of computer platform are we talking about?
Without even knowing the type of CPU architecture to have this 'source' for, one wouldn't even know where to start looking, not to mention what kind of sound capabilities such a device would have.
Also, are you referring to amiga modules, or any kind of tracked music? Considering that I don't even remember seeing any modules under 32KB, I really don't think one would be able to pull this off...
There are plenty of mods under 32k. Take a small chip tune : 1k for miscellaneous tiny looped samples, 1k for each block of song data (it's a bit over that, but...), say 4 blocks, 1k for miscellaneous header information (extremely generous)... 6k tune... leaves 24k for code, which is ample for any 4 channel format supported in it's entirety...
The platform is an embedded 4Mips 8 bit microprocessor with 32k flash and 2k ram programmed in C (ASM for optomization). I have it generating 8 bit and 16 bit audio at 4kHz, 8kHz and 16kHz.
>>maybe you better use chip tunes with simple amplitude envelopes.
That's where I'll probably end up.
>>maybe you better use chip tunes with simple amplitude envelopes.
That's where I'll probably end up.
They can be nice. I remember I did that for the Atari STs Soundchip, a 3 channel chip. I had a lot of instruments: drums, violin, distorted stuff, bass, even delay FX.
Then again, a tru MOD player would allow to load a MOD in a PC tracker, replace all samples with extremly small files and play the sounds on your chip. But maybe you could also write a converter that would comvert an ordinary .MOD to a special chiptune file, using the mentioned envelopes etc.
A further solution would be a midi player.
Then again, a tru MOD player would allow to load a MOD in a PC tracker, replace all samples with extremly small files and play the sounds on your chip. But maybe you could also write a converter that would comvert an ordinary .MOD to a special chiptune file, using the mentioned envelopes etc.
A further solution would be a midi player.