Continuous audio loop

  • Skip the int, that's just telling you what datatype to use.

  • @d-healey You're a legend. Thanks!

  • @d-healey Trying to connect it to a button to turn the tone on and off. Any ideas?

    HiseSnippet 987.3oc4W0saaaCElx1Zc1cIXsnWrKEJ1EN.cAVaMsEnWTm3XOXrlDinzhgcSGCEsMQnHUknxlQQeG2iReC1NjTxRdQy0dYaXXS9Fyye7imyGOGoIIRBMMUlfbZewhXJx4ybCVHTyGLGyDnwGib108Dbphl3YEczhXbZJMD43z7a0BbZ2BYd9vKNBywBBsTDB8ZIiPeIKhoJkNo+2w37Q3P5ErnJV+39iIRw.IWlA3ooaOTLlbEdF8Tr1rFtHmOYXHSISBTXEME4z5HY3hf4xeRXs+0rT1kbpdgOJ.BjU7HIOTiX8+QCly3gSJN2oHji6jxrPSaV3AtmvBYKkWlM9biBuROplObZrN34WEd81b34TAdsrv6dtAjDVrpTiFa20cr.JTSwPInJrr1hZPbbGHAKDp8ivWQGk.KV5Q2mzq2i7NnWu8d9Ncz+XBNSP8llIHJlT3IEGkoTRguNFIRdWhLJVJfn8Huqw7L5d6z4c6zwCdLLn8i43EmJUztG.A12F32aBdAJlQUCJBR2GlG9Gt29oZ4lMY.lyuDHAc+86tNXUfldeNSzcuNuqS6Nu+FZlNsNU4ghSSpSqlalrF25JxhtjlTb3ysCJQqxA57GyApRQI1TRECkhwBl5rX5x01CYgjdnkGtphJOTUkZNL0XVonaR7P4kIMEL2bvTkg.taNAzVTPLfm01MuBgLIjpMAPuZ7wXEtHPPLg8IllnX5LjywzqglDVlca2iooWojwFay4FPRcC11etbK+g9KVt3GI8Q27FDbOVFlwwpUubq6nkq.J1qbKReSQjxTKp1w6Vei2utD+FB264NgoHyqGuMpAuPA3ua7l2+bG2gSmRIpRv1xcz2+WayxOFT10Bk65F.8wLsjL.4N1AbqYP1uroCxh23AYmQT3qoWjfEowxzUBb.MhcAPySqJ7UoP6Y5aOWWVqJefDmTqpO7hQvorVeBvprDC+3vHYlPsBen4FWD1hAps9Wy.0ay0qae2flaFb+Hy7aWfw.VTLmNTbMkCcOMX79P6xo3LtpPp+Jn7DoPFOWJXjpE8yopD1rYzjpXu1CzgJEL7sTxC5eNkSwUIveY+WBDObBjmn+IyE9adtXc0quv0BWO8kQu+azEu4+O6hetLSwDyNACDUXrt6oYQAPuTBEPhPP4vF45zP2OzttmdssYpHzr3Wgmbk950N4J8KT9OxdDgIIx2Pru7jlK+oFIv4VX9jl1v2VAq8V9NS5bSDzO7MDhNY+UP1odO95s1iuYq83wasGGr0d7js1imt0d7r03gd3ygYJYj8pGHXxPy6p53LTfAlqgki9M.UbcPz

  • @TNTHM Are you subscribed to my patreon page?

  • @d-healey I'm not, do you have a link?

  • FoooKINHELL I just loaded your snippet and nearly destroyed my house. I have no idea what is in your script but don't post snippets like that, it can damage speakers as well as ears.

    @TNTHM said in Continuous audio loop:

    @d-healey I'm not, do you have a link?

    Ya, it's in my signature. I posted a video this month explaining pretty much what you're wanting to do. The general idea is in the button callback you have the call to playNote. The button needs to have saveInPreset disabled (I guess your snippet is missing that?).

  • @d-healey Sorry about that. I didn't think it would do anything weird but obviously I was wrong. I will be more careful in the future.

    The only things in it were the bit of code you recommended me and a button on the gui which I created a custom callback for and then put the bit of script inside of.

    I'll check it out, thanks for the tip. I love your YouTube videos!

  • @TNTHM I think your button is triggering playback as soon as the snippet is loaded, and it's loud. Just turn the gain down on the module before posting the snippet next time.

  • @d-healey I just closed and reopened the project and I see what you mean. Any pointers on how to get a button to turn the note on and off?

  • @TNTHM If statement. You can use Engine.allNoteOff(); or Synth.noteOffByEventId(); to turn notes off.

Log in to reply