Outreachy Diaries
Published in

Outreachy Diaries

Outreachy 2017 — 3

Hello everyone, this is my third blog post related to my Outreachy work.

For the past two weeks my updates are as follows:

  • Changed the set-timbre block to be of “flow” type i.e., it can be used inside other blocks.

A quick demo including the above changes made so far -

I faced a few difficulties while testing the Synth code specifically for the drum samples. When I was trying to play the drum by clicking on the set-drum block, I got the following error message every time “Tone.player: tried to start player before the buffer was loaded”.

After experimenting a bit with the set-drum block and digging up the source code of the Tonejs API, I found that it’s not possible to generate the Sampler on fly. Therefore I changed the code structure such that all the required samplers get generated at the time of initial loading of the Synth and stored it for future references.

Plan for the next couple of weeks:

  • Work on the “set-volume” method to make it specific to every instrument.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store