Skip to content

Instantly share code, notes, and snippets.

@GCBallesteros
Last active February 16, 2018 11:59
Show Gist options
  • Select an option

  • Save GCBallesteros/fbb5f1f47467b290286d37b810ea22c7 to your computer and use it in GitHub Desktop.

Select an option

Save GCBallesteros/fbb5f1f47467b290286d37b810ea22c7 to your computer and use it in GitHub Desktop.
Frequency Field Monitors
(define (make-volume x-min x-max y-min y-max)
(volume
(center (/ (+ x-max x-min) 2) (/ (+ y-max y-min) 2) 0)
(size (- x-max x-min) (- y-max y-min) 0)))
(define (freq-field-monitor monitor-name dt vol output-comp)
(at-every dt (to-appended monitor-name (in-volume vol output-comp))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment