Skip to content

Commit 50f9028

Browse files
committed
procfile
1 parent 96179ed commit 50f9028

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: node app.js

data/1.wav

-5.04 MB
Binary file not shown.

data/2.wav

-5.05 MB
Binary file not shown.

data/3.wav

-5.05 MB
Binary file not shown.

public/js/high.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ var last_ampl = 0.000001;
99
var MIN_LENGTH = 8;
1010
var VOLUME_THRESHOLD = .01;
1111
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
1414

1515
// This starts the playing/parsing
1616
function getNotes(url, callback) {
17-
// dancer.load({ src: '/data/?file=' + url });
17+
dancer.load({ src: '/data/?file=' + url });
1818
// 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
2121
dancer.play();
2222

2323
dancer.after(0, function(){
@@ -114,6 +114,6 @@ function getNotes(url, callback) {
114114
// Converts A5 to a/5
115115
function process(note){
116116
note = note.toLowerCase();
117-
return note.slice(0, -1) + '/' + (parseInt(note.slice(-1)) - 1);
117+
return note.slice(0, -1) + '/' + (parseInt(note.slice(-1)));
118118
}
119119
}

0 commit comments

Comments
 (0)