Hi guys, For a full list showing how patterns are chosen from a style, see this white paper. As you noticed, longest pattern (which would arguably be the 'strongest', rather than repeating a shorter pattern - though there are certainly cases where I'd like it to pick randomly from *all* pattern lengths, which Scott's solution accomplishes) definitely takes priority. http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/dnmusi= c /html/dmp_styles.asp See the topic 'Pick a Pattern, Any Pattern'. -Scott -----Original Message----- From: Scott Morgan [mailto:scott@xxxxxxxxxxxxxxxxx]=20 Sent: Sunday, November 03, 2002 11:57 PM To: directmusic@xxxxxxxxxxxxx Subject: [directmusic] Re: Intro patterns of different lengths Thanks Bjorn, I've done this to remedy the situation. I made three new segments of the lengths of their matching patterns. I pick one as a segment transition at random, seed=3Drand (30) if seed < 10 then Groove1.play ,,Grv1Intro1Bar elseif seed < 20 then Groove1.play ,,Grv1Intro4Bar else Groove1.play ,,Grv1Intro8Bar end if Scripting is my savior once again =3D-) The segments play the correct patterns because the engine wants to play a pattern that matches the segment's length. -Scott Morgan http://Morganstudios.com ----- Original Message ----- From: "Bjorn Lynne" <bjorn.lynne@xxxxxxxxxx> To: <directmusic@xxxxxxxxxxxxx> Sent: Monday, November 04, 2002 3:59 AM Subject: [directmusic] Re: Intro patterns of different lengths > > Hi Scott, > > I had this problem before, but with regular patterns. I wrote patterns of > different lengths and thought that the segments would pick at random from > them. But I noticed that the longest patterns were always selected when > there was enough room left for them in the segments. The shorter ones were > only selected when the segment was coming up towards the end, and there was > not enough room left for the longer ones. > > So if you want your patterns to be treated as "equal" by the segment, they > must all be the same length. > > Cheers, > -- > Bjorn Lynne - Composer, Producer, Sound Designer > Main music site: www.lynnemusic.com > > > > > ----- Original Message ----- > From: "Scott Morgan" <scott@xxxxxxxxxxxxxxxxx> > To: <directmusic@xxxxxxxxxxxxx> > Sent: Monday, November 04, 2002 6:16 AM > Subject: [directmusic] Intro patterns of different lengths > > > > Anyone know a simple way to get intro patterns of different lengths to > play? It seems to always play the longest one. > > > > I really don't want to have to do fancy scripting to get what I want, but > I will if need be. > > > > -Scott Morgan > > http://Morganstudios.com > > > > > > >