Converting a software instrument to a loop