My first max piece!

    Nov 10 2013 | 4:45 pm
    Hi all,
    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?
    Thank you!

    • Nov 11 2013 | 12:13 am
      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.
    • Nov 11 2013 | 8:19 pm
      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.
      Thank you!