Cool,
I dont want to distract you on your patch but I must say that filling 800 values to a txt file is rather easy/fast if you work and do calculations with a spreadsheet (libreoffice, exel, etc).
You can copy & paste each octave to the txt.
Salutti,
Lucarda.
Mensaje telepatico asistido por maquinas.
________________________________
From: Brian Robison <brian.c.robison(a)gmail.com>
Sent: Tuesday, June 13, 2017 10:23 PM
To: Lucas Cordiviola
Subject: Re: [PD] Abstraction to translate raw MIDI data from Tonal Plexus keyboard?
Hi, Lucarda--
Thanks for sending!
I have the four-octave version of the keyboard, for a total of 844 keys. As you might imagine, I'm not eager to populate a text table with 844 values (105 values apiece for MIDI channels 5, 7, 9, and 11, and 106 values apiece for MIDI channels 6, 8, 10, and 12). :-)
Also, I feel that because it's worth doing at all, it's worth writing the abstraction so that it will also work for musicians using the six-octave keyboard (1266 keys) and even for those lucky few who have one of the rare eight-octave keyboards (1688 keys).
So, I will continue to work on an abstraction that calculates the correct MIDI note number, and see how much lag those computations generate before I turn to populating a lookup table. But again, thanks for sending! I especially appreciate the explanations in your patch comments.
Muchas gracias,
Brian