I am writing a program which takes notes from a keyboard as the input, (just numbers, 1 to 88) and decides which notes are played by which hand. There are a lot of variables, for example, the position of the note(the higher it is the more chance it will be played by a right hand and vice versa), the amount of notes played by the same hand next to the target note, etc.
If I have some experimental data and analysed it, what is the way to fit an equation ( a curve) to it? The most I've done of the sort is fitting a line to a set of data, so I am a bit lost. Also, as I understand, if there are two (and there probably will be more) variables than the plot is 3-dimentional , so is there still a way to do it if I have a lot of variables. I am a bit of a noob in statistics so links with detailed description etc will be very much appreciated.
Thanks.
EDIT:
Ok, here is a little more information. For now let's take two variables, the height of the note and the number of notes played by the same hand near the given note (a radius of one bar). If the note is number 40 (Middle C) or higher it is more likely to be played by the right hand, and if the note is below 40 it is more likely to be played by the left one. I think a sigmoid function with a centre at 40 would describe it pretty well, with the shape being slightly different depending on the second variable. I have a score of around 1000 notes, each note has information about the hand it is played by, its height and the number of notes played by the same hand in the radius of 1 bar.
ANOTHER EDIT:
OK, here is a little more information about the nature of data I have and the purpose of all this:
The purpose of the program is not analytical, but practical. A player plays a MIDI keyboard and records a MIDI file. This is basically a file containing digital descriptions of every note he played - its height, time at which it was played, length, and velocity with which it was hit. I have no information which note was played by which hand. However, I can have a good guess using the information I do know about the notes. All I need is formula describing probability of each note being played by either a left hand or a right one.
The note is played by either left of right hand, so the output I am after is Left or Right, it is a bit like a coin flip problem, only this one depends on many variables rather than just 50/50.
Please let me know if you need any more information.
Thanks.