Module lib.voice

experimental voice allocation module

Functions

new (polyphony, mode) create a new Voice
get () get next available voice Slot from pool, stealing an active slot if needed
push (key, slot) push
pop (key) pop
release (slot) return voice slot to pool


Functions

new (polyphony, mode)
create a new Voice

Parameters:

  • polyphony number
  • mode number

Returns:

    Voice
get ()
get next available voice Slot from pool, stealing an active slot if needed
push (key, slot)
push

Parameters:

  • key
  • slot
pop (key)
pop

Parameters:

  • key
release (slot)
return voice slot to pool

Parameters:

  • slot : a Slot obtained from get()
generated by LDoc 1.5.0 Last updated 2024-10-13 17:45:04