Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leovr/rtp-midi
Java RTP-MIDI implementation
https://github.com/leovr/rtp-midi
java java-8 java-library midi music music-library
Last synced: about 1 month ago
JSON representation
Java RTP-MIDI implementation
- Host: GitHub
- URL: https://github.com/leovr/rtp-midi
- Owner: LeovR
- License: apache-2.0
- Created: 2017-02-04T15:06:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T12:49:21.000Z (almost 7 years ago)
- Last Synced: 2024-04-16T11:35:51.543Z (8 months ago)
- Topics: java, java-8, java-library, midi, music, music-library
- Language: Java
- Size: 92.8 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/LeovR/rtp-midi.svg?branch=master)](https://travis-ci.org/LeovR/rtp-midi)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.leovr/rtp-midi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.leovr/rtp-midi)
# rtpmidi
A Java implementation of the RTP-MIDI protocol.## Usage
Currently this library can only be used as a RTP-MIDI session listener.
1. Create a `AppleMidiServer`
2. Add a `AppleMidiSession` to the server
* Either a `MidiDeviceAppleMidiSession` if a `MidiDevice` should be used
* Or a `MidiReceiverAppleMidiSession` if only a `Receiver` interface should be used. E.g. for direct processing of messages without a `MidiDevice`.
3. `start()` the serverTo announce the server via Apple's bonjour the [jMDNS](https://github.com/jmdns/jmdns) library can be used.
###Demo
public class Application {
public static void main(final String[] args) throws InterruptedException {
try {
JmDNS jmdns = JmDNS.create(InetAddress.getLocalHost());
ServiceInfo serviceInfo =
ServiceInfo.create("_apple-midi._udp.local.", "rtpMidiJava", 50004, "apple-midi");
jmdns.registerService(serviceInfo);MidiDevice midiDevice = ;//get MIDI device
AppleMidiServer server = new AppleMidiServer();
server.addAppleMidiSession(
new MidiDeviceAppleMidiSession(new MidiDeviceModePair(midiDevice, MidiDeviceMode.READ_ONLY)));server.start();
System.in.read();
server.stop();
} catch (final IOException e) {
e.printStackTrace();
}
}
}## ToDo
* Implement journaling
* Implement missing session protocol commands
* Implement session initiation