Methods
-
A friend of mine (who actually codes) is looking to get into HISE.
He has a question that I can’t answer.
Question:
“ Can you use JavaScript array methods (.map, .forEach etc) in HISE”“ also string methods(.toUpper etc) ”
Not sure what that means but I know someone will.
Thanks!
-
Method is another word for function.
Start by telling him that HISEScript is not JavaScript, it's its own language.
HISEScript does have a map function for arrays.
It does have a
toUpperCase
function (check out the strings section of the API).It doesn't have the JavaScript
forEach
function, but you can achieve the same results using afor in
loop. -
@FatMitchell point him at the array documentation:
https://docs.hise.audio/scripting/scripting-api/array/index.html
-
Thank you both!!! Exactly what I needed.