Generate Random Points on a Table Editor by Script



  • I would like to create random points on a table editor on the front interface, but the "addTablePoint" functionality seems to not exist anymore. This table would then be connected to an LFO to control gain. Is there any way I can feasibly accomplish this? I'm pretty sure all I would need is the ability to add points to the table editor.

    Any help is appreciated!
    Thanks



  • That function is still there. Just make sure you get the module as a table processor.

    c595cc67-29e9-4953-b073-77536c9f0a0a-image.png

    Here's a simple example:

    HiseSnippet 1358.3oc6Xs0aaaCElx1bK1ctXEqXOLrAHDfA3flEXmaccEC0MNWfwxE2X2rhMfUvHQGSDIRMIpzjUjeC6uzdcuseJ6ev1gjxVxINN1XIEoXUODjy4vC4GO2oaEJbnQQhPjUwNmEPQVeBt8YbYuF8HLNp45Hq6i2gDIog1FVqcV.IJh5hrrxukhgUwBH82e+r0HdDtCMkEBcff4P2l4yjobaU+GXddaRbocX9YV8x0a5H3MDdhX.O4wUQADmiIGQ2knVVNLx5i1vkIEgskDIMBYUXMg6Ys6IdC2r9CXQrC8nJhZn1vFYXuovyUgXEWTidLO2V8u2QHXSakZExarBODuCykMfep03S0BrS0Hq8vJ23fWsrvq5jCOqLvqfAdO.21IjEHSknv18vM4fipKAbAYgkYsnbt4vMDvJ3xE7IGS2LDHFnQkUqVcd6UpVctmVtT4RfiHRZeBIzdKOwgDOkm5.RHivk6Hbi8Hv0rl82aqCVV3HZJ2JyZzvVohchN1oJMq4.XbOFmZ2Ml6HYBtsfuVrTJ30TPLT3UwQ3GH3.XmGfgWLctxkda4R1vGqqck9rTzIrUedBG3jkG5APaL.eARTGB3IFX+pX.U+sA1fEBoQTYEs4HKahqqQUAiChm2dGBX.BIbWgek4t.4bOsup5837xkNWeN8cCfcqQ+qYkYSL.yN2BQJ9ZyPChm2gPVPkKZeT3JiwaWgjtGuxbkdaohkN+RR51cThR1JOZ3njprbgiQsJ7X+Cog8cOIqChQGNI.e0IAYyQcLljLKTvaxYx8Bn7qJ0.kXGgjjbIfBVpTmhb+jTDiUCwfLgh3DSHRi3rkoPCTufQ8xIpq80ZsmAq++QnrKQRPVqfWZ0EF96j8Z8he5EO5Uga4+3FZZ3OcejRzSLzHzKattRcHOM4x.Wv.ZnjorcVqSOApeZR5KhWmFcrTDnusIQMP0qI39dZJbeV8yxRvh1Q3C6CIDXakSROUpJjruN.l8aTkkYvQ8wWqs4zrUySOn+3Wp+FlqrGDMX8mVHTOJ6ndRE0S.pf9tzlvVYiGe4Cn8wkJGBEk6KOakZU6oDAPf6PkDUk83QL4YYaecqT9dRg6CvsXRmdiFu4FAdUA82x3MoYXY7Fc6Rcjofs.dyWc624KKTlw.kuHI5H0.BIM.pnlNfeU+fmAxsGrfZiYzk+ZRGcIXhGcwJ+DaQlhQUJbmdTkIMV+ytjaJZ5yNyOYH9ZFnprAlX71atWhUC9uTfs30CrMCo+ZLk6jg4L0UgHMSivp+60+QxIzthP+jh4CTea5QvAkkSGJTwEFrxIazXaegP1iwOZ3.uGVeagHXCtp7qa1MoQbjT32+PQVeMdwkuT6oK0NpsjFn6GY8y3U0qOi7k16lgFMEtxZi2Ulahi3Td0AtOk+8Nd+.ChGDa8d.hGaGr7++rC19hXIjyBOJHjAyFg2M1uMzhvgBHgyodp4isxol+zPWUQqS2obWMw+.eIBqonsRDVquvrW26att2C2F53oeZl9x94ZZaUw.6snPuPyjTuS6GtmiDN9NvKihBDQCswso9rNvHlQYY9xHpJ3eeUjTV9MDjvQJBJDCWxQpSahLNTGR9beQLWNTH3G5SeKNB8MSS5jg+9R7U+jdMdu12Nbs3Gh5LupQOy8Iv6vLKVyb8+CuyCFCkS0OfFYM+3lR86tv3G2X8J+PY761kweWbF9DmPwqcL+VGprrYzbf6MW+SrVDuih1dvOxgx13CUmdsiixX+Mf0YzZr3TqwRSsFKO0ZrxTqwpSsFOdp03aGiFpVAOOFlb2j5ALZsgoti0fg7sxi9W3jPV8K
    


  • Thanks @d-healey! This is exactly what I was looking for 🙂



  • @d-healey david
    Looks Like It's Not Possible To Generate Random Points On A Table In
    " Shape Fx >>> Curve Shape "
    Right?



  • @d-healey Yeah It Works 🙂



  • @d-healey said in Generate Random Points on a Table Editor by Script:

    HiseSnippet 1358.3oc6Xs0aaaCElx1bK1ctXEqXOLrAHDfA3flEXmaccEC0MNWfwxE2X2rhMfUvHQGSDIRMIpzjUjeC6uzdcuseJ6ev1gjxVxINN1XIEoXUODjy4vC4GO2oaEJbnQQhPjUwNmEPQVeBt8YbYuF8HLNp45Hq6i2gDIog1FVqcV.IJh5hrrxukhgUwBH82e+r0HdDtCMkEBcff4P2l4yjobaU+GXddaRbocX9YV8x0a5H3MDdhX.O4wUQADmiIGQ2knVVNLx5i1vkIEgskDIMBYUXMg6Ys6IdC2r9CXQrC8nJhZn1vFYXuovyUgXEWTidLO2V8u2QHXSakZExarBODuCykMfep03S0BrS0Hq8vJ23fWsrvq5jCOqLvqfAdO.21IjEHSknv18vM4fipKAbAYgkYsnbt4vMDvJ3xE7IGS2LDHFnQkUqVcd6UpVctmVtT4RfiHRZeBIzdKOwgDOkm5.RHivk6Hbi8Hv0rl82aqCVV3HZJ2JyZzvVohchN1oJMq4.XbOFmZ2Ml6HYBtsfuVrTJ30TPLT3UwQ3GH3.XmGfgWLctxkda4R1vGqqck9rTzIrUedBG3jkG5APaL.eARTGB3IFX+pX.U+sA1fEBoQTYEs4HKahqqQUAiChm2dGBX.BIbWgek4t.4bOsup5837xkNWeN8cCfcqQ+qYkYSL.yN2BQJ9ZyPChm2gPVPkKZeT3JiwaWgjtGuxbkdaohkN+RR51cThR1JOZ3njprbgiQsJ7X+Cog8cOIqChQGNI.e0IAYyQcLljLKTvaxYx8Bn7qJ0.kXGgjjbIfBVpTmhb+jTDiUCwfLgh3DSHRi3rkoPCTufQ8xIpq80ZsmAq++QnrKQRPVqfWZ0EF96j8Z8he5EO5Uga4+3FZZ3OcejRzSLzHzKattRcHOM4x.Wv.ZnjorcVqSOApeZR5KhWmFcrTDnusIQMP0qI39dZJbeV8yxRvh1Q3C6CIDXakSROUpJjruN.l8aTkkYvQ8wWqs4zrUySOn+3Wp+FlqrGDMX8mVHTOJ6ndRE0S.pf9tzlvVYiGe4Cn8wkJGBEk6KOakZU6oDAPf6PkDUk83QL4YYaecqT9dRg6CvsXRmdiFu4FAdUA82x3MoYXY7Fc6Rcjofs.dyWc624KKTlw.kuHI5H0.BIM.pnlNfeU+fmAxsGrfZiYzk+ZRGcIXhGcwJ+DaQlhQUJbmdTkIMV+ytjaJZ5yNyOYH9ZFnprAlX71atWhUC9uTfs30CrMCo+ZLk6jg4L0UgHMSivp+60+QxIzthP+jh4CTea5QvAkkSGJTwEFrxIazXaegP1iwOZ3.uGVeagHXCtp7qa1MoQbjT32+PQVeMdwkuT6oK0NpsjFn6GY8y3U0qOi7k16lgFMEtxZi2Ulahi3Td0AtOk+8Nd+.ChGDa8d.hGaGr7++rC19hXIjyBOJHjAyFg2M1uMzhvgBHgyodp4isxol+zPWUQqS2obWMw+.eIBqonsRDVquvrW26att2C2F53oeZl9x94ZZaUw.6snPuPyjTuS6GtmiDN9NvKihBDQCswso9rNvHlQYY9xHpJ3eeUjTV9MDjvQJBJDCWxQpSahLNTGR9beQLWNTH3G5SeKNB8MSS5jg+9R7U+jdMdu12Nbs3Gh5LupQOy8Iv6vLKVyb8+CuyCFCkS0OfFYM+3lR86tv3G2X8J+PY761kweWbF9DmPwqcL+VGprrYzbf6MW+SrVDuih1dvOxgx13CUmdsiixX+Mf0YzZr3TqwRSsFKO0ZrxTqwpSsFOdp03aGiFpVAOOFlb2j5ALZsgoti0fg7sxi9W3jPV8K

    The snippet is not working.



  • @Tania-Mosh In what way is it not working?



  • @d-healey I am totally new into Hise so I was trying to learn from snippets. I have tried other snippets that worked but when I copied those snippets into HISE nothing happened.







  • The snippet works for me. Are you using the Scriptnode branch of HISE? BTW you don't need to drag/highlight the snippet to copy it, just double click the box to highlight it, then copy it.



  • @d-healey OK..
    Yeah! I am using Scriptnode branch. In my first post, you guided me to use "Scriptnode". I am using it.

    Cheers !!
    TM



  • @Natan hmmmm, can't get it to work on ShapeFX here, how did you do it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TOJ6ndRE0S.pf9tzlvVYiGe4Cn8wkJGBEk6KOakZU6oDAPf6PkDUk83QL4YYaecqT9dRg6CvsXRmdiFu4FAdUA82x3MoYXY7Fc6Rcjofs.dyWc624KKTlw.kuHI5H0.BIM.pnlNfeU+fmAxsGrfZiYzk+ZRGcIXhGcwJ+DaQlhQUJbmdTkIMV+ytjaJZ5yNyOYH9ZFnprAlX71atWhUC9uTfs30CrMCo+ZLk6jg4L0UgHMSivp+60+QxIzthP+jh4CTea5QvAkkSGJTwEFrxIazXaegP1iwOZ3.uGVeagHXCtp7qa1MoQbjT32+PQVeMdwkuT6oK0NpsjFn6GY8y3U0qOi7k16lgFMEtxZi2Ulahi3Td0AtOk+8Nd+.ChGDa8d.hGaGr7++rC19hXIjyBOJHjAyFg2M1uMzhvgBHgyodp4isxol+zPWUQqS2obWMw+.eIBqonsRDVquvrW26att2C2F53oeZl9x94ZZaUw.6snPuPyjTuS6GtmiDN9NvKihBDQCswso9rNvHlQYY9xHpJ3eeUjTV9MDjvQJBJDCWxQpSahLNTGR9beQLWNTH3G5SeKNB8MSS5jg+9R7U+jdMdu12Nbs3Gh5LupQOy8Iv6vLKVyb8+CuyCFCkS0OfFYM+3lR86tv3G2X8J+PY761kweWbF9DmPwqcL+VGprrYzbf6MW+SrVDuih1dvOxgx13CUmdsiixX+Mf0YzZr3TqwRSsFKO0ZrxTqwpSsFOdp03aGiFpVAOOFlb2j5ALZsgoti0fg7sxi9W3jPV8K

    Does anybody know how to randomize all of the nodes in the snippet above?
    I've noticed that only the center node changes when the randomize button is clicked.



  • Just in case anybody else wanted to know how to randomize all points.... Here you go!

    HiseSnippet 1400.3oc6XssaaTDFdV6LPhKNhJp3BDHsJW4nFrryIBTgpabNfUSZrhSKHgDUS1cb7P1clkcmMslReFnOR7HvKBR7F.+yL6I2353llTUDcuvxy+Ley9M+mmsanvgFEIBQVyczv.Jx5iv8FxkCZOfv3nNagrlGuOIRRCsMh1bX.IJh5hrrJuqRf0byfzO+8c2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Cu4MzDi2amCRzZv+xI1xWLw1Ij9KwTtSAgy1R4hzI2Cq0u256ImQ6KB8SRpmAeO5IvKpnjinPlWnSOmhdi87EB4.F+jQc7tUq8Dhfs4pzvtE2jtCHQpd.f9JJtMsiijB+Ttn6xumjFnqEY8i30WsttTk52uVUpZkCtZFidMLeMmr4qzT6korjYlLkM8c7Z.FFm4O8e.FOwpVk++YUqCEwRHNEtSPHC5KB+fX+dPYAGJvDNm5o5M1pjJVzLtgZrNDmxc0C9G3IYxlpwVIS1LcRz4yfcCbOnJm99g5C6mpGaqhzs2kB0+LcO8VsF3ANR30eDbwnn.QzHabOpO6Hn8xnhBeXDU47enxSZjjVBR3XmBR9BGxwhoGQFGpcIumuHlORRv2Wa95rs4qlByIM7843W82UPy2K79BWH+AuNyMZz8YeFbGLyh0B25M3NdPqmbp91yHqklTmoeyK0xwUVsx2mF+c6z3uMdG9DmPwicLemCUT1rZIv4lq+Nuyg2WM1N6CbfwMp2.4C4mdriiRc+kf9Y7XV9RfYkKAlUuDXV6RfY8KAlu5RfYiIhQUZ3dwPa5lPQPP2sM4grxZz2pL5eoqx5AL
    


  • @LeeC said in Generate Random Points on a Table Editor by Script:

    I do! Great work - funny that the last point is always curved? Changing the curve value doesn't seem to change it?

    Also - Does it work in ShapeFX your end?

    Thanks Lee



  • @DanH I'm trying to find away to randomize the table in the ShapeFX with no luck so far, still trying though.



  • @DanH I don't think it's possible to control the shape FX table points through scripting.



  • @DanH

    Here you go... This snippet should randomise the ShapeFX as far as I can see.

    Not sure why there's always a curve up to that last node point though.

    HiseSnippet 1620.3oc6Y8+aSaDE2NodqMaEMzPSSSaRV8mREcQIsPJLzDgl1TBKsIpozUzjF5p8klCruyy9bnEF+99sweR6OgIs+Q1+Aau6Nm3ysgzPTAwlvfP48t267m688yzIj4fihXgFlKr+oAXCyO0p6oTd+58QDpQyMMLuh0NnHNNzVwZiSCPQQXWCSy7aKXXtvbFxm+9taf7PTGbJKCiCXDGbKhOgmxsSsef340.4h2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