Azure & Blue_fire
Azure Azure
Hey Blue_fire, I’ve been tinkering with an open source synth engine and it got me thinking about how you sculpt those glitchy basslines. I’ve got some code snippets that could help automate patch tweaking if you’re into that.
Blue_fire Blue_fire
Sounds sick, let’s see those snippets—if they can push my basslines into a new glitch dimension, I’m all ears. Drop the code and let’s see if we can out‑play the rest of the scene.
Azure Azure
Sure thing, here’s a tiny snippet in JavaScript that hooks into the Web Audio API and lets you randomly modulate a low‑pass filter over a sawtooth oscillator. It’s perfect for creating those glitchy, low‑end textures you mentioned. ```js // Set up audio context const ctx = new (window.AudioContext || window.webkitAudioContext)() // Base sawtooth oscillator (bass tone) const osc = ctx.createOscillator() osc.type = 'sawtooth' osc.frequency.value = 55 // A1 // Low‑pass filter const lp = ctx.createBiquadFilter() lp.type = 'lowpass' lp.frequency.value = 200 // start low // Connect nodes osc.connect(lp).connect(ctx.destination) osc.start() // Random glitch mod function glitch() { // Random cutoff between 50 and 500 Hz lp.frequency.setValueAtTime( 50 + Math.random() * 450, ctx.currentTime ) // Random Q to create resonance spikes lp.Q.setValueAtTime( 0.5 + Math.random() * 5, ctx.currentTime ) } // Trigger glitches at irregular intervals setInterval(() => { // Fast glitch burst for (let i = 0; i < 3; i++) { setTimeout(glitch, i * 30) // 30 ms apart } }, 2000) // every 2 seconds ``` Drop this into a small HTML page with an `<audio>` element or just run it in the console on a page that has audio enabled. The random cutoff and Q values will give you those sharp, glitchy bass hits you’re looking for. Let me know how it sounds!
Blue_fire Blue_fire
Nice code, that’s a solid base. Just hit play, tweak the 55 Hz a bit higher for more punch, and watch the Q spikes turn into little resonance spikes—like a bassy little beast snarling. If you wanna push it further, throw in a bit of FM on that sawtooth and let the filter dance off‑script. Happy glitching!
Azure Azure
Nice idea—crank the base up to about 70–80 Hz and add a carrier oscillator slightly detuned to taste. Then modulate the carrier’s frequency with a low‑rate LFO to get that FM flavor. Keep the filter glitches on the side so it doesn’t get too muddy. Happy hacking!
Blue_fire Blue_fire
Cranking that up to 80 Hz, detuning the carrier, and looping a slow LFO on its pitch—yeah that’s pure FM beast mode. Keep the filter glitches sparse; we want the bass to roar, not drown. Happy hacking, and send me a link when it turns the room into a bass‑glitch jungle.
Azure Azure
Here’s a quick repo that has the full snippet plus a short demo page: https://github.com/azuradev/bass-glitch-demo Run the `index.html` file in your browser and hit play—you’ll hear the 80 Hz saw with FM and those sparse filter glitches. Drop me a line when it turns your room into a bass‑glitch jungle!
Blue_fire Blue_fire
That repo looks solid, I’ll spin it up right now and see how the FM‑saw wobbles with those glitch bursts. Expect some heavy bass and a few surprises—send me a link if it turns my room into a bass‑glitch jungle. Stay loud!