Wiki

This version (01 Nov 2012 19:11) was approved by Brett Gildersleeve.The Previously approved version (01 Nov 2012 19:08) is available.Diff

Counter

Click here to return to the Counters page


The Counter block can be used with a State Machine to process your input at a particular time interval, in ms. The counter starts from 0 (or any other user-defined value).|

Controls (parameters)

MaxThis is the maximum value for the counter. The value can be changed by clicking in the text field and typing a new value, or by clicking the adjacent up/down arrows. If the counter reaches the maximum value, its output will stay at that value until it is reset.
StartThis switch starts or stops the counter. If the counter is stopped in mid-operation, its output value will freeze at its most recent value.
InitThis is the initial value of the counter, which is the starting value for the counter when it is reset. Enter the start count value in the Init field, or use the adjacent up/down arrows.
ResetThis button resets the counter back to its initial value, set in the Init field.
StepThis controls rate at which the counter increments. The counter value will increase by the value in this field at the end of every audio sample. The value can be changed by entering the desired value in the text field or using the adjacent up/down arrows.

Counter example:

This schematic shows how the Counter (in conjunction with a tone cell) can be used with the State Machine. The state machine block passes signal (green pin to blue pin) only when the Counter's control value to the red pin is between the given limits.



resources/tools-software/sigmastudio/toolbox/counters/counter.txt · Last modified: 01 Nov 2012 19:11 by Brett Gildersleeve