expand

Reference > numSamples

Wave
Spectrum

    

numSamples stores the number of samples processed in a single loop, which is 128 by default. The loop() function expects to be returned a wave of length numSamples. By default, any wave you create using new Wave() will be numSamples long.

You can find the code for numSamples in the synthesine library.