This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import sys | |
import midi | |
def getTempoMap(pattern, maxTick=None): | |
#create a first tempo (default to 120, if there is no tempo event) | |
tempoMap = [[0, .5 / pattern.resolution]] | |
lastTick = 0 | |
for track in pattern: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Two alternatives for scene switch callback. | |
1. Using a custom made Hook() object, which responds only *after* a scene | |
change has been made. This means that if a scene switch request contains | |
a non existing scene/subscene, nothing happens. | |
2. Rewriting the private Engine.scene_switch_callback function, which | |
intercepts scene switch requests and can do some further actions before | |
the change is actually made. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
from mididings import * | |
config( | |
client_name='MidiKeyPress', | |
in_ports = [('Mixer', 'USB Midi 4i4o:.*MIDI 1')], | |
out_ports = 0, | |
) |
NewerOlder