Little Pattern

….Pokoknya ini bagus. Development Log v1.0 setcpm(120/4) const a = note(`<[d4 f#4 a4] [g4 [b4 d5]!2] [f#4 a4 c#5] [e4 [g4 b4]!2]>`) const b = n("~") $: arrange( [4, a], [4, a.jux(rev)], [4, a.rev()] ).s("piano").gain(.8) $: note(`<[a2 <d3 g3 f#3 e3>]>`) .s("piano").gain(.3) v1.1 setcpm(112/4) const u = note(`<[d4 f#4 a4] [g4 <[[b4 d5]] [[b4 d5]!2]>] [f#4 a4 c#5] [e4 [g4 b4]!2]>`) const M = arrange( [8, u], [4, u.jux(rev)], [4, u.rev()], ).color("<cyan violet salmon gold>") const ss = note(`<[a2 <d3 g3 f#3 e3>]>`) const transisi = n("~") stack ( arrange( [16, M], [16, M.transpose(12)], [4, transisi], [4, u.fast(2).transpose(-12)], [4, u.fast(2).transpose(-12).rev()], ).s("piano").gain(.8)._pianoroll({labels: 1}), arrange( [16, ss], [16, ss.jux(rev)], [12, ss.rev()] ).s("gm_acoustic_bass").gain(.3)._punchcard({labels:1}) ).room("<0 .2 .4 .6 >").pitchwheel() v1.2 //@by mus setcpm(112/4) const u = note(`<[d4 f#4 a4] [g4 <[[b4 d5]] [[b4 d5]!2]>] [f#4 a4 c#5] [e4 [g4 b4]!2]>`) const M = arrange( [8, u], [4, u.jux(rev)], [4, u.rev()], ).color("<cyan violet salmon gold>") const ss = note(`<[a2 <d3 g3 f#3 e3>]>`) stack ( arrange( [4, M.s("piano")], [4, M.s("gm_epiano2")], [8, M.s("<piano gm_epiano2>")], [16, M.transpose(12).s("piano, gm_epiano2")], [4, u.s("piano")], [4, u.fast(2).transpose(-12).s("gm_epiano2")], [4, u.fast(2).transpose(-12).rev().s("piano")], ).gain(sine.range(0.6, .8))._pianoroll({labels: 1}), arrange( [16, ss], [16, ss.jux(rev)], [12, ss.rev()] ).s("triangle gm_acoustic_bass").sometimesBy(.3, x => x.gain(.3))._punchcard({labels:1}) ).room("<0 .2 .4 .6 >") .sz("<0.2 0.4 0.6 .8>")//room size .pitchwheel() v1.3 setcpm(110/4) const u = note(`<[d4 f#4 a4] [g4 <[[b4 d5]] [[b4 d5]!2]>] [f#4 a4 c#5] [e4 <[[g4 b4]!2] [[g4 b4]]>]>`) const M = arrange( [8, u], [4, u.jux(rev)], [4, u.rev()], ).color("<cyan violet salmon gold>") const ss = note(`<[a2 <d3 g3 f#3 e3>]>`) stack ( arrange( [4, M.s("piano")], [4, M.s("gm_epiano2")], [8, M.s("<piano gm_epiano2>")], [16, M.transpose(12).s("piano, gm_epiano2")], [4, u.s("piano, gm_epiano2")], [4, u.fast(2).transpose(-12).rev().s("gm_epiano2")], [4, u.fast(2).transpose(-12).s("piano")], ).gain(sine.range(0.6, .8))._pianoroll({labels: 1}), arrange( [16, ss], [16, ss.jux(rev)], [12, ss.rev()] ).s("triangle gm_acoustic_bass").sometimesBy(.3, x => x.gain(.3))._punchcard({labels:1}) ).room("<0 .2 .4 .6 >") .sz("<0.2 0.4 0.6 .8>")//room size .pitchwheel() v1.4 setcpm(112/4) const u = note(`< [d4 f#4 a4] [g4 <[[b4 d5]] [[b4 d5]!2]>] [f#4 a4 c#5] [e4 <[[g4 b4]!2] [[g4 b4]]>]>`) const M = arrange( [8, u], [4, u.jux(rev)], [4, u.rev()], ).color("<cyan violet salmon gold>") const ss = note(`< [a2 <d3 g3 f#3 e3>]>`) const j = n("~")//jeda stack ( arrange( [4, M.s("piano")], [4, M.s("gm_epiano2")], [8, M.s("<piano gm_epiano2>")], [16, M.transpose(12).s("piano, gm_epiano2")], [.5, j], [8, u.s("<gm_epiano2 piano>")], [4, u.fast(2).transpose(-12).rev().s("gm_epiano2")], [4, u.fast(2).transpose(-12).rev().s("piano")], [.5, j] ).gain(sine.range(0.6, .8))._pianoroll({labels: 1}), arrange( [16, ss], [16, ss.jux(rev)], [.5, j], [16, ss.rev()], [0.5, j] ).s("<triangle gm_acoustic_bass>").sometimesBy(.2, x => x.gain(.3))._punchcard({labels:1}) ).room("<0 .2 .4 .6 >") .sz("<0.2 0.4 0.6 .8>")//room size .pitchwheel() v1.5 setcpm(112/4) const u = note(`< [<[d4 f#4 a4] [f#4 a4 d5]>][g4 <[[b4 d5]] [[b4 d5]!2]>] [<[f#4 a4 c#5] [a4 c#5 f#4]>][e4 <[[g4 b4]!2] [[g4 b4]]>]>`) const M = arrange( [8, u], [4, u.jux(rev)], [4, u.rev()], ).color("<cyan violet salmon gold>") const ss = note(`< [a2 <d3 g3 f#3 e3>]>`) const j = n("~")//jeda stack ( arrange( [1, u.rev().slow(2).s("piano, triangle").transpose(-12)], [4, M.s("piano")], [4, M.s(" triangle")], [8, M.s("<piano triangle>")], [16, M.transpose(12).s("piano, triangle")], [.5, j], [8, u.s("<triangle piano>")], [4, u.fast(2).rev().s("triangle")], [4, u.fast(2).transpose(-12).rev().s("piano")], [.5, j] ).gain(tri.range(0.4, .8))._pianoroll({labels: 1}), arrange( [1, j], [16, ss], [16, ss.jux(rev)], [.5, j], [16, ss.rev()], [0.5, j] ).s("<triangle gm_acoustic_bass>").sometimesBy(.1, x => x.gain(.3))._punchcard({labels:1}) ).room("<0 .2 .4 .6 >") .sz("<.2 .4 .6 .8>")//room size .pitchwheel() v1.6 documented in the recording below. ...

7 November 2026 · mus

Amina

Setelah sekitar dua minggu tidak membuka Sonic Pi, aku kembali menulis beberapa baris kode. Dimulai dengan sample vinyl_hiss, lalu entah bagaimana aku teringat struktur asam amino. Aku mulai menamai variabel dan loop dengan istilah molekul yang kukenal. sekadar membiarkan sesuatu yang pernah kupelajari meresap ke dalam proses kreatif. Amina Code # title amina # by mus use_bpm 112 Hydrogen = ring(0.2, 0.4, 0.3, 0.5) Carboxyl = ring(0.1, 0.2, 0.3, 0.4, 0.5) alpha_c = chord(:g4, :m9) beta_c = chord(:c4, :dom7) gamma_c = chord(:d4, :m9) delta_c = chord(:f4, :maj7) Carbon = ring(alpha_c, beta_c, gamma_c, delta_c) live_loop :hydroxyl do sync :bar h = Hydrogen.tick set :H, h sample :vinyl_hiss, amp: h sleep 1 end live_loop :oxygen do sync :bar sample :bd_jazz, amp: 0.6 sleep 0.5 sample :elec_blip, amp: 0.8 sleep 0.5 sample :elec_snare, amp: 0.6 sleep 0.5 sample :elec_blip2, amp: 0.8 sleep 0.5 end live_loop :oxygen_hh do sync :bar 4.times do sample :hat_tap, amp: rrand(0.8, 1) sleep 0.3 sample :elec_tick, amp: rrand(0.6, 0.8) sleep 0.7 end end live_loop :carbon do sync :bar with_fx :wobble, phase: 2, wave: 1, mix: 0.65 do use_synth :rodeo play Carbon.tick, amp: get(:H) + 0.5 sleep 4 end end live_loop :r_group do sync :bar r = Carboxyl.tick set :COOH, r with_fx :lpf, cutoff: 65 do if one_in(2) sleep 1 else use_synth :tb303 play scale(:d2, :minor_pentatonic).choose, amp: r sleep 1 end end end live_loop :nitrogen do sync :bar use_synth :beep play scale(:f4, :major).choose, amp: get(:COOH) + 0.5 sleep [0.5, 1, 1.5].choose play scale(:d4, :minor).reverse.tick, amp: get(:H) + 0.3 sleep [0.5, 1.5, 2].choose end live_loop :hydrolysis do sync :bar with_fx :lpf, cutoff: 75 do use_synth :rodeo play scale(:d3, :minor).tick, amp: get(:H) sleep 2 end end live_loop :a do cue :bar sleep 4 end

4 November 2026 · mus

Strudel: Arranging Musical Time with `arrange()`

The melody of Children’s Play Song by Bill Evans is stuck in my head. I want to play it but can’t be bothered to use a chromatic harmonica, so I’m looking for a way to get Strudel to play it. And I’m learning how to use the arrange function. Listening to the melody The recording I’m referring to is from Bill Evans’ album From Left to Right. What caught my attention was the interaction between two recurring melodic motifs. They seem to work like a call-and-response. Both motifs keep returning throughout the recording. ...

4 November 2026 · mus

Strudel: Visualiasi Warna

Eksplorasi fungsi .color() pada Strudel untuk memberikan warna berbeda pada setiap event nada dalam visualisasi. Fungsi .color() memungkinkan setiap pola nada memiliki identitas warna tersendiri. Dalam eksperimen ini, sepuluh nama warna dicoba untuk mengamati bagaimana masing-masing warna ditampilkan pada visualisasi. Experiment //@title warna example @by mus cpm(80/4) const eg = stack( note("c4").color("cyan"), note("~ e4").color("magenta"), note("~ ~ ~ g5").color("coral"), note("g4").color("violet"), note("~ ~ ~ b4").color("lime"), note("~ d5").color("teal"), note("c5").color("olive"), note("~ ~ ~ ~ ~ f5").color("salmon"), note("~ ~ ~ ~ ~ ~ ~ bb5").color("gold"), note("~ ~ ~ ~ ~ ~ ~ c4").color("crimson") ) eg.s("piano").slow(2) .pitchwheel() screen recording note Setiap event nada menampilkan warna sesuai dengan nilai yang diberikan melalui .color(). ...

31 Oktober 2026 · mus