Archive | Python

Using Sphinx to Write Technical Books

As I mentioned in a previous blog post, I used Sphinx to write my book, Music for Geeks and Nerds. With Sphinx I could generate HTML, Epub, Mobi (for the Kindle), and two PDF versions (black-and-white and color). Sphinx works quite nicely out-of-the-box for documenting computer programs, but I had to bend it a little […]

Continue Reading 14

My ebook: Music for Geeks and Nerds

I’m happy to announce that I’m launching my ebook, Music for Geeks and Nerds. It uses programming and mathematics to teach same aspects of music and it answers long-standing questions such as why Eb and D# are different, and which sequence sounds better, Pascal’s triangle or Fibonacci (place your bets). I wrote it because I have friends who are programmers, […]

Continue Reading 1

PyCon 2012 was incredible

I attended the 2012 PyCon in Santa Clara were I presented the tutorial Making and understanding music with Python and a little bit of Math. I think the tutorial went well, and I’m in the process of moving the teaching library I used in the tutorial to it’s own github repository (with better code and documentation). My friends […]

Continue Reading 0

Harmonizing Every Scale With Python

I was advising some students the other day about harmonizing non-traditional scales and someone mentioned how it would be useful to have a list of harmonizations for every possible scale. I bragged that I could write a program in half-hour to accomplish it. Of course it took longer than that, but I quickly wrote a […]

Continue Reading 0

SICP in Python

Structure and Interpretation of Computer Programs (a.k.a SICP, or “The Wizard Book”) is considered one of the great computer science books. Some people claim it will make you a better programmer. It was the entry-level computer science subject at MIT and it’s still used in universities like Berkeley. One of the great things about SICP is that it focus on […]

Continue Reading 0