Logic Bug

Post your awesome Wire patches here, share tutorials
Post Reply
cat
Hasn't felt like this about software in a long time
Posts: 132
Joined: Fri Oct 08, 2004 11:03

Logic Bug

Post by cat »

This seems to be a logic bug to me
logic bug.jpg
(just noticed the double attached input, but it is the same without)

Code: Select all

{
	"connections": [
		{
			"from": [
				0,
				"sixteen"
			],
			"to": [
				1,
				"input0"
			]
		},
		{
			"from": [
				1,
				"output0"
			],
			"to": [
				2,
				"input0"
			]
		},
		{
			"from": [
				0,
				"sixteen"
			],
			"to": [
				2,
				"input0"
			]
		},
		{
			"from": [
				0,
				"sixteen"
			],
			"to": [
				5,
				"input0"
			]
		}
	],
	"inputOrder": [],
	"meta": {
		"author": "",
		"category": null,
		"deploymentTarget": {
			"branch": "",
			"name": "Wire",
			"version": {
				"major": 7,
				"minor": 18,
				"patch": 0
			}
		},
		"description": "",
		"displayName": "LogicBug",
		"identifier": "c8041095-ee4d-4783-a71c-8f653279e704",
		"licenseFile": "",
		"licenseName": "",
		"mail": "",
		"originalTarget": {
			"branch": "",
			"name": "Wire",
			"version": {
				"major": 7,
				"minor": 19,
				"patch": 2
			}
		},
		"quality": 32856,
		"resolution": {
			"height": 1080,
			"width": 1920
		},
		"saveTarget": {
			"branch": "",
			"name": "Wire",
			"version": {
				"major": 7,
				"minor": 19,
				"patch": 2
			}
		},
		"thumbnail": "",
		"url": "",
		"vendor": ""
	},
	"nextNodeId": 7,
	"nodes": {
		"0": {
			"attributes": {
				"flow": {
					"type": "flow",
					"value": "event"
				}
			},
			"bounds": {
				"height": 226,
				"width": 195,
				"x": 211.3756103515625,
				"y": 261.2724609375
			},
			"class": {
				"id": "77697265-6707-4A3C-9DFB-0DF782B8DB95",
				"version": 1
			},
			"clock": "video",
			"color": "ffff6a00",
			"constants": {},
			"hidden": [
				"flow"
			],
			"name": "Transport Beat",
			"thumbnail_visible": true
		},
		"1": {
			"attributes": {
				"flow": {
					"type": "flow",
					"value": "event"
				},
				"input0-dimensions": {
					"type": "integer",
					"value": 1
				},
				"input0-type": {
					"type": "type",
					"value": "integer"
				},
				"input1-dimensions": {
					"type": "integer",
					"value": 1
				},
				"input1-type": {
					"type": "type",
					"value": "integer"
				}
			},
			"bounds": {
				"height": 82,
				"width": 195,
				"x": 447.45501708984375,
				"y": 497.7274169921875
			},
			"class": {
				"id": "77697265-7AB6-4CFB-A7DE-15850425F630",
				"version": 1
			},
			"clock": "video",
			"color": "ffff6a00",
			"constants": {
				"input0": {
					"type": "integer",
					"value": 1336
				},
				"input1": {
					"type": "integer",
					"value": 8
				}
			},
			"hidden": [
				"flow",
				"input0-type",
				"input0-dimensions",
				"input1-type",
				"input1-dimensions"
			],
			"name": "Modulo",
			"thumbnail_visible": true
		},
		"2": {
			"attributes": {
				"flow": {
					"type": "flow",
					"value": "event"
				},
				"input0-dimensions": {
					"type": "integer",
					"value": 1
				},
				"input0-type": {
					"type": "type",
					"value": "integer"
				},
				"input1-dimensions": {
					"type": "integer",
					"value": 1
				},
				"input1-type": {
					"type": "type",
					"value": "integer"
				},
				"tolerance": {
					"type": "float",
					"value": 0.00999999977648258
				}
			},
			"bounds": {
				"height": 82,
				"width": 195,
				"x": 711.6243896484375,
				"y": 446.318115234375
			},
			"class": {
				"id": "77697265-BA5E-46C5-BAF6-33C56A5FBF44",
				"version": 2
			},
			"clock": "video",
			"color": "ffff6a00",
			"constants": {
				"input0": {
					"type": "integer",
					"value": 0
				},
				"input1": {
					"type": "integer",
					"value": 0
				}
			},
			"hidden": [
				"flow",
				"input0-type",
				"input0-dimensions",
				"input1-type",
				"input1-dimensions",
				"tolerance"
			],
			"name": "Equal",
			"thumbnail_visible": true
		},
		"3": {
			"attributes": {
				"alignment": {
					"type": "integer",
					"value": 0
				},
				"fill": {
					"type": "bool",
					"value": true
				},
				"font-size": {
					"type": "float",
					"value": 19
				},
				"text": {
					"type": "string",
					"value": "Tool tip shows correct output, but the Square pulses on every input change, and so triggers when not set to zero\n"
				}
			},
			"bounds": {
				"height": 115,
				"width": 195,
				"x": 937,
				"y": 430
			},
			"class": {
				"id": "77697265-3C1D-467D-A722-0FC566538374",
				"version": 1
			},
			"clock": "video",
			"color": "ffd0c117",
			"constants": {},
			"hidden": [
				"text",
				"alignment",
				"font-size",
				"fill"
			],
			"name": "Comment",
			"thumbnail_visible": true
		},
		"5": {
			"attributes": {
				"flow": {
					"type": "flow",
					"value": "event"
				},
				"input0-dimensions": {
					"type": "integer",
					"value": 1
				},
				"input1-dimensions": {
					"type": "integer",
					"value": 1
				},
				"size": {
					"type": "integer",
					"value": 2
				}
			},
			"bounds": {
				"height": 82,
				"width": 195,
				"x": 710,
				"y": 592
			},
			"class": {
				"id": "77697265-CB54-4A51-A719-A1D4B4D8D5FB",
				"version": 1
			},
			"clock": "video",
			"color": "ffff6a00",
			"constants": {
				"input0": {
					"type": "bool",
					"value": true
				},
				"input1": {
					"type": "bool",
					"value": false
				}
			},
			"hidden": [
				"flow",
				"size",
				"input0-dimensions",
				"input1-dimensions"
			],
			"name": "And",
			"thumbnail_visible": true
		},
		"6": {
			"attributes": {
				"alignment": {
					"type": "integer",
					"value": 0
				},
				"fill": {
					"type": "bool",
					"value": true
				},
				"font-size": {
					"type": "float",
					"value": 19
				},
				"text": {
					"type": "string",
					"value": "Same here, when right is zero we should have no square"
				}
			},
			"bounds": {
				"height": 115,
				"width": 195,
				"x": 924.5,
				"y": 579.5
			},
			"class": {
				"id": "77697265-3C1D-467D-A722-0FC566538374",
				"version": 1
			},
			"clock": "video",
			"color": "ffd0c117",
			"constants": {},
			"hidden": [
				"text",
				"alignment",
				"font-size",
				"fill"
			],
			"name": "Comment",
			"thumbnail_visible": true
		}
	},
	"ui": {
		"camera": {
			"x": 205,
			"y": -18,
			"zoom": 1
		},
		"selection": [
			"0",
			"1",
			"2",
			"3",
			"5",
			"6"
		]
	}
}

User avatar
Arvol
Might as well join the team
Posts: 2860
Joined: Thu Jun 18, 2015 17:36
Location: Oklahoma, USA

Re: Logic Bug

Post by Arvol »

For S&G, Try to add in a Circulate set to 2 then a Split node. This has been the fix for me in the past.

Image

Post Reply