summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2020-04-26 18:15:15 -0600
committerBrian Picciano <mediocregopher@gmail.com>2020-04-26 18:15:15 -0600
commit6c4da7fac6ea909adac1be00e238d213e84c0ec6 (patch)
tree5d1de0a1ef2aae046093fed2fe2c9c83a1f9448d /_posts
parent40ce9c4b7e6b2c04e84db88c17a5bada40084974 (diff)
add trading in the rain post
Diffstat (limited to '_posts')
-rw-r--r--_posts/2020-04-26-trading-in-the-rain.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/_posts/2020-04-26-trading-in-the-rain.md b/_posts/2020-04-26-trading-in-the-rain.md
new file mode 100644
index 0000000..3a31a95
--- /dev/null
+++ b/_posts/2020-04-26-trading-in-the-rain.md
@@ -0,0 +1,55 @@
+---
+title: >-
+ Trading in the Rain
+description: >-
+ All those... gains... will be lost like... tears...
+---
+
+<!-- MIDI.js -->
+<!-- polyfill -->
+<script src="/assets/trading-in-the-rain/MIDI.js/inc/shim/Base64.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/inc/shim/Base64binary.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/inc/shim/WebAudioAPI.js" type="text/javascript"></script>
+<!-- MIDI.js package -->
+<script src="/assets/trading-in-the-rain/MIDI.js/js/midi/audioDetect.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/js/midi/gm.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/js/midi/loader.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/js/midi/plugin.audiotag.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/js/midi/plugin.webaudio.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/js/midi/plugin.webmidi.js" type="text/javascript"></script>
+<!-- utils -->
+<script src="/assets/trading-in-the-rain/MIDI.js/js/util/dom_request_xhr.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MIDI.js/js/util/dom_request_script.js" type="text/javascript"></script>
+<!-- / MIDI.js -->
+
+<script src="/assets/trading-in-the-rain/Distributor.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/MusicBox.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/RainCanvas.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/CW.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/SeriesComposer.js" type="text/javascript"></script>
+<script src="/assets/trading-in-the-rain/main.js" type="text/javascript"></script>
+
+
+<div id="tradingInRainModal">
+For each pair listed below, live trade data will be pulled down from the
+<a href="https://docs.cryptowat.ch/websocket-api/">Cryptowat.ch Websocket
+API</a> and used to generate musical rain drops. The price of each trade
+determines both the musical note and position of the rain drop on the screen,
+while the volume of each trade determines how long the note is held and how big
+the rain drop is.
+
+<p id="markets">Pairs to be generated, by color:<br/><br/></p>
+
+<button id="button" onclick="run()">Click Here to Begin</button>
+<p id="progress"></p>
+
+<script type="text/javascript">
+ fillMarketP();
+ if (window.addEventListener) window.addEventListener("load", autorun, false);
+ else if (window.attachEvent) window.attachEvent("onload", autorun);
+ else window.onload = autorun;
+</script>
+</div>
+
+
+<canvas id="rainCanvas" style=""></canvas>