Roast Mochi

Music 256a Fall 2014- Final Project

Shu Yu Lin



  • Motivation
  • "Mochi is Japanese rice cake made of mochigome, a short-grain japonica glutinous rice. The rice is pounded into paste and molded into the desired shape. In Japan it is traditionally made in a ceremony called mochitsuki. While also eaten year-round, mochi is a traditional food for the Japanese New Year and is commonly sold and eaten during that time. Mochi is called môa-chî in Taiwan." (http://en.wikipedia.org/wiki/Mochi)

    Sometimes the mochi is roasted before it is eaten. Thus, this is where I got my Roast Mochi idea from. This program is essentially designed for users to learn to sing in the correct pitch. The users are allowed to control the state of mochi, whether it is burnt or well roasted by singing out of tune or in tune.



  • Design
  • The mochi is purposely designed to wobble so to add movement in the game and the wobble also depicts the softness of mochi. The height of the fire in the furnace is controlled by the frequency of the user's voice. Furthermore, the color of the mochi changes to darker shade when the fire touches it which depicts the process of roasting the mochi. The number of well roasted mochi and burnt mochi are updated in the window so the user knows how many mochi he will need to further roast and how many mochi he burnt. The target pitch frequency and the pitch frequency that the user sings are outputed in the console so that the user knows how acurate he sings.



  • Screen Shots
  • unroasted mochi

    roasting mochi/ singing the pitch after hearing it

    the mochi is burnt if the user sings the wrong pitch

    the mochi is well roasted if the user sings the correct pitch

    the user gets a yakitori of mochi if he sings correct pitch 5 times

    the user will set the house on fire if he sings wrong pitch 5 times



  • Demo
  • roastMochi_video.mov



  • User Manuel
  • In order to start the game, the user needs to press space bar to hear a pitch and the frequencyof that pitch will be printed in the console. And then press space bar again to stop the pitch after hearing it. The user then needs to press mouse left button to start the recording. The sound that the user inputs will then be calculated for its pitch frequency and it will be printed in the console. If the number of either the burnt or well roasted mochi reaches 5, then the game is over and the user will have the option of pressing r to retart another session of the game. The user can press q to quit the game anytime, s to toggle full screen and h to print help messages.



  • Download
  • roastMochiSourceCode.zip