Example #1
0
#!/usr/bin/python
#
#	Modular Synth Program controlled by wired mothership controller
#
import time, uuid, bitarray, signal, numpy, sys
from engine import AudioEngine
from controller import AudioController, ConsoleController

def sigint_handler(signal, frame):
	print('Quitting')
	engine.deactivate()
	controller.deactivate()
	exit(0)
signal.signal(signal.SIGINT, sigint_handler)

# setup audio engine to run effects
engine = AudioEngine('effects')
engine.activate()

# setup audio controller and pass it the engine
controller = AudioController(engine)

# setup user console
console = ConsoleController(engine)

# quit
engine.deactivate()
controller.deactivate()
Example #2
0
#
#	Modular Synth Program controlled by wired mothership controller
#
import time, uuid, bitarray, signal, numpy, sys
from engine import AudioEngine
from controller import AudioController, ConsoleController


def sigint_handler(signal, frame):
    print('Quitting')
    engine.deactivate()
    controller.deactivate()
    exit(0)


signal.signal(signal.SIGINT, sigint_handler)

# setup audio engine to run effects
engine = AudioEngine('effects')
engine.activate()

# setup audio controller and pass it the engine
controller = AudioController(engine)

# setup user console
console = ConsoleController(engine)

# quit
engine.deactivate()
controller.deactivate()
Example #3
0
#!/usr/bin/python
#
#	Performance Tests for AudioEngine
#
import time
from engine import AudioEngine

engine = AudioEngine('effects')
engine.activate()

while engine.running:
	try:
		engine.add_effect(['square_wave'])
	except InputSyncError:
		break
	print len(engine.running_effects), engine.running_time
	time.sleep(0.1)
Example #4
0
#!/usr/bin/python
#
#	Performance Tests for AudioEngine
#
import time
from engine import AudioEngine

engine = AudioEngine('effects')
engine.activate()

while engine.running:
    try:
        engine.add_effect(['square_wave'])
    except InputSyncError:
        break
    print len(engine.running_effects), engine.running_time
    time.sleep(0.1)