Skip to content

Commit d51d27a

Browse files
committed
Negate y-zoom. This makes the scope plot correctly (i.e. positive vals at the top, neg vals at the bottom)
1 parent c4ecb97 commit d51d27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/overtone/viz/scope.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
(.drawRect 0 0 width height)
6767
(.setColor ^Color color)
6868
(.translate 0 y-shift)
69-
(.scale 1 y-zoom)
69+
(.scale 1 (* -1 y-zoom))
7070
(.drawPolyline ^ints x-array ^ints y-a width)))))
7171

7272
(defn scope-panel [id width height]

0 commit comments

Comments
 (0)