From adaa0ed25a35c3fa4d39492b39f420d76bff4060 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 22 Jun 2017 10:15:02 +0200 Subject: [PATCH] example: ardour update (monitor strip) --- app/examples/ardour.js | 122 ++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 68 deletions(-) diff --git a/app/examples/ardour.js b/app/examples/ardour.js index 32696628..38ac77c0 100644 --- a/app/examples/ardour.js +++ b/app/examples/ardour.js @@ -2417,23 +2417,19 @@ "dashed": false }, { - "type": "panel", + "type": "strip", "id": "monitor", "label": "^headphones", "width": 40, - "height": 300, "color": "auto", "widgets": [ { - "type": "fader", + "type": "knob", "id": "monitor", "linkId": "", "label": false, - "width": 40, - "height": 150, + "height": 70, "color": "auto", - "compact": true, - "css": "height:calc(100% - 90rem)", "snap": false, "range": { "min": { @@ -2452,93 +2448,87 @@ "precision": 2, "preArgs": [], "target": [], - "left": 0, - "top": 0, "origin": "auto", "spring": false, "value": "", "address": "/monitor/gain", "touchAddress": "", - "alignRight": false, - "horizontal": false, - "meter": false, - "meterAddress": "", "unit": "", - "pips": true, + "pips": false, "doubleTap": false, - "dashed": false + "dashed": false, + "angle": 270, + "css": "font-size:8rem" }, { "type": "toggle", - "left": 0, "id": "monmute", "linkId": "", "label": "Mute", - "width": 40, "height": 30, "color": "Yellow", - "css": "font-size:10rem; bottom:60rem", + "css": "font-size:10rem;", "on": 1, "off": 0, "value": "", "precision": 2, "address": "/monitor/mute", "preArgs": [], - "target": [], - "top": "auto" + "target": [] }, { "type": "toggle", - "left": 0, "id": "mondim", "linkId": "", "label": "Dim", - "width": 40, "height": 30, "color": "Orange", - "css": "font-size:10rem; bottom: 30rem", + "css": "font-size:10rem;", "on": 1, "off": 0, "value": "", "precision": 2, "address": "/monitor/dim", "preArgs": [], - "target": [], - "top": "auto" + "target": [] }, { "type": "toggle", - "left": 0, "id": "monmono", "linkId": "", "label": "Mono", - "width": 40, "height": 30, "color": "Blue", - "css": "font-size:10rem; bottom:0", + "css": "font-size:10rem;", "on": 1, "off": 0, "value": "", "precision": 2, "address": "/monitor/mono", "preArgs": [], - "target": [], - "top": "auto" + "target": [] } ], - "scroll": false, - "tabs": [], "top": 0, "left": 80, - "layout": "", "spacing": 0, "variables": {}, - "css": "height:calc(100% - 50rem)", + "horizontal": false, + "stretch": false, + "_style": "style", + "_children": "children", + "css": "height: calc(100% - 40rem)", + "height": "auto", + "scroll": true, + "_layout": "layout", + "layout": "", + "_osc": "osc", "value": "", "precision": 0, - "address": "/monitor", + "address": "auto", "preArgs": [], - "target": [] + "target": [], + "tabs": [] }, { "type": "toggle", @@ -2780,6 +2770,25 @@ "doubleTap": false, "dashed": false }, + { + "type": "toggle", + "left": 80, + "id": "mastermute", + "linkId": "", + "label": "Mute", + "width": 40, + "height": 40, + "color": "yellow", + "css": "bottom:0", + "on": 1, + "off": 0, + "precision": 2, + "preArgs": [], + "target": [], + "value": "", + "address": "/master/mute", + "top": "auto" + }, { "type": "strip", "id": "monitor", @@ -2788,12 +2797,12 @@ "color": "auto", "widgets": [ { - "type": "fader", + "type": "knob", "id": "monitor", "linkId": "", "label": false, + "height": 70, "color": "auto", - "compact": true, "snap": false, "range": { "min": { @@ -2817,16 +2826,12 @@ "value": "", "address": "/monitor/gain", "touchAddress": "", - "alignRight": false, - "horizontal": false, - "meter": false, - "meterAddress": "", "unit": "", - "pips": true, + "pips": false, "doubleTap": false, - "height": 10, - "css": "flex:1", - "dashed": false + "dashed": false, + "angle": 270, + "css": "font-size:8rem" }, { "type": "toggle", @@ -2835,7 +2840,7 @@ "label": "Mute", "height": 30, "color": "Yellow", - "css": "font-size:10rem; ", + "css": "font-size:10rem;", "on": 1, "off": 0, "value": "", @@ -2851,7 +2856,7 @@ "label": "Dim", "height": 30, "color": "Orange", - "css": "font-size:10rem; ", + "css": "font-size:10rem;", "on": 1, "off": 0, "value": "", @@ -2881,11 +2886,11 @@ "left": 80, "spacing": 0, "variables": {}, - "css": "height:calc(100% - 50rem)", "horizontal": false, "stretch": false, "_style": "style", "_children": "children", + "css": "height: calc(100% - 40rem)", "height": "auto", "scroll": true, "_layout": "layout", @@ -2897,25 +2902,6 @@ "preArgs": [], "target": [], "tabs": [] - }, - { - "type": "toggle", - "left": 80, - "id": "mastermute", - "linkId": "", - "label": "Mute", - "width": 40, - "height": 40, - "color": "yellow", - "css": "bottom:0", - "on": 1, - "off": 0, - "precision": 2, - "preArgs": [], - "target": [], - "value": "", - "address": "/master/mute", - "top": "auto" } ], "tabs": [],