pitchbend, or glides, in overtone?

15 views
Skip to first unread message

joa...@verona.se

unread,
Feb 18, 2024, 3:52:26 PMFeb 18
to over...@googlegroups.com
Hello,

How would I affect pitch of a running overtone instrument, from overtone
code?

I have some code that automates a ctrl. In the example below it changes
the bpm of an instrument, from 0 to 250 over 16 seconds.

Is there a similar way to affect the pitch?


(defn ctl-ramp-2 [start stop inc ramp-fn]
(let [cur (+ start inc)]
(if (< start stop)
(do
;;(println cur)
(ramp-fn cur)
;;apply our ramp-fn, every 100 ms, until the ramp is done
(apply-at (+ 100 (now)) ctl-ramp-2 [cur stop inc ramp-fn] ))
;; else we are done and do naught
;;(println "done")
)))

(defn ctl-ramp [start stop time-ms ramp-fn]
(ctl-ramp-2 start stop
(/ (- stop start) (/ time-ms 100.0))
ramp-fn))

(ctl-ramp 0 250 16000 #(ctl d :bpm %))

--
Joakim Verona
joa...@verona.se

Diego Villaseñor

unread,
Feb 18, 2024, 7:21:30 PMFeb 18
to over...@googlegroups.com
You can use lag. 

--
You received this message because you are subscribed to the Google Groups "Overtone" group.
To unsubscribe from this group and stop receiving emails from it, send an email to overtone+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/overtone/87v86l4hs0.fsf%40tanaka.verona.se.

joa...@verona.se

unread,
Feb 19, 2024, 3:13:57 AMFeb 19
to Diego Villaseñor, over...@googlegroups.com
Diego Villaseñor <diego....@gmail.com> writes:

> You can use lag.

Thanks I will have a look!
--
Joakim Verona
joa...@verona.se
Reply all
Reply to author
Forward
0 new messages