Planet Music

Planet Music is a sound visualizer on the moon! The current version has a set playlist of 6 songs that can be activated with the media player buttons. The space scene reacts to the sound using a fast Fourier transform (FFT). Here is a sample video:

Try it for yourself here (Notes: please allow ~20 seconds to load. Currently not optimized for mobile)

Continue reading Planet Music

Sunrise, Sunset

Above is a little illustration that depicts the sunrise and sunset times (listed on the y-axis) of two locations in the world for each day in the year (spread across the x-axis).

See the code and web version here (press the play button – not optimized for mobile).

In this current case it is the 2016 sunrises and sunsets from Eastern Standard Time (EST) – aka New York –  and Central European Time (namely Switzerland & France).

At many stages in my life, for different reasons, I have found myself doing a mental calculation to imagine this time difference, and specifically when our normal waking hours overlap.

These days, both a friend and my girlfriend’s father are stationed in Switzerland.

This illustration is designed to show that our days share a lot of the same sunlight – especially in the summer. So even if we are far away, we can often look up at the same thing in the sky. ?

Continue reading Sunrise, Sunset

Two D-10 vs One D-20

The dice theme continues this week with a p5 program that lets you roll a variety of dice and observe the historical distribution of your rolls.

Play with it here (best done on a computer, not mobile).

Inspired by D&D and my general fascination with stats – this is designed as an interactive and informational tool to observe what distributions can be expected. Compare, for example…

Continue reading Two D-10 vs One D-20

Pull back the curtain

Computational Media is super cool to me for a couple reasons:

    1. Pulling back the curtain on programming and thinking like a computer.
      I have limited programming experience that mostly involves expletives and frustration. I see this class as the perfect opportunity to increase my code literacy and increase the intuition involved when trying to get the computer to do what I say!

      when the p5 shape wont move

      I like what we have done so far in p5 because its a very WSYIWG approach to programming. Instead of having to print() every line and interpret it, you can visually see what changing a function or number is doing to your program. Yet I look forward to the challenge of this no longer being available, just now equipped with a new understand of how the computer works, and being able to navigate the internet for the answers I need more efficiently (i.e. how to google like a programmer.

Continue reading Pull back the curtain

Spend two hours making a child-like drawing

Hi ICM class.

Many many years ago, my friends and I created a “logo” for our “squad” called The Muffin Men. The logo itself is a muffin that reflects the sentiment of the name: funny & cute, but maybe serious?

You can see one (pixelated) rendition of the logo at the top of the page. For this week’s exercise I created the muffin in p5 and it looks like this:

To do this I utilized the p5 Shape reference page and made the muffin out of shapes primarily including the curveVertex() function to make the curves you see around the muffin top. To make the eyes, I tried a different curve function called quadraticVertex(), which I like much better.

Continue reading Spend two hours making a child-like drawing