Difference between revisions of "Summer of Code/2018/Music Blocks Widget Improvements"
(part2.2) |
(part2.3) |
||
Line 69: | Line 69: | ||
20 bugs reported currently. I think there would be another 10 bugs related to widgets which | 20 bugs reported currently. I think there would be another 10 bugs related to widgets which | ||
− | would be reported during summers. I am planning to remove 2-3 bugs per day. Most of | + | would be reported during summers. I am planning to remove 2-3 bugs per day. Most of the bugs |
+ | |||
+ | involve pitch-time matrix, tempo, timbre, filters, rhythm ruler. Most of bugs are easy | ||
and they would be fixed in around 10 days. Other bug reports involve adding some | and they would be fixed in around 10 days. Other bug reports involve adding some | ||
Line 88: | Line 90: | ||
feature vector. Autocorrelation is correlation of a signal with its delayed copy. | feature vector. Autocorrelation is correlation of a signal with its delayed copy. | ||
+ | |||
+ | There is a webapp written in javascript which calculates autocorrelation, whose code we | ||
+ | |||
+ | can use as it has MIT license. The repository is <nowiki>https://github.com/cwilso/PitchDetect/</nowiki> | ||
+ | |||
+ | If the fundamental frequency is not very strong then we will use fourier transform to get the | ||
+ | |||
+ | frequency domain representation of the signal, then we will find frequencies at which the | ||
+ | |||
+ | amplitude is higher. The smallest of these frequencies will be fundamental frequency. For | ||
+ | |||
+ | example in figure given below, fundamental frequency is shown by yellow arrow. | ||
+ | |||
+ | 3) '''Integrating software keyboard in Music Blocks''' - The keyboard currently works fine but It | ||
+ | |||
+ | looks very different than rest of Music Blocks. I would like to work on design part of the | ||
+ | |||
+ | keyboard and change its design in following ways | ||
+ | |||
+ | - Currently the keyboard is fixed in size and it can not be moved, I would change it and | ||
+ | |||
+ | it would be available in at least 2 sizes and its position on the screen could be | ||
+ | |||
+ | changed. | ||
+ | |||
+ | - Currently the toggle button to minimize/show for keyboard is on bottom right | ||
+ | |||
+ | corner, I would change it such that It remains on the top left of keyboard just like | ||
+ | |||
+ | others. | ||
+ | |||
+ | - Making the edges of each key rounded, so it looks similar to other blocks | ||
+ | |||
+ | - Although actual keyboard is black and white, there should be option to change colors | ||
+ | |||
+ | of keys. | ||
+ | |||
+ | The way I have visualized keyboard to look is given below |
Revision as of 09:06, 29 March 2018
Music Blocks Widget Improvements
About You
What is your name?
My name is Ritwik Abhishek. I am 3rd year undergraduate student at Indian Institute of
Technology Guwahati.
What is your email address?
ritwikabhishek@gmail.com
What is your Sugar Labs wiki username ?
A-ritwik
What is your IRC nickname on irc.freenode.net?
a-ritwik
What is your first language?
My first language is Hindi. English is my language of communication and I am fluent in it.
Where are you located, and what hours (UTC) do you tend to work?
I live in Guwahati, India (UTC+5:30). I usually work from 5AM (UTC) to 2PM (UTC), But these
timing can vary depending on the need of project or mentor. I will remain active on IRC
during my working hours.
Have you participated in an open-source project before? If so, please send us URLs to your
profile pages for those projects, or some other demonstration of the work that you have
done in open-source. If not, why do you want to work on an open-source project this
summer?
I am new to the world of open-source. I like the idea very much that anyone can contribute
to a project of his/her choice and help to develop products which are comparable or better
than proprietary products. I chose Sugar Labs because Education is very close to my heart
and Sugar Labs works to provide kids equal opportunity to learn, irrespective of their
background.
About your project
What is the name of your project ?
Music Blocks Widget Improvement
Describe your project in 10-20 sentences. What are you making? Who are you making it
for, and why do they need it? What technologies (programming languages, etc.) will you
be using?
My project involves 3 separate parts
1) Fix widget bugs - There are several widgets in Music Blocks. As reported on github
repository https://github.com/walterbender/musicblocks/labels/widget , there are around
20 bugs reported currently. I think there would be another 10 bugs related to widgets which
would be reported during summers. I am planning to remove 2-3 bugs per day. Most of the bugs
involve pitch-time matrix, tempo, timbre, filters, rhythm ruler. Most of bugs are easy
and they would be fixed in around 10 days. Other bug reports involve adding some
functionality and are actually enhancements.
2) Pitch tracker - It involves making a widget which would record sound, process it to find
fundamental frequency for every small segment, and then choose blocks (whose frequency
is closest to fundamental frequency of each segment), and then use these blocks to code
the recorded sound in Music Blocks language.
I chose to use fundamental frequency because it can be calculated in real time and is easy to
calculate as well. For calculating fundamental frequency I will be using autocorrelation as
feature vector. Autocorrelation is correlation of a signal with its delayed copy.
There is a webapp written in javascript which calculates autocorrelation, whose code we
can use as it has MIT license. The repository is https://github.com/cwilso/PitchDetect/
If the fundamental frequency is not very strong then we will use fourier transform to get the
frequency domain representation of the signal, then we will find frequencies at which the
amplitude is higher. The smallest of these frequencies will be fundamental frequency. For
example in figure given below, fundamental frequency is shown by yellow arrow.
3) Integrating software keyboard in Music Blocks - The keyboard currently works fine but It
looks very different than rest of Music Blocks. I would like to work on design part of the
keyboard and change its design in following ways
- Currently the keyboard is fixed in size and it can not be moved, I would change it and
it would be available in at least 2 sizes and its position on the screen could be
changed.
- Currently the toggle button to minimize/show for keyboard is on bottom right
corner, I would change it such that It remains on the top left of keyboard just like
others.
- Making the edges of each key rounded, so it looks similar to other blocks
- Although actual keyboard is black and white, there should be option to change colors
of keys.
The way I have visualized keyboard to look is given below