Compare commits

...

11 Commits

9 changed files with 6304 additions and 6246 deletions

View File

@@ -72,6 +72,13 @@
With no argument, it resets colors for the select preset to default values.
</description>
</method>
<method name="move">
<digest>Move a preset to another slot</digest>
<description> The word move followed by two integers move the stored preset located in the slot designaded by the first integer to the slot designated by the second integer.
This is the message equivalent of dragging a preset with the mouse.
If a preset gets moved to a slot with another existing preset, that preset and the subsequent ones will be offset by 1 slot.
</description>
</method>
<method name="pattrstorage">
<digest>Link to named pattrstorage object</digest>
<description>The word 'pattrstorage' followed by the name of an existing pattrstorage links the jsui to that pattrstorage.

View File

@@ -1,202 +1,251 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 9,
"minor" : 1,
"revision" : 0,
"architecture" : "x64",
"modernui" : 1
"patcher": {
"fileversion": 1,
"appversion": {
"major": 9,
"minor": 1,
"revision": 0,
"architecture": "x64",
"modernui": 1
},
"classnamespace": "box",
"rect": [ 371.0, 273.0, 483.0, 443.0 ],
"toolbarvisible": 0,
"lefttoolbarpinned": 2,
"toptoolbarpinned": 2,
"righttoolbarpinned": 2,
"bottomtoolbarpinned": 2,
"toolbars_unpinned_last_save": 15,
"enablehscroll": 0,
"enablevscroll": 0,
"boxes": [
{
"box": {
"hidden": 1,
"id": "obj-17",
"linecount": 5,
"maxclass": "message",
"numinlets": 2,
"numoutlets": 1,
"outlettype": [ "" ],
"patching_rect": [ 9.0, 354.0, 144.0, 76.0 ],
"text": ";\rmax launchbrowser https://www.paypal.com/donate/?hosted_button_id=AVGJ5JLTP76K8"
}
,
"classnamespace" : "box",
"rect" : [ 371.0, 273.0, 483.0, 443.0 ],
"gridsize" : [ 15.0, 15.0 ],
"toolbarvisible" : 0,
"lefttoolbarpinned" : 2,
"toptoolbarpinned" : 2,
"righttoolbarpinned" : 2,
"bottomtoolbarpinned" : 2,
"toolbars_unpinned_last_save" : 15,
"enablehscroll" : 0,
"enablevscroll" : 0,
"assistshowspatchername" : 0,
"commentary" : "",
"showcommentary" : 0,
"boxes" : [ {
"box" : {
"hidden" : 1,
"id" : "obj-17",
"linecount" : 5,
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 9.0, 354.0, 116.0, 76.0 ],
"text" : ";\rmax launchbrowser https://glucose47.gumroad.com/l/tc_preset"
},
{
"box": {
"id": "obj-13",
"linecount": 3,
"maxclass": "comment",
"numinlets": 1,
"numoutlets": 0,
"patching_rect": [ 166.5, 373.0, 150.0, 47.0 ],
"text": "GPL 3.0\n© Théophile Clet, 2025\nClick here to support",
"textcolor": [ 0.0, 0.0, 0.0, 0.5 ],
"textjustification": 1
}
},
{
"box": {
"fontsize": 16.0,
"id": "obj-11",
"maxclass": "comment",
"numinlets": 1,
"numoutlets": 0,
"patching_rect": [ 82.0, 81.0, 319.0, 24.0 ],
"text": "A jsui/v8ui replacement for the preset object"
}
, {
"box" : {
"id" : "obj-13",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 166.5, 373.0, 150.0, 47.0 ],
"text" : "GPL 3.0\n© Théophile Clet, 2025\nClick here to support",
"textcolor" : [ 0.0, 0.0, 0.0, 0.5 ],
"textjustification" : 1
},
{
"box": {
"embedstate": [
[ "margin", 4 ],
[ "bubblesize", 14 ],
[ "fontsize", 14 ],
[ "color_5", 0.283, 0.606, 0.559, 1 ],
[ "scrollable", 0 ],
[ "text_color", 0.129, 0.129, 0.129, 1 ],
[ "color_2", 0.679, 0.405, 0.669, 1 ],
[ "recall_passthrough", 1 ],
[ "fontname", "Arial" ],
[ "display_interp", 1 ],
[ "edited_color", 1, 0.49, 0.263, 1 ],
[ "send_name", "none" ],
[ "stored_slot_color", 0.502, 0.502, 0.502, 1 ],
[ "autowriteagain", 0 ],
[ "ui_rename", 0 ],
[ "color_4", 0.367, 0.542, 0.712, 1 ],
[ "bgcolor", 0.2, 0.2, 0.2, 1 ],
[ "color_mode", 0 ],
[ "min_rows", 10 ],
[ "ignoreslotzero", 1 ],
[ "spacing", 4 ],
[ "color_1", 0.743, 0.41, 0.501, 1 ],
[ "empty_slot_color", 0.349, 0.349, 0.349, 1 ],
[ "use_uid", 0 ],
[ "slot_round", 0 ],
[ "color_6", 0.316, 0.616, 0.377, 1 ],
[ "interp_slot_color", 1, 1, 1, 0.8 ],
[ "menu_mode", 0 ],
[ "text_bg_color", 1, 1, 1, 0.5 ],
[ "select_mode", 0 ],
[ "color_3", 0.527, 0.459, 0.756, 1 ],
[ "active_slot_color", 0.808, 0.898, 0.91, 1 ],
[ "nbslot_edit", 1 ],
[ "unique_names", 0 ],
[ "layout", 1 ],
[ "poll_edited", 0 ]
],
"filename": "tc.preset",
"id": "obj-8",
"maxclass": "jsui",
"numinlets": 1,
"numoutlets": 5,
"outlettype": [ "", "", "", "", "" ],
"parameter_enable": 0,
"patching_rect": [ 254.0, 153.0, 130.0, 58.0 ]
}
},
{
"box": {
"hidden": 1,
"id": "obj-7",
"maxclass": "newobj",
"numinlets": 1,
"numoutlets": 1,
"outlettype": [ "" ],
"patching_rect": [ 9.0, 301.0, 51.0, 22.0 ],
"text": "pcontrol"
}
, {
"box" : {
"fontsize" : 16.0,
"id" : "obj-11",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 99.0, 81.0, 285.0, 24.0 ],
"text" : "A jsui replacement for the preset object"
},
{
"box": {
"hidden": 1,
"id": "obj-6",
"maxclass": "message",
"numinlets": 2,
"numoutlets": 1,
"outlettype": [ "" ],
"patching_rect": [ 9.0, 274.0, 165.0, 22.0 ],
"text": "loadunique tc.preset.maxhelp"
}
},
{
"box": {
"fontsize": 20.0,
"id": "obj-4",
"maxclass": "textbutton",
"numinlets": 1,
"numoutlets": 3,
"outlettype": [ "", "", "int" ],
"parameter_enable": 0,
"patching_rect": [ 162.0, 282.0, 159.0, 41.0 ],
"text": "Open helper file"
}
, {
"box" : {
"embedstate" : [ [ "margin", 4 ], [ "bgcolor", 0.2, 0.2, 0.2, 1 ], [ "scrollable", 0 ], [ "interp_slot_color", 1, 1, 1, 0.8 ], [ "layout", 1 ], [ "color_4", 0.367, 0.542, 0.712, 1 ], [ "autowriteagain", 0 ], [ "display_interp", 1 ], [ "text_bg_color", 1, 1, 1, 0.5 ], [ "select_mode", 0 ], [ "color_mode", 0 ], [ "color_5", 0.283, 0.606, 0.559, 1 ], [ "empty_slot_color", 0.349, 0.349, 0.349, 1 ], [ "ignoreslotzero", 1 ], [ "color_1", 0.743, 0.41, 0.501, 1 ], [ "text_color", 0.129, 0.129, 0.129, 1 ], [ "spacing", 4 ], [ "slot_round", 0 ], [ "color_6", 0.316, 0.616, 0.377, 1 ], [ "active_slot_color", 0.808, 0.898, 0.91, 1 ], [ "menu_mode", 0 ], [ "bubblesize", 14 ], [ "min_rows", 10 ], [ "color_2", 0.679, 0.405, 0.669, 1 ], [ "fontsize", 14 ], [ "send_name", "none" ], [ "stored_slot_color", 0.502, 0.502, 0.502, 1 ], [ "fontname", "Arial" ], [ "color_3", 0.527, 0.459, 0.756, 1 ] ],
"filename" : "tc.preset",
"id" : "obj-8",
"maxclass" : "jsui",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "", "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 254.0, 153.0, 130.0, 58.0 ]
},
{
"box": {
"embedstate": [
[ "margin", 4 ],
[ "bubblesize", 14 ],
[ "fontsize", 14 ],
[ "color_5", 0.283, 0.606, 0.559, 1 ],
[ "scrollable", 0 ],
[ "text_color", 0.129, 0.129, 0.129, 1 ],
[ "color_2", 0.679, 0.405, 0.669, 1 ],
[ "recall_passthrough", 1 ],
[ "fontname", "Arial" ],
[ "display_interp", 1 ],
[ "edited_color", 1, 0.49, 0.263, 1 ],
[ "send_name", "none" ],
[ "stored_slot_color", 0.502, 0.502, 0.502, 1 ],
[ "autowriteagain", 0 ],
[ "ui_rename", 0 ],
[ "color_4", 0.367, 0.542, 0.712, 1 ],
[ "bgcolor", 0.2, 0.2, 0.2, 1 ],
[ "color_mode", 0 ],
[ "min_rows", 10 ],
[ "ignoreslotzero", 1 ],
[ "spacing", 4 ],
[ "color_1", 0.743, 0.41, 0.501, 1 ],
[ "empty_slot_color", 0.349, 0.349, 0.349, 1 ],
[ "use_uid", 0 ],
[ "slot_round", 0 ],
[ "color_6", 0.316, 0.616, 0.377, 1 ],
[ "interp_slot_color", 1, 1, 1, 0.8 ],
[ "menu_mode", 0 ],
[ "text_bg_color", 1, 1, 1, 0.5 ],
[ "select_mode", 0 ],
[ "color_3", 0.527, 0.459, 0.756, 1 ],
[ "active_slot_color", 0.808, 0.898, 0.91, 1 ],
[ "nbslot_edit", 1 ],
[ "unique_names", 0 ],
[ "layout", 0 ],
[ "poll_edited", 0 ]
],
"filename": "tc.preset",
"id": "obj-3",
"maxclass": "jsui",
"numinlets": 1,
"numoutlets": 5,
"outlettype": [ "", "", "", "", "" ],
"parameter_enable": 0,
"patching_rect": [ 99.0, 153.0, 130.0, 58.0 ]
}
},
{
"box": {
"fontface": 1,
"fontsize": 48.0,
"id": "obj-2",
"maxclass": "comment",
"numinlets": 1,
"numoutlets": 0,
"patching_rect": [ 137.0, 16.0, 209.0, 60.0 ],
"text": "tc.preset",
"textjustification": 1
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 9.0, 301.0, 51.0, 22.0 ],
"text" : "pcontrol"
},
{
"box": {
"bgcolor": [ 0.2, 0.2, 0.2, 0.0 ],
"fontsize": 20.0,
"id": "obj-15",
"maxclass": "textbutton",
"numinlets": 1,
"numoutlets": 3,
"outlettype": [ "", "", "int" ],
"parameter_enable": 0,
"patching_rect": [ 166.5, 373.0, 150.0, 47.0 ],
"text": "Open helper file",
"textoncolor": [ 0.807843137254902, 0.898039215686275, 0.909803921568627, 0.0 ],
"textovercolor": [ 0.929411764705882, 0.929411764705882, 0.352941176470588, 0.0 ]
}
}
, {
"box" : {
"hidden" : 1,
"id" : "obj-6",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 9.0, 274.0, 165.0, 22.0 ],
"text" : "loadunique tc.preset.maxhelp"
}
}
, {
"box" : {
"fontsize" : 20.0,
"id" : "obj-4",
"maxclass" : "textbutton",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 162.0, 282.0, 159.0, 41.0 ],
"text" : "Open helper file"
}
}
, {
"box" : {
"embedstate" : [ [ "margin", 4 ], [ "bgcolor", 0.2, 0.2, 0.2, 1 ], [ "scrollable", 0 ], [ "interp_slot_color", 1, 1, 1, 0.8 ], [ "layout", 0 ], [ "color_4", 0.367, 0.542, 0.712, 1 ], [ "autowriteagain", 0 ], [ "display_interp", 1 ], [ "text_bg_color", 1, 1, 1, 0.5 ], [ "select_mode", 0 ], [ "color_mode", 0 ], [ "color_5", 0.283, 0.606, 0.559, 1 ], [ "empty_slot_color", 0.349, 0.349, 0.349, 1 ], [ "ignoreslotzero", 1 ], [ "color_1", 0.743, 0.41, 0.501, 1 ], [ "text_color", 0.129, 0.129, 0.129, 1 ], [ "spacing", 4 ], [ "slot_round", 0 ], [ "color_6", 0.316, 0.616, 0.377, 1 ], [ "active_slot_color", 0.808, 0.898, 0.91, 1 ], [ "menu_mode", 0 ], [ "bubblesize", 14 ], [ "min_rows", 10 ], [ "color_2", 0.679, 0.405, 0.669, 1 ], [ "fontsize", 14 ], [ "send_name", "none" ], [ "stored_slot_color", 0.502, 0.502, 0.502, 1 ], [ "fontname", "Arial" ], [ "color_3", 0.527, 0.459, 0.756, 1 ] ],
"filename" : "tc.preset",
"id" : "obj-3",
"maxclass" : "jsui",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "", "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 99.0, 153.0, 130.0, 58.0 ]
}
}
, {
"box" : {
"fontface" : 1,
"fontsize" : 48.0,
"id" : "obj-2",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 137.0, 16.0, 209.0, 60.0 ],
"text" : "tc.preset",
"textjustification" : 1
}
}
, {
"box" : {
"bgcolor" : [ 0.2, 0.2, 0.2, 0.0 ],
"fontsize" : 20.0,
"id" : "obj-15",
"maxclass" : "textbutton",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 166.5, 373.0, 150.0, 47.0 ],
"text" : "Open helper file",
"textoncolor" : [ 0.807843137254902, 0.898039215686275, 0.909803921568627, 0.0 ],
"textovercolor" : [ 0.929411764705882, 0.929411764705882, 0.352941176470588, 0.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"hidden" : 1,
"source" : [ "obj-15", 0 ]
"lines": [
{
"patchline": {
"destination": [ "obj-17", 0 ],
"hidden": 1,
"source": [ "obj-15", 0 ]
}
},
{
"patchline": {
"destination": [ "obj-6", 0 ],
"hidden": 1,
"source": [ "obj-4", 0 ]
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"hidden" : 1,
"source" : [ "obj-4", 0 ]
},
{
"patchline": {
"destination": [ "obj-7", 0 ],
"hidden": 1,
"source": [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"hidden" : 1,
"source" : [ "obj-6", 0 ]
}
}
],
"dependency_cache" : [ {
"name" : "tc.preset.js",
"bootpath" : "~/Documents/Max 9/Packages/tc.preset/javascript",
"patcherrelativepath" : "../javascript",
"type" : "TEXT",
"implicit" : 1
"autosave": 0
}
],
"autosave" : 0
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"pattrstorage": {
"name": "test",
"name": "tcpreset_help",
"slots": {
"1": {
"id": 1,
@@ -36,6 +36,13 @@
"data": {
"u099005226": [ 1.0, 0.6875, 0.21875, -0.15625, -0.46875, -1.0, -0.65625, -0.1875, 0.09375, -0.1875, -0.59375, -1.0, -0.5625, -0.1875, 0.40625, 1.0 ]
}
},
"17": {
"id": 17,
"name": "Bell",
"data": {
"u099005226": [ -0.8974358974358975, -0.8461538461538461, -0.6923076923076923, -0.3846153846153846, 0.15384615384615374, 0.5897435897435896, 0.8974358974358974, 0.9743589743589745, 0.8461538461538463, 0.5641025641025641, 0.20512820512820507, -0.1282051282051282, -0.5384615384615384, -0.6923076923076923, -0.8205128205128205, -0.8717948717948718 ]
}
}
}
}

View File

@@ -1,3 +1,3 @@
max setdefinepackage tc.preset pattrstorage;
max define tc.preset v8ui @filename tc.preset @jsarguments;
max define tc.preset v8ui @filename tc.preset;
max setdefinepackage "" "";

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{
"name" : "tc.preset",
"displayname" : "",
"version" : "1.0.0",
"version" : "1.2.0",
"author" : "Théophile Clet",
"authors" : [ ],
"description" : "A jsui replacement for the preset object",

View File

@@ -1,7 +1,7 @@
{
"name" : "tc.preset",
"displayname" : "",
"version" : "1.0.0",
"version" : "1.2.0",
"author" : "Théophile Clet",
"authors" : [ ],
"description" : "A v8ui replacement for the preset object",
@@ -9,7 +9,7 @@
"website" : "https://github.com/Teufeuleu/tc.preset/",
"extends" : "",
"extensible" : 0,
"max_version_min" : "9.0.7",
"max_version_min" : "9.1.0",
"max_version_max" : "none",
"os" : {
"macintosh" : {