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.
latest(phrase)
Return the ending time of the latest note in the given phrase.
legato(phrase)
Extends the duration of each note to abutt the start of the next note.
Doesn't modify the duration of the last note.
listports()
A simple utility that lists the available MIDI ports to the console.