immersive-audio-live / ADM-OSC

An OSC dictionary that implements the Audio Definition Model (ADM)
https://immersive-audio-live.github.io/ADM-OSC/
MIT License
68 stars 10 forks source link

Names and labels #23

Open mzed opened 1 year ago

mzed commented 1 year ago

?

mzed commented 1 year ago

/obj/kick/azim?

lzwicker commented 1 year ago

I would more expect this in the following form in order to set/get a name of a specific object: adm/obj/(k)/name s

JGaudin commented 3 months ago

I would prefer not have to build adresses, but rely on a string argument.

mzed commented 2 months ago

There are two possibilities here.

Naming

/adm/obj/<objectNumber>/name s should set the name to whatever string is contained by s. So, /adm/obj/5/name piano sets object number 5 to be named piano.

/adm/obj/<objectNumber>/name with no argument is a query for the name. /adm/obj/5/name should return "piano"

Using names

Possibly, object names could be used in place of object numbers. Like: /adm/obj/piano/azim 45.0. That might be nice to have, by not necessary.

mzed commented 2 months ago

ADM limits labelLength to 128 characters. That seems reasonable for /name too

SylvainThevenard commented 2 months ago

/adm/obj//name is great.

/adm/obj/piano/azim 45.0 : this can be a good idea but can leads to parsing consumption. This has probanly yo be study and discuss.