Class voice

experimental voice allocation module

Methods

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


Methods

voice:new (polyphony, mode)
create a new Voice

Parameters:

  • polyphony number
  • mode number

Returns:

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

Parameters:

  • key
  • slot
voice:pop (key)
pop

Parameters:

  • key
voice:release (slot)
return voice slot to pool

Parameters:

  • slot : a Slot obtained from get()
generated by LDoc 1.4.6 Last updated 2020-03-28 23:45:19