Skip to content

Instantly share code, notes, and snippets.

@thibaudk
Created October 18, 2019 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thibaudk/364c33e213699ac1972186eb6f3cb82f to your computer and use it in GitHub Desktop.
Save thibaudk/364c33e213699ac1972186eb6f3cb82f to your computer and use it in GitHub Desktop.
ossia/score car2pol test
{
"Document": {
"BaseScenario": {
"Constraint": {
"Center": 8913.133459220044,
"Components": [
],
"DefaultDuration": 15000,
"EndState": 1,
"FullViewRack": [
{
"Process": 1
}
],
"GuiDuration": 17864.258006842552,
"HeightPercentage": 0,
"Inlet": {
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "",
"Path": ""
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Inlet",
"Type": 1,
"id": 0,
"uuid": "8884228a-d197-4b0a-b6ca-d1fb15291559"
},
"MaxDuration": 15750,
"MaxInf": true,
"Metadata": {
"Color": "Transparent1",
"Comment": "",
"Label": "",
"ScriptingName": "car2pol",
"Touched": true
},
"MinDuration": 15000,
"MinNull": false,
"ObjectName": "Scenario::IntervalModel",
"Outlet": {
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "",
"Path": ""
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Outlet",
"Propagate": true,
"Type": 1,
"id": 0,
"uuid": "34e2c5a7-18c4-4759-b6cc-46feaeee06e2"
},
"Processes": [
{
"Comments": [
],
"Components": [
],
"Constraints": [
{
"Center": 0,
"Components": [
],
"DefaultDuration": 14528.571428571428,
"EndState": 1,
"FullViewRack": [
{
"Process": 1
},
{
"Process": 2
}
],
"GuiDuration": 17490,
"HeightPercentage": 0.019333333333333334,
"Inlet": {
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "",
"Path": ""
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Inlet",
"Type": 1,
"id": 0,
"uuid": "8884228a-d197-4b0a-b6ca-d1fb15291559"
},
"MaxDuration": "inf",
"MaxInf": true,
"Metadata": {
"Color": "Transparent1",
"Comment": "",
"Label": "",
"ScriptingName": "Interval.torr42",
"Touched": true
},
"MinDuration": 12985.714285714284,
"MinNull": true,
"ObjectName": "Scenario::IntervalModel",
"Outlet": {
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "",
"Path": ""
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Outlet",
"Propagate": true,
"Type": 1,
"id": 0,
"uuid": "34e2c5a7-18c4-4759-b6cc-46feaeee06e2"
},
"Processes": [
{
"Components": [
],
"Duration": 14528.571428571428,
"Height": 300,
"Inlets": [
{
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "thoughJS",
"Path": "x"
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Inlet",
"Type": 0,
"id": 0,
"uuid": "8884228a-d197-4b0a-b6ca-d1fb15291559"
},
{
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "thoughJS",
"Path": "y"
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Inlet",
"Type": 0,
"id": 1,
"uuid": "8884228a-d197-4b0a-b6ca-d1fb15291559"
}
],
"Metadata": {
"Color": "Transparent1",
"Comment": "",
"Label": "",
"ScriptingName": "Javascript.1",
"Touched": false
},
"ObjectName": "Javascript",
"Outlets": [
{
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "thoughJS",
"Path": "result"
}
},
"Custom": "",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Outlet",
"Propagate": false,
"Type": 0,
"id": 0,
"uuid": "34e2c5a7-18c4-4759-b6cc-46feaeee06e2"
}
],
"Script": "import QtQuick 2.0\nimport Score 1.0\nItem {\n ControlInlet { id: x }\n ControlInlet { id: y }\n ValueOutlet { id: out1 }\n\n function onTick(oldtime, time, position, offset) {\n var rho = Math.sqrt(x.value^2 + y.value^2);\n var theta = Math.atan2(y.value, x.value);\n out1.value = [rho, theta];\n }\n}",
"id": 1,
"uuid": "846a5de5-47f9-46c5-a898-013cb20951d0"
},
{
"Components": [
],
"Curve": {
"ObjectName": "CurveModel",
"Segments": [
{
"End": [
1,
1
],
"Following": null,
"ObjectName": "CurveSegmentModel",
"Power": 11.05,
"Previous": null,
"Start": [
0,
0
],
"id": 1,
"uuid": "1e7cb83f-4e47-4b14-814d-2242a9c75991"
}
],
"id": 45345
},
"Duration": 14528.571428571428,
"Height": 300,
"Inlet": {
"Address": {
"Accessors": [
],
"Unit": "position.cart2D",
"address": {
"Device": "conversion-units",
"Path": "xy"
}
},
"Custom": "In",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Inlet",
"Type": 0,
"id": 0,
"uuid": "8884228a-d197-4b0a-b6ca-d1fb15291559"
},
"Metadata": {
"Color": "Transparent1",
"Comment": "",
"Label": "",
"ScriptingName": "Mapping (float).2",
"Touched": false
},
"ObjectName": "Mapping",
"Outlet": {
"Address": {
"Accessors": [
],
"Unit": "position.polar",
"address": {
"Device": "conversion-units",
"Path": "result"
}
},
"Custom": "Out",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Outlet",
"Propagate": false,
"Type": 0,
"id": 0,
"uuid": "34e2c5a7-18c4-4759-b6cc-46feaeee06e2"
},
"SourceMax": 1,
"SourceMin": -1,
"TargetMax": 1,
"TargetMin": 0,
"id": 2,
"uuid": "12a5d9b8-823e-4303-99f8-34db37c448b4"
}
],
"Rigidity": false,
"SmallViewRack": [
{
"Height": 230,
"Process": 1,
"Processes": [
1
]
},
{
"Height": 20,
"Process": 2,
"Processes": [
2
]
}
],
"SmallViewShown": true,
"StartDate": 0,
"StartState": 0,
"Zoom": -1,
"id": 1
}
],
"Duration": 15000,
"Events": [
{
"Components": [
],
"Condition": {
"Children": [
],
"RootNode": {
}
},
"Date": 0,
"Metadata": {
"Color": "Emphasis4",
"Comment": "",
"Label": "",
"ScriptingName": "Event.start",
"Touched": true
},
"ObjectName": "Scenario::EventModel",
"Offset": 0,
"States": [
0
],
"TimeNode": 0,
"id": 0
},
{
"Components": [
],
"Condition": {
"Children": [
],
"RootNode": {
}
},
"Date": 14528.571428571428,
"Metadata": {
"Color": "Emphasis4",
"Comment": "",
"Label": "",
"ScriptingName": "Event.ucla52",
"Touched": true
},
"ObjectName": "Scenario::EventModel",
"Offset": 0,
"States": [
1
],
"TimeNode": 1,
"id": 1
}
],
"Height": 1500,
"Inlet": {
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "",
"Path": ""
}
},
"Custom": "In",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Inlet",
"Type": 1,
"id": 0,
"uuid": "8884228a-d197-4b0a-b6ca-d1fb15291559"
},
"Metadata": {
"Color": "Transparent1",
"Comment": "",
"Label": "",
"ScriptingName": "Scenario.1",
"Touched": false
},
"ObjectName": "Scenario",
"Outlet": {
"Address": {
"Accessors": [
],
"Unit": "none",
"address": {
"Device": "",
"Path": ""
}
},
"Custom": "Out",
"Description": "",
"Exposed": "",
"Hidden": false,
"ObjectName": "Outlet",
"Propagate": true,
"Type": 1,
"id": 0,
"uuid": "34e2c5a7-18c4-4759-b6cc-46feaeee06e2"
},
"StartEventId": 0,
"StartStateId": 0,
"StartTimeNodeId": 0,
"States": [
{
"Components": [
],
"Event": 0,
"HeightPercentage": 0.019333333333333334,
"Messages": {
"Accessors": [
],
"Children": [
],
"Following": [
],
"Name": "",
"Previous": [
],
"Priorities": [
1,
2,
0
],
"Unit": "none"
},
"Metadata": {
"Color": "Base1",
"Comment": "",
"Label": "",
"ScriptingName": "State.start",
"Touched": true
},
"NextConstraint": 1,
"ObjectName": "Scenario::StateModel",
"PreviousConstraint": null,
"StateProcesses": [
],
"id": 0
},
{
"Components": [
],
"Event": 1,
"HeightPercentage": 0.019333333333333334,
"Messages": {
"Accessors": [
],
"Children": [
],
"Following": [
],
"Name": "",
"Previous": [
],
"Priorities": [
1,
2,
0
],
"Unit": "none"
},
"Metadata": {
"Color": "Base1",
"Comment": "",
"Label": "",
"ScriptingName": "State.mash17",
"Touched": true
},
"NextConstraint": null,
"ObjectName": "Scenario::StateModel",
"PreviousConstraint": 1,
"StateProcesses": [
],
"id": 1
}
],
"TimeNodes": [
{
"AutoTrigger": false,
"Components": [
],
"Date": 0,
"Events": [
0
],
"Extent": [
0.019333333333333334,
0.22533333333333333
],
"Metadata": {
"Color": "Gray",
"Comment": "",
"Label": "",
"ScriptingName": "Sync.start",
"Touched": true
},
"ObjectName": "Scenario::TimeSyncModel",
"Trigger": {
"Active": false,
"Expression": {
"Children": [
{
"Children": [
],
"Relation": {
"LHS": {
"Value": {
"Bool": true
}
},
"Op": 0,
"RHS": {
"Value": {
"Bool": false
}
}
}
}
],
"RootNode": {
}
}
},
"id": 0
},
{
"AutoTrigger": false,
"Components": [
],
"Date": 14528.571428571428,
"Events": [
1
],
"Extent": [
0.019333333333333334,
0.22533333333333333
],
"Metadata": {
"Color": "Gray",
"Comment": "",
"Label": "",
"ScriptingName": "Sync.sips22",
"Touched": true
},
"ObjectName": "Scenario::TimeSyncModel",
"Trigger": {
"Active": true,
"Expression": {
"Children": [
{
"Children": [
],
"Relation": {
"LHS": {
"Value": {
"Bool": true
}
},
"Op": 0,
"RHS": {
"Value": {
"Bool": false
}
}
}
}
],
"RootNode": {
}
}
},
"id": 1
}
],
"id": 1,
"uuid": "de035912-5b03-49a8-bc4d-b2cba68e21d9"
}
],
"Rigidity": false,
"SmallViewRack": [
],
"SmallViewShown": false,
"StartDate": 0,
"StartState": 0,
"Zoom": 25.321401872784215,
"id": 0
},
"EndEvent": {
"Components": [
],
"Condition": {
"Children": [
],
"RootNode": {
}
},
"Date": 15000,
"Metadata": {
"Color": "Emphasis4",
"Comment": "",
"Label": "",
"ScriptingName": "Event.end",
"Touched": true
},
"ObjectName": "Scenario::EventModel",
"Offset": 0,
"States": [
1
],
"TimeNode": 1,
"id": 1
},
"EndState": {
"Components": [
],
"Event": 1,
"HeightPercentage": 0,
"Messages": {
"Accessors": [
],
"Children": [
],
"Following": [
],
"Name": "",
"Previous": [
],
"Priorities": [
1,
2,
0
],
"Unit": "none"
},
"Metadata": {
"Color": "Base1",
"Comment": "",
"Label": "",
"ScriptingName": "State.end",
"Touched": true
},
"NextConstraint": null,
"ObjectName": "Scenario::StateModel",
"PreviousConstraint": 0,
"StateProcesses": [
],
"id": 1
},
"EndTimeNode": {
"AutoTrigger": false,
"Components": [
],
"Date": 15000,
"Events": [
1
],
"Extent": [
0.2,
0.8
],
"Metadata": {
"Color": "Gray",
"Comment": "",
"Label": "",
"ScriptingName": "Sync.end",
"Touched": true
},
"ObjectName": "Scenario::TimeSyncModel",
"Trigger": {
"Active": true,
"Expression": {
"Children": [
{
"Children": [
],
"Relation": {
"LHS": {
"Value": {
"Bool": true
}
},
"Op": 0,
"RHS": {
"Value": {
"Bool": false
}
}
}
}
],
"RootNode": {
}
}
},
"id": 1
},
"ObjectName": "Scenario::BaseScenario",
"StartEvent": {
"Components": [
],
"Condition": {
"Children": [
],
"RootNode": {
}
},
"Date": 0,
"Metadata": {
"Color": "Emphasis4",
"Comment": "",
"Label": "",
"ScriptingName": "Event.start",
"Touched": true
},
"ObjectName": "Scenario::EventModel",
"Offset": 0,
"States": [
0
],
"TimeNode": 0,
"id": 0
},
"StartState": {
"Components": [
],
"Event": 0,
"HeightPercentage": 0,
"Messages": {
"Accessors": [
],
"Children": [
],
"Following": [
],
"Name": "",
"Previous": [
],
"Priorities": [
1,
2,
0
],
"Unit": "none"
},
"Metadata": {
"Color": "Base1",
"Comment": "",
"Label": "",
"ScriptingName": "State.start",
"Touched": true
},
"NextConstraint": 0,
"ObjectName": "Scenario::StateModel",
"PreviousConstraint": null,
"StateProcesses": [
],
"id": 0
},
"StartTimeNode": {
"AutoTrigger": false,
"Components": [
],
"Date": 0,
"Events": [
0
],
"Extent": [
0.2,
0.8
],
"Metadata": {
"Color": "Gray",
"Comment": "",
"Label": "",
"ScriptingName": "Sync.start",
"Touched": true
},
"ObjectName": "Scenario::TimeSyncModel",
"Trigger": {
"Active": false,
"Expression": {
"Children": [
{
"Children": [
],
"Relation": {
"LHS": {
"Value": {
"Bool": true
}
},
"Op": 0,
"RHS": {
"Value": {
"Bool": false
}
}
}
}
],
"RootNode": {
}
}
},
"id": 0
},
"id": 0
},
"Cables": [
],
"ObjectName": "Scenario::ScenarioDocumentModel",
"id": 1
},
"Plugins": {
"Explorer::DeviceDocumentPlugin": {
"Children": [
{
"Children": [
{
"AddressSettings": {
"ClipMode": "Free",
"Domain": {
"Float": {
"Max": 1,
"Min": 0
}
},
"Extended": {
},
"Name": "result",
"RepetitionFilter": false,
"Unit": "none",
"Vec2f": [
1.7320507764816284,
-1.5707963705062866
],
"ioType": "<->"
},
"Children": [
]
},
{
"AddressSettings": {
"ClipMode": "Free",
"Domain": {
"Float": {
"Max": 1,
"Min": 0
}
},
"Extended": {
},
"Float": -1,
"Name": "y",
"RepetitionFilter": false,
"Unit": "none",
"ioType": "<->"
},
"Children": [
]
},
{
"AddressSettings": {
"ClipMode": "Free",
"Domain": {
"Float": {
"Max": 1,
"Min": 0
}
},
"Extended": {
},
"Float": 0,
"Name": "x",
"RepetitionFilter": false,
"Unit": "none",
"ioType": "<->"
},
"Children": [
]
}
],
"DeviceSettings": {
"Host": "127.0.0.1",
"InputPort": 9996,
"Name": "thoughJS",
"OutputPort": 9997,
"Protocol": "9a42de4b-f6eb-4bca-9564-01b975f601b9"
}
},
{
"Children": [
{
"AddressSettings": {
"ClipMode": "Free",
"Domain": {
"Vec2f": {
"Max": [
1,
360
],
"Min": [
0,
0
],
"Values": [
[
],
[
]
]
}
},
"Extended": {
},
"Name": "result",
"RepetitionFilter": false,
"Unit": "position.polar",
"Vec2f": [
1,
0.5
],
"ioType": "<->"
},
"Children": [
]
},
{
"AddressSettings": {
"ClipMode": "Free",
"Domain": {
"Float": {
"Max": 1,
"Min": -1
}
},
"Extended": {
},
"Name": "xy",
"RepetitionFilter": false,
"Unit": "position.cart2D",
"Vec2f": [
1,
0
],
"ioType": "<->"
},
"Children": [
]
}
],
"DeviceSettings": {
"Host": "127.0.0.1",
"InputPort": 9995,
"Name": "conversion-units",
"OutputPort": 9998,
"Protocol": "9a42de4b-f6eb-4bca-9564-01b975f601b9"
}
}
],
"DocumentPostModelPart": {
},
"ObjectName": "Explorer::DeviceDocumentPlugin",
"RootNode": {
},
"id": 947752449,
"uuid": "6e610e1f-9de2-4c36-90dd-0ef570002a21"
},
"ExplorerSettings": {
"DocumentPostModelPart": {
},
"MidiRatio": 1,
"ObjectName": "ExplorerSettings",
"Reconnect": false,
"Refresh": false,
"id": -291619923,
"uuid": "1f923578-08c3-49be-9ba9-69c144ee2e32"
}
},
"Version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment