A jsui replacement for the preset object. tc.preset is a jsui clone of the preset object, but loaded with more features, such as preset organization through drag and drop, display as a scrollable list, auto-rewrite the saved JSON/XML file after any change. Contrary to the preset object, tc.preset has to be used in conjonction with a pattrstorage object. Théophile Clet preset pattrstorage jsui Name of the pattrstorage to control Name of the pattrstorage this object should be linked to. Link to named pattrstorage object The word 'pattrstorage' followed by the name of an existing pattrstorage links the jsui to that pattrstorage. Make sure that pattrstorage outlet is connected to the jsui left inlet prior to send the message. If the word `pattrstorage`is sent alone, the jsui is unlinked from any pattrstorage. Resync the jsui to the pattrstorage The word 'resync' will repopulate the jsui with the current preset list from the pattrstorage. It is usefull in case you add/remove/edit presets without using the jsui. Lock or unlock selected preset The word 'setlock' followed by a 0 or a 1 respectively unlocks or locks the currently selected preset in the jsui. Note that if select_mode is set to 1, the selected preset is not necessarily the last recalled one. Set the name of the selected preset The word 'setslotname' followed by a symbol sets that symbol as the name of the currently selected preset in the jsui. Note that if select_mode is set to 1, the selected preset is not necessarily the last recalled one. Set the name of the selected preset Same as setslotname. Allows to connect the leftmost outlet of a textedit to the jsui and use it as an interface to rename the selected presets. Slot size Size of the preset slots