import time
from transitions.extensions import HierarchicalMachine as Machine
-import pyaudio as pa
import sounddevice as sd
import os.path
file_lock = Lock("file")
-pyaudio = pa.PyAudio()
-
class MusicFile(Machine):
def __init__(self, filename, mapping, name = None, gain = 1):
states = [