# Triplets on a p5.phrase #p5.sound

**URL:** <https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507>\
**Category:** Libraries\
**Created:** [April 7, 2020, 4:35pm UTC](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507 "2020-04-07T16:35:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfonsofonso](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/alfonsofonso/32/8634_2.png) [@alfonsofonso](https://discourse.processing.org/u/alfonsofonso)\
**Post date:** [April 7, 2020, 4:35pm UTC](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507/1 "2020-04-07T16:35:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dennis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dennis/32/1111_2.png) [@Dennis](https://discourse.processing.org/u/Dennis)\
**Post date:** [April 7, 2020, 6:46pm UTC](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507/2 "2020-04-07T18:46:27Z")

</div>

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

Regards  
Dennis

---

<div class="post-metadata">

**Author:** ![alfonsofonso](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/alfonsofonso/32/8634_2.png) [@alfonsofonso](https://discourse.processing.org/u/alfonsofonso)\
**Post date:** [April 9, 2020, 9:09am UTC](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507/3 "2020-04-09T09:09:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Dennis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dennis/32/1111_2.png) [@Dennis](https://discourse.processing.org/u/Dennis)\
**Post date:** [April 11, 2020, 7:00pm UTC](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507/4 "2020-04-11T19:00:34Z")

</div>

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…
