Hi Jay

No, there is no native support of selectInput() or selectOutput() in Quil. 
You can try calling Processing's methods directly using java interop. 
Though it's not straightforward. The problem is that when you call 
selectInput() you have to pass a name of callback function to be called. 
This name is just a string and Processing finds corresponding method using 
reflection and invokes it. To make it work we need to generate a class, 
let's say FileCallback which has method onFileSelected(). Then we need to 
pass instance of that class to selectInput() along with "onFileSelected" as 
callback name. 

Here is an 
example: https://gist.github.com/nbeloglazov/8a74fa3e6bbb44137df27c4a5201ad1e 
If you're not familiar with generating classes in clojure then check docs 
<https://clojuredocs.org/clojure.core/gen-class> it's non-trivial. 

Hope this helps,
Nikita

On Monday, April 10, 2017 at 8:49:09 PM UTC-7, Jay Porcasi wrote:
>
> hello,
>
> i'm looking for the Quil equivalents of Processing selectInput() and 
> selectOutput() but i can't find them
>
> if they're not there, what would be the best way to directly access the 
> corresponding Processing methods instead?
> or is there a different more convenient way to get the same functionality 
> of those methods?
>
> thanks for any suggestions in the right direction
> Jay
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to