# OscP5, receive an array

**URL:** <https://discourse.processing.org/t/oscp5-receive-an-array/10049>\
**Category:** Libraries\
**Created:** [April 7, 2019, 5:10pm UTC](https://discourse.processing.org/t/oscp5-receive-an-array/10049 "2019-04-07T17:10:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobor](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@tobor](https://discourse.processing.org/u/tobor)\
**Post date:** [April 7, 2019, 5:10pm UTC](https://discourse.processing.org/t/oscp5-receive-an-array/10049/1 "2019-04-07T17:10:54Z")

</div>

Hi, I need to receive in Processing an array of letters from Pure Data with OSC.  
Anybody has a clue on how to create the correct oscEvent?

Thanks

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 9, 2019, 2:22pm UTC](https://discourse.processing.org/t/oscp5-receive-an-array/10049/2 "2019-04-09T14:22:06Z")

</div>

> [@tobor](#):
>
> an array of letters from Pure Data

Are you sending the array of letters all at once? In that case, just send a string message – that’s an array of letters.

In general, these two examples may be of help:

Argument:

> example shows how to parse incoming osc messages “by hand”. [http://www.sojamo.de/libraries/oscP5/examples/oscP5oscArgument/oscP5oscArgument.pde](http://www.sojamo.de/libraries/oscP5/examples/oscP5oscArgument/oscP5oscArgument.pde)

Plug:

> register methods in your sketch to which incoming  
> osc messages will be forwareded automatically without  
> having to parse them in the oscEvent method.  
> [http://www.sojamo.de/libraries/oscP5/examples/oscP5plug/oscP5plug.pde](http://www.sojamo.de/libraries/oscP5/examples/oscP5plug/oscP5plug.pde)

Plug is a bit more advanced to set up.
