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


gcd(n1,...)
Returns the greatest common divisor of all of its arguments


gcd2(n1,n2)
Returns the greatest common divisor of two integers


getsysexdump(sendmessage,tmout)
This function retrieves a sysex dump from an attached MIDI device. The 'sendmessage' argument is expected to be a sysex message that, when sent to the device, will cause it to send back a sysex dump (or any sysex message, really). For example, for a TX81Z, the value of 'xf0432004f7' will cause it to send back a sysex dump containing all patches. The 'tmout' parameter is a timeout value in milliseconds - if this time elapses without receiving any output from MIDI input, the function will abort and return an empty phrase.


gmresetall()
Returns a phrase containing controller messages that reset everything appropriately for the beginning of a General MIDI piece.


grabmouse()
This function arranges for all mouse messages to be intercepted and sent to a particular window, rather than being routed to the windows underneath the mouse. When you want to restore things to normal, call ungrabmouse().


grabmousefifo()
This function arranges for all mouse messages to be intercepted and sent to a new fifo, rather than being routed to the windows underneath the mouse. The fifo id of this new fifo is returned as the value of grabmousefifo(). When you want to restore things to normal, call ungrabmousefifo().


highest(phrase)
Returns the highest-pitched note in the specified phrase.


highestnt(phrase)
Returns the highest-pitched note in the specified phrase.


inport(port)
Open a MIDI input port


interploop()
This is the main command interpreter that executes the statements that a user types interactively on the console. It reads from the interpfifo fifo, and characters are normally put on this fifo by consloop().
See: consloop


isinscale(note,scale)
Return true (non-zero) if the specified note exists in the specified scale. The scale phrase need only specify a give pitch once - it is assumed to be duplicated over all octaves.


isnearbeat(note ,beat_interval, tolerance )


isonbeat(note [,beat_interval] )
Returns true (non-zero) if the given note lands on the beat. The default beat interval is 1b; a second argument can specify an different interval (e.g. isonbeat(note,4b) would return true if the note fell on any 4-beat mark).


keyrc()
This is the very first function called by KeyKit, unless the -r option is specified when KeyKit is invoked. This function must initialize everything necessary for the proper running of KeyKit. This is normally done by calling normboot() to set up the command interpreter and start other primary tasks.


khslider(vmin,vmax,vinit,invokefunc,args)
Create a horizontal slider object and return its id. When slider is moved, the invokefunc will be called with 2 arguments - the first will be the current value of the slider, and the second will be the args value. The vmin, vmax, and vinit values are the minimum, maximum, and initial values for the slider.


kmsbutton


krubber


kslider(vmin,vmax,vinit,invokefunc,args)
Create a slider object and return its id. When the slider is moved, the invokefunc will be called with 2 arguments - the first will be the current value of the slider, and the second will be the args value. The vmin, vmax, and vinit values are the minimum, maximum, and initial values for the slider.


kvalbutton(vals)


lastbunch(ph,spc,types)
Return the last "bunch" of notes in ph. The value of spc is the time that determines where the bunch ends - as soon as a blank space of that size is detected, the bunch has ended. This is useful for grabbing the last little bit of the Recorded phrase. If a third argument is given, it is a bitmask of note types to look for - all other types are ignored.



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