rsc3/doc/help/ugen/unary-ops/cps-midi.help.scm

8 lines
174 B
Scheme
Raw Normal View History

2022-08-24 13:53:18 +00:00
;; (cps-midi a)
;; Convert cycles per second to MIDI note.
(let ((f (line kr 600 900 5 remove-synth)))
(audition
(out 0 (mul (saw ar (midi-cps (cps-midi f))) 0.1))))