I haven’t tested this in PD yet but in Orca select requires 4 arguments. It won’t do anything with select:1;2 but select:1,2,3,4 will immediately jump and select an area.

Yep! This isn’t working exactly right. The second inputs don’t update until you change the first two but it works. You just need 4 arguments

Yes, I’ve just been using 2 arguments for select and it works fine to move the cursor around. Which is honestly useless to me, but it proves that it works.

As for the values not updating unless you change the first 2 values. That’s why I have that weird interconnected [bang]. Pack only updates its output when the left most inlet is changed. So I made it so that anytime the 2nd/right number is changed, it also forces an update on the left/hot inlet. To make this work with your new version, you need to make the outputs of all your numbers(except the first/left one) go to the top of the bang for that part. Looks like you did this for the rightmost one.

1 Like

well now I that we’ve got these two working how about the ‘find’ command. It works from console in Orca but ‘send find:aV’ from pure data does not.

It seems like being able to jump around to different variables and effect them with pure data would be pretty neat!

1 Like

I can implement that, gimme a day or two :slight_smile: We’re doing big boat projects right now, but I’ll add this as soon as we’re back in the water.

4 Likes

Thats nice, are you planning to make more travel videos again soon? I really like the once you have made, truly inspiring :slight_smile:

2 Likes

Hey,
Another thing to look at if you have the time is that the command “bpm:” also doesn’t seem to work when sending from Pure Data

1 Like

It looks like find: and bpm: works properly via UDP. I suspect that the issue is on the PureData side. Make sure to send to the right port, and that the port is not busy when opening Orca(orca always listens on 49160), open the Inspector if you want to see if the listener has launched properly.

If the connection fails, it will display something like:

UDP Server error:
 Error: bind EADDRINUSE 0.0.0.0:49160
    at dgram.js:321:20
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

are you planning to make more travel videos again soon?

Yes! we have made 2 new ones since our return to Japan :slight_smile:

1 Like

I made a little UDP server in Elixir, and the messages are quite different from PD, versus other UDP clients and Orca itself.

The message format I receive from Orca when sending bpm:111 is:
image

The same message sent via PD is:
image

So it appears that PD is adding a semicolon and a newline character to the end. This is even more pronounced during write and select(there’s an extra backslash added as well), but somehow they still work:
image

EDIT: Looks like by default netsend uses the FUDI protocol: https://en.wikipedia.org/wiki/FUDI , but it does have a binary mode if you pass in -u -b. This kind of issue is usually the point at which I jump from PureData to a more traditional programming language :slight_smile:

3 Likes

I made this cool little ORCA visualizer using the find-command as a way to show various patterns of numbers. Any of you have ideas of how to use this in a project? :slight_smile:

oh! and could anyone tell me what is happing at 0:56 in the video? I seriously have no idea what is going on, but sure does look cool!

Code

…01.3456789



…0Rz6Rz…
…i…c…
…J…J0C9…
…iYicX5…



…4Cv.4Cv.4Cv.4Cv.4Cv.4Cv.4Cv.4Cv…
…14Q.14Q.14Q.14Q.14Q.14Q.14Q.14Q…
…zxG7015.04Q5342.04Q1831…
…30212464800446050834345333673375584
…66665674422142523071543205353606575
…06883351286172863730056486762274601
…40458521110080741501380157116201712
…46114287724667656863171530376747863
…61385258153677882483524540242228737
…84200057037723352258436048358416748
…23432885410188351512228537210566167
…50470641838154225810868888757341535
…41448370476561321702778882740744602
…321480243401820742538127658170725.0
…55501063553534787838175630845045316
…24333568108488140285700487558447085
…460586506224357486234023154238132.4
…31372215840013211101657001823634754
…26266487362410001118436243371184857
…62412083757242716470360252818510366
…82630263767416378327084053687213752
…82210332387383418503301075233855061
…81435635810130783188703738105203108
…100614810531640655063672701436138.1
…87317745576047582834613738624073027
…52724053665238576216133774143022831
…67770847184426821638833032212763621
…17428808573140734824037603438700053
…33022617534578768211734587042331576
…82715230828211172034350704523431562
…78252644308123618102170215132035613
…46648646748787015207153425456183138




…Cz…
…21O…
…2X17015.04Q5342.04Q1831…
…D…

…$find:1…

2 Likes

I wonder if the mrpeach OSC externals would give different results?

Tested and it seems to be the same.

image

2 Likes

(I’m pretty sure most of you here are not “Getting Started”) but thought I’d share…

This Saturday:

8 Likes

That is so awesome! Sounds like a very cool workshop. :slight_smile:

1 Like

It was a great intro, and got me over the hump of understanding the basics.

3 Likes

Covered a lot that I already knew but was totally worth it for a) learning how to use j and y effectively b) Hydra is awesome

2 Likes

Hi community,
i put a cheatsheet together! Most of the content is from the docs, but i provided some rephrasing and additional infos, which is hopefully correct. I guess it is something for the beginners to get over the first questions.
If there are mistakes or additional info you’d like to see - just let me know.

Thank you so much hundredrabbits for this piece of software! I hope could contribute a little piece.

31 Likes

This is great. I’ll keep it handy. I also inverted the colors so I could print it out.

M

1 Like

This is my first attempt at ORC/\

8 Likes

This is wonderful, thanks!

There is a typo in the IO operators section: <lenght>

Also, it might be useful to include commands: https://github.com/hundredrabbits/Orca#commands


On an unrelated note, I went ahead with some experimentation using Python (as I was previously considering) to send and receive UDP for use with ORCA, but as my first experiment in attempting to issue commands from Python failed, I figured it might be easier to try and receive UDP from ORCA instead, hoping that might give some indication of the issue (wrongly formatted strings was my first thought). However, that doesn’t seem to be working either (just keeps waiting for a message, while the UDP operator bangs):

The script pictured:

testRx.py
import socket
import sys

# Create a UDP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

# Bind the socket to the port
server_address = ('localhost', 49161)
print('starting up on {} port {}'.format(*server_address))
sock.bind(server_address)

while True:
    print('\nwaiting to receive message')
    data, address = sock.recvfrom(4096)

    print('received {} bytes from {}'.format(
        len(data), address))
    print(data)

    if data:
        sent = sock.sendto(data, address)
        print('sent {} bytes back to {}'.format(
            sent, address))

was able to receive from this script:

testTx.py
import socket
import sys

# Create a UDP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

server_address = ('localhost', 49161)
message = b"stop"


try:

    # Send data
    print('sending {!r}'.format(message))
    sent = sock.sendto(message, server_address)

    # Receive response
    print('waiting to receive')
    data, server = sock.recvfrom(4096)
    print('received {!r}'.format(data))

finally:
    print('closing socket')
    sock.close()

Originally I tried different ways of formatting stop, and of course sent it over port 49160 to ORCA, but since I’m seemingly not able to receive anything from ORCA on port 49161, I suspect formatting probably isn’t at the root of the issue.

I was just wondering if there’s anything obvious that I’m missing, here. I think that if I manage to get this part figured, the rest should be fairly trivial.

2 Likes

That looks like Orca C, have you tried with OrcaJS?

I haven’t gotten the chance, yet (I’m having some trouble getting it working on this particular computer and have not gotten a chance to try on my usual computer), but that was my next thought. Is there no UDP in ORCA-C?