|
@ -27,7 +27,6 @@ var recording; |
|
|
var newSoundJustRecorded = false; |
|
|
var newSoundJustRecorded = false; |
|
|
|
|
|
|
|
|
// All user clickable buttons
|
|
|
// All user clickable buttons
|
|
|
var playButton; |
|
|
|
|
|
var recordButton; |
|
|
var recordButton; |
|
|
var stopButton; |
|
|
var stopButton; |
|
|
var chorusButton; |
|
|
var chorusButton; |
|
@ -89,15 +88,6 @@ function stop() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function play() { |
|
|
|
|
|
/** |
|
|
|
|
|
* Play the sound just recorded. |
|
|
|
|
|
**/ |
|
|
|
|
|
if (recording.isLoaded()) { |
|
|
|
|
|
recording.play(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function sendToArchive() { |
|
|
function sendToArchive() { |
|
|
/** |
|
|
/** |
|
|
* Send the sound to the back-end for archiving. |
|
|
* Send the sound to the back-end for archiving. |
|
@ -140,10 +130,6 @@ function setupRecording() { |
|
|
stopButton.position(10, 40); |
|
|
stopButton.position(10, 40); |
|
|
stopButton.mousePressed(stop); |
|
|
stopButton.mousePressed(stop); |
|
|
|
|
|
|
|
|
playButton = createImg("../static/images/PLAY-BW.png"); |
|
|
|
|
|
playButton.position(10, 75); |
|
|
|
|
|
playButton.mousePressed(play); |
|
|
|
|
|
|
|
|
|
|
|
chorusButton = createImg("../static/images/CHORUS-BW.png"); |
|
|
chorusButton = createImg("../static/images/CHORUS-BW.png"); |
|
|
chorusButton.position(10, 110); |
|
|
chorusButton.position(10, 110); |
|
|
|
|
|
|
|
|