This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from typing import Any, List | |
# Check input character is a token separator | |
def is_tok_sep(c: str) -> bool: | |
return c in "() \r\n\t\f" | |
# Parse input string into a list of all parentheses and atoms (int or str), | |
# exclude whitespaces. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _winreg as reg | |
import win32file | |
adapter_key = r'SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' | |
def get_device_guid(): | |
with reg.OpenKey(reg.HKEY_LOCAL_MACHINE, adapter_key) as adapters: | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
'''Read fully linked TI COFF file, and generate AIS format file | |
Commandline parameters | |
enable sequential read, | |
pll and emifb configuration | |
pinmux configuration | |
enable checksums | |
'Eliot Blennerhassett' <eblennerhassett@audioscience.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding: utf8 -*- | |
# implementation of recipe on: http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt | |
import numpy as n, pylab as p | |
# variaveis de parametrizacao | |
fa=44100. | |
f=2. | |
# tipos: LPF, HPF, BPF, BPF2, notch | |
# APF, peakingEQ, lowShelf, highShelf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 28 18:51:00 2013 | |
UNFINISHED AND BUGGY | |
Python/SciPy implementation of the filters described in | |
"Cookbook formulae for audio EQ biquad filter coefficients" | |
by Robert Bristow-Johnson | |
http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt |