From 97a70350f8498a68639d4e8e5f16f92e43947695 Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 30 Sep 2015 22:47:18 -0700 Subject: [PATCH] nothing here...trying to get mic recording --- app/components/controls/music-control.js | 7 +++++- app/components/mixins/music-control.js | 4 ++-- app/styles/app.scss | 13 ++++++++--- .../components/controls/music-control.hbs | 22 +++++++++---------- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/app/components/controls/music-control.js b/app/components/controls/music-control.js index 5fc8c58..4f36b8e 100644 --- a/app/components/controls/music-control.js +++ b/app/components/controls/music-control.js @@ -15,7 +15,12 @@ export default Em.Component.extend(musicControlMixin, visualizerMixin, { actions: { useMic: function() { - this.changePlayerControl('usingMic', !this.get('usingMic')); + var usingMic = this.get('usingMic'); + this.changePlayerControl('usingMic', !usingMic); + + if(!usingMic){ + Em.$('#micInput').click(); + } }, slideTogglePlayerBottom: function(){ this.changePlayerControl('playerBottomDisplayed', !this.get('playerBottomDisplayed')); diff --git a/app/components/mixins/music-control.js b/app/components/mixins/music-control.js index 1f59d94..bda79bb 100644 --- a/app/components/mixins/music-control.js +++ b/app/components/mixins/music-control.js @@ -49,7 +49,7 @@ export default Em.Mixin.create({ transitionTime: { range: {min: 0, max: 0.5}, step: 0.1, - defaultValue: 0, + defaultValue: 0.1, pips: { mode: 'positions', values: [0,20,40,60,80,100], @@ -62,7 +62,7 @@ export default Em.Mixin.create({ } }, - transitionTime: 0, + transitionTime: 0.1, threshold: 0.3, decay: 0.02, frequency: [0,4], diff --git a/app/styles/app.scss b/app/styles/app.scss index 676b008..1f5bb9e 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -399,9 +399,16 @@ md-toolbar { } #slideToggle { - color: white; + color: $playerDefaultIconColor; background-color: $playerBottomBackground; - padding: 5px; + div md-icon { + font-size: 40px; + color: inherit !important; + } +} + +#slideToggle:hover{ + color: lighten($playerDefaultIconColor, 30%) !important;; } md-switch.md-default-theme.md-checked .md-bar { @@ -612,7 +619,7 @@ md-switch.md-default-theme.md-checked .md-thumb { box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 1); } -#fileInput { +#fileInput, #micInput { width: 1px; height: 1px; visibility: hidden; diff --git a/app/templates/components/controls/music-control.hbs b/app/templates/components/controls/music-control.hbs index a4c7d9a..3fe6068 100644 --- a/app/templates/components/controls/music-control.hbs +++ b/app/templates/components/controls/music-control.hbs @@ -17,7 +17,7 @@ data-title="Next" {{action "next"}}>{{paper-icon icon="skip-next" action="" class="playerControllIcon"}}{{/if}}{{paper-icon icon=volumeClass class="playerControllIcon volumeButton"}}{{range-slider start=volume min=0 max=100 slide="volumeChanged" id="volumeBar"}}
{{timeElapsedTxt}} / {{timeTotalTxt}}
@@ -34,7 +34,8 @@
- + +
{{paper-icon icon="shuffle" class=shuffleClass}} @@ -76,10 +77,13 @@
-
-
- {{paper-icon icon=beatDetectionArrowIcon}} Beat Detection Settings {{paper-icon icon=beatDetectionArrowIcon}} +
+
+ {{paper-icon icon=beatDetectionArrowIcon}}
+
+ {{paper-icon icon=beatDetectionArrowIcon}} +
{{#if playerBottomDisplayed}} @@ -125,15 +129,11 @@
- {{#paper-switch checked=sequentialTransition disabled=trial}}{{sequentialTransitionLabel}}{{/paper-switch}}
- {{#paper-switch checked=onBeatBriOnly disabled=trial}} {{onBeatBriOnlyLabel}}{{/paper-switch}} + {{#paper-switch checked=onBeatBriOnly disabled=trial}} {{onBeatBriOnlyLabel}}{{/paper-switch}}