Skip to content

Instantly share code, notes, and snippets.

View soulthreads's full-sized avatar

Anton Lobashev soulthreads

  • Serbia
  • 05:32 (UTC +02:00)
View GitHub Profile
@soulthreads
soulthreads / ShadertoyFFT.md
Last active November 23, 2023 09:57
Some details on Shadertoy FFT

Shadertoy exposes audio through a 512x2 texture, where the first row is the spectrum, and second row is wave data.

Pixel format is GL_RED GL_UNSIGNED_BYTE, meaning that each pixel contains only one 8-bit channel.

According to this shader from iq the audio in the browser is supposed to have a samplerate of 48kHz, but as it turns out, that's not the case: most likely it will be in 44.1kHz.

@soulthreads
soulthreads / xmobarrc
Created August 9, 2011 14:30
XMonad config
Config { font = "xft:Liberation Mono-8:regular"
, bgColor = "#323232"
, fgColor = "#EEEEEC"
, position = Static { xpos = 0, ypos = 0, width = 1024, height = 11 }
, lowerOnStart = True
, commands =
[
Run Network "eth0" ["-L","0","-H","32","--normal","#8ae234","--high","red"] 10
, Run Network "ppp0" ["-L","0","-H","32","--normal","#8ae234","--high","red"] 10
, Run Network "eth1" ["-L","0","-H","100","--normal","#8ae234","--high","red"] 10