jorensix / tarsos Goto Github PK
View Code? Open in Web Editor NEWCulture independent processing of MIR data
Home Page: https://0110.be/tags/Tarsos
License: GNU General Public License v3.0
Culture independent processing of MIR data
Home Page: https://0110.be/tags/Tarsos
License: GNU General Public License v3.0
In the class MidiToWavRenderer when using custom SoundBank to create the wav file their is an attempt to unload the default SoundBank:
this.synth.unloadAllInstruments(soundbank);
soundbank
is the custom SoundBank and so will not unload anything. It also means the next attempt to load the custom SoundBank silently fails:
...
this.synth.unloadAllInstruments(soundbank);
final Instrument[] instruments = soundbank.getInstruments();
for (final Instrument instrument : instruments) {
synth.loadInstrument(instrument);
}
createWavFile(midiFile, outputFile);
...
I am asking as here Tarsos is starting, but audio playback is not possible, no matter which output device I am selecting, something seems to be wrong there or I am not sure. If I use same Tarsos .jar in Virtual Box, in Windows XP, there sound output is working, but there again, some other Tarsos .jar releases are even not starting, so there seem to be differences, and one has to have luck which Tarsos you selected, fitting to your platform or not, in theory Java should work anywhere in same way, via its bytecode. But only in theory, it seems.
My end goal is actually using Tarsos in linux, directly from command line, actually TarsosDSP and your other tool guess_makam, without any gui, if it would work. Thanks for sharing your work.
In the class MidiToWavRenderer the method createWavFile() that allows the user include a custom SoundBank calls the AudioSynthesizer's open() method. It is then calls its' overloaded method which attempts to reopen 'synth':
createWavFile(final Sequence sequence, final File outputFile) {
...
AudioInputStream stream = synth.openStream(format, map);
...
}
This throws an exception and synth is already open:
javax.sound.midi.MidiUnavailableException: Synthesizer is already open
Hi,
in your ReadMe the "executable Tarsos JAR-file" link is incorrect. It should be "http://0110.be/releases/Tarsos/Tarsos-latest/Tarsos-latest.jar".
I wish there was better documentation in TarsosDSP, but anyways, great work!
I'm trying to understand the result of the function "soundPressureLevel".
According to this page: https://en.wikipedia.org/wiki/Sound_pressure
The dbSPL measure starts around 0 (a very quiet room) to >191 (maximum volume).
But according to my tests, the result of function soundPressureLevel goes from -90 to something close to 0.
Could you please explain why we have negative values?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.