PHP code example of bviguier / php-rtmidi
1. Go to this page and download the library: Download bviguier/php-rtmidi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bviguier / php-rtmidi example snippets
$browser = new \bviguier\RtMidi\MidiBrowser();
$input = $browser->openInput('My Input');
$output = $browser->openOutput('My Output');
echo "Midi thru enabled, use Ctr-C to exit…\n";
while (true) {
if ($msg = $input->pullMessage()) {
$output->send($msg);
}
usleep(100);
}
bash
composer