Coding Period - IV

Riya Lohia
GSoC’18 with Sugar Labs
2 min readJun 19, 2018

Hello everyone,

We are in the second month of coding period. Here comes the fifth blog post of my GSoC journey. Last week was a productive week in terms of my project’s progress.

Updates Till Now

  • Fixed existing bugs in circle of notes. I added a function in one of the music blocks js file (musicutils.js). This function takes starting pitch and interval as arguments and returns the deeper note (an interval higher from starting pitch). For eg. If starting pitch is C4 and interval is major second, the function will return D4. By changing some calculations according to this function, I was able to fix the existing bugs.
  • Changed spacing of the numbers in circle (that represent pitches) in such a manner that pitches that are closer together are visually closer and pitches that are farther apart looks farther. Angles between circles are overriden with sliceAngle.
1/4 Comma Meantone
  • Implemented mode selector in such a way that a mode block is placed inside the temperament widget clamp.
  • Finished with table of notes. Table of notes gives information about selected tuning system. In the example below, starting pitch is C4, selected mode is ‘C major’ and selected temperament is ‘Pythagorean’. User can also play the individual note.
Table of Notes
  • Implemented the playback feature. Clicking on ‘play-all’ button will play through all the pitches in an octave and then it will play backwards down the pitches. Notes are played in such a way that starting pitch of a lower octave plays until the other notes are finished. This makes the difference in notes perceivable.
Playback of Notes.
  • Initiated add button functionality.

Link to the Pull Request : https://github.com/sugarlabs/musicblocks/pull/1220

Targets for Upcoming Week :

  • Continue working on add button functionality.
  • Fix the existing bugs.

So here’s what I have done and what I plan to accomplish in the next week. Looking forward to a productive week. 😃

--

--

GSoC’18 with Sugar Labs
GSoC’18 with Sugar Labs

Published in GSoC’18 with Sugar Labs

The journey of my GSoC project “Going beyond equal temperament in music blocks” for Sugar Labs.

Riya Lohia
Riya Lohia

Written by Riya Lohia

Software Engineer at Subskribe