# Bars:Beats:Sixteenths

**URL:** <https://discourse.processing.org/t/barssixteenths/29821>\
**Category:** Coding Questions\
**Created:** [May 3, 2021, 5:43pm UTC](https://discourse.processing.org/t/barssixteenths/29821 "2021-05-03T17:43:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnderratedGuitarGUY](https://avatars.discourse-cdn.com/v4/letter/u/dfb087/32.png) [@UnderratedGuitarGUY](https://discourse.processing.org/u/UnderratedGuitarGUY)\
**Post date:** [May 3, 2021, 5:43pm UTC](https://discourse.processing.org/t/barssixteenths/29821/1 "2021-05-03T17:43:19Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hey, I’ve been working through a javascript beginners guide recently and I was wondering whether anyone could help me out with two conversion questions?

a) what would 2n be in Bars:Beats:Sixteenths?

b) what would Bar 7 beat 2.5 be in Bars:Beats:Sixteenths?

this mainly aligns with tone.js

Thanks!

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 3, 2021, 6:59pm UTC](https://discourse.processing.org/t/barssixteenths/29821/2 "2021-05-03T18:59:48Z")

</div>

> [@UnderratedGuitarGUY](#):
>
> mainly aligns with tone.js

Do you have a link or code please?

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [May 3, 2021, 7:59pm UTC](https://discourse.processing.org/t/barssixteenths/29821/3 "2021-05-03T19:59:49Z")

</div>

Hi! Welcome to the forum!

here is the info: [Time](https://tonejs.github.io/docs/14.7.77/type/Time)

> - Notation, (“4n”, “8t”) describes time in BPM and time signature relative values.
> - TransportTime, (“4:3:2”) will also provide tempo and time signature relative times in the form BARS:QUARTERS:SIXTEENTHS.

(nevertheless just note that it’s not directly related to processing/p5.js 🙂 for that I drop a link to an amazing introduction by Matt DesLauriers about p5.js and tone.js: [GitHub - mattdesl/workshop-p5-intro: Intro to Creative Coding workshop with p5.js and Tone.js](https://github.com/mattdesl/workshop-p5-intro) )

---

<div class="post-metadata">

**Author:** ![UnderratedGuitarGUY](https://avatars.discourse-cdn.com/v4/letter/u/dfb087/32.png) [@UnderratedGuitarGUY](https://discourse.processing.org/u/UnderratedGuitarGUY)\
**Post date:** [May 4, 2021, 11:12pm UTC](https://discourse.processing.org/t/barssixteenths/29821/4 "2021-05-04T23:12:51Z")

</div>

Ahh this helps so so massively!  
I’ve only just started coding and I’m really struggling to understand most of the terminology.  
Thanks so much 🙂

---

<div class="post-metadata">

**Author:** ![UnderratedGuitarGUY](https://avatars.discourse-cdn.com/v4/letter/u/dfb087/32.png) [@UnderratedGuitarGUY](https://discourse.processing.org/u/UnderratedGuitarGUY)\
**Post date:** [May 4, 2021, 11:16pm UTC](https://discourse.processing.org/t/barssixteenths/29821/5 "2021-05-04T23:16:45Z")

</div>

This doesn’t directly involve code, but covers it’s terminology.

- I’ve deciphered that 2n = minim (therefore it would be 0:1:0 - representing 2 beats)

yet I can’t work out what .5 a beat would be categorized in.
