Continuous audio loop
-
@d-healey nope. I want to have a few drone notes at different pitches that can be turned on and off that's all. I thought the loop player was the best bet. Is there a better way to do this?
-
Synth.playNote();
-
@d-healey Yeah that's better. Appreciate the tip. What do I put inside of the ( )? Is it the name of the note such as G1 or A2?
-
-
@d-healey I'm getting an error. What did I do wrong?
HiseSnippet 892.3oc4W0saaaCElL1Za1YoncnWrK0E6hTfrBqs1tArKZRbrGLVShQTZwtqfk53XhPQpQQkMig8N12f9Jz2f1CEsijWE7r89CXS2XwyORemC+NehdrQyg7bsgP6b4rLfP+zf3YJ6z9SYBEYzID5cBNkkaASn2zwyxX44PBgRa88NCzNsIkWu8oGyjLEGpLQHuPK3vyDoBak0wG9CBobHKAtTjVK5Gc3HtV0WK0EHdZEzijw3WytBNi4Bam.B8iFjHrZSrkYgbBs8w5jYwS0+rxG+KD4hWIA2hHRL9f7lGpkIND6tmzepPlLdQcmSHzfwUcgV9tv8CNUjHt0dU23tkNBqxnd+ftypfWzVBOZM301Cu6EDyMhLakGG11MXjB2nlvvsf5vxGKg9lf9ZL.k8gorqggFbwsIr+S506fvG2q2C9t85tW2RNvCyjrYmosv9BkE8cPn62HWLSJTbqPqB0JW.mq1+Ac+0tc59ac+8dlLoIWNfXzRIXZxqiVXVQZ6qJReEXNH7Flr.VDG1cVt8u650949lRs.0pQJg87LX95pMHmOeAuvaOxsEZcSUEXcqkEVCgUY5C2+Iy2zv6d9nSXVliRL2FFWFXrBW0ROAtAm07DjNAm.4Wa0Y3z1GvdPNrNoPxrKSrcSyycfc6kXPNZhJWXmUeZeCX68ZjsG0T0tlv8dAiEV9zlw6NMfWrq82MdmqcrWvfIS.tsBrsCF9iaqPw1Ak63gxtAwBETNLWBjO1KtuBQ7Wuth3YqsH94bK6F3RCSkmoyW5AGCohK0JWKnx3yyQsI3mtvssV2deMyznq29zgXU1XNwLagojebTptPYWhOzZqTqWdLoV7MHc29egur7W+r1edogVqGb+C93WmEXLVjlIgApa.Ip+UhwOCE7lvJj1EViVBkmpU5roZkfWmAbAXMhqtBL0wdiEzQVKdTjJK2+vK.Ivpyl+hCeFxBYFrOAaYuHZ86EqZ+5yC7vMzMYF9eCI8V++TR+BcgUnt5TFRT+E7jpmUjFiBqb.QhRAR7EEP2wIN5W2ys1qrpRJW7N7ZtyH2Z5bmQKb9Ox6HkwM5Wx8m1wwk+jRKXcqJOaeG7OYfqCiHkGoy2aRQ8vWx4tl8Whcmly3q13L95MNiGswY73MNimrwY7MabFe6Jxv8wmiJr5T+nGZX7fxSaRoCTLj4VxxIuG7CzvUC
-
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();
orSynth.noteOffByEventId();
to turn notes off.