diff --git a/README.md b/README.md index f7c01e7..9adc3d2 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,4 @@ first 3D prototype: https://www.youtube.com/watch?v=8QR59RP-Z_8 - Neural Drum Machine: https://codepen.io/teropa/pen/JLjXGK - Neural Melody Autocompletion: https://codepen.io/teropa/pen/gvwwZL - Performance RNN: https://magenta.tensorflow.org/performance-rnn -- Magenta demos: https://magenta.tensorflow.org/demos \ No newline at end of file +- Magenta demos: https://magenta.tensorflow.org/demos diff --git a/TODO.md b/TODO.md index 5bf5404..f2d7236 100644 --- a/TODO.md +++ b/TODO.md @@ -1,16 +1,16 @@ ## Roadmap ### 0.4 -- [ ] map note length (triggerRelease) to bounce height, see addBody -> sphereRestitution or initContactMaterial restitutionValue param -- [ ] update instrumentMappings to use key of B major instead of C -- [ ] display key signature in UI +- [x] map note length (triggerRelease) to bounce height, see addBody -> sphereRestitution or initContactMaterial restitutionValue param ### 0.5 - [ ] rename state variables to store, separate property for UI related variables -- [ ] different iframes / canvas for each instrument type, separate routes with different globals can be used -- [ ] balls drop and hit key of 3D piano +- [ ] update instrumentMappings to use key of B major instead of C +- [ ] display key signature in UI ### 0.6 +- [ ] different iframes / canvas for each instrument type, separate routes with different globals can be used +- [ ] balls drop and hit key of 3D piano - [ ] instrument animations mapped to note sequences, ex: flamePhysics.create triggered on FD - FD -- A3F - A3F added to note sequence (use humanKeyAdds array? or buildNoteSequence function) ### 0.7 diff --git a/css/bounce.css b/css/bounce.css index 0d67c56..5c9b247 100644 --- a/css/bounce.css +++ b/css/bounce.css @@ -23,20 +23,21 @@ canvas { #controls-container { /* display: none; */ position: absolute; - top: 30px; - right: 0; - left: 5px; + top: 0; + left: 0; width: 200px; margin: 0; - padding: 8px; - background-color: rgba(160, 160, 160, 0.55); + padding: 0; color: #fff; text-align: center; - z-index: 1; + z-index: 10; } #settings-container { display: block; + padding: 10px 5px 0; + /* background: rgba(204, 204, 204, 0.3); */ + background-color: rgba(255, 255, 255, 0.2); } #settings-container.hidden { @@ -45,10 +46,23 @@ canvas { /* display: block; */ } +.toggle-wrapper { + margin: 0 0 0; +} button#settings-toggle-btn { - margin: 0 0 20px; + margin: 0 0 0; padding: 5px 10px; font-size: 16px; + color: #fff; + /* background-color: rgba(0, 0, 0, 0.30); */ + background-color: rgba(255, 255, 255, 0.2); + border: none; + -webkit-transition: all 0.3s; + transition: all 0.3s; +} +button#settings-toggle-btn:hover { + /* background-color: rgba(0, 0, 0, 0.90); */ + background-color: rgba(255, 255, 255, 0.3); } button#settings-toggle-btn.hidden-active { @@ -64,33 +78,37 @@ button { cursor: pointer; } -button#bounce, +button#btn-drums-1, .play { display: inline-block; - margin: auto 3px 30px auto; + margin: auto 3px 10px auto; padding: 6px 8px; background: none; font: 14px/1 Verdana, Geneva, sans-serif; letter-spacing: 1.2px; - color: #003366; - border: 1px solid #003366; + color: #fff; + border: 1px solid #fff; + /* color: #003366; */ + /* border: 1px solid #003366; */ text-transform: uppercase; cursor: pointer; -webkit-transition: all 0.3s; transition: all 0.3s; } -.play span.fa { +span.fa-headphones { padding: 0 5px 0 3px; } -button#bounce:hover, +button#btn-drums-1:hover, .play:hover { - background: #003366; - color: #fff; + /* background: #003366; */ + /* color: #fff; */ + background: #fff; + color: #003366; } -button#bounce { +button#btn-drums-1 { margin: auto 3px 10px auto; } @@ -127,6 +145,7 @@ button#bounce { position: absolute; left: 0; right: 0; + z-index: 9; } #legend-container.pos-top-left { margin: 0; @@ -177,10 +196,28 @@ button#bounce { letter-spacing: 1.25px; } +/*** MACHINE DATA ***/ +#machine-data { + margin: 10px 0 8px; + color: #ED4A82; + font-family: Verdana, sans-serif; +} + +#machine-state { + position: relative; + top: -1px; + color: #fff; + font-family: Verdana, sans-serif; + font-size: 10px; + font-style: italic; +} + #logo-container { position: fixed; - top: 15px; - right: 10vw; + /* top: 15px; */ + top: 213px; + /* right: 350px; */ + left: 55px; } #logo-container .logo { display: inline-block; @@ -194,11 +231,20 @@ button#bounce { opacity: 0; animation: fade-in 2.0s 1; animation-fill-mode: forwards; - /* animation-delay: 12s; */ - animation-delay: 1s; + animation-delay: 6s; + /* animation-delay: 1s; */ } @keyframes fade-in { from {opacity: 0;} to {opacity: 1;} } + + +.nsc-content-camera-container { + margin: 0 0 0 200px; +} + +.nsc-content-camera { + background: transparent; +} \ No newline at end of file diff --git a/index.html b/index.html index 56b9112..b8e21a4 100644 --- a/index.html +++ b/index.html @@ -3,16 +3,13 @@
-HUMAN
AI
HUMAN
AI