Compare commits
	
		
			3 Commits
		
	
	
		
			ac2c71a75e
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 717fe34acc | |||
| 76969558ed | |||
| e1d57b0683 | 
@@ -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 ]
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -198,6 +198,7 @@ function slot(left, top, right, bottom, name, lock, interp, color_index, color_c
 | 
			
		||||
function loadbang() {
 | 
			
		||||
    // post("loadbang\n");
 | 
			
		||||
    has_loaded = true;
 | 
			
		||||
    this.box.setboxattr('border', 0);
 | 
			
		||||
    find_pattrstorage(pattrstorage_name);
 | 
			
		||||
    if (!pattrstorage_name) {
 | 
			
		||||
        psto_auto_link_task.repeat();
 | 
			
		||||
@@ -1523,10 +1524,12 @@ function find_textedit() {
 | 
			
		||||
            textedit_obj = cords.outputs[c].dstobject;
 | 
			
		||||
            textedit_obj.setattr('keymode', 1);
 | 
			
		||||
            textedit_obj.setattr('lines', 1);
 | 
			
		||||
            textedit_obj.setattr('nosymquotes', 1);
 | 
			
		||||
            textedit_obj.message('set');
 | 
			
		||||
            break;
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
find_textedit.local = 1;
 | 
			
		||||
 | 
			
		||||
@@ -1709,8 +1712,15 @@ function onclick(x,y,but,cmd,shift,capslock,option,ctrl)
 | 
			
		||||
                outlet(3, "set", slots[last_hovered].lock);
 | 
			
		||||
            }
 | 
			
		||||
        } else if (output == "rename") {
 | 
			
		||||
            select(last_hovered);
 | 
			
		||||
            set_textedit(last_hovered);
 | 
			
		||||
            if (!textedit_obj) {
 | 
			
		||||
                find_textedit();
 | 
			
		||||
            }
 | 
			
		||||
            if (textedit_obj) {
 | 
			
		||||
                select(last_hovered);
 | 
			
		||||
                set_textedit(last_hovered);
 | 
			
		||||
            } else {
 | 
			
		||||
                error('No textedit connected to tc.preset third outlet.');
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
            to_pattrstorage(output, last_hovered);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user