Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I often use the general algorithm for 2/1 as my "hello world" when I'm building new generative music systems. You don't need too many ingredients to set it up, and it yields some surprisingly decent sounding results.

The most recent one[0] I made was done when I was playing around with Rust, WASM, and WebAudio. (You'll need to press somewhere to start the sound)

0: https://pbat.ch/isorhythms/





Great sound!

This Sonic Pi example really blew my mind when I first heard it. Such a rich sound out of three notes.

    use_synth :hollow
    with_fx :reverb, mix: 0.7 do
    
      live_loop :note1 do
        play choose([:D4,:E4]), attack: 6, release: 6
        sleep 8
      end
    
      live_loop :note2 do
        play choose([:Fs4,:G4]), attack: 4, release: 5
        sleep 10
      end
    
      live_loop :note3 do
        play choose([:A4, :Cs5]), attack: 5, release: 5
        sleep 11
      end
    end

Nice one! Really like the visualization, as a note starts expanding I try to predict what it will sound like.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: