Musical Ngrams

What are the most repeated phrases of musical compositions?  Naturally I wrote a program to tell me!

Terry Riley’s “In C” (in Perl)

The composer Terry Riley was experimenting with generative forms of music and came up with an interesting technique: Give fragments of musical phrases (motifs) to musicians to play in order, but looping however many times they desire.  This results in a sort of “free-form round” – like “Row Your Boat”, only schizophrenic with phrases appearing […]

Linguistic Analysis of the State of the Union Addresses

This weekend I harvested 231 State of the Union addresses up to 2017 and put them through NLP processing.

Prime Group Percentages

As usual, I am curious about the distribution of the primes.  This morning I wondered what percent of numbers with N digits were prime.  Not an earth shattering curiosity…  Naturally, I wrote a little perl program to answer it for me. 

Dimensional Personality Disorder Assessment

Timothy W. Butcher and I collaborated on a number of diverse projects.  One was a personality disorder quiz that he devised while taking an abnormal psychology university course. Since 1999, when we made it, the quiz and the anonymous data and chart history has been lost to time.  But recently I found and resurrected the […]

Kung Fu Wisdom

So I downloaded the transcripts of the classic television show, Kung Fu and wondered what philosophical insight they might hold…

Bach Note Transition Frequency “Music”

What are the note frequencies of music by Bach?  That is, “How often does an F follow a C?” etc.  What does it sound like if you “reconstruct” playable music from these frequencies? Let’s see! First, we find some Bach MIDI.  I chose Jesu Joy of Mans Desiring. Next, we feed that to my note-transition […]

Kirk vs Spock Linguistics Head-to-Head

Today I harvested the three seasons of Star Trek TOS episode scripts from a friendly website hosting the annotated text.  Then I extracted just the lines spoken by Captain Kirk and just the lines of Mr Spock. So how does Kirk match up to Spock linguistically?

Bach Chorale Diversity

What is the relative statistical diversity of Bach chorale harmonisations? Ever since I stumbled upon this Bach Choral Harmony Data Set I’ve been wanting ways to analyze it! So I set out to do just that today with the Shannon Diversity Index with this handy perl code:

Traveling Salesman with Perl, R and Google Maps

tl;dr: ggplot-nyc & googlemap-nyc & TSP-Map (the Dancer app) One day I decided to glue-together a couple cool Perl modules and the visualization capabilities of R to generate a map of locations and the computed path of a traveling salesman (TSP) – who in this case is a restaurant critic.