From b35e4f86fbb5768c46ee9c2436b645e53b65b3a6 Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 11 Aug 2020 23:26:55 +0100 Subject: [PATCH] Add shebang and tidy some more --- encode_audio.py | 3 +-- play_audio.py | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/encode_audio.py b/encode_audio.py index be936d1..0270895 100755 --- a/encode_audio.py +++ b/encode_audio.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Delta modulation audio encoder. # # Models the Apple II speaker as an RC circuit with given time constant @@ -22,8 +23,6 @@ import librosa import numpy from eta import ETA -PORT = 1977 - OPCODES = { 'tick_page1': 0x00, 'notick_page1': 0x09, diff --git a/play_audio.py b/play_audio.py index 5978eb3..41dcb09 100755 --- a/play_audio.py +++ b/play_audio.py @@ -1,11 +1,6 @@ +#!/usr/bin/env python3 import socketserver import sys -import functools -import random - -import numpy -from scipy.io import wavfile -import scipy.signal as sps PORT = 1977