diff --git a/app/pods/components/hue-controls/component.js b/app/pods/components/hue-controls/component.js
index ab379c6..78a84b3 100644
--- a/app/pods/components/hue-controls/component.js
+++ b/app/pods/components/hue-controls/component.js
@@ -53,11 +53,6 @@ export default Em.Component.extend({
intro: 'You can add and select music to play from your playlist here. You may listen to local audio files, stream music from soundcloud or stream directly from a connected microphone.
' +
'TIP: Songs added through Soundcloud will be saved for when you visit this page again.'
},
- {
- element: '#usingMicAudioTooltip',
- intro: 'This icon will toggle microphone mode in which the application will listen to sound through your mic.
' +
- 'Note that this is a highly experimental feature that will require your authorization to be able to listen to the microphone. Also note that the beat detection will not be nearly as accurate in this mode.'
- },
{
element: '#playerArea',
intro: 'The audio playback may be controlled with the controls here. Basic music visualization effects may be shown here by selecting them from the menu ( eyeball icon in the bottom right ).'
@@ -66,9 +61,9 @@ export default Em.Component.extend({
element: '#beatOptionRow',
intro: 'These are the settings for the music tab:
' +
'Sensitivity - The sensitivity of the beat detector ( more sensitivity results in more registered beats )
' +
+ 'Hue Range - The hue range that the lights may change to on beat.
' +
'Flashing Transitions - Quickly flash the lights on beat
' +
'Colorloop - Slowly cycle the lights through all the colors while the music is playing
' +
- 'Ambience - Periodically turn the lights on and off to create a cool looking ambience
' +
'TIP: Your sensitivity settings are saved per song as indicated by the red star icon in the top left corner. These settings they will be restored if you ever listen to the same song again.',
position: 'top'
},
diff --git a/app/pods/components/music-tab/component.js b/app/pods/components/music-tab/component.js
index 8af3980..f22764f 100644
--- a/app/pods/components/music-tab/component.js
+++ b/app/pods/components/music-tab/component.js
@@ -155,7 +155,7 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
song = this.get('playQueue')[playQueuePointer];
if(this.get('soundCloudFuckUps') >= this.get('maxSoundCloudFuckUps')) {
- this.get('notify').alert({html: this.get('tooManySoundCloudFuckUps'), closeAfter: 10000});
+ this.get('notify').alert({html: this.get('tooManySoundCloudFuckUps')});
this.send('play');
this.set('soundCloudFuckUps', 0);
} else {
@@ -385,6 +385,9 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
thresholdChanged(value) {
this.changePlayerControl('threshold', value, true);
},
+ hueRangeChanged(value) {
+ this.changePlayerControl('hueRange', value);
+ },
micBoostChanged(value) {
this.set('micBoost', value);
this.get('storage').set('huegasm.micBoost', value);
@@ -464,7 +467,6 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
changePlayerControl(name, value, saveBeatPrefs){
this.set(name, value);
-
if(name === 'threshold'){
this.get('kick').set({threshold: value});
}
@@ -514,6 +516,7 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
var activeLights = this.get('activeLights'),
lightsData = this.get('lightsData'),
workedLights = this.get('ambienceWorkedLights'),
+ hueRange = this.get('hueRange'),
ambienceWorkedLightsHandles = this.get('ambienceWorkedLightsHandles'),
lightOff = (light)=>{
if(this.get('ambienceMode') && this.get('playing')){
@@ -546,7 +549,7 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
}
lights.forEach((light)=>{
- var options = {'hue': Math.floor(Math.random()*65535), 'bri': Math.floor(Math.random()*200) + 1, 'transitiontime': transitionTime};
+ var options = {'hue': Math.floor(Math.random()*(hueRange[1] - hueRange[0] + 1)+hueRange[0]), 'bri': Math.floor(Math.random()*200) + 1, 'transitiontime': transitionTime};
if(lightsData[light].state.on === false){
options.on = true;
@@ -737,7 +740,9 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
this.set('lastLightBopIndex', lightBopIndex);
if(!this.get('colorloopMode')) {
- color = Math.floor(Math.random() * 65535);
+ var hueRange = this.get('hueRange');
+
+ color = Math.floor(Math.random()*(hueRange[1] - hueRange[0] + 1)+hueRange[0]);
}
if(transitiontime){
@@ -791,7 +796,7 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
this.set('usingMicSupported', false);
}
- ['volume', 'shuffle', 'repeat', 'volumeMuted', 'threshold', 'playerBottomDisplayed', 'audioMode', 'songBeatPreferences', 'firstVisit', 'currentVisName', 'playQueue', 'playQueuePointer', 'micBoost', 'flashingTransitions', 'colorloopMode', 'ambienceMode'].forEach((item)=>{
+ ['volume', 'shuffle', 'repeat', 'volumeMuted', 'threshold', 'playerBottomDisplayed', 'audioMode', 'songBeatPreferences', 'firstVisit', 'currentVisName', 'playQueue', 'playQueuePointer', 'micBoost', 'flashingTransitions', 'colorloopMode', 'ambienceMode', 'hueRange'].forEach((item)=>{
if (!Em.isNone(storage.get('huegasm.' + item))) {
var itemVal = storage.get('huegasm.' + item);
@@ -861,7 +866,10 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
this.send('handleNewSoundCloudURL', 'https://soundcloud.com/mrsuicidesheep/ahh-ooh-carefree-with-me');
this.send('handleNewSoundCloudURL', 'https://soundcloud.com/odesza/light-feat-little-dragon');
this.send('handleNewSoundCloudURL', 'https://soundcloud.com/mrsuicidesheep/crywolf-slow-burn');
-
+ this.send('handleNewSoundCloudURL', 'https://soundcloud.com/mrsuicidesheep/clozee-red-forest');
+ this.send('handleNewSoundCloudURL', 'https://soundcloud.com/mrsuicidesheep/elo-method-subranger-solace');
+ this.send('handleNewSoundCloudURL', 'https://soundcloud.com/mrsuicidesheep/90-pounds-of-pete-waited-too-long-feat-devon-baldwin');
+ this.send('handleNewSoundCloudURL', 'https://soundcloud.com/mrsuicidesheep/draper-eyes-open');
this.get('storage').set('huegasm.firstVisit', false);
diff --git a/app/pods/components/music-tab/mixins/helpers.js b/app/pods/components/music-tab/mixins/helpers.js
index e914d2a..410d006 100644
--- a/app/pods/components/music-tab/mixins/helpers.js
+++ b/app/pods/components/music-tab/mixins/helpers.js
@@ -34,6 +34,30 @@ export default Em.Mixin.create({
}
}
},
+ hueRange: {
+ range: {min: 0, max: 65535},
+ step: 1,
+ defaultValue: 0.3,
+ pips: {
+ mode: 'values',
+ values: [0, 25500, 46920, 65535],
+ density: 10,
+ format: {
+ to: function ( value ) {
+ if(value === 0 || value === 65535) {
+ value = 'Red';
+ } else if(value === 25500 ) {
+ value = 'Green';
+ } else {
+ value = 'Blue';
+ }
+
+ return value;
+ },
+ from: function ( value ) { return value; }
+ }
+ }
+ },
micBoost: {
range: {min: 1, max: 11},
step: 0.5,
@@ -51,6 +75,7 @@ export default Em.Mixin.create({
},
threshold: 0.3,
+ hueRange: [0, 65535],
micBoost: 5,
oldThreshold: null,
@@ -60,7 +85,7 @@ export default Em.Mixin.create({
timeTotal: 0,
lastLightBopIndex: 0,
- usingMicSupported: true,
+ usingMicSupported: false,
// 0 - local, 1 - mic, possibly more to come
audioMode: 0,
usingLocalAudio: Em.computed.equal('audioMode', 0),
diff --git a/app/pods/components/music-tab/template.hbs b/app/pods/components/music-tab/template.hbs
index 1e1bf12..6441a5d 100644
--- a/app/pods/components/music-tab/template.hbs
+++ b/app/pods/components/music-tab/template.hbs
@@ -64,13 +64,13 @@