Hi everyone, I wanted to share an object I coded.
cards.axo (2.3 KB)
Cards generates a new value on each rising edge of trig inlet. The generated values don’t repeating until a rising edge on reset. At the moment the value ranges from 0 to 15, so a sequence can up to 16 step long.
The pool of available values depletes with each trig and can be viewed at the deck outlet.
On rising edge of drop inlet, all cards in the hand are discarded, before eventually drawing a new card. Trigger trig and drop at the same time to have a single card in the hand outlet (a random power of 2).
On rising edge of reset inlet, all cards return to the deck and can be drawn again.
Here is also a demo patch (cards.axo must be in ./objects/logic/ relative to patch):
2026-04-01_cards-demo.axp (11.3 KB)