add MIDI tx test docs
This commit is contained in:
1 parent
3c70953abd
commit
e914684140
3 files changed
+44
-6
No files matched your search
@@ -20,6 +20,8 @@ $ npm install
|
||||
|
||||
## RX Test
|
||||
|
||||
This will test receiving MIDI messages on the nRF52 feather.
|
||||
|
||||
* Upload the `rx_arduino` example to your nRF52 feather.
|
||||
* Open the serial monitor, and connect to the feather on OS X using Audio MIDI Setup.
|
||||
* Once you are connected, navigate to the `tools/midi_tests` folder and run the `rx.js` test.
|
||||
@@ -44,8 +46,8 @@ Next, the test will ask you to select a MIDI port. Select the Bluefruit52 from t
|
||||
The test will begin sending messages at the specified interval. It will send 128 note on and 128 note off messages.
|
||||
|
||||
```
|
||||
midi on [================================================================================================================================] 128/128
|
||||
midi off [================================================================================================================================] 128/128
|
||||
note on [===============================================================] 128/128
|
||||
note off [===============================================================] 128/128
|
||||
```
|
||||
|
||||
Check the Arduino Serial monitor and confirm that you have received all 128 note on and 128 note off messages.
|
||||
@@ -57,4 +59,40 @@ note off count: 128
|
||||
|
||||
If you have 128 of each, the test passed.
|
||||
|
||||
## TX Test
|
||||
|
||||
This will test sending MIDI messages from the nRF52 feather.
|
||||
|
||||
* Upload the `tx_arduino` example to your nRF52 feather.
|
||||
* Open the serial monitor, and connect to the feather on OS X using Audio MIDI Setup.
|
||||
* Once you are connected, navigate to the `tools/midi_tests` folder and run the `tx.js` test.
|
||||
|
||||
```console
|
||||
$ cd tools/midi_tests
|
||||
$ node tx.js
|
||||
```
|
||||
|
||||
The test will ask you to select a MIDI port. Select the Bluefruit52 from the list.
|
||||
|
||||
```
|
||||
? Select port Bluefruit52 Bluetooth
|
||||
```
|
||||
|
||||
In the Arduino Serial Monitor, you will see a message like the one seen below. Press **space** and then **return** to start the test.
|
||||
|
||||
```
|
||||
Start the node TX test and press a key in the serial monitor to start the test...
|
||||
```
|
||||
|
||||
The nRF52 will now start sending MIDI messages to the test. Check the counters and make sure you receive all 128 note on and 128 note off messages.
|
||||
|
||||
```
|
||||
$ node tx.js
|
||||
? Select port Bluefruit52 Bluetooth
|
||||
note on [===============================================================] 128/128
|
||||
note off [===============================================================] 128/128
|
||||
```
|
||||
|
||||
If you have 128 of each, the test passed.
|
||||
|
||||
[node]: https://nodejs.org/
|
||||
@@ -36,12 +36,12 @@ inquirer.prompt([
|
||||
|
||||
function startTest() {
|
||||
|
||||
var on_bar = progress.newBar('midi on [:bar] :current/:total', {
|
||||
var on_bar = progress.newBar('note on [:bar] :current/:total', {
|
||||
incomplete: ' ',
|
||||
total: 128
|
||||
});
|
||||
|
||||
var off_bar = progress.newBar('midi off [:bar] :current/:total', {
|
||||
var off_bar = progress.newBar('note off [:bar] :current/:total', {
|
||||
incomplete: ' ',
|
||||
total: 128
|
||||
});
|
||||
|
||||
@@ -24,12 +24,12 @@ inquirer.prompt([
|
||||
|
||||
function startTest() {
|
||||
|
||||
var on_bar = multi.newBar('midi on [:bar] :current/:total', {
|
||||
var on_bar = multi.newBar('note on [:bar] :current/:total', {
|
||||
incomplete: ' ',
|
||||
total: 128
|
||||
});
|
||||
|
||||
var off_bar = multi.newBar('midi off [:bar] :current/:total', {
|
||||
var off_bar = multi.newBar('note off [:bar] :current/:total', {
|
||||
incomplete: ' ',
|
||||
total: 128,
|
||||
callback: function() {
|
||||
|
||||
Reference in new issue
Block a user