#!/usr/bin/env python

from blinkenlights import dimmer, setup, cleanup

pin = 18
bpm = 70

setup(pin)

up = range(10)
down = range(9)
down.reverse()
spectrum = up + down + [-1]

period = 60.0 / bpm # seconds
time_per_level = period / len(spectrum)

for i in range(10):
    for j in (spectrum):
        brightness = (j+1) / 10.0
        dimmer(brightness, time_per_level, pin)

cleanup()

@@ -85,9 +85,9 @@
 m = 
-7
+5
 0%0A%0As
@@ -193,16 +193,29 @@
  / bpm #
+ period is in
  seconds
@@ -254,16 +254,75 @@
 pectrum)
+%0A# if time_per_level %3E 0.08 then the levels look too jerky.
 %0A%0Afor i 
@@ -334,16 +334,27 @@
 nge(10):
+ # 10 beats
 %0A    for

Clarify some comments