This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// live here: https://schollz.com/wambamjam/ | |
var mouseX = 0; | |
var mouseY = 0; | |
var started = 0; | |
var playNext = false; | |
var doFly = false; | |
var doStop = false; | |
const comp = new Tone.Compressor(-30, 3).toDestination(); | |
// const comp = new Tone.PanVol(0,-12).toDestination(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// move mouse from left to the right of the screen! | |
// exponential | |
( | |
s.waitForBoot({ | |
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav"); // remember to free the buffer later. | |
SynthDef("tapestop1",{ | |
var tape_env=EnvGen.kr(Env.new([1,0.047,1],[1,1],\exponential,releaseNode:1),MouseX.kr()>0.5); | |
var snd = PlayBuf.ar(1, b, tape_env,loop:1); | |
snd = Pan2.ar(snd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to generate a random string of characters | |
generate_random_string() { | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1 | |
} | |
# Function to recursively rename files and directories | |
rename_files_and_dirs() { | |
local path="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> | |
<span class="ant"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
s.waitForBoot({ | |
{ | |
arg freq = 220; | |
var resFreq = freq * 1.5; | |
var sr = SampleRate.ir; | |
var baseFrequencyPeriod = sr / freq; | |
var resFrequencyPeriod = sr / resFreq; | |
var baseFrequencyCounter = Phasor.ar( | |
end: baseFrequencyPeriod, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from itertools import combinations, pairwise, product, count | |
from pathlib import Path | |
from typing import Sequence, Tuple, TypeAlias, Optional, Protocol | |
from numpy._typing import NDArray | |
from numpy.core import numerictypes | |
from numpy.core.function_base import linspace | |
from numpy.typing import ArrayLike | |
from math import cos, radians, sin, sqrt, tau, ceil, pi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from itertools import combinations, pairwise, product, count | |
from pathlib import Path | |
from typing import Sequence, Tuple, TypeAlias, Optional, Protocol | |
from numpy._typing import NDArray | |
from numpy.core import numerictypes | |
from numpy.core.function_base import linspace | |
from numpy.typing import ArrayLike | |
from math import cos, radians, sin, sqrt, tau, ceil, pi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
s.waitForBoot({ | |
SynthDef("jp2",{ | out,amp=0.75,db=0,freq=40, mix=1.0, detune = 0.4,lpf=10,gate=1,timeScale=8 | | |
var note=freq.cpsmidi; | |
var detuneCurve = { |x| | |
(10028.7312891634*x.pow(11)) - | |
(50818.8652045924*x.pow(10)) + | |
(111363.4808729368*x.pow(9)) - | |
(138150.6761080548*x.pow(8)) + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IN; | |
SP1; | |
PA3125,2650; | |
PD; | |
PA3125,2675; | |
PU; | |
PA3150,2650 | |
;PD; | |
PA3150,2725; | |
PU; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IN; | |
SP1; | |
PA3125,2650; | |
PD; | |
PA3125,2675; | |
PU; | |
PA3150,2650; | |
PD; | |
PA3150,2725; | |
PU; |
NewerOlder