My first max piece!
Here is my end-goal for this project that I am working on for a class in school.
generate two tone rows, in which the interval between each pair of notes gets calculated. This calculation reaches different banks of samples determined by the interval distance. so for example,
A C D# E Gb C#
D F F# Bb Eb C
the first interval is is a perfect fourth or perfect fifth. I am trying to get the program to then reach a collection of samples labeled "perfect 4th" and "perfect 5th" and trigger a random sample from those folders.
So far I have two tone rows that created.
as the file uploaded shows, I have 12 random notes being created. once the twelve notes are generated, they loop with a metronome indefinitely.
My next step: I am trying to designate samples to different "folders" that these notes can access. but first I need to calculate the interval difference between the notes being generated.
What do I need to do for the my next step?
If your looking for 12 unique pitches replace the [random 128] in your patch with [urn 12].
Here’s one way to get the interval difference between pitches in the same row.
<code>-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1390.3oc0a1rbihCDG+r8SAEUs27Lk9.IA6s84XqsRgs0lvL1fKPNw6L07tu HIXLIABJwhFxg3TFCzM+T2+6VR1+b8pvsEWjUgA+YveGrZ0OWuZk4P5Crp48 qBOldY2gzJyoEle93VYY3F6Gks2bvhse6Kzj1CdJsL8nTIKuSlmt8fTeJnlO q9xyxOHUlaFt4f+aQtJu9RL2q+pLK8P30Su3rp87IsFnTVIyUoprh76Jk6T1 G.r.8Uzl.Fgp+Gp4kf+oiUpx9gwJXxWa8H68W8emj16RXVtJbSP31z76C+8E eJUs6gr76el43cLGyXOhwf5K4WqWqeYysh0HzriUTDnXEi7HVkOUCw1Gak7h wHg+QsU5i03v93I4cxSra7DgtYd5BGslgJfjiDP3n.ABGaRy8BGOJqpRuW9J PlkuWdoORRgfjQVPx32DHeSJFw6XBZh9Ubrmg3orZy1GDifLsdJoXaNcCF4S BFqSHjkOdkBcIICDRxAfjhtjL51BHGtmHwbW7VP4PV7VPi.nmHZ7biUNrsZx 4wyUOQTNDo7bt.hZ4sbbF5Ih52hP9hHsIr9gHCkvRvyuNnYjORPfTGrwb2XB 66soQBH86vQw9Hk8syWeVOU.21HQ.BFaCQl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g.3jsboaGBaY4O5UVEHoP27G3lLAYQoLico4T3BlwQKKwGrKZyFmFFwYLwU +AH93xJYfoKL+grrV4IBEV+YrYaQ.L+xE77QGtr6aQ5oSOJKqZtmFOI7X52J J0ukuw71rb6aM6sRXo7wr1y2djzxcOjoj6TmKs6OykXd3Zsc905+GxYPa0C -----------end_max5_patcher-----------
I revised the patch so now I get the difference between the data coming out of row 2 and row 1. I charted out 0-127 through what interval they would be regardless of octave. I’m also trying to make half step=Major7s, whole steps = dom 7s, Aug6=Major 3rd, etc.
So the categories I have are
halfstep 1, 11, 13, 23, 25, 35, 47, 49, 59, etc and negative equivalents
whole step 2, 10, 14, 22, 26, 34, 38, 46, 50, etc and negative equivalents
Minor3 3, 9, 15, 21, 27, 33, 39, 45, 51, etc and negative equivalents
Major3 4, 8, 16, 20, 28, 32, 40, 44, 52, 56, 64, 68, 76, etc and negative equivalents
Perfect4 5, 17, 29, 41, 53, 65, 77, 89, etc and negative equivalents
Augmented4 6, 18, 30, 42, 54, 66, 78, etc and negative equivalents
Perfect5 7, 19, 31, 43, 55, 67, 79 etc and negative equivalents
Unison 0, 12, 24, 36, 48, 60 etc and negative equivalents
now time to assign these numbers to folders. after they are assigned, I am trying to have every bang trigger the next interval difference in the tone rows via a metro which will be triggering different samples from the different category folders.
does this make sense? Let me know if you want to help but I am not being clear! Here’s the patch so far as an attachment.
Forums > MaxMSP