A Computational Approach to Learning Music


  • Siddh Merchant Podar International School
  • Reetu Jain Chief Mentor, On My Own Technology


Music, learning


Learning the guitar is not an easy task, several people have tried methods like online lessons and even physical ones, yet progress is slow. Due to the above, most quit whilst others find marginal levels of success. Research has been conducted to design a different approach to learning and practicing the guitar. Its purpose is to establish a system in which a user can create music without having to explore the intricacies of music theory, making the task easier and thus more achievable for the general population. By doing so, it strives to make music a more approachable domain for those who wish to explore it. In the process, I devised a unique way of approaching the instrument; one that avoids theory and draws focus on musical sense. Using open CV and python, I designed a program that takes scales as inputs and provides a harmonious sequence of notes as an output. Although based on the guitar, the theory explored in the project can be applied to any fretted instrument that holds a discrete set of notes. Using this program, general users can have access to instruments and consequently the benefits associated with playing music. This opens doors to music therapy and exercises used to focus/develop certain parts of the brain.


1md, Organization. “What Happens in the Brain When You Have Depression? Causes & Treatment.” 1MD, 1MD, 5 Feb. 2015, https://1md.org/article/depression-brain-causes-treatment.

A;, Holm-Hadulla RM;Bertolino. “Creativity, Alcohol and Drug Abuse: The Pop Icon Jim Morrison.” Psychopathology, U.S. National Library of Medicine, https://pubmed.ncbi.nlm.nih.gov/24051493/.

Aalbers S;Fusar-Poli L;Freeman RE;Spreen M;Ket JC;Vink AC;Maratos A;Crawford M;Chen XJ;Gold C; “Music Therapy for Depression.” The Cochrane Database of Systematic Reviews, U.S. National Library of Medicine, https://pubmed.ncbi.nlm.nih.gov/29144545/.

Achilles, daryl. “Tensions of Guitar Strings - Course Websites.” Tensions of Guitar Strings, https://courses.physics.illinois.edu/phys406/sp2017/Student_Projects/Fall00/DAchilles/Guitar_String_Tension_Experiment.pdf.

Bapat, Krutika. “Hough Transform Using Opencv.” LearnOpenCV, 4 May 2021, https://learnopencv.com/hough-transform-with-opencv-c-python/.

Baycrest, Center for geriatric care. “Uncovering Why Playing a Musical Instrument Can Protect Brain Health.” ScienceDaily, ScienceDaily, 1 June 2017, https://www.sciencedaily.com/releases/2017/06/170601192721.htm.

Beaty, Roger E. “The Neuroscience of Musical Improvisation.” Neuroscience and Biobehavioral Reviews, U.S. National Library of Medicine, 16 Jan. 2015, https://pubmed.ncbi.nlm.nih.gov/25601088/.

GeeksforGeeks, organization. “Image Resizing Using Opencv: Python.” GeeksforGeeks, 15 Mar. 2021, https://www.geeksforgeeks.org/image-resizing-using-opencv-python/.

GeeksforGeeks, Organization. “Line Detection in Python with Opencv: Houghline Method.” GeeksforGeeks, 14 Feb. 2018, https://www.geeksforgeeks.org/line-detection-python-opencv-houghline-method/.

Iszáj, Fruzsina, et al. “Creativity and Psychoactive Substance Use: A Systematic Review.” International Journal of Mental Health and Addiction, Springer US, 20 Oct. 2016, https://link.springer.com/article/10.1007/s11469-016-9709-8.

Kamioka H;Tsutani K;Yamada M;Park H;Okuizumi H;Tsuruoka K;Honda T;Okada S;Park SJ;Kitayuguchi J;Abe T;Handa S;Oshio T;Mutoh Y; “Effectiveness of Music Therapy: A Summary of Systematic Reviews Based on Randomized Controlled Trials of Music Interventions.” Patient Preference and Adherence, U.S. National Library of Medicine, https://pubmed.ncbi.nlm.nih.gov/24876768/.

Kim, Jae-Hun, et al. “Defining Functional SMA and Pre-SMA Subregions in Human MFC Using Resting State Fmri: Functional Connectivity-Based Parcellation Method.” NeuroImage, U.S. National Library of Medicine, 1 Feb. 2010, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2819173/.

Körting, Thales Sehn, director. How Circle Hough Transform Works, 26 Feb. 2020, https://www.youtube.com/channel/UCSd_7rz5nzSnzUYbjaCXC5g.

Lathiya, Ankit. “Numpy Linalg Solve() Function in Python Example.” AppDividend, 9 Nov. 2020, https://appdividend.com/2020/11/09/numpy-linalg-solve-function-in-python-example/.

Life2CodingTechnology Related Blog at Life2CodingFeel free to contact us for your any kind of technical problems. We are here to help you., organization. “How to Resize Images in Opencv Python Using Different Interpolation Methods.” Life2Coding, 6 Nov. 2021, https://www.life2coding.com/how-to-resize-images-in-opencv-python-using-different-interpolation-methods/.

“Music and the Brain.” Neurobiology, Harvard Medical School, https://neuro.hms.harvard.edu/centers-and-initiatives/harvard-mahoney-neuroscience-institute/about-hmni/archive-brain-1.

Numpy, Organization. “Numpy.linalg.solve¶.” Numpy.linalg.solve - NumPy v1.21 Manual, https://numpy.org/doc/stable/reference/generated/numpy.linalg.solve.html.

OpenCV, Organization. “Feature Detection.” OpenCV, https://docs.opencv.org/4.x/dd/d1a/group__imgproc__feature.html.

OpenCV, organization. “Geometric Image Transformations.” OpenCV, https://docs.opencv.org/4.x/da/d54/group__imgproc__transform.html.

OpenCV, Organization. “Hough Circle Transform.” OpenCV, https://docs.opencv.org/4.x/d4/d70/tutorial_hough_circle.html.

OpenCV, organization. “Hough Line Transform.” OpenCV, https://docs.opencv.org/4.x/d9/db0/tutorial_hough_lines.html.

“Opencv-Python图像处理4.” Opencv-python图像处理4_热衷开源的Boy-CSDN博客, https://blog.csdn.net/weixin_39025679/article/details/104607033.

R, Nick, et al. “Detecting Circles in Images Using Opencv and Hough Circles.” PyImageSearch, 17 Apr. 2021, https://www.pyimagesearch.com/2014/07/21/detecting-circles-images-using-opencv-hough-circles/.

Raglio, Alfredo, et al. “Effects of Active Music Therapy on The Normal Brain: Fmri Based Evidence.” Brain Imaging and Behavior, Springer US, 7 Apr. 2015, https://link.springer.com/article/10.1007/s11682-015-9380-x.

Rai, Ankit. “Python: CV2 Canny() Method.” Java2Blog, 23 Dec. 2020, https://java2blog.com/cv2-canny-python/.

“Ratios and Musical Intervals - Math.wustl.edu.” Ratios and Musical Intervals, Washington University in St. Louis, https://www.math.wustl.edu/~wright/Math109/M&MCh04-07.pdf.

Rosebrock, Adrian. “OpenCV Edge Detection ( cv2.Canny ).” PyImageSearch, 9 May 2021, https://www.pyimagesearch.com/2021/05/12/opencv-edge-detection-cv2-canny/.

Sam, N. “What Is Medial Prefrontal Cortex? Definition of Medial Prefrontal Cortex (Psychology Dictionary).” Psychology Dictionary, 7 Apr. 2013, https://psychologydictionary.org/medial-prefrontal-cortex/.

Sanderson, Grant, director. Music and Measure Theory, 3blue1brown, 4 Oct. 2015, https://www.youtube.com/watch?v=cyW5z-M2yzw. Accessed 29 Nov. 2021.

Sharma, Samata R, and David Silbersweig. “Setting the Stage: Neurobiological Effects of Music on the ...” Neurobiological Effects of Music on the Brain, Berklee Music and Health Institute, 1 June 2018, https://remix.berklee.edu/cgi/viewcontent.cgi?article=1005&context=mh-exchange-music-medicine.

Sihvonen AJ;Särkämö T;Leo V;Tervaniemi M;Altenmüller E;Soinila S; “Music-Based Interventions in Neurological Rehabilitation.” The Lancet. Neurology, U.S. National Library of Medicine, https://pubmed.ncbi.nlm.nih.gov/28663005/.

Skouras, Stavros, et al. “Superficial Amygdala and Hippocampal Activity during Affective Music Listening Observed at 3 T but Not 1.5 T Fmri.” NeuroImage, Academic Press, 12 July 2014, https://www.sciencedirect.com/science/article/abs/pii/S1053811914005795?via%3Dihub.

Trimble, Michael, and Dale Hesdorffer. “Music and the Brain: The Neuroscience of Music and Musical Appreciation.” BJPsych International, The Royal College of Psychiatrists, 1 May 2017, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5618809/.

Tsujii T;Sakatani K;Masuda S;Akiyama T;Watanabe S; “Evaluating the Roles of the Inferior Frontal Gyrus and Superior Parietal Lobule in Deductive Reasoning: An RTMS Study.” NeuroImage, U.S. National Library of Medicine, https://pubmed.ncbi.nlm.nih.gov/21749923/.

User, 6613600. “What Are the Correct Usage/Parameter Values for Houghcircles in Opencv for Iris Detection?” Stack Overflow, 1 July 1960, https://stackoverflow.com/questions/10716464/what-are-the-correct-usage-parameter-values-for-houghcircles-in-opencv-for-iris.

Wikipedia, Organization. “Inferior Frontal Gyrus.” Wikipedia, Wikimedia Foundation, 16 May 2021, https://en.wikipedia.org/wiki/Inferior_frontal_gyrus.




How to Cite

Merchant, S. ., & Jain, R. (2022). A Computational Approach to Learning Music. iJournals:International Journal of Software & Hardware Research in Engineering ISSN:2347-4890, 10(1). Retrieved from https://ijournals.in/journal/index.php/ijshre/article/view/69