Start/Stop AudioLoopPlayer
-
is it possible to start and stop the AudioLoopPlayer using a button via script?
-
I'm not familiar with it, how do you usually start it playing? Does it respond to MIDI?
-
@d-healey yes it usually plays back via midi note. i considered Synth.playNote but i have other Samplers and AudioLoopPlayers in the project and I cant figure out how to make that trigger a specific player only.
-
@argon If you put the script containing
Synth.playNote()
within the loop player's chain that should (I think) limit its scope. -
@d-healey chain meaning inside of an onControl or something different? im a code noobie haha, your videos have been my bible
edit: just to clarify, im attempting to have an audioloopplayer play a wav of a vinyl sample and have that sample always be playing. a knob will control the gain and keep it at zero unless the user increases it
-
@argon The audio loop player has it's own midi processor section. Try putting your script there.
-
@d-healey ahhh good idea. ill give it a shot thank you
-
@d-healey brilliant! it worked! thanks again :D
-
@d-healey i spoke too soon i guess, works in hise but not in a compiled plugin
-
@argon how are you loading the sample in the loop player?
The problem can be that the compiled plugin doesn't find it. -
@Matt_SF the samples are in the audio files folder and ive added them manually within the project
-
@argon said in Start/Stop AudioLoopPlayer:
@Matt_SF the samples are in the audio files folder and ive added them manually within the project
..but did you add them to the AppData/AudioFiles folder in your compiled plugin?
-
@Lindon yep, no luck
-
-
i wonder if its my hise version causing issues. im noticing now the audiowaveform panel doesnt function correctly as it does in other hise versions on my machine. im using a scriptnode commit from around may (i think). is there a newer one anyone can confirm is working?
-
@argon said in Start/Stop AudioLoopPlayer:
other hise versions on my machine.
-
@argon I'm using the latest commit. I'm currently working with audio loop players and I can confirm it's working just fine.
-
@argon but as David advertised () , using multiple versions of HISE is the best way to mess everything up...
-
@d-healey bad practice eh?
-
@Matt_SF thank you ill give it a try