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


normboot()
This is intended to be the default function that gets called when KeyKit initially boots or reboots. KeyKit calls Rebootfunc() when it reboots, so in order for this function to be used, the statement "Rebootfunc=normboot" should be included in keyrc(). Any tasks that must always be active (for example, the loops that monitor mouse and console input) should be started here. To register a function that will be automatically restarted upon a reboot, you should add it to the Rebootfuncs array.
See: addbootfunc


normexit()


normintr()
This function is intended to be the default value of Intrfunc, which KeyKit calls when an interrupt is received, typically when the user presses the interrupt character on the console. This function forces a reboot. If graphics mode is enabled, an attempt is made to save the current tool configuration in the file "keydump.lst", which will then be restored after the reboot. In this way, a fairly clean restart is performed.


normredraw()
This function is intended to be the default value of Redrawfunc, which KeyKit calls whenever the screen must be redrawn. It redraws the root window (i.e. erasing the screen), and then sends a redraw message to all children windows (i.e. all the active tools).


normresize()
This function is intended to be the default value of Resizefunc, which KeyKit calls whenever the screen is resized. Normally this function does nothing. By setting the variable Autoresize to 1 (e.g. in liblocal/prerc.k), you can cause this function to automatically resize all the active tools to fit within the new screen size.


nrpn(ch,mm,ll)
Return an NRPN message constructed from ch (channel, 1-based), mm (most-significant byte) and ll (least-significant byte).


nsimul(ph)
Return the maximum number of simultaneously-sounding notes in a phrase.


numquant(number,quantize)
This function quantizes the specified number using the specified quantize value, and returns the result. The result may be less than the original number. If you want to guarantee that the result is not less than the original (which is typical when you are quantizing a time value and want to guarantee that the result is some time in the future), use nextquant().
See: nextquant


onlynotes(ph)
Return only the regular notes (non-controller, non-sysex, etc) of ph.


ornament(ph,orn,doscaleng)
Apply phrase orn to each note of phrase ph - i.e. each note of phrase ph will be turned into a copy of phrase orn. If doscaleng is non-zero, then the copy will be scaled to the duration of the notes in phrase orn. If doscaleng is zero, the copy will have the original timing.


outport(port)
Opena a MIDI output port


patchunmap_sc8850(p)
If p is a patch change message, return its entry in the patchmap Return 0 if it's not a patch message.


patchunmap_sd80(p)
If p is a patch change message, return its entry in the patchmap Return 0 if it's not a patch message.


pathescape(s)
Takes a file pathname, and returns a version of the string that can be safely printed to a file and re-read.


picknote(phrase, n)
Returns n random notes from the specified phrase. If n is omitted, a single random note is returned.


pickphr(phrase1,phrase2,phrase3...)
Randomly chooses and returns one of its argument phrases.


pitchlimit(p,p1,p2)
Adjust the pitches of notes in phrase p so that they fall between p1 and p2, by shifting the notes in octave increments.


preecho(ph,num,rtime,factor)
Return phrase ph with each note preceeded by 'pre' echoes. num is the number of echoes, rtime is the time between them, and rfactor is the volume factor (between 0.0 and 1.0) If not provided, rtime and rfactor default to 1b and 0.9


prelocaldefaults()
This sets any default values before keylocal.k is called.


prevquant(number,quantize)
This function quantizes the specified number using the specified quantize value, and returns a result that is equal to or less than the original number.



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