@cfry So MIDI notes range is 0 to 127 that is 7 binary digits. Now you can group 4 binary digits to create 1 hexadecimal digit EX: 0101 = 5 in hexadecimal, 1111 = F in hexadecimal so you can have a byte (8 bits) into 2 hexadecimal bits. EX : 0001 1010 this in hexadecimal is : 1A but for MIDI you need just 7 bits so you can always set the MSB last binary digit (left most bit) to 0 and you have an encoding in hexadecimal for your MIDI. So if you have your midi in 8 bits binary you can use just 2 hexadecimal digits. So 127 in decimal would be 01111111 in binary (last bit on the left keept on 0) now you convert 0111 1111 to hexadecimal => 7E in hexadecimal. Hexadecimal table for 4bit binary number : 0000 (0),0001(1),0010(2),0011(3),0100(4),0101(5),0110(6),0111(7),1000(8),1001(9),1010(A),1011(B),1100(C),1101(D),1110(E),1111(F)
How would this look visually?
The "midi" is created inside PD out of Arduino data (digital, not analog). Hopefully I can make good enough synthesis inside Pd in order to not have to use external soft synths. So the "midi" is just a way for me to handle the note generation inside Pd in an easy way. But really it is just data. The information I draw from the Arduino is on time and off time from the digital switches. In Pd I debounce (but I will transfer this process to analog eventually) and generate different pitches and timbres.
@Johnny-Mauser Thanks, that worked well!
@EEight Thank you, that is very interesting and I could probably get a few ideas from it. Problem is that it is too locked for me, I need a more flexible solution.
My reason for this is:
for me to analyse what is going on and why it sounds good,
during an upcoming exhibition I am considering having some realtime data like this being projected in a room next to the actual installation.