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


closestt(phrase,time,limit)
Return the single note in the specified phrase that is closest in time to the specified time. If the limit argument is given, the search is limited to notes within that amount of time (i.e. to notes between (time-limit) and (time+limit)).


completescale(key,scalename)
Return a phrase which is in the given key and scale, and extends from the lowest note (in the key/scale) to the highest note.


consloop()
This is intended to be the one-and-only task that reads from the Consinfifo, a special fifo that is automatically opened whenever KeyKit is booted, and to which KeyKit sends any characters typed on the console. consloop() forwards the characters to whatever task is supposed to be reading the console. If Consgrabfifo is set, it will send them there, otherwise it sends them to the main command interpreter, which is reading from interpfifo.


constant()
This function initializes various constants that are needed by other funcitons.


controller(ch,cn,val)
Return a controller message, where ch is the channel (1-based), cn is the controller number, and val is the value.


debank
Removes all bank-select controller messages (controller 0 followed by controller 32) from a phrase. Note that it leaves the program change message which usually follows.


dedup(ph)
Remove any duplicate notes (in time and pitch) from a phrase.


dedupdur(ph)
Remove any duplicate notes (including comparison of duration) from a phrase.


delay(ph,tm)
Return phrase ph, delayed by time tm.


dokeylocal
Set up input/output ports. Look for a file keylocal.k first, and if that doesn't exist, use some defaults


dupsof(p)
Return a phrase containing one copy of any notes that are duplicated in phrase p


echo(ph,num,rtime,rfactor)
Return phrase ph echoed num times, with rtime delay between each echo, and with the volume of each echo decreased by rfactor. NEW BEHAVIOUR - 8/9/99 - the length of the result is now explicitly set. This is more "right", but some algorithms may have been depending (unknowingly) on the old semantic.


echomaster(ph,fnum,ftime,ffactor,bnum,btime,bfactor)
Return phrase ph with echoes, forward and back. fnum is the number of forward echos, ftime is the echo time, ffactor is the volume reduction factor. bnum/btime/bfactor is for the backward echos.


evalstring(s)
Takes a string and evals it. Useful when you want to put something in the background - you just "task evalstring(...)"


eventime(ph)
Return phrase ph with all of its notes evenly spaced in time.


filetopitches(filename)


findtask(function_name)
This function looks for a running task that is executing the named function (which is specified as a string, not as a function value). If found, the task id is returned. If not found, the return value is -1.


flip(phrase [,about])
Flip the pitches of the specified phrase about some intermediate pitch (i.e. high notes become lower, and low notes become higher). Given a single argument, the flip is done about the average pitch of the original phrase. A second argument can specify a particular pitch about which to flip.


floor(f)
Returns the floor (maximum integer that is less than f).


fractal(ph,depth)
Returns phrase ph fractalized - each note becomes a miniature version of the entire phrase, transposed by the note's pitch. The depth determines how many times this process is repeated. Watch out, this will produce huge phrases.



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