Welcome to %s forums

BrainModular Users Forum

Login Register

keystroke translator

I need help on a Patch
Post Reply
Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 23 Jun 2012, 16:04

Hi

I need a way to "translate" keystrokes, for instance you press A key and B or any other key is transmited

Thank you

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Jun 2012, 16:14

Actually i don't think you can do that, you can receive keys with the module keyboard, detect when you press it, have the number of this key ( a=66, b=67 and so ) you can transform this data in Midi or OSC but you can't resend this information as a keystroke cause it's Windows that manages this..?

Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 23 Jun 2012, 16:37

ok. What is exactly OSC?. Actually BOME's midi translator con do this but of course it is outside USINE. But if a=66 is there any way to translate it into 67?

Also there is a script based application called HOTKEYS that do the task, but as said before the're abroad USINE. I'd like to do do it within

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Jun 2012, 16:58

For OSC, check this page : OSC setup

you can use a mapper value module to translate the key outlet of a keyboard module and transform all numbers in others ones

then I'm not a specialist but maybe a shell guru can help you to use the shell module to send key command

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Jun 2012, 17:01

btw, can you explain where you want type those keystrokes , once transformed..?

Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 23 Jun 2012, 20:38

I have a padalboard I made myself out of an old usb keyboard. It has 20 switches that goes from A to T characters. What I intend to do is to have more character options, let's say U,V,X,Y,Z and numbers so I can have more key assingments within usine and have the option to transmit these new options with the same existing switches. Do you get the idea?

caco
Member
Posts: 306
Contact:

Unread post by caco » 23 Jun 2012, 21:15

I can't think of a way to do it Usine at the moment. To do it natively in Usine you would need to use the SDK to code a new C++ user module that calls the Windows functions SendKeys::Send or SendKeys::SendWait depending on whether you want to send the keystrokes to the same application that created them (e.g Usine) or to a different application.

To do it outside of Usine you could use most scripting languages, e.g Python plus the SendKeys package, or probably AutoHotKey too as that can do pretty much anything involving keys, mouse etc.

Hope this helps :)

Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 23 Jun 2012, 21:27

As mentioned AutoHotKeys and BOME's Midi Translator do the job. Just wondering if I could do it inside usine and not involving other programs. Thanks anyway for your help and time. You're a great guy.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Jun 2012, 21:35

can't you replace those key assignment in Usine by midi ones..?
if yes, you can use the keyboard module to receive shift +your key ( for example) and transform this to midi message with the create midi module , then use the send Midi to Usine to create midi learn...

Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 02 Jul 2012, 05:33

Good idea. Actually I was thinking in something like that. The only detail is to be careful with the already keystroke messages since they will be transmited too

jeremysdemo
Member
Posts: 36
Contact:

Unread post by jeremysdemo » 25 Sep 2012, 22:00

HEy aria,

I was thinking maybe you could try to save different "setups" and recall them by something like program changes.

For instance in setup #1 keystroke A triggers a specific function, setup #2 A triggers a different function.

This way you wouldn't have to involve Windows keystroke mapping or Bomes.

you could look at setups as Modes, Mode 1 this button triggers that tab, Mode#2 same button does something different.

of course you would need a few buttons (or program changes) dedicated to just switching modes.

jerm :cool:

Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 02 Oct 2012, 02:40

Jeremy That's exactly what I did. I created different patches (setups) which correspond to songs so when I load them the key combinations are different on each patch. It is quite your idea. Thanks for your idea.

jeremysdemo
Member
Posts: 36
Contact:

Unread post by jeremysdemo » 06 Oct 2012, 00:29

what can I say, even a broken clock is right two times a day.

jerm :cool:

jeremysdemo
Member
Posts: 36
Contact:

Unread post by jeremysdemo » 06 Oct 2012, 00:36

Ariajazz wrote:I have a padalboard I made myself out of an old usb keyboard. It has 20 switches that goes from A to T characters.
I for one would certainly like to know more about that process.

I wanted something like that but couldn't rap my brain around how to re-wire the letters to say simple on/off toggle switches....

I ended up getting Stealth II pedals which you can program (even macros into) but they were limited to 5 pedals per USB input.

There are so many good programs out their that have the query controls hardwired into the code rather than having a tzt file people can open and change themselves.....makes pedal like that a must (for people not wanting to involve Windows or Bomes).

jerm :cool:

Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests