🌉 OSC Bridge Setup Guide

This guide will help you set up a local OSC bridge to receive EEG data from the Muse-js-Athena demo in your favorite applications (Max/MSP, TouchDesigner, Pure Data, etc.)

📥 Download Files

Download the required files for your operating system:

📄 osc-bridge.js 📦 package.json
Note: You'll need Node.js installed on your computer. Download Node.js here if you don't have it.

🚀 Quick Setup (3 Steps)

Step 1: Create a folder and save the files

  1. Create a new folder on your computer (e.g., "muse-osc-bridge")
  2. Save both downloaded files into this folder
  3. Make sure package.json is named exactly that (not osc-package.json)

Step 2: Install and run

Open a terminal/command prompt in your folder and run these two commands:

First, install dependencies:

npm install

Then, start the bridge:

node osc-bridge.js

You should see:

🌉 OSC Bridge Server Started WebSocket listening on port 9000 Forwarding OSC to localhost:5555

Step 3: Configure the Muse demo

  1. In the Muse demo, the OSC URL should already be set to: ws://localhost:9000
  2. Check the "Enable OSC Output" box
  3. Connect to your Muse device and start streaming!
✅ Success! EEG data is now streaming to localhost:5555 via UDP

📊 Receiving OSC Data

Configure your application to receive OSC messages on:

OSC Message Format

/muse/eeg ffff [timestamp, ch1, ch2, ch3, ch4] /muse/optical fff [timestamp, ch1, ch2, ch3, ...] /muse/imu ffffff [timestamp, accelX, accelY, accelZ, gyroX, gyroY, gyroZ] /muse/battery f [battery_percentage]

🔧 Advanced Options

You can customize the ports when running the bridge:

node osc-bridge.js [websocket-port] [osc-host] [osc-port] # Examples: node osc-bridge.js 9001 localhost 5556 # Custom ports node osc-bridge.js 9000 192.168.1.100 5555 # Send to another computer

❓ Troubleshooting

📚 Application Examples

Max/MSP

Create a [udpreceive 5555] object

TouchDesigner

Add an "OSC In" DAT with port 5555

Pure Data

Use [netreceive -u -b 5555]

← Back to Muse Demo