Triplets on a p5.phrase #p5.sound

Hi everyone! I’m trying to do some triplets in a p5.phrase… I’ve tried to nest arrays but nope…
any idea?
cheers

Good morning Alfonso, can You post some line of your code? I not understand your intention…

Regards
Dennis

Hi there! well basically I’m passing an array to the phrase.sequence like this [440,550,400,330] and It plays this four quater notes, I was wondering if i pass [[440,300,350],400,330]it would do a triplet and the two quater notes but nope. Is there a way to do that?
thanx for your reply!

Hi Alfonso, your algorithm should recognize when, instead a single array value, in the array index are an array of 3 values. In this case you have to divide the time playing by three…