From the original SynthMaker forum (2004–2014), with its members’ names and dates.
tinkergnome ·
ok ... i have this idea that may sound a bit far fetched...... i want to find a way to press a key on the
keyboard and toggle a multiplexer/(flow)selector. is that even possible???..... i tried some kind of idea with the
"is key pressed" widget.... it doesn't seem to work. i thought of trying some kind of idea with a code module
or some other way,.... but i'm still a bit new to this program to dare try. any ideas ????
oddson ·
🙂
tektoog ·
My try...
Might need an afterload prim on the one shot module trigger input...
lesobrod ·
Wow 😀 and addition thanx from me, 'cause I'm trying to do some things with keys too.
Is it not bad don't start new topic and ask here? 🙂
What about detection of "Shift + Key" or "Up + Key" combinations using "IsKeyPressed"?
tinkergnome ·
thanks for the help on this ..... i'll definitely investigate those responses. one question for oddson,
i dont seem to see that "pressed" object (you have there in that image) amongst the widgets i have in
my library .... that must be a custom module. i can only assume that custom object oddson used was a "is key pressed" + a timer or counter encapsulated within a module..... ?
as for tektoog thanks for the example .... in the image seen/uploaded i have the solution working more closely as i wanted.... thank you just the same. your example helped out very much
trogluddite ·
tinkergnome wrote: that "pressed" object
Just type exactly that into the toolbox search box - it should come up straight away.
If you are using an older version of SM, then the primitive may look a little different - the old one had no trigger input, only the string.
That's OK though, you can connect the ticker to the same input as the string, and it will work just the same - the trigger input was added recently just to make it clear that a trigger is needed to force a scan of the keyboard..
tinkergnome ·
hey trogluddite.... yes i am using an older version of SM. i only saw the "is key pressed" widget when i searched.
i do believe i could make tektoog's example work just fine though as a reference point. i just created a newer
part in an alternate saved document that puts me closer to what i'm trying to do in this key pressing issue. its interesting how this program integrates with things....
martinvicanek ·
lesobrod wrote: What about detection of "Shift + Key" or "Up + Key" combinations using "IsKeyPressed"?
like this maybe?
tinkergnome ·
thanks also to martinvicanek for that newer example. though, what about if i had a project where
i pressed a "q" key & it would toggle a first selection, .... then i pressed a "2" key on the keyboard
& it toggled a next selection, then i pressed the "q" key again..... and then it toggles the previous
first selection. i have an ALT project where that's something similar going on ..... but its not quite
close to what i'm looking for.
philter5 ·
here are some related threads:
Some Key-pressed Components
Key code finder
😉
tinkergnome ·
thanks philter.... much appreciated ... 😀
Wrote something here? To have a post removed or your name hidden, write to [email protected].