The sash~ object performs sample-and-hold operations on an input signal but unlike the sah~ includes a buffer (the extra "s" in sash~ is for "storage") that can holds samples of the input. Sample capture and sample output are triggered independently of each other, and sash~ includes a variety of methods for selecting the output sample from the memory buffer.
Sets the level of the signal connected to the right inlet that will cause the next value in the memory buffer to be used. The next index into the buffer is chosen according to the dir attribute.
Determines how the next memory buffer index is chosen when the advance trigger signal exceeds the advance level.
0 = 'Forward' ( Increment forward )
1 = 'Reverse' ( Increment backward )
2 = 'Random' ( Choose index randomly with replacement )
3 = 'Urn' ( Choose index randomly without replacement )
Sets the maximum possible value of the size attribute. The default is 1000 samples. Note that maxsize can only be changed as a typed-in argument.
Determines the interpretation of the advance trigger signal
0 = 'Level' ( Signal exceeds a threshold level )
1 = 'Index' ( Integer value of the advance trigger signal )
2 = 'Subdivision' ( Phasor subdivision of the advance trigger signal )
When the mode attribute is set to Subdivision, the index into the memory buffer is determined by dividing 1 into the current value of the size attribute. For example, if the size is 2, advance trigger signal values below 0.5 will play the first memory buffer sample (index 0), and advance trigger signal values above 0.5 will play the second memory buffer sample (index 1).
Sets the level of the signal connected to the middle inlet that will cause the next value in the left inlet to be sampled and recorded into the memory buffer.
Sets the current size of the memory buffer used for recording and output. The size must be greater than 0 and less than or equal to the maxsize attribute.
Common Box Attributes