Questions tagged [osc]

Open Sound Control (OSC) is a protocol for communication among computers, sound synthesizers, and other multimedia devices that is optimized for modern networking technology.

From the OSC Home Page at the CNMAT, UC Berkeley

Bringing the benefits of modern networking technology to the world of electronic musical instruments, OSC's advantages include interoperability, accuracy, flexibility, and enhanced organization and documentation.

This simple yet powerful protocol provides everything needed for real-time control of sound and other media processing while remaining flexible and easy to implement.

Features:

  • Open-ended, dynamic, URL-style symbolic naming scheme
  • Symbolic and high-resolution numeric argument data
  • Real-time data broadcast
  • Pattern matching language to specify multiple recipients of a single message
  • High resolution time tags
  • "Bundles" of messages whose effects must occur simultaneously
  • Query system to dynamically find out the capabilities of an OSC server and get documentation

There are dozens of implementations of OSC, including real-time sound and media processing environments, web interactivity tools, software synthesizers, a large variety programming languages, and hardware devices for sensor measurement. OSC has achieved wide use in fields including computer-based new interfaces for musical expression, wide-area and local-area networked distributed music systems, inter-process communication, and even within a single application.

https://en.wikipedia.org/wiki/Open_Sound_Control

244 questions
1
vote
1 answer

How do I run python-osc inside OBS as script?

I want/need to make this code run inside OBS as a script. I took this OSC Sender for OBS that it does what the name says: it sends OSC messages. But, inside the code, the server part is commented, because it doesn't work... right out of the box. It…
Mario Mey
  • 1,582
  • 3
  • 13
  • 13
1
vote
0 answers

Code very slow when sending OSC or MQTT messages inside an MIDI event listener in Node js

First time posting here so sorry if the question is too vague or missing info. Anyway: I'm trying to send OSC (open sound control) or MQTT messages when I hit specific notes on my midi controller. When I try to send a OSC message when I get a midi…
1
vote
0 answers

Node-osc sometimes sends OSC too often: related to IP address?

I have a local Node.js app on port localhost:3000. I'm using node-osc to message to MaxMSP. My code checks every 2 seconds if there is a reason to send the message (this is related to machine learning and webcam). 95 % of the time this works fine;…
vjuss
  • 199
  • 1
  • 10
1
vote
1 answer

Throw er: why would this be thrown if ports and adresses are correct?

I can't figure out what the error is or how to solve it. I'm trying to run a basic code on a RPi3 from that sends an osc message to sonic pi on the same device. this is the code: var osc = require("osc"); var udpPort = new osc.UDPPort({ //…
Blckpstv
  • 117
  • 3
  • 17
1
vote
2 answers

'Unresolved external symbol' errors

I am using an example program that is supposed to allow control of MIDI devices using a protocol called OSC. What I have done is downloaded the SDK from here: http://mac.softpedia.com/get/Development/Libraries/oscpack.shtml The 'examples' folder…
Matt
  • 21
  • 1
  • 4
1
vote
1 answer

How to set a Vue variable equal to a function argument?

I am making a web app that can send and receive OSC data via a node.js server. That's all working fine. But I want to use Vue.js for the front and here I get a problem with declaring a function. When I am using only JavaScript it's working…
Dominique
  • 35
  • 1
  • 5
1
vote
0 answers

Trying to set up a server to receive OSC input, Keep getting this error when I run Script from python-osc

I'm new to python so not sure what I am missing to get this running. Here is the code from python-osc: from pythonosc.osc_server import AsyncIOOSCUDPServer from pythonosc.dispatcher import Dispatcher import asyncio def filter_handler(address,…
NathiM
  • 11
  • 1
1
vote
1 answer

How can I make a NeoPixels LED animation be toggled on/off by an OSC message?

Currently I am attempting to figure out how to control my Adafruit NeoPixels strip using OSC. More specifically, I am using TouchOSC to send/receive messages over WiFi from my NodeMCU ESP8266 microcontroller, which is connected to my NeoPixels. I…
vj_njoy
  • 11
  • 2
1
vote
1 answer

Unity - Can't set audio clip in C#

EDIT! I got it working by moving the source.play up into a function in update and now I'm calling it with a boolean. I'm at the moment coding a VR drum set in Unity and I need Unity to play a sound when it recieves an OSC message from the input…
Andreas2200
  • 47
  • 3
  • 6
1
vote
1 answer

How do I decode data when I don't know the specific encoding

I'm receiving data using an OSC server and the data looks like…
1
vote
1 answer

OSC communication between Browser and Pure Data (two computers)

I'm trying to send an osc-message from Firefox using javascript, which should be received by another computer in the same network using udpreceive and unpackOSC from the mrpeach library in Pure Data. I'm working with the javascript-package "osc-js"…
1
vote
1 answer

Trouble running oscp5 library and P3D renderer together in processing 3.x

I attempted to map data from external devices to draw patterns. But the oscP5 library and P3D renderer could not work together in processing both 3.3.7 and 3.4 while they can work separately. They can work in processing 2.2.1 but 2.2.1 doesn't…
Lam Ko
  • 21
  • 4
1
vote
1 answer

Retrieving FLOAT, DOUBLE, INT or BOOL values from Buffer

Good afternoon dear community, I am working on a networking project where I receive data though UDP socket from a software called VDMX, and trying to parse the above-mentioned data types from the buffer. In my node.js app, I receive values with the…
Uğur Kaya
  • 2,287
  • 3
  • 15
  • 23
1
vote
1 answer

Python global variable shared between threads (using python-osc)

I'm stuck with a threading problem here. I need threads to access a global variable. I've read a previous answer to a similar question and I understood the "power" of the global keyword in order for functions and threads to access to global…
orestino
  • 113
  • 1
  • 1
  • 8
1
vote
0 answers

Can Echo dot do Open Sound Control

I wanna develop an Alexa Skill to communicate with my devices using Open Sound Control through Local Area Network. After little research it seems that the Echo dot do not allow us to programme it to connect with local devices. Is there any work…
Man Kit Ko
  • 11
  • 1