Modality-toolkit icon indicating copy to clipboard operation
Modality-toolkit copied to clipboard

MKtlElementCollective needs a helpfile

Open LFSaw opened this issue 7 years ago • 6 comments

as we are assembling the release for #200, I stumbled over MKtlElementCollective which still needs a basic Help file. I am willing to write it, though need some two sentences on what it does. @adcxyz ?

LFSaw avatar May 23 '17 11:05 LFSaw

Actually @sensestage knows this much better, but I'll try anyway - the intro for the help file could be:

MKtlElementCollective contains elements whose values the corresponding device sends (or receives) in grouped form: For example, an OSC device which sends all its button states in a single OSC message with a message name and n values. Very likely one never needs to make an MKtlElementCollective by hand; it is created automatically when a description file defines a group of elements as a collective. For code examples, see link::Tutorials/How_to_create_a_description_file:: esp. the sections on collective input and output.

adcxyz avatar Jun 01 '17 17:06 adcxyz

ah ok, thanks for the starter :)

this'll make writing the help file a breeze :D

On 1. Jun 2017, at 20:58, Alberto de Campo [email protected] wrote:

Actually @sensestage knows this much better, but I'll try anyway - the intro for the help file could be:

MKtlElementCollective contains elements whose values the corresponding device sends (or receives) in grouped form: For example, an OSC device which sends all its button states in a single OSC message with a message name and n values. Very likely one never needs to make an MKtlElementCollective by hand; it is created automatically when a description file defines a group of elements as a collective. For code examples, see link::Tutorials/How_to_create_a_description_file:: esp. the sections on collective input and output.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

LFSaw avatar Jun 01 '17 19:06 LFSaw

just committed a first pass, hope it makes sense. nice that modal hibernation is over ;-)

adcxyz avatar Jun 01 '17 19:06 adcxyz

I'm actually not sure whether the collectives are still working after the code refactoring.

My contributions will stay in bursts - when I happen to be working on a (paid) project needing Modality...

sensestage avatar Jun 01 '17 20:06 sensestage

Last time I checked (with XPee etc) it worked (without me knowing that it where collectives)...

With a little bit of digging, I found the place where they are used:

MKtl(\a, "*xpee*")
MKtl(\a).desc
MKtl(\a).desc.openFile

MKtl(\a).desc.fullDesc[\collectives]

(see MKtl:makeCollectives and OSCMKtlDevice:initCollectives)

LFSaw avatar Jun 01 '17 21:06 LFSaw

@lfsaw - good enough to close?

adcxyz avatar Jun 30 '17 12:06 adcxyz