-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] syncing leipzig compositions with quil visuals #17
Comments
This is a very good question. Right now, there is no good answer, because to actually synchronise means that your visuals would have to know what note is currently playing, and that's hidden away inside of You could certainly synchronise a live-loop with visuals by doing |
The proposal in #14 could help with this. At the very least, you could clone |
You could also stash the note somewhere when your implementation of |
Also, you could send an osc message calling at-at inside a play-note method for example I have something like this. (ns my-space.core
(:require
[leipzig.live :as live]
[leipzig.melody :refer :all]
[overtone.live :as overtone]
[overtone.osc :as osc]
[overtone.at-at :as at-at]))
(def osc-client (osc/osc-client "localhost" 57120))
(defn send-note [note]
(osc/osc-send-msg osc-client {:path "/note" :type-tag "i" :args [note]}))
(defmethod live/play-note :some-part [{pitch :pitch duration :duration instrument :instrument}]
(at-at/at 0 #(send-note pitch) my-pool)) In this way you can connect through osc internally and trigger events avoiding the "FAILURE IN SERVER: /path Command not found" error. It's a suspicious hack, I know, but it's seems to work well! |
hello,
I have been making some music with leipzig and I'm loving the library, but I would like to sync some live visuals to my music with quil. Is there a way to do this with leipzig?
The text was updated successfully, but these errors were encountered: