Probability/Statistics of Pitch and Interval

A cozy place to hang out and discuss all things music.

Moderators: mdc, admin, TAXIstaff

gongchime
Committed Musician
Committed Musician
Posts: 913
Joined: Mon Jan 12, 2004 2:42 pm
Gender: Male
Location: Indonesia

Probability/Statistics of Pitch and Interval

Post by gongchime »

I posted this on 3 google pages of math forums hoping someone will help me come up with the answer. If you think you're good at probability and statistics maybe you could give some of it a shot. I have two charts. One chart has the likelihood that a musical pitch will occur in "good" western melodies. Each is weighted with a number. In the key of C Major the notes are weighted like this;C=5, D=3.5, E=2, F=4, G=4.5, A=3.5, B=4.I have another chart with the frequency of intervals that occur within "good" western melodies. They are weighted like this;Unison=5 (the next note is the same as the previous note)Minor Second=5.5Major Second=15Minor Third=2.5Major Third=2Perfect Fourth=3Tritone=0Perfect Fifth=1.5Minor Sixth=.125Major Sixth=.25Minor Seventh=.25Major Seventh=.25Octave=1I want to combine this data to find out the likelihood of all the possible combinations of motion. I'm looking for the answer to all of the questions below;What is the likelihood that C will move to D? The answer would be expressed something like C has 24 chances out of 123 to move to D.What is the likelihood that C will move to the E above?what is the likelihood that C will move to the E below?What is the likelihood that Middle C will move to F above? to the F below? to G above? to G below? to A above? to A below? to B above, to B below? to the octave above to the octave below?but we're not finished.What is the likelihood that D will move to the C below?What is the likelihood that D will move to the C above? What is the likelihood that D will stay on D?What is the likelihood that D will move to E above? to the E below?to F above, to the F below? to G above, to the G below? to A above, to the A below, to B above, to B below?still not finished.What is the likelihood that E will move to C the below? to the C above?What is the likelihood that E will move to D above? to D below?What is the likelihood that E will stay on E? Move to F above? F below? G above? G below, A above? A below? B above? B below? Octave above? Octave below? Etc...__________________________________________________The difficulty I'm having with the question is correctly graphing the problem. I've tried several times and each time I notice something I missed before in order to get the right answer. Especially confusing to me is the Frequency of notes graph. I thought I could put the name of the pitches on the left hand side of the page with D above at the bottom since the Major second was the most important interval then mark up lines on the graph paper the appropriate number (15). Then at the top of that write the word Unison since that is the second most important interval continuing on up in that manner. On the right hand side of the page I wrote C on the bottom across from the first item in the other graph. Then I counted up the appropriate number of lines. then wrote the next two common pitches E and G. continuing up like that. Then I drew a line between C the pitch to the unison interval in the other graph looking for the point in-between that would show the likelihood that the pitch would stay on the same pitch based on what pitch you're on in a melody? What I want to know is when I'm looking at the melody I'm writing and I'm in the middle of writing it and, for example, I'm on the note D, then what is the likelihood that D will move to any other note?It has the greatest chance of going back to C since D is a less important pitch and since the motion of the Major Second is more important than the motion repeating it again. But I want to know the exact percentage of every possibility. Tall order. I know. But it's fun and interesting. At least to psycho's like me. Is there another deranged individual in the house? We can be friends but only if you agree to let me eat you.
User avatar
mojobone
King of the World
King of the World
Posts: 11843
Joined: Sat May 17, 2008 11:20 pm
Gender: Male
Location: Up in Indiana, where the tall corn grows

Re: Probability/Statistics of Pitch and Interval l

Post by mojobone »

You're short a note, Gong:"What is the likelihood that will will move to the C above?" Correct that and I'll copypaste yer dilemma to some meganerdy forums fer ya.
The Straight Stuff; Roots, Rock & Soul

http://twangfu.wordpress.com
http://twitter.com/mojo_bone
zoom
Committed Musician
Committed Musician
Posts: 500
Joined: Fri May 30, 2008 2:23 pm
Location: Minneapolis, MN

Re: Probability/Statistics of Pitch and Interval l

Post by zoom »

Hey Gong... for a right brainer like me, I can see WHAT you're doing, but I just don't see exactly WHY (although it is interesting to know that someone is doing it, as long as I don't have to get my hands dirty -- hehe). I really like and get music theory, and I understand perfectly well that math and music have a lot in common... but it's where they separate themselves that's intriguing to me. And, IMHO, sometimes you need to just let go of formulas, probabilities, and analysis and just play... and play what feels right. Now.... to get you going on a new track with this original post, as long as you're doing this anyway... have you thought about adding in total note durations into your analysis? In other words, weighting a whole note C way more than a 1/16 note F? I think that would be more helpful, and give you more insight to how songs move between good landing points (and how those landing points relate to one another), and let the little passing notes take care of themselves. And hopefully what I wrote made sense...Just a thought!
User avatar
stevebarden
Serious Musician
Serious Musician
Posts: 1172
Joined: Fri May 16, 2008 3:59 pm
Gender: Male
Location: La Califusa

Re: Probability/Statistics of Pitch and Interval l

Post by stevebarden »

Jun 19, 2008, 10:52am, zoom wrote:... have you thought about adding in total note durations into your analysis? In other words, weighting a whole note C way more than a 1/16 note F? I think that would be more helpful, and give you more insight to how songs move between good landing points (and how those landing points relate to one another), and let the little passing notes take care of themselves. What an excellent point! The shorter the duration I would think means moving in a scalar fashion (C, D, E, F, G) as opposed to jumping around wide intervals. "Over the Rainbow" jumps an octave on the first two notes, but the duration is a whole note.I think your graph is going to get more complex!Steve
gongchime
Committed Musician
Committed Musician
Posts: 913
Joined: Mon Jan 12, 2004 2:42 pm
Gender: Male
Location: Indonesia

Re: Probability/Statistics of Pitch and Interval l

Post by gongchime »

Yeah, note durations are very relevant. I'm not ready for that just yet but I know if paradox doesn't gecha, complexity will!!! I'm on this whole Expert Systems kick so that's the reason why I'm doing it but without the computer automatically making the computations. Only on paper. I REALLY, REALLY want to understand what the heck they do when they're doing that. No better way than to ask questions and then to try to do it yourself. First doing only the pitch method and then doing only the interval method was interesting. The pitch method produces more angular melodies which could be good for verses. The interval method produces smoother lines which could be good for Choruses. Now combining them for more consistency and closeness to what humans actually do. The rhythm is one of the final steps. Not there yet though.Anyway, here is one answer to the question based on input of several thousand tunes in the Medieval Monophonic style. Quite good stuff really. It had to be, there were no chords. It's presented as a transition table going from any pitch to any other pitch. The forum is messing up the alignment but you can see there were 3,282 instances of C going to C and only 1 instance of C going to C# and 2,661 instances of C going to D. This is very helpful. .....C......C# D....E-.E.....F....F#.G....A-.A..B-....B |-------------------------------------------------------------------------C | 3282 1 2661 13 2303 180 8 1510 0 682 106 1537C# | 2 0 17 0 3 0 0 0 0 0 0 0D | 3892 17 2694 32 3172 682 5 1000 0 183 8 423E- | 9 0 35 15 0 27 0 6 0 0 0 0E | 1639 4 4585 0 3365 2494 30 2978 0 235 8 15F | 44 0 1176 18 3843 1526 0 1637 2 488 11 117F# | 1 0 7 0 11 2 19 107 0 12 0 0G | 2564 0 499 11 2766 3653 86 4854 4 1658 60 225A- | 0 0 0 0 0 3 0 6 0 2 0 0A | 227 0 97 0 36 250 9 3016 2 955 29 427B- | 51 0 7 3 36 6 0 67 3 55 72 6B | 1369 0 349 0 10 22 2 214 0 781 8 258
billg
Serious Musician
Serious Musician
Posts: 2524
Joined: Fri Jan 12, 2007 6:23 pm
Gender: Male

Re: Probability/Statistics of Pitch and Interval l

Post by billg »

Huh?
User avatar
ggalen
Serious Musician
Serious Musician
Posts: 1427
Joined: Mon Oct 09, 2006 6:24 pm
Gender: Male
Location: USA

Re: Probability/Statistics of Pitch and Interval l

Post by ggalen »

Greg,If you do find a numerical relationship here so that one could generate only good and great songs, it will be cool indeed.When you are done figuring out the mathematical basis for great melody and emotional music, it would be cool to see the mathematical solution to romance and love.
User avatar
mewman
Committed Musician
Committed Musician
Posts: 845
Joined: Sun Nov 18, 2007 11:28 pm
Gender: Male
Location: Montreal, Quebec

Re: Probability/Statistics of Pitch and Interval l

Post by mewman »

Hi gongchimePersonally, I believe it would be more accurate to view individual notes and their tendencies toward resolution in context before trying to make any predictions. To strip them of any associations and try to graph their likelihood to resolve in one direction or another is to ignore the realities of tonality. What is the fundamental? What is the desired affect? What are the associated images or movements? How much does the gig pay?... these are all valid and important questions that have to be answered before one can answer your questions of which direction a C, or any other pitch, will go in. How was the original data you are using to graph the likelihoods derived? Just based on my understanding of the overtone system, which admittedly is limited, I'm not sure I would agree with some of the tendencies as listed.A friend of mine studied with a composer at NYU who had written a textbook in which he basically crunched numbers associated to light frequencies in order to understand the associations between color and sound. The resulting information made for great intellectual banter, but was pretty useless as a source of inspiration for composing lyrical works. Yours is obviously a very inquisitive mind. Good luck with all this!!mewman
mrsunshine
Getting Busy
Getting Busy
Posts: 115
Joined: Mon Jun 16, 2008 5:34 pm
Gender: Male
Location: Central Kentucky

Re: Probability/Statistics of Pitch and Interval l

Post by mrsunshine »

...what is the probability that I'll move in the direction of Zzzz....(sorry, jus kiddin' )
Aren't the 'good things that come to those who wait' just the leftovers from the people that got there first?
gongchime
Committed Musician
Committed Musician
Posts: 913
Joined: Mon Jan 12, 2004 2:42 pm
Gender: Male
Location: Indonesia

Re: Probability/Statistics of Pitch and Interval l

Post by gongchime »

The mathemtical solution to romance and love has already been solved. Get her email or phone number and give her yours. Don't call her for about 3 days after. Hopefully she calls you first. When you call her don't ask to go on a date. Be the first one to hang up. Don't try to keep her on forever. She needs to know you have a life even if you don't. Meet for coffee. She can pay. Yes, she can bring her friends but not guys. Be the first one to leave. Places to go people to kill. Next time, sex. Don't "date" people who aren't sexing you. Otherwise, NEXT!!! Mewman, first the lower end questions THEN the higher end questions. Based on my understanding of VOICE-LEADING rules, not the overtone series which is mostly BS, the data fits perfectly. C is the most important pitch so it's tendency is to stay right where it is. D is not a part of the CMajor triad so it will want to go to one of the members. It's two most closest members are E and C. C is more important than E so therefore it's more likely to go to C than to E. Also, C is more likely to go to D than to E because D is closer. Ever hear of voice-leading? This data represents real music not fractals and markov chains albeit in a slightly abstract form. These systems are already doing real time jazz improvisation with real musicans in real time. You can put in fractals and second order markov chains to intialize the system which creates competent results but is not compelling. But if you put in good music and then perform transformations on them, the results are much better. If the generators are good then there's no need to test for fitness. So the jazz pianist, plays a lick, the computer listens, performs a lot of transformations on it in microseconds and plays it back on cue. It can also mix in licks frfom a database of 1,000 jazz licks as well as playback the transformations of those.If these systems are able to convince listeners that they're expert humans, if they can't see it's being made by a computer (which is the case), then perhaps it's not B.S.. And if the people programming the systems are able to teach something as dumb as a computer to create good music, then maybe they can teach people as dumb as us a thing or two. Maybe those computer programmers are better to listen to than our music composition professors. We aint the Beatles.I already said that it was collected from 1,000s of monophonic melodies so it represents real music by real people. So, why ask how it was collected when the answer is right there in front of you. If you don't read what you're commenting on, then why should we listen?What my data doesn't show is the probability that a note moves above or below. What percentage of movement from C goes to the D below not to the D above? Blah blah blah...If the overtone series' theories were correct then there shouldn't be any Mainland Southeast Asian music tuned to 7 equal steps. Or African and Indonesian music tuned to 5 equal or 9 equal steps. But there is.