User:AvitalB/special issue: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 66: Line 66:


=At home=
=At home=
[https://soundcloud.com/helene-r/camp-cosmic-2020 Recommended set] for deep thinking by [https://soundcloud.com/helene-r Helene Rickhard]
I tried to do some visual stuff connecting my module to processing through the computer (because Processing is a more "visual" coding environment).
I tried to do some visual stuff connecting my module to processing through the computer (because Processing is a more "visual" coding environment).
The main issue was transferring the information we are getting from the Arduino to Processing.
The main issue was transferring the information we are getting from the Arduino to Processing.


'''this are the links I used'''
=These are the links I used=
 
 
'''General- connecting between Arduino and Processing'''
 
*[https://processing.org/tutorials/electronics/ Explanation about working wit electronics and processing]
*[https://processing.org/tutorials/electronics/ Explanation about working wit electronics and processing]
*[https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing/all Example for transferring info from the Arduino port]
*[https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing/all Example for transferring info from the Arduino port]
*[https://www.arduino.cc/reference/en/language/functions/communication/serial/read/ About the command Serial.read]
'''Serial port'''
In the Processing code you need to be "on" the same serial port that the Arduino is running on
In the Processing code you need to be "on" the same serial port that the Arduino is running on
*[https://software.intel.com/en-us/setting-up-serial-terminal-on-system-with-mac-os-x This is an explanation how to find out through Terminal]
*[https://software.intel.com/en-us/setting-up-serial-terminal-on-system-with-mac-os-x This is an explanation how to find out through Terminal]
In the Processing code you need to chose the port number in this line-Serial.list[number-of-port]<pre>myPort =  new Serial(this, Serial.list()[11], 9600);</pre>
In the Processing code you need to chose the port number in this line-Serial.list[number-of-port]<pre>myPort =  new Serial(this, Serial.list()[11], 9600);</pre>
Adding this line <pre>println(Serial.list());</pre> to the processing code will show the lists of port and than you can find out which one you should be on.
Adding this line <pre>println(Serial.list());</pre> to the processing code will show the lists of port and than you can find out which one you should be on.
*[https://www.arduino.cc/reference/en/language/functions/communication/serial/read/ About the command Serial.read]
 
 
'''String into int'''
 
*[https://www.arduino.cc/en/Tutorial.StringToIntExample/ Turning a string from Arduino to an Int(converting the text you get to an actual number)]
*[https://www.arduino.cc/en/Tutorial.StringToIntExample/ Turning a string from Arduino to an Int(converting the text you get to an actual number)]
*[https://forum.processing.org/two/discussion/20226/how-to-read-serial-string-from-arduino-as-int-on-processing Turning a string from Arduino to an Int 2]
*[https://forum.processing.org/two/discussion/20226/how-to-read-serial-string-from-arduino-as-int-on-processing Turning a string from Arduino to an Int 2]
*[https://itp.nyu.edu/physcomp/labs/labs-serial-communication/serial-output-from-an-arduino/ Transferring the data using Bytes (I didn't really get it)]
*[https://itp.nyu.edu/physcomp/labs/labs-serial-communication/serial-output-from-an-arduino/ Transferring the data using Bytes (I didn't really get it)]
*[http://www.interactiondesign.se/wiki/courses:intro.prototyping.spring.2015.jan19_20_21 This worked best for me regarding making ints from Arduino]
*[http://www.interactiondesign.se/wiki/courses:intro.prototyping.spring.2015.jan19_20_21 This worked best for me regarding making ints from Arduino]
'''Multiple inputs'''


The problem that I have right now is that my code doesn't know how to get different inputs from the Arduino (A0, A1, A2). I think this video will help me:
The problem that I have right now is that my code doesn't know how to get different inputs from the Arduino (A0, A1, A2). I think this video will help me:
{{youtube|BnjMIPOn8IQ}}
{{youtube|BnjMIPOn8IQ}}
[[Category:LFP]]
[[Category:LFP]]

Revision as of 10:25, 14 October 2019

Special issue X



Session 1

With Denis de Bel. Quick link to wiki

Building a module

We built a synth that can receive samples

My samples

(Israeli prime minister Bibi in his after election speech)

Session 2

Workshop at De Player with Olli Aarni and this is pad

My random notes

  • Open string phenomenon: Something that seems to have limited options but actually has more (one hand on the string and one hand on the pitch)
  • When you don't control your instrument, how can you still effect it (like the raindrops falling on tin- you don't control the rain but you can control the material it lands on for example)
  • Natural generators (example: the lava lamps next to each other, each with different number of bubbles)
  • A thought- what make a certain sound iconic? like the kindergarden sound- kids screaming+running on the ground+the voice of the teacher= the kindergarden sound. Like a recipe, all these sound together create a complete other sound and they can function on their own as well.
  • A name- a short sound that you were trained to respond to.
  • In language- sound that are toward the inside (me) and sounds that are toward the outside (you, he, she)
  • I want to expand on- structure of languages.

Links

Session 3

Americ: the Arduino environment is pretty limited because every module can do a limit amount of actions. The coding language commands a lot of the time contain a lot of command inside.

Simpler way to upload a sample

In terminal:

  • go to the folder where the files are
  • pull from git if needed
  • use sox with this command: ./<name of sh file> <name of wav file> (this runs this code on the sound file)
  • this create a sample.h from the sound file
  • Now you have a new sample.h file

Arduino environment

serial.begin(9600)- the number is number of symbols in a sec.

serial.print- will show the output

void loop(){ everything inside that will loop

delay(1000)- will give a delay of 1 sec

In class

  • We reviewed some loop commands in the code
  • We tried to affect each other's modules with a code in this files:
Arduino


Session 4

Monday+Friday sessions The Friday session really helped with some deeper understanding regarding how to work with the module.

At home

Recommended set for deep thinking by Helene Rickhard

I tried to do some visual stuff connecting my module to processing through the computer (because Processing is a more "visual" coding environment). The main issue was transferring the information we are getting from the Arduino to Processing.

These are the links I used

General- connecting between Arduino and Processing


Serial port

In the Processing code you need to be "on" the same serial port that the Arduino is running on

In the Processing code you need to chose the port number in this line-Serial.list[number-of-port]

myPort =  new Serial(this, Serial.list()[11], 9600);

Adding this line

println(Serial.list());

to the processing code will show the lists of port and than you can find out which one you should be on.


String into int


Multiple inputs

The problem that I have right now is that my code doesn't know how to get different inputs from the Arduino (A0, A1, A2). I think this video will help me: