Skip to content

Instantly share code, notes, and snippets.

View ravarcheon's full-sized avatar
🍋
!~

ravarcheon ravarcheon

🍋
!~
View GitHub Profile
@ravarcheon
ravarcheon / minphase.py
Created March 6, 2026 02:01
makes a minimum phase version of the input audio
import numpy as np
import soundfile as sf
import os
import tkinter as tk
from tkinter import filedialog
from scipy.fft import fft, ifft, next_fast_len
def minipassMethod(ir):
ir = np.asarray(ir, dtype=np.float64)
@ravarcheon
ravarcheon / theHorse.js
Last active March 10, 2026 19:18
the horse that blocks your screen after a 2 minutes
// ==UserScript==
// @name the horse that stands in your way
// @namespace http://tampermonkey.net/
// @version 2026-03-01
// @description no more than 2 minutes of twitter. the first minute is a clear view, the second minute is where the horse slowly fades in. third minute and beyond there is nothing to see except horse
// @author You
// @match http://*.x.com/*
// @match https://*.x.com/*
// @match http://*.instagram.com/*
// @match https://*.instagram.com/*
@ravarcheon
ravarcheon / spectralRotation.py
Last active March 10, 2026 13:00
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
def rotateSignal(signal,flip):
if flip:
signal = signal[::-1]
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft
rotSig = ifft(x)