SHARE
TWEET

Untitled

a guest Feb 17th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var SCENE_BLACK = 0;
  2. var SCENE_WHITE = 1;
  3.  
  4. function strobe(scene1, scene2, subdivision, length) {
  5.     var i = 0;
  6.     var s1e = new NoteOn();
  7.     s1e.pitch = scene1;
  8.     var s2e = new NoteOn();
  9.     s2e.pitch = scene2;
  10.     while (i < length) {
  11.     s1e.sendAfterBeats(i);
  12.         i += subDivision;
  13.     s2e.sendAfterBeats(i+1);
  14.     }
  15. }
  16.  
  17. function fastBlackWhiteFlash() {
  18.     strobe(SCENE_BLACK, SCENE_WHITE, 1/32.0, 1/4.0);
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top