Continuously playing looped sample in an FX plugin
-
Hi everyone,
I am working on an FX plugin, where I would play a short, looped sample continuously in the background when incoming audio reaches a certain threshold.
I tried to do this with a Sampler, and a MIDI player, it all works fine in HISE, but as soon as I export it as an FX plugin, it's completely silent. Maybe it mutes all sound generators when it is exported as an FX?
Do you have any workarounds for this?
Thanks!
Gábor -
@Gabor-K can you make a minimal example?
-
@Gabor-K Use scriptnode. This is a quick-pretty-hacky-but-functionnal snippet. It will get you started :
HiseSnippet 2007.3oc2Y8zaabbEeVRMRVJ9OMItE8VVfzCx.FDh1NoAnGDknDSTpoDgHipK5A1w6Njbf1cls6rqjXLBPPQOzaM2B7olOB8ZPOD+QHn4XO0uA9SPSeyN6pcG9GIRJYg1JaHn4M+48ley6268lYaEJbnRoHDYsZmgATj0swsGxiFTe.gwQ6sCx5t3lDYDMzVKZ6gADoj5hrrJ+wJAVqtDBgpc.+uu41DOB2glJJ4miDLG5SY9rnbosp8qYddMHtzNL+Bi9I01yQvqK7Dwf8TFuAJf3bLoOcehZXkvHqk20kEIBaGQhnRj0RaKbG1df3Ttd7Gwjrm6QUMphZCKjVbCgmqxhURQ0Gv7baksukHjEtUNJTViB2G2j4xNWdNZ7SR5vNeFEwCqRllWYCyq5zLuIXRVELokzlzaia6DxBhx6QYOuEdONb3zi.vdQSQOVj0qv0Ev.3QU7IGSaDBMNeBq+garwCsge8feUuXtSDSvsE78EQzC3q+f0dwZqt1Wrl8nc0q2D6SolPgmGMbhcqNoCunItNO1+4zvGZeBwKld9.gsuIlt7rgoN5ccgAJ36wYQGDPSaewNEnTXC9qOaucHQD0gRpLXbAzvHlxbr1gdB3gqOhVEuCUdbjH.7wG67C7bDtwdjHS2IEGJsC.OLNCUGTbIKZXNE40aNpO1RSGO1Xlo.yp4913VrHmAS1dKMA6EPs2z1aJi8N3c60i5DkarKga7rEkdtwbSOWKkdB5To7am1ztwypNQh4eFmSBBBoAjPZGQKOxv0kD+.O5gfM9P6m6IbNtM6yoiybBzlv1pQrty.Bm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