I know I'm doing something stupid... I just cant see it

At line 35…

use_bpm 134
t = 0.25  #general sleep value
x = 0.25  #general release value
lfo1 = lfo2 =lfo3 = ()

notes=(ring :r,:a2,:a2,:r,:r,:c2, :r, :r,:a2,:r,:a2, :a2,:r,:a2,:r, :a2,:d3,:e3,:g3,
       :r,:g2,:r,:as2, :r,:r,:r,:as2, :r,:as3,:as3, :gs2,:r,:as3, :r)

releases=(ring x,x*4,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x*2,x)

sleeps=(ring t,t,t*4, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t*2,t)

slides=(ring 1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1,)

live_loop :lfo do
  lfo1 = (range 80,130,0.5).mirror.tick    #for cutoff
  lfo2 = (range -0.5,0.5,0.05).mirror.tick #for panning
  sleep 1
end

live_loop :resonance do
  lfo3 = (range 0.5,1,0.01).mirror.tick #for resonance
  sleep 2
end

define :t303 do |nte,rls,slp|
  puts nte.look
  live_loop :player do
    if nte.look == ':r'
      sleep slp.look
      nte.tick
    end
    puts nte.look
    s = synth :tb303, note: nte.look
    control s, note: nte.tick, note_slide: 1
    
    sleep slp.look
    
  end
end

live_loop :kick do
  sample :bd_haus, amp: 0.75
  sample :sn_dub, amp: 0.75
  sleep 1
end


live_loop :tick_tester do
  fred = (ring :d3) + (scale :d4, :minor, num_octaves: 2).shuffle
  s = synth :blade, note: fred.look, sustain: 4, note_slide: 0.1, amp: 0.2
  
  control s, note: fred.tick, note_slide: (line 0, 0.1, steps: 2).look
  sleep (ring 1, 1, 1, 1, 0.5, 0.5, 1, 2).look
end

t303(notes, releases, sleeps ) #, slides

Eli…

Hey @Eli,
The reason that control s, note: nte.tick, note_slide: 1 is causing an error is that it is attempting, mid-note, to change the synth from playing a pitched note to a rest (:r). It seems to me (though I could be wrong) that this is an edge case that control is not intended to handle.

Thanks Ethan.

Well, at least if I do something wrong, I do it properly.

Eli…

Okay, so this seems to work… I just wanted to understand the
code in this post, and see if I could put the slide into it…

Now I hear it play, I think I could probably manage a good imitation of Harold
Faltermyers ‘Axel F’ track… but I probably wont try.

Eli…

use_bpm 134
t = 0.25  #general sleep value
x = 0.5  #general release value
lfo1 = lfo2 =lfo3 = ()

notes=(ring :r,:a2,:a2,:r,:r,:c2,:r,:r,:a2,:r,:a2, :a2,:r,:a2,:r,:a2,:d3,:e3,:g3,
       :r,:g2,:r,:as2, :r,:r,:r,:as2, :r,:as3,:as3, :gs2,:r,:as3, :r)

releases=(ring x,x*2,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x*2,x)

sleeps=(ring t,t,t*4, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t*2,t, t,t*2,t)

slides=(ring  x,x,x*4, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x*2,x, x,x,x,x,)

live_loop :lfo do
  lfo1 = (range 80,130,0.5).mirror.tick    #for cutoff
  lfo2 = (range -0.5,0.5,0.05).mirror.tick #for panning
  sleep 1
end

live_loop :resonance do
  lfo3 = (range 0.5,1,0.01).mirror.tick #for resonance
  sleep 2
end

define :t303 do |nte,rls,slp, sld|
  live_loop :player do
    s = synth :supersaw, note: nte.look+12
    if nte.tick != :r
      control s, note: nte.look+12, note_slide: sld.look
    end
    sleep slp.look
  end
end

t303(notes, releases, sleeps, slides)