Audio Loop Player and setLinkBpmToSyncMode (?)
-
I'm trying to figure out what is the right way to use 'tempo sync' on an Audio Loop Player.
Connecting the combo box to the relevant choice in the Audio Loop Player, I get a crash if I try to change from 'Free Running' to other values. In the documentation I found:
-
setLinkBpmToSyncMode
If enabled, this will link the internal / external BPM to the sync mode. -
Engine.getHostBpm()
Returns the Bpm of the host.
I think I should use the first option but I don't understand how it is implemented
-
-
OK; I tried to enter "getHostBPM" without success; the Audio Loop Player still crash. I therefore now have to understand what the correct syntax is for transporthandler or try to understand how to overcome this crash.
-
-
so reading the documentation gets you this:
Parameters
ID Description
4 SyncMode Syncs the looper to the host tempo
5 LoopEnabled Enables looped playback
6 PitchTracking Repitches the sample based on the note and the root note.
7 RootNote Sets the root note when pitch tracking is enabled
8 SampleStartMod Modulates the sample start
9 Reversed Reverses the samplehttps://docs.hise.audio/hise-modules/sound-generators/list/audiolooper.html#parameters
so I would start with:
YourLoopPlayer.setAttribute(YourLoopPlayer.SyncMode, true);
and see if that works for you.
-
@Lindon Thanks, I'm testing the plugin right now and it seems there are no crashes; the sample produces "crackles and glitches" but at least I no longer have an instant crash. I was probably looking for the wrong things in the documentation, Thanks again. I will continue to do tests in the next few hours and if I don't have any problems I might even consider the problem solved.