Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add microevent command? #19

Open
oliviercreurer opened this issue Jan 15, 2021 · 0 comments
Open

Add microevent command? #19

oliviercreurer opened this issue Jan 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@oliviercreurer
Copy link
Owner

Weird little thing that spawns a discrete, finite sequence of softcut hops.

micro_event_clk = clock.run(micro_event);

function micro_event(unit)
  local points = {};
  local inc = 1;
  local speed = math.random(2,16);
  local event_length = math.random(2,8);
  for i=1,event_length do
    points[i] = math.random(set[unit].head,set[unit].tail)
    inc = inc + 1
    clock.sync(1/speed)
    for i=1,2 do
      sc.position(i,points[inc])
    end
  end
end
@oliviercreurer oliviercreurer added the enhancement New feature or request label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant