 
 # Musical Constants
 # Boundary between the left-hand and right-hand patterns.
-LIMINAL_KEY = 40
+LIMINAL_KEY = 46
 MAX_VELOCITY = 100
 SHARP_NAMES = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#']
 FLAT_NAMES = ['A', 'Bb', 'B', 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab']

        p.intensity *= Math.max(0, 1 - (noteAge / noteSustain))

        # Falloff gets sharper as the note gets higher
        p.falloff = 15 * Math.pow(2, (p.note.key - LIMINAL_KEY) / 6)

        # Add influence of LFOs
        for key, note of lfoNotes

            else
                lfoNotes[key] = info

        # when 0xb  # Voice 0, Control Change
        #     switch message[1]
        #         when 7, 33   # "Data entry" / "C1" slider, brightness
        #             brightness = message[2] * 2.0 / 127

        #         when 1, 34   # "Modulation" / "C2" slider, particle speed
        #             console.log message[2]
        #             particleLifetime = 0.1 + message[2] * 2.0 / 127

        # when 0xe  # Voice 0, Pitch Bend
        #     # Default spin 1.0, but allow forward/backward
        #     spinRate = (message[2] - 64) * 10.0 / 64
    console.log logMsg

draw = () ->
