-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.txt
43 lines (31 loc) · 2.13 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// --------------------------------------------------------------------------
// -- README.txt
// -- initial author: Steve Wang ([email protected])
// -- initial creation date: Wed Jun 28 10:08:48 AM CST 2023
// -- contributors: Yiler Huang ([email protected]); Renick Bell ([email protected])
// -- license: GPL 3.0
// --------------------------------------------------------------------------
This code allows Konduktiva to work with music synthesizers that use MIDI.
--------------------------------------------------------------------------
Installation:
1. Download all the files.
2. Install Nodejs. If npm does not automatically get installed with Nodejs, install npm.
3. Open the terminal and run this command: node installer.js
4. After that code has finished running, the installation should be complete.
--------------------------------------------------------------------------
Running the code:
1. Launch 4 sessions of your prefered music synthesizer that supports having multiple instances running at the same time (each with a different midi inputs). Yoshimi is suggested for Linux and Surge is recomended for MacOS.
https://yoshimi.sourceforge.io/
https://surge-synthesizer.github.io/
2. Open a terminal session, go to the place you downloaded the files and run: node
3. Paste the contents of example-session-with-melodies.js inside the terminal session from before
4. Now you can try pasting the code in example-playing-melodies.js in the terminal session. You will see that now you are able to control the music. The things in the file will also allow you to start and stop music.
--------------------------------------------------------------------------
Debugging:
Issue 1:
Function updateMidiOutputList might not work correctly for your midi configuration. That function is in midi.js so you might want to edit it to work properly for you.
To edit this function run this code in nodejs: easymidi.getOutputs()
This will give you all the outputs easymidi detects and you can edit the function so that it works properly for you.
Issue 2:
MIDI configuration. Configure your system so that easymidi can detect midi outputs.
That is OS specific.