Halstead Software Complexity of Perl Code

The other day I stumbled across the Wikipedia entry for Halstead software complexity and became curious about how the language Perl would measure up. Now I knew the age old adage that “only perl can parse perl”, but I also knew about the PPI set of modules on the CPAN.  So I got to reading/experimenting…

Bach Choral Harmony Network Diagrams

Today I decided to revisit the Bach Choral Harmony data set and look at chord progression transitions. In order to do this I wrote a small program that tallies the movement from one chord to another, and then outputs a Graphviz dot file that can be turned into an image.

Predicting Beatles Song Authorship with scikit-Learn

Yesterday I read about a 10 year effort to predict the author of Beatles songs by lyrics, tonal contour and chord analysis. Hmm very curious.  Can I replicate a part of this I wonder?  tl;dr: beatles.py

Making Chernoff Faces with Perl

Today being a Saturday, I decided to noodle around with the GD::Simple module and constructed rudimentary Chernoff faces – Cartoon data visualization.

Sonic L-Systems

In 1968, Aristid Lindenmayer introduced “L-systems” to the world.  Basically, this is an iterative rewriting system of rules that operates on a string beginning with an “axiom” or initial string.

Book of Revelation Sentiment Analysis

I decided to write my own sentiment analysis library and use it to investigate the KJV Bible Book of Revelation.  The full library is here.

Bible Books Cosine Similarity

How do the books of the KJV Bible compare to each other word for word?  Are Old Testament books more similar to other Old Testament books?  Same for the New Testament?  What about the Greek (Nestle-Aland 26th/27th edition) translation of the New Testament?

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.