Last active
February 16, 2018 11:59
-
-
Save GCBallesteros/fbb5f1f47467b290286d37b810ea22c7 to your computer and use it in GitHub Desktop.
Frequency Field Monitors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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