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
[{ | |
"key": "ctrl+e", | |
"command": "cursorEnd", | |
"when": "editorTextFocus" | |
}, ] |
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 | |
import wave | |
import struct | |
import numpy as np | |
from pylab import * | |
def createSinWave (A, f0, fs, length): | |
"""振幅A,基本周波数f0, サンプリング周波数fs,長さlength秒の正弦波を作成して返す""" | |
data = [] |
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 | |
import wave | |
import sys | |
import scipy as sp | |
import matplotlib.pyplot as plt | |
import math | |
chunk= 81920 | |
if len(sys.argv) < 2: |