pouët.net

Amiga Music Disk Maker v1.0

category: code [glöplog]
 
Amiga Music Disk Maker v1.0 by Hugh Jass of Salami Inc. 2017
Usage: amdm [-options] modules
------------
-fc --- floppy count, default 1
-l ---- list file. Instead of typing the modules to pack type a name of a text
file that has a list. Useful with ls *.mod > list.txt
-o ---- output file. default is amdmX, where X is a number of the floppy
-k ---- no 'add21k'. 'add21k' is a small program that will recude colors and
add extra 21kb of chip mem. With this option it won't be used
-p ---- no playlist. With this option the playlist won't be generated, you will
have to add the modules to the playlist manually.

This program uses:
ADFlib https://github.com/lclevy/ADFlib
LHa https://github.com/jca02266/lha

Hello. I wrote this small program that will generate an adf file with a player and your selection of mods and play then one after another. I had this idea in my head for a long time, there's loads of great music disks for the Amiga, but all of them (let me know if I'm wrong) play the same module in a loop till you change it manualy. I wanted an automatic playback.

I'm not an Amiga coder (yet hehe) so this is a rather lame implementation of this idea, but it works reasonably well. It uses HippoPlayer and LHA. Both programs + required library and "Run", "Delete" and "Assign" commands from Workbench are packed into self extracting LHA archive, get extracted to ram disk, Hippo Player is then launched and all uneeded files are deleted from the ram disk.

This program can generate more than one floppy image. If you use 2 or more floppies, the first floppy will get the player files, while the rest will only get the modules. All floppy images have a different label and the HippoPlayer will load the right module from the right floppy. Works best if you have 2 floppies and 2 floppy drives, you can fit about 1 hour of music.

There are some limitations that I couldn't get around....
You can only play modules that are about 250kb in size. I think it's because first the packed file needs to be loaded, then extracted and only then HippoPlayer can parse the file and copy it to the chip memory... that's only my guess.
Another problem is that HippoPlayer doesn't seem to have any playlist file. You can run the player and add some songs to it from the CLI, like hip.exe song1.mod song2.mod song3.mod song4.mod etc...
But you can only add 16 files with this method, usually less than that, because the command lenght is limited. You can add more files with additional commands, it won't launch a second instance of the player (and that's what is happening here), but it will automatically start loading the first file, so what happens is, it adds let's say 5 modules, loads the first one and when it is loaded it adds another 5, start loading the first one from the new 5 modules..... that sucks, I wanted 100% Just-Put-It-In-And-Let-It-Play thing, but this breaks it. I recommend using the -p option to not generate the startup script that will do that, instead it will load all modules to directory called "m" and just run empty Hip, you can then easelly add the whole directory to the playlist.

I'm giving you a link to the download of windows 32bit version for now. It will work on linux with wine too. I will include the source code soon, I want to automate the compile process before I do that (my code is fine, but I had to hack around the "LHA for UNIX" to make it into shared library and work under windows too... I hope you like it and get some use out of it :) - Hugh Jass

Video presentation : https://youtu.be/AHT4grPSDZ8
Download :
https://mega.nz/#!L0B1GDQY!qWBPIFmVNgVFSFRHExtfC5Vu-0IJcBIGNAWRz1VN9DU
added on the 2017-11-05 17:48:16 by Golara Golara
Somehow the video i posted above is in very low resolution, here's better quallity.

https://youtu.be/-vpNxCdB_0M
added on the 2017-11-05 18:27:15 by Golara Golara

login