Singing Ghost

Youmingzhang
Nov 20, 2020

--

Collab with Funzo

For this oscillator project, I am collating with Funzo. She provided us the idea to make “ghost singers”. The video we watched is the ghost choir where three ghosts sing different sounds.

So we are thinking of making a clickable ghost where users can change pitch and sound based on oscillator waves.

Face Object

First, we start with objective programming. Each ghost has a face where we show all the parts of the body and make updates on parts when interaction happens. Updates are similar to the example oscillator project we see in class where the user drags the mouse and the object’s shape changes. We designed the animation where we drag the mouse different frequency will change on mouseX value and different amplitude values will change based on mouseY value. This class will adjust the object’s position and change the animation. Object’s height will increase when the amp value increases/decrease. Its mouse will open wide when the frequency value increases/decreases.

Oscillator

We use the sound oscillator object and we added two different oscillator waves “sine” and “square’. Further exploration is that we can create a different face object with a different oscillator and sounds like a real choir.

Making objects move with corresponding mouse action is tricky, the challenge we are facing is to understand mouse movement. Is the mouse move vertically or horizontally. We used abs() function to measure the current mouse state with the previous one to decide which direction it is moving so that we can update our animation accordingly.

--

--

No responses yet