Replies: 5 comments 6 replies
-
|
Gervill is an integrated feature in JDK7 and above. See. |
Beta Was this translation helpful? Give feedback.
-
|
If you don't have access to com/sun/media/sound classes and interfaces (SoftSynthesizer, AudioSynthesizer, EmergencySoundbank, ModelPatch, SF2Instrument, ...) than I think, that Gervill is not well integrated to the Java sound. |
Beta Was this translation helpful? Give feedback.
-
|
I had a deeper look to the java sound system and I think I have an idea how to use Gervill with the SoftSynthesizer class. In com/sun/media/sound there is a class SoftProvider which implements Service Provider Interface (SPI) MidiDeviceProvider. SoftProvider do a SoftSynthesizer instantiation by calling MidiSystem.getMidiDevice(MidiDevice.Info). It returns interface MidiDevice which you can cast to interface Synthesizer. Before calling MidiSystem.getMidiDevice you have to call MidiSystem.getMidiDeviceInfo(). From the result of this call you have to extract the suitable MidiDevice.Info. In Tuxguitar code there are already parts that uses Gervill (TuxGuitar-gervill, Gervill as MidiPort in TuxGuitar-jsa and maybe the export of Audio file). |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @harborsiem to re-open this topic, we may get a serious issue of software obsolescence if it is not handed correctly.
|
Beta Was this translation helpful? Give feedback.
-
|
FYI: I tried to unify the Gervill code for desktop and android and bring it a little closer to OpenJDK with the commits aa7b19a, 96c05ab and c821337. The code for desktop and android is now quite the same, but still far away from OpenJDK. However, the task was getting too complicated and time-consuming. I thought the commits might still be a small improvement. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some warnings are raised during compilation of gervill: use of deprecated APIs.
The url of gervill website in readme is no more accessible, so it seems this dependency is no more maintained.
Any suggestion for a possible replacement?
Beta Was this translation helpful? Give feedback.
All reactions