Skip to content

Commit

Permalink
feat: Yamaha QL1 support - created protocol (not functioning yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Aug 16, 2019
1 parent 700423b commit 497db09
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants/MixerProtocolPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { GenericMidi } from './mixerProtocols/genericMidi';
import { LawoClient } from './mixerProtocols/EmberLawo';
import { CasparCGMaster } from './mixerProtocols/casparCGMaster';
import { DMXIS } from './mixerProtocols/DmxIs';
import { YamahaQL1 } from './mixerProtocols/yamahaQL1'

interface IMessageProtocol {
mixerMessage: string,
Expand All @@ -26,6 +27,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocolGeneric } = Ob
genericMidi: GenericMidi,
lawoClient: LawoClient,
dmxis: DMXIS,
yamahaQl1: YamahaQL1,
studerVistaMaster: StuderVistaMaster,
}, CasparCGMaster !== undefined ? {
casparCGMaster: CasparCGMaster
Expand Down
44 changes: 44 additions & 0 deletions src/constants/mixerProtocols/yamahaQL1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { IMixerProtocol, emptyMixerMessage } from '../MixerProtocolInterface';

export const YamahaQL1: IMixerProtocol = {
protocol: 'MIDI',
label: 'Yamaha QL1 Midi',
mode: "client", //master (ignores mixers faderlevel, and use faderlevel as gain preset),
//client (use feedback from mixers fader level)
leadingZeros: false,
pingCommand: [emptyMixerMessage()],
pingTime: 0,
initializeCommands: [emptyMixerMessage()],
channelTypes: [{
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_FADER_LEVEL: [{ mixerMessage: "39", value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], //PgmChange 0 - ignores this command
CHANNEL_OUT_GAIN: [{ mixerMessage: "0", value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], //PgmChange 0 - ignores this command
CHANNEL_VU: [{ mixerMessage: "0", value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], //PgmChange 0 - ignores this command
CHANNEL_NAME: [emptyMixerMessage()],
PFL: [emptyMixerMessage()],
AUX_SEND: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_FADER_LEVEL: [{ mixerMessage: "39", value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
CHANNEL_OUT_GAIN: [{ mixerMessage: "38", value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
CHANNEL_NAME: [emptyMixerMessage()],
PFL_ON: [emptyMixerMessage()],
PFL_OFF: [emptyMixerMessage()],
AUX_SEND: [emptyMixerMessage()],
},
}],
fader: {
min: 0,
max: 127,
zero: 100,
step: 1,
},
meter: {
min: 0,
max: 127,
zero: 100,
test: 80,
},
}

0 comments on commit 497db09

Please sign in to comment.