{
 "timestamp": "2026-06-18T14:46:07.278Z",
 "code": "# Community example: distorted bass jam with noise layers\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 control kr, mix: knit(0.2, 32, 0.6, 32).look\n control d, distort: [0,0.2,0.4,0.8].choose\n control r, room: [0,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).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 n2 = :c5\n\n use_synth :sine\n use_synth_defaults release: 0.5\n play n if spread(1,16).look\n\n use_synth_defaults release: 0.2\n play n1, pan: rdist(0.6) if spread(7,16).look\n play n2, pan: rdist(0.6), amp: 0.25 if spread(11,16).look\n\n use_synth :bnoise\n use_synth_defaults release: 0.2, cutoff: rrand_i(50, 90)\n play n, pan: rdist(0.4), amp: 0.4 if spread(11,16).look\n\n sleep 0.25\n end\n end\n end\nend\n",
 "duration": 30000,
 "name": "comm-community__23_bass_distortion",
 "desktop": {
 "wavPath": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/desktop-recordings/desktop_2026-06-18T14-44-52-737Z_comm-community__23_bass_distortion.wav",
 "stats": {
 "duration": 31.370666666666665,
 "peak": 1,
 "rms": 0.1839,
 "clipping": 0.11,
 "sampleRate": 48000,
 "channels": 2
 },
 "ok": true,
 "pitch": {
 "count": 89,
 "median_spacing_s": 0.25,
 "midi": [
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 72,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 72,
 48,
 72,
 48,
 48,
 72,
 46,
 72,
 46,
 46,
 71,
 58,
 71,
 72,
 46,
 46,
 74,
 46,
 73,
 46,
 58,
 46,
 72,
 46,
 72,
 72,
 66,
 46,
 54,
 58,
 48,
 72,
 48,
 48,
 72,
 72,
 72,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 48,
 72,
 48,
 72,
 72,
 48,
 72,
 48,
 72,
 46,
 72,
 46,
 46,
 47,
 46,
 47,
 58,
 46,
 58,
 58,
 46,
 45,
 58,
 46,
 73
 ],
 "pc": [
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 10,
 0,
 10,
 10,
 11,
 10,
 11,
 0,
 10,
 10,
 2,
 10,
 1,
 10,
 10,
 10,
 0,
 10,
 0,
 0,
 6,
 10,
 6,
 10,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 10,
 0,
 10,
 10,
 11,
 10,
 11,
 10,
 10,
 10,
 10,
 10,
 9,
 10,
 10,
 1
 ],
 "names": [
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "A#2",
 "C5",
 "A#2",
 "A#2",
 "B4",
 "A#3",
 "B4",
 "C5",
 "A#2",
 "A#2",
 "D5",
 "A#2",
 "C#5",
 "A#2",
 "A#3",
 "A#2",
 "C5",
 "A#2",
 "C5",
 "C5",
 "F#4",
 "A#2",
 "F#3",
 "A#3",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C5",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "C5",
 "C5",
 "C3",
 "C5",
 "C3",
 "C5",
 "A#2",
 "C5",
 "A#2",
 "A#2",
 "B2",
 "A#2",
 "B2",
 "A#3",
 "A#2",
 "A#3",
 "A#3",
 "A#2",
 "A2",
 "A#3",
 "A#2",
 "C#5"
 ],
 "method": "onset",
 "confidence": 1,
 "inconclusive": false,
 "compare": "midi"
 }
 },
 "web": {
 "wavPath": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/2026-06-18T14-44-53-810Z_inline_audio.wav",
 "stats": {
 "duration": 29.696,
 "peak": 0.9175,
 "rms": 0.1265,
 "clipping": 0,
 "sampleRate": 48000,
 "channels": 2
 },
 "ok": true,
 "pitch": {
 "count": 85,
 "median_spacing_s": 0.25,
 "midi": [
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 72,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 72,
 48,
 72,
 48,
 48,
 72,
 46,
 73,
 46,
 46,
 42,
 58,
 71,
 72,
 58,
 46,
 71,
 46,
 46,
 58,
 46,
 72,
 46,
 72,
 71,
 72,
 46,
 58,
 71,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 48,
 48,
 72,
 48,
 72,
 48,
 72,
 48,
 42,
 72,
 48,
 72,
 48,
 72,
 72,
 46,
 46,
 58,
 46,
 58,
 72,
 44,
 54,
 58,
 41,
 46,
 43,
 46,
 46
 ],
 "pc": [
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 10,
 1,
 10,
 10,
 6,
 10,
 11,
 0,
 10,
 10,
 11,
 10,
 10,
 10,
 10,
 0,
 10,
 0,
 11,
 0,
 10,
 10,
 11,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 0,
 6,
 0,
 0,
 0,
 0,
 0,
 0,
 10,
 10,
 10,
 10,
 10,
 0,
 8,
 6,
 10,
 5,
 10,
 7,
 10,
 10
 ],
 "names": [
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "A#2",
 "C#5",
 "A#2",
 "A#2",
 "F#2",
 "A#3",
 "B4",
 "C5",
 "A#3",
 "A#2",
 "B4",
 "A#2",
 "A#2",
 "A#3",
 "A#2",
 "C5",
 "A#2",
 "C5",
 "B4",
 "C5",
 "A#2",
 "A#3",
 "B4",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "C5",
 "C3",
 "F#2",
 "C5",
 "C3",
 "C5",
 "C3",
 "C5",
 "C5",
 "A#2",
 "A#2",
 "A#3",
 "A#2",
 "A#3",
 "C5",
 "G#2",
 "F#3",
 "A#3",
 "F2",
 "A#2",
 "G2",
 "A#2",
 "A#2"
 ],
 "method": "onset",
 "confidence": 1,
 "inconclusive": false,
 "compare": "midi"
 },
 "toolFailReason": null,
 "errors": []
 },
 "spectrogram": {
 "l2_mel_db": 14.079909324645996,
 "mfcc_distance": 133.681640625,
 "frames_compared": 2785,
 "spectrogram_png": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/compare_2026-06-18T14-45-29-505Z_comm-community__23_bass_distortion_spectrogram.png",
 "desktop_peak_freq_hz": 132.00229513770824,
 "web_peak_freq_hz": 130.2532327586207,
 "per_beat": null
 },
 "spectrogramError": null,
 "reportPath": "/Users/mrityunjaybhardwaj/Documents/projects/sonicPiWeb/.captures/compare_2026-06-18T14-45-29-505Z_comm-community__23_bass_distortion.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": 149,
 "web": 147,
 "ratio": 0.9865771812080537,
 "significant": true,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": 0
 },
 {
 "synthdef": "sonic-pi-bnoise",
 "desktop": 86,
 "web": 85,
 "ratio": 0.9883720930232558,
 "significant": true,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": 0
 },
 {
 "synthdef": "sonic-pi-basic_mono_player",
 "desktop": 23,
 "web": 23,
 "ratio": 1,
 "significant": true,
 "status": "match",
 "desktopOnset": 12,
 "webOnset": 12
 }
 ],
 "fxRows": [
 {
 "synthdef": "sonic-pi-fx_distortion",
 "desktop": 1,
 "web": 1,
 "ratio": 1,
 "significant": false,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": -1.985
 },
 {
 "synthdef": "sonic-pi-fx_krush",
 "desktop": 1,
 "web": 1,
 "ratio": 1,
 "significant": false,
 "status": "match",
 "desktopOnset": 0,
 "webOnset": -1.985
 },
 {
 "synthdef": "sonic-pi-fx_reverb",
 "desktop": 1,
 "web": 1,
 "ratio": 1,
 "significant": false,
 "status": "match",
 "desktopOnset": null,
 "webOnset": -1.985
 }
 ],
 "desktopTotal": 258,
 "webTotal": 255,
 "totalRatio": 0.99,
 "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,
 0.5,
 0.75,
 0.75,
 1.25,
 1.25,
 1.5,
 1.75,
 2,
 2.25,
 2.5,
 2.75,
 3,
 3,
 3.5,
 3.5,
 3.75,
 4,
 4,
 4,
 4.5,
 4.75,
 4.75,
 5.25,
 5.25,
 5.5,
 5.75,
 6,
 6.25,
 6.5,
 6.75,
 7,
 7,
 7.5,
 7.5,
 7.75,
 8,
 8,
 8,
 8.5,
 8.75,
 8.75,
 9.25,
 9.25,
 9.5,
 9.75,
 10,
 10.25,
 10.5,
 10.75,
 11,
 11,
 11.5,
 11.5,
 11.75,
 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,
 30.75,
 31,
 31
 ],
 "webOnsets": [
 0,
 0,
 0,
 0.5,
 0.75,
 0.75,
 1.25,
 1.25,
 1.5,
 1.75,
 2,
 2.25,
 2.5,
 2.75,
 3,
 3,
 3.5,
 3.5,
 3.75,
 4,
 4,
 4,
 4.5,
 4.75,
 4.75,
 5.25,
 5.25,
 5.5,
 5.75,
 6,
 6.25,
 6.5,
 6.75,
 7,
 7,
 7.5,
 7.5,
 7.75,
 8,
 8,
 8,
 8.5,
 8.75,
 8.75,
 9.25,
 9.25,
 9.5,
 9.75,
 10,
 10.25,
 10.5,
 10.75,
 11,
 11,
 11.5,
 11.5,
 11.75,
 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,
 30.75
 ],
 "comparedLen": 147,
 "timingMatched": true,
 "firstMismatchIdx": -1,
 "maxDevMs": 0,
 "noteMatched": true,
 "matched": true
 },
 {
 "synthdef": "sonic-pi-bnoise",
 "desktopOnsets": [
 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,
 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,
 30.75
 ],
 "comparedLen": 85,
 "timingMatched": true,
 "firstMismatchIdx": -1,
 "maxDevMs": 0,
 "noteMatched": true,
 "matched": true
 },
 {
 "synthdef": "sonic-pi-basic_mono_player",
 "desktopOnsets": [
 12,
 15,
 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,
 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
 ],
 "comparedLen": 23,
 "timingMatched": true,
 "firstMismatchIdx": -1,
 "maxDevMs": 0,
 "noteMatched": true,
 "matched": true
 }
 ],
 "reasons": [
 "beep: 147 onsets match within ε (max Δ 0ms), notes match",
 "bnoise: 85 onsets match within ε (max Δ 0ms), notes match",
 "basic_mono_player: 23 onsets match within ε (max Δ 0ms), notes match"
 ]
 }
 },
 "note": "STRUCTURE-MATCH · onset-seq match · d258/w255"
 }
}