Skip to content

Commit

Permalink
Merge pull request #25 from risgk/develop
Browse files Browse the repository at this point in the history
v5.1.2
  • Loading branch information
risgk committed May 30, 2015
2 parents aea359c + d36ddf5 commit 6ab7dff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Digital Synth VRA8 5.1.1
# Digital Synth VRA8 5.1.2

2015-02-26 ISGK Instruments
2015-05-30 ISGK Instruments
[https://github.com/risgk/DigitalSynthVRA8](https://github.com/risgk/DigitalSynthVRA8)

## Concept
Expand Down Expand Up @@ -35,8 +35,7 @@
## VRA8 CTRL Features

- Parameter Editor (MIDI Controller) for VRA8, HTML5 App
- Please enable Web MIDI API of Google Chrome
- `chrome://flags/#enable-web-midi`
- We recommend Google Chrome, which implements Web MIDI API
- Recommending [loopMIDI](http://www.tobias-erichsen.de/software/loopmidi.html) (virtual loopback MIDI cable) to connect VRA8

## Synth Modules
Expand Down Expand Up @@ -80,8 +79,8 @@

## MIDI Implementation Chart

[Virtual Analog Synthesizer] Date: 2015-02-26
Model Digital Synth VRA8 MIDI Implementation Chart Version: 5.1.1
[Virtual Analog Synthesizer] Date: 2015-05-30
Model Digital Synth VRA8 MIDI Implementation Chart Version: 5.1.2
+-------------------------------+---------------+---------------+-----------------------+
| Function... | Transmitted | Recognized | Remarks |
+-------------------------------+---------------+---------------+-----------------------+
Expand Down
32 changes: 12 additions & 20 deletions vra8-ctrl.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,23 @@

function onMIDIMessage(event) {
if (midiOutput) {
midiOutput.send(event.data, event.timestamp);
midiOutput.send(event.data);
}
}

function onMIDISuccess(midiAccess) {
console.log("MIDI ready!");
midi = midiAccess;

// refs http://www.slideshare.net/toyoshim/web-midi-api-update
// Web MIDI API update
// by Takashi Toyoshima
if (typeof midi.inputs === "function") {
midiInputs = midi.inputs();
midiOutputs = midi.outputs();
} else {
var inputIterator = midi.inputs.values();
midiInputs = [];
for (var o = inputIterator.next(); !o.done; o = inputIterator.next()) {
midiInputs.push(o.value)
}
var outputIterator = midi.outputs.values();
midiOutputs = [];
for (var o = outputIterator.next(); !o.done; o = outputIterator.next()) {
midiOutputs.push(o.value)
}
var inputIterator = midi.inputs.values();
midiInputs = [];
for (var o = inputIterator.next(); !o.done; o = inputIterator.next()) {
midiInputs.push(o.value)
}
var outputIterator = midi.outputs.values();
midiOutputs = [];
for (var o = outputIterator.next(); !o.done; o = outputIterator.next()) {
midiOutputs.push(o.value)
}

var selectInputPort = document.getElementById("selectInputPort");
Expand Down Expand Up @@ -180,7 +172,7 @@
</script>
</head>
<body>
<h1>VRA8 CTRL 5.1.1</h1>
<h1>VRA8 CTRL 5.1.2</h1>

<p>Digital Synth VRA8 Controller<p>

Expand All @@ -197,7 +189,7 @@ <h2>MIDI Settings</h2>
</tr>
</table>

<p>We recommend Google Chrome (Please enable Web MIDI API)</p>
<p>We recommend Google Chrome, which implements Web MIDI API</p>

<h2>Controllers</h2>

Expand Down

0 comments on commit 6ab7dff

Please sign in to comment.