We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e907328 commit 9c66bb3Copy full SHA for 9c66bb3
chords.html
@@ -21,10 +21,10 @@ <h1>Torsk-Synth! Play for Lofoten :)</h1>
21
</div>
22
23
<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>
+ <button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('C')">C</button>
+ <button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('G')">G</button>
+ <button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('Am')">Am</button>
+ <button type="button" class="btn btn-default torsk-btn col-md-12" onclick="playChord('F')">F</button>
28
29
30
server.js
@@ -14,12 +14,12 @@ var express = require('express'),
14
15
port = 3000,
16
chords = {
17
- 'C': ['C3', 'E3', 'G3'],
18
- 'Dm': ['D3', 'F3', 'A3'],
19
- 'Em': ['E3', 'G3', 'B3'],
20
- 'F': ['F3', 'A3', 'C3'],
- 'G': ['G3', 'B3', 'D3'],
- 'Am': ['A3', 'C3', 'E3']
+ 'C': ['C3', 'E4', 'G3'],
+ 'Dm': ['D3', 'F4', 'A3'],
+ 'Em': ['E3', 'G4', 'B3'],
+ 'F': ['F3', 'A4', 'C3'],
+ 'G': ['G3', 'B4', 'D3'],
+ 'Am': ['A3', 'C5', 'E3']
},
drums = {
@@ -61,7 +61,7 @@ io.on('connection', function (socket){
61
62
socket.on('chord', function (msg) {
63
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';
+ 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';
65
66
shell.exec(command, {async: true});
67
});
0 commit comments