final case class PriorityQueue[A, B](keys: GE[A], values: GE[B], size: I)(implicit ord: Ord[A]) extends SingleOut[B] with ProductWithAdjuncts
A sorting UGen that can be thought of as a bounded priority queue.
It keeps all data in memory but limits the size to the
top size
items. By its nature, the UGen only starts outputting
values once the input signal (keys
) has finished.
Both inputs are "hot" and the queue filling ends when either of
keys
or values
is finished.
- Value parameters:
- keys
the sorting keys; higher values mean higher priority
- size
the maximum size of the priority queue.
- values
the values corresponding with the keys and eventually output by the UGen. It is well possible to use the same signal both for
keys
andvalues
.
- Companion:
- object