From c5e20a5e47cfb27a5284c9dabb8c5bfa84958e05 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 29 Oct 2019 13:50:07 -0400 Subject: [PATCH] Fix example code to match new BasicOptical.pde --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9478db1..58f57a4 100755 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ import soundtrack.optical.*; SoundtrackOptical soundtrack; -String soundtrackFile = "./data/barking.wav"; +String soundtrackFile = "../../data/barking.wav"; int dpi = 2400; float volume = 1.0; String type = "dual variable area"; @@ -30,7 +30,7 @@ String pitch = "long"; boolean positive = true; void setup() { - size(213, 620); + size(213, 620, P2D); frameRate(24); soundtrack = new SoundtrackOptical(this, soundtrackFile, dpi, volume, type, pitch, positive); }