Questions tagged [tarsosdsp]

TarsosDSP is a Java library for audio processing. Its aim is to provide an easy-to-use interface to practical music processing algorithms implemented, as simply as possible, in pure Java and without any other external dependencies. The library tries to hit the sweet spot between being capable enough to get real tasks done but compact and simple enough to serve as a demonstration on how DSP algorithms works.

TarsosDSP features an implementation of a percussion onset detector and a number of pitch detection algorithms: YIN, the Mcleod Pitch method and a “Dynamic Wavelet Algorithm Pitch Tracking” algorithm. Also included is a Goertzel DTMF decoding algorithm, a time stretch algorithm (WSOLA), resampling, filters, simple synthesis, some audio effects, and a pitch shifting algorithm.

To show the capabilities of the library, TarsosDSP example applications are available. Head over to the TarosDSP release directory for freshly baked binaries and code smell free (that is the goal anyway), oven-fresh sources.

Some information about TarsosDSP can be found in the paper TarsosDSP, a Real-Time Audio Processing Framework in Java, by Joren Six, Olmo Cornelis, and Marc Leman, in Proceedings of the 53rd AES Conference (AES 53rd), 2014.

60 questions
0
votes
1 answer

Getting NullPointer exception using Tarsos DSP in dispatcher.addAudioProcessor(p);

I use Tarsos DSP to determine frequency of the sound, that is input from microphone. It works perfectly on the majority of devices, but some of them get error. The error: java.lang.RuntimeException: at…
0
votes
1 answer

Issues with SourceDataLine format support

I have an application written in Java in which I need to play audio. I used OpenAL (with java-openal library) for the task however I would like to use WSOLA which is not supported by OpenAL directly. I found a nice java-native library called…
Jan Beneš
  • 742
  • 1
  • 5
  • 24
0
votes
1 answer

How do you extract MFCC data from file using TarsosDSP?

I created an MFCC extraction portion of my code based on this example on Stack Overflow, which created two AudioProcessor instances. However, using the debugger on Android studio, I found that the code quickly enters the processingFinished function…
CCCodes
  • 145
  • 3
  • 14
0
votes
1 answer

Read an audio file into a double sample array

I'm writing an Android app that has to perform audio processing (more specifically, MFCC). I have decided to use the TarsosDSP library, but it does not provide a way to pass a sound file to it, as opposed to microphone input. This means that we…
Wapity
  • 1
  • 3
0
votes
1 answer

TarsosDSP for Android AudioRecord Object not Initialising from within LibGDX project

I am attempting to (re)create an acoustic tuner I coded some time ago using a fork of the Original TarsosDSP project making it usable with Android. This time around I am using the updated TarsosDSP for Android project by JorenSix and as far as I can…
user2145312
  • 896
  • 3
  • 10
  • 33
0
votes
1 answer

How to get an amplitude of certain frequency audio signal realtime android

I am developing lumiere application. I have a carrier signal of certain frequency (19.2 kHz if to be more precise) and I need to get the amplitude of it while the audio is being played. I have googled some info on audio processing and found out that…
0
votes
1 answer

Scrambled noise when trying to fill audioBuffer with tarsosdsp audioEvent-Buffer

I´m developing a simple Beatbox-Application. First I wrote everything in pure Java, then I found the fantastic tarsosdsp framework. But now I came across a problem I can´t solve. Can you help me? I´m setting up a SilenceDetector - which works great.…
AndiGun
  • 1
  • 1
0
votes
3 answers

Android log doesn't print

I'm using TarsosDsp and I don't know if my problem is with the library or not. I'd be happy if anyone could help me figure that out. Here's my code: public class MainActivity extends AppCompatActivity { private static final String TAG =…
Hassan Pezeshk
  • 343
  • 5
  • 16
0
votes
1 answer

Why is method not updating variable value?

I am using the tarsos DSP java API. Can someone tell me why the float pitchInHz does not get updated by the method freq() in the following code? Can someone tell me what to change to get it to work because I cant see why its not.Thanks public…
G. Mcc
  • 1
  • 1
0
votes
1 answer

Cannot resolve symbol using TarsosDSP for an android application

This problem really stumbled me. I am trying to implement the percussionDetector class from the TarsosDSP audio library but something is not right... this is my code: public class PercussionDetectionForTimer extends Timer { int…
Chip Ekak
  • 1
  • 2
0
votes
1 answer

Issues with low pass filter using TarsosDSP for Android

I have a simple code for processing a float buffer with a lowpass filter. Here's the function: public static float[] lowPass(float[] buffer, float frequnecy) { AudioFormat audioFormat = new AudioFormat(SAMPLE_RATE, 16, 1, true, false); …
vitasia1
  • 23
  • 1
  • 7
0
votes
2 answers

TarsosDSP Pitch Detection from .wav file. And the result frequency is always less than half

I'm trying to use TarsosDSP library to detect pitch from a .wav file, and the result of frequency is always less than half. Here is my code. public class Main { public static void main(String[] args){ try{ float sampleRate = 44100; …
user7395677
  • 213
  • 1
  • 2
  • 6
0
votes
0 answers

how do i have to change my code to apply this customized library?

im making a fork about audio recording in real time and in addition to adding audio effect(delay(echo), reverb, ...), and im new to the audio programming world i got some trouble like below i got the library(be.tarsos.dsp) by joren i want to apply…
sabo
  • 21
  • 3
-1
votes
1 answer

Why does PitchDetection work better with whistling?

I am playing around with the UtterAsterisk example program that comes with TarsosDSP. The goal of this program is to show horizontal bars that indicate the note a user should make. A vertical bar moves from left to right to indicate to the user the…
-1
votes
1 answer

Implementing filters with pitch detection in tarsos DSP

I want to filter the incoming audio before doing a pitch detection using tarsosDSP. I have tried to add a high pass and low pass filter before pitch detection. But still, the pitch detection outputs all frequencies even outside the range say, 300hz…
Vishnu M S
  • 17
  • 3
1 2 3
4