File tree 5 files changed +7
-6
lines changed
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change
1
+ web : node app.js
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ var last_ampl = 0.000001;
9
9
var MIN_LENGTH = 8 ;
10
10
var VOLUME_THRESHOLD = .01 ;
11
11
var QUARTER = - 1 ;
12
- // var SAMPLING_RATE = 22050; //change this to your computer's sampling rate
13
- var SAMPLING_RATE = 24000 ; //change this to your computer's sampling rate
12
+ var SAMPLING_RATE = 22050 ; //change this to your computer's sampling rate
13
+ // var SAMPLING_RATE = 24000; //change this to your computer's sampling rate
14
14
15
15
// This starts the playing/parsing
16
16
function getNotes ( url , callback ) {
17
- // dancer.load({ src: '/data/?file=' + url });
17
+ dancer . load ( { src : '/data/?file=' + url } ) ;
18
18
// dancer.setVolume(0);
19
- console . log ( "HI" ) ;
20
- dancer . load ( { src : url } ) ; //TODO remove
19
+ // console.log("HI");
20
+ // dancer.load({ src: url }); //TODO remove
21
21
dancer . play ( ) ;
22
22
23
23
dancer . after ( 0 , function ( ) {
@@ -114,6 +114,6 @@ function getNotes(url, callback) {
114
114
// Converts A5 to a/5
115
115
function process ( note ) {
116
116
note = note . toLowerCase ( ) ;
117
- return note . slice ( 0 , - 1 ) + '/' + ( parseInt ( note . slice ( - 1 ) ) - 1 ) ;
117
+ return note . slice ( 0 , - 1 ) + '/' + ( parseInt ( note . slice ( - 1 ) ) ) ;
118
118
}
119
119
}
You can’t perform that action at this time.
0 commit comments