add interp_mode, change drag_mode behavior, add option hold to switch
between drag modes, change interp multi for gaussian distribution, doc update
This commit is contained in:
@@ -185,6 +185,11 @@
|
||||
<description>When set to 1, the jsui will display the ongoing interpolation between presets when a recall message with three arguments or a recallmulti message with at least one argument are sent to the linked pattrstorage.
|
||||
Notice that the recallmutli message needs to be sent both the pattrstorage and the jsui.</description>
|
||||
</attribute>
|
||||
<attribute name='drag_mode' get='1' set='1' type='int' size='1' >
|
||||
<digest>Drag Mode</digest>
|
||||
<description>Sets the behavior of click+drag interactions. 0 disables them, 1 (default) allows to move presets around, while 2 interpolates through presets, according to interp_mode. You can temporarily switch between modes 1 and 2 by holding option/alt.
|
||||
</description>
|
||||
</attribute>
|
||||
<attribute name='edited_color' get='1' set='1' type='list' size='4' >
|
||||
<digest>Edited Dot Color</digest>
|
||||
<description>Defines the color of the dot shown on top of a slot when the corresponding preset is edited. See poll_edited attribute.</description>
|
||||
@@ -193,6 +198,17 @@
|
||||
<digest>Empty slot color</digest>
|
||||
<description>Sets the empty slot color of the object in RGBA format</description>
|
||||
</attribute>
|
||||
<attribute name='interp_mode' get='1' set='1' type='int' size='1' >
|
||||
<digest>Interpolation mode</digest>
|
||||
<description>Defines the interpolation behavior occuring when click+dragging while drag_mode is set to 2. If 0 (disabled), nothing happens. If 1 (in-line interp), interpolation happens across adjacent presets, even if separated by empty slots. In mode 2 (multi interp), presets are interpolated using recallmulti pattrstorage feature. The closest a preset is from the mouse cursor, the more it will be weighted, according to a gaussian distribution. See interp_multi_radius to change the way distance from mouse affects the weight.
|
||||
If recall_passthrough is disabled, recall and recallmulti messages generated by dragging interactions are sent to tc.preset leftmost outlet only, letting the user to trigger custom logic before potentially re-routing them toward pattrstorage (recall) or both pattrstorage and tc.preset (recallmulti).
|
||||
</description>
|
||||
</attribute>
|
||||
<attribute name='interp_multi_radius' get='1' set='1' type='float' size='1' >
|
||||
<digest>Interp_multi Radius</digest>
|
||||
<description> Defines how distance between a preset and the mouse affects the weight of that preset when interpolating using interp_mode 2. A value of 3 means that all filled preset slots closer than roughly 3 slots in the presets grid will be part of the generated recallmulti message.
|
||||
</description>
|
||||
</attribute>
|
||||
<attribute name='layout' get='1' set='1' type='int' size='1' >
|
||||
<digest>How presets are displayed</digest>
|
||||
<description>When set to 0, the jsui mimics the default preset object: slots are displayed in a grid. When set to 1, they are displayed as a vertical list, with the preset slots on the left and their name on the right.</description>
|
||||
@@ -227,7 +243,7 @@
|
||||
</attribute>
|
||||
<attribute name='recall_passthrough' get='1' set='1' type='bool' size='1' >
|
||||
<digest>Send recall messages to pattrstorage directly</digest>
|
||||
<description>When enabled (default) recall messages triggered by clicking filled slots in tc.preset are sent directly to [pattrstorage]. When disabled, these recall messages are sent out of [tc.preset] left outlet and it's up to the user to pass them to [pattrstorage]. It can be usefull for triggering interpolations with custom logic.</description>
|
||||
<description>When enabled (default) recall messages triggered by clicking filled slots in tc.preset, or recall and recallmulti messages resulting from a dragging interaction with drag_mode set to 2, are sent directly to [pattrstorage]. When disabled, these recall/recallmulti messages are sent out of tc.prese] left outlet and it's up to the user to pass them to [pattrstorage].</description>
|
||||
</attribute>
|
||||
<attribute name='scrollable' get='1' set='1' type='bool' size='1' >
|
||||
<digest>Scroll through your presets</digest>
|
||||
|
||||
Reference in New Issue
Block a user