Midi to trigger ASCII in a broswer

Tom  Peel 's icon

Hello,

I'd like some help. I'd like to use a midi keyboard to play www.patatap.com.

I can use MIDI to trigger 'itoa' just fine, I'd like to know how I can send that ASCII output to a browser or any other application for that matter.

And help would be appreciated.

Thanks!

Source Audio's icon

Midi runs in background.
All You need is to execute keystrokes, depending on midi input.
Frontmost application will receive simulated key strokes.
You did not mention which OS You are using,
but 11strokes2 external works on both platforms.

Just assign each midi note a keystroke.

http://www.11olsen.de/code/max-objects/11strokes

Tom  Peel 's icon

Thanks source audio this looks promising.
Currently I've got this now working with 11strokes2 but you have to add a delay and click back and forth between the max window and the browser is there anything I'm missing?

I'm using OSX 10.15.3

Source Audio's icon

no need for any delay or to switch between apps.
Max with midi input should be in background,
and keystrokes will be received in frontmost app.
What is a range of that midi keyboard ?
keys a - z and 0 - 9 are 47 - 82
so one could offset incoming midi notes to match that.
For example from C2 (midi number 36) to B4 (midi number 71)
Or simply transpose lowest key to 47.

Max Patch
Copy patch and select New From Clipboard in Max.


Tom  Peel 's icon

Great sorted it. I'm actually using the Bitalino R-iot chip to trigger midi over a network. Check it out. Thanks for your help! https://twitter.com/imtompeel/status/1242449259124973569?s=20

Source Audio's icon

Great that you got it working.
But can't that board send key strokes directly to computer,
instead of midi ?

Tom  Peel 's icon

Sorry yes thats what I meant.