addedOutput schema / anyOf
Added value: +[
+ {
+ "properties": {
+ "gridReference": {
+ "type": "object"
+ },
+ "musicalContext": {
+ "type": "object"
+ },
+ "plan": {
+ "properties": {
+ "changes": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "newNotes": {
+ "items": {
+ "properties": {
+ "duration": {
+ "type": "number"
+ },
+ "pitch": {
+ "maximum": 127,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "start": {
+ "type": "number"
+ },
+ "velocity": {
+ "maximum": 127,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pitch",
+ "start",
+ "duration",
+ "velocity"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "noteIds": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "notes": {
+ "items": {
+ "properties": {
+ "duration": {
+ "type": "number"
+ },
+ "pitch": {
+ "maximum": 127,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "start": {
+ "type": "number"
+ },
+ "velocity": {
+ "maximum": 127,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pitch",
+ "start",
+ "duration",
+ "velocity"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "preservedNotes": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "stateVersion": {
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "stateVersion",
+ "musicalContext",
+ "gridReference",
+ "plan"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "unknown",
+ "not_executed"
+ ]
+ }
+ },
+ "required": [
+ "message",
+ "outcome"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]