Whoa! Nice! It worked very well here. <br>Although sometimes I have to press the "Go" 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"><<a href="mailto:brbrofsvl@gmail.com">brbrofsvl@gmail.com</a>></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't tested this thoroughly, so let me know.<br>
<font color="#888888"><br>
MB<br>
</font><div class="im"><br>
<br>
<br>
>> Note that if you sum 1+2+3+4+5+6+7+8+9+10, that's already 55. How many time<br>
>> units do you have per 48 seconds ? (do you have a base tempo at all ?)<br>
>><br>
>> And then what do you want the distribution to be like ? Is there any<br>
>> maximum duration of a chord, minimum duration of a chord, etc ?<br>
>><br>
>><br>
</div><div class="im">> It's funny that you said that. I slept over this problem and yes, I want the<br>
</div><div><div></div><div class="h5">> chords to have a minimun and maximun duration. They don't need to bee all of<br>
> different durations, the important is this section of the piece to sound<br>
> like random/chaotic durations, and as we know random numbers (or durations?)<br>
> sometimes don't look random. I will even make this again for the attacks of<br>
> individual notes of the chords so the section will have a truly chaotic<br>
> feeling.<br>
> And by the way the tempo of this section is quarter = 60 so it's very easy<br>
> to do this. (thank you Mathieu for making me think about it more deeply)<br>
><br>
> Thank you guys for the other answers. This really helps.<br>
><br>
> Caio Barros<br>
</div></div></blockquote></div><br>