Skip to content

Instantly share code, notes, and snippets.

@JayMcYaru
JayMcYaru / spectralRotation.py
Last active May 19, 2024 00:03 — forked from ravarcheon/spectralRotation.py
rotates an audio file by 90 degrees in the spectrum while being a reversible process with minimal loss (only floating point errors which are like -150 dB but thats literally silence ahaha~)
import numpy as np
import soundfile as sf
from scipy.fftpack import fft, ifft
from tkinter import filedialog
import tkinter as tk
import os
def open_file_dialog():
root = tk.Tk()
root.withdraw()