[bloopdance release notes] synthesis and control updates

I noticed that the bloopdance pitch wasn’t changing based on the accelerometer changes, i.e. from shaking the phone around or tilting it side to side. The frequency cutoff was still working, controlled by a vertical tilt of the phone.

Looking into it seems like there’s some issue with the web audio API in updating the frequency value. For some reason oscillator.frequency.value = pitch stopped working. I updated it to use another method to change the pitch: oscillator.frequency.setValueAtTime(pitch, context.currentTime) . This worked 🎉

However, very slight changes in the accelerometer caused the pitch to waver. I introduced some light smoothing to this. This may have to do with using a new method, or maybe something to do with and update to the devicemotion events API. Idk, but I added a smoothing function. The timbre changed a little, moreso when you’re shaking the phone a bunch — but the quality of it is pretty much the same.

Back last year in February I updated it to include permissions to access the accelerometer. For a while this could only be done through the phone settings, and thankfully after an update it could be triggered from the page itself. Much smoother experience.

Play with it here: https://bloopdance.com/

If you’re wondering what this is, check out this video:

--

--

--

Author of “Feeling Great About My Butt.” Previously: Creators @Medium, Product @embedly, Research @NECSI. http://whichlight.com.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What Is Elm Architecture Life Cycle — Tentamen Software Testing Blog

Development of an HMI for industrial machines with modern technologies like Electron, Vue.js,

Development of an HMI for industrial machines with modern technologies like Electron, Vue.js, and MQTT — Header Image

Node.js Tips Part 5

The day I understood the Toast Component 7/7

Create your first React Single Page Web Page(A To-Do List)

Introducing EliteForms — A Form Library for Lit

Host your Own Free Blog with Gatsby, Novela Theme, and Github Pages

Top 10 React Development Implements

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kawandeep Virdee

Kawandeep Virdee

Author of “Feeling Great About My Butt.” Previously: Creators @Medium, Product @embedly, Research @NECSI. http://whichlight.com.

More from Medium

Making a Living in the Media

nights without you — Cornerstone by Arctic Monkeys

The (Literal) Seduction of the Masses

Another Marilyn Monroe