add docs
This commit is contained in:
parent
7207a8e560
commit
22779c4a69
7 changed files with 234 additions and 0 deletions
BIN
docs/TheoryOfCCDFT/cc-screenshot3.png
Normal file
BIN
docs/TheoryOfCCDFT/cc-screenshot3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
BIN
docs/TheoryOfCCDFT/chop.wav
Normal file
BIN
docs/TheoryOfCCDFT/chop.wav
Normal file
Binary file not shown.
BIN
docs/TheoryOfCCDFT/chop2.wav
Normal file
BIN
docs/TheoryOfCCDFT/chop2.wav
Normal file
Binary file not shown.
BIN
docs/TheoryOfCCDFT/chopfast.png
Normal file
BIN
docs/TheoryOfCCDFT/chopfast.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
docs/TheoryOfCCDFT/chopfast.wav
Normal file
BIN
docs/TheoryOfCCDFT/chopfast.wav
Normal file
Binary file not shown.
16
docs/TheoryOfCCDFT/test.py
Normal file
16
docs/TheoryOfCCDFT/test.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import struct
|
||||
import numpy as np
|
||||
from scipy import signal as sg
|
||||
import soundfile as sf
|
||||
|
||||
Fs = 44100
|
||||
freq = 40
|
||||
chop = 200
|
||||
samples = 44100
|
||||
|
||||
x = np.arange(samples)
|
||||
y = 10000 * np.sin(2 * np.pi * freq * x / Fs)
|
||||
c = sg.square(2 * np.pi * chop * x / Fs)
|
||||
|
||||
sf.write("chop.wav", (y * c).astype(np.int16), samplerate = Fs)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue