Map Button to Macro values?
-
@d-healey I've added most of my buttons via the Hise UI, how would I add the
1 - value
to the rest of my buttons? Wish there was a way to do this stuff via the UI, I'm finding the scripting learning curve to be pretty steep, even with all your fantastic tutorials. Just cannot get my head around half of it.
-
@LozPetts you would put that within the button's callback
-
@d-healey I'm going a bit mad here! I've added this to my first button callback and it's not doing the 1 - value element at all, what am I doing wrong here?
HiseSnippet 5407.3oc6cs7aiijdmx1ken1teu4EvFvzXCfGfdbKRQ8BCVzxuamossfk6tmAIAdokJIQXJRARp1VyCjFAI.4XNlEHG1bN.A60bH.ygbI2BBxk8xhIHm1ay+AIeUQRwhTjxTub6tG1Cv.yWU888UeO98UU8UphgdMrootAWpUNsWGLWpUQU6oY0Z6VxJZbGrCWp0P619brAeEEYMcts50Q1zDWmKUp42m7JoVYAN5+9gmukrprVMr2s33dstRM7KUZqX4c2Jk+bEU08jqiOUoMyaKU9fZ5Zaqqp2EHm4QY35HW6B4l3ijIu1bHtTKtacEKcipVxVXStTKrkd8dUaoeol86+ZESkyUwjKD3pBMj8s2SWsNghI2ka6VJp0q3x1lb.GWwSHLusP3wnCUpqz+9dBi6Se.u2WvJORMmexadejm.K4kgg7BgjligjVvljd.pZMCkNVdOgPO2AcflE1ngLH1YIE62kateWJz15vanYsQa4Kv6Y.Wz+KVuPlLOkWJSlO4yRCRdSK92Jav2VtlgNQjax+y4+yexNcMuXG4dO4o7OYeUk1swFO4u7yRmdWslJZ3MLwVz1DqU+Px2Ytt2mCsZ5zJZpv6w2nqVMKEcMdcMpdDgnLzUWuld6N5Z.48TnuU6h+jzec5NjWnMHla2EHTRWHaYYnbNbE+5JM0zMvveaoq8TdA9O0469rUd1y1rdc9dfxCestlV5s4U0apTiuE1.uwFaj9aAxwUVzDassaOu9SnTzS9DRO4PWaKqpdNn7stexE3HFF4HcK7wZqSH4UR+so4C9nFMB8YNskJ1HzGSrILF1GttVWh8Hi.i9hfhhesOTzZerFG0rEILunt1AZJVG2AqEkICmibDzTerCUAupEUO8t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BzjvSy8dIzkmGq35YYPxQTJxBtp+pk02jLmf3vEyfkQPnJ2suggIVajUbFdvMF268YIGiy.AImhQLWFYPVOsyChHCrQbdvTplmhkkenEiVN+6Pw3AF8Mzy27IqUVDQUih6ITZez0IfaSNAamEa884lzs9dn6P4HvUFLq73s0gASFBX2QXeCKJTHelbEyJUhVFORwj77g9N.sYiOcXwOI0u2ONNCZl7YEMopbRR6d1WUNzB6HWVo7Rzpbix1iWIDHDiRHXHD+nUyGDxtX1Lh4yjWLiclICuZhtoJdgY4VQbluyBlrse33SdejskCc9MnMoBUR1vgIa3voxFNL3ONxIa2vOF1tgYS1tgIa2vaya2vDfcI.67WKI1+bzGEztewi94IP6Rf1k.sajpkDaapDvcebAtSJAbWB3tDvcIf69PAb2Rn8aoalLscIX6Rv1M0N+XnlTIP693BZWtDncIP6Rf1k.s6CEncqPpL41sCD.hEb2u6e9+JAbWB3tDvcwGb2CcMpRf28wE7t7Iv6Rf2k.uKAd2GNv61Eh9nIqlL2cIv6Rf2Msf24XTk.u6iK3cERf2k.uKAdWB7tOTf2sl6DMve71mlbLNm.wiEh2CYUN3OEaZk.0aTg58Sbkg50RVq1OxP6U7FFs26LRP6kf1KAsWBZO+n8tInx1x0LzOy4LfiPqKSuCPkZxssqX6tlWP980yeLf2UoLIr2Y0p41TolyoU.V6rNdUo9cTnGxajQTiFx.RSlmYSQ8uwY18IyO6fsYAqxAT6UrJDp5Wx9zVJMaw9XyKvW56ZKbGx0e8i+W1++4q9adtB3u2v9rXXdxu755Zp8nEz93vHyEBi38iS3MEeLmO9H3Po6J5OP37.CkA9PPWL4Kh7KH3BcNVOHAg33Nrxt1F5o1sug97b++.oZRTyB
-
@LozPetts You need to let the code editor help you, use the autocomplete and the API browser to check that what you're writing is valid code, that will save you some headaches.
pianomidimuter
in the script doesn't refer to anything because you haven't got a reference to that module. Also your module is calledPianomidimuter
- script is case sensitive.
setattribute
is not a function, it'ssetAttribute
ignorebutton
is not correct either, it should bemyModule.ignoreButton
(replace myModule with the variable name that holds the reference to your module, when you have one).
1 - value
is correct :) -
@d-healey Thanks so much for your help. I've gone through and updated everything you pointed out and I'm now getting 'Unknown function 'setAttribute' on each button callback
HiseSnippet 5602.3oc6c07aiijcmx1k+Pc696MeArALM1.3EXF2hRTegACZ4O61YZaKX4o6YPRfWZoRVDlhTfjps07ARifDfbLGyBjCaNGff8ZNDf4PxgbKHXurWBlfbJ2l+CRdUUjhEoHko9xscOrGfAlUUrp26Uu2q98ppdTUMMpisrLLERsxw85fERcWTsd51s1pkhptvdaKjZUzNsOEaJVUUQ2PXydcTrrvMDRkZ9WPZRpUVPf9ue34apnonWG6UjfvqMTqiekZaUauRqV4yT0z1UoA9X01bsVtxd0Mz2xPynKPNyixHzQo94JmgOPgzr4PBoVbmFp1Fl0rUrwVBoVXSiF8p0x3BcV6espk5oZXxCRB0fNhU7tFZMHTLoTgsZop0npKaaI.bbUOgv7LgvSP6q1Pse4dBiGPqPz6M3kGolyO4MuOxShm7xvQdgPRywQRKvHoGhpU2TsisWMD54Nn8zswlMU.wNOovZqvb+aKi1x.Zgt85sUNGuqI7P+2XshYx7QhxYx7y+jzfj2xV7sJlhsUpaZPD4Vhep3e5S2tq04aqz6oej3SeglZ61Xym9m+IoSui9Yp530sv1z9Dq2Xex6Ysl2qC8Z5m8LpZi3lcssMz4FEVwepHUYa8yv1Tg.8o0dJsxmBuuptFLJhM6pW2V0PWzPmVEgkLMzVqtQ6NF5.y8QPep0E+yS+0ooMnMLI0tKvlDBbCaaS0SgmDWKPkpmoaXhOkRaejnj3G6zMeR5uEncWAGg3bGn9zFoicHisTzzNEzTWyO0wX+cwZ1Cx8zRif4I0ENuSpYXrNo9n3b+0MNLNitBmu4nLFa+FESPSePF2o7HXcVsgy7r5FF6yZQTBff0NNh.W5KbgfOJjIF.KF65sFTL3TdDhAVsgKFX0MLw.qEQIFBV63HFbouvEC9nPGwPKCqPrBXEGkPfTYDx.RUCUDPZPjR.+UNVB.FsEA+yQc80BH9MCUM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bYOgty.SAs3kQMO8DHv8f1Klrf4W2DWGq9V7jj4Ci7RIoQ65HL7eeaKmonb47RREkJA+QzByGfX6ghhdiV.Lf.xxGgZd459Zvzh4FpZeA4H0M2hr8Bd57KhxUb3YoByhe.bRvZnfxASAZR3o4durzkmGq35YYPxIqbjIbU+SKquIYdorCWLCVFAgpbu9FFVX8QVwY3Ktw4duOK4XbFXQxo3JlKiLImm1oAQjA1HNULkx4oXY4GZxnk2+MTLdfQeC86a9j0KKhnpQw8KTZez0IfaS9B1NKt56yMoW88PugxQfqLXT4w6pCClLDvtiv8FNqTwBYxWJmbYZZ7HGSxyG56.zFCe5vV+jj+d+33aPyjuqnIYkSRX2y9rxglXG4yIWPllkaT1d7Rg.oXjBACg3Gsb9fP1kxkIagLExlgEYxvylnqqjWXVdUDm42rfI65GN9j2GXW4PmehTSxPkjKbXxENbpbgCuO0hJ45F9g00MLWx0ML45FdS95Fl.rKAXm+bIw42D9Hf18Kd7ml.sKAZWBztQJWRX1TIf69vBbmbB3tDvcIf6R.2caAb2RnWzxvJYa6Rv1kfsap88igZRk.s6CKnc4Sf1k.sKAZWBztaKP6VgjYxsaGXAHdvc+u+i+mIf6R.2k.tK9f6djqQUB7tOrf2UHAdWB7tD3cIv6t8.uaGX0GcEsj8tKAdWB7toE7NGipD3ceXAuqXB7tD3cIv6Rf2caAd2ptazf3gacbxmw4DHd7P7dDuxg3wXK6DndiJTuehqLzndxY09AFZuRWyn8dmYBZuDzdIn8RP64Gs20AU1VotowINeC3Hz5xzR.pTWoMKis6ZcN42WO+qA7tpUHK6cR85tcUp4b5Ef0NoiWVpeGU5G4MxLpYSE.oIWcLJpeAmvFSte1AayCVU.n1K4UHzLtfu1Vpm0huZqywW36YabGxye8S9mdw+8W8W8bUveuI6awv7je40Mz05QSn8wgQlKDFw6GmvqK9XNe7QvoR2SzefkyCLUF3EAcwj2Hx2ffKz4y5AYQHAg8qtCyPO0N8MzmW3+GzFiSgB
-
I think you should start with something much simpler...
If you ever see an unknown function error, it means the thing on the left side of the
.
doesn't' have a function with the name you've used on the right side of the.
- check the API browser to see what functions are available, and pay attention to the case.You've called your Sampler Piano, and you've called your button Piano, this is confusing. Give them different names to make it clear what's what.
@LozPetts said in Map Button to Macro values?:
I've gone through and updated everything you pointed out
You still don't have a reference to your module and you're still using
ignorebutton
instead ofignoreButton
-
@d-healey It would appear I am blind!
I've added the reference//Piano Button const var Piano = Synth.getChildSynth("Piano"); inline function onPianoControl(component, value) { Pianomidimuter.setAttribute (Pianomidimuter.ignoreButton, 1 - value); }; Content.getComponent("Piano").setControlCallback(onPianoControl);
Do I need to change the setAttribute line to add 'Int' to Pianomidimuter.setAttribute ( Int Pianomidimuter.ignoreButton, 1 - value) as I'm getting API call with undefined parameter 0 errors?
-
@LozPetts said in Map Button to Macro values?:
I've added the reference
You've added a reference to your sampler called Piano. Where is the reference to your midi muter called Pianomidimuter?
-
@d-healey Understood, I've added this now, I've left the reference to the samplers (which I've renamed for clarity).
I'm really sorry to be such a pain, I'm truly trying here but I'm now completely stuck as it's compiling fine and I've managed to fix a few errors I was getting myself, but it's still not working and there's no more errors for me to troubleshoot, so I really can't see what I'm doing wrong?I'll pop a snippet at the bottom but what I've got for each is now:
//Piano Button const var Piano = Synth.getChildSynth("PianoEngine"); const var Pianomidimuter = Synth.getMidiProcessor("Pianomidimuter"); inline function onPianoControl(component, value) { Piano.setAttribute (Pianomidimuter.ignoreButton, 1 - value); }; Content.getComponent("Piano").setControlCallback(onPianoControl);
- I'm referencing the midimuter
- Inline function tells it what to do
- And then controlcallback ties it to the button on the interface
Really don't understand now why this isn't working, the buttons don't do anything at all.
Snippet:
HiseSnippet 5876.3oc6ck7aiikdmx1Ounxt1mrALALEl.3FnaWhRTanw.KuVsSW1VvRcUcij.2zROYQXJRARpx18BRgfjA4XNjCY.xg4VtMnujC4VeM2xsfbYPOH+Czmx0j2Bo3iaRjTRtb4lUCzvjusuueuuuu2u2FUccsVPCCMctLqz759PtLqBZbspY2c5JIqxcvt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W1jMt.doqmMg8wO+0O829he+W82soLJduN8S2v73ez10TUtlb+2ShhLW.Jhyuqg2T5wbtzCuckVTV7ObtmtROEDYKlVhPKAlWn0WAD7fPbbGVeOpidl8F5nOO2+Ob+g7lE
-
@LozPetts said in Map Button to Macro values?:
I'm really sorry to be such a pain, I'm truly trying here
Looks like you're making good progress.
There are two problems in your snippet.
- You are setting the attribute of
Piano
- that's your sampler reference - You've dumped a load of code in the
onControl
callback, no idea why that's there but that callback shouldn't be used for anything these days, that's from ye olde HISE.
- You are setting the attribute of
-
@d-healey said in Map Button to Macro values?:
You are setting the attribute of Piano - that's your sampler reference
This was it! For some reason I had it in my head that I had to state the Sampler first and then the module within it in the brackets - the second I changed that it works.
Thank you so much, do you have a tip jar?!
-
@LozPetts said in Map Button to Macro values?:
do you have a tip jar?!
Nope, you can join my Patreon if you want, there's a free tier. https://www.patreon.com/davidhealey