(def grid (make-launchpad))
(led-on grid 1 2)
(on-press grid (fn [x y s] (my-instrument x y)))I'm sorry, this is my fault. I've been playing with the grid interface
but not updating the docs to reflect it. I'll try to fix it later
today so that make-launchpad doesn't need an argument anymore.
In the meantime for a quick fix, you can do:
(def grid (make-launchpad nil))
(led-set grid 1 2 1) ; red
(led-set grid 1 2 2) ; green
(led-set grid 1 2 3) ; yellow
(led-set grid 1 2 0) ; off
(on-action grid (fn [event x y] (println event x y)))
Yes, this is entirely different from the README. I'll update that too.
Once I've made the fix you'll just need to change (make-launchpad nil)
back into (make-launchpad).
Grid is a very new project and the protocol will be in flux for a
while, because none of use really knows the ideal shape it should
take. I'd like to cut a 0.0.1 release just so there's a stationary
target people can develop against -- would you (or anyone else) be
interested in that, rather than developing against master?
Phil
On Mar 25, 2012 5:41 PM, "Jon" <jonr...@gmail.com> wrote:
>
> Hey Phil,
>
> Awesome, this is just what I needed. So i can call led-set just fine but when I call on-action I get
>
> overtone.grid=> (on-action grid (fn [event x y] (println event x y)))
> CompilerException java.lang.IllegalArgumentException: No single method: on_action of interface: overtone.grid.Grid found for function: on-action of protocol: Grid, compiling:(NO_SOURCE_PATH:10)
Oh sorry, you need two more arguments. It doesn't matter what they are, they get ignored - only the monome grid implementation uses them. This is a wart which I'd like to get rid of when I get time to understand it properly.
> Yeah it would probably be nice to nail down an initial version so people can work on some higher level features. I haven't looked into much of what else is out there as far as launchpad and monome applications for controlling more than just triggers in overtone but after testing it out with Ableton, I am going to for sure want to add functionality for controlling levels, panning, etc.
>
> Thanks again for the examples.
OK, I'll try to cut a 0.0.1 version this week. I'd like to be clear that everything is subject to change at this stage, so I'm making exactly zero forwards compatibility promises.
I'd also really appreciate feedback - if you use grid, please post your code to the list so I can see how it's being used in the wild. If you experience any pain points, please let me know too.
Phil
Phil
I think I've seen something similar before. Are you still seeing this behaviour after the latest update? I rearranged the midi handler code so it might have changed. If you are still seeing the problem, could you give me step-by-step instructions to reproduce?
Thanks,
Phil
You received this message because you are subscribed to a topic in the Google Groups "Overtone" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/overtone/U0DcL7nRxpY/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to overtone+u...@googlegroups.com.
Hey Kane,I'm looking for a little help getting clj-launchpad going. Perhaps you could share an example :)