how do i convert .mp3 to .mod (for maxmod)

Deleted member 591971

Well-Known Member
Member
Joined
Apr 10, 2022
Messages
216
Reaction score
174
Trophies
0
XP
922
althought i am a PA2lib dev i am still dumb enough to make this question lol

I wanted to put some music on my proyect, the problem is that maxmod only support mod/it/s3m and wad for sound effects. My music is mp3 (i can convert it to wav) but i can't find any converters for mp3 to mod (or even anything to mod)

If i use wav then maxmod will use it as a sound effect, not music

Does anybody know anything about what i should do?

Thanks
 
What made you think anything like this should be possible? .mp3 and .mod are two very different things. An MP3 (or a WAV) is a sound recording, but a MOD is basically a sequence of musical notes and a set of instrument samples that are played at different pitches.

In other words, it's like converting a JPG of someone's extremely messy handwriting into a Word document – you could maybe do it if you had an incredibly advanced AI, but it would be much easier to do it slowly and manually, piece by piece.
 
  • Like
Reactions: Pk11
You cannot convert an MP3 (or WAV) to a module as modules work in a fundamentally different way, they're sequenced audio akin to a MIDI file.

You've got two options to play WAVs with maxmod:
  1. playing as sound effects, good for short sounds but can run out of RAM quickly with longer songs
  2. streaming the audio from SD, this works better for long songs as you don't need to load the whole thing in memory. I think devkitPro's streaming example shows a very basic example, but just uses a sine wave(?) instead of actual music, to play a WAV like this you'd just need to read the data from SD in on_stream_request or something like that I think. TWiLight Menu++ streams music in this way in the DSi theme so could look into how it does it too
 
  • Like
Reactions: NotImpLife
MOD can use PCM samples so it should be doable. Unfortunately, there doesn't seem to be any app to convert from MP3/WAV/etc to MOD — just the other direction. The MOD format may have limitations on the sample size or file size that made it a moot effort to make a transcoder for it.
 
You cannot convert an MP3 (or WAV) to a module as modules work in a fundamentally different way, they're sequenced audio akin to a MIDI file.

You've got two options to play WAVs with maxmod:
  1. playing as sound effects, good for short sounds but can run out of RAM quickly with longer songs
  2. streaming the audio from SD, this works better for long songs as you don't need to load the whole thing in memory. I think devkitPro's streaming example shows a very basic example, but just uses a sine wave(?) instead of actual music, to play a WAV like this you'd just need to read the data from SD in on_stream_request or something like that I think. TWiLight Menu++ streams music in this way in the DSi theme so could look into how it does it too
can i use something like nitrofs for that?
 

Site & Scene News

Popular threads in this forum