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

17 lines
249 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(cps-midi a)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Convert cycles per second to MIDI note.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (line kr 600 900 5 remove-synth)))
(audition
(out 0 (mul (saw ar (midi-cps (cps-midi f))) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00