ModalityTeam / Modality-toolkit

A SuperCollider toolkit to simplify the creation of personal (electronic) instruments utilising hardware and software controllers of any kind.
http://modalityteam.github.io/
87 stars 26 forks source link

feat: add \hide to styling dict to allow hiding elements from gui #395

Open madskjeldgaard opened 1 year ago

madskjeldgaard commented 1 year ago

Hi! This is something I found useful for myself – the ability to hide an element from a gui. This is for example useful for devices like sequencers where it is hard to create a 1:1 representation of the midi notes received by SuperCollider in a GUI and it's just easier to hide it from the GUI and only interface with it in code. Example:


(
                        key: midiNoteNum.asSymbol,
                        midiNum: midiNoteNum,
                        elementType: \pad,
                        ioType: \in,
                        midiMsgType: \noteOnOff,
                        groupType: \noteOnOff,
                        midiChan: midiChan,
                        page: midiChan,
                        style: (
                            hide: true,
                            showLabel: false
                        ),
                    )
LFSaw commented 1 year ago

intersting idea! would you mind fixing indentations of your edits? Looks like you use spaces instead of tabs...

LFSaw commented 6 months ago

you still interested in this?

madskjeldgaard commented 6 months ago

I don't have time to work on this at the moment, sorry ! <3

LFSaw commented 6 months ago

I'll see if I find time to correct the indentations