2008-06-02 17:41:35 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2006 Paul Davis
|
|
|
|
Written by Dave Robillard
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <cerrno>
|
|
|
|
#include <cassert>
|
2009-12-08 22:05:14 -05:00
|
|
|
#include <cstring>
|
2009-12-01 13:31:00 -05:00
|
|
|
#include <cstdlib>
|
2008-06-02 17:41:35 -04:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "pbd/error.h"
|
2009-12-08 22:05:14 -05:00
|
|
|
#include "pbd/compose.h"
|
2009-12-29 16:31:14 -05:00
|
|
|
#include "pbd/strsplit.h"
|
2008-06-02 17:41:35 -04:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "midi++/types.h"
|
|
|
|
#include "midi++/jack.h"
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace MIDI;
|
|
|
|
using namespace PBD;
|
|
|
|
|
|
|
|
pthread_t JACK_MidiPort::_process_thread;
|
|
|
|
|
2009-12-29 16:31:14 -05:00
|
|
|
Signal0<void> JACK_MidiPort::JackHalted;
|
|
|
|
Signal0<void> JACK_MidiPort::MakeConnections;
|
|
|
|
|
2008-06-02 17:41:35 -04:00
|
|
|
JACK_MidiPort::JACK_MidiPort(const XMLNode& node, jack_client_t* jack_client)
|
|
|
|
: Port(node)
|
|
|
|
, _jack_client(jack_client)
|
|
|
|
, _jack_input_port(NULL)
|
|
|
|
, _jack_output_port(NULL)
|
|
|
|
, _last_read_index(0)
|
2009-12-08 22:05:14 -05:00
|
|
|
, output_fifo (512)
|
|
|
|
, input_fifo (1024)
|
2008-06-02 17:41:35 -04:00
|
|
|
{
|
2009-12-08 22:05:14 -05:00
|
|
|
if (!create_ports (node)) {
|
2008-06-02 17:41:35 -04:00
|
|
|
_ok = true;
|
2009-10-20 18:33:08 -04:00
|
|
|
}
|
2009-12-29 16:31:14 -05:00
|
|
|
|
|
|
|
MakeConnections.connect_same_thread (connect_connection, boost::bind (&JACK_MidiPort::make_connections, this));
|
|
|
|
JackHalted.connect_same_thread (halt_connection, boost::bind (&JACK_MidiPort::jack_halted, this));
|
|
|
|
|
|
|
|
set_state (node);
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
JACK_MidiPort::~JACK_MidiPort()
|
|
|
|
{
|
2009-12-01 13:31:00 -05:00
|
|
|
if (_jack_input_port) {
|
2009-12-29 16:31:14 -05:00
|
|
|
if (_jack_client) {
|
|
|
|
jack_port_unregister (_jack_client, _jack_input_port);
|
|
|
|
}
|
2009-12-01 13:31:00 -05:00
|
|
|
_jack_input_port = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_jack_output_port) {
|
2009-12-29 16:31:14 -05:00
|
|
|
if (_jack_client) {
|
|
|
|
jack_port_unregister (_jack_client, _jack_input_port);
|
|
|
|
}
|
2009-12-01 13:31:00 -05:00
|
|
|
_jack_input_port = 0;
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
2009-12-29 16:31:14 -05:00
|
|
|
void
|
|
|
|
JACK_MidiPort::jack_halted ()
|
|
|
|
{
|
|
|
|
_jack_client = 0;
|
|
|
|
_jack_input_port = 0;
|
|
|
|
_jack_output_port = 0;
|
|
|
|
}
|
|
|
|
|
2008-06-02 17:41:35 -04:00
|
|
|
void
|
|
|
|
JACK_MidiPort::cycle_start (nframes_t nframes)
|
|
|
|
{
|
|
|
|
Port::cycle_start(nframes);
|
|
|
|
assert(_nframes_this_cycle == nframes);
|
|
|
|
_last_read_index = 0;
|
|
|
|
_last_write_timestamp = 0;
|
|
|
|
|
2008-11-22 10:40:19 -05:00
|
|
|
if (_jack_output_port != 0) {
|
|
|
|
// output
|
|
|
|
void *buffer = jack_port_get_buffer (_jack_output_port, nframes);
|
|
|
|
jack_midi_clear_buffer (buffer);
|
|
|
|
flush (buffer);
|
|
|
|
}
|
2008-08-06 18:22:35 -04:00
|
|
|
|
2008-11-22 10:40:19 -05:00
|
|
|
if (_jack_input_port != 0) {
|
|
|
|
// input
|
|
|
|
void* jack_buffer = jack_port_get_buffer(_jack_input_port, nframes);
|
|
|
|
const nframes_t event_count = jack_midi_get_event_count(jack_buffer);
|
2008-08-06 18:22:35 -04:00
|
|
|
|
2008-11-22 10:40:19 -05:00
|
|
|
jack_midi_event_t ev;
|
2009-12-08 22:05:14 -05:00
|
|
|
timestamp_t cycle_start_frame = jack_last_frame_time (_jack_client);
|
2008-08-06 18:22:35 -04:00
|
|
|
|
2009-12-08 22:05:14 -05:00
|
|
|
for (nframes_t i = 0; i < event_count; ++i) {
|
2008-11-22 10:40:19 -05:00
|
|
|
jack_midi_event_get (&ev, jack_buffer, i);
|
2009-12-08 22:05:14 -05:00
|
|
|
input_fifo.write (cycle_start_frame + ev.time, (Evoral::EventType) 0, ev.size, ev.buffer);
|
2008-11-22 10:40:19 -05:00
|
|
|
}
|
2009-12-08 22:05:14 -05:00
|
|
|
|
|
|
|
if (event_count) {
|
|
|
|
xthread.wakeup ();
|
|
|
|
}
|
2008-08-06 18:22:35 -04:00
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
2009-02-18 15:53:54 -05:00
|
|
|
void
|
|
|
|
JACK_MidiPort::cycle_end ()
|
|
|
|
{
|
2009-10-20 18:33:08 -04:00
|
|
|
if (_jack_output_port != 0) {
|
2009-12-01 16:28:31 -05:00
|
|
|
flush (jack_port_get_buffer (_jack_output_port, _nframes_this_cycle));
|
2009-10-20 18:33:08 -04:00
|
|
|
}
|
2009-12-08 22:05:14 -05:00
|
|
|
|
|
|
|
Port::cycle_end();
|
2009-02-18 15:53:54 -05:00
|
|
|
}
|
|
|
|
|
2008-06-02 17:41:35 -04:00
|
|
|
int
|
|
|
|
JACK_MidiPort::write(byte * msg, size_t msglen, timestamp_t timestamp)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
|
2010-07-04 21:13:52 -04:00
|
|
|
if (!_jack_output_port) {
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2008-06-02 17:41:35 -04:00
|
|
|
if (!is_process_thread()) {
|
|
|
|
|
2009-12-08 22:05:14 -05:00
|
|
|
Glib::Mutex::Lock lm (output_fifo_lock);
|
2010-07-01 11:02:54 -04:00
|
|
|
RingBuffer< Evoral::Event<double> >::rw_vector vec = { { 0, 0 }, { 0, 0} };
|
2008-06-02 17:41:35 -04:00
|
|
|
|
2009-12-08 22:05:14 -05:00
|
|
|
output_fifo.get_write_vector (&vec);
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
if (vec.len[0] + vec.len[1] < 1) {
|
2009-02-18 15:53:54 -05:00
|
|
|
error << "no space in FIFO for non-process thread MIDI write" << endmsg;
|
2008-06-02 17:41:35 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vec.len[0]) {
|
2010-06-03 08:37:32 -04:00
|
|
|
if (!vec.buf[0]->owns_buffer()) {
|
|
|
|
vec.buf[0]->set_buffer (0, 0, true);
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
vec.buf[0]->set (msg, msglen, timestamp);
|
|
|
|
} else {
|
2010-06-03 08:37:32 -04:00
|
|
|
if (!vec.buf[1]->owns_buffer()) {
|
|
|
|
vec.buf[1]->set_buffer (0, 0, true);
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
vec.buf[1]->set (msg, msglen, timestamp);
|
|
|
|
}
|
|
|
|
|
2009-12-08 22:05:14 -05:00
|
|
|
output_fifo.increment_write_idx (1);
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
ret = msglen;
|
2009-12-08 22:05:14 -05:00
|
|
|
|
2008-06-02 17:41:35 -04:00
|
|
|
} else {
|
|
|
|
|
2008-09-17 04:44:51 -04:00
|
|
|
// XXX This had to be temporarily commented out to make export work again
|
|
|
|
if (!(timestamp < _nframes_this_cycle)) {
|
|
|
|
std::cerr << "assertion timestamp < _nframes_this_cycle failed!" << std::endl;
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
if (_currently_in_cycle) {
|
|
|
|
if (timestamp == 0) {
|
|
|
|
timestamp = _last_write_timestamp;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (jack_midi_event_write (jack_port_get_buffer (_jack_output_port, _nframes_this_cycle),
|
|
|
|
timestamp, msg, msglen) == 0) {
|
|
|
|
ret = msglen;
|
|
|
|
_last_write_timestamp = timestamp;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
ret = 0;
|
|
|
|
cerr << "write of " << msglen << " failed, port holds "
|
|
|
|
<< jack_midi_get_event_count (jack_port_get_buffer (_jack_output_port, _nframes_this_cycle))
|
|
|
|
<< endl;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
cerr << "write to JACK midi port failed: not currently in a process cycle." << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ret > 0 && output_parser) {
|
2009-12-08 22:05:14 -05:00
|
|
|
// ardour doesn't care about this and neither should your app, probably
|
|
|
|
// output_parser->raw_preparse (*output_parser, msg, ret);
|
2008-06-02 17:41:35 -04:00
|
|
|
for (int i = 0; i < ret; i++) {
|
|
|
|
output_parser->scanner (msg[i]);
|
|
|
|
}
|
2009-12-08 22:05:14 -05:00
|
|
|
// ardour doesn't care about this and neither should your app, probably
|
|
|
|
// output_parser->raw_postparse (*output_parser, msg, ret);
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
JACK_MidiPort::flush (void* jack_port_buffer)
|
|
|
|
{
|
2010-07-01 11:02:54 -04:00
|
|
|
RingBuffer< Evoral::Event<double> >::rw_vector vec = { { 0, 0 }, { 0, 0 } };
|
2008-06-02 17:41:35 -04:00
|
|
|
size_t written;
|
|
|
|
|
2009-12-08 22:05:14 -05:00
|
|
|
output_fifo.get_read_vector (&vec);
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
if (vec.len[0] + vec.len[1]) {
|
2009-10-14 13:35:33 -04:00
|
|
|
// cerr << "Flush " << vec.len[0] + vec.len[1] << " events from non-process FIFO\n";
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if (vec.len[0]) {
|
2009-02-01 21:36:05 -05:00
|
|
|
Evoral::Event<double>* evp = vec.buf[0];
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
for (size_t n = 0; n < vec.len[0]; ++n, ++evp) {
|
|
|
|
jack_midi_event_write (jack_port_buffer,
|
|
|
|
(timestamp_t) evp->time(), evp->buffer(), evp->size());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vec.len[1]) {
|
2009-02-01 21:36:05 -05:00
|
|
|
Evoral::Event<double>* evp = vec.buf[1];
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
for (size_t n = 0; n < vec.len[1]; ++n, ++evp) {
|
|
|
|
jack_midi_event_write (jack_port_buffer,
|
|
|
|
(timestamp_t) evp->time(), evp->buffer(), evp->size());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((written = vec.len[0] + vec.len[1]) != 0) {
|
2009-12-08 22:05:14 -05:00
|
|
|
output_fifo.increment_read_idx (written);
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2009-12-20 11:50:41 -05:00
|
|
|
JACK_MidiPort::read (byte *, size_t)
|
2008-06-02 17:41:35 -04:00
|
|
|
{
|
2009-12-08 22:05:14 -05:00
|
|
|
timestamp_t time;
|
|
|
|
Evoral::EventType type;
|
|
|
|
uint32_t size;
|
|
|
|
byte buffer[input_fifo.capacity()];
|
|
|
|
|
|
|
|
while (input_fifo.read (&time, &type, &size, buffer)) {
|
|
|
|
if (input_parser) {
|
|
|
|
input_parser->set_timestamp (time);
|
|
|
|
for (uint32_t i = 0; i < size; ++i) {
|
|
|
|
input_parser->scanner (buffer[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
JACK_MidiPort::create_ports(const XMLNode& node)
|
|
|
|
{
|
|
|
|
Descriptor desc (node);
|
|
|
|
|
|
|
|
assert(!_jack_input_port);
|
|
|
|
assert(!_jack_output_port);
|
|
|
|
|
2010-07-05 11:41:05 -04:00
|
|
|
if (desc.mode == O_RDWR || desc.mode == O_WRONLY) {
|
|
|
|
_jack_output_port_name = string(desc.tag).append ("_out");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (desc.mode == O_RDWR || desc.mode == O_RDONLY) {
|
|
|
|
_jack_input_port_name = string(desc.tag).append ("_in");
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
|
2010-07-05 11:41:05 -04:00
|
|
|
return create_ports ();
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
JACK_MidiPort::create_ports ()
|
|
|
|
{
|
2008-06-02 17:41:35 -04:00
|
|
|
bool ret = true;
|
|
|
|
|
2010-07-05 11:41:05 -04:00
|
|
|
jack_nframes_t nframes = jack_get_buffer_size(_jack_client);
|
|
|
|
|
|
|
|
if (!_jack_output_port_name.empty()) {
|
|
|
|
_jack_output_port = jack_port_register(_jack_client, _jack_output_port_name.c_str(),
|
2008-06-02 17:41:35 -04:00
|
|
|
JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput, 0);
|
2008-12-16 19:44:08 -05:00
|
|
|
if (_jack_output_port) {
|
|
|
|
jack_midi_clear_buffer(jack_port_get_buffer(_jack_output_port, nframes));
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
ret = ret && (_jack_output_port != NULL);
|
|
|
|
}
|
|
|
|
|
2010-07-05 11:41:05 -04:00
|
|
|
if (!_jack_input_port_name.empty()) {
|
|
|
|
_jack_input_port = jack_port_register(_jack_client, _jack_input_port_name.c_str(),
|
2008-06-02 17:41:35 -04:00
|
|
|
JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0);
|
2008-12-16 19:44:08 -05:00
|
|
|
if (_jack_input_port) {
|
|
|
|
jack_midi_clear_buffer(jack_port_get_buffer(_jack_input_port, nframes));
|
|
|
|
}
|
2008-06-02 17:41:35 -04:00
|
|
|
ret = ret && (_jack_input_port != NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret ? 0 : -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
XMLNode&
|
|
|
|
JACK_MidiPort::get_state () const
|
|
|
|
{
|
|
|
|
XMLNode& root (Port::get_state ());
|
2009-12-29 16:31:14 -05:00
|
|
|
|
|
|
|
if (_jack_output_port) {
|
2009-12-29 21:58:57 -05:00
|
|
|
|
2009-12-29 16:31:14 -05:00
|
|
|
const char** jc = jack_port_get_connections (_jack_output_port);
|
|
|
|
string connection_string;
|
|
|
|
if (jc) {
|
|
|
|
for (int i = 0; jc[i]; ++i) {
|
|
|
|
if (i > 0) {
|
|
|
|
connection_string += ',';
|
|
|
|
}
|
|
|
|
connection_string += jc[i];
|
|
|
|
}
|
|
|
|
free (jc);
|
|
|
|
}
|
2009-12-29 21:58:57 -05:00
|
|
|
|
2009-12-29 16:31:14 -05:00
|
|
|
if (!connection_string.empty()) {
|
|
|
|
root.add_property ("outbound", connection_string);
|
|
|
|
}
|
2009-12-29 21:58:57 -05:00
|
|
|
} else {
|
|
|
|
if (!_outbound_connections.empty()) {
|
|
|
|
root.add_property ("outbound", _outbound_connections);
|
|
|
|
}
|
2009-12-29 16:31:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
if (_jack_input_port) {
|
|
|
|
|
|
|
|
const char** jc = jack_port_get_connections (_jack_input_port);
|
|
|
|
string connection_string;
|
|
|
|
if (jc) {
|
|
|
|
for (int i = 0; jc[i]; ++i) {
|
|
|
|
if (i > 0) {
|
|
|
|
connection_string += ',';
|
|
|
|
}
|
|
|
|
connection_string += jc[i];
|
|
|
|
}
|
|
|
|
free (jc);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!connection_string.empty()) {
|
|
|
|
root.add_property ("inbound", connection_string);
|
|
|
|
}
|
2009-12-29 21:58:57 -05:00
|
|
|
} else {
|
|
|
|
if (!_inbound_connections.empty()) {
|
|
|
|
root.add_property ("inbound", _inbound_connections);
|
|
|
|
}
|
2009-12-29 16:31:14 -05:00
|
|
|
}
|
|
|
|
|
2008-06-02 17:41:35 -04:00
|
|
|
return root;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2009-12-29 16:31:14 -05:00
|
|
|
JACK_MidiPort::set_state (const XMLNode& node)
|
|
|
|
{
|
|
|
|
Port::set_state (node);
|
|
|
|
const XMLProperty* prop;
|
|
|
|
|
2010-01-04 13:14:17 -05:00
|
|
|
if ((prop = node.property ("inbound")) != 0 && _jack_input_port) {
|
2009-12-29 16:31:14 -05:00
|
|
|
_inbound_connections = prop->value ();
|
|
|
|
}
|
|
|
|
|
2010-01-04 13:14:17 -05:00
|
|
|
if ((prop = node.property ("outbound")) != 0 && _jack_output_port) {
|
2009-12-29 16:31:14 -05:00
|
|
|
_outbound_connections = prop->value();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
JACK_MidiPort::make_connections ()
|
2008-06-02 17:41:35 -04:00
|
|
|
{
|
2009-12-29 16:31:14 -05:00
|
|
|
if (!_inbound_connections.empty()) {
|
|
|
|
vector<string> ports;
|
|
|
|
split (_inbound_connections, ports, ',');
|
|
|
|
for (vector<string>::iterator x = ports.begin(); x != ports.end(); ++x) {
|
|
|
|
if (_jack_client) {
|
2010-01-04 13:14:17 -05:00
|
|
|
jack_connect (_jack_client, (*x).c_str(), jack_port_name (_jack_input_port));
|
2009-12-29 16:31:14 -05:00
|
|
|
/* ignore failures */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!_outbound_connections.empty()) {
|
|
|
|
vector<string> ports;
|
|
|
|
split (_outbound_connections, ports, ',');
|
|
|
|
for (vector<string>::iterator x = ports.begin(); x != ports.end(); ++x) {
|
|
|
|
if (_jack_client) {
|
2010-01-04 13:14:17 -05:00
|
|
|
jack_connect (_jack_client, jack_port_name (_jack_output_port), (*x).c_str());
|
2009-12-29 16:31:14 -05:00
|
|
|
/* ignore failures */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
connect_connection.disconnect ();
|
2008-06-02 17:41:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
JACK_MidiPort::set_process_thread (pthread_t thr)
|
|
|
|
{
|
|
|
|
_process_thread = thr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
JACK_MidiPort::is_process_thread()
|
|
|
|
{
|
|
|
|
return (pthread_self() == _process_thread);
|
|
|
|
}
|
2010-07-05 11:41:05 -04:00
|
|
|
|
|
|
|
void
|
|
|
|
JACK_MidiPort::reestablish (void* jack)
|
|
|
|
{
|
|
|
|
_jack_client = static_cast<jack_client_t*> (jack);
|
|
|
|
int const r = create_ports ();
|
|
|
|
|
|
|
|
if (r) {
|
|
|
|
PBD::error << "could not reregister ports for " << name() << endmsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
JACK_MidiPort::reconnect ()
|
|
|
|
{
|
|
|
|
make_connections ();
|
|
|
|
}
|