It is currently Tue Jun 27, 2017 11:56 am
   
Text Size

Zagg Bluetooth Numeric Keypad to MIDI notes hack

Discussion of Digital Performer use, optimization, tips and techniques on MacOS.

Moderators: James Steele, Shooshie

Forum rules
This forum is for most discussion related to the use and optimization of Digital Performer [MacOS] and plug-ins as well as tips and techniques. It is NOT for troubleshooting technical issues, complaints, feature requests, or "Comparative DAW 101."

Zagg Bluetooth Numeric Keypad to MIDI notes hack

Postby stublito » Tue May 16, 2017 12:15 pm

Thought this would be quite useful. I have a Zagg Bluetooth numeric keypad, small rechargeable. I thought it would be useful to turn stuff on and off in DP.

The little app MIDI Keys changes keystrokes to MIDI notes, but only the QWERTY series. BUT, I found that if you CTL click on the App and show package contents, in the Resources folder is the KeyMaps.plist(!).

Just change the first group of keycodes. You can find the numpad keycodes on the net.

When you re-open MIDI Keys, the characters on the piano keyboard will have changed to the numpad characters. Excellent!

Just add MIDI Keys to your startup items and auto hide. Enjoy.

Stublito
stublito
 
Posts: 15
Joined: Tue Feb 09, 2010 2:03 pm
Primary DAW OS: Unspecified

Re: Zagg Bluetooth Numeric Keypad to MIDI notes hack

Postby stubbsonic » Tue May 16, 2017 12:58 pm

That's super clever! Way to get in there and make it work.
RMBP (2.6 i7), FF800, OS 10.10.5, DP8, Kontakt, Reaktor, K2661S, K2500RS, iPad4, (also an old sawtooth G4 with a UAD-1 for legacy apps).

http://www.jonstubbsmusic.com
User avatar
stubbsonic
 
Posts: 2308
Joined: Fri Dec 22, 2006 1:56 pm
Primary DAW OS: MacOS

Re: Zagg Bluetooth Numeric Keypad to MIDI notes hack

Postby stublito » Fri May 19, 2017 10:15 am

A couple of things:

MIDIKeys has an option called Global Keys that allows it to relieve keystrokes even when its not the top window (or even if its hidden). There is some interaction between this mode and the Mac keyboard (the delete key does not work, there may be others).

The key to understanding MIDIPipe is that each "pipe" only works on one item at a time, but you can have as many pipes as you want in the list. Make the first pipe, then Duplicate Pipe and change the values for each one.

Here's a snippet of Applescript code to change a note on Ch 1 (144), note (41), of any velocity (>0) in from MIDIKeys to a Ch 1 control change (176), Ctrl 51, Velocity 127:

on runme(message)

if (item 1 of message = 144) and (item 2 of message = 41) and (item 3 of message > 0) then set channel to ((item 1 of message) mod 16)
set (item 1 of message) to (channel + 176)
set (item 2 of message) to (51)
set (item 3 of message) to (127)
return message

end runme

Finally, I took an old Zoom pedal with 9 foot switches on it, and wired in an old Dell USB keyboard. It took some experimentation to figure out the keyboard matrix, but now also have a USB wired foot switch that will put out CCs for live performance.
stublito
 
Posts: 15
Joined: Tue Feb 09, 2010 2:03 pm
Primary DAW OS: Unspecified


Return to Digital Performer [MacOS]: Usage, Techniques, Tips & Optimization

Who is online

Users browsing this forum: Google Adsense [Bot] and 5 guests


Who is online

In total there are 6 users online :: 1 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 151 on Tue Jan 28, 2014 1:07 pm

Users browsing this forum: Google Adsense [Bot] and 5 guests

Login Form