Guitar frets notes map with Codea

Couldn’t find a pic where standard tuned guitar frets would be displayed as black+white piano keys. So I’ve coded a little script/app for that using Codea (IDE+runtime for coding for iPad using Lua):

This is 7-string (electric) guitar in Standard tuning (i.e. just like 6-string + 1 additional string for lower notes), ’cause I have a 7-string one – so I needed that additional string too.

Teh Code:

Yep, it also produces sounds when keys/frets are touched (with multitouch). Codea is fun.



%~dp0\groovysh " File(\"%1\").text);"

Or is there a better way to run groovysh with script file as parameter?