Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lists/Arrays are underspecified? #63

Open
x37v opened this issue Jan 4, 2021 · 0 comments
Open

Lists/Arrays are underspecified? #63

x37v opened this issue Jan 4, 2021 · 0 comments

Comments

@x37v
Copy link

x37v commented Jan 4, 2021

In the examples there is a method with the OSC type "i[ff]i"

I'm not sure if that describes a type that has 1 int followed by a fixed sized array of 2 floats followed by an int, or if that array (or maybe list is a better term) should be resizable? What would the type signature look like if the data last set there was an empty list?

AFAIK there is no way to indicate that I want a list of a specific type, or of one or more types or of any type. Also, can this list have a size limit (lower and or upper)? It feels like using the OSC type system for this doesn't quite work because it describes data that exists, not data that could exist.

I could see the following alteration to type strings:

  • [f] a resizable list of floats
  • [fi] a resizable list of ints and/or floats
  • [*] a resizable list of any OSC type.

I'm less sure about specifying length... Some thoughts:

  • [2*] a list of length 2, any OSC type.
  • [0f2] a list of length 0..2, floats`

Thoughts? Maybe I'm missing something in the doc that specifies these types of details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant