delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/18/00:37:49

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro - MIDI
Date: 17 Mar 1997 21:37:07 GMT
Organization: Oxford University, England
Lines: 28
Message-ID: <5gkdi3$nvk@news.ox.ac.uk>
References: <tQhk9AA8R4HzEwpx AT jenkinsdavid DOT demon DOT co DOT uk> <Pine DOT OSF DOT 3 DOT 91 DOT 970317133457 DOT 32258A-100000 AT hermes DOT otago DOT ac DOT nz>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael Bevin (mbevin AT hermes DOT otago DOT ac DOT nz) wrote:
: I was wondering how I could output a single note every two 
: seconds (or whatever) to midi using allegro - at the moment for each 
: note i want i'm having to create a midi file which isn't very efficient :)

This i s awkward, but you could look at the source code for Allegro and
investigate whether the note-playing functions for the MIDI player could
be made public. This could fail to work, though.

: Also i seem to be having a problem with the grabber in that i've got a 
: picture and whenever i import it into a datafile with grabber it adds a 
: really annoying dot in a random position???? it's really noticeable in 
: this picture since it's mostly black and it's a white dot.... do you 
: have any idea why?

Try using the command-line dat utility to add the picture to the datafile
and see if it still occurs. The syntax is:

dat -a (filename.dat) (filename.pcx)

where (filename.dat) is the filename of the datafile and (filename.pcx) is
the filename of the PCX picture file. If you're using an automatic header
file, also put `-h (filename.h)' and perhaps `-p (prefix)'  if you want to
prefix each constant.

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019