How to replace a Keyboard with a MIDI controller ?
Hi ^^!
I was wondering if there's any way of using a midi controller to simulate the keyboard? The idea is to get into the shortcut of a lights programme (COBALT). Since all the functions of the programme aren't availables in midi, I'd like to cheat and use the controller powered by MAX to send keyboard data.
Exemple:
In COBALT the "R" key will record. So I want to use the MIDI controller 53 to simulate the "R" key from the keyboard, but I don't know how.
thanks everybody!
Rubmara
One option would be to use 11strokes external.
http://www.11olsen.de/code/max-objects/11strokes
This message would execute shift press, r press, r release, shift release:
7 1, 64 1, 64 0, 7 0

But there is allways problem not receiving keystrokes when not being
foreground application.
If You can't get Cobalt to respond properly to Midi ???
than next experiment would be to try OSC which Cobalt
should support.
In Max just use udpsend 127.0.0.1 with port which is set
in Cobalt, and send any messages You want.
Thanks a lot!!
Actually in COBALT there's only a few options in midi, there's a lot of fonctions that aren't available with midi....I can imagine they do this so you cannot use a complex lighting system without buying the light table (which is what I'm trying to do ;)
Your idea seems to be good but I cannot use [11strokes2]. I put it in
/Applications/Max 6.1/Cycling '74/max-externals
And I tried as un abstraction but is steel saying:
"11strokes2: unable to load extern, object has no 'main' function"
I have a MAX 6.1 version, do you think this is the problem?
Thanks again!
Cheers!!!


Using abstraction with same name as external will make external unusable.
I would put a folder with both external and helpfile on desktop
and run help file from there.
Delete it from max externals folder.
Maybe You have problems with unzipped file, privileges ?
Open mxo with right.click or control-click to see package contents.
There You can see if all is ok and if executable has exec rights
(it would be white colored in that case)
Here it runs on both max 6.1.10 and 7.3.5 32/64 bit.
----------
But even if You get it running, I would still suggest using OSC
as that would be much superior to midi or keystrokes.
Midi or whatever to Max -> OSC to Cobalt
You never made any comments on that...
You are right, I'd never talk about OSC, because I don't use it a lot, I'll try I promes!
Anyway, I did everything like you said but is not working......


Don't know what to do....
Thanks a lot!
Hi,
the external is based on SDK 7.1.0. So it may be a problem with your Max version being to old.
But Source Audio reports it running with Max 6.1 that's strange.
Generally you should create a folder where you put these kind of 3rd party externals and add it in "preferences" in Max.
In Max send 11strokes2 to [absolutepath] to find out where Max is looking for the file. But in your case it really seems to find the external but can't initialize it.
I can confirm that 11strokes2 external is working on max 6.1.10 and 7.3.5 ,
on both 32 and 64 bit architectures.
It can't be Max problem, maybe OS problem ?
I am running it on 10.6.8, don't care about sierra or higher...
--------
And make sure that there is no abstraction left somewhere named as external.
Update :
on max 6.1.8 and earlier 11strokes2 external does not load
and produces error You mentioned.
I don't want to suggest to update to max 6.1.10, it could break
some other things You use, you must see about that Yourself.
But aka.keyboard would work on Your Max version, but only 32 bit
Thanks everybody!
I tried with OSC and is the best think to do since all the fonctions are available and it's working correctly! So finally I don't need 11strokes2....
Cheers and thanks a lot.
Rubmara