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gi9AUKYfmrLraIssIq3yiI3w4Bi+9OtODNFPNFVWKzgu1jJ7uge+ftBjbihSvFTMh6kIQQ3FdQPR2y2.rzFOArzisam74x7mq+6gmMeS9Qx8j1Ca1yse133i+8n33LlcNgYmmQaeUOixWR5BRa1W0DpPqC1f+5gyQNZpJ5mIc3PWqgtehT2BR62dafM1NPgIxby4pv6vTz1l5YnlJ45Z.820N4hmjeVR2UZepN68zE8qjh8og42AqDJw8dXe9QlPoUWJFk9j8oSkWHtfTahqV+zw3TofQ1Wk0OBXbzt2a2sKjAEBvYj14Y+370kIZ9a6Ydf9m.DUru9Otw+b9yx+AVMQeM1DamrDhne7e+y79w+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.EFOhxqUs5xJqVs5R2uTo6cOEZOcHltJdDkSQ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bDxyA2uOxQD6oZPq64Q2ZT3VFOB1OPSLn8W0dOHXSyA7SnozWnleewjlu94x9vUgt.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)
-
@MikeB here:
HiseSnippet 3271.3oc2as0baabEFTRnSD8kX63IsOzoyNZ5zRUqvPPQIRFOol5Zrh0EVSYG2llX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res a ton of debugging statements in there to show you how to find out what went wrong for your self - maybe try and follow this approach -
This fixes one and one only of your callbacks so it works - you will need to go through all the others working out what gets sent in and what comes out...
-
There is a preset file with the following content!
-
@d-healey said in inline function:
@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 isnt because you cant say this apparently:
local presetFile = FileSystem.findFiles(getPresetFolder(),presetName + ".preset", true);
instead you have to say this:
local tempName = presetName + ".preset"; local presetFile = FileSystem.findFiles(getPresetFolder(), tempName, true);
-
I just tried loading the snippet Lindon posted and it seems to work just fine on my system.
You need to add more checking statements to validate that the data you are expecting at each stage is actually returned. Currently the script has no checks and just assumes that all data will be there and will be correct.