son exterieur 1
This commit is contained in:
parent
cf8c4b0e47
commit
8accaf4ab2
@ -43,9 +43,8 @@
|
||||
<button id="forward">10s +</button>
|
||||
</div>
|
||||
|
||||
<audio id="audio"
|
||||
src="muddy_files.mp3"
|
||||
data-reverse-src="muddy_files_reverse.mp3"></audio>
|
||||
<audio id="audio" data-file="muddy_files.mp3" preload="auto"></audio>
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
@ -62,8 +62,11 @@ io.on('connection', (socket) => {
|
||||
const parser = arduinoSerialPort.pipe(new ReadlineParser({ delimiter: '\n' }))
|
||||
parser.on('data', data => {
|
||||
console.log('got word from arduino:', data);
|
||||
socket.emit('position', data);
|
||||
})
|
||||
const position = parseFloat(data);
|
||||
if (!isNaN(position)) {
|
||||
socket.emit('position', position);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
BIN
node-server/sounds/muddy_files.mp3
Normal file
BIN
node-server/sounds/muddy_files.mp3
Normal file
Binary file not shown.
BIN
node-server/sounds/paradisev2.mp3
Normal file
BIN
node-server/sounds/paradisev2.mp3
Normal file
Binary file not shown.
BIN
node-server/sounds/song_to_song_v4.mp3
Normal file
BIN
node-server/sounds/song_to_song_v4.mp3
Normal file
Binary file not shown.
BIN
node-server/sounds/stamina-v17.mp3
Normal file
BIN
node-server/sounds/stamina-v17.mp3
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user