Showing posts with label osc. Show all posts
Showing posts with label osc. Show all posts

Saturday, November 25, 2023

Mediapipe Object Detection Solution to OSC

 


Download here: https://github.com/little-scale/mediapipe-object-osc

Adds basic OSC output for the Mediapipe object detection solution

By default, OSC will be sent to 127.0.0.1 localhost on port 3000 and with address /mediapipe/objects. This can be changed in utils.py

Each OSC message contains: Category name, object detection instance within the frame, normalised x position, normalised y position and certainty

An example Ableton Max for Live device is provided which allows mapping an object class with x and y position to Ableton parameters

Thursday, November 16, 2023

Mediapipe Holistic Solution to OSC


Taking the legacy Mediapipe holistic solution (face + pose + left hand + right hand) and sending all 543 landmarks via OSC to Max or other places. 

https://github.com/little-scale/mediapipe-holistic-osc 

Wednesday, November 08, 2023

YOLOv7 to OSC

 


YOLOv7 pose to OSC output including support for multiple pose detection: https://github.com/little-scale/yolov72osc/ 

Based on the Yolov7 implementation: https://github.com/WongKinYiu/yolov7

Add /p.py, replace /utils/plots.py and download the yolov7-w6-pose.pt model weights from https://github.com/WongKinYiu/yolov7/releases

Default OSC address is /yolo7/pose, IP is localhost and port is 4500. These can be changed in plots.py

Tuesday, August 15, 2023

Media Pipe Facemesh OSC

 


GitHub: https://github.com/little-scale/facemeshosc 

Tuesday, November 07, 2017

MIDI Data Over UDP Via OSC Using An ESP8266



This is a simple example of sending MIDI data over UDP via OSC using an ESP8266. The ESP is programmed using the Arduino IDE. The Arduino ESP8266 Arduino Core is used alongside the WiFi UDP library and the OSC library for Arduino. A Max for Live UDP OSC Packet to MIDI message device receives the data within Live.

The button is pressed. The change in state (either high or low) is read by the ESP8266. A note on message is formatted, with MIDI channel 1, note 60 and a velocity that is either 127 or 0 depending on the state of the button. These three bytes are then wrapped up in an OSC message with the name "MIDI", and sent via UDP. One MIDI message is sent per OSC message, and one OSC message is sent per UPD packet.



Download the code here: http://milkcrate.com.au/_other/downloads/arduino/ESP8266_UDP_OSC_MIDI.ino

Max for Live UDP OSC Packet to MIDI Message Receiver


A simple receiver device in Max for Live that takes an OSC message (via a selected UDP port) and simply sends the data bytes from this message as a MIDI message. Naturally, it is assumed that the OSC message itself contains data bytes formatted as a MIDI message.

Download here: http://milkcrate.com.au/_other/downloads/M4L/little-scale.osc.packet.to.midi.message.amxd

Sunday, July 24, 2016

Simple OSC Receiver to Multiple Ableton Live Parameters Max for Live Device


For a multiple elements / parameters. Download here:http://milkcrate.com.au/_other/downloads/M4L/little-scale.OSC.Receive.Simple.Multi.amxd

Simple OSC Receiver to Ableton Live Parameter Max for Live Device


For a single element / parameter. Download here: http://milkcrate.com.au/_other/downloads/M4L/little-scale.OSC.Receive.Simple.amxd

Thursday, April 17, 2014

TouchOSC + Max Gesture Looper / Recorder



 A simple, fun gesture looper / recorder with a loop length of one bar. Sends out MIDI data. A simple demonstration of using TouchOSC on Android with Max via UDP and Route. Note that the external OSC namespace library is not used. This one demonstrates sending data back to the Android via updsend.



Download here: http://milkcrate.com.au/_other/downloads/max_patches/TouchOSC_Android3.maxpat

Android + Galaxy S4 + Touch OSC + Max + OS X 2


A simple demonstration of using TouchOSC on Android with Max via UDP and Route. Note that the external OSC namespace library is not used. This is an example of a custom template in TouchOSC for Android.


Download here: http://milkcrate.com.au/_other/downloads/max_patches/TouchOSC_Android2.maxpat

Android + Galaxy S4 + Touch OSC + Max + OS X



A simple demonstration of using TouchOSC on Android with Max via UDP and Route. Note that the external OSC namespace library is not used.


Download Max patch here: http://milkcrate.com.au/_other/downloads/max_patches/TouchOSC_Android.maxpat

Monday, December 09, 2013

Resolume Example: WiiMote Control via Max and Osculator

Wednesday, October 30, 2013

Using OSC to Control Unity - Simple Demo



I'll be doing a write up on this shortly.







Wednesday, September 30, 2009

Sequencing Sega Master System YM2413 Drums from iPod Touch via TouchOSC and Max/MSP

Today I've been working on a setup whereby an iPod Touch / iPhone running TouchOSC can sequence and manipulate the drum channels from a YM2413 inside of a Sega Master System.

I would have simply made my own patch for TouchOSC, but I was having some troubles uploading it to my iPod, so I simply mapped data from the default 'Beatmachine' template.

The following parameters can be changed from the iPod Touch:
• Rhythmic sequencing
• Step-wise pitch sequencing
• Global pitch transposition
• Global note length
• Individual drum volume control
• Tempo

Here is the mapping at the moment. I am hoping to add a 'loop' save / load type mapping, where the user can build up a loop, save it, change the loop until it is a different thing entirely, and then come back to original easily (with 9 such 'save slots' available).






The YM2413 has five basic drum sounds, kick drum, snare drum, tom, hi hat and cymbal.

In the video below, the only effect that has been added to the direct output from the Sega Master System is a bit of a delay line. All other changes in sound are a result of changing the parameters of the sequence or changing the parameters inside of the YM2413.

Friday, September 25, 2009

iPod Touch & TouchOSC Controlling a C64





I made a quick video of using an iPod Touch and TouchOSC to control a Commodore 64 in real time.

Using the default 'Keys' patch for TouchOSC, a number of parameters of the Commodore 64s sound chip, the SID, can be controlled:

• Note on and off commands for two octaves' worth of piano keys
• Attack
• Decay
• Release
• Filter frequency
• Filter resonance
• Enable / disable triangle waveform
• Enable / disable sawtooth waveform
• Enable / disable pulse waveform
• Pulse wave duty cycle

Although this is only a preliminary mapping, I do like where this is going from a performance point of view, and I will be working on better / more meaningful mappings in the near future.