diff --git a/example-projects/basic.json b/example-projects/basic.json index 062a067d..f9a1df58 100644 --- a/example-projects/basic.json +++ b/example-projects/basic.json @@ -1 +1 @@ -{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float"},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float"},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float"},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float"},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float"},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float"},"n31pv3n":{"id":"n31pv3n","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"A"}},"title":"Add to A"},"9ymdgux":{"id":"9ymdgux","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"B"}},"title":"Add to B"},"x2ch3dn":{"id":"x2ch3dn","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"active"}},"title":"Add to Active"},"3vmwtij":{"id":"3vmwtij","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"opposite"}},"title":"Add to Opposite"},"tr7sy0e":{"id":"tr7sy0e","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"vmc8jmw"}},"title":"Clear"},"v30d915":{"id":"v30d915","value":0.5833333333333334,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Rotation Speed X","valueType":"float","type":"param","key":"rotSpeedX","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"rhibicn":{"id":"rhibicn","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Rotation Speed Y","valueType":"float","type":"param","key":"rotSpeedY","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"687svyd":{"id":"687svyd","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Rotation Speed Z","valueType":"float","type":"param","key":"rotSpeedZ","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"0k9feb2":{"id":"0k9feb2","value":0.7760301604699178,"inputLinkIds":["fhpikiv"],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":4,"defaultMin":0.00001,"defaultMax":4,"openedLinkId":"fhpikiv","activeInputLinkId":"fhpikiv"},"kg7ejk7":{"id":"kg7ejk7","value":true,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Wireframe","valueType":"boolean","type":"param","key":"isWireframe","hidden":false},"ym3l08c":{"id":"ym3l08c","value":"icosa","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"geomName","valueType":"enum","type":"param","key":"geomName","hidden":false,"options":[{"value":"cube","label":"Cube"},{"value":"tetra","label":"Tetra"},{"value":"octa","label":"Octa"},{"value":"icosa","label":"Icosa"},{"value":"dodeca","label":"Dodeca"}]},"cpt12qc":{"id":"cpt12qc","value":0,"inputLinkIds":["ovn0f5p"],"shotCount":135,"connectedMacroIds":[],"sketchId":"arrq26q","type":"shot","valueType":"shotFloat","title":"Random Geom","method":"randomGeom","openedLinkId":"ovn0f5p","activeInputLinkId":"ovn0f5p"},"w6iy3g4":{"id":"w6iy3g4","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"s8ymimc","title":"Opacity","valueType":"float","type":"param","key":"opacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"u86y54g":{"id":"u86y54g","value":0.26666666666666666,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"s8ymimc","title":"Speed","valueType":"float","type":"param","key":"speed","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"chx6d5o":{"id":"chx6d5o","value":[1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0],"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[]},"5m75das":{"id":"5m75das","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"cpt12qc","linkId":"ovn0f5p"}},"sketchId":"arrq26q","parentNodeId":"ovn0f5p"},"ovn0f5p":{"id":"ovn0f5p","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"seq-step","type":"inputLink","input":{"id":"seq-step","type":"seq-step"},"nodeId":"cpt12qc","sketchId":"arrq26q","parentNodeId":"cpt12qc","nodeType":"shot","modifierIds":[],"optionIds":[],"linkableActions":{"toggleActivate":"5m75das"},"sequencerGridId":"chx6d5o","linkType":"node"},"kqprtqm":{"id":"kqprtqm","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"yroim9l":{"id":"yroim9l","value":0.30952380952380953,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"xgtissg":{"id":"xgtissg","value":0.8095238095238095,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"a7ot2o4":{"id":"a7ot2o4","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"bpvs8wy":{"id":"bpvs8wy","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"arrq26q","parentNodeId":"fhpikiv"},"rcgxus4":{"id":"rcgxus4","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"arrq26q","parentNodeId":"fhpikiv"},"y9cm37u":{"id":"y9cm37u","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"arrq26q","parentNodeId":"fhpikiv"},"sfcajf7":{"id":"sfcajf7","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"arrq26q","parentNodeId":"fhpikiv"},"0frcu4g":{"id":"0frcu4g","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"0k9feb2","linkId":"fhpikiv"}},"sketchId":"arrq26q","parentNodeId":"fhpikiv"},"fhpikiv":{"id":"fhpikiv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"0k9feb2","sketchId":"arrq26q","parentNodeId":"0k9feb2","nodeType":"param","modifierIds":["kqprtqm","yroim9l","xgtissg","a7ot2o4"],"optionIds":["bpvs8wy","rcgxus4","y9cm37u","sfcajf7"],"linkableActions":{"toggleActivate":"0frcu4g"},"linkType":"node"}},"scenes":{"items":{"vmc8jmw":{"id":"vmc8jmw","title":"Basic","selectedSketchId":"arrq26q","sketchIds":["arrq26q","s8ymimc"],"linkableActionIds":{"addToA":"n31pv3n","addToB":"9ymdgux","addToActive":"x2ch3dn","addToOpposite":"3vmwtij","clear":"tr7sy0e"},"settings":{}}},"sceneIds":["vmc8jmw"],"currentSceneId":"vmc8jmw","channels":{"A":"vmc8jmw","B":false}},"sketches":{"arrq26q":{"title":"Solid","moduleId":"solid","paramIds":["v30d915","rhibicn","687svyd","0k9feb2","kg7ejk7","ym3l08c"],"shotIds":["cpt12qc"],"openedNodeId":"0k9feb2"},"s8ymimc":{"title":"Stars","moduleId":"stars","paramIds":["w6iy3g4","u86y54g"],"shotIds":[]}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/basic.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.030403629225992095,0,0,0],"assignedLinkIds":[]},"lfo":{"value":194.33333333333334,"assignedLinkIds":["fhpikiv"]},"seq-step":{"assignedLinkIds":["ovn0f5p"],"value":18}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":["sketchcat_simple"],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view","search":"","hash":"","key":"d61u3f"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} +{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float","optionIds":[]},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}],"optionIds":[]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}],"optionIds":[]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float","optionIds":[]},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float","optionIds":[]},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float","optionIds":[]},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float","optionIds":[]},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float","optionIds":[]},"n31pv3n":{"id":"n31pv3n","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"A"}},"title":"Add to A","optionIds":[]},"9ymdgux":{"id":"9ymdgux","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"B"}},"title":"Add to B","optionIds":[]},"x2ch3dn":{"id":"x2ch3dn","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"active"}},"title":"Add to Active","optionIds":[]},"3vmwtij":{"id":"3vmwtij","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"vmc8jmw","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"tr7sy0e":{"id":"tr7sy0e","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"vmc8jmw"}},"title":"Clear","optionIds":[]},"v30d915":{"id":"v30d915","value":0.5833333333333334,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Rotation Speed X","valueType":"float","type":"param","key":"rotSpeedX","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"rhibicn":{"id":"rhibicn","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Rotation Speed Y","valueType":"float","type":"param","key":"rotSpeedY","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"687svyd":{"id":"687svyd","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Rotation Speed Z","valueType":"float","type":"param","key":"rotSpeedZ","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"0k9feb2":{"id":"0k9feb2","value":0.7760301604699178,"inputLinkIds":["fhpikiv"],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":4,"defaultMin":0.00001,"defaultMax":4,"openedLinkId":"fhpikiv","activeInputLinkId":"fhpikiv","optionIds":[]},"kg7ejk7":{"id":"kg7ejk7","value":true,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"Wireframe","valueType":"boolean","type":"param","key":"isWireframe","hidden":false,"optionIds":[]},"ym3l08c":{"id":"ym3l08c","value":"icosa","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"arrq26q","title":"geomName","valueType":"enum","type":"param","key":"geomName","hidden":false,"options":[{"value":"cube","label":"Cube"},{"value":"tetra","label":"Tetra"},{"value":"octa","label":"Octa"},{"value":"icosa","label":"Icosa"},{"value":"dodeca","label":"Dodeca"}],"optionIds":[]},"cpt12qc":{"id":"cpt12qc","value":0,"inputLinkIds":["ovn0f5p"],"shotCount":135,"connectedMacroIds":[],"sketchId":"arrq26q","type":"shot","valueType":"shotFloat","title":"Random Geom","method":"randomGeom","openedLinkId":"ovn0f5p","activeInputLinkId":"ovn0f5p","optionIds":[]},"w6iy3g4":{"id":"w6iy3g4","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"s8ymimc","title":"Opacity","valueType":"float","type":"param","key":"opacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"u86y54g":{"id":"u86y54g","value":0.26666666666666666,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"s8ymimc","title":"Speed","valueType":"float","type":"param","key":"speed","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"chx6d5o":{"id":"chx6d5o","value":[1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0],"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"optionIds":[]},"5m75das":{"id":"5m75das","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"cpt12qc","linkId":"ovn0f5p"}},"sketchId":"arrq26q","parentNodeId":"ovn0f5p","optionIds":[]},"ovn0f5p":{"id":"ovn0f5p","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"seq-step","type":"inputLink","input":{"id":"seq-step","type":"seq-step"},"nodeId":"cpt12qc","sketchId":"arrq26q","parentNodeId":"cpt12qc","nodeType":"shot","modifierIds":[],"optionIds":[],"linkableActions":{"toggleActivate":"5m75das"},"sequencerGridId":"chx6d5o","linkType":"node"},"kqprtqm":{"id":"kqprtqm","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"yroim9l":{"id":"yroim9l","value":0.30952380952380953,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"xgtissg":{"id":"xgtissg","value":0.8095238095238095,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"a7ot2o4":{"id":"a7ot2o4","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"fhpikiv","sketchId":"arrq26q","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"bpvs8wy":{"id":"bpvs8wy","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"arrq26q","parentNodeId":"fhpikiv","optionIds":[]},"rcgxus4":{"id":"rcgxus4","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"arrq26q","parentNodeId":"fhpikiv","optionIds":[]},"y9cm37u":{"id":"y9cm37u","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"arrq26q","parentNodeId":"fhpikiv","optionIds":[]},"sfcajf7":{"id":"sfcajf7","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"arrq26q","parentNodeId":"fhpikiv","optionIds":[]},"0frcu4g":{"id":"0frcu4g","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"0k9feb2","linkId":"fhpikiv"}},"sketchId":"arrq26q","parentNodeId":"fhpikiv","optionIds":[]},"fhpikiv":{"id":"fhpikiv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"0k9feb2","sketchId":"arrq26q","parentNodeId":"0k9feb2","nodeType":"param","modifierIds":["kqprtqm","yroim9l","xgtissg","a7ot2o4"],"optionIds":["bpvs8wy","rcgxus4","y9cm37u","sfcajf7"],"linkableActions":{"toggleActivate":"0frcu4g"},"linkType":"node"},"areErrorPopupsDisabled":{"title":"Disable Error Popups","id":"areErrorPopupsDisabled","valueType":"boolean","value":false}},"scenes":{"items":{"vmc8jmw":{"id":"vmc8jmw","title":"Basic","selectedSketchId":"arrq26q","sketchIds":["arrq26q","s8ymimc"],"linkableActionIds":{"addToA":"n31pv3n","addToB":"9ymdgux","addToActive":"x2ch3dn","addToOpposite":"3vmwtij","clear":"tr7sy0e"},"settings":{}}},"sceneIds":["vmc8jmw"],"currentSceneId":"vmc8jmw","channels":{"A":"vmc8jmw","B":false}},"sketches":{"arrq26q":{"title":"Solid","moduleId":"solid","paramIds":["v30d915","rhibicn","687svyd","0k9feb2","kg7ejk7","ym3l08c"],"shotIds":["cpt12qc"],"openedNodeId":"0k9feb2"},"s8ymimc":{"title":"Stars","moduleId":"stars","paramIds":["w6iy3g4","u86y54g"],"shotIds":[]}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/basic.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.030403629225992095,0,0,0],"assignedLinkIds":[]},"lfo":{"value":194.33333333333334,"assignedLinkIds":["fhpikiv"]},"seq-step":{"assignedLinkIds":["ovn0f5p"],"value":18}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":["sketchcat_simple"],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view","search":"","hash":"","key":"d61u3f"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} \ No newline at end of file diff --git a/example-projects/fragment-shader.json b/example-projects/fragment-shader.json index af206e97..a727fed2 100644 --- a/example-projects/fragment-shader.json +++ b/example-projects/fragment-shader.json @@ -1 +1 @@ -{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float"},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float"},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float"},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float"},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float"},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float"},"pcijn4b":{"id":"pcijn4b","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"A"}},"title":"Add to A"},"cnoaqlk":{"id":"cnoaqlk","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"B"}},"title":"Add to B"},"gpsaw5x":{"id":"gpsaw5x","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"active"}},"title":"Add to Active"},"2447ivr":{"id":"2447ivr","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"opposite"}},"title":"Add to Opposite"},"ie8veuj":{"id":"ie8veuj","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"i2b1fd2"}},"title":"Clear"},"gn5evs6":{"id":"gn5evs6","value":0.7607142857142857,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"distanceStep","valueType":"float","type":"param","key":"distanceStep","hidden":false,"min":0,"max":20,"defaultMin":0,"defaultMax":20},"hl99l48":{"id":"hl99l48","value":0.8865052266813669,"inputLinkIds":["ewpvhcl"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"Y Morph Amp","valueType":"float","type":"param","key":"yMorphAmp","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"ewpvhcl","activeInputLinkId":"ewpvhcl"},"hk8tymh":{"id":"hk8tymh","value":0.8865052266813669,"inputLinkIds":["6lrf9a6"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"Y Morph Mix","valueType":"float","type":"param","key":"yMorphMix","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"6lrf9a6","activeInputLinkId":"6lrf9a6"},"swp1m51":{"id":"swp1m51","value":0.9903926402016162,"inputLinkIds":["8mfpsla"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"X Morph Amp","valueType":"float","type":"param","key":"xMorphAmp","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"8mfpsla","activeInputLinkId":"8mfpsla"},"5whpcx0":{"id":"5whpcx0","value":0.3737542114924304,"inputLinkIds":["7vfedqr"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"X Morph Mix","valueType":"float","type":"param","key":"xMorphMix","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"7vfedqr","activeInputLinkId":"7vfedqr"},"hshm03m":{"id":"hshm03m","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"m94an7o":{"id":"m94an7o","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"66tmp1g":{"id":"66tmp1g","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"w3pyvh6":{"id":"w3pyvh6","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"bn9bq0t":{"id":"bn9bq0t","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"8mfpsla"},"chvdlrm":{"id":"chvdlrm","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"8mfpsla"},"hc7oubv":{"id":"hc7oubv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"8mfpsla"},"i8xtv57":{"id":"i8xtv57","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"8mfpsla"},"g2ukwwv":{"id":"g2ukwwv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"swp1m51","linkId":"8mfpsla"}},"sketchId":"yddf14t","parentNodeId":"8mfpsla"},"8mfpsla":{"id":"8mfpsla","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"swp1m51","sketchId":"yddf14t","parentNodeId":"swp1m51","nodeType":"param","modifierIds":["hshm03m","m94an7o","66tmp1g","w3pyvh6"],"optionIds":["bn9bq0t","chvdlrm","hc7oubv","i8xtv57"],"linkableActions":{"toggleActivate":"g2ukwwv"},"linkType":"node"},"a2hoos9":{"id":"a2hoos9","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"uk3g5yq":{"id":"uk3g5yq","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"vrkfoa0":{"id":"vrkfoa0","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"9ggmof0":{"id":"9ggmof0","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"32pakjs":{"id":"32pakjs","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"6lrf9a6"},"y2x43pi":{"id":"y2x43pi","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"6lrf9a6"},"i7779qh":{"id":"i7779qh","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"6lrf9a6"},"10l5x8n":{"id":"10l5x8n","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"6lrf9a6"},"y9un7rw":{"id":"y9un7rw","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"hk8tymh","linkId":"6lrf9a6"}},"sketchId":"yddf14t","parentNodeId":"6lrf9a6"},"6lrf9a6":{"id":"6lrf9a6","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"hk8tymh","sketchId":"yddf14t","parentNodeId":"hk8tymh","nodeType":"param","modifierIds":["a2hoos9","uk3g5yq","vrkfoa0","9ggmof0"],"optionIds":["32pakjs","y2x43pi","i7779qh","10l5x8n"],"linkableActions":{"toggleActivate":"y9un7rw"},"linkType":"node"},"vwvo7bk":{"id":"vwvo7bk","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"6rcpkgl":{"id":"6rcpkgl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"p2n182p":{"id":"p2n182p","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"1q81kks":{"id":"1q81kks","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"ecahuyd":{"id":"ecahuyd","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"ewpvhcl"},"0gk1e6x":{"id":"0gk1e6x","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"ewpvhcl"},"uttlkvc":{"id":"uttlkvc","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"ewpvhcl"},"w4lyrrw":{"id":"w4lyrrw","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"ewpvhcl"},"6grjtmv":{"id":"6grjtmv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"hl99l48","linkId":"ewpvhcl"}},"sketchId":"yddf14t","parentNodeId":"ewpvhcl"},"ewpvhcl":{"id":"ewpvhcl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"hl99l48","sketchId":"yddf14t","parentNodeId":"hl99l48","nodeType":"param","modifierIds":["vwvo7bk","6rcpkgl","p2n182p","1q81kks"],"optionIds":["ecahuyd","0gk1e6x","uttlkvc","w4lyrrw"],"linkableActions":{"toggleActivate":"6grjtmv"},"linkType":"node"},"1a0l4w5":{"id":"1a0l4w5","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"p841asl":{"id":"p841asl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"g723slu":{"id":"g723slu","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"lytq4bu":{"id":"lytq4bu","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"d1dii5j":{"id":"d1dii5j","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"7vfedqr"},"4x7l02t":{"id":"4x7l02t","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"7vfedqr"},"c5svwg5":{"id":"c5svwg5","value":0.4,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"7vfedqr"},"6pci49r":{"id":"6pci49r","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"7vfedqr"},"wj2ao2n":{"id":"wj2ao2n","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"5whpcx0","linkId":"7vfedqr"}},"sketchId":"yddf14t","parentNodeId":"7vfedqr"},"7vfedqr":{"id":"7vfedqr","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"5whpcx0","sketchId":"yddf14t","parentNodeId":"5whpcx0","nodeType":"param","modifierIds":["1a0l4w5","p841asl","g723slu","lytq4bu"],"optionIds":["d1dii5j","4x7l02t","c5svwg5","6pci49r"],"linkableActions":{"toggleActivate":"wj2ao2n"},"linkType":"node"}},"scenes":{"items":{"i2b1fd2":{"id":"i2b1fd2","title":"frag","selectedSketchId":"yddf14t","sketchIds":["yddf14t"],"linkableActionIds":{"addToA":"pcijn4b","addToB":"cnoaqlk","addToActive":"gpsaw5x","addToOpposite":"2447ivr","clear":"ie8veuj"},"settings":{}}},"sceneIds":["i2b1fd2"],"currentSceneId":"i2b1fd2","channels":{"A":"i2b1fd2","B":false}},"sketches":{"yddf14t":{"title":"Fragment Shader","moduleId":"fragment-shader","paramIds":["gn5evs6","hl99l48","hk8tymh","swp1m51","5whpcx0"],"shotIds":[],"openedNodeId":"5whpcx0"}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches/fragment-shader.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.18820255708132083,0.22375466980563413,0.20986826276396225,0.2560342388421122],"assignedLinkIds":[]},"lfo":{"value":185.125,"assignedLinkIds":["8mfpsla","6lrf9a6","ewpvhcl","7vfedqr"]}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":[],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view/i2b1fd2","search":"","hash":"","key":"zdq81p"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} +{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float","optionIds":[]},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}],"optionIds":[]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}],"optionIds":[]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float","optionIds":[]},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float","optionIds":[]},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float","optionIds":[]},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float","optionIds":[]},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float","optionIds":[]},"pcijn4b":{"id":"pcijn4b","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"A"}},"title":"Add to A","optionIds":[]},"cnoaqlk":{"id":"cnoaqlk","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"B"}},"title":"Add to B","optionIds":[]},"gpsaw5x":{"id":"gpsaw5x","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"active"}},"title":"Add to Active","optionIds":[]},"2447ivr":{"id":"2447ivr","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"i2b1fd2","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"ie8veuj":{"id":"ie8veuj","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"i2b1fd2"}},"title":"Clear","optionIds":[]},"gn5evs6":{"id":"gn5evs6","value":0.7607142857142857,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"distanceStep","valueType":"float","type":"param","key":"distanceStep","hidden":false,"min":0,"max":20,"defaultMin":0,"defaultMax":20,"optionIds":[]},"hl99l48":{"id":"hl99l48","value":0.8865052266813669,"inputLinkIds":["ewpvhcl"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"Y Morph Amp","valueType":"float","type":"param","key":"yMorphAmp","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"ewpvhcl","activeInputLinkId":"ewpvhcl","optionIds":[]},"hk8tymh":{"id":"hk8tymh","value":0.8865052266813669,"inputLinkIds":["6lrf9a6"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"Y Morph Mix","valueType":"float","type":"param","key":"yMorphMix","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"6lrf9a6","activeInputLinkId":"6lrf9a6","optionIds":[]},"swp1m51":{"id":"swp1m51","value":0.9903926402016162,"inputLinkIds":["8mfpsla"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"X Morph Amp","valueType":"float","type":"param","key":"xMorphAmp","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"8mfpsla","activeInputLinkId":"8mfpsla","optionIds":[]},"5whpcx0":{"id":"5whpcx0","value":0.3737542114924304,"inputLinkIds":["7vfedqr"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yddf14t","title":"X Morph Mix","valueType":"float","type":"param","key":"xMorphMix","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"7vfedqr","activeInputLinkId":"7vfedqr","optionIds":[]},"hshm03m":{"id":"hshm03m","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"m94an7o":{"id":"m94an7o","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"66tmp1g":{"id":"66tmp1g","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"w3pyvh6":{"id":"w3pyvh6","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"8mfpsla","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"bn9bq0t":{"id":"bn9bq0t","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"8mfpsla","optionIds":[]},"chvdlrm":{"id":"chvdlrm","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"8mfpsla","optionIds":[]},"hc7oubv":{"id":"hc7oubv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"8mfpsla","optionIds":[]},"i8xtv57":{"id":"i8xtv57","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"8mfpsla","optionIds":[]},"g2ukwwv":{"id":"g2ukwwv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"swp1m51","linkId":"8mfpsla"}},"sketchId":"yddf14t","parentNodeId":"8mfpsla","optionIds":[]},"8mfpsla":{"id":"8mfpsla","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"swp1m51","sketchId":"yddf14t","parentNodeId":"swp1m51","nodeType":"param","modifierIds":["hshm03m","m94an7o","66tmp1g","w3pyvh6"],"optionIds":["bn9bq0t","chvdlrm","hc7oubv","i8xtv57"],"linkableActions":{"toggleActivate":"g2ukwwv"},"linkType":"node"},"a2hoos9":{"id":"a2hoos9","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"uk3g5yq":{"id":"uk3g5yq","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"vrkfoa0":{"id":"vrkfoa0","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"9ggmof0":{"id":"9ggmof0","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"6lrf9a6","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"32pakjs":{"id":"32pakjs","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"6lrf9a6","optionIds":[]},"y2x43pi":{"id":"y2x43pi","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"6lrf9a6","optionIds":[]},"i7779qh":{"id":"i7779qh","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"6lrf9a6","optionIds":[]},"10l5x8n":{"id":"10l5x8n","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"6lrf9a6","optionIds":[]},"y9un7rw":{"id":"y9un7rw","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"hk8tymh","linkId":"6lrf9a6"}},"sketchId":"yddf14t","parentNodeId":"6lrf9a6","optionIds":[]},"6lrf9a6":{"id":"6lrf9a6","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"hk8tymh","sketchId":"yddf14t","parentNodeId":"hk8tymh","nodeType":"param","modifierIds":["a2hoos9","uk3g5yq","vrkfoa0","9ggmof0"],"optionIds":["32pakjs","y2x43pi","i7779qh","10l5x8n"],"linkableActions":{"toggleActivate":"y9un7rw"},"linkType":"node"},"vwvo7bk":{"id":"vwvo7bk","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"6rcpkgl":{"id":"6rcpkgl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"p2n182p":{"id":"p2n182p","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"1q81kks":{"id":"1q81kks","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"ewpvhcl","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"ecahuyd":{"id":"ecahuyd","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"ewpvhcl","optionIds":[]},"0gk1e6x":{"id":"0gk1e6x","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"ewpvhcl","optionIds":[]},"uttlkvc":{"id":"uttlkvc","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"ewpvhcl","optionIds":[]},"w4lyrrw":{"id":"w4lyrrw","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"ewpvhcl","optionIds":[]},"6grjtmv":{"id":"6grjtmv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"hl99l48","linkId":"ewpvhcl"}},"sketchId":"yddf14t","parentNodeId":"ewpvhcl","optionIds":[]},"ewpvhcl":{"id":"ewpvhcl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"hl99l48","sketchId":"yddf14t","parentNodeId":"hl99l48","nodeType":"param","modifierIds":["vwvo7bk","6rcpkgl","p2n182p","1q81kks"],"optionIds":["ecahuyd","0gk1e6x","uttlkvc","w4lyrrw"],"linkableActions":{"toggleActivate":"6grjtmv"},"linkType":"node"},"1a0l4w5":{"id":"1a0l4w5","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"p841asl":{"id":"p841asl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"g723slu":{"id":"g723slu","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"lytq4bu":{"id":"lytq4bu","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"7vfedqr","sketchId":"yddf14t","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"d1dii5j":{"id":"d1dii5j","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yddf14t","parentNodeId":"7vfedqr","optionIds":[]},"4x7l02t":{"id":"4x7l02t","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yddf14t","parentNodeId":"7vfedqr","optionIds":[]},"c5svwg5":{"id":"c5svwg5","value":0.4,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yddf14t","parentNodeId":"7vfedqr","optionIds":[]},"6pci49r":{"id":"6pci49r","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yddf14t","parentNodeId":"7vfedqr","optionIds":[]},"wj2ao2n":{"id":"wj2ao2n","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"5whpcx0","linkId":"7vfedqr"}},"sketchId":"yddf14t","parentNodeId":"7vfedqr","optionIds":[]},"7vfedqr":{"id":"7vfedqr","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"5whpcx0","sketchId":"yddf14t","parentNodeId":"5whpcx0","nodeType":"param","modifierIds":["1a0l4w5","p841asl","g723slu","lytq4bu"],"optionIds":["d1dii5j","4x7l02t","c5svwg5","6pci49r"],"linkableActions":{"toggleActivate":"wj2ao2n"},"linkType":"node"},"areErrorPopupsDisabled":{"title":"Disable Error Popups","id":"areErrorPopupsDisabled","valueType":"boolean","value":false}},"scenes":{"items":{"i2b1fd2":{"id":"i2b1fd2","title":"frag","selectedSketchId":"yddf14t","sketchIds":["yddf14t"],"linkableActionIds":{"addToA":"pcijn4b","addToB":"cnoaqlk","addToActive":"gpsaw5x","addToOpposite":"2447ivr","clear":"ie8veuj"},"settings":{}}},"sceneIds":["i2b1fd2"],"currentSceneId":"i2b1fd2","channels":{"A":"i2b1fd2","B":false}},"sketches":{"yddf14t":{"title":"Fragment Shader","moduleId":"fragment-shader","paramIds":["gn5evs6","hl99l48","hk8tymh","swp1m51","5whpcx0"],"shotIds":[],"openedNodeId":"5whpcx0"}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches/fragment-shader.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.18820255708132083,0.22375466980563413,0.20986826276396225,0.2560342388421122],"assignedLinkIds":[]},"lfo":{"value":185.125,"assignedLinkIds":["8mfpsla","6lrf9a6","ewpvhcl","7vfedqr"]}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":[],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view/i2b1fd2","search":"","hash":"","key":"zdq81p"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} \ No newline at end of file diff --git a/example-projects/postprocessing.json b/example-projects/postprocessing.json new file mode 100644 index 00000000..c4667e2e --- /dev/null +++ b/example-projects/postprocessing.json @@ -0,0 +1 @@ +{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float","optionIds":[]},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}],"optionIds":[]},"sketchOrganization":{"id":"sketchOrganization","value":"folder","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}],"optionIds":[]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float","optionIds":[]},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float","optionIds":[]},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float","optionIds":[]},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float","optionIds":[]},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float","optionIds":[]},"4cgjr6h":{"id":"4cgjr6h","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"A"}},"title":"Add to A","optionIds":[]},"xp6seer":{"id":"xp6seer","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"B"}},"title":"Add to B","optionIds":[]},"xqgp6g9":{"id":"xqgp6g9","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"active"}},"title":"Add to Active","optionIds":[]},"4pb80la":{"id":"4pb80la","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"5xw7soj":{"id":"5xw7soj","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"4n281vi"}},"title":"Clear","optionIds":[]},"wptfrem":{"id":"wptfrem","value":0.5476190476190477,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Rotation Speed X","valueType":"float","type":"param","key":"rotSpeedX","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"vp458j6":{"id":"vp458j6","value":0.6547619047619048,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Rotation Speed Y","valueType":"float","type":"param","key":"rotSpeedY","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"6v3yinl":{"id":"6v3yinl","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Rotation Speed Z","valueType":"float","type":"param","key":"rotSpeedZ","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"nwcruot":{"id":"nwcruot","value":0.32110703435506,"inputLinkIds":["mbt5945"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":4,"defaultMin":0.00001,"defaultMax":4,"openedLinkId":"mbt5945","activeInputLinkId":"mbt5945","optionIds":[]},"71dgehw":{"id":"71dgehw","value":true,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Wireframe","valueType":"boolean","type":"param","key":"isWireframe","hidden":false,"optionIds":[]},"8j8ck0u":{"id":"8j8ck0u","value":"icosa","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"geomName","valueType":"enum","type":"param","key":"geomName","hidden":false,"options":[{"value":"cube","label":"Cube"},{"value":"tetra","label":"Tetra"},{"value":"octa","label":"Octa"},{"value":"icosa","label":"Icosa"},{"value":"dodeca","label":"Dodeca"}],"optionIds":[]},"oyvor29":{"id":"oyvor29","value":0,"inputLinkIds":[],"shotCount":7,"connectedMacroIds":[],"sketchId":"yfh9agp","type":"shot","valueType":"shotFloat","title":"Random Geom","method":"randomGeom","optionIds":[]},"5smpa81":{"id":"5smpa81","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"rjn2jpt":{"id":"rjn2jpt","value":0.29838709677419356,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"g4d9dpg":{"id":"g4d9dpg","value":0.5080645161290323,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"9536abr":{"id":"9536abr","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"donx5px":{"id":"donx5px","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yfh9agp","parentNodeId":"mbt5945","optionIds":[]},"c07gwwp":{"id":"c07gwwp","value":0.0625,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yfh9agp","parentNodeId":"mbt5945","optionIds":[]},"f9lnb4w":{"id":"f9lnb4w","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yfh9agp","parentNodeId":"mbt5945","optionIds":[]},"6ujsh3y":{"id":"6ujsh3y","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yfh9agp","parentNodeId":"mbt5945","optionIds":[]},"w3byfjy":{"id":"w3byfjy","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"nwcruot","linkId":"mbt5945"}},"sketchId":"yfh9agp","parentNodeId":"mbt5945","optionIds":[]},"mbt5945":{"id":"mbt5945","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"nwcruot","sketchId":"yfh9agp","parentNodeId":"nwcruot","nodeType":"param","modifierIds":["5smpa81","rjn2jpt","g4d9dpg","9536abr"],"optionIds":["donx5px","c07gwwp","f9lnb4w","6ujsh3y"],"linkableActions":{"toggleActivate":"w3byfjy"},"linkType":"node"},"0pektyi":{"id":"0pektyi","value":0.8511904761904762,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"fi4l7p4","title":"scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"c3yb4x8":{"id":"c3yb4x8","value":0.17261904761904762,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"fi4l7p4","title":"rotAngle","valueType":"float","type":"param","key":"rotAngle","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"eurln1e":{"id":"eurln1e","value":0.5595238095238095,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"fi4l7p4","title":"mixAmp","valueType":"float","type":"param","key":"mixAmp","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"um9y6ks":{"id":"um9y6ks","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"A"}},"title":"Add to A","optionIds":[]},"65dli7t":{"id":"65dli7t","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"B"}},"title":"Add to B","optionIds":[]},"uist6q2":{"id":"uist6q2","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"active"}},"title":"Add to Active","optionIds":[]},"19e1dg3":{"id":"19e1dg3","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"4rf4qxe":{"id":"4rf4qxe","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"u1vjor2"}},"title":"Clear","optionIds":[]},"nu1o7i8":{"id":"nu1o7i8","value":0.7380952380952381,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"oliy5ke":{"id":"oliy5ke","value":0.6726190476190476,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"lumThreshold","valueType":"float","type":"param","key":"lumThreshold","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"on6px1g":{"id":"on6px1g","value":0.6785714285714285,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"lumSmoothing","valueType":"float","type":"param","key":"lumSmoothing","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"vuynupk":{"id":"vuynupk","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"opacity","valueType":"float","type":"param","key":"opacity","hidden":false,"min":0,"max":5,"defaultMin":0,"defaultMax":5,"optionIds":[]},"ekcjqws":{"id":"ekcjqws","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"A"}},"title":"Add to A","optionIds":[]},"r7k3b5e":{"id":"r7k3b5e","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"B"}},"title":"Add to B","optionIds":[]},"4wp19xb":{"id":"4wp19xb","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"active"}},"title":"Add to Active","optionIds":[]},"4ckidda":{"id":"4ckidda","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"gcifr8j":{"id":"gcifr8j","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"rj3jgwf"}},"title":"Clear","optionIds":[]},"bhpkprh":{"id":"bhpkprh","value":0.5833333333333334,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"brightness","valueType":"float","type":"param","key":"brightness","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"gumkune":{"id":"gumkune","value":0.5904761904761906,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"contrast","valueType":"float","type":"param","key":"contrast","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"4wnjhe6":{"id":"4wnjhe6","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"Bright/Contr Opacity","valueType":"float","type":"param","key":"brightnessContrastOpacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"d1aqmji":{"id":"d1aqmji","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"gamma","valueType":"float","type":"param","key":"gamma","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"2c26f5r":{"id":"2c26f5r","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"gammaOpacity","valueType":"float","type":"param","key":"gammaOpacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"ak8ai1j":{"id":"ak8ai1j","value":0.48214285714285715,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"hue","valueType":"float","type":"param","key":"hue","hidden":false,"min":-3.141592653589793,"max":3.141592653589793,"defaultMin":-3.141592653589793,"defaultMax":3.141592653589793,"optionIds":[]},"0pny178":{"id":"0pny178","value":0.7347619047619047,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"saturation","valueType":"float","type":"param","key":"saturation","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"oaa8c7v":{"id":"oaa8c7v","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"hueSaturationOpacity","valueType":"float","type":"param","key":"hueSaturationOpacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"rg3im30":{"id":"rg3im30","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"delayMin","valueType":"float","type":"param","key":"delayMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"hplvx4m":{"id":"hplvx4m","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"delayMax","valueType":"float","type":"param","key":"delayMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"30qqfqx":{"id":"30qqfqx","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"durationMin","valueType":"float","type":"param","key":"durationMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"ea9bp1c":{"id":"ea9bp1c","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"durationMax","valueType":"float","type":"param","key":"durationMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"dph4ujw":{"id":"dph4ujw","value":0.059523809523809514,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"glitchAmpWeak","valueType":"float","type":"param","key":"glitchAmpWeak","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"6ae78fv":{"id":"6ae78fv","value":0.20833333333333331,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"glitchAmpStrong","valueType":"float","type":"param","key":"glitchAmpStrong","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"6ysryhj":{"id":"6ysryhj","value":0.5226190476190475,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"strongWeakRatio","valueType":"float","type":"param","key":"strongWeakRatio","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"oudamq4":{"id":"oudamq4","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"columns","valueType":"float","type":"param","key":"columns","hidden":false,"min":0,"max":0.5,"defaultMin":0,"defaultMax":0.5,"optionIds":[]},"srlvvj3":{"id":"srlvvj3","value":0.875,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"9q1d6w7","title":"BG Color H","valueType":"float","type":"param","key":"colorH","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"xdsr1hp":{"id":"xdsr1hp","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"9q1d6w7","title":"BG Color S","valueType":"float","type":"param","key":"colorS","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"6ut8gdp":{"id":"6ut8gdp","value":0.1547619047619048,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"9q1d6w7","title":"BG Color L","valueType":"float","type":"param","key":"colorL","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"areErrorPopupsDisabled":{"title":"Disable Error Popups","id":"areErrorPopupsDisabled","valueType":"boolean","value":false}},"scenes":{"items":{"4n281vi":{"id":"4n281vi","title":"scene 1","selectedSketchId":"9q1d6w7","sketchIds":["yfh9agp","fi4l7p4","9q1d6w7"],"linkableActionIds":{"addToA":"4cgjr6h","addToB":"xp6seer","addToActive":"xqgp6g9","addToOpposite":"4pb80la","clear":"5xw7soj"},"settings":{}},"u1vjor2":{"id":"u1vjor2","title":"scene 2","selectedSketchId":"tujep7b","sketchIds":["aq0mewx","tujep7b"],"linkableActionIds":{"addToA":"um9y6ks","addToB":"65dli7t","addToActive":"uist6q2","addToOpposite":"19e1dg3","clear":"4rf4qxe"},"settings":{}},"rj3jgwf":{"id":"rj3jgwf","title":"global","selectedSketchId":"phhmlx5","sketchIds":["phhmlx5","bhvbob2"],"linkableActionIds":{"addToA":"ekcjqws","addToB":"r7k3b5e","addToActive":"4wp19xb","addToOpposite":"4ckidda","clear":"gcifr8j"},"settings":{"globalPostProcessingEnabled":true}}},"sceneIds":["4n281vi","u1vjor2","rj3jgwf"],"currentSceneId":"4n281vi","channels":{"A":"4n281vi","B":"u1vjor2"}},"sketches":{"yfh9agp":{"title":"Solid","moduleId":"solid","paramIds":["wptfrem","vp458j6","6v3yinl","nwcruot","71dgehw","8j8ck0u"],"shotIds":["oyvor29"],"openedNodeId":"nwcruot"},"fi4l7p4":{"title":"Trails","moduleId":"trails","paramIds":["0pektyi","c3yb4x8","eurln1e"],"shotIds":[]},"aq0mewx":{"title":"Space","moduleId":"space","paramIds":[],"shotIds":[]},"tujep7b":{"title":"Bloom","moduleId":"bloom","paramIds":["nu1o7i8","oliy5ke","on6px1g","vuynupk"],"shotIds":[]},"phhmlx5":{"title":"Color","moduleId":"color","paramIds":["bhpkprh","gumkune","4wnjhe6","d1aqmji","2c26f5r","ak8ai1j","0pny178","oaa8c7v"],"shotIds":[]},"bhvbob2":{"title":"Glitch","moduleId":"glitch","paramIds":["rg3im30","hplvx4m","30qqfqx","ea9bp1c","dph4ujw","6ae78fv","6ysryhj","oudamq4"],"shotIds":[]},"9q1d6w7":{"title":"Env","moduleId":"env","paramIds":["srlvvj3","xdsr1hp","6ut8gdp"],"shotIds":[]}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches/postprocessing.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.03328674742462026,0.004931120302339014,0.002571158699959153,0],"assignedLinkIds":[]},"lfo":{"value":1082.2916666666667,"assignedLinkIds":["mbt5945"]}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":["sketchcat_simple","sketchcat_post"],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view","search":"","hash":"","key":"26a8a4"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}},"values":{},"initial":{}}}} \ No newline at end of file diff --git a/example-projects/scenes.json b/example-projects/scenes.json index c21b608c..945a5177 100644 --- a/example-projects/scenes.json +++ b/example-projects/scenes.json @@ -1 +1 @@ -{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float"},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float"},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float"},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float"},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float"},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float"},"w1ks5w7":{"id":"w1ks5w7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"A"}},"title":"Add to A"},"gcd03bb":{"id":"gcd03bb","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"B"}},"title":"Add to B"},"c52aweb":{"id":"c52aweb","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"active"}},"title":"Add to Active"},"1gxfaxq":{"id":"1gxfaxq","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"opposite"}},"title":"Add to Opposite"},"4lwkp1j":{"id":"4lwkp1j","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"qdiglvt"}},"title":"Clear"},"b3q1kmd":{"id":"b3q1kmd","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"A"}},"title":"Add to A"},"35mcro3":{"id":"35mcro3","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"B"}},"title":"Add to B"},"3k68884":{"id":"3k68884","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"active"}},"title":"Add to Active"},"aw4y2uy":{"id":"aw4y2uy","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"opposite"}},"title":"Add to Opposite"},"2n503nx":{"id":"2n503nx","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"tmmgjxc"}},"title":"Clear"},"k80ia5j":{"id":"k80ia5j","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Rotation Speed X","valueType":"float","type":"param","key":"rotSpeedX","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"aurbrha":{"id":"aurbrha","value":0.5952380952380952,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Rotation Speed Y","valueType":"float","type":"param","key":"rotSpeedY","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"y69sdsa":{"id":"y69sdsa","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Rotation Speed Z","valueType":"float","type":"param","key":"rotSpeedZ","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"49yac1f":{"id":"49yac1f","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":4,"defaultMin":0.00001,"defaultMax":4},"846g04r":{"id":"846g04r","value":true,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Wireframe","valueType":"boolean","type":"param","key":"isWireframe","hidden":false},"mla6f4b":{"id":"mla6f4b","value":"icosa","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"geomName","valueType":"enum","type":"param","key":"geomName","hidden":false,"options":[{"value":"cube","label":"Cube"},{"value":"tetra","label":"Tetra"},{"value":"octa","label":"Octa"},{"value":"icosa","label":"Icosa"},{"value":"dodeca","label":"Dodeca"}]},"4l6qnb7":{"id":"4l6qnb7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","type":"shot","valueType":"shotFloat","title":"Random Geom","method":"randomGeom"},"rhxwgoi":{"id":"rhxwgoi","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"delayMin","valueType":"float","type":"param","key":"delayMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"sqlamix":{"id":"sqlamix","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"delayMax","valueType":"float","type":"param","key":"delayMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"nuracvl":{"id":"nuracvl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"durationMin","valueType":"float","type":"param","key":"durationMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"2maqcfi":{"id":"2maqcfi","value":0.326007326007326,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"durationMax","valueType":"float","type":"param","key":"durationMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"s864p7q":{"id":"s864p7q","value":0.27380952380952384,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"glitchAmpWeak","valueType":"float","type":"param","key":"glitchAmpWeak","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"f7b187l":{"id":"f7b187l","value":0.16666666666666666,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"glitchAmpStrong","valueType":"float","type":"param","key":"glitchAmpStrong","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"pfp70xu":{"id":"pfp70xu","value":0.85,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"strongWeakRatio","valueType":"float","type":"param","key":"strongWeakRatio","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"l3i395b":{"id":"l3i395b","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"columns","valueType":"float","type":"param","key":"columns","hidden":false,"min":0,"max":0.5,"defaultMin":0,"defaultMax":0.5}},"scenes":{"items":{"qdiglvt":{"id":"qdiglvt","title":"scene 1","selectedSketchId":"uamks02","sketchIds":["uamks02"],"linkableActionIds":{"addToA":"w1ks5w7","addToB":"gcd03bb","addToActive":"c52aweb","addToOpposite":"1gxfaxq","clear":"4lwkp1j"},"settings":{}},"tmmgjxc":{"id":"tmmgjxc","title":"scene 2","selectedSketchId":"k4ty7u0","sketchIds":["67rplxy","k4ty7u0"],"linkableActionIds":{"addToA":"b3q1kmd","addToB":"35mcro3","addToActive":"3k68884","addToOpposite":"aw4y2uy","clear":"2n503nx"},"settings":{}}},"sceneIds":["qdiglvt","tmmgjxc"],"currentSceneId":"qdiglvt","channels":{"A":"qdiglvt","B":"tmmgjxc"}},"sketches":{"uamks02":{"title":"Space","moduleId":"space","paramIds":[],"shotIds":[]},"67rplxy":{"title":"Solid","moduleId":"solid","paramIds":["k80ia5j","aurbrha","y69sdsa","49yac1f","846g04r","mla6f4b"],"shotIds":["4l6qnb7"]},"k4ty7u0":{"title":"Glitch","moduleId":"glitch","paramIds":["rhxwgoi","sqlamix","nuracvl","2maqcfi","s864p7q","f7b187l","pfp70xu","l3i395b"],"shotIds":[]}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/scenes.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.1312650509484108,0.22710186327223927,0.037729798743333924,0.029614831250426386],"assignedLinkIds":[]},"lfo":{"value":403,"assignedLinkIds":[]}},"inputLinks":{"nodeIds":[]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":53.046875},"isEditing":false,"openedNode":false,"auxOpen":["sketchcat_simple"],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view","search":"","hash":"","key":"ha1m27"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} +{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float","optionIds":[]},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}],"optionIds":[]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}],"optionIds":[]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float","optionIds":[]},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float","optionIds":[]},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float","optionIds":[]},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float","optionIds":[]},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float","optionIds":[]},"w1ks5w7":{"id":"w1ks5w7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"A"}},"title":"Add to A","optionIds":[]},"gcd03bb":{"id":"gcd03bb","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"B"}},"title":"Add to B","optionIds":[]},"c52aweb":{"id":"c52aweb","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"active"}},"title":"Add to Active","optionIds":[]},"1gxfaxq":{"id":"1gxfaxq","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"qdiglvt","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"4lwkp1j":{"id":"4lwkp1j","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"qdiglvt"}},"title":"Clear","optionIds":[]},"b3q1kmd":{"id":"b3q1kmd","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"A"}},"title":"Add to A","optionIds":[]},"35mcro3":{"id":"35mcro3","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"B"}},"title":"Add to B","optionIds":[]},"3k68884":{"id":"3k68884","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"active"}},"title":"Add to Active","optionIds":[]},"aw4y2uy":{"id":"aw4y2uy","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"tmmgjxc","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"2n503nx":{"id":"2n503nx","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"tmmgjxc"}},"title":"Clear","optionIds":[]},"k80ia5j":{"id":"k80ia5j","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Rotation Speed X","valueType":"float","type":"param","key":"rotSpeedX","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"aurbrha":{"id":"aurbrha","value":0.5952380952380952,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Rotation Speed Y","valueType":"float","type":"param","key":"rotSpeedY","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"y69sdsa":{"id":"y69sdsa","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Rotation Speed Z","valueType":"float","type":"param","key":"rotSpeedZ","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1,"optionIds":[]},"49yac1f":{"id":"49yac1f","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":4,"defaultMin":0.00001,"defaultMax":4,"optionIds":[]},"846g04r":{"id":"846g04r","value":true,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"Wireframe","valueType":"boolean","type":"param","key":"isWireframe","hidden":false,"optionIds":[]},"mla6f4b":{"id":"mla6f4b","value":"icosa","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","title":"geomName","valueType":"enum","type":"param","key":"geomName","hidden":false,"options":[{"value":"cube","label":"Cube"},{"value":"tetra","label":"Tetra"},{"value":"octa","label":"Octa"},{"value":"icosa","label":"Icosa"},{"value":"dodeca","label":"Dodeca"}],"optionIds":[]},"4l6qnb7":{"id":"4l6qnb7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"67rplxy","type":"shot","valueType":"shotFloat","title":"Random Geom","method":"randomGeom","optionIds":[]},"rhxwgoi":{"id":"rhxwgoi","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"delayMin","valueType":"float","type":"param","key":"delayMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"sqlamix":{"id":"sqlamix","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"delayMax","valueType":"float","type":"param","key":"delayMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"nuracvl":{"id":"nuracvl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"durationMin","valueType":"float","type":"param","key":"durationMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"2maqcfi":{"id":"2maqcfi","value":0.326007326007326,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"durationMax","valueType":"float","type":"param","key":"durationMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10,"optionIds":[]},"s864p7q":{"id":"s864p7q","value":0.27380952380952384,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"glitchAmpWeak","valueType":"float","type":"param","key":"glitchAmpWeak","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"f7b187l":{"id":"f7b187l","value":0.16666666666666666,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"glitchAmpStrong","valueType":"float","type":"param","key":"glitchAmpStrong","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"pfp70xu":{"id":"pfp70xu","value":0.85,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"strongWeakRatio","valueType":"float","type":"param","key":"strongWeakRatio","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"l3i395b":{"id":"l3i395b","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"k4ty7u0","title":"columns","valueType":"float","type":"param","key":"columns","hidden":false,"min":0,"max":0.5,"defaultMin":0,"defaultMax":0.5,"optionIds":[]},"areErrorPopupsDisabled":{"title":"Disable Error Popups","id":"areErrorPopupsDisabled","valueType":"boolean","value":false}},"scenes":{"items":{"qdiglvt":{"id":"qdiglvt","title":"scene 1","selectedSketchId":"uamks02","sketchIds":["uamks02"],"linkableActionIds":{"addToA":"w1ks5w7","addToB":"gcd03bb","addToActive":"c52aweb","addToOpposite":"1gxfaxq","clear":"4lwkp1j"},"settings":{}},"tmmgjxc":{"id":"tmmgjxc","title":"scene 2","selectedSketchId":"k4ty7u0","sketchIds":["67rplxy","k4ty7u0"],"linkableActionIds":{"addToA":"b3q1kmd","addToB":"35mcro3","addToActive":"3k68884","addToOpposite":"aw4y2uy","clear":"2n503nx"},"settings":{}}},"sceneIds":["qdiglvt","tmmgjxc"],"currentSceneId":"qdiglvt","channels":{"A":"qdiglvt","B":"tmmgjxc"}},"sketches":{"uamks02":{"title":"Space","moduleId":"space","paramIds":[],"shotIds":[]},"67rplxy":{"title":"Solid","moduleId":"solid","paramIds":["k80ia5j","aurbrha","y69sdsa","49yac1f","846g04r","mla6f4b"],"shotIds":["4l6qnb7"]},"k4ty7u0":{"title":"Glitch","moduleId":"glitch","paramIds":["rhxwgoi","sqlamix","nuracvl","2maqcfi","s864p7q","f7b187l","pfp70xu","l3i395b"],"shotIds":[]}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/scenes.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.1312650509484108,0.22710186327223927,0.037729798743333924,0.029614831250426386],"assignedLinkIds":[]},"lfo":{"value":403,"assignedLinkIds":[]}},"inputLinks":{"nodeIds":[]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":53.046875},"isEditing":false,"openedNode":false,"auxOpen":["sketchcat_simple"],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view","search":"","hash":"","key":"ha1m27"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} \ No newline at end of file diff --git a/example-projects/sketches/postprocessing.json b/example-projects/sketches/postprocessing.json deleted file mode 100644 index 6f57aefd..00000000 --- a/example-projects/sketches/postprocessing.json +++ /dev/null @@ -1 +0,0 @@ -{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float"},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}]},"sketchOrganization":{"id":"sketchOrganization","value":"folder","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float"},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float"},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float"},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float"},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float"},"4cgjr6h":{"id":"4cgjr6h","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"A"}},"title":"Add to A"},"xp6seer":{"id":"xp6seer","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"B"}},"title":"Add to B"},"xqgp6g9":{"id":"xqgp6g9","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"active"}},"title":"Add to Active"},"4pb80la":{"id":"4pb80la","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"4n281vi","channel":"opposite"}},"title":"Add to Opposite"},"5xw7soj":{"id":"5xw7soj","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"4n281vi"}},"title":"Clear"},"wptfrem":{"id":"wptfrem","value":0.5476190476190477,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Rotation Speed X","valueType":"float","type":"param","key":"rotSpeedX","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"vp458j6":{"id":"vp458j6","value":0.6547619047619048,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Rotation Speed Y","valueType":"float","type":"param","key":"rotSpeedY","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"6v3yinl":{"id":"6v3yinl","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Rotation Speed Z","valueType":"float","type":"param","key":"rotSpeedZ","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"nwcruot":{"id":"nwcruot","value":0.32110703435506,"inputLinkIds":["mbt5945"],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":4,"defaultMin":0.00001,"defaultMax":4,"openedLinkId":"mbt5945","activeInputLinkId":"mbt5945"},"71dgehw":{"id":"71dgehw","value":true,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"Wireframe","valueType":"boolean","type":"param","key":"isWireframe","hidden":false},"8j8ck0u":{"id":"8j8ck0u","value":"icosa","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"yfh9agp","title":"geomName","valueType":"enum","type":"param","key":"geomName","hidden":false,"options":[{"value":"cube","label":"Cube"},{"value":"tetra","label":"Tetra"},{"value":"octa","label":"Octa"},{"value":"icosa","label":"Icosa"},{"value":"dodeca","label":"Dodeca"}]},"oyvor29":{"id":"oyvor29","value":0,"inputLinkIds":[],"shotCount":7,"connectedMacroIds":[],"sketchId":"yfh9agp","type":"shot","valueType":"shotFloat","title":"Random Geom","method":"randomGeom"},"5smpa81":{"id":"5smpa81","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"rjn2jpt":{"id":"rjn2jpt","value":0.29838709677419356,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"g4d9dpg":{"id":"g4d9dpg","value":0.5080645161290323,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"9536abr":{"id":"9536abr","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"mbt5945","sketchId":"yfh9agp","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"donx5px":{"id":"donx5px","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"yfh9agp","parentNodeId":"mbt5945"},"c07gwwp":{"id":"c07gwwp","value":0.0625,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"yfh9agp","parentNodeId":"mbt5945"},"f9lnb4w":{"id":"f9lnb4w","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"yfh9agp","parentNodeId":"mbt5945"},"6ujsh3y":{"id":"6ujsh3y","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"yfh9agp","parentNodeId":"mbt5945"},"w3byfjy":{"id":"w3byfjy","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"nwcruot","linkId":"mbt5945"}},"sketchId":"yfh9agp","parentNodeId":"mbt5945"},"mbt5945":{"id":"mbt5945","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"nwcruot","sketchId":"yfh9agp","parentNodeId":"nwcruot","nodeType":"param","modifierIds":["5smpa81","rjn2jpt","g4d9dpg","9536abr"],"optionIds":["donx5px","c07gwwp","f9lnb4w","6ujsh3y"],"linkableActions":{"toggleActivate":"w3byfjy"},"linkType":"node"},"0pektyi":{"id":"0pektyi","value":0.8511904761904762,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"fi4l7p4","title":"scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"c3yb4x8":{"id":"c3yb4x8","value":0.17261904761904762,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"fi4l7p4","title":"rotAngle","valueType":"float","type":"param","key":"rotAngle","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"eurln1e":{"id":"eurln1e","value":0.5595238095238095,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"fi4l7p4","title":"mixAmp","valueType":"float","type":"param","key":"mixAmp","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"um9y6ks":{"id":"um9y6ks","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"A"}},"title":"Add to A"},"65dli7t":{"id":"65dli7t","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"B"}},"title":"Add to B"},"uist6q2":{"id":"uist6q2","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"active"}},"title":"Add to Active"},"19e1dg3":{"id":"19e1dg3","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"u1vjor2","channel":"opposite"}},"title":"Add to Opposite"},"4rf4qxe":{"id":"4rf4qxe","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"u1vjor2"}},"title":"Clear"},"nu1o7i8":{"id":"nu1o7i8","value":0.7380952380952381,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"oliy5ke":{"id":"oliy5ke","value":0.6726190476190476,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"lumThreshold","valueType":"float","type":"param","key":"lumThreshold","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"on6px1g":{"id":"on6px1g","value":0.6785714285714285,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"lumSmoothing","valueType":"float","type":"param","key":"lumSmoothing","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"vuynupk":{"id":"vuynupk","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"tujep7b","title":"opacity","valueType":"float","type":"param","key":"opacity","hidden":false,"min":0,"max":5,"defaultMin":0,"defaultMax":5},"ekcjqws":{"id":"ekcjqws","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"A"}},"title":"Add to A"},"r7k3b5e":{"id":"r7k3b5e","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"B"}},"title":"Add to B"},"4wp19xb":{"id":"4wp19xb","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"active"}},"title":"Add to Active"},"4ckidda":{"id":"4ckidda","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"rj3jgwf","channel":"opposite"}},"title":"Add to Opposite"},"gcifr8j":{"id":"gcifr8j","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"rj3jgwf"}},"title":"Clear"},"bhpkprh":{"id":"bhpkprh","value":0.5833333333333334,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"brightness","valueType":"float","type":"param","key":"brightness","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"gumkune":{"id":"gumkune","value":0.5904761904761906,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"contrast","valueType":"float","type":"param","key":"contrast","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"4wnjhe6":{"id":"4wnjhe6","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"Bright/Contr Opacity","valueType":"float","type":"param","key":"brightnessContrastOpacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"d1aqmji":{"id":"d1aqmji","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"gamma","valueType":"float","type":"param","key":"gamma","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"2c26f5r":{"id":"2c26f5r","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"gammaOpacity","valueType":"float","type":"param","key":"gammaOpacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"ak8ai1j":{"id":"ak8ai1j","value":0.48214285714285715,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"hue","valueType":"float","type":"param","key":"hue","hidden":false,"min":-3.141592653589793,"max":3.141592653589793,"defaultMin":-3.141592653589793,"defaultMax":3.141592653589793},"0pny178":{"id":"0pny178","value":0.7347619047619047,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"saturation","valueType":"float","type":"param","key":"saturation","hidden":false,"min":-1,"max":1,"defaultMin":-1,"defaultMax":1},"oaa8c7v":{"id":"oaa8c7v","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"phhmlx5","title":"hueSaturationOpacity","valueType":"float","type":"param","key":"hueSaturationOpacity","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"rg3im30":{"id":"rg3im30","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"delayMin","valueType":"float","type":"param","key":"delayMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"hplvx4m":{"id":"hplvx4m","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"delayMax","valueType":"float","type":"param","key":"delayMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"30qqfqx":{"id":"30qqfqx","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"durationMin","valueType":"float","type":"param","key":"durationMin","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"ea9bp1c":{"id":"ea9bp1c","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"durationMax","valueType":"float","type":"param","key":"durationMax","hidden":false,"min":0,"max":10,"defaultMin":0,"defaultMax":10},"dph4ujw":{"id":"dph4ujw","value":0.059523809523809514,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"glitchAmpWeak","valueType":"float","type":"param","key":"glitchAmpWeak","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"6ae78fv":{"id":"6ae78fv","value":0.20833333333333331,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"glitchAmpStrong","valueType":"float","type":"param","key":"glitchAmpStrong","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"6ysryhj":{"id":"6ysryhj","value":0.5226190476190475,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"strongWeakRatio","valueType":"float","type":"param","key":"strongWeakRatio","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"oudamq4":{"id":"oudamq4","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"bhvbob2","title":"columns","valueType":"float","type":"param","key":"columns","hidden":false,"min":0,"max":0.5,"defaultMin":0,"defaultMax":0.5},"srlvvj3":{"id":"srlvvj3","value":0.875,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"9q1d6w7","title":"BG Color H","valueType":"float","type":"param","key":"colorH","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"xdsr1hp":{"id":"xdsr1hp","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"9q1d6w7","title":"BG Color S","valueType":"float","type":"param","key":"colorS","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"6ut8gdp":{"id":"6ut8gdp","value":0.1547619047619048,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"9q1d6w7","title":"BG Color L","valueType":"float","type":"param","key":"colorL","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1}},"scenes":{"items":{"4n281vi":{"id":"4n281vi","title":"scene 1","selectedSketchId":"9q1d6w7","sketchIds":["yfh9agp","fi4l7p4","9q1d6w7"],"linkableActionIds":{"addToA":"4cgjr6h","addToB":"xp6seer","addToActive":"xqgp6g9","addToOpposite":"4pb80la","clear":"5xw7soj"},"settings":{}},"u1vjor2":{"id":"u1vjor2","title":"scene 2","selectedSketchId":"tujep7b","sketchIds":["aq0mewx","tujep7b"],"linkableActionIds":{"addToA":"um9y6ks","addToB":"65dli7t","addToActive":"uist6q2","addToOpposite":"19e1dg3","clear":"4rf4qxe"},"settings":{}},"rj3jgwf":{"id":"rj3jgwf","title":"global","selectedSketchId":"phhmlx5","sketchIds":["phhmlx5","bhvbob2"],"linkableActionIds":{"addToA":"ekcjqws","addToB":"r7k3b5e","addToActive":"4wp19xb","addToOpposite":"4ckidda","clear":"gcifr8j"},"settings":{"globalPostProcessingEnabled":true}}},"sceneIds":["4n281vi","u1vjor2","rj3jgwf"],"currentSceneId":"4n281vi","channels":{"A":"4n281vi","B":"u1vjor2"}},"sketches":{"yfh9agp":{"title":"Solid","moduleId":"solid","paramIds":["wptfrem","vp458j6","6v3yinl","nwcruot","71dgehw","8j8ck0u"],"shotIds":["oyvor29"],"openedNodeId":"nwcruot"},"fi4l7p4":{"title":"Trails","moduleId":"trails","paramIds":["0pektyi","c3yb4x8","eurln1e"],"shotIds":[]},"aq0mewx":{"title":"Space","moduleId":"space","paramIds":[],"shotIds":[]},"tujep7b":{"title":"Bloom","moduleId":"bloom","paramIds":["nu1o7i8","oliy5ke","on6px1g","vuynupk"],"shotIds":[]},"phhmlx5":{"title":"Color","moduleId":"color","paramIds":["bhpkprh","gumkune","4wnjhe6","d1aqmji","2c26f5r","ak8ai1j","0pny178","oaa8c7v"],"shotIds":[]},"bhvbob2":{"title":"Glitch","moduleId":"glitch","paramIds":["rg3im30","hplvx4m","30qqfqx","ea9bp1c","dph4ujw","6ae78fv","6ysryhj","oudamq4"],"shotIds":[]},"9q1d6w7":{"title":"Env","moduleId":"env","paramIds":["srlvvj3","xdsr1hp","6ut8gdp"],"shotIds":[]}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches/postprocessing.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.03328674742462026,0.004931120302339014,0.002571158699959153,0],"assignedLinkIds":[]},"lfo":{"value":1082.2916666666667,"assignedLinkIds":["mbt5945"]}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":["sketchcat_simple","sketchcat_post"],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view","search":"","hash":"","key":"26a8a4"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}},"values":{},"initial":{}}}} diff --git a/example-projects/text.json b/example-projects/text.json index d3b2e97e..00cc3df3 100644 --- a/example-projects/text.json +++ b/example-projects/text.json @@ -1 +1 @@ -{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float"},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float"},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float"},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float"},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float"},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float"},"85paqu1":{"id":"85paqu1","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"A"}},"title":"Add to A"},"fmj6hvl":{"id":"fmj6hvl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"B"}},"title":"Add to B"},"ms3bg0t":{"id":"ms3bg0t","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"active"}},"title":"Add to Active"},"ywg1mxv":{"id":"ywg1mxv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"opposite"}},"title":"Add to Opposite"},"17pclwn":{"id":"17pclwn","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"c4vh6vf"}},"title":"Clear"},"q6gndg8":{"id":"q6gndg8","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"posX","valueType":"float","type":"param","key":"posX","hidden":false,"min":-10,"max":10,"defaultMin":-10,"defaultMax":10},"ycwxf8w":{"id":"ycwxf8w","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"posY","valueType":"float","type":"param","key":"posY","hidden":false,"min":-10,"max":10,"defaultMin":-10,"defaultMax":10},"qkyoc48":{"id":"qkyoc48","value":0.01666666666666672,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"posZ","valueType":"float","type":"param","key":"posZ","hidden":false,"min":-20,"max":0,"defaultMin":-20,"defaultMax":0},"rwa0mav":{"id":"rwa0mav","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"rotX","valueType":"float","type":"param","key":"rotX","hidden":false,"min":-3.1415,"max":3.1415,"defaultMin":-3.1415,"defaultMax":3.1415},"vhx5pws":{"id":"vhx5pws","value":0.9322916666666643,"inputLinkIds":["roodmrg"],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"rotY","valueType":"float","type":"param","key":"rotY","hidden":false,"min":-3.1415,"max":3.1415,"defaultMin":-3.1415,"defaultMax":3.1415,"openedLinkId":"roodmrg","activeInputLinkId":"roodmrg"},"p3pix4m":{"id":"p3pix4m","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"rotZ","valueType":"float","type":"param","key":"rotZ","hidden":false,"min":-3.1415,"max":3.1415,"defaultMin":-3.1415,"defaultMax":3.1415},"5u88t8e":{"id":"5u88t8e","value":0.8166666666666667,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"colorHue","valueType":"float","type":"param","key":"colorHue","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"fuvht0t":{"id":"fuvht0t","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"colorSat","valueType":"float","type":"param","key":"colorSat","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"ai400ud":{"id":"ai400ud","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"colorLight","valueType":"float","type":"param","key":"colorLight","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"wsbb6vh":{"id":"wsbb6vh","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"alpha","valueType":"float","type":"param","key":"alpha","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"ombvtk7":{"id":"ombvtk7","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":10,"defaultMin":0.00001,"defaultMax":10},"cebk0a3":{"id":"cebk0a3","value":0.20438071450436845,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"thickness","valueType":"float","type":"param","key":"thickness","hidden":false,"min":0.0001,"max":1,"defaultMin":0.0001,"defaultMax":1,"activeInputLinkId":"7f7roa5"},"l3n1m2d":{"id":"l3n1m2d","value":"Hello world!","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"text","valueType":"string","type":"param","key":"text","hidden":false},"dp0xja4":{"id":"dp0xja4","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"4qlfsgo","parentNodeId":"7f7roa5"},"cqgcgu2":{"id":"cqgcgu2","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"4qlfsgo","parentNodeId":"7f7roa5"},"03e6iva":{"id":"03e6iva","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"4qlfsgo","parentNodeId":"7f7roa5"},"t9y2myk":{"id":"t9y2myk","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"4qlfsgo","parentNodeId":"7f7roa5"},"w8mmg9r":{"id":"w8mmg9r","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"r3xn8lw":{"id":"r3xn8lw","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"lngsm5m":{"id":"lngsm5m","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"5kb936w":{"id":"5kb936w","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"vv9rs21":{"id":"vv9rs21","value":"sawtooth","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"4qlfsgo","parentNodeId":"roodmrg"},"t2qgvqb":{"id":"t2qgvqb","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"4qlfsgo","parentNodeId":"roodmrg"},"rbmhlfm":{"id":"rbmhlfm","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"4qlfsgo","parentNodeId":"roodmrg"},"fjxmpty":{"id":"fjxmpty","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"4qlfsgo","parentNodeId":"roodmrg"},"9lqwaxj":{"id":"9lqwaxj","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"vhx5pws","linkId":"roodmrg"}},"sketchId":"4qlfsgo","parentNodeId":"roodmrg"},"roodmrg":{"id":"roodmrg","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"vhx5pws","sketchId":"4qlfsgo","parentNodeId":"vhx5pws","nodeType":"param","modifierIds":["w8mmg9r","r3xn8lw","lngsm5m","5kb936w"],"optionIds":["vv9rs21","t2qgvqb","rbmhlfm","fjxmpty"],"linkableActions":{"toggleActivate":"9lqwaxj"},"linkType":"node"}},"scenes":{"items":{"c4vh6vf":{"id":"c4vh6vf","title":"Text","selectedSketchId":"4qlfsgo","sketchIds":["4qlfsgo"],"linkableActionIds":{"addToA":"85paqu1","addToB":"fmj6hvl","addToActive":"ms3bg0t","addToOpposite":"ywg1mxv","clear":"17pclwn"},"settings":{}}},"sceneIds":["c4vh6vf"],"currentSceneId":"c4vh6vf","channels":{"A":"c4vh6vf","B":false}},"sketches":{"4qlfsgo":{"title":"Text Basic","moduleId":"textBasic","paramIds":["q6gndg8","ycwxf8w","qkyoc48","rwa0mav","vhx5pws","p3pix4m","5u88t8e","fuvht0t","ai400ud","wsbb6vh","ombvtk7","cebk0a3","l3n1m2d"],"shotIds":[],"openedNodeId":"cebk0a3"}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/text.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.20162481783378694,0.2874239617590741,0.23903642555747207,0.20048961703454868],"assignedLinkIds":[]},"lfo":{"value":295.4583333333333,"assignedLinkIds":["roodmrg"]}},"inputLinks":{"nodeIds":[]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":[],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view/c4vh6vf","search":"","hash":"","key":"ah4cuj"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} +{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float","optionIds":[]},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}],"optionIds":[]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}],"optionIds":[]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float","optionIds":[]},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float","optionIds":[]},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float","optionIds":[]},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float","optionIds":[]},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float","optionIds":[]},"85paqu1":{"id":"85paqu1","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"A"}},"title":"Add to A","optionIds":[]},"fmj6hvl":{"id":"fmj6hvl","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"B"}},"title":"Add to B","optionIds":[]},"ms3bg0t":{"id":"ms3bg0t","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"active"}},"title":"Add to Active","optionIds":[]},"ywg1mxv":{"id":"ywg1mxv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"c4vh6vf","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"17pclwn":{"id":"17pclwn","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"c4vh6vf"}},"title":"Clear","optionIds":[]},"q6gndg8":{"id":"q6gndg8","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"posX","valueType":"float","type":"param","key":"posX","hidden":false,"min":-10,"max":10,"defaultMin":-10,"defaultMax":10,"optionIds":[]},"ycwxf8w":{"id":"ycwxf8w","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"posY","valueType":"float","type":"param","key":"posY","hidden":false,"min":-10,"max":10,"defaultMin":-10,"defaultMax":10,"optionIds":[]},"qkyoc48":{"id":"qkyoc48","value":0.01666666666666672,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"posZ","valueType":"float","type":"param","key":"posZ","hidden":false,"min":-20,"max":0,"defaultMin":-20,"defaultMax":0,"optionIds":[]},"rwa0mav":{"id":"rwa0mav","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"rotX","valueType":"float","type":"param","key":"rotX","hidden":false,"min":-3.1415,"max":3.1415,"defaultMin":-3.1415,"defaultMax":3.1415,"optionIds":[]},"vhx5pws":{"id":"vhx5pws","value":0.9322916666666643,"inputLinkIds":["roodmrg"],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"rotY","valueType":"float","type":"param","key":"rotY","hidden":false,"min":-3.1415,"max":3.1415,"defaultMin":-3.1415,"defaultMax":3.1415,"openedLinkId":"roodmrg","activeInputLinkId":"roodmrg","optionIds":[]},"p3pix4m":{"id":"p3pix4m","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"rotZ","valueType":"float","type":"param","key":"rotZ","hidden":false,"min":-3.1415,"max":3.1415,"defaultMin":-3.1415,"defaultMax":3.1415,"optionIds":[]},"5u88t8e":{"id":"5u88t8e","value":0.8166666666666667,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"colorHue","valueType":"float","type":"param","key":"colorHue","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"fuvht0t":{"id":"fuvht0t","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"colorSat","valueType":"float","type":"param","key":"colorSat","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"ai400ud":{"id":"ai400ud","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"colorLight","valueType":"float","type":"param","key":"colorLight","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"wsbb6vh":{"id":"wsbb6vh","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"alpha","valueType":"float","type":"param","key":"alpha","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"ombvtk7":{"id":"ombvtk7","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"scale","valueType":"float","type":"param","key":"scale","hidden":false,"min":0.00001,"max":10,"defaultMin":0.00001,"defaultMax":10,"optionIds":[]},"cebk0a3":{"id":"cebk0a3","value":0.20438071450436845,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"thickness","valueType":"float","type":"param","key":"thickness","hidden":false,"min":0.0001,"max":1,"defaultMin":0.0001,"defaultMax":1,"activeInputLinkId":"7f7roa5","optionIds":[]},"l3n1m2d":{"id":"l3n1m2d","value":"Hello world!","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"4qlfsgo","title":"text","valueType":"string","type":"param","key":"text","hidden":false,"optionIds":[]},"dp0xja4":{"id":"dp0xja4","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"4qlfsgo","parentNodeId":"7f7roa5","optionIds":[]},"cqgcgu2":{"id":"cqgcgu2","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"4qlfsgo","parentNodeId":"7f7roa5","optionIds":[]},"03e6iva":{"id":"03e6iva","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"4qlfsgo","parentNodeId":"7f7roa5","optionIds":[]},"t9y2myk":{"id":"t9y2myk","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"4qlfsgo","parentNodeId":"7f7roa5","optionIds":[]},"w8mmg9r":{"id":"w8mmg9r","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"r3xn8lw":{"id":"r3xn8lw","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"lngsm5m":{"id":"lngsm5m","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"5kb936w":{"id":"5kb936w","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"roodmrg","sketchId":"4qlfsgo","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"vv9rs21":{"id":"vv9rs21","value":"sawtooth","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"4qlfsgo","parentNodeId":"roodmrg","optionIds":[]},"t2qgvqb":{"id":"t2qgvqb","value":0.125,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"4qlfsgo","parentNodeId":"roodmrg","optionIds":[]},"rbmhlfm":{"id":"rbmhlfm","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"4qlfsgo","parentNodeId":"roodmrg","optionIds":[]},"fjxmpty":{"id":"fjxmpty","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"4qlfsgo","parentNodeId":"roodmrg","optionIds":[]},"9lqwaxj":{"id":"9lqwaxj","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"vhx5pws","linkId":"roodmrg"}},"sketchId":"4qlfsgo","parentNodeId":"roodmrg","optionIds":[]},"roodmrg":{"id":"roodmrg","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"vhx5pws","sketchId":"4qlfsgo","parentNodeId":"vhx5pws","nodeType":"param","modifierIds":["w8mmg9r","r3xn8lw","lngsm5m","5kb936w"],"optionIds":["vv9rs21","t2qgvqb","rbmhlfm","fjxmpty"],"linkableActions":{"toggleActivate":"9lqwaxj"},"linkType":"node"},"areErrorPopupsDisabled":{"title":"Disable Error Popups","id":"areErrorPopupsDisabled","valueType":"boolean","value":false}},"scenes":{"items":{"c4vh6vf":{"id":"c4vh6vf","title":"Text","selectedSketchId":"4qlfsgo","sketchIds":["4qlfsgo"],"linkableActionIds":{"addToA":"85paqu1","addToB":"fmj6hvl","addToActive":"ms3bg0t","addToOpposite":"ywg1mxv","clear":"17pclwn"},"settings":{}}},"sceneIds":["c4vh6vf"],"currentSceneId":"c4vh6vf","channels":{"A":"c4vh6vf","B":false}},"sketches":{"4qlfsgo":{"title":"Text Basic","moduleId":"textBasic","paramIds":["q6gndg8","ycwxf8w","qkyoc48","rwa0mav","vhx5pws","p3pix4m","5u88t8e","fuvht0t","ai400ud","wsbb6vh","ombvtk7","cebk0a3","l3n1m2d"],"shotIds":[],"openedNodeId":"cebk0a3"}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/text.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.20162481783378694,0.2874239617590741,0.23903642555747207,0.20048961703454868],"assignedLinkIds":[]},"lfo":{"value":295.4583333333333,"assignedLinkIds":["roodmrg"]}},"inputLinks":{"nodeIds":[]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":[],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view/c4vh6vf","search":"","hash":"","key":"ah4cuj"},"action":"PUSH"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}},"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}}},"sceneManager":{"values":{},"initial":{},"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":1}}}}} \ No newline at end of file diff --git a/example-projects/trig.json b/example-projects/trig.json index 5abf61c1..445959d1 100644 --- a/example-projects/trig.json +++ b/example-projects/trig.json @@ -1 +1 @@ -{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float"},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float"},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float"},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float"},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float"},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float"},"nfvpxr5":{"id":"nfvpxr5","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"A"}},"title":"Add to A"},"w0lrg75":{"id":"w0lrg75","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"B"}},"title":"Add to B"},"3forys1":{"id":"3forys1","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"active"}},"title":"Add to Active"},"avd503v":{"id":"avd503v","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"opposite"}},"title":"Add to Opposite"},"vngva4s":{"id":"vngva4s","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"wp4x68x"}},"title":"Clear"},"2kr4yf4":{"id":"2kr4yf4","value":0.7500000000000002,"inputLinkIds":["s187tud"],"shotCount":0,"connectedMacroIds":[],"sketchId":"v51llf1","title":"Pos X","valueType":"float","type":"param","key":"posX","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"s187tud","activeInputLinkId":"s187tud"},"mcnrifk":{"id":"mcnrifk","value":0.9330127018922205,"inputLinkIds":["w8bl21x"],"shotCount":0,"connectedMacroIds":[],"sketchId":"v51llf1","title":"Pos Y","valueType":"float","type":"param","key":"posY","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"w8bl21x","activeInputLinkId":"w8bl21x"},"p1abkol":{"id":"p1abkol","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"v51llf1","title":"Pos Z","valueType":"float","type":"param","key":"posZ","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1},"trf7g03":{"id":"trf7g03","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"qwtg6u1":{"id":"qwtg6u1","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"ouoe6tw":{"id":"ouoe6tw","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"ak5v48c":{"id":"ak5v48c","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"8miykns":{"id":"8miykns","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"v51llf1","parentNodeId":"s187tud"},"5beqp2d":{"id":"5beqp2d","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"v51llf1","parentNodeId":"s187tud"},"wnudhvv":{"id":"wnudhvv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"v51llf1","parentNodeId":"s187tud"},"n3g6udy":{"id":"n3g6udy","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"v51llf1","parentNodeId":"s187tud"},"c876of7":{"id":"c876of7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"2kr4yf4","linkId":"s187tud"}},"sketchId":"v51llf1","parentNodeId":"s187tud"},"s187tud":{"id":"s187tud","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"2kr4yf4","sketchId":"v51llf1","parentNodeId":"2kr4yf4","nodeType":"param","modifierIds":["trf7g03","qwtg6u1","ouoe6tw","ak5v48c"],"optionIds":["8miykns","5beqp2d","wnudhvv","n3g6udy"],"linkableActions":{"toggleActivate":"c876of7"},"linkType":"node"},"t9x71da":{"id":"t9x71da","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true},"kr2p3g7":{"id":"kr2p3g7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true},"cye3l3w":{"id":"cye3l3w","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true},"xfiqftg":{"id":"xfiqftg","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true},"72bggu9":{"id":"72bggu9","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"v51llf1","parentNodeId":"w8bl21x"},"frw4cdf":{"id":"frw4cdf","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"v51llf1","parentNodeId":"w8bl21x"},"mnnngb2":{"id":"mnnngb2","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"v51llf1","parentNodeId":"w8bl21x"},"80u64bc":{"id":"80u64bc","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"v51llf1","parentNodeId":"w8bl21x"},"i6r82rc":{"id":"i6r82rc","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"mcnrifk","linkId":"w8bl21x"}},"sketchId":"v51llf1","parentNodeId":"w8bl21x"},"w8bl21x":{"id":"w8bl21x","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"mcnrifk","sketchId":"v51llf1","parentNodeId":"mcnrifk","nodeType":"param","modifierIds":["t9x71da","kr2p3g7","cye3l3w","xfiqftg"],"optionIds":["72bggu9","frw4cdf","mnnngb2","80u64bc"],"linkableActions":{"toggleActivate":"i6r82rc"},"linkType":"node"}},"scenes":{"items":{"wp4x68x":{"id":"wp4x68x","title":"Trig","selectedSketchId":"v51llf1","sketchIds":["v51llf1"],"linkableActionIds":{"addToA":"nfvpxr5","addToB":"w0lrg75","addToActive":"3forys1","addToOpposite":"avd503v","clear":"vngva4s"},"settings":{}}},"sceneIds":["wp4x68x"],"currentSceneId":"wp4x68x","channels":{"A":"wp4x68x","B":false}},"sketches":{"v51llf1":{"title":"Point","moduleId":"point","paramIds":["2kr4yf4","mcnrifk","p1abkol"],"shotIds":[],"openedNodeId":"mcnrifk"}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/trig.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.15305378962341487,0.1729028001665264,0.2636422328527456,0.16362095707258095],"assignedLinkIds":[]},"lfo":{"value":39.083333333333336,"assignedLinkIds":["s187tud","w8bl21x"]}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":[],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view/wp4x68x","search":"","hash":"","key":"4wn1s6"},"action":"REPLACE"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}},"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}}},"sceneManager":{"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":2}},"values":{},"initial":{}}}} +{"nodes":{"sceneCrossfader":{"id":"sceneCrossfader","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Scene Crossfader","type":"param","valueType":"float","optionIds":[]},"viewerMode":{"id":"viewerMode","value":"mix","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Viewer Mode","valueType":"enum","options":[{"value":"mix","label":"Mix"},{"value":"A","label":"A"},{"value":"B","label":"B"}],"optionIds":[]},"sketchOrganization":{"id":"sketchOrganization","value":"category","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Sketch Organization","valueType":"enum","options":[{"value":"folder","label":"Folder"},{"value":"category","label":"Category"},{"value":"author","label":"Author"}],"optionIds":[]},"audioLevelsFalloff":{"id":"audioLevelsFalloff","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Falloff","type":"param","valueType":"float","optionIds":[]},"audioLevelsPower":{"id":"audioLevelsPower","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Power","type":"param","min":0.5,"max":3,"valueType":"float","optionIds":[]},"audioLevelsSmoothing":{"id":"audioLevelsSmoothing","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Levels Smoothing","type":"param","valueType":"float","optionIds":[]},"audioNormalizeLevels":{"id":"audioNormalizeLevels","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalize Levels","type":"param","valueType":"float","optionIds":[]},"audioNormalizeRangeFalloff":{"id":"audioNormalizeRangeFalloff","value":0.01,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Normalized Range Falloff","type":"param","valueType":"float","optionIds":[]},"nfvpxr5":{"id":"nfvpxr5","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"A"}},"title":"Add to A","optionIds":[]},"w0lrg75":{"id":"w0lrg75","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"B"}},"title":"Add to B","optionIds":[]},"3forys1":{"id":"3forys1","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"active"}},"title":"Add to Active","optionIds":[]},"avd503v":{"id":"avd503v","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"U_SCENE_SELECT_CHANNEL","payload":{"id":"wp4x68x","channel":"opposite"}},"title":"Add to Opposite","optionIds":[]},"vngva4s":{"id":"vngva4s","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","action":{"type":"SCENE_CLEAR_CHANNEL","payload":{"id":"wp4x68x"}},"title":"Clear","optionIds":[]},"2kr4yf4":{"id":"2kr4yf4","value":0.7500000000000002,"inputLinkIds":["s187tud"],"shotCount":0,"connectedMacroIds":[],"sketchId":"v51llf1","title":"Pos X","valueType":"float","type":"param","key":"posX","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"s187tud","activeInputLinkId":"s187tud","optionIds":[]},"mcnrifk":{"id":"mcnrifk","value":0.9330127018922205,"inputLinkIds":["w8bl21x"],"shotCount":0,"connectedMacroIds":[],"sketchId":"v51llf1","title":"Pos Y","valueType":"float","type":"param","key":"posY","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"openedLinkId":"w8bl21x","activeInputLinkId":"w8bl21x","optionIds":[]},"p1abkol":{"id":"p1abkol","value":0.5,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"sketchId":"v51llf1","title":"Pos Z","valueType":"float","type":"param","key":"posZ","hidden":false,"min":0,"max":1,"defaultMin":0,"defaultMax":1,"optionIds":[]},"trf7g03":{"id":"trf7g03","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"qwtg6u1":{"id":"qwtg6u1","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"ouoe6tw":{"id":"ouoe6tw","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"ak5v48c":{"id":"ak5v48c","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"s187tud","sketchId":"v51llf1","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"8miykns":{"id":"8miykns","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"v51llf1","parentNodeId":"s187tud","optionIds":[]},"5beqp2d":{"id":"5beqp2d","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"v51llf1","parentNodeId":"s187tud","optionIds":[]},"wnudhvv":{"id":"wnudhvv","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"v51llf1","parentNodeId":"s187tud","optionIds":[]},"n3g6udy":{"id":"n3g6udy","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"v51llf1","parentNodeId":"s187tud","optionIds":[]},"c876of7":{"id":"c876of7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"2kr4yf4","linkId":"s187tud"}},"sketchId":"v51llf1","parentNodeId":"s187tud","optionIds":[]},"s187tud":{"id":"s187tud","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"2kr4yf4","sketchId":"v51llf1","parentNodeId":"2kr4yf4","nodeType":"param","modifierIds":["trf7g03","qwtg6u1","ouoe6tw","ak5v48c"],"optionIds":["8miykns","5beqp2d","wnudhvv","n3g6udy"],"linkableActions":{"toggleActivate":"c876of7"},"linkType":"node"},"t9x71da":{"id":"t9x71da","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"threshold","title":"Threshold","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"kr2p3g7":{"id":"kr2p3g7","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"range","title":"Lower Range","passToNext":true,"valueType":"float","subNode":true,"optionIds":[]},"cye3l3w":{"id":"cye3l3w","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"range","title":"Upper Range","passToNext":false,"valueType":"float","subNode":true,"optionIds":[]},"xfiqftg":{"id":"xfiqftg","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"parentNodeId":"w8bl21x","sketchId":"v51llf1","key":"increment","title":"Increment","passToNext":false,"valueType":"enum","options":[{"value":0,"label":"Off"},{"value":1,"label":"Increment"},{"value":2,"label":"Decrement"}],"subNode":true,"optionIds":[]},"72bggu9":{"id":"72bggu9","value":"sine","inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Shape","key":"shape","valueType":"enum","subNode":true,"options":[{"value":"sine","label":"Sine"},{"value":"square","label":"Square"},{"value":"sawtooth","label":"Sawtooth"},{"value":"rSawtooth","label":"Revese Sawtooth"},{"value":"triangle","label":"Triangle"},{"value":"noise","label":"Noise"}],"sketchId":"v51llf1","parentNodeId":"w8bl21x","optionIds":[]},"frw4cdf":{"id":"frw4cdf","value":1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Rate","key":"rate","valueType":"enum","subNode":true,"options":[{"value":32,"label":"32"},{"value":16,"label":"16"},{"value":8,"label":"8"},{"value":4,"label":"4"},{"value":2,"label":"2"},{"value":1,"label":"1"},{"value":0.5,"label":"1/2"},{"value":0.25,"label":"1/4"},{"value":0.125,"label":"1/8"},{"value":0.0625,"label":"1/16"},{"value":0.03125,"label":"1/32"}],"sketchId":"v51llf1","parentNodeId":"w8bl21x","optionIds":[]},"mnnngb2":{"id":"mnnngb2","value":0.25,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Phase","key":"phase","valueType":"float","subNode":true,"sketchId":"v51llf1","parentNodeId":"w8bl21x","optionIds":[]},"80u64bc":{"id":"80u64bc","value":-1,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"Seed","key":"seed","valueType":"enum","subNode":true,"options":[{"value":-1,"label":"auto"},{"value":0,"label":"0"},{"value":1,"label":"1"},{"value":2,"label":"2"},{"value":3,"label":"3"},{"value":4,"label":"4"},{"value":5,"label":"5"},{"value":6,"label":"6"},{"value":7,"label":"7"},{"value":8,"label":"8"},{"value":9,"label":"9"},{"value":10,"label":"10"},{"value":11,"label":"11"},{"value":12,"label":"12"},{"value":13,"label":"13"},{"value":14,"label":"14"},{"value":15,"label":"15"},{"value":16,"label":"16"},{"value":17,"label":"17"},{"value":18,"label":"18"},{"value":19,"label":"19"},{"value":20,"label":"20"},{"value":21,"label":"21"},{"value":22,"label":"22"},{"value":23,"label":"23"},{"value":24,"label":"24"}],"sketchId":"v51llf1","parentNodeId":"w8bl21x","optionIds":[]},"i6r82rc":{"id":"i6r82rc","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"type":"linkableAction","title":"Toggle Activate","action":{"type":"NODE_ACTIVE_INPUT_LINK_TOGGLE","payload":{"nodeId":"mcnrifk","linkId":"w8bl21x"}},"sketchId":"v51llf1","parentNodeId":"w8bl21x","optionIds":[]},"w8bl21x":{"id":"w8bl21x","value":0,"inputLinkIds":[],"shotCount":0,"connectedMacroIds":[],"title":"lfo","type":"inputLink","input":{"id":"lfo","type":"lfo"},"nodeId":"mcnrifk","sketchId":"v51llf1","parentNodeId":"mcnrifk","nodeType":"param","modifierIds":["t9x71da","kr2p3g7","cye3l3w","xfiqftg"],"optionIds":["72bggu9","frw4cdf","mnnngb2","80u64bc"],"linkableActions":{"toggleActivate":"i6r82rc"},"linkType":"node"},"areErrorPopupsDisabled":{"title":"Disable Error Popups","id":"areErrorPopupsDisabled","valueType":"boolean","value":false}},"scenes":{"items":{"wp4x68x":{"id":"wp4x68x","title":"Trig","selectedSketchId":"v51llf1","sketchIds":["v51llf1"],"linkableActionIds":{"addToA":"nfvpxr5","addToB":"w0lrg75","addToActive":"3forys1","addToOpposite":"avd503v","clear":"vngva4s"},"settings":{}}},"sceneIds":["wp4x68x"],"currentSceneId":"wp4x68x","channels":{"A":"wp4x68x","B":false}},"sketches":{"v51llf1":{"title":"Point","moduleId":"point","paramIds":["2kr4yf4","mcnrifk","p1abkol"],"shotIds":[],"openedNodeId":"mcnrifk"}},"project":{"filePath":"/Users/alex/Sites/GitHub/hedron/example-projects/trig.json","sketchesPath":"/Users/alex/Sites/GitHub/hedron/example-projects/sketches","errors":[],"errorPopup":false},"inputs":{"audio":{"value":[0.15305378962341487,0.1729028001665264,0.2636422328527456,0.16362095707258095],"assignedLinkIds":[]},"lfo":{"value":39.083333333333336,"assignedLinkIds":["s187tud","w8bl21x"]}},"inputLinks":{"nodeIds":[null]},"midi":{"learning":false,"devices":{"IAC Driver IAC Bus 1":{"title":"IAC Driver IAC Bus 1","id":"IAC Driver IAC Bus 1","manufacturer":"Apple Inc.","settings":{"forceChannel":{"value":false,"label":"-"}}}},"connectedDeviceIds":["IAC Driver IAC Bus 1"]},"macros":{"learningId":false,"nodeIds":[]},"ui":{"panelWidths":{"left":50},"isEditing":false,"openedNode":false,"auxOpen":[],"addSketchOpen":{}},"router":{"location":{"pathname":"/scenes/view/wp4x68x","search":"","hash":"","key":"4wn1s6"},"action":"REPLACE"},"settings":{"clockGenerated":true,"clockBpm":120,"aspectW":16,"aspectH":9,"throttledFPS":60,"watchSketchesDir":true},"form":{"device_IAC Driver IAC Bus 1":{"registeredFields":{"forceChannel":{"name":"forceChannel","type":"Field","count":1}},"values":{"forceChannel":{"value":false,"label":"-"}},"initial":{"forceChannel":{"value":false,"label":"-"}}},"sceneManager":{"registeredFields":{"globalPostProcessingEnabled":{"name":"globalPostProcessingEnabled","type":"Field","count":2}},"values":{},"initial":{}}}} \ No newline at end of file diff --git a/projectFixScripts/0.5-0.6.js b/projectFixScripts/0.5-0.6.js index dc17018d..88c98a74 100644 --- a/projectFixScripts/0.5-0.6.js +++ b/projectFixScripts/0.5-0.6.js @@ -8,6 +8,7 @@ const parseOldOptions = (key, node) => { } fix(data => { + // Loop through nodes in project for (const key in data.nodes) { const node = data.nodes[key] @@ -58,6 +59,16 @@ fix(data => { } } + // Check if new core nodes are missing + if (data.nodes.areErrorPopupsDisabled === undefined) { + data.nodes.areErrorPopupsDisabled = { + title: 'Disable Error Popups', + id: 'areErrorPopupsDisabled', + valueType: 'boolean', + value: false, + } + } + return data }) diff --git a/projectFixScripts/lib/index.js b/projectFixScripts/lib/index.js index 4312f2fe..04d8a7ba 100644 --- a/projectFixScripts/lib/index.js +++ b/projectFixScripts/lib/index.js @@ -3,7 +3,7 @@ const path = require('path') const args = process.argv.slice(2) const inputPath = args[0] -const outputPath = './output' +const outputPath = args[1] || './output' const fileName = path.basename(inputPath) const fix = cb => { diff --git a/src/components/Col/index.js b/src/components/Col/index.js index ae8b7719..7c83a9b9 100644 --- a/src/components/Col/index.js +++ b/src/components/Col/index.js @@ -1,9 +1,9 @@ import styled from 'styled-components' const Col = styled.div` - ${props => props.width + ${props => !props.noWidth && (props.width ? `flex: 0 0 ${props.width};` - : `flex: 1;` + : `flex: 1;`) } padding-right: 1rem; diff --git a/src/components/ErrorOverlay/index.js b/src/components/ErrorOverlay/index.js index da88993c..482e5541 100644 --- a/src/components/ErrorOverlay/index.js +++ b/src/components/ErrorOverlay/index.js @@ -3,6 +3,9 @@ import styled from 'styled-components' import PropTypes from 'prop-types' import OverlayModal from '../OverlayModal' import Button from '../Button' +import Col from '../Col' +import Row from '../Row' +import Control from '../../containers/Control' const ErrorMessage = styled.p` opacity: 0.5; @@ -16,11 +19,22 @@ const Wrapper = styled.div` user-select: text; ` +const PopupControl = styled(Row)` + margin-top: 1rem; + font-size: 0.7rem; + background: rgba(100,100,100,0.5); + border-radius: 2px; + padding: 0.5rem; + text-align: left; +` + const ErrorOverlay = ({ isVisible, onCancelClick, code, message, onChooseSketchFolderClick }) => { let inner =

Whoops!

+ let showPopupControl = true switch (code) { case 'NO_SKETCH_FOLDER': + showPopupControl = false inner = (

The sketches folder for this project could not be located, please find the folder on your computer. @@ -41,6 +55,13 @@ const ErrorOverlay = ({ isVisible, onCancelClick, code, message, onChooseSketchF {inner} {message} + { + showPopupControl && + + Stop errors from popping up (Can be enabled again in settings) + + } + ) } diff --git a/src/components/Settings/index.js b/src/components/Settings/index.js index 865b982c..45c17ac6 100644 --- a/src/components/Settings/index.js +++ b/src/components/Settings/index.js @@ -49,6 +49,15 @@ const Settings = () => ( +

GUI

+ + +

Disable Error Popups

+ + + + +
) diff --git a/src/externals/sketches.js b/src/externals/sketches.js index b9c913df..cf002fa2 100644 --- a/src/externals/sketches.js +++ b/src/externals/sketches.js @@ -25,7 +25,11 @@ const loadFile = resolvedPath => { } if (!file) { - throw new Error(`File not found: ${resolvedPath}`) + throw errcode( + new Error(`File not found: ${resolvedPath}`), + 'FILE_NOT_FOUND', + { forcePopup: true } + ) } return file @@ -45,7 +49,11 @@ const loadIndex = (file) => { return loadFile(indexUrl) } catch (error) { - throw new Error(`No index file found: ${error.message}`) + throw errcode( + new Error(`No index file found: ${error.message}`), + 'SKETCH_INDEX_NOT_FOUND', + { forcePopup: true } + ) } } @@ -56,7 +64,11 @@ const loadConfig = (file) => { return loadFile(configUrl) } catch (error) { - throw new Error(`No config file found: ${error.message}`) + throw errcode( + new Error(`No config file found: ${error.message}`), + 'SKETCH_CONFIG_NOT_FOUND', + { forcePopup: true } + ) } } @@ -98,7 +110,11 @@ const findSketches = (file, all, pathArray) => { break case 1: // If only one file is missing (e.g. config but no index or index but no config) - throw new Error(`File not found: ${badFile}`) + throw errcode( + new Error(`File not found: ${badFile}`), + 'FILE_NOT_FOUND', + { forcePopup: true } + ) case 2: // If both files are missing, keep looking at child folders glob.sync(file + '/*').forEach(function (childFile) { @@ -118,7 +134,8 @@ const loadSketches = globUrl => { if (Object.keys(all).length === 0) { throw errcode( new Error('No sketches found in folder.'), - 'NO_SKETCH_FOLDER' + 'NO_SKETCH_FOLDER', + { forcePopup: true } ) } diff --git a/src/store/rootListener.js b/src/store/rootListener.js index 49ac3cda..542c2d98 100644 --- a/src/store/rootListener.js +++ b/src/store/rootListener.js @@ -25,8 +25,10 @@ export default { fileWatchListener(action, store) await projectListener(action, store) } catch (error) { + const state = store.getState() + const shouldPopup = !state.nodes.areErrorPopupsDisabled.value || error.forcePopup console.error(error) - store.dispatch(projectError(error.message, { popup: true, code: error.code })) + store.dispatch(projectError(error.message, { popup: shouldPopup, code: error.code })) } }, } diff --git a/src/store/setCoreState.js b/src/store/setCoreState.js index 4708be2e..6e420013 100644 --- a/src/store/setCoreState.js +++ b/src/store/setCoreState.js @@ -4,42 +4,36 @@ import { uNodeCreate } from './nodes/actions' -export default store => { - store.dispatch(uNodeCreate('sceneCrossfader', - { - title: 'Scene Crossfader', - id: 'sceneCrossfader', - value: 0, - type: 'param', - valueType: 'float', - } - )) - - store.dispatch(uNodeCreate('viewerMode', - { - title: 'Viewer Mode', - valueType: 'enum', - id: 'viewerMode', - value: 'mix', - inputLinkIds: [], - options: [ - { - value: 'mix', - label: 'Mix', - }, - { - value: 'A', - label: 'A', - }, - { - value: 'B', - label: 'B', - }, - ], - } - )) - - store.dispatch(uNodeCreate('sketchOrganization', { +const coreNodes = [ + { + title: 'Scene Crossfader', + id: 'sceneCrossfader', + value: 0, + type: 'param', + valueType: 'float', + }, + { + title: 'Viewer Mode', + valueType: 'enum', + id: 'viewerMode', + value: 'mix', + inputLinkIds: [], + options: [ + { + value: 'mix', + label: 'Mix', + }, + { + value: 'A', + label: 'A', + }, + { + value: 'B', + label: 'B', + }, + ], + }, + { title: 'Sketch Organization', valueType: 'enum', value: 'folder', @@ -58,16 +52,21 @@ export default store => { label: 'Author', }, ], - })) - - store.dispatch(uNodeCreate('audioLevelsFalloff', { + }, + { + title: 'Disable Error Popups', + id: 'areErrorPopupsDisabled', + valueType: 'boolean', + value: false, + }, + { title: 'Levels Falloff', type: 'param', value: 1, id: 'audioLevelsFalloff', valueType: 'float', - })) - store.dispatch(uNodeCreate('audioLevelsPower', { + }, + { title: 'Levels Power', type: 'param', value: 0.25, @@ -75,27 +74,32 @@ export default store => { max: 3, id: 'audioLevelsPower', valueType: 'float', - })) - store.dispatch(uNodeCreate('audioLevelsSmoothing', { + }, + { title: 'Levels Smoothing', type: 'param', value: 0, id: 'audioLevelsSmoothing', valueType: 'float', - })) - - store.dispatch(uNodeCreate('audioNormalizeLevels', { + }, + { title: 'Normalize Levels', type: 'param', value: 0.5, id: 'audioNormalizeLevels', valueType: 'float', - })) - store.dispatch(uNodeCreate('audioNormalizeRangeFalloff', { + }, + { title: 'Normalized Range Falloff', type: 'param', value: 0.01, id: 'audioNormalizeRangeFalloff', valueType: 'float', - })) + }, +] + +export default store => { + coreNodes.forEach(node => { + store.dispatch(uNodeCreate(node.id, node)) + }) }