swesterfeld / spectmorph

SpectMorph: spectral audio morphing
http://www.spectmorph.org
GNU Lesser General Public License v2.1
67 stars 6 forks source link

Instrument editor: Play while adjusting loop points #21

Open HiSven opened 1 year ago

HiSven commented 1 year ago

After creating a new instrument, I click on PLAY to check the length of the sample. If I start to adjust the loop points, the PLAY stops. Is it possible to PLAY while adjusting the loop?

swesterfeld commented 1 year ago

Well, it is possible to implement the behavior you suggest.

It is however not as easy as it may seem from the issue description because there are a few places in the instrument editor code responsible for playback where we assume that loop points for an instrument never change during playback. So conceptually what we do if the loop points are changed is we throw away the old version of the instrument with its old loop points re-create everything from scratch.