# P5js.sound shruti box example project

**URL:** <https://discourse.processing.org/t/p5js-sound-shruti-box-example-project/9106>\
**Category:** Gallery\
**Created:** [March 8, 2019, 6:30am UTC](https://discourse.processing.org/t/p5js-sound-shruti-box-example-project/9106 "2019-03-08T06:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![faxinadu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/faxinadu/32/3153_2.png) [@faxinadu](https://discourse.processing.org/u/faxinadu)\
**Post date:** [March 8, 2019, 6:30am UTC](https://discourse.processing.org/t/p5js-sound-shruti-box-example-project/9106/1 "2019-03-08T06:30:52Z")

</div>

Simple Javascript browser Shruti Box using p5js.sound for the sample playback.

Github source code:

> **[OceanSwift/Shruti-Web-Js](https://github.com/OceanSwift/Shruti-Web-Js)**
>
> Javascript browser Shruti Box using p5js.sound for the sample playback - OceanSwift/Shruti-Web-Js

The script uses the p5js and p5js.sound libraries and expects to find them placed in relative to the root path. Either place the libraries there or edit the html file to point to the libraries elsewhere. “…/libraries/p5.js” “…/libraries/p5.sound.js” type=“text/javascript”

You can grab the libraries here:  
[https://p5js.org/](https://p5js.org/)

Shruti Box Web demonstration at Ocean Swift website: [https://oceanswift.net/shrutiboxweb/](https://oceanswift.net/shrutiboxweb/)
