Tanggal :September 22, 2020

pd19. Counter object in Pure Data

Spread the love

Earlier we used a float object and and + object to implement counter functionality. Instead we can use the counter object.

The counter, in this example, counts from 0 to 4, at a clock rate determined by the metro, 0.5 second.

We have a bang object and stop message to start and stop the metro. For the counter, we can reset by issuing set 0 message. Further, we put 4 in the last inlet to indicate last counter value. If it was not connected, of course there will no maximum value.

The select object routes the value to the bangs in the last row.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *