Skip to content

Instantly share code, notes, and snippets.

@ericfont
ericfont / convert-circuitjs-export-text-to-wav.py
Last active December 12, 2025 20:16
convert-circuitjs-export-text-to-wav.py with sinc1-5 filter
from scipy.io import wavfile
import scipy
import matplotlib.pyplot as plt
import numpy as np
import sys
def simple_moving_average_numpy(data, window_size):
"""Calculates the Simple Moving Average using numpy.convolve."""
# Create an impulse response (weights) array where each weight is 1/window_size
weights = np.ones(window_size) / window_size
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251211-1725.svg
Created December 11, 2025 22:23
hypothetical no-delay delta-modulation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251210-0338.svg
Created December 10, 2025 08:36
add 100n delay for comparator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251210-0324.svg
Created December 10, 2025 08:23
use sallen key in feedback, and then an extra sallen key for reconstruction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251210-0302.svg
Created December 10, 2025 08:00
try sallen key lowpass
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251210-0254.svg
Created December 10, 2025 07:52
try multiple RC again w/comparator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251210-0204.svg
Created December 10, 2025 07:03
try slowing down dsm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251203-1430.svg
Created December 3, 2025 19:29
passive combo RC lowpass with RLC notch for reconstruction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20251203-1123.svg
Created December 3, 2025 16:21
trying some LRC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.