From 5fb45e33277b87367c4174730d004dc168828ab5 Mon Sep 17 00:00:00 2001
From: Sputnik <inquiry@dermah.com>
Date: Mon, 14 Oct 2019 17:27:17 +1100
Subject: [PATCH] Add a mid instrument

---
 pulsar/assets/js/audience/audience-app.js | 30 +++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/pulsar/assets/js/audience/audience-app.js b/pulsar/assets/js/audience/audience-app.js
index d1241cc..3711894 100644
--- a/pulsar/assets/js/audience/audience-app.js
+++ b/pulsar/assets/js/audience/audience-app.js
@@ -175,6 +175,36 @@ new p5(p => {
       instrumentDrawings[1].shift();
     }
 
+    instrumentDrawings[2].map(drawing => {
+      p.push();
+      p.stroke(
+        drawing.color.r,
+        drawing.color.g,
+        drawing.color.b,
+        255 * (drawing.alive / 10)
+      );
+      p.strokeWeight(25);
+      p.noFill();
+      for (let c = 0; c < 10; c++) {
+        p.curve(
+          drawing.x + p.random(widthPc(70)) - widthPc(35),
+          drawing.y + p.random(widthPc(70)) - widthPc(35),
+          drawing.x,
+          drawing.y,
+          drawing.x + p.random(widthPc(70)) - widthPc(35),
+          drawing.y + p.random(widthPc(70)) - widthPc(35),
+          drawing.x + p.random(widthPc(70)) - widthPc(35),
+          drawing.y + p.random(widthPc(70)) - widthPc(35)
+        );
+      }
+      drawing.alive -= 0.5;
+      p.pop();
+    });
+    if (instrumentDrawings[2][0] && instrumentDrawings[2][0].alive <= 0) {
+      instrumentDrawings[2].shift();
+    }
+    p.strokeWeight(1);
+
     instrumentDrawings[4].map(drawing => {
       p.push();
       p.translate(drawing.x, drawing.y);