<-- previous page Table of Contents Index
Often you may like to have gradual changes in things like tempo or volume or onvelocity. You can, of course, tell Mup exactly what you want for each individual note, but you can also just specify beginning and ending values and optionally some intermediate values, and Mup will do interpolation, creating as many midi commands as necessary to produce smooth gradual changes.
As a common example, suppose you want to do a ritard. You could do
something like:
midi all: 3 "tempo=120 to 96" til 1m+4;
midi all: 2 "tempo = 112 to 92 to 112" til 2m+4;
midi 1: 1 "onvelocity= 40 to 50 to 70 to 105" til 4.5;
Changes in time signature are not allowed during a single gradual change, because it may not be entirely clear what is wanted in that case. So you have to tell Mup what you want by starting a new gradual change at each time signature change.
Note that all midi commands must either include both a "to" and a "til"
or neither. The to/til are only allowed on midi commands where the
values are numbers, namely channel, chanpressure, offvelocity, onvelocity,
parameter, port, program, and tempo.
Note that a few of those may be of rather dubious usefulness,
particularly channel and port, and perhaps program.
For a parameter, the parameter number is specified just once, as in:
midi 1: 1 "parameter=7, 40 to 60 to 70 to 90 to 65" til 4.5;
midi 1: 1 "onvelocity=60,60,60,120 to 60,60,120,60 to 60,120,60 to 120,60" til 4; 1: cegc+;;;; bar