0% found this document useful (0 votes)
15 views4 pages

Live 2 Processing

Uploaded by

Andy Turner
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

Live 2 Processing

Uploaded by

Andy Turner
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

http://www.maxforlive.com/library/device.php?

id=67

Home
News
Logout (Mudo)
About
Help
Contact
RSS Feeds

Max For Live What is Max for Live?


Register Create an account
Free Device Library Browse the device library
Share a device Post your work to the library

Device Details
Device Overview

Name/Version: Live 2 Processing 0.4


Author: wiggle
Description: Sends numerical audio peak data to Processing
via OSC. Any program that can tap into OSC
can use the data (Super Collider, etc.)

Reporting Interval = will wait 1-60 frames per


second before sending next data.
Curve = define the data curve (linear, log, etc.)
Scale = define the max value for data.

The data from the left channel is labeled with


varX.
The data from the right channel is labeled with
varY.

You will need the OSCp5 library:


http://www.sojamo.de/libraries/oscP5/

If you have any suggestions, please comment


below!

Below is the code for Processing:

------------------------------------------------

//"Live 2 Processing" Sample Code


//Taps into OSC to receive audio peak data from
Live.

1 de 4 21/02/10 14:04
http://www.maxforlive.com/library/device.php?id=67

//Use in conjunction with Live 2 Processing


(Max4Live plugin)
//by WIGGLE (www.unsound.com)
//Plugin available at:
http://www.unsound.com/M4L/
//You will need the OSCp5 library:
http://www.sojamo.de/libraries/oscP5/
//and controlP5 library: http://www.sojamo.de
/libraries/controlP5/
//thanks: Ableton, Ash Oakenfold, Andreas
Schlegel, and Casey Reas

import controlP5.*;
import oscP5.*;
import netP5.*;

ControlP5 controlP5;
Slider xSlider;
Slider ySlider;

OscP5 oscP5;
NetAddress myRemoteLocation;

int varY = round(32 / 8.0f);


int varX = round(32 / 8.0f);

void setup()
{
size(180, 150);
createSliders();
initOsc();
}

void initOsc()
{
oscP5 = new OscP5(this,8080);

myRemoteLocation = new
NetAddress("127.0.0.1",8080);
oscP5.plug(this,"onX","/varX");
oscP5.plug(this, "onY", "/varY");
}

void createSliders()
{
controlP5 = new ControlP5(this);
xSlider = controlP5.addSlider("varX",

2 de 4 21/02/10 14:04
http://www.maxforlive.com/library/device.php?id=67

0, // min
127, // max
32, // default value
20, // x
55, // y
100, // width
10); // height

ySlider = controlP5.addSlider("varY", 0, 127,


32, 20, 75, 100, 10);
}

void draw()
{
background(0x000000);
fill(128);
rect(10, 45, 160, 50);
}

void onX(int value)


{
xSlider.setValue(value);
}

void onY(int value)


{
ySlider.setValue(value);
}
------------------------------------------------

Device Details

Downloads: 396
Tags video, utility, other, hardware
Live Version Used: 8.1
Average Rating -n/a-
Rate this device: 1 2 3 4 5 submit rating

Device Type: audio_device


URL (optional): http://www.unsound.com/
License (more
AttributionNonCommercial
info):

Device Files

3 de 4 21/02/10 14:04
http://www.maxforlive.com/library/device.php?id=67

Device File: Live2Processing04.amxd


download device

Comments

so very useful for using M4L with blender's realtime 3D environment as well(using
midi translator pro), thanks
Posted on November 23 2009 by du

Leave a comment

Post as: Mudo

Submit
[ browse device library ]

© 2009 synnack
Terms and Conditions
Contact
Site by synnack
Template by STUDIO7DESIGNS

4 de 4 21/02/10 14:04

You might also like