I’m attaching my code for the last performance below.

Hydra

p5 = new P5()
s0.init({src: p5.canvas})
src(s0).out()
p5.hide();
font1 = p5.loadFont('/Users/coolguy/Library/Fonts/futura/futur.ttf');
p5.angleMode(p5.DEGREES);
message = ["text you like",
           "text you like",
           "text you like",
           "text you like",
           "text you like"
              ];
rightX = p5.width;
leftX = 0;
H = p5.height;
//p5.frameRate(50)
p5.draw = ()=>{
  p5.background(255, 13, 200);
  p5.textFont(font1);
  p5.push();
  p5.rotate(-20);
  p5.textR(message[0], rightX, H/2);
  p5.textL(message[1], leftX, H*0.9);
  p5.pop();
  p5.push();
  p5.rotate(30);
  p5.textL(message[3],leftX, -H/4);
  p5.pop();
  p5.textR(message[4],rightX, H*0.9);
  p5.textL(message[1], leftX, H*0.9);
  p5.pop();
  p5.push();
  p5.rotate(30);
  p5.textL(message[3],leftX, -H/4);
  p5.pop();
  p5.textR(message[4],rightX, H*0.9);
}
p5.textR = (words,x,y)=>{
  xSpeed = cc[1]*8;
  size = cc[0]*400+2;
  p5.textSize(size);
  p5.text(words, x , y);
  rightX -= xSpeed;
  if (rightX < - p5.textWidth(words)*2) {
    rightX = width;
  }
}
p5.textL = (words,x,y)=>{
  xSpeed = cc[1]*5;
  size = cc[3]*600+2;
  p5.textSize(size);
  p5.text(words, x,y);
  leftX += xSpeed;
  if (leftX > width) {
    leftX = -p5.textWidth(words);
  }
}

Tidalcycle:

d1 $ whenmod 12 3 (# speed (slow 2 (range 0.5 4 sine))) $ fast 2 $ s "ade" >| note "f'min a'min <c6'min e'min> [a'min c'min]" # gain (range 1.1 1.3 perlin) # room 0.6 # cut 1

d2 $ every 4 (slow 2) $ s "future(3,8)" # gain (range 1 1.3 rand)

d3 $ every 4 (slow 2) $ s "alphabet(3,8)" |< n (shuffle 8 $ run 26) # speed (range 0.3 2.5 rand)

d4 $ off 0.25 (# squiz 4) $ fast 2 $  s "feelfx:5" >| note (scale "minor" ("<[3,5,7] [4,2]>(5,8)"+"<2 3 4>"+"g")) # gain (range 0.7 1 rand) # room 0.2

--------------- midi
--size
d11 $ whenmod 12 3 (slow 2) $ struct "<t(3,8) t(3,8) t(3,8) t>" $ ccv ((segment 120 (range 127 0 rand))) # ccn "0" # s "midi"
--size
d13 $ whenmod 12 3 (slow 2) $ struct "<t(3,8) t(3,8) t(3,8) t>" $ ccv ((segment 100 (range 127 10 rand))) # ccn "3" # s "midi"
--speed
d12 $ slow 2 $ ccv ((segment 128 (range 0 127 sine))) # ccn "1" # s "midi"
d12 silence

xfadeIn 1 2 silence
hush

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>