Skip to content

Commit

Permalink
[frequency] Add Frequency Crusher effect
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Feb 19, 2024
1 parent 0114c23 commit 393cabb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
14 changes: 1 addition & 13 deletions script/svf_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,9 @@
plt.semilogx(f/(np.pi*2), 20*np.log10(np.abs(H10)), label="ω = 1.0")
plt.semilogx(f/(np.pi*2), 20*np.log10(np.abs(H11)), label="ω = 1.1")

# plt.semilogx(f/(np.pi*2), np.angle(H01), label="ω = 0.1")
# plt.semilogx(f/(np.pi*2), np.angle(H02), label="ω = 0.2")
# plt.semilogx(f/(np.pi*2), np.angle(H05), label="ω = 0.5")
# plt.semilogx(f/(np.pi*2), np.angle(H10), label="ω = 1.0")
# plt.semilogx(f/(np.pi*2), np.angle(H11), label="ω = 1.1")

# plt.vlines(0.02*np.pi,-25,0)
# plt.vlines(0.1*np.pi,-25,0)
# plt.vlines(np.pi,-25,0)

plt.legend()
plt.grid(which="major", linewidth=1)
plt.grid(which="minor", linewidth=0.2)
plt.xticks([0.1, 0.5], [0.1, 0.5])
plt.minorticks_on()
plt.legend()
plt.show()

# print(np.abs(H))
6 changes: 6 additions & 0 deletions src/frequency.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,9 @@ The function first calculates the number of frames by dividing the length of the
- adding current and next frame to create overlap
- updating the write_pointer
- adding the overlap to the output array


## Frequency Crusher

- Frequency Domain Effect
- FFT -> Select loudest bins -> IFFT

0 comments on commit 393cabb

Please sign in to comment.