Using soundcipher and eclipse only buzzes
in
Integration and Hardware
•
2 years ago
I am attempting to add sounds to a sketch using the SoundCipher libraries. When I create the simple samples using the Processing UI, it works fine.
However, as I do all my coding in Eclipse, I imported the libraries and re-created the simple sketch. When it runs (and it does run), the notes are just buzzing sounds, not the default piano sound.
Any suggestions?
Eclipse 3.7 Java JDK 1.6
import arb.soundcipher.*;
public class SoundSamples extends PApplet {
SoundCipher sc = new SoundCipher(this);
public void setup() {
size(35, 120);
background(255);
}
public void draw() {
sc.repeat(7);
sc.playNote(300, 50, 0.5);
}
static public void main(String args[]) {
PApplet.main(new String[] { "--bgcolor=#ECE9D8",
"com.preston.processing.sketches.SoundSamples" });
}
}
However, as I do all my coding in Eclipse, I imported the libraries and re-created the simple sketch. When it runs (and it does run), the notes are just buzzing sounds, not the default piano sound.
Any suggestions?
Eclipse 3.7 Java JDK 1.6
import arb.soundcipher.*;
public class SoundSamples extends PApplet {
SoundCipher sc = new SoundCipher(this);
public void setup() {
size(35, 120);
background(255);
}
public void draw() {
sc.repeat(7);
sc.playNote(300, 50, 0.5);
}
static public void main(String args[]) {
PApplet.main(new String[] { "--bgcolor=#ECE9D8",
"com.preston.processing.sketches.SoundSamples" });
}
}
1