Log In  
Follow
Rbon

Midi Controllers

Hey all! Long time user, first time poster, yada yada...

The problem

I'm really slow at typing out notes using my computer keyboard, so I want to use my midi controller to speed up the process of inputting notes into Picotron's tracker.

My solution

I wrote up a quick shell script to allow me to use my midi controller within Picotron's (and by extension Pico-8's) tracker. You can run it in the background, and it just looks for input from my midi controller and simulates the appropriate keypress to input the note in the tracker.
I made it following the advice from this Stack Exchange thread. It requires a unix-like shell, as well as aseqdump and xdotool, to work.

#!/usr/bin/env sh
aseqdump -p "YOUR_MIDI_DEVICE_HERE" | \
while IFS=" ," read src ev1 ev2 ch label1 data1 label2 data2 rest; do
    case "$ev1 $ev2 $data1" in
        "Note on 48" ) xdotool type z ;;

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=155389#p)
2
2 comments