pink.event

alter-event-time

(alter-event-time start evt)
Utility function to create a new Event using the same values as the
passed-in event and new start time.

beats->seconds

(beats->seconds beats tempo)

event

(event f start)(event f start args)(event f start x & args)
Create an Event object. Can either pass args as list or variadic args.

event-list

(event-list buffer-size sr)(event-list evts buffer-size sr)
Creates an EventList. 

EventLists maintain their own internal time and fire off events whose start
times have been met.  Events have no notion of duration. An event may do
things like schedule an audio function to be added to an engine's
performance list, force turning off an audio function, and so on.

event-list-add

(event-list-add evtlst evts)
Add an event or events to an event list

event-list-clear

(event-list-clear evtlst)
Clear all events from an EventList

event-list-empty?

(event-list-empty? evtlst)

event-list-processor

(event-list-processor evtlst)
Returns a control-function that ticks through an event list

event-list-remove

(event-list-remove evtlst evt)
remove an event from the event list

event-list-tick!

(event-list-tick! evtlst)

events

(events f & args)

fire-event

(fire-event evt)
Evaluates event as delayed function application. Swallows exceptions and
returns nil.

seconds->beats

(seconds->beats seconds tempo)

use-absolute-time!

(use-absolute-time! evtlst)
Set EventList to insert new events without modification
to start times.

use-relative-time!

(use-relative-time! evtlst)
Set EventList to insert new events processing their start times as relative
to the cur-beat. (This is the default behavior of EventList.)

wrap-event

(wrap-event f pre-args evt)
Wraps an event with other top-level functions.

wrap-relative-start

(wrap-relative-start cur-beat a)