GithubHelp home page GithubHelp logo

jorensix / tarsos Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 12.0 76.11 MB

Culture independent processing of MIR data

Home Page: https://0110.be/tags/Tarsos

License: GNU General Public License v3.0

Shell 0.26% Java 99.42% Ruby 0.15% HTML 0.18%

tarsos's People

Contributors

jorensix avatar thomasstubbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tarsos's Issues

Midi to wav attempts to unload incorrect SoundBank

this.synth.unloadAllInstruments(soundbank);

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);
...

Which is the most stable Tarsos I should try among all available releases for Linux Ubuntu 16.04 LTS?

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.

Converting midi to wav with custom SoundBank fails when reopening synth

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

Measure of dbSPL

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.