From bc4dcb39aa863577dbc7db05cf4d45aac33335af Mon Sep 17 00:00:00 2001 From: olzzon Date: Sat, 29 Jun 2019 08:13:21 +0200 Subject: [PATCH] Fix: StuderVistaEmber file added --- .../mixerProtocols/StuderVistaEmber.ts | 193 ++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 src/constants/mixerProtocols/StuderVistaEmber.ts diff --git a/src/constants/mixerProtocols/StuderVistaEmber.ts b/src/constants/mixerProtocols/StuderVistaEmber.ts new file mode 100644 index 00000000..8d0e50c9 --- /dev/null +++ b/src/constants/mixerProtocols/StuderVistaEmber.ts @@ -0,0 +1,193 @@ +import { IMixerProtocol } from '../MixerProtocolPresets'; +import path from 'path'; +import os from 'os'; +import fs from 'fs'; + +export const StuderVistaMaster: IMixerProtocol = { + protocol: 'EMBER', + label: 'Studer Vista - master', + mode: "master", //master (ignores mixers faderlevel, and use faderlevel as gain preset), + //client (use feedback from mixers fader level) + leadingZeros: false, //some OSC protocols needs channels to be 01, 02 etc. + pingCommand: [ + { + mixerMessage: "/note_in_use", + value: 0, + type: "f", + min: 0, + max: 1, + zero: 0.75 + } + ], + pingTime: 0, //Bypass ping when pingTime is zero + initializeCommands: [ + { + mixerMessage: "/note_in_use", + value: 0, + type: "f", + min: 0, + max: 1, + zero: 0.75 + } + ], + channelTypes: [{ + channelTypeName: 'CH', + channelTypeColor: '#2f2f2f', + fromMixer: { + CHANNEL_FADER_LEVEL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_OUT_GAIN: [{ + mixerMessage: 'Vista 9/Mixer/Channels/Inp Mono/Inp Mono #{channel}/Fader/Value', + value: 0, + type: 'real', + min: -90, + max: 10, + zero: 0 + }], + CHANNEL_VU: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + PFL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + AUX_SEND: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + }, + toMixer: { + CHANNEL_FADER_LEVEL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_OUT_GAIN: [{ + mixerMessage: 'Vista 9/Mixer/Channels/Inp Mono/Inp Mono #{channel}/Fader/Value', + value: 0, + type: 'real', + min: -90, + max: 10, + zero: 0 + + }], + CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + PFL_ON: [{ + mixerMessage: "/track/{channel}/solo", + value: 1, + type: "i", + min: 0, + max: 1, + zero: 0.75 + }], + PFL_OFF: [{ + mixerMessage: "/track/{channel}/solo", + value: 0, + type: "i", + min: 0, + max: 1, + zero: 0.75 + }], + AUX_SEND: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + }, + }, + { + channelTypeName: 'ST', + channelTypeColor: '#2f2f2f', + fromMixer: { + CHANNEL_FADER_LEVEL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_OUT_GAIN: [{ + mixerMessage: 'Vista 9/Mixer/Channels/Inp Stereo/Inp Stereo #{channel}/Fader/Value', + value: 0, + type: 'real', + min: -90, + max: 10, + zero: 0 + }], + CHANNEL_VU: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + PFL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + AUX_SEND: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + }, + toMixer: { + CHANNEL_FADER_LEVEL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_OUT_GAIN: [{ + mixerMessage: 'Vista 9/Mixer/Channels/Inp Stereo/Inp Stereo #{channel}/Fader/Value', + value: 0, + type: 'real', + min: -90, + max: 10, + zero: 0 + + }], + CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + PFL_ON: [{ + mixerMessage: "/track/{channel}/solo", + value: 1, + type: "i", + min: 0, + max: 1, + zero: 0.75 + }], + PFL_OFF: [{ + mixerMessage: "/track/{channel}/solo", + value: 0, + type: "i", + min: 0, + max: 1, + zero: 0.75 + }], + AUX_SEND: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + }, + }, + { + channelTypeName: 'Inp X', + channelTypeColor: '#2f2f2f', + fromMixer: { + CHANNEL_FADER_LEVEL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_OUT_GAIN: [{ + mixerMessage: 'Vista 9/Mixer/Channels/Inp 5_1/Inp 5_1 #{channel}/Fader/Value', + value: 0, + type: 'real', + min: -90, + max: 10, + zero: 0 + }], + CHANNEL_VU: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + PFL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + AUX_SEND: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + }, + toMixer: { + CHANNEL_FADER_LEVEL: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + CHANNEL_OUT_GAIN: [{ + mixerMessage: 'Vista 9/Mixer/Channels/Inp 5_1/Inp 5_1 #{channel}/Fader/Value', + value: 0, + type: 'real', + min: -90, + max: 10, + zero: 0 + + }], + CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + PFL_ON: [{ + mixerMessage: "/track/{channel}/solo", + value: 1, + type: "i", + min: 0, + max: 1, + zero: 0.75 + }], + PFL_OFF: [{ + mixerMessage: "/track/{channel}/solo", + value: 0, + type: "i", + min: 0, + max: 1, + zero: 0.75 + }], + AUX_SEND: [{ mixerMessage: 'none', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], + }, + }], + fader: { + min: 0, + max: 200, + zero: 1300, + step: 10, + }, + meter: { + min: 0, + max: 1, + zero: 0.75, + test: 0.6, + } +} +