delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/09/08:43:11

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro MIDI looping
Date: Sun, 9 Mar 1997 11:17:12 +0000
Organization: None
Distribution: world
Message-ID: <u374aJA4wpIzEwj8@talula.demon.co.uk>
References: <5ftn9v$ks1 AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire writes:
>I have an idea for an additional MIDI option: a function like this:
>
>void trail_midi (MIDI *trailer, MIDI *main_midi)
>
>Plays the midi structure trailer, then loops main_midi until a stop_midi
>is sent or sound_exit or allegro_exit or exit is called.

This is a good idea, but I think a bit too limited in the form you
describe. If it's worth doing, it's worth doing in a properly generic
manner. I think a better approach would be to 'annotate' a single MIDI
file with information about the loop points, possibly as a seperate data
structure, or maybe better by using custom controller messages embedded
in the MIDI stream. This would allow a simple intro+loop like you
describe, but would also permit more complicated control flow (eg. play
bars 1-8, repeat bars 9-16 four times, play through to bar 64, and jump
back to bar 9).

Thanks for the suggestion: it's going on the todo list...


/*
 *  Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
 *  Beauty is a French phonetic corruption of a short cloth neck ornament.
 */

- Raw text -


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