OSC Broker — osc.dinggoo.nl

Status

Verbonden clients0
UDP targets actief0
Berichten gerouteerd0

Verbonden clients

Geen clients verbonden

Live OSC Monitor

Inactief
Klik Start om berichten te zien...

UDP Targets

Berichten worden ook als UDP doorgestuurd — handig voor MaxMSP op vast IP.

Geen targets

Verbinden

Hydra
MaxMSP
JavaScript
// Plak dit in het Hydra editor-venster
var ws = new WebSocket('wss://osc.dinggoo.nl')
ws.onopen = () => ws.send(JSON.stringify({ subscribe: ['/*'] }))
ws.onmessage = e => {
  const m = JSON.parse(e.data)
  if (m.type !== 'osc') return
  // m.address = '/hydra/speed'  m.args = [0.5]
  if (m.address === '/hydra/speed') speed(m.args[0])
}
// Sturen vanuit Hydra:
ws.send(JSON.stringify({ publish: { address: '/hydra/bri', args: [0.8] } }))
// OSC sturen naar broker (UDP)
[udpsend osc.dinggoo.nl 5051]

// OSC sturen via TCP
[tcpclient osc.dinggoo.nl 8766]

// OSC ontvangen: voeg MaxMSP toe als UDP target
// (zie het paneel hiernaast) en luister op:
[udpreceive 50000]

MaxMSP stuurt UDP → broker → alle WebSocket-abonnees. Om berichten terug te ontvangen in MaxMSP voeg je hem toe als UDP target.

// Browser of Node.js
const ws = new WebSocket('wss://osc.dinggoo.nl')
ws.onopen = () => {
  // Abonneer op patroon (weglaten = alles ontvangen)
  ws.send(JSON.stringify({ subscribe: ['/hydra/*', '/test'] }))
}
ws.onmessage = e => {
  const msg = JSON.parse(e.data)
  if (msg.type === 'osc') console.log(msg.address, msg.args)
}
// Publiceren als JSON:
ws.send(JSON.stringify({ publish: { address: '/test', args: [1, 0.5] } }))