sys:set-block

(sys:set-block number)


Description:

Sets an active block.  An integer marker can be set on any scheduled event and a block can be placed or removed on that integer marker at any time.  this allows marked events to be blocked (thrown away when there time comes to be executed).  all events are marked 0 unless otherwise specified.


Arguments:

         number -- number


Returns: boolean


Examples:

; block all 100 events

(sys:set-block 100)

(play-note (cons (now) 100) inst 60 80 44100)

; unblock all 100 events

(sys:remove-block 100)

(play-note (cons (now) 100) inst 72 80 44100)



Back to index