Permalink
Browse files

Move fabric core to dsp.py and fake merge changes from haiku

  • Loading branch information...
1 parent 007366c commit b7481b829c1f91d222643353405582844c9ba58e @hecanjog committed Feb 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 fabric/fabric.py → dsp.py
  2. 0 fabric/__init__.py
@@ -12,6 +12,7 @@
import string
import time
import hashlib
+import subprocess
from datetime import datetime
audio_params = [2, 2, 44100, 0, "NONE", "not_compressed"]
@@ -24,6 +25,10 @@
seedstep = 0
seedhash = ''
+def play(sound):
+ aplay = subprocess.Popen(["aplay"], stdin=sound)
+ return aplay.communicate()[0]
+
def lget(list, index, default=True):
""" Safely return a selected element from a list and handle IndexErrors """
try:
View
No changes.

0 comments on commit b7481b8

Please sign in to comment.