|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Can Java save MIDI to WAV file?When MIDI is played in Java, the Synthesizer converts MIDI messages into actual musical sounds based on the instruments/soundbanks it has loaded.
If you save and play the MIDI itself in a different media application (e.g., WinAmp), it may sound different because the application does not necessarily load the same soundbanks as the Java synthesizer. Is there a way to get Java to save the actual audio generated by the Synthesizer into a WAV file, or some other audio encoding? Thanks! -Dave =========================================================================== Java Sound homepage: http://java.sun.com/products/java-media/sound/ Mailing list archive: http://archives.java.sun.com/archives/javasound-interest.html =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVASOUND-INTEREST". For general help, send email to listserv@... and include in the body of the message "help".
|
|
|
SV: [JAVASOUND] Can Java save MIDI to WAV file?Currently Java Synthesizer doesn't support writing directly into audio file. The audio has to be recorded
through the line-in on your sound card. But Gervill Synthesizer for Java does supports writing directly to audio file. https://gervill.dev.java.net/ And it has support for both SF2 and DLS soundbanks. A Midi2WavRender.java is included in the src.demos. regards, Karl ________________________________________ Frá: Discussion list for JavaSound API [JAVASOUND-INTEREST@...] Fyrir hönd David Koelle [dmkoelle@...] Sent: 22. febrúar 2008 13:08 Viðtakandi: JAVASOUND-INTEREST@... Efni: [JAVASOUND] Can Java save MIDI to WAV file? When MIDI is played in Java, the Synthesizer converts MIDI messages into actual musical sounds based on the instruments/soundbanks it has loaded. If you save and play the MIDI itself in a different media application (e.g., WinAmp), it may sound different because the application does not necessarily load the same soundbanks as the Java synthesizer. Is there a way to get Java to save the actual audio generated by the Synthesizer into a WAV file, or some other audio encoding? Thanks! -Dave =========================================================================== Java Sound homepage: http://java.sun.com/products/java-media/sound/ Mailing list archive: http://archives.java.sun.com/archives/javasound-interest.html =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVASOUND-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1292 - Release Date: 21.2.2008 16:09 =========================================================================== Java Sound homepage: http://java.sun.com/products/java-media/sound/ Mailing list archive: http://archives.java.sun.com/archives/javasound-interest.html =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVASOUND-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: Can Java save MIDI to WAV file?Hi,
Frinika (frinika.sourceforge.net) does this by playing the sequence one tick at a time -> sending midi events to the synthesizer (in your case I would use Gervill, rather than java default synth, since it's easier to get hold of the audio output) -> read the audio output produced from the synth - and write it to the wav file. The core stuff is happening here: http://frinika.svn.sourceforge.net/viewvc/frinika/frinika/trunk/src/com/frinika/tools/MyMidiRenderer.java?view=markup But you probably need to browse the code a little more to get the whole picture. This is part of the "Export wav" function from the "file" menu in Frinika. cheers, Peter On Fri, Feb 22, 2008 at 2:08 PM, David Koelle <dmkoelle@...> wrote: When MIDI is played in Java, the Synthesizer converts MIDI messages into actual musical sounds based on the instruments/soundbanks it has loaded. =========================================================================== Java Sound homepage: http://java.sun.com/products/java-media/sound/ Mailing list archive: http://archives.java.sun.com/archives/javasound-interest.html =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVASOUND-INTEREST". For general help, send email to listserv@... and include in the body of the message "help".
|
| Free embeddable forum powered by Nabble | Forum Help |