aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/js/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/js/services.js b/app/js/services.js
index 79d4c40..f40188d 100644
--- a/app/js/services.js
+++ b/app/js/services.js
@@ -34,7 +34,7 @@ app.service('pathService', function() {
var selection = [];
var tuning = .5;
angular.forEach(songListCopy, function(song){
- song.rand = /*(tuning + tuning*Math.random())*/song.minDist;
+ song.rand = (tuning + tuning*Math.random())*song.minDist;
});
songListCopy.sort(function(a,b){return a.rand-b.rand;});
//take from the sorted list util we reach the desired duration