home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
win3
/
midi
/
midiband
/
midiband.doc
< prev
next >
Wrap
Text File
|
1993-12-05
|
5KB
|
140 lines
********************************************************************************
GUS
MIDIBAND V1.0
Graphix/code:
DICK H.P VERWEIJ
hpverwe@cs.ruu.nl
Midiplayroutines : Forte's ummidi.c
3 DECEMBER 1993
********************************************************************************
Requirement:
Gravis Ultrasound, VGA.
********************************************************************************
How to use it:
(ULTRAMID (once before using it) WITHOUT -c switch)
(SET MIDIBAND=disk:path (not necessarily))
MIDIBAND filename.mid [filename.mdb]
********************************************************************************
What does MIDIBAND:
MIDIBAND offers you a way to see which instrument is being played realtime on
the screen. Each instrument from the Ultrasound General MIDI set can have
its own animation triggered when played. This is only a simple anim because the
program can only sense for a MIDI note on of off. The user can make his own
anims for each instrument he likes best. I have already included some pics.
MIDIBAND is based on ummidi.c from the GUS SDK so it needs the ULTRAMID tsr to
play properly. In its current stage MIDIBAND only scans channel 10 (Drum+perc)
for intruments but in the future i will add other channels too. (I must first
know all about MIDI files..etc.)
********************************************************************************
MDB files:
The user of MIDIBAND does not have take my pictures but can make his own. By
editing the default.mdb file or by creating mdbfiles. By default MIDIBAND is
using the file default.mdb.
EXAMPLE:
midiband chris2.mid example.mdb
********************************************************************************
Syntax MDB files:
:backfile.ext
file11.ext file12.ext chan note xpos ypos
.
.
.
etc..
backfile.ext is the background picture.
file11.ext and file12.ext are the names of the picfiles.
chan is the channel the note is played on (only channel 10 at the moment).
note is on which note the animation is triggered.
xpos,ypos position of animation in 320x200 screen.
The program can read colorix (.SCI) files without compression and it can read
Deluxe Paint II enhanced pics. The palette comes from the background pic,
some brushes of DP can act weird if their are compressed and have odd width,
so make sure your large brushes have even width. I am working at the problem..
EXAMPLE: (from example.mdb)
kick2a.sci kick2b.sci 10 36 40 40
│ │ │ │ │
1st picfile │ │ │ │
│ │ │ │
2nd picfile ─┘ │ │ │
│ │ │
Midi channel ─────────┘ │ │
│ │
Ultrasound Kick2 patch ──┘ │
│
(40,40) screencoordinate ─────┘
********************************************************************************
MIDIBAND environment variabele:
MIDIBAND=disk:path
MIDIBAND searches this directory for picturefiles and MDB files.
EXAMPLE:
SET MIDIBAND=c:\ultrasound\midiband
(If MIDIBAND is not set the program will search in the current directory)
********************************************************************************
Enjoy this peace of crap. It is totally free, but send me email if you like it!
Internet: hpverwei@cs.ruu.nl
Please send in bugs or flames...
********************************************************************************
BTW1: Some midifiles will not look good, because they switch to fast from 'note
on' to 'note off'.
BTW2: Some midifiles do not use the 'note off' but play two 'note on' (the
last note zero volume, I guess). MIDIBAND will look good in both ways of play-
ing (I hope..)
BTW3: Colorix (.SCI) files are realy easy to make. make sure your file starts
with RIX4 (4 bytes) width height (4 bytes) [don't care] (2 bytes) palette
(768 bytes) raw data (1 byte per pixel) (width*height bytes).
BTW4: I fixed some bugs in umidi.c (It did not play chrisnot.mid, now it does)
********************************************************************************
Future:
- Other channels supported (e.g. you can see a piano player)
- 'Progam change' support (also pic change)
- PIC caching, like patchcaching (at the moment all pics will be displayed)
- More formats: e.g. PCX or others..
- other midicommands pictured.
- other screenmodes
- wishes anyone?
bye bye
your famous dickhead,
Dick H.P. Verweij
hpverwei@cs.ruu.nl
ONLY A DICK MAKES IT POSSIBLE