git config core.autocrlf true
git config core.filemode false
This file contains hidden or 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
| // NOTE: this is an spinback/backspin (DJ hip-hop plates) implemented using | |
| // FM-synthesis in Strudel, use with caution and with lower gains/octaves (bassline) | |
| // - by the increasing index, the spinback would sound more "thin/stretched" on plate | |
| $: note("<e0 eb0 f0 d#0>") | |
| .scale("C:chromatic") | |
| .scaleTranspose(12) | |
| .sound("sawtooth") | |
| .fast(4) | |
| .color("red") |
This file contains hidden or 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
| (function () { | |
| if (window.__waRecorder) { | |
| console.warn('[waRecorder] Already installed.'); | |
| return; | |
| } | |
| const state = { | |
| contexts: new Set(), | |
| recording: false, | |
| buffers: [], // array of [Float32Array, Float32Array, ...] per channel, per block |
This file contains hidden or 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
| // pulsing reese saw bass (for texture) | |
| $: note("a#1") // base bass note | |
| .sound("sawtooth") | |
| .layer( | |
| pattern => pattern.struct("[x -]").transpose(0), | |
| pattern => pattern.struct("[- x]").transpose(12) // octave jump | |
| ) | |
| .cutoff(2000) | |
| .ftype("ladder") |
This file contains hidden or 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
| const edo = 311 | |
| const semitones = Array.from( | |
| { length: edo }, | |
| (_, semitone) => semitone | |
| ) | |
| const ratios = | |
| semitones.map(ratio => | |
| Math.pow(2, ratio/edo)) |
This file contains hidden or 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
| let tuning = 216 | |
| let root = 216 | |
| let edo = 31 | |
| let tempo = 135 | |
| let signature = 4 | |
| let ratio = Math.pow(2, 1/edo) | |
| let frequencies = Array.from( | |
| { length: edo }, | |
| (_, semitone) => | |
| root * Math.pow(ratio, semitone) |
This file contains hidden or 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
| let tuning = 440 | |
| let root = 261.63 | |
| let edo = 72 | |
| let tempo = 135 | |
| let signature = 4 | |
| let ratio = Math.pow(2, 1/edo) | |
| let frequencies = Array.from( | |
| { length: edo }, | |
| (_, semitone) => | |
| root * Math.pow(ratio, semitone) |
This file contains hidden or 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
| // angelcore sample(s) | |
| const leads = (isUpper) => | |
| n( | |
| !isUpper ? | |
| `< 61 61 63*2 - 63 65 61*2 - 61*2 - 63 64 - - - 72*2 - >` : | |
| `< - - - 64*2 - - - - - - - - 67 69 71*2 - 73 >` | |
| ) | |
| .cpm(135/4) | |
| .fast(6) |
This file contains hidden or 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
| // Windows equivalent to Linux/Mac: echo $(head -c 64 /dev/urandom | base64 | tr -d '\n') | |
| // Get-Random in Windows 10/Server 2016 PowerShell uses a CSPRNG seed by default. | |
| // Prior to PS 5.1, seed was system clock. | |
| // For Win 10/2016+ | |
| powershell -command "[Convert]::ToBase64String((1..64|%{[byte](Get-Random -Max 256)}))" | |
| // For Win 8.x/2012 | |
| powershell -command "$r=[byte[]]::new(64);$g=[System.Security.Cryptography.RandomNumberGenerator]::Create();$g.GetBytes($r);[Convert]::ToBase64String($r)" |
This file contains hidden or 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
| <div class="wrapper"> | |
| <div> | |
| <div class="spin-text"> | |
| <div><span>123456</span></div> | |
| </div> | |
| <div class="spin-wrapper"><div> | |
| <div class="spin-container spin-cursor-container"> | |
| <div class="spin spin-cursor"></div> | |
| </div> | |
| <div class="spin-container spin-slices-container"> |
NewerOlder