2011年2月26日 星期六
2011年2月16日 星期三
2011年2月1日 星期二
processing program
two point detection succeed
can adjust the sensitivity even work in a room light condition
import processing.video.*;
import ddf.minim.*;
AudioPlayer player;
AudioPlayer player2;
Minim minim;
Minim minim2;
Capture video;
void setup()
{
size(1024, 400);
minim = new Minim(this);
minim2 = new Minim(this);
player = minim.loadFile("try2.mp3", 2048);
player2 = minim2.loadFile("kick.mp3", 2048);
// player2 = minim2.loadFile("kick.mp3", 1024);
// The name of the capture device is dependent those
// plugged into the computer. To get a list of the
// choices, uncomment the following line
// println(Capture.list());
// And to specify the camera, replace "Camera Name"
// in the next line with one from Capture.list()
// myCapture = new Capture(this, width, height, "Camera Name", 30);
// This code will try to use the last device used
// by a QuickTime program
video = new Capture(this, width, height, 24);
//player.loop();
}
void draw() {
// video.read(); //must
image(video, 0, 0); //must
if (video.available()) {
boolean p = (false);
boolean p2 = (false);
video.read();
video.loadPixels();//make it can calculate
int point1=video.get(64,63);
int point2=video.get(128,63);
float point1bright= brightness(point1);
float point2bright= brightness(point2);
point(64,64);
point(127,64);
if (point1bright<230){
println("dark") ;
// player.play();
// player.loop();
// p=(true);
//player.pause();
}
//if (p==false) end
if ( player.isPlaying()) {}
else{
if (point1bright>230){
println("bright") ;
player.loop();
player.play(); }
}
if (point2bright<230){
println("dark2") ;
// player.play();
// player.loop();
// p=(true);
//player.pause();
}
//if (p==false) end
if ( player2.isPlaying()) {}
else{
if (point2bright>230){
println("bright2") ;
player2.loop();
player2.play(); }
}
}//available end
}//draw end
can adjust the sensitivity even work in a room light condition
import processing.video.*;
import ddf.minim.*;
AudioPlayer player;
AudioPlayer player2;
Minim minim;
Minim minim2;
Capture video;
void setup()
{
size(1024, 400);
minim = new Minim(this);
minim2 = new Minim(this);
player = minim.loadFile("try2.mp3", 2048);
player2 = minim2.loadFile("kick.mp3", 2048);
// player2 = minim2.loadFile("kick.mp3", 1024);
// The name of the capture device is dependent those
// plugged into the computer. To get a list of the
// choices, uncomment the following line
// println(Capture.list());
// And to specify the camera, replace "Camera Name"
// in the next line with one from Capture.list()
// myCapture = new Capture(this, width, height, "Camera Name", 30);
// This code will try to use the last device used
// by a QuickTime program
video = new Capture(this, width, height, 24);
//player.loop();
}
void draw() {
// video.read(); //must
image(video, 0, 0); //must
if (video.available()) {
boolean p = (false);
boolean p2 = (false);
video.read();
video.loadPixels();//make it can calculate
int point1=video.get(64,63);
int point2=video.get(128,63);
float point1bright= brightness(point1);
float point2bright= brightness(point2);
point(64,64);
point(127,64);
if (point1bright<230){
println("dark") ;
// player.play();
// player.loop();
// p=(true);
//player.pause();
}
//if (p==false) end
if ( player.isPlaying()) {}
else{
if (point1bright>230){
println("bright") ;
player.loop();
player.play(); }
}
if (point2bright<230){
println("dark2") ;
// player.play();
// player.loop();
// p=(true);
//player.pause();
}
//if (p==false) end
if ( player2.isPlaying()) {}
else{
if (point2bright>230){
println("bright2") ;
player2.loop();
player2.play(); }
}
}//available end
}//draw end
2011年1月29日 星期六
2011年1月23日 星期日
2011年1月20日 星期四
making of EL wire part 1
how to solder el wire tutorial online
materials from tao bao:
3.2mm El wire (3Meter)
3.2mm El wire (3Meter)
Sound control driver
12V battery case(AAx8)
connecters
2011年1月9日 星期日
EL wire idea
el wire introduction
http://en.wikipedia.org/wiki/El_wire
structure of EL wire
make a portable and voice control el wire device!
Then put it on a T-shirt
T-shirt sample made by others
http://en.wikipedia.org/wiki/El_wire
structure of EL wire
make a portable and voice control el wire device!
Then put it on a T-shirt
T-shirt sample made by others
2010年12月30日 星期四
Final idea
The rolling music box at the middle to generate sound with light goes through the paper. Put several music boxes on the floor that reacts with the music generated.
However i am not sure if i can made the VU meter
2010年12月12日 星期日
music making (FL studio)
i would like to make my own piece of music instead of using free resource SCM provided.
I use FL studio to make my very own piece of sound and clips.
FL studio is perfect for my project.
I use FL studio to make my very own piece of sound and clips.
FL studio is perfect for my project.
2010年12月4日 星期六
Music research
want to make MPC electronic music
these are some of my research
these are some of my research
Rnb/Pop/Electric Beat - Fruity Loops Studios 9 (FREE MP3* DL)
Making A Beat on The iPhone 4 Eps #1 (ElectroBeats by David Guetta App)
Electro beats
MPC
The Best Electronic Dance Music
Electronic Music Tutorial (How to write beats)
Electronic Music 2010
2010年12月3日 星期五
2010年11月20日 星期六
Another Light Device VU meter
i want to make a device that would measure the volume level. So i decided to make a VU meter and show the result in form of light. MY idea is the music box generate music then the music trigger the LED devices.
Do some rearch about it then i find a chip can do the effect i want.
Do some rearch about it then i find a chip can do the effect i want.
this is the schemic for my project
2010年11月5日 星期五
2010年10月20日 星期三
2010年10月15日 星期五
making of LED music box interact with music part3
I start to work out a better brighter circuit and change it to a parallel circuit and link up more LEDs.
I tried 4 leds first and found that it is not bright enough and start to change the whole wiring.
Putting 2 LEDs together as a unit and make the wires more tidy.
close up
It works well
After so much soldering my brand new soldering iron change color…..wonder why it became blue
2010年10月12日 星期二
study about parallel circuit
after i sucessfully made the device i find out that if i want 4 led then i will need 8 AA battery. The problem is 4 leds are not enougth for my project . So i tried to find ways to add more leds.
After reading many knowledge about electronic circuit i finally figure out a way.
Series and parallel circuits
just make the circuit parallel then i can use 3V (ie 2 AA battery) Then i can light up as many LED as i want.
Then i start to change the circuit diagram.
2010年10月11日 星期一
making of LED music box interact with music part2
Tried at least 6 old 3.5mm audio jacks finally get one which works
later i figure out that they wont work because i didn't solder them together.
actually i blink with the music i am playing!
Then start serious soldering (This is the first time soldering ever in my life)
not bad right?
After hours of trying the device finally works
Nice effect in complete darkness
2010年10月8日 星期五
making of LED music box interact with music
Trying to connect 3.5mm audio jack with Tip31
start blowing LEDsss cause of wrong resistors
Finally get the LEDs lit without burning them but still not working with Tip31
2010年9月24日 星期五
processing liabrary
music library for processing
Minim
Minim is an audio library that uses the JavaSound API, a bit of Tritonus, and Javazoom’s MP3SPI to provide an easy to use audio library for people developing in the Processing environment. The philosophy behind the API is to make integrating audio into your sketches as simple as possible while still providing a reasonable amount of flexibility for more advanced users. There are no callbacks and you do not ever need to directly manipulate sample arrays, all of the dirty work is handled for you. The download comes in two flavors: (1) just the jar files needed to use Minim and (2) a full distribution that includes the javadocs, examples, and source code. Minim is licensed under the GNU Lesser General Public License (LGPL), a copy of which is included with both distributions. Users of Minim 1.1 should peruse the Javadocs to see what’s changed (hint: not much has changed, but there are a couple of nice new things).
Minim home:http://code.compartmental.net/tools/minim/
Minim home:http://code.compartmental.net/tools/minim/
2010年9月23日 星期四
programming language change : processing
finally i decide to use processing to make the music box light detection
it allows me to output as many sounds as i like.
and it is free to use easy to extend and use one different pc.
http://processing.org/
it allows me to output as many sounds as i like.
and it is free to use easy to extend and use one different pc.
http://processing.org/
訂閱:
文章 (Atom)




