< previous page ][ next page > [back] [back to #library listing]


progchange(patchnum,ch)
Return a program change message, where patchnum is the patch number (1-based), and ch is the channel (1-based).


quantize(phrase,quant [,limit] )
Quantize a phrase. Each note's starting time will be quantized by the specified quant value. If a limit is specified, notes that would need to be moved by an amount larger than this limit will not be adjusted at all.


quantizedur(ph,qnt)
Quantize the duration of all notes in ph.


quantizefirst(ph,qnt)
Quantize the first note of ph, and shift the rest of the phrase by the same amount.


randdur(phrase,range)
Returns the phrase with the duration of its notes randomly varied within the specified range. For example, if the range value is 2, the note durations will be adjusted by values ranging from +2 to -2.


randpitch(phrase,range)
Returns the phrase with the pitch of its notes randomly varied within the specified range. For example, if the range value is 2, the note pitches will be adjusted by values ranging from +2 to -2.


randvol(phrase,range)
Returns the phrase with the velocity of its notes randomly varied within the specified range. For example, if the range value is 2, the note velocities will be adjusted by values ranging from +2 to -2.


rcdefaults()
This sets any default values for which it is intended that they can be overridden by postrc().


rcdefaults_mdep
Machine-dependent rcdefault things


rcpostboot


readfile(filename)
This function reads an entire file (all lines of it) and returns it as a single string.


readkey(filename)
This function reads a phrase from the specified file, which is is expected to contain a phrase in KeyKit format, i.e. the same as a phrase constant in the KeyKit language.


readmf(filename)
Reads the specified Standard MIDI File and returns its contents as a single phrase (with all tracks merged).


readraw(filename)


repeat(phrase,num_times)
Repeat a phrase as many times as specified. The length attribute of the phrase determines the offset of the repetitions.


repfade(p,ntimes,inout)
Repeat the phrase the specified number of times, gradually fading it in or out (by including or excluding more notes on each repeat). If inout>0, it starts out including only a couple of notes, and ends by including the entire phrase - ie. a fade in. If inout is less than 0, it's a fade out.


repleng(phrase,length)
Repeat the specified phrase as many times as it takes to fill the specified length of time. The resultant phrase is truncated to the exact length, if it doesn't come out evenly.


resetall()
Returns a phrase containing controller messages that reset pitch bend, modulation, breath control, sustain, and channel pressure on all 16 channels to nominal values (i.e. 0, or in the case of pitch bend, 0x40).


reverse(ph)
Reverse the phrase in time, so the first notes come last, and the last notes come first.


revpitch(phrase)
Reverse the pitches of a phrase (e.g. the pitch of the first note will become the pitch of the last note). The timing is left intact.



< previous page ][ next page > [back] [back to #library listing]