Forums > MaxMSP

ascii output to Live

June 11, 2007 | 9:17 am

did a quick search, didnt find anything…
Noob here, really enjoying MAX… Basically im trying to use MAX to replace Bomes Midi Translator. So Max will be taking in a MIDI note or cc and send out an ascii character(s) to Ableton Live. Does anyone know how this could be done, or Could anyone point me in the direction of an object that can output ascii characters to Live. Thanks in advance…


June 11, 2007 | 10:49 am

On 11 juin 07, at 11:17, !include wrote:

> did a quick search, didnt find anything…
> Noob here, really enjoying MAX… Basically im trying to use MAX to
> replace Bomes Midi Translator. So Max will be taking in a MIDI note or
> cc and send out an ascii character(s) to Ableton Live. Does anyone
> know how this could be done, or Could anyone point me in the direction
> of an object that can output ascii characters to Live. Thanks in
> advance…

On OSX, it is possible with Applescript, I recently did a small Max
patch to trig an "undo" in Live with a MIDI pedal:

osascript -e ‘tell application ""System Events"" to tell process "Live"
to keystroke "z" using {command down}’

But Bomes Midi Translator is for windows, so I suppose you want a
windows solution.

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://users.skynet.be/crfmw/max


June 11, 2007 | 11:01 am

Hello Patrick,

May i kindly ask if you want to share this patch?

Best,
Chris

Patrick Delges schrieb:
>
> On 11 juin 07, at 11:17, !include wrote:
>
>> did a quick search, didnt find anything…
>> Noob here, really enjoying MAX… Basically im trying to use MAX to
>> replace Bomes Midi Translator. So Max will be taking in a MIDI note or
>> cc and send out an ascii character(s) to Ableton Live. Does anyone
>> know how this could be done, or Could anyone point me in the direction
>> of an object that can output ascii characters to Live. Thanks in
>> advance…
>
> On OSX, it is possible with Applescript, I recently did a small Max
> patch to trig an "undo" in Live with a MIDI pedal:
>
> osascript -e ‘tell application ""System Events"" to tell process "Live"
> to keystroke "z" using {command down}’
>
> But Bomes Midi Translator is for windows, so I suppose you want a
> windows solution.
>
>
> _____________________________
> Patrick Delges
>
> Centre de Recherches et de Formation Musicales de Wallonie asbl
> http://users.skynet.be/crfmw/max


June 11, 2007 | 12:54 pm

Still the best thing seems to be to have Max send MIDI to your MIDI translator program. On Mac, I’ve been doing the same thing with OSCulator, but sending the data from Max via OSC. OSCulator then sends keystrokes to my choice of application. That is, until someone creates an object to send keystrokes to another app.

Tim


June 11, 2007 | 1:20 pm


June 11, 2007 | 8:46 pm

Patrick-

sorry if im not too MAX savy yet, but i tried copying your code into a max patcher and couldnt paste, im using the current max demo, on os x tiger. Im mostly using windows for audio these days, but id really like to switch over to OSX, maybe this will help me make the transition. Thanks for the assistane and the code.


June 12, 2007 | 7:38 am

On 11 juin 07, at 22:46, !include wrote:

> sorry if im not too MAX savy yet, but i tried copying your code into a
> max patcher and couldnt paste, im using the current max demo, on os x
> tiger.

I just tried to paste the code I sent to this list, and it works for me.
You may try to paste in a text editor (TextWrangler for instance), save
and open the file in Max.

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://users.skynet.be/crfmw/max


June 12, 2007 | 9:53 am

Quote: Patrick Delges wrote on Tue, 12 June 2007 01:38
—————————————————-
>
> On 11 juin 07, at 22:46, !include wrote:
>
> > sorry if im not too MAX savy yet, but i tried copying your code into a
> > max patcher and couldnt paste, im using the current max demo, on os x
> > tiger.
>
> I just tried to paste the code I sent to this list, and it works for me.
> You may try to paste in a text editor (TextWrangler for instance), save
> and open the file in Max.
>
> _____________________________
> Patrick Delges
>
> Centre de Recherches et de Formation Musicales de Wallonie asbl
> http://users.skynet.be/crfmw/max
>
>
—————————————————-

wierd, using camino max wouldnt take the code, switched over to safari and it works fine. thanks again.

Also, thanks to all the others who replied.

Peace,
Mike


January 15, 2014 | 7:23 am

Hello,

There is no more link on this page to your patch, Patrick (post #106521 empty).
Could you please tell me if I can find it somewhere ? I would like to send keystrokes to applications, and it seems that your work do it. (I’m on OSX).

Thank you !


January 15, 2014 | 8:02 am

A lot of posts disappeared form the forum… always the one you need :-)

I suppose this is what I posted:

<code>

– Pasted Max Patch, click to expand. –

</code>

You’ll need the shell object.

If you’re under X.9, maybe you’ll have to change some settings in the Security&Privacy/Privacy/Accessibility pref pane.
I strangely didn’t need to – maybe I found a security hole.
midiStroke can be if some use too.


January 16, 2014 | 1:45 am

Thanks a lot Patrick !
That’s it.

Thanks for midistroke also :)

Actually what I’m trying to do is a "background" Max patch (combined to Mira), allowing me to make basic operations on my OS and on some software, such as "Zoom In/Out in Word" or in Max ; like a remote control for most commonly used software.

Works perfect for Word !

But for Max, I always have a quick "white blinking screen" when I press the "Zoom In" button in my patch : Zoom is made, then a blink (or blink before the zoom… :) anyway, what I want is made, with an extra blink. This blink is not there for Word).
Do you know why this blink appears, and if it is possible to remove it ?

Here is the code generating the blink.

Thanks !


Viewing 11 posts - 1 through 11 (of 11 total)