[Googie] Tcl extension which provides support for music modules under Tcl. Music modules are usually files with extensions *.mod, *.s3m, *.it, *.xm but also many others. ---- Full manual page is placed here: http://scripts.one.pl/tclmod/docs/Tclmod.html Homepage of extension is: http://scripts.one.pl/tclmod/ The extension requires libmikmod - [http://mikmod.raphnet.net]. It's quiet popular on most systems. Check if you haven't it yet, befor you install it. ---- Some examples. Simply playing modules is pretty easy: package require Tclmod set mod [::tclmod::player load music.mod] ::tclmod::player start $mod and here is little more advanced code, which builds simple GUI module player: package require Tk package require Tclmod wm title . "Modules player" entry .module -textvariable mod -width 50 -state disabled -bd 1 button .browse -text "Browse" -bd 1 -command { set types { {{Module} {.mod .s3m .xm .it .669 .apun .dsm .far .amf .gdm .imf .med .mtm .okt .stm .stx .ult .uni}} } set mod [tk_getOpenFile -filetypes $types \ -title "Choose module file"] .module configure -state normal .module configure -state disabled if {[info exists module]} { ::tclmod::player stop ::tclmod::player unload $module } set module [::tclmod::player load $mod] } button .play -text "Play!" -bd 1 -command { if {[info exists module]} { ::tclmod::player start $module } } button .stop -text "Stop" -bd 1 -command {::tclmod::player stop} grid .module -column 0 -row 0 -sticky we -columnspan 3 grid .browse -column 3 -row 0 grid .play -column 2 -row 1 -sticky we grid .stop -column 3 -row 1 -sticky we ---- Known bugs * [[module ''moduleId'' time]] always returns 0. It's libmikmod bug (at least in libmikmod v3.1.10). * Loading several modules at the same time and trying to playback anyone but the last one couses application crash - it's also libmikmod bug (I've sent notice to authors). ---- [DKF]: They originated on the Amiga, and are basically like a combination of a MIDI instrument bank (sample set) and a MIDI file in one. (Well, the formats are completely different, but they are conceptually very similar). The formats are very good at representing complex pieces of instrumental music, but are really quite hostile to "consumer" use. They've fallen a lot out of favour due to being used a lot for doing knock-offs of copyrighted music, even though that was usually a really poor use of the format's power. [GPS]: There are lots of unique artists too. The scene is rather interesting. It's like a subculture that flourishes on [IRC] and elsewhere. An archive I like is http://www.modarchive.com BTW; I usually play the files with mikmod or xmp (in [pkgsrc]), but that may change with this tclmod package :) [Googie]: Fresh (not from '80 and begining of '90) modules are made with excellent quality. They are less-sized becouse of their structure. 3-6MB, hi-quiality modules can contain 40 minutes of music! This is very good for games, demos, etc, where music usually steals much of hard disc. Btw. can anyone try to compile it under windows and other systems (eventually put here links to binaries)? I've got only Linux. If someone would do it, then let put the link just below extension homepage link. Thanks :) ---- [[ [Category Package] | [Category Multimedia] ]]