Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Move fabric core to dsp.py and fake merge changes from haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
hecanjog committed Feb 23, 2012
1 parent 007366c commit b7481b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fabric/fabric.py → dsp.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import string import string
import time import time
import hashlib import hashlib
import subprocess
from datetime import datetime from datetime import datetime


audio_params = [2, 2, 44100, 0, "NONE", "not_compressed"] audio_params = [2, 2, 44100, 0, "NONE", "not_compressed"]
Expand All @@ -24,6 +25,10 @@
seedstep = 0 seedstep = 0
seedhash = '' seedhash = ''


def play(sound):
aplay = subprocess.Popen(["aplay"], stdin=sound)
return aplay.communicate()[0]

def lget(list, index, default=True): def lget(list, index, default=True):
""" Safely return a selected element from a list and handle IndexErrors """ """ Safely return a selected element from a list and handle IndexErrors """
try: try:
Expand Down
Empty file removed fabric/__init__.py
Empty file.

0 comments on commit b7481b8

Please sign in to comment.