Should add a @varispeed attribute such that having @varispeed 1 would be the current karma~ behavior where manipulating the speed while recording writes an interpolated sample to the buffer~. This should also be the default state when instantiated.
By setting @varispeed 0 you record without any interpolation such that the speed inlet is completely ignored until playback starts. This will allow behaviors where setting the speed to a high or low value would mean that that playback speed would be audible when a loop is recorded.
Use case examples:
@varispeed 1 (current behavior)
Set speed to 2.0
Create a new loop and play it back
Results: You hear the audio at the same pitch/speed but with half the sample rate
@varispeed 0 (proposed behavior)
Set speed to 2.0`
Create a new loop and play it back
Results: You hear the audio at twice the pitch/speed
Should add a
@varispeedattribute such that having@varispeed 1would be the currentkarma~behavior where manipulating thespeedwhile recording writes an interpolated sample to thebuffer~. This should also be the default state when instantiated.By setting
@varispeed 0you record without any interpolation such that thespeedinlet is completely ignored until playback starts. This will allow behaviors where setting the speed to a high or low value would mean that that playback speed would be audible when a loop is recorded.Use case examples:
@varispeed 1(current behavior)Set
speedto2.0Create a new loop and play it back
Results: You hear the audio at the same pitch/speed but with half the sample rate
@varispeed 0(proposed behavior)Set
speed to2.0`Create a new loop and play it back
Results: You hear the audio at twice the pitch/speed