Fix example code to match new BasicOptical.pde
This commit is contained in:
parent
aaf65c3a9b
commit
c5e20a5e47
|
@ -22,7 +22,7 @@ import soundtrack.optical.*;
|
||||||
|
|
||||||
SoundtrackOptical soundtrack;
|
SoundtrackOptical soundtrack;
|
||||||
|
|
||||||
String soundtrackFile = "./data/barking.wav";
|
String soundtrackFile = "../../data/barking.wav";
|
||||||
int dpi = 2400;
|
int dpi = 2400;
|
||||||
float volume = 1.0;
|
float volume = 1.0;
|
||||||
String type = "dual variable area";
|
String type = "dual variable area";
|
||||||
|
@ -30,7 +30,7 @@ String pitch = "long";
|
||||||
boolean positive = true;
|
boolean positive = true;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
size(213, 620);
|
size(213, 620, P2D);
|
||||||
frameRate(24);
|
frameRate(24);
|
||||||
soundtrack = new SoundtrackOptical(this, soundtrackFile, dpi, volume, type, pitch, positive);
|
soundtrack = new SoundtrackOptical(this, soundtrackFile, dpi, volume, type, pitch, positive);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue