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 torch | |
import paderbox | |
import numpy as np | |
from scipy.signal import hamming, blackman, get_window, hann | |
import matplotlib.pyplot as plt | |
f = 1500.0 # exactly periodic | |
fs = 48000.0 | |
nfft = 512 |
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
from librosa import stft, istft | |
import pyroomacoustics as pra | |
import numpy as np | |
f = 1500.0 | |
fs = 48000.0 | |
nfft = 512 | |
hop = 128 |
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
from typing import Callable, Dict, List | |
def match_signature(signature, args, kwargs): | |
ret = True | |
args = list(args) | |
kwargs = kwargs.copy() | |
for name, type_ in signature.__annotations__.items(): |
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
# packages in environment at /Users/scheibler/anaconda3: | |
# | |
# Name Version Build Channel | |
_ipyw_jlab_nb_ext_conf 0.1.0 py36h2fc01ae_0 defaults | |
alabaster 0.7.10 py36h174008c_0 defaults | |
anaconda custom py36ha4fed55_0 defaults | |
anaconda-client 1.6.14 py36_0 defaults | |
anaconda-navigator 1.8.3 py36_0 defaults | |
anaconda-project 0.8.2 py36h9ee5d53_0 defaults | |
appnope 0.1.0 py36hf537a9a_0 defaults |
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
/* | |
Example of using the LCDShield v2.0 | |
2011 (c) Fakufaku | |
This examples is released in the public domain | |
The screen backlight is dimmed after 5s. A shake of the display will | |
restore the backlight, thanks to the tilt sensor. | |
*/ |