Skip to content

Commit 9c66bb3

Browse files
committed
Update chords
1 parent e907328 commit 9c66bb3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

chords.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ <h1>Torsk-Synth! Play for Lofoten :)</h1>
2121
</div>
2222

2323
<div class="row marketing">
24-
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('C')">-</button>
25-
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('G')">-</button>
26-
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('Am')">-</button>
27-
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('F')">-</button>
24+
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('C')">C</button>
25+
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('G')">G</button>
26+
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('Am')">Am</button>
27+
<button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('F')">F</button>
2828
</div>
2929

3030
</div>

server.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ var express = require('express'),
1414

1515
port = 3000,
1616
chords = {
17-
'C': ['C3', 'E3', 'G3'],
18-
'Dm': ['D3', 'F3', 'A3'],
19-
'Em': ['E3', 'G3', 'B3'],
20-
'F': ['F3', 'A3', 'C3'],
21-
'G': ['G3', 'B3', 'D3'],
22-
'Am': ['A3', 'C3', 'E3']
17+
'C': ['C3', 'E4', 'G3'],
18+
'Dm': ['D3', 'F4', 'A3'],
19+
'Em': ['E3', 'G4', 'B3'],
20+
'F': ['F3', 'A4', 'C3'],
21+
'G': ['G3', 'B4', 'D3'],
22+
'Am': ['A3', 'C5', 'E3']
2323
},
2424

2525
drums = {
@@ -61,7 +61,7 @@ io.on('connection', function (socket){
6161

6262
socket.on('chord', function (msg) {
6363
var chord = chords[msg],
64-
command = 'play -qn synth sin ' + chord[0] + ' sin ' + chord[1] + ' sin ' + chord[2] + ' delay 0 .01 .02 remix - fade 0 2 .1 norm -1';
64+
command = 'play -qn synth sin ' + chord[0] + ' sin ' + chord[1] + ' sin ' + chord[2] + ' delay 0 .01 .02 remix - fade 0 2.7 .1 norm -1';
6565

6666
shell.exec(command, {async: true});
6767
});

0 commit comments

Comments
 (0)