Skip to content

Instantly share code, notes, and snippets.

View 19wintersp's full-sized avatar
😶‍🌫️
EMR

Patrick Winters 19wintersp

😶‍🌫️
EMR
View GitHub Profile
@19wintersp
19wintersp / vhf.ny
Created May 3, 2024 23:35
ATC VHF radio simulation for Audacity
;nyquist plug-in
;version 4
;type process
;name "VHF RTF"
;release "0.2.0"
;control text "Process audio to imitate VHF radio reception"
;control text "Filters derived from pierr3/afv-native"
;control preset "Filter preset" choice "Schmid ED137B,Garex 220,Rockwell Collins 2100" 0
;control pregain "Pre-scale" float nil 1.0 0.0 1.0
@19wintersp
19wintersp / Cargo.toml
Created March 27, 2022 04:09
Code to generate a WebM file that will show differently depending on the player
[package]
name = "weird-discord-video"
version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "^1.0"
argh = "^0.1"
webm-iterable = "^0.3"
@19wintersp
19wintersp / discord_double_image.rs
Last active December 22, 2021 04:03
Code to generate an image which will show differently when expanded on Discord. (standard dark theme) Bad code, doesn't really deserve a repo of its own. Available in website form at https://discordimage.19wintersp.repl.co/
// depends on https://crates.io/crates/image ^0.23
use std::env::args;
use std::process::exit;
use image::{ GenericImageView, GrayImage, ImageResult, RgbaImage };
use image::imageops::FilterType;
const BRIGHTNESS_THRESHOLD: u8 = 64;
const COLOUR_A: [u8; 4] = [ 8, 8, 9, 255 ];