The Dink Network

jjohn's Profile

Peasant Male
I'm an independent contract programmer who's a big fan of Seth's work, starting with L.O.R.D. More than you'll ever want to know about me can be found on my web site.

Web Page
Private Message

2006-03-01 15:22:02
Peasant Male
In that case, you'll need to add playmidi() after the buttons are added.
Consider downloading any of the excellent
Dink references.

playmidi("<filename without .mid>"); // works

From the r4.0 help file:


Category: Sound

Version: 1.00+

Prototype: void playmidi(string midi_file[14]);

playmidi plays the midi_file found in the Sound
directory in the D-Mod. If it is not found, it
will look in Dink's sound directory and play it
if it exists there.

If a number is specified, Dink will attempt to
play "###.mid".

The numbers 1002-1018 as a 'midi_file' have special
meaning. They play the audio tracks on the Dink Smallwood CD.
All but 1003, 1008, 1014, 1015 and 1017 have MIDI alternatives
for those people (the majority) using the freeware version
without the original CD in the drive. 1001 and 1020 also play
MIDIs if the Dink CD is not present, although with the CD, 1001
has no effect (since track 1 is the data track on the CD) and
1020 stops the music (since the CD has no track 20). These numbers
also work for screens (press M in DinkEdit). Lastly, it's
interesting that it will confuse certain audio CDs
(such as the 'O Brother, Where Art Thou?' soundtrack)
with the Dink CD. [PP]

// without the CD, plays "1.mid" (specified number less 1000);
// with the CD, no effect -- will not try to "play" data track

// plays track 3 of CD, or "3.mid" (if dmod has one)

// plays, as specified, "1003.mid"

// with CD, does nothing (no track 20);
// without CD, plays "20.mid" if found

jjohn has written 6 reviews

At the Risk of Shocking Dinkers Here Land of Transforming DucksNormalHorrible 1.0February 28th, 2006
Very Interesting Idea Fairy Goodness OnlineNormalFair 5.0February 28th, 2006
This Dmod Made Me Laugh Out Loud Several Times Search for Milli Vanilli (The)NormalGood 7.0February 28th, 2006
I Really Enjoyed the Idea of Blob Taking the Dink Engine And Making an Arcade Game Out of it Bloop the Fish 2NormalFair 5.0February 28th, 2006
A Good Little Tool For Cheating^Wtesting Dmods Save Game Editor of JusticeNormalGood 8.0February 27th, 2006
This is a Very Original Dmod Cycles of EvilNormalGood 7.5February 27th, 2006