Mod-Files

Mod conversion and playing code is generated in vedi, using the popup on the project file tree. By chosing the entry "build vectrex mod" the dialog for mod generation is displayed. (see also the vedi→Mod-Conversion documentation)

The popup menu is only activated while a mod file is selected in the current project. You have to download or create mod files befor you can convert them. If you have a mod file available (e.g. in the following example in the codelib directory→lineart), you can easily add the file to your project. Place the mousecursor over the project name and press the right mouse button.



add a file to the project


Chose "add file"... and navigate in the resulting file choser to the mod file of your desire.



add a mod file


By chosing a file - the file is copied to the project directory and is NOW available.



build mod in vedi


Selecting "build vectrex mod" opens the mod - dialog: (which is explained in "Mod-Conversion")



build mod in vedi


Exiting the above dialog with "create source" will (...hm...) create sources in the current project directory.
(The name of the generated sources are derived from the chosen mod file. In the following it is assumed that the name given is "music.mod".)
The generated sources are accompanied by an example player program.

Following sources are generated:

A vectrex playable binary file can be generated by setting the generate musicMain file as the main file in the project.



set example player as main


The format and the actual play routines are documented in the source code.
Just a few bullet points...

Playing a mod
Is done exactly (with respecting above mentioned patterns...) like playing a vectrex song. The actual pointer to the current song (pattern) is kept in the (RAM) variable: plr_geilmusik. With that variable set to the right place, you call the new Init_Music_chk_mod befor your recalibration, and after the recalibration the BIOS Do_Sound function.

Done



the complete main, including the pattern -> song ordering




example of a generated data file