diff options
author | Nicolas Bornand <nicolas74@gmail.com> | 2014-05-10 20:59:43 +0200 |
---|---|---|
committer | Nicolas Bornand <nicolas74@gmail.com> | 2014-05-10 20:59:43 +0200 |
commit | 12c891f855ad5f8b8bc8e30f306ec89642d70f58 (patch) | |
tree | c290e7195fe18be0a7ab600b4e46e5d81a8032c6 | |
parent | aa232c0366ff5d46769a4425c72690fdceb77fdf (diff) | |
download | playGraph-12c891f855ad5f8b8bc8e30f306ec89642d70f58.tar.gz playGraph-12c891f855ad5f8b8bc8e30f306ec89642d70f58.tar.bz2 playGraph-12c891f855ad5f8b8bc8e30f306ec89642d70f58.zip |
modify the way points are randomly chosen
-rw-r--r-- | app/js/services.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/js/services.js b/app/js/services.js index a7f4eda..8a2ced3 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -32,6 +32,7 @@ app.service('pathService', function() { var selection = []; var tuning = .5; songListCopy.sort(function(song){ + console.log(song.minDist, (tuning + tuning*Math.random())*song.minDist) return (tuning + tuning*Math.random())*song.minDist;} ); while(duration > 0 && songListCopy.length > 0){ |