Is it possible to change the length of a writable array according to tempo/bpm? I want to be able to set the sample loop recording time to a particular number of bars so that it will automatically sync in with the current tempo, or is it easier just to adjust the playback chunk size automatically?
What techniques do others use?