{
 "timestamp": "2026-06-18T14:55:37.271Z",
 "code": "# Source: https://in-thread.sonic-pi.net/t/bass-and-noise-jam-in-sonic-pi/9878\n# Author: Relaxnow\n# Title: Bass and noise jam in Sonic Pi\n# Captured: 2026-04-24\n\nset_volume! 2\n\nwith_fx :distortion do |d|\n with_fx :krush do |kr|\n with_fx :reverb do |r|\n\n live_loop :a1 do\n tick\n kn = 32\n control kr, res: [0,0,0,0,0.2,0.4,0.8].choose, pre_mix: [0,0,0,0.2,0.4,0.8].choose, mix: knit(0.2,kn, 0.6,kn).look\n control d, distort: [0,0.2,0.4,0.8].choose, pre_mix: [0.2,0.4,0.8].choose\n control r, room: [0,0.2,0.4,0.8].choose, pre_mix: [0.2,0.4,0.8].choose\n\n ki = 16\n kick = knit(0,ki*3, 1,ki, 2,ki*4).look\n case kick\n when 0\n when 1\n sample :bd_fat, amp: 2 if (spread(1,12)*1+spread(3,4).rotate(1)).look\n when 2\n sample :bd_fat, amp: 2 if spread(11,32).look\n end\n\n k = 16\n n = :c2+knit(0,k*2,-2,k*2).look\n n1 = n+12\n\n hi = 16\n highnotes = 0\n highnotes = knit(0,hi*3, 1,hi*4,2, hi*4).look\n case highnotes\n when 0\n when 1\n n2 = :c5\n when 2\n nn = 4\n n2 = :c5+knit(0,nn*6, 7,nn*2, 5,nn, -2,nn).look\n end\n\n use_synth :sine\n use_synth_defaults release: [0.1,0.2,0.4].choose+0.4\n play n if spread(1,16).look\n\n use_synth_defaults release: [0.1,0.2,0.4].choose\n play n1+line(0,0.4,steps: 8).choose, pan: rdist(0.6) if spread(7,16).look\n\n use_synth_defaults release: [0.1,0.2,0.4].choose\n play n2+line(0,0.3,steps: 8).choose, pan: rdist(0.6), amp: 0.25 if spread(11,16).look\n\n use_synth :bnoise\n use_synth_defaults release: [0.1,0.2,0.4].choose, cutoff: rrand_i(50,90)\n play n+line(0,0.2,steps: 8).choose, pan: rdist(0.4), amp: 0.4 if spread(11,16).look\n\n sleep 0.25\n end\n\n end\n end\nend\n",
 "duration": 30000,
 "name": "comm-in-thread-forum__31_bass_noise_jam",
 "desktop": {
 "wavPath": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/desktop-recordings/desktop_2026-06-18T14-54-22-384Z_comm-in-thread-forum__31_bass_noise_jam.wav",
 "stats": {
 "duration": 31.370666666666665,
 "peak": 1,
 "rms": 0.315,
 "clipping": 1.68,
 "sampleRate": 48000,
 "channels": 2
 },
 "ok": true,
 "pitch": {
 "count": 66,
 "median_spacing_s": 0.32,
 "midi": [
 55,
 48,
 48,
 40,
 48,
 48,
 48,
 40,
 48,
 41,
 48,
 43,
 48,
 44,
 43,
 48,
 43,
 48,
 48,
 48,
 46,
 47,
 47,
 55,
 46,
 47,
 46,
 46,
 72,
 46,
 72,
 47,
 72,
 46,
 44,
 72,
 48,
 48,
 48,
 48,
 72,
 48,
 48,
 48,
 48,
 48,
 42,
 72,
 48,
 40,
 48,
 48,
 72,
 47,
 47,
 40,
 47,
 72,
 43,
 47,
 47,
 46,
 72,
 46,
 68,
 46
 ],
 "pc": [
 7,
 0,
 0,
 4,
 0,
 0,
 0,
 4,
 0,
 5,
 0,
 7,
 0,
 8,
 7,
 0,
 7,
 0,
 0,
 0,
 10,
 11,
 11,
 7,
 10,
 11,
 10,
 10,
 0,
 10,
 0,
 11,
 0,
 10,
 8,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 6,
 0,
 0,
 4,
 0,
 0,
 0,
 11,
 11,
 4,
 11,
 0,
 7,
 11,
 11,
 10,
 0,
 10,
 8,
 10
 ],
 "names": [
 "G3",
 "C3",
 "C3",
 "E2",
 "C3",
 "C3",
 "C3",
 "E2",
 "C3",
 "F2",
 "C3",
 "G2",
 "C3",
 "G#2",
 "G2",
 "C3",
 "G2",
 "C3",
 "C3",
 "C3",
 "A#2",
 "B2",
 "B2",
 "G3",
 "A#2",
 "B2",
 "A#2",
 "A#2",
 "C5",
 "A#2",
 "C5",
 "B2",
 "C5",
 "A#2",
 "G#2",
 "C5",
 "C3",
 "C3",
 "C3",
 "C3",
 "C5",
 "C3",
 "C3",
 "C3",
 "C3",
 "C3",
 "F#2",
 "C5",
 "C3",
 "E2",
 "C3",
 "C3",
 "C5",
 "B2",
 "B2",
 "E2",
 "B2",
 "C5",
 "G2",
 "B2",
 "B2",
 "A#2",
 "C5",
 "A#2",
 "G#4",
 "A#2"
 ],
 "method": "onset",
 "confidence": 1,
 "inconclusive": false,
 "compare": "midi"
 }
 },
 "web": {
 "wavPath": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/2026-06-18T14-54-23-644Z_inline_audio.wav",
 "stats": {
 "duration": 29.696,
 "peak": 1,
 "rms": 0.2138,
 "clipping": 0.01,
 "sampleRate": 48000,
 "channels": 2
 },
 "ok": true,
 "pitch": {
 "count": 65,
 "median_spacing_s": 0.415,
 "midi": [
 55,
 48,
 48,
 48,
 43,
 48,
 48,
 48,
 47,
 49,
 46,
 48,
 43,
 49,
 40,
 50,
 48,
 44,
 48,
 48,
 46,
 46,
 46,
 41,
 44,
 46,
 46,
 46,
 84,
 46,
 72,
 46,
 72,
 46,
 46,
 72,
 48,
 48,
 48,
 48,
 72,
 48,
 48,
 44,
 48,
 48,
 49,
 42,
 72,
 48,
 46,
 48,
 48,
 46,
 46,
 46,
 46,
 46,
 72,
 44,
 46,
 46,
 46,
 72,
 46
 ],
 "pc": [
 7,
 0,
 0,
 0,
 7,
 0,
 0,
 0,
 11,
 1,
 10,
 0,
 7,
 1,
 4,
 2,
 0,
 8,
 0,
 0,
 10,
 10,
 10,
 5,
 8,
 10,
 10,
 10,
 0,
 10,
 0,
 10,
 0,
 10,
 10,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 8,
 0,
 0,
 1,
 6,
 0,
 0,
 10,
 0,
 0,
 10,
 10,
 10,
 10,
 10,
 0,
 8,
 10,
 10,
 10,
 0,
 10
 ],
 "names": [
 "G3",
 "C3",
 "C3",
 "C3",
 "G2",
 "C3",
 "C3",
 "C3",
 "B2",
 "C#3",
 "A#2",
 "C3",
 "G2",
 "C#3",
 "E2",
 "D3",
 "C3",
 "G#2",
 "C3",
 "C3",
 "A#2",
 "A#2",
 "A#2",
 "F2",
 "G#2",
 "A#2",
 "A#2",
 "A#2",
 "C6",
 "A#2",
 "C5",
 "A#2",
 "C5",
 "A#2",
 "A#2",
 "C5",
 "C3",
 "C3",
 "C3",
 "C3",
 "C5",
 "C3",
 "C3",
 "G#2",
 "C3",
 "C3",
 "C#3",
 "F#2",
 "C5",
 "C3",
 "A#2",
 "C3",
 "C3",
 "A#2",
 "A#2",
 "A#2",
 "A#2",
 "A#2",
 "C5",
 "G#2",
 "A#2",
 "A#2",
 "A#2",
 "C5",
 "A#2"
 ],
 "method": "onset",
 "confidence": 1,
 "inconclusive": false,
 "compare": "midi"
 },
 "toolFailReason": null,
 "errors": []
 },
 "spectrogram": {
 "l2_mel_db": 16.043787002563477,
 "mfcc_distance": 155.4711456298828,
 "frames_compared": 2785,
 "spectrogram_png": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/compare_2026-06-18T14-54-59-562Z_comm-in-thread-forum__31_bass_noise_jam_spectrogram.png",
 "desktop_peak_freq_hz": 132.00229513770824,
 "web_peak_freq_hz": 132.0043103448276,
 "per_beat": null
 },
 "spectrogramError": null,
 "reportPath": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/compare_2026-06-18T14-54-59-562Z_comm-in-thread-forum__31_bass_noise_jam.md",
 "reconciledPitch": null,
 "eventParity": {
 "report": {
 "verdict": "STRUCTURE-MATCH",
 "isPrng": true,
 "reasons": [
 "Significant layers present on both sides (PRNG piece — counts/choices vary by )."
 ],
 "rows": [
 {
 "synthdef": "sonic-pi-beep",
 "desktop": 116,
 "web": 113,
 "ratio": 0.9741379310344828,
 "significant": true,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": 0
 },
 {
 "synthdef": "sonic-pi-bnoise",
 "desktop": 86,
 "web": 84,
 "ratio": 0.9767441860465116,
 "significant": true,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": 0
 },
 {
 "synthdef": "sonic-pi-basic_mono_player",
 "desktop": 25,
 "web": 24,
 "ratio": 0.96,
 "significant": true,
 "status": "match",
 "desktopOnset": 12.001,
 "webOnset": 12
 }
 ],
 "fxRows": [
 {
 "synthdef": "sonic-pi-fx_distortion",
 "desktop": 1,
 "web": 1,
 "ratio": 1,
 "significant": false,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": -2.001
 },
 {
 "synthdef": "sonic-pi-fx_krush",
 "desktop": 1,
 "web": 1,
 "ratio": 1,
 "significant": false,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": -2.001
 },
 {
 "synthdef": "sonic-pi-fx_reverb",
 "desktop": 1,
 "web": 1,
 "ratio": 1,
 "significant": false,
 "status": "match",
 "desktopOnset": null,
 "webOnset": -2.001
 }
 ],
 "desktopTotal": 227,
 "webTotal": 221,
 "totalRatio": 0.97,
 "orderMatch": true,
 "desktopOrder": [
 "beep",
 "bnoise",
 "basic_mono_player"
 ],
 "webOrder": [
 "beep",
 "bnoise",
 "basic_mono_player"
 ],
 "sequenceParity": {
 "match": true,
 "epsilonMs": 15,
 "notesChecked": true,
 "rows": [
 {
 "synthdef": "sonic-pi-beep",
 "desktopOnsets": [
 0,
 0,
 0.75,
 1.25,
 1.75,
 2.499,
 2.999,
 3.499,
 3.999,
 3.999,
 4.749,
 5.249,
 5.749,
 6.499,
 6.999,
 7.501,
 8.001,
 8.001,
 8.751,
 9.251,
 9.751,
 10.501,
 11.001,
 11.501,
 12.001,
 12.001,
 12.001,
 12.5,
 12.75,
 12.75,
 13.25,
 13.25,
 13.5,
 13.75,
 14,
 14.25,
 14.5,
 14.75,
 15,
 15,
 15.5,
 15.5,
 15.75,
 16,
 16,
 16,
 16.5,
 16.75,
 16.75,
 17.25,
 17.25,
 17.5,
 17.75,
 18,
 18.25,
 18.5,
 18.75,
 19,
 19,
 19.5,
 19.5,
 19.75,
 20,
 20,
 20,
 20.5,
 20.75,
 20.75,
 21.25,
 21.25,
 21.5,
 21.75,
 22,
 22.25,
 22.5,
 22.75,
 23,
 23,
 23.5,
 23.5,
 23.75,
 24,
 24,
 24,
 24.5,
 24.75,
 24.75,
 25.25,
 25.25,
 25.5,
 25.75,
 26,
 26.25,
 26.5,
 26.75,
 27,
 27,
 27.5,
 27.5,
 27.75,
 28,
 28,
 28,
 28.5,
 28.75,
 28.75,
 29.25,
 29.25,
 29.5,
 29.75,
 30,
 30.25,
 30.5,
 30.75,
 31,
 31
 ],
 "webOnsets": [
 0,
 0,
 0.75,
 1.25,
 1.75,
 2.5,
 3,
 3.5,
 4,
 4,
 4.75,
 5.25,
 5.75,
 6.5,
 7,
 7.5,
 8,
 8,
 8.75,
 9.25,
 9.75,
 10.5,
 11,
 11.5,
 12,
 12,
 12,
 12.5,
 12.75,
 12.75,
 13.25,
 13.25,
 13.5,
 13.75,
 14,
 14.25,
 14.5,
 14.75,
 15,
 15,
 15.5,
 15.5,
 15.75,
 16,
 16,
 16,
 16.5,
 16.75,
 16.75,
 17.25,
 17.25,
 17.5,
 17.75,
 18,
 18.25,
 18.5,
 18.75,
 19,
 19,
 19.5,
 19.5,
 19.75,
 20,
 20,
 20,
 20.5,
 20.75,
 20.75,
 21.25,
 21.25,
 21.5,
 21.75,
 22,
 22.25,
 22.5,
 22.75,
 23,
 23,
 23.5,
 23.5,
 23.75,
 24,
 24,
 24,
 24.5,
 24.75,
 24.75,
 25.25,
 25.25,
 25.5,
 25.75,
 26,
 26.25,
 26.5,
 26.75,
 27,
 27,
 27.5,
 27.5,
 27.75,
 28,
 28,
 28,
 28.5,
 28.75,
 28.75,
 29.25,
 29.25,
 29.5,
 29.75,
 30,
 30.25,
 30.5
 ],
 "comparedLen": 113,
 "timingMatched": true,
 "firstMismatchIdx": -1,
 "maxDevMs": 1,
 "noteMatched": true,
 "matched": true
 },
 {
 "synthdef": "sonic-pi-bnoise",
 "desktopOnsets": [
 0,
 0.5,
 0.75,
 1.25,
 1.5,
 2,
 2.25,
 2.749,
 2.999,
 3.499,
 3.749,
 3.999,
 4.499,
 4.749,
 5.249,
 5.499,
 5.999,
 6.249,
 6.749,
 6.999,
 7.501,
 7.751,
 8.001,
 8.501,
 8.751,
 9.251,
 9.501,
 10.001,
 10.251,
 10.751,
 11.001,
 11.501,
 11.751,
 12.001,
 12.5,
 12.75,
 13.25,
 13.5,
 14,
 14.25,
 14.75,
 15,
 15.5,
 15.75,
 16,
 16.5,
 16.75,
 17.25,
 17.5,
 18,
 18.25,
 18.75,
 19,
 19.5,
 19.75,
 20,
 20.5,
 20.75,
 21.25,
 21.5,
 22,
 22.25,
 22.75,
 23,
 23.5,
 23.75,
 24,
 24.5,
 24.75,
 25.25,
 25.5,
 26,
 26.25,
 26.75,
 27,
 27.5,
 27.75,
 28,
 28.5,
 28.75,
 29.25,
 29.5,
 30,
 30.25,
 30.75,
 31
 ],
 "webOnsets": [
 0,
 0.5,
 0.75,
 1.25,
 1.5,
 2,
 2.25,
 2.75,
 3,
 3.5,
 3.75,
 4,
 4.5,
 4.75,
 5.25,
 5.5,
 6,
 6.25,
 6.75,
 7,
 7.5,
 7.75,
 8,
 8.5,
 8.75,
 9.25,
 9.5,
 10,
 10.25,
 10.75,
 11,
 11.5,
 11.75,
 12,
 12.5,
 12.75,
 13.25,
 13.5,
 14,
 14.25,
 14.75,
 15,
 15.5,
 15.75,
 16,
 16.5,
 16.75,
 17.25,
 17.5,
 18,
 18.25,
 18.75,
 19,
 19.5,
 19.75,
 20,
 20.5,
 20.75,
 21.25,
 21.5,
 22,
 22.25,
 22.75,
 23,
 23.5,
 23.75,
 24,
 24.5,
 24.75,
 25.25,
 25.5,
 26,
 26.25,
 26.75,
 27,
 27.5,
 27.75,
 28,
 28.5,
 28.75,
 29.25,
 29.5,
 30,
 30.25
 ],
 "comparedLen": 84,
 "timingMatched": true,
 "firstMismatchIdx": -1,
 "maxDevMs": 1,
 "noteMatched": true,
 "matched": true
 },
 {
 "synthdef": "sonic-pi-basic_mono_player",
 "desktopOnsets": [
 12.001,
 15.25,
 15.5,
 15.75,
 16,
 16.75,
 17.5,
 18.25,
 19,
 19.75,
 20.5,
 21.25,
 22,
 22.75,
 23.5,
 24,
 24.75,
 25.5,
 26.25,
 27,
 27.75,
 28.5,
 29.25,
 30,
 30.75
 ],
 "webOnsets": [
 12,
 15.25,
 15.5,
 15.75,
 16,
 16.75,
 17.5,
 18.25,
 19,
 19.75,
 20.5,
 21.25,
 22,
 22.75,
 23.5,
 24,
 24.75,
 25.5,
 26.25,
 27,
 27.75,
 28.5,
 29.25,
 30
 ],
 "comparedLen": 24,
 "timingMatched": true,
 "firstMismatchIdx": -1,
 "maxDevMs": 1,
 "noteMatched": true,
 "matched": true
 }
 ],
 "reasons": [
 "beep: 113 onsets match within ε (max Δ 1ms), notes match",
 "bnoise: 84 onsets match within ε (max Δ 1ms), notes match",
 "basic_mono_player: 24 onsets match within ε (max Δ 1ms), notes match"
 ]
 }
 },
 "note": "STRUCTURE-MATCH · onset-seq match · d227/w221"
 }
}