Whoa! Nice! It worked very well here. <br>Although sometimes I have to press the &quot;Go&quot; button more than once to get different results, even when I change the paramethers.<br>Will do some more testing.<br>I need some time to understand this patch but it looks awesome.<br>
<br><div class="gmail_quote">2011/3/4 Matt Barber <span dir="ltr">&lt;<a href="mailto:brbrofsvl@gmail.com">brbrofsvl@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I attached an example that will do something like what you want, using list abs.<br>
<br>
Without much trouble you could make this into an abstraction.<br>
<br>
It follows the first solution someone posted -- pick a bunch of random<br>
numbers and then scale them so the total equals the target. I added a<br>
few things, though -- it also rounds the numbers to the nearest<br>
subdivision that you specify, and it goes through the list and moves<br>
anything lower than the min or higher than the max duration to the min<br>
or max, compensating elsewhere, until all the durations are in range.<br>
I capped the number of searches for outliers to 1000, but you could<br>
change that or get rid of it as need be.<br>
<br>
I haven&#39;t tested this thoroughly, so let me know.<br>
<font color="#888888"><br>
MB<br>
</font><div class="im"><br>
<br>
<br>
&gt;&gt; Note that if you sum 1+2+3+4+5+6+7+8+9+10, that&#39;s already 55. How many time<br>
&gt;&gt; units do you have per 48 seconds ? (do you have a base tempo at all ?)<br>
&gt;&gt;<br>
&gt;&gt; And then what do you want the distribution to be like ? Is there any<br>
&gt;&gt; maximum duration of a chord, minimum duration of a chord, etc ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
</div><div class="im">&gt; It&#39;s funny that you said that. I slept over this problem and yes, I want the<br>
</div><div><div></div><div class="h5">&gt; chords to have a minimun and maximun duration. They don&#39;t need to bee all of<br>
&gt; different durations, the important is this section of the piece to sound<br>
&gt; like random/chaotic durations, and as we know random numbers (or durations?)<br>
&gt; sometimes don&#39;t look random. I will even make this again for the attacks of<br>
&gt; individual notes of the chords so the section will have a truly chaotic<br>
&gt; feeling.<br>
&gt; And by the way the tempo of this section is quarter = 60 so it&#39;s very easy<br>
&gt; to do this. (thank you Mathieu for making me think about it more deeply)<br>
&gt;<br>
&gt; Thank you guys for the other answers. This really helps.<br>
&gt;<br>
&gt; Caio Barros<br>
</div></div></blockquote></div><br>