teaching machines

Resize and Pad Images

I was recently given the task of converting a massive corpus of images (10) to a fixed resolution with a fixed amount of padding. In the past, I’ve used ImageMagick to make quick work of problems like this, but I can never remember its commands. Maybe I should write down my solutions as an investment […]

Barrel in Pixels

My sons and I have started taking a Coursera MOOC on pixel art. Our first assignment was to create a barrel, like that which might appear in a “pirate game.” Here’s my interpretation: I’m not sure that I thought about pirates at all as I laid down those pixels.

Digital Musical Instrument Design

Welcome to Digital Musical Instrument Design, one of the courses at the 2018 Summer Computer Science Institute at Carleton College. This page contains all the course notes and exercises that you will need throughout the week. Day 1 On this day we introduce the notion of a sound wave, and we see how the frequency […]

WAV Abstraction in Pure Data

Those poor students who get a teacher that is teaching a subject for the first time. I’m that teacher these next three weeks, and our subject matter is digital music and Pure Data. One of the questions I was asked in this first week is how to create an abstraction that plays an arbitrary WAV […]

Music Mouse, Part VI

This post is part of a series of notes and exercises for a summer camp on making musical instruments with Arduino and Pure Data. The Arduino side of the Music Mouse is working. Whew! All that’s left is to interpret the messages it sends out in Pure Data. Soon we’ll have music. Pure Data Interpreter […]

Music Mouse, Part V

This post is part of a series of notes and exercises for a summer camp on making musical instruments with Arduino and Pure Data. In this exercise, we start issuing MIDI numbers. When the musician goes up or down in the Music Mouse interface, a single note of the melody is played. When the music […]

Music Mouse, Part IV

This post is part of a series of notes and exercises for a summer camp on making musical instruments with Arduino and Pure Data. We’ve got horizontal motion working in the Music Mouse. Let’s add vertical motion. This will be very similar to the horizontal motion, but there is an important difference. Vertical Motion In […]

Music Mouse, Part III

This post is part of a series of notes and exercises for a summer camp on making musical instruments with Arduino and Pure Data. Music Mouse walks the horizontal axis in steps of one right now. If we were to interpret the x-position as a MIDI number, we’d be walking the chromatic scale, which is […]

Music Mouse, Part II

This post is part of a series of notes and exercises for a summer camp on making musical instruments with Arduino and Pure Data. We’ll complete the Music Mouse in stages. In this stage, let’s get the joystick behaving like a mouse. We’ll start at a position and allow the joystick to move us around […]

Music Mouse, Part I

This post is part of a series of notes and exercises for a summer camp on making musical instruments with Arduino and Pure Data. Our final instrument is inspired by the work of composer Laurie Spiegel. In particular, we will recreate her instrument the Music Mouse. This software was released in the 1980s. In the […]

1 14 15 16 17 18 46