pink.simple

Simple interface for single-engine projects

add-afunc

(add-afunc afn)
Add an audio function to the root node of the pink.simple engine.

add-audio-events

(add-audio-events evts)(add-audio-events evt & evts)
Takes in list of events, wraps in audio events, and adds to engine's event list.

add-events

(add-events evts)(add-events evt & evts)
Takes in list of events and adds to engine's event list.

add-post-cfunc

(add-post-cfunc cfn)
Add a control function to the post-audio node for the pink.simple engine.

add-pre-cfunc

(add-pre-cfunc cfn)
Add a control function to the pre-audio node for the pink.simple engine.

apply-afunc-with-dur

(apply-afunc-with-dur afunc dur & args)
Applies an afunc to args, wrapping results with (with-duration dur).

clear-engine

(clear-engine)
Clears the global pink.simple engine.  Will clear out active and pending
functions and evnts from the root audio node, control functions, events.

clear-events

(clear-events)
Clears all pending events in engine's event list

engine

get-tempo

(get-tempo)
Get the current tempo from the engine's built-in event-list.

i

(i afunc start dur & args)
Csound style note events: audio-func, start, dur, & args. 
Wraps into an event that will call audio-func with args, and wrap 
with with-duration call with dur. Most likely used in conjunction
with add-audio-events so that generated afuncs will be added to 
to an engine.

now

(now)
Returns the current *beat* time of the engine.

remove-afunc

(remove-afunc afn)
Removes an audio function from the root node of the pink.simple engine.

remove-post-cfunc

(remove-post-cfunc cfn)
Remove a control function from the post-audio node for the pink.simple engine.

remove-pre-cfunc

(remove-pre-cfunc cfn)
Remove a control function from the pre-audio node for the pink.simple engine.

sco->events

(sco->events notes)
Convert SCO formatted note lists into events by applying i to all notes.
SCO format follows Csound style note events: audio-func, start, dur, & args.

set-tempo

(set-tempo tempo)
Set the current tempo on the engine's built-in event-list.

start-engine

(start-engine)
Starts the global pink.simple engine.

stop-engine

(stop-engine)
Stops the global pink.simple engine.

tempo

(tempo)
Returns the current *tempo* of the engine.

use-absolute-time-events!

(use-absolute-time-events!)
Set the Pink simple engine's event list to process events without modifying event
start times. By default, Pink will process new events' start time as relative to 
the cur-beat time. When absolute time is set, events will be merged as-is.

with-afunc

(with-afunc afunc notelist)(with-afunc afunc note & notes)
Wraps note lists with calls to i with audio-func to use.