forked from buddhabrot/fusion-zauberstab
version with 6 leds
This commit is contained in:
parent
060324c5a3
commit
1928593710
Binary file not shown.
Binary file not shown.
BIN
inventor2/Imported Components/klaue/klaue.ipt
Normal file
BIN
inventor2/Imported Components/klaue/klaue.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/SpantA.0002.ipt
Normal file
BIN
inventor2/OldVersions/SpantA.0002.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/SpantB.0001.ipt
Normal file
BIN
inventor2/OldVersions/SpantB.0001.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/assembly.0031.iam
Normal file
BIN
inventor2/OldVersions/assembly.0031.iam
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/boden.0007.ipt
Normal file
BIN
inventor2/OldVersions/boden.0007.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/deckel.0014.ipt
Normal file
BIN
inventor2/OldVersions/deckel.0014.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/lasercutter.0001.dwg
Normal file
BIN
inventor2/OldVersions/lasercutter.0001.dwg
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/platte3.0001.ipt
Normal file
BIN
inventor2/OldVersions/platte3.0001.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/platte_drawing.0002.ipt
Normal file
BIN
inventor2/OldVersions/platte_drawing.0002.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/ring_oben.0004.ipt
Normal file
BIN
inventor2/OldVersions/ring_oben.0004.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/ring_unten.0002.ipt
Normal file
BIN
inventor2/OldVersions/ring_unten.0002.ipt
Normal file
Binary file not shown.
BIN
inventor2/OldVersions/vase.0023.ipt
Normal file
BIN
inventor2/OldVersions/vase.0023.ipt
Normal file
Binary file not shown.
BIN
inventor2/SpantB.ipt
Normal file
BIN
inventor2/SpantB.ipt
Normal file
Binary file not shown.
BIN
inventor2/assembly.iam
Normal file
BIN
inventor2/assembly.iam
Normal file
Binary file not shown.
BIN
inventor2/boden.ipt
Normal file
BIN
inventor2/boden.ipt
Normal file
Binary file not shown.
BIN
inventor2/boden.stl
Normal file
BIN
inventor2/boden.stl
Normal file
Binary file not shown.
BIN
inventor2/deckel.ipt
Normal file
BIN
inventor2/deckel.ipt
Normal file
Binary file not shown.
BIN
inventor2/deckel.stl
Normal file
BIN
inventor2/deckel.stl
Normal file
Binary file not shown.
46491
inventor2/exports/assembly.stp
Normal file
46491
inventor2/exports/assembly.stp
Normal file
File diff suppressed because it is too large
Load Diff
BIN
inventor2/exports/explosion.blend
Normal file
BIN
inventor2/exports/explosion.blend
Normal file
Binary file not shown.
2659
inventor2/exports/explosion.svg
Normal file
2659
inventor2/exports/explosion.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 192 KiB |
BIN
inventor2/klaue.stl
Normal file
BIN
inventor2/klaue.stl
Normal file
Binary file not shown.
BIN
inventor2/lasercutter.dwg
Normal file
BIN
inventor2/lasercutter.dwg
Normal file
Binary file not shown.
BIN
inventor2/lasercutter.pdf
Normal file
BIN
inventor2/lasercutter.pdf
Normal file
Binary file not shown.
BIN
inventor2/mutter-halter.stl
Normal file
BIN
inventor2/mutter-halter.stl
Normal file
Binary file not shown.
BIN
inventor2/platte3.ipt
Normal file
BIN
inventor2/platte3.ipt
Normal file
Binary file not shown.
BIN
inventor2/platte_drawing.ipt
Normal file
BIN
inventor2/platte_drawing.ipt
Normal file
Binary file not shown.
BIN
inventor2/ring_oben.ipt
Normal file
BIN
inventor2/ring_oben.ipt
Normal file
Binary file not shown.
BIN
inventor2/ring_unten.ipt
Normal file
BIN
inventor2/ring_unten.ipt
Normal file
Binary file not shown.
BIN
inventor2/staender.stl
Normal file
BIN
inventor2/staender.stl
Normal file
Binary file not shown.
BIN
inventor2/vase.ipt
Normal file
BIN
inventor2/vase.ipt
Normal file
Binary file not shown.
BIN
inventor2/vase.stl
Normal file
BIN
inventor2/vase.stl
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/assembly.ipn
Normal file
BIN
inventor2/zubehoer/assembly.ipn
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/staender_boden.ipt
Normal file
BIN
inventor2/zubehoer/staender_boden.ipt
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/staender_boden.stl
Normal file
BIN
inventor2/zubehoer/staender_boden.stl
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/staender_tisch.ipt
Normal file
BIN
inventor2/zubehoer/staender_tisch.ipt
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/staender_tisch.stl
Normal file
BIN
inventor2/zubehoer/staender_tisch.stl
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/stange_verbinder.ipt
Normal file
BIN
inventor2/zubehoer/stange_verbinder.ipt
Normal file
Binary file not shown.
BIN
inventor2/zubehoer/stange_verbinder.stl
Normal file
BIN
inventor2/zubehoer/stange_verbinder.stl
Normal file
Binary file not shown.
@ -1,3 +1,49 @@
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
|
||||
|
||||
n_plots = 5
|
||||
endtime = 4
|
||||
size = 1000
|
||||
|
||||
time = np.linspace(0,endtime,size)
|
||||
audio = 1023*np.random.random(size=(size))
|
||||
audio = 512+(audio-512)*(0.2)*np.sin(np.linspace(0,endtime*2*3.14*2, size))+(audio-512)*0.3
|
||||
|
||||
fig, axs = plt.subplots(n_plots, 1)
|
||||
axs[0].plot(time,audio)
|
||||
|
||||
audio_norm = audio-512
|
||||
axs[1].plot(time,audio_norm)
|
||||
|
||||
spc = size/endtime
|
||||
|
||||
|
||||
|
||||
audio_norm = np.array(audio_norm)
|
||||
audio_squared = np.square(audio_norm)
|
||||
|
||||
axs[2].plot(time, audio_squared)
|
||||
|
||||
spc = int(size/endtime/40)
|
||||
|
||||
chunks = list()
|
||||
chunktimes = list()
|
||||
energy = 0
|
||||
i = 0
|
||||
for sample, timepoint in zip(audio_squared, time):
|
||||
energy += sample
|
||||
i += 1
|
||||
if i > spc:
|
||||
i = 0
|
||||
chunks.append(energy)
|
||||
chunktimes.append(timepoint)
|
||||
energy = 0
|
||||
|
||||
axs[3].plot(chunktimes, chunks)
|
||||
|
||||
|
||||
|
||||
|
||||
plt.show()
|
Loading…
Reference in New Issue
Block a user