NorthwestTekno -- The Northwest Electronic Music Community
calendar calendar members about chat donate faq
Welcome to the new NorthwestTekno! Click here for more info on what's new!

  
Go Back   NorthwestTekno > The Culture > Music > Production

Reply
 
Thread Tools Rate Thread Display Modes

Midi controller to keystroke using Midipipe
  #1  
Old 04-28-2012
Bucktopher is offline
Registered User
 
Join Date: Aug 2011
Posts: 7
Bucktopher is on a distinguished road
Default Midi controller to keystroke using Midipipe

The pipe's function is to activate Live, and to keystroke either command-d (duplicate) or command-z (undo) via button presses on my Nanokontol.

The main pipe setup is a "midi in" (with the controller I'm using chosen) and an applescript trigger:

on runme(message)
tell application "System Events"
tell application "Live" to activate
if (item 2 of message = 69) and (item 3 of message > 0) then tell application "System Events" to keystroke "d" using command down
if (item 2 of message = 72) and (item 3 of message > 0) then tell application "System Events" to keystroke "z" using command down
end tell
end runme



It would be nice if there was more instruction available on how to script this type of action.

Hope this helps anyone else trying to do this type of thing.

-Bucktopher
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -8. The time now is 07:19 AM.

Hosting by Dreamhost.
Design by eXtremepixels.
Powered by vBulletin® Version 3.8.2. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
All posts are copyright © the original authors. All rights reserved worldwide. nwtekno.org accepts no responsibility for the content posted by its members. Reproduction elsewhere without the express consent of the original author is strictly prohibited.