Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:00
    matcham closed #808
  • 15:00
    matcham commented #808
  • Nov 25 20:41
    jcelerier commented #808
  • Nov 25 20:38

    jcelerier on ossia.cue

    [max] Fix repetition filter eve… (compare)

  • Nov 24 14:20
    matcham commented #808
  • Nov 24 13:59
    jcelerier closed #809
  • Nov 24 13:59
    jcelerier commented #809
  • Nov 24 13:59
    jcelerier commented #808
  • Nov 24 13:58
    jcelerier commented #808
  • Nov 24 10:50
    matcham pinned #791
  • Nov 24 10:48
    matcham commented #808
  • Nov 24 09:54
    matcham commented #786
  • Nov 24 09:49
    matcham commented #808
  • Nov 24 09:47
    matcham commented #808
  • Nov 23 21:49
    jcelerier labeled #809
  • Nov 23 21:49
    jcelerier labeled #809
  • Nov 23 21:49
    jcelerier opened #809
  • Nov 23 20:42
    jcelerier commented #786
  • Nov 23 20:42
    jcelerier assigned #808
  • Nov 23 19:11
    jln- commented #808
djiamnot
@djiamnot:matrix.org
[m]
hey all. So tried to dive into https://github.com/OSSIA/ossia-sclang but hit a wall quite quickly with WebSocketServer not found.
I cannot locate such class and no official quark turns up anything similar.
any clue?
Thibaud Keller
@thibaudk
Hi @djiamnot:matrix.org
to use oscquerry you will need a spescial build
but the sclang quarck also suports plain osc
simply replace exposeOSCQueryServer() by exposeOSC()
if you are interested in the build that includes both HTTP and Websocket primitives, you can find it here
djiamnot
@djiamnot:matrix.org
[m]
I think I was interested in the OSCQuery, but will try exposeOSC() first
djiamnot
@djiamnot:matrix.org
[m]
😱, that's a customised SC3
Thibaud Keller
@thibaudk
yes
djiamnot
@djiamnot:matrix.org
[m]
wow. That's hardcore!
Thibaud Keller
@thibaudk
it's @pchdev 's handy work
we have discussed it on the supercollider page
but i am starting to wonder if merging it is feasible in the near future
djiamnot
@djiamnot:matrix.org
[m]
oh, interesting! Some good points raised there, it's true
Thibaud Keller
@thibaudk
for a quick demo of the quarck using OSC, you can have a look at https://www.youtube.com/watch?v=6a01Ij_sYNc
djiamnot
@djiamnot:matrix.org
[m]
ok, that's cool!
what's unclear now, is how to use the "learn" feature
Thibaud Keller
@thibaudk
in score you mean ?
djiamnot
@djiamnot:matrix.org
[m]
yes, in score
like you do on that video
Thibaud Keller
@thibaudk
first add a devices, select the osc protocol (not OSCQuery)
you can change the name of the device. The ports have the same defaults as the quarcks so you don't have to change them
djiamnot
@djiamnot:matrix.org
[m]
yes, I did that, but is there something to do on the SC side?
Thibaud Keller
@thibaudk
yes
once the device is created, right click and select learn (the window appears)
the in SC
evaluate ~yourDevice.exposeOSC();
replacing ~yourDevice with the one you created in SC
when evlauating exposeOSC() all deffault values are sent to score once for learning
here is a little code example
djiamnot
@djiamnot:matrix.org
[m]
right! I confirm that this is the way!
this is getting very exciting!
Thibaud Keller
@thibaudk
(
d = OSSIA_Device("supercollider");
n = OSSIA_Node(d, "MonNode");

d.exposeOSC();

v = OSSIA_Parameter(n, "MonVec", OSSIA_vec3f, [[-pi, -pi, -pi], [pi, pi, pi]], [0, 0, 0]);
//v.unit_(OSSIA_orientation.euler);
v.unit_(OSSIA_position.cart3D);
r = OSSIA_Parameter(n, "MonRange", OSSIA_vec2f, [[-30, -19], [10, 27]]);
// r.unit_(OSSIA_position.cart2D);
f = OSSIA_Parameter(n, "MonFloat", Float, [-6.3, 99.5]);
h = OSSIA_Parameter(n, "MonInt", Integer, [ 0, 64 ]);
b = OSSIA_Parameter(n, "MonBool", Boolean, critical:true);
g = OSSIA_Parameter(n, "MonPrint", String, default_value: "imprimer des choses");
n.gui();
)
the quarck also includes a simple gui library, that can be called on a parameter or on a node (to show GUI of all direct children)
here it is called on the node with n.gui()
changing the unit will also change some widgets (in the comments)
djiamnot
@djiamnot:matrix.org
[m]
very cool!
djiamnot
@djiamnot:matrix.org
[m]
thank @thibaudk ! It all works as expected!
Thibaud Keller
@thibaudk
cool, hope it suits you needs !
djiamnot
@djiamnot:matrix.org
[m]
(almost: I get an empty window when call gui() on a OSSIA_Node)
yes, it's a good start! getting my feet wet but I'm very enthusiastic about the potential
Thibaud Keller
@thibaudk

(almost: I get an empty window when call gui() on a OSSIA_Node)

the gui method will create widgets for the node's children, if the node is empty, the window will be too

I should probably prevent this tho, thanks for pointing it out
djiamnot
@djiamnot:matrix.org
[m]
oh, good point. I did not pay attention to this detail! Of course, it makes sense! Thanks for the clarification
Jean-Michaël Celerier
@jcelerier
hi @x37v, actually the echo thing should be fixed in feature/async_protocols
(sorry about the lag with the PR, I had a lot of bugfixes to push on score, now I'm on libossia until the end of the week !)