Skip to content

Commit

Permalink
fix: Sisyfos setchannel wrong index and osc format
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Apr 2, 2024
1 parent 25c6516 commit e36853f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class SisyfosApi extends EventEmitter {
const channelState: SisyfosSendChannelAPI = {
...command.values,
}
this.setSisyfosChannel(command.channel, channelState)
this.setSisyfosChannel(command.channel + 1, channelState)
}
}

Expand Down Expand Up @@ -198,7 +198,7 @@ export class SisyfosApi extends EventEmitter {
if (!this._oscClient) {
throw new Error(`Can't set channel, OSC client not initialised`)
}
this._oscClient.send({ address: `setChannel/${channel}`, args: JSON.stringify(apiState) })
this._oscClient.send({ address: `/setchannel/${channel}`, args: { type: 's', value: JSON.stringify(apiState) } })
}

getChannelByLabel(label: string): number | undefined {
Expand Down

0 comments on commit e36853f

Please sign in to comment.