Is it possible to set a gate’s state from JS without targeting a number box or toggle connected to gate?
Also, if the above is possible, is it possible to address different inlets of an object? (Not sure why I would need this now, but probably good to know).
Hi – if the scripting name of the gate is ‘my_gate’ then you can call:
this.patcher.getnamed( ‘my_gate’ ).int( val );
which will send the int ‘val’ to the gate object (i.e. open that outlet)
don’t know if you can target an inlet specifically, not something have needed to do so far
Thanks Lee, presumably .float works as I expect as well? Could you point me to the relavent documentation?
Nice to hear someone making decent dance tracks on the forum too!
thanks for you kind words :)
if you look at the gate documentation, float and int are treated the same…, both will select the gate outlet…
C74 RSS Feed | © Copyright Cycling '74