
In other words, is there an industry standard that establishes a direct relationship between each MIDI note and a specific frequency? i.e. I want to find out if the frequency triggered by a single MIDI event is always the same?įor instance, if I add an E1 event on the key editor: Will this ALWAYS trigger a note with an 82Hz fundamental, no matter the virtual instrument that I load? (please note that Cubase’s middle C is C3, so this means that C3=261Hz) Define an array with those values and index into it to get what should be added to the first note.I’m analyzing the Score Editor and I have a question. As long as you know the first note you can get the others by adding 0, 2, 4, 5, 7, 9, 11 or 12 to it. each with its own set of notes for the octaves across the keyboard, and a third pot to select the scale.įor the major scales listed in post #11 there is no need to store all the notes in arrays. Then have multiple arrays, each representing a different scale - AMaj, AMin, A#Maj, A#Min, A7Maj, etc. Then if encoder/potentiometer reading1 = 2, for 2nd scale, (altho in case 2nd Octave)Įncoder/pot reading2 = 4 for 4th note of scale, sendToMidi = CMajor // plays 4th note of 2nd scale These would also be the 13 low notes on a Piano (assuming the lowest note is a C, I don't know what it is really) So I was envisioning you would have 2 readings, one that is a number from 1 to 13 representing the note in a scale, Or is there a better or easier way to do that (Choose musical scale from 0 - 19 and play the corresponding notes via a potentiometer)? Would this work if I wrote if-orders for all the other scales (like I did it wit A Major -> Amaj0)? Serial.write((byte)127) // Maximum Velocity (loud) Serial.write((byte)0x91) // NoteOn, Channel 1 I'll add a bunch of comments: void loop()
C3 MIDI NOTE NUMBER CODE

I guess that the same methods (switch statement or arrays, as mentioned in my first question) can be used to send and write the played note on the LC-display, right?.What is the best or easiest way to write this into the programme - as two options (switch statement or arrays) were mentioned!?Ģ)What are the Midi-codes for special notes (for example: If the potentiometer value is between 0 and 64 then play note c (as if hitting the c key on a midi keyboard)?.This seems to be exactly what I'm looking for:) Or, use an array of structs to choose what to do when the interval is n.

Then the action could be chosen by a switch statement. The interval could be determined by dividing the potentiometer value by 16. I've seen in a tutorial that they transfered the poti-scale (0-1023) to a midi-scale (0-127) -> see map code below.ĬontrollerValue = map(potiValue,0,1023,0,127) Why does it not produce values from 0 to 1023 like any other potentiometer?!?
