Wasted-Audio / hvcc

The heavy hvcc compiler for Pure Data patches. Updated to python3 and additional generators
https://wasted-audio.github.io/hvcc/
GNU General Public License v3.0
260 stars 30 forks source link

Unity: List of numbers for receive and send objects #42

Open pedrononino opened 3 years ago

pedrononino commented 3 years ago

Hello! I think having different kinds of data possible to send and receive would be very interesting! I'm working on a project with Wwise and Unity and i need to send a list of numbers from unity to PD and I found out that only floats could be sent

dromer commented 2 years ago

[edit: I modified the topic to be a bit more clear]

So, heavy doesn't support pd [list] objects. However perhaps simply using [pack] [unpack] we could use a new kind of [r myList @hv_list] receiver/sender? Any interpretation will of course need to happen on the generator side. So someone would have to extend the Wwise and Unity targets.

I'm not sure what limitations we need to take into account. Is the length of the lists you are aiming to use deterministic?

dromer commented 2 weeks ago

So I realized that my initial response on this was a bit off.

Send and receive objects can already handle "lists" (ie. multiple values of numbers at a time). For instance all the MIDI integrations send and receive multiple values in order to work.

However in your case you specifically need the Unity integration to be able to handle these. This will require someone versed in Unity to implement and validate.