PCM_LOOP_FOREVER used as in the test acts as expected:
amy.reset()
amy.load_sample('sounds/partial_sources/CL SHCI A3 LP.wav', preset=1024)
Loaded sample over wire protocol. Preset #1024. 22560 bytes, 11280 frames, midinote 60
amy.send(osc=0, wave=amy.PCM, preset=1024, mode=amy.PCM_LOOP_FOREVER)
amy.send(osc=0, eg0='0,1,700,0')
amy.send(osc=0, note=60, vel=1) # Starts looping
amy.send(osc=0, vel=0) # Fades out over 700ms
Behavior varies at different pitches, however. amy.send(osc=0, note=61, vel=1) stops after 11 repeats, and amy.send(osc=0, note=63, vel=1) stops after one repeat.
I suspect the terminate_on_silence flag is engaged, and different pitches are aligning brief silences with the measurement block. However, terminate_on_silence is supposed to be disabled (at least until release) with PCM.
PCM_LOOP_FOREVERused as in the test acts as expected:Behavior varies at different pitches, however.
amy.send(osc=0, note=61, vel=1)stops after 11 repeats, andamy.send(osc=0, note=63, vel=1)stops after one repeat.I suspect the
terminate_on_silenceflag is engaged, and different pitches are aligning brief silences with the measurement block. However,terminate_on_silenceis supposed to be disabled (at least until release) with PCM.