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

Return the ending time of the latest note in the given phrase.

Extends the duration of each note to abutt the start of the next note. Doesn't modify the duration of the last note.

Takes a number and limits it to the specified range.

A simple utility that lists the available MIDI ports to the console.

Returns the lowest pitch in the specified phrase.

Returns the lowest-pitched note in the specified phrase.

makenote(pitch [,duration [,volume [,chan]]] )
A simple utility for generating a single-note phrase. The pitch is the only required argument; additional arguments specify the duration, velocity, and channel.

Figure out a root note (using findroot()) every intrvl beats, and return it.

Returns the largest volume in the specified phrase.

This is intended to be the one-and-only task which reads messages from the Midiinfifo, a special fifo that is opened whenever KeyKit is rebooted, and to which KeyKit sends messages containing all MIDI input. Any task wanting to read MIDI input should add an entry to the Midiin array. The index of the Midiin array is normally the task id, and the value of the array element is the fifo id.

Returns the number of milliseconds since a given time

Sleep (i.e. pause the task which calls this function) for the specified number of milliseconds.

Returns the smallest duration in the specified phrase.

Returns the lowest volume in the specified phrase.

Returns a monophonic version of the specified phrase. If type==0, high notes are given priority (e.g. if two notes are playing simultaneously, the higher note will be chosen). If type==1, low notes are given priority. If type==2, the priority is randomized.

This task is intended to be the one-and-only task that reads directly from the Mousefifo, a special fifo that is opened whenever KeyKit is rebooted, and to which KeyKit sends messages about changes in the mouse state. mouseloop() normally figures out which window is underneath the mouse, and sends the message to the Mousein fifo for that window. If someone wants to grab the mouse, they should set Mousegrabwind, and mouseloop() will instead send the mouse messages to that window. This procedure should be done with the grabmouse() and ungrabmouse() functions.

Return sysex that changes a parts bank/program. Assumes that the 16 parts are assigned to channels 1-16. ch is 1-based bank is 0-based prog is 0-based

This function quantizes the specified number using the specified quantize value, and returns the result. The result is guaranteed to be greater than the original number; if quantization would produce a smaller number, it is increased by the quantize value. This is typically used when you want to quantize a time value, and want to guarantee that the result will refer to some time in the future, not in the past.
See: numquant

Return the time of the next note AFTER time 'st', in phrase 'ph' If there are no notes after it, returns -1;

Return all non-notes (i.e. controller, sysex, etc) of ph.

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