
jhoepffner
User
Oct 25, 2007, 5:36 AM
Post #5 of 16
(3464 views)
Shortcut
|
|
Re: [jhoepffner] lanBox, serial, OSC, audio
[In reply to]
|
Can't Post
|
|
Mark, I work all night to figure how to use serial actors in Isadora. I am searching a solution because I will give a second Isadora workshop next week in Mons and another one concerning specifically Isadora and Arduino the following week. I want to avoid the use of Max/Msp for beginner. Unfortunately, rereading a cipriani message, I se that it is not possible to receive integer with not fixed length, but perhaps you will have a solution. 1 in Arduino, I use a program to read 2 analog ins and send the value by serial, with a letter tag or each value (0 to 1023): int Sensor0 = 0; // first analog sensor int Sensor1 = 0; // second analog sensor int Sensor2 = 0; // digital sensor int inByte = 0; // incoming serial byte void setup() { Serial.begin(9600); } void loop() { Serial.print("a"); Sensor0 = analogRead(0); Serial.println(Sensor0); delay(10); Serial.print("b"); Sensor1 = analogRead(1); Serial.println(Sensor1); delay(10); } In Max, I can separate each send with carriage return (sel 10 13), make a 5 number list (zl group 5), separate the different tag (route 97 98 99 100 101 102 103 104), make a 4 number list (zl group 4), and with (itoa) and fromsymbol, I have a number with value from 0 to 1023. After I have to separate value before and after 127 (/ 127) and (%127), send it with 2 ControlChange to Isadora, in Isadora i do the inverse operation and I have the value. Any suggestion for a easier operation, without max? I have a similar problem to send values from Isadora to a stepper motor, good when I use Max, not usable directly. I join you the 3 patch (Isadora, Max and Arduino) in the two way, can you take a look? If we can solve that, many persons are interested, for performances and installations. Thanks a lot, Jacques
|