Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added JavaSound MIDI player #3

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bhoward
Copy link

@bhoward bhoward commented Jun 30, 2016

I've been having trouble with the SuperCollider-based player, so I created a JavaSound (MIDI) version. It's pretty straightforward, except all the real work is done in the shutdown method -- up to that point, it just collects up a bunch of MidiEvents to be added to a Sequencer.

The MidiMain app is a variant of Main that uses the new player. It has one additional demo -- scales with overlap -- because one issue with MIDI is that I'm only using one channel and it doesn't like to have the same pitch turned on twice for overlapping notes. The player handles this case by only generating a NOTE ON message for the first of overlapping requests, and only generating a NOTE OFF for the last.

Two settings were added to build.sbt to run the demo in a forked JVM, because without forking the JavaSound devices don't work (see http://stackoverflow.com/questions/18676712/java-sound-devices-found-when-run-in-intellij-but-not-in-sbt).

@omelkonian
Copy link

This is really useful. Why isn't it merged yet though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants