Blog  |   Puzzles  |   Books  |   About

The color of us (continued)

August 7th, 2009

In order to understand the MOB Brown / orange shift phenomenon I’ve discussed in the previous post and elsewhere, I produced a series of histograms, showing the relative proportions of images in each set that average to a particular hue.

In this collection of photographs of poppy flowers, you can see a clear preponderance of orange photos.

Hue Histogram: Poppies

Of course, that’s not surprising, since poppy blossoms are often orange. But check out the distribution of hues in this collection of 10,000 photos from the Flickr Central group – a set of photos from a very diverse group of people, which isn’t intentionally color correlated.

Hue Histogram: Flickr Central

The same shift occurs in this collection of computer generated art

Hue Histogram: Generative Art

In this collection of photos tagged “white wedding”…

Hue Histogram: White Wedding

And in Auntie P’s collection of 360 self portraits.

Hue Histogram: Self Portraits

You can even see an orange bump in this collection of images of Birds in Flight, even though most of the images were taken against a blue sky.

Hue Histogram: Birds in Flight

The color of us

August 6th, 2009

I’ve been doing some new research on the “MOB Brown” or “Orange Shift” phenomenon I first blogged about back in 2006.

As part of that research, I’ve produced a number of intriguing composite images, which I thought I would share here. Before I proceed, I should acknowledge that some of this art resembles the work of Jason Salavon, who famously did a series of composite image of Playboy centerfolds. The resemblance is unintentional, it’s a side effect of using the same process, which I stumbled upon independently.

Like Jason, I’ve produced composite images by averaging the color values of the pixels of each source image, and then expanding their dynamic range, or “normalizing” them. My work is a little less pop-culture-focused than Jason’s, and I tend to use larger numbers of source images.

For example, I produced this average image of about 4,000 squared circle images from Flickr, back in 2006:

Bronze Shield 0 (3177 photos)

and then by normalizing the pixels, produced this “bronze shield”.

Bronze Shield 6 (3249 photos)

Here’s a more recent bronze shield using about 10,000 images:

Bronze Shield

Here’s are some images of just coins (286 of them).

Lingua Franca

Here’s a few more images constructed from circles – see if you can figure out what they are:

Many Moons Amok Time Eyes

Here’s a composite I made, reminscent of Jason Salavon’s work, of photographs of women from the “A Powerful Noise” project which I participated in recently.

A Powerful Noise

Here’s one made from yearbook photos – all the members of a single graduating class:

Class of 1997

And here are 1,700 images of eyes.

Sight

Like the bronze shield images, you’ll notice a pronounced brown/orange shift which is typical of these composite images.

I named the color I typically see when I average together a bunch of images “MOB Brown”. It looks like this:
.

I named the orange color seen when these images are normalized “Brownian Orange’. It looks like this:

(Note: Both of these images are composites of 10,000 images from the Flickr Central pool).

I had been assuming this orange shift was the result of natural sunlight, or camera flash, or camera image processing, so I was surprised to find that when I made composite images from purely synthetic imagery, such as computer art, there was also a pronounced orange shift:

4 Orange Shifts

Just to make sure I wasn’t going crazy, I tried generating a composite synthetic image using a random number generator to construct the source images, and in this case, the result does not have an orange shift. The source images are simple images with random filled circles. The composite images came out like this:

Noise Etude

Another way to make the orange shift go away is to use images which strongly color correlated, as in this image made from photographs tagged “antarctica”.

Antarctica

Here are some more like that:

The Color Of

Here are a collection of signs that ban various activities:

No stuff

I’ll leave you with one more correlated set of images: birds in flight.

Flight

Want to see more? I’ve posted more of these in my Flickr set of composite images.

UPDATE: While my own command-line scripts aren’t particularly user-friendly, Flickr hacker Dubster has made an online tool that you can use to average photos from Flickr together, creating images like these.

Crooked Waltz

August 2nd, 2009

A few people recently asked for sheet music to my piano piece Crooked Waltz, which you can hear on my out-of-tune piano in a living room recording here. In this piece the time signature changes all over the place, but when played properly, the changes aren’t too noticeable.

Here’s a rough sketch of the piece, in sheet music form. As usual, I have omitted all dynamics, slurs, arpeggios and ornaments, because I’m lazy. I would much rather play music than transcribe it. Also, when I perform any of my piano pieces, my hands tend to wander, so it’s difficult to write down a single “correct” version.

So with all those caveats in mind, here are the essential bones of the Crooked Waltz.

Kasparov vs. Deep Blue Video

June 29th, 2009

A video recording of my piece “Kasparov vs. Deep Blue”, performed in Eagle Rock on June 26th, 2009.

Garry Kasparov was played by Kyle Evans. C.B. Hsu was played by Richard Xin.

The enthusiastic boy in the foreground is my nephew, Benjamin.

More details about the piece can be found in this post..

Cranks, Cams & Computers Tonight

June 26th, 2009

Bow Front Violano Virtuoso by Mills Novelty Co

I just finished setting up my installation piece for tonight’s concert in Eagle Rock. It should make for some crazy cacophony, in a room full of creative contraptions.

I can tell from last night’s sound check that my two pieces are definitely on the hi-tech end of a spectrum that ranges from gloriously low tech (wooden cams push down the keys on a pair of old harmoniums) and ingeniously hands on (some really interesting circuit bending devices) to abstract and cerebral (my own Whitney Music Boxes).

There is also going to be some brilliant virtuoso musicianship on display as well, with performances by the Newtown house band.

The concert will end with a performance by the San Francisco Crank Ensemble, a group of musicians who play handcrafted sound sculptures which are operated by cranks.

The room will open at 6pm (with a set of installation pieces) and the formal concert begins at 8pm.

Hope to see you there!

Note that the address has changed from the originally announced location. It’s about 5 blocks south of Swork near Eagle Rock Blvd.

GLAD (Greater L.A. Agency on Deafness)
2222 Laverna Avenue, Los Angeles, CA 90041

(link to map)

Full details here.

UPDATE:

Video of the performance can be viewed here.

Musical Chess Details

June 14th, 2009

A few have asked for more details about my hybrid chess/music system, so here we go.

To recap a previous post, I’m working on a performance piece for the June 26 Cranks, Cams and Computers concert in Eagle Rock. In this piece, two performers will reenact a famous game of chess (Kasparov vs. Deep Blue, 1997, Game 6). As they play, a computer program I’ve written monitors each move, and tries to figure out the best possible move to make in response. During this analysis, it produces music on the fly. The music is a fairly literal translation of what the computer is thinking. The music for each move lasts about 10 seconds, but represents only a fraction of a second of the thinking the computer was doing. When the next move is made on the board by a performer, the music from the previous move’s thinking is interrupted, so we can hear the thinking for the following move.

The chessboard the players are using is a Novag Citrine, which is a wooden chess board with internal electronics and magnetic pieces. The board has a PC serial interface, which is connected to my computer via a serial-to-USB adapter.

My program converts chess information to music by producing MIDI notes. Each MIDI note has 4 elements that I can control, based on various aspects of the chess analysis: pitch, loudness, timbre, and duration. The triggering of the notes, and those parameters is based on the computer’s chess search.

CHESS SEARCH

As the computer evaluates which move to make, it searches a tree in memory, using something called the minimax algorithm. This tree starts with all the possible moves the computer might play. Each of those moves leads to a node (a branching point), from which branches all the possible moves the opponent might play in response. Each of those moves leads to a new node from which branches all the possible moves the computer might make in response, and so on. After 5 or 6 branchings (or look-aheads) the computer evaluates each of the moves (5 moves ahead or so) based on various factors, the most significant being how much material has been lost or gained. As it backtracks through the tree, it chooses a move for each branching point, assuming that the opponent will make the worst possible move (or the best move for the opponent) — minimizing the score and that the computer will make the best possible move — maximizing the score. Hence the name “minimax”. This would be a lot clearer with an illustration: you’ll find one here.

As the computer searches this minimax tree, it produces MIDI notes, which correspond to the moves that are being evaluated. Since the tree has a branching factor of about 30 (there are typically about 30 chess moves each player can choose from), only the first 3 or 4 levels of the tree are converted to notes (this produces about 30^4 or about 800,000 potential notes per move). For the deeper levels of the tree, which produce potentially enormous numbers of notes, only moves which are considered interesting (which produce high or low scores) are heard as notes. Since those interesting moves are often the same, regardless of the moves that led to them, (so called “killer moves”), these deeper levels often take the form of an ostinato (repeating note) pattern. When it isn’t ostinato, the chess board is more unstable and a variety of moves lead to very different outcomes.

There are two different triggering systems used, depending on which side is playing, white or black. For the white side, I play the tree nodes in the order in which they are encountered (a depth-first search). For the black side, I play the different levels of the tree simultaneously (closer to a breadth-first search) which produces a more contrapuntal style, with each tree level having a different simultaneous melodic line.

PITCH

The pitches of the notes, are based on the the chess moves that are being considered as the computer searches the tree. Each chess move consists of a source and a destination square, such as E2-E4. Rather than actually playing an “E” to represent the square E2, I’ve assigned unique ascending chromatic pitches to each of the squares on the chessboard, with A1,B1,C1… being the lowest notes, and …F8,G8,H8 being the highest notes. Since there are 8×8 or 64 squares on the chessboard, this gives us a range of 64 notes, or a little over 5 octaves.

The notes are transposed a little higher when the computer thinks white is winning, and a little lower when it thinks black is winning. They are also transposed an octave or two up or down, to fit within the range of the instrument that is playing them, as necessary.

When the players make their moves on the chessboard, those moves are played loudly with both the source and destination squares heard, as a kind of announcement.

Then, as the tree is being searched, only the destination square are used for most moves, since there are thousands of notes being produced.

TIMBRE

The timbres of the notes are controlled by selecting different MIDI channels on my sampler, which, for this piece, holds 15 different instruments. There are three instruments which are used by both opponents (bass, piano and congas) and the remaining 12 instruments are split between the two opponents, with white (Deep Blue) getting more percussive sounds, and black (Kasparov) getting more string and wind instruments.

As each move is made, 3 or 4 instruments are chosen randomly from the ones available to that player.

A different instrument is used to represent each level of the search tree.

LOUDNESS and DURATION

High levels of the search tree (closer to the root) get louder and longer notes. As we go deeper into the search tree, the notes get faster and softer, so that we can play more of them as they multiply.

Here’s an excerpt of the piece that I recorded a few weeks ago. At this time, some of the logic I described above was not yet in place.

After the Eagle Rock concert, I’ll post a more recent recording of the piece.

The Voynich Manuscript

June 5th, 2009

I’ve been fascinated with the Voynich Manuscript for years, since first reading about it in David Kahn’s book The Codebreakers. Today’s xkcd comic provides a nice introduction.

Musical Chess

May 21st, 2009


You’re looking at a hybrid music/chess system that I’ve created, in preparation for a concert of new and experimental music in late June. The chessboard on the left (a Novag Citrine) is wired to the computer via a serial/USB cable. When people play on the chessboard, the computer monitors their moves, and attempts to figure out the best possible response. As the computer does this, it produces music (by sending MIDI events to sampling software on the same computer). The music is (at the moment) a fairly literal translation of what the computer is thinking. The idea is to put the listener “inside the mind” of a chess computer. This project merges two of my great lifetime obsessions: Music and Computer Chess (I’m not much of a chess player, but I’ve been making computer chess software for years…).

For the concert, I have engaged the services of two performers who are going to reenact a famous match between Garry Kasparov and IBM’s Deep Blue computer (shown below). My piece is called:

Kasparov vs. Deep Blue, 1997, Game 6

As the performers play this historically significant chess game, the first match in which the world human champion lost to a machine under tournament conditions, my musical chess system will analyze the moves, and you will hear the analysis. Since my own chess software is not nearly as good as Deep Blue, I have named it “Shallow Brown” — you figure it out! Coincidentally, “Shallow Brown” is also the title of a sea chanty (perhaps inspired by the bilge water being pumped while it was sung…).

There have been an enormous number of challenges involved in making this system work, and much work remains. While solving the myriad technical issues, I haven’t had much time to work on the musicality of this piece – but I have a few more weeks to go yet! With that disclaimer out of the way, I offer a brief audio sample of my chess engine, as it thinks about a chess position.

Shallow Brown – The Musical Chess Engine

Here’s a longer sample – about a minute from the middle of the Kasparov/Deep Blue game, after I did a little work on assigning different instruments to the two opponents.

Kasparov vs. Deep Blue, Excerpt

Kasparov gets mostly string sounds, and is heard more from the left channel. Deep Blue gets more mallet instruments, and is heard more from the right. I play the Deep Blue analysis a little deeper into the look-ahead tree, which produces more rapid-fire (and robotic-sounding) ostinati.

This piece is just one of a number of interesting new works, all inspired by machines of different kinds, to be performed, Friday Evening, June 26th in Los Angeles.

NewTown Presents
Cranks, Cams and Computers
New Machines, New Music

Friday, June 26

GLAD (Greater L.A. Agency on Deafness)
2222 Laverna Avenue,
Eagle Rock, CA 90041

Installations open 6:00PM
Performances at 8:00PM

Admission $10.00
$5.00 NewTown and Eagle Rock Center for the Arts members

Installations by
    Jim Bumgardner
    Carl Burmeister
    Joe Cantrell
    Daniel Corral
    
Joe Potts
    Gary Raymond

Performances by
    Jim Bumgardner
    
Carl Burmeister
    The Crank Ensemble
    Frank Pahl
    Gary Raymond

NewTown House Band
    Joe Berardi
    Lewis Keller
    Jessica Catron
    William Roper

Information:
    NewTown
    (626) 398-9278
    www.newtownarts.org
    info@newtownarts

Made possible by grants from Los Angeles County Board of Supervisors through the Los Angeles County Arts Commission, City of Los Angeles Department of Cultural Affairs and NewTown Members’ donations.

Here’s a Facebook Event Page I’ve set up for the concert.

I should mention that in addition to the chess piece, I’m also working on an installation of a number of my Whitney Music Boxes for this show.

So… if machines, cranks, cams, pianolas, and strange musical machines turn you on, and you’re going to be in the Los Angeles area — keep the evening of June 26th open!

UPDATE:

VENUE CHANGE

Due to circumstances beyond anyone’s control, there has been a last minute change of venue for Friday’s show, originally scheduled for Center for the Arts, Eagle Rock.

New Location:

GLAD (Greater L.A. Agency on Deafness)
2222 Laverna Avenue, Eagle Rock, CA 90041

This is just a few blocks away from the original location.

UPDATE:

Video of the performance can be viewed here.

Wired Mysteries

May 6th, 2009

A few friends recommended I check out the May issue of Wired, so I finally picked up a copy at the airport today. They were right — this is the best issue of Wired I’ve seen in a few years!

Wired is one of many magazines that has been noticeably suffering from the downturn in the publishing industry, and I had allowed my subscription to lapse a few months ago. This issue, which was guest-edited by J. J. Abrahms, is full of fun little puzzles, and articles about mysterious things, such as the Georgia Guidestones. Even the logo font on the cover has been improved for this issue (I wish they’d keep it!).

Apparently, the puzzles in this issue go a little deeper than they appear on the surface. I imagine the puzzle solvers who visit this website (even those who are not regular Wired readers) will enjoy this issue as well. Check it out!

On a related note, I recently picked up 23 volumes of the Time-Life series, Mysteries of the Unknown, on Ebay, for a song (about a dollar a book). The production values in those old Time-Life books was remarkable, especially when contrasted with the shape the publishing industry is in today.

BarCamp LA this weekend

April 29th, 2009

I’ll be at BarCamp LA this Saturday, attempting to initiate a music-nerdery session that covers such topics as MIDI control in Processing, Mechanical Music and Process Music.

I may also do a session on Mind Reading with Google, or Flickr Hacks, if there’s sufficient interest. If there’s something special you’d like me to cover, such as making the perfect Tomato Sauce, or making Twitter Bots, let me know…

More info on BarCamp here – there are sessons on both Saturday and Sunday in Culver City…

UPDATE: The presentation was mostly impromptu, and a lot of fun – here’s a photo from Jonathan Strauss :

My first Barcamp was awesome! You should come check out the next one. Happens twice a year…

The little red piano now has it’s own twitter account, by the way…