pd-externals / hoalight

light Higher Order Ambisonics external
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

hoa-light object share the speaker definition #11

Open chikashimiyama opened 3 years ago

chikashimiyama commented 3 years ago

Speaker definition object holds the information of speaker setup. This object is currently only used for vbap but this can be theoretically used also by the hoa-light object

chikashimiyama commented 3 years ago

I imagine this may involve changes to the vbap code which allow for exporting and reading the speaker array. Maybe this needs to be done via some sort of getter/setter interface? by @danomatika

chikashimiyama commented 3 years ago

I thought [define_loudspeakers] object behaves as a source of truth for all vbap objects in the patch so that I don't have to send "define_loudspeakers" messages to all vbap objects (and eventually hoalight objects) but the help file of define_loudspeakers just confuses me.

Screenshot 2021-03-29 at 11 27 11

It looks like the purpose of [define_loudspeakers] object is to tweak the triangle selection.

In other words, how can I associate a [vbap] object and [define_loudspeakers] object properly? Is that global scope like singleton (then that's a big problem)

chikashimiyama commented 3 years ago

@danomatika

I think now I understand how to use [define_loudspeakers] object.

Screenshot 2021-03-29 at 11 43 06

it outputs loudspeaker-matrices when I send a bang to it and vbap object accepts these matrices. in this way, if I want to tweak the vbap algorithm using ls-triplets or ls-direction I just do it once, because loudspeaker-matrices also contain tweaking.

so sharing the speaker position between vbap and hoalight should be done in another way and probably it doesn't worth the effort.

danomatika commented 3 years ago

Yeah, I was imagining that hoalight could use the loudspeaker-matrices output from [define_loudspeakers]. If it's too much work for now, then leave it as other things are more important.