Anyone Have an Example Glissando in Sonic Pi?

Hi Skelly,

I had to go look up what a glissando was, before replying.

I think this might help… its a police siren from a track made
here on the forums…

slider = 4
wails =(ring 2, 3)



live_loop :siren do
  use_synth_defaults amp: 0.25
  siren = synth :fm,  note: :d6, note_slide: slider,
  sustain: slider * wails.look * 2
  wails.look.times do
    control siren, note: :d7
    sleep slider / 2
    control siren, note: :d6
    sleep slider
    control siren, amp: 0.5, note: :d7
    sleep slider
    control siren, amp: 0.5, note: :d6
    sleep slider
    control siren, amp: 0
    wails.tick
  end
end

Eli…

1 Like