Skip to content

Commit

Permalink
Update to handle breaking changes in Overtone 0.9.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerallen committed Nov 22, 2013
1 parent bcc388a commit c1c0d7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[org.lwjgl.lwjgl/lwjgl "2.9.0"]
[org.lwjgl.lwjgl/lwjgl_util "2.9.0"]
[shadertone/lwjgl-natives "2.9.0"] ;; since org.lwjgl puts the natives in a bad spot
;;[overtone "0.9.0-SNAPSHOT"]
[overtone "0.9.0-RC2"]
[overtone "0.8.1"]
[watchtower "0.1.1"]]
:main ^{:skip-aot true} shadertone.core
Expand Down
10 changes: 4 additions & 6 deletions src/shadertone/tone.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
(tap "system-vol" 60 (lag (abs (in:ar 0)) 0.1)))

(defonce voltap-synth
(vol :target (foundation-monitor-group)))
;; FIXME 0.9 (vol [:after (foundation-monitor-group)]))
(vol [:after (foundation-monitor-group)]))

;; ----------------------------------------------------------------------
;; Grab Waveform & FFT data and send it to the iChannel[0] texture.
Expand All @@ -41,8 +40,8 @@
(.put init-fft-array)
(.put init-wave-array)
(.flip)))
(defonce wave-bus-synth (bus->buf :target (foundation-monitor-group) 0 wave-buf))
;; FIXME 0.9 (defonce wave-bus-synth (bus->buf [:after (foundation-monitor-group)] 0 wave-buf))

(defonce wave-bus-synth (bus->buf [:after (foundation-monitor-group)] 0 wave-buf))

(defn- ensure-internal-server!
"Throws an exception if the server isn't internal - wave relies on
Expand Down Expand Up @@ -92,8 +91,7 @@
(record-buf lin-mag scope-buf)))

(defonce fft-bus-synth
(bus-freqs->buf :target (foundation-monitor-group) 0 fft-buf))
;; FIXME 0.9 (bus-freqs->buf [:after (foundation-monitor-group)] 0 fft-buf))
(bus-freqs->buf [:after (foundation-monitor-group)] 0 fft-buf))

;; user-fn for shader display of waveform and fft
(defn tone-fftwave-fn
Expand Down

0 comments on commit c1c0d7a

Please sign in to comment.