Skip to content

Commit

Permalink
fix: changed value var to any as it can be a string or a number
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed May 30, 2019
1 parent f829191 commit cb975a9
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/constants/MixerProtocolPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface IMixerProtocol {

interface IMessageProtocol {
oscMessage: string,
value: string,
value: any,
type: string
}

Expand All @@ -55,15 +55,15 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/note_in_use",
value: "0",
value: 0,
type: "f"
}
],
pingTime: 0, //Bypass ping when pingTime is zero
initializeCommands: [
{
oscMessage: "/note_in_use",
value: "0",
value: 0,
type: "f"
}
],
Expand Down Expand Up @@ -105,7 +105,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/xremote",
value: "",
value: 0,
type: "f"
},
{
Expand All @@ -123,7 +123,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
initializeCommands: [
{
oscMessage: "/info",
value: "",
value: 0,
type: "f"
}
],
Expand Down Expand Up @@ -165,7 +165,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/xremote",
value: "",
value: 0,
type: "f"
},
{
Expand All @@ -183,7 +183,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
initializeCommands: [
{
oscMessage: "/info",
value: "",
value: 0,
type: "f"
}
],
Expand Down Expand Up @@ -225,7 +225,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/xremote",
value: "",
value: 0,
type: "f"
},
{
Expand All @@ -239,12 +239,12 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
{
oscMessage: '/ch/{channel}/mix/fader',
value: "",
type: ""
type: "s"
},
{
oscMessage: '/ch/{channel}/config/name',
value: "",
type: ""
type: "s"
}
],
fromMixer: {
Expand Down Expand Up @@ -285,7 +285,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/xremote",
value: "",
value: 0,
type: "f"
},
{
Expand All @@ -304,17 +304,17 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
{
oscMessage: '/ch/{channel}/mix/fader',
value: "",
type: ""
type: "s"
},
{
oscMessage: '/ch/{channel}/mix/01/level',
value: "",
type: ""
type: "s"
},
{
oscMessage: '/ch/{channel}/config/name',
value: "",
type: ""
type: "s"
}
],
fromMixer: {
Expand Down Expand Up @@ -355,16 +355,16 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/strip/list",
value: "",
type: ""
value: 0,
type: "f"
}
],
pingTime: 9500,
initializeCommands: [
{
oscMessage: "/strip/list",
value: "",
type: ""
value: 0,
type: "f"
}
],
fromMixer: {
Expand Down Expand Up @@ -405,15 +405,15 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocol } = {
pingCommand: [
{
oscMessage: "/note_in_use",
value: "0",
value: 0,
type: "f"
}
],
pingTime: 0,
initializeCommands: [
{
oscMessage: "/note_in_use",
value: "0",
value: 0,
type: "f"
}
],
Expand Down

0 comments on commit cb975a9

Please sign in to comment.