inline function
-
This inline function completely crashes HISE every time - why?
inline function getControlValues() { return { "SlickSlider": SlickSlider.getValue(), "BeautifulButton": BeautifulButton.getValue(), "SliderPack1": SliderPack1.getValue() }; } inline function setControlValues(data) { SlickSlider.setValue(data.SlickSlider); BeautifulButton.setValue(data.BeautifulButton); SliderPack1.setValue(data.SliderPack1); }
}
HiseSnippet 3027.3oc2Z0sbaiaEFz1bmHG6j3rY11K1oCGOc5H20UQTV1RJY1F4+xFW+mpkiaZSylPSBIgXJBERJ63rSllGk9Xz6ZeD5ivdSuoWk2f1C.IEA+SlVMamt0yXOF.Gbv24fC9vAfnkMUG63PsQREN9xAXjzbxsuzxs2l8zHVnc1BIcW4V1XGr6F1zKbv1urrJZiKGn43fMPRRS+ML4jJLCh+yGezFZlZV53vpPnSnDc7dj9D2vZa0bWho4i0LvGS5KHc0l6nSs1jZRGBXZZ4xnAZ5mo0EefFSrojQRe11FDWpcaWMWrCRZlMnFW1tG8BKO4Og3PN0DyJnhZCJxq5GSMMXHlUKZydDSiVA1tCBII2JzSLsmm3dx6SLHipOzibGdCJg8PzeHMUT3McD3oJBuxBvKEHMk.jlwCRKH2V2lLvMrEFdto7NVtX6NZfaWDJdxhl5eda4MofDVtk5qcF9w1PgQ8n3ZkKurxpkKuzCmc16eeElj1TSGEWpxoXEGsywFJDKkA7ffYgIGGWky0rUZaRzOC9iA1V4qUBFftX2Mo8GPsfBEWTPlEA8G14MvZCcIcFZtwPWWpUlJHlbQUhmhaAwGpiCAAxrnuEtEtCwB6nnYZpnGXsZVFJ5PMmBR5nzgZ6avJm5E1OqED+4.whXkHKGT9tYUfeBAkWq6QfhYgoPQXPh08vZJ4vDkCpM8gSQpUX69s42uXiMKLySTdz9XlWhIX.NhWe5nItTiGSP.jmvYilQhLBGipICDLp8bN1GNvk.UmCH3KY.RRSYGSbMw4PUb4RpHuFY7YGSYBeEwIgBtX1V4gmMV7b3Yhd1COKau5gmE5QSYb1jwsaN1wxSDwwyqlrGSu1SYlLs+LfN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nVUvC8w2MQ4nJ3g7rquTX7n76PTYGqf7rtpTU+rqw4fdq3pkP6n4qGKHGmOFk76pOunD7Ofcr9D4yoOct+b5pi8yoKbZ0OOGG07Vxdn3pOmY15Xd4i3IMccUg.yV70+4+XyBJ4lxLMvwxjgh6vUP6yHY.CN0xU5N.s.4luK9Rm+S7HfwL.iM10hdZN7F2wWAPf6ozMnuM3HZ32LDCagNp57aPQ114PcWXw3QrKxexrlBvQ+frkLwSVD1Mk21hk74wD73LgweUH2CbG8IGCqqEZvWaxR2Bz0mpaCI2.5DrIUm3dYR.Et2WDP047M.PrwtaUpzSrakrbId4Z+Fnr0aXs+UrxM1cqbCp6JuG1pqaurgzG+qQgzYrg3D1P9LZqqQYT9hhWPdydZVPJbswl7OTcNBhSUQ+D4CG5NXn6mH0sf79s1FnqsCTXhP6btL81LEsskQFpobttxP+s0St5J4iq5Nx6SMXewvnu0K1CbyuAVNVhaNwdDUVPtWWJ5k9j8.vxKDWPtEwUuW5XbpTvH6sk8C.FGs891c5.QPg.bF4G+reXdibhC+s7FdX+ABvjwdCi7A+K3kU9crjl9FrE1NYNFQeBi+879DFGj6mvn21DGaqY4Lf5DQwATuNhU9TG7iswu4H1roX8aR0rSsoO9nGCFYp8osl6PadXw58oCsBv+q9K+r+wihmb0L4K4pq3oTNy+y8TJ+QvhcIoVIdJt.qHo+.S71VmC6GB038bb2B2QanoaPsQik2mZQGziZQzECBNB6ZS51EaKh8TMn0ccYasIbegGA6GnIFz9yatGDroYC9I7D5KTyuuXbyW+TYO3pvV.p7iWR5o++aR5invYxs5tuFDDBmvjejFfaDR+1amc1moTZJF+lW4xrxdjiVF7B+K3G+FUYkk7aTMnw+qLF80zsouL3ICCSP2fWCX2V7GmdA48YkUF88DkkKWpLpOvv8RcclK9WADlo2mJSPeVYB5S0InOqNA8YsInO0lf9Ter8gs4x5Cco88VxAUzZa9GjURx6fS7Hcz+Ff7P6rd
-
const var SlickSlider = Content.getComponent("SlickSlider"); const var BeautifulButton = Content.getComponent("BeautifulButton"); const var SliderPack1 = Content.getComponent("SliderPack1"); inline function getControlValues() { return { "SlickSlider": SlickSlider.getValue(), "BeautifulButton": BeautifulButton.getValue(), "SliderPack1": SliderPack1.getValue(), }; } Console.print(trace(getControlValues()));
If you Console.print the getControlValues() you'll get this:
Interface: { "SlickSlider": 11.0, "BeautifulButton": 0.0, "SliderPack1": { "normalise": Method, "detectPitch": Method, "indexOfPeak": Method, "toBase64": Method, "fromBase64": Method, "getMagnitude": Method, "getRMSLevel": Method, "getPeakRange": Method } }
So it's working for the SlickSlider and BeautifulButton but not for SliderPack1
I have not read all your code but maybe you want the .getSliderValueAt() or getDataAsBuffer() ?
-
Thank you Ulrik. I took out the slider pack - the problem is not the "get" but the "set" - the error message below appears and HISE crashes.
When calling up a preset, it cannot reload the values.
inline function getControlValues() { return { "SlickSlider": SlickSlider.getValue(), "BeautifulButton": BeautifulButton.getValue(), }; } Console.print(trace(getControlValues())); inline function setControlValues(data) { SlickSlider.setValue(data.SlickSlider); BeautifulButton.setValue(data.BeautifulButton); }
}
Interface:! Line 80, column 29: API call with undefined parameter 0 {SW50ZXJmYWNlfHwyNzI0fDgwfDI5}
PresetBrowser_01:! Line 80, column 29: API call with undefined parameter 0 {SW50ZXJmYWNlfHwyNzI0fDgwfDI5} -
@MikeB Try
data["SlickSlider"]
-
@d-healey
The same - complete crash of HISE!HiseSnippet 2986.3oc2Z0sbaiaEFx1LSjicRb1La6E6zgimNcjacUDkksj1Lai7uabi+QqkiaZSylPSBIgXJBFRJ63rSllGk9Xz6ZeD5ivdSuOuAsG.RJB9mLs1rc5VMS7DBbv47cN3fOb.HaaS0vNNTaTghGeoEFUXNoNWZ51ey9pDSztagJbOo11XGr6F1zKbv1urhBZiKsTcbv5nBEl9qYxUn3LH9uO9nMTMTM0vgMgPmPIZ38HCHtgs1t0SHFF6npiOlLPP5Zs1UiZtI0fNDvzzRUPVpZmo1CefJSrojPEtw15DWpcGWUWrCpvLaP0urSe5EldxeBwgb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w+Yk6O9OucAN1V0zwh5DQwALqNhM9TG7N132bDa1Tr8Mop1o10GezNfSl5X5n5NzlmVr9.5Py.7+p+1u3e8n30NMS9pc5J9HDm4+49HD+Ivh8BEZm3iXEXEICrLvaadNryGzh2Gx5V3tpCMbCZMZt79TSpUepIQSLI3HrqMoWOrsH1S0gV20kselv0AdDrefpXR6ur0dPxlpMDmvSXrPI+whwMe8yk7fqLaAn7OcIom9+uIoOhBG41r29pPRHb.R9IV.tQn5Zuc1Yu5wBSw327dtB6YOxQS8JA0X52oB64B9cpDz4+Urw.UMa5KC9PcgInaxaA7aS9m0cQo8YOKO5cDJIUobEz.fg6kZZrP7uEHLSeLUmfwrxDLlZSvXVcBFyZSvXpOAiowXGCayk0G5RG3sjCZn81722ZgBdmKhmoi9Or9UkuC
-
@MikeB start with this:
inline function setControlValues(data) { Console.print(trace(data)); //SlickSlider.setValue(data.SlickSlider); //BeautifulButton.setValue(data.BeautifulButton); }
-
Doesn't help because the error is already in the console "API call with undefined parameter 0 " but why - although Console.print(trace(getControlValues()));
shows that values are available! -
@MikeB said in inline function:
Doesn't help because the error is already in the console "API call with undefined parameter 0 " but why - although Console.print(trace(getControlValues()));
shows that values are available!so what line number is being pointed at by the console?
-
Ok well - you havent defined a preset handler so this wont work:
inline function onPresetListControl(component, value) { local items = component.get("items").split("\n"); Console.print("ITEMS:" + trace(items)); local preset = PresetHandler.loadPresetFile(items[value]); Console.print("PRESET:" + preset); setControlValues(preset); };
-
@MikeB Your "data" return undefined when called in
setControlValues(data)
-
@ulrik said in inline function:
@MikeB Your "data" return undefined when called in
setControlValues(data)
yeah -- its called from the function I list above. where he's trying to pass in a "preset" but he never gets one...to pass in.
-
@Lindon -
so hes calling a function in another name space...
using this:
local preset = PresetHandler.loadPresetFile(items[value]);
which calls this:
inline function loadPresetFile(presetName) { Console.print("CAllING LoadPresetFile"); local presetFile = FileSystem.findFiles(getPresetFolder(), presetName + ".preset", true); //return presetFile[0].loadAsObject(); }
which never returns anything....and presetFile is empty anyway...
-
Background info - THIS is a snippet from Casey Kolb from last year.
It worked wonderfully.
Now it doesn't - without changing anything in the script.
Or rather, the "var" has been renamed to "local"!
Of course, your preset list is empty. The presets are not transferred with the snippet.
If you turn the knob in the interface and press the button and then press the button "save preset", a preset is saved. If you do this again, a second preset is saved. If you now switch back and forth between the first and second preset, HISE crashes completely.
HiseSnippet 3011.3oc2ZstbaabEFzRHiIsjskimz9iNcvnoSKUiJMAEkHY7jZpqwpVWXEkUbqqiMDvRxMBDKL.njky3o9EoyzGi9ulGg9Hj+z+62f1ytXAwhaTvLNYZJmIJducNemyd1u8rK1NNDcjqKwQpPwiuzFIUXN4tWZ4MXyAZXKoc2Rpvcj63fbQda3PtvE477ppRaboslqKxPpPgY9BZ+JTbVI1u28fMzL0rzQgUIIcBAqi1COD6EVam1OBaZtilA5X7PgdWu8t5DqMIljQ.llQtpjsl9YZ8QGnQ610jkJ7Qaaf8HNc8z7PtRElcChwkcGPtvxu+mfcwmZhnETk5BBxu5cHlFTDSqUZyAXSiNA1tqjTA4NgdhY78D2UderAdb8gdjayZPIbDh9iBWKJ7lIB7TEgWUA3kBjtl.jl0GRKH2U2Aa6E1BEO2PdWKOjSOMvsKBE+9Jcs+1sj2j.8vxqxPsyP63.EFOhxqUs5xJqVs5R2uTo6cOEZOcHltJdDkSQJtZmiLTvVJ1rffRvjiqmx4ZNJcMw5mA+w.4n74JAJnOxaSxPahETn7hB8YQP9gCdCj1HObuQlaLxyiXko.h0OpPXnbKTOrExUQyzTQO.wZVFJ5PMmBQLtJ8HNbPqbpenaIKHFxEhmPJQBoU9lRJvuPz425dXnXV.KrKTLQGdXMUbockApM4voLwJrcda7wES2zPE+txhXmfuMVGCvQ75SGMw60jwDDD324rQy3tLFGiqICDLt8bp6Cs8vP04.B7dFfjzD1wXOSTNDEqeIEjeiTNoiIzNeEwIgcbwrsxCOah34vyD8rGdV1d0COKzilhd1jxOaNQc42EQ84WS15zu8TlIS6O1D6Ql.8X3RhxhCA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LlW9HVpJuuhPfOI9pt7eRQAgbCYpDXXY5PwsYBn6Y3LfAaA8U5N.o.IG+Hzktee7HfwXiPFOxhbZbA7qS5MtMW.PL8ojMHuJ3LRnWNBAabMt57aPQH6OT2CVBbD8ppmNqoHb1KHGESzzEgcC4ssno7cLFMISX1nmTwW+czzOiIj6Btig3igk7BMvklbAYPVzKrRpvakaUqRzeGzA9yJUVG96VaA+4IzxObcZ4sokOoSkOb+jxuAcBxjni8tLoAEtiUDip24a.fdiGAf9gNcRVtBqbi+.T15kz1+TZ4Vz1WYz2mx41nti7dHq9dCx1jd2+LpIcFUEmPg7SHc9QrrT9VEtf7lCzrfD+5hLYeJ4brHLUA8yjObjm8HuOPhaA486rMrciSf.SrzLmzL2hJnssLxPLUy0s7wSFHosj7ILca48IFzuoWzWTE8YjwaflYl3lqzmpjEjw1khR9C1yrJuPbA4NXO8AoiwqkBFo2w5O.Xbb5Ia2qGDAEBvYk24I+v7RzDU+M8UOr+FFXhouTPlx+DVYkujlp0WfrPNIyQJ5CE7ek2GJnctenf9aycrilkqMwMhfC15vUrxG6h1wA8xinylh0uIQyI0ld2C1ALxTGSWMuQNrvh0GRFYEf+W7O9k+6GDO4vYyWxgWwCVb1+m6AK9SfE6EJzIwCdEXEwCsMQaacNreLTi+idcKTOsQldA0FMVdehEwd.wBqKFDbDxyA2uOxQD6oZPq64Q2ZT3VFOB1OPSLn8W0dOHXSyA7SnozWnleewjlu94x9vUgt.T4mtjzy7+2jzGQfSxa0eeMHHDNeM6HY.2Hb7A+c1oeYwBWixu4WtJsrO4nkAqv+A9waTkVt.uQ0fF+QQGC0zcHOO3Q8BSPWmUCX2Vrm.dQ48okUTGm8ub0JUkFBLbOWWm5h+c.gY5io1TLlUlhwTeJFypSwXVaJFSioXLMm3Xnatr9HOxP+kbPEc1l8EcKTv+ferHco+KHjkgZH
-
@MikeB
Of course, your preset list is empty. The presets are not transferred with the snippet.-- yes so I loaded the snippet into a product with presets - to avoid this issue... so your problem is here:
which calls this: inline function loadPresetFile(presetName) { Console.print("CAllING LoadPresetFile"); local presetFile = FileSystem.findFiles(getPresetFolder(), presetName + ".preset", true); //return presetFile[0].loadAsObject(); }
-
@MikeB Please you use code tags for your snippets, it will make them a little easier to copy and take up less vertical room.
-
I have known this for 3 days - I am shown that the problem lies in this line!!!!!
It doesn't help if you point out every time that this is the problem.
The question I am asking here is not WHERE is the problem BUT how can I fix it!
-
Did you try returning a value from the function by uncommenting
//return presetFile[0].loadAsObject();
? -
-
@MikeB That error implies that presetFile is not what you think it is.
Use
if (presetFile.length > 0)
before trying to load it to make sure a preset file has actually been found. Also if you only want a single file and you know the name of the file why not use.getChildFile()
instead offindFiles
? -
It is supposed to be a simple preset browser with no frills.
There are no examples except this one and it doesn't work anymore and HISE hangs on it all the time in the latest version.
Now the professionals in HISE programming have looked at this and have not come up with a solution.
How is a novice programmer supposed to achieve anything here?
Everyone here says - very simple, build your own sequencer or your own preset browser if it doesn't work the way you want.
Actually, I just want my arpeggiator not to stop running when I change presets. That's all.
SOLUTION: own sequencer (there is no description whatsoever, let alone a snippet)
SOLUTION: own preset browser - there is this one snippet - which no longer works today.Translated with www.DeepL.com/Translator (free version)