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
8
votes
1 answer

TarsosDSP Pitch Analysis for Dummies

I am woking on a progarm that analyze the pitch of a sound file. I came across a very good API called "TarsosDSP" which offers various pitch analysis. However I am experiencing a lot of trouble setting it up. Can someone show me some quick pointers…
user4835582
6
votes
1 answer

TarsosDSP and SurfaceView Multiple Threading Issue

I am using TarsosDSP to calculate pitch frequencies in real time. It uses an AudioDispatcher which implements Runnable and post the results via handlePitch method to make use of in the main thread. I am using SurfaceView to draw this value as it…
ugur
  • 3,604
  • 3
  • 26
  • 57
5
votes
2 answers

How to get MFCC with TarsosDSP?

I searched everywhere and I couldn't figure out how to extract MFCC feature using TarsosDSP on Android. I know how to get FFT out of a file. Any help?
Hassan Pezeshk
  • 343
  • 5
  • 16
4
votes
1 answer

Using FFT in TarsosDSP library in android

I'm just starting to use TarsosDSP for android and I can't figure out how to use FFT. Can anyone provide me with a sample? I just wanna read a file and get FFT output of it.
Hassan Pezeshk
  • 343
  • 5
  • 16
3
votes
1 answer

Android, live amplitude and pitch detection

I'm writing an app that needs to listen to the microphone and give me a live amplitude and pitch output. I have figured out how to do pitch recognition. I've been doing a lot of research into fft. found the Android library TarsosDSP which makes…
cas
  • 757
  • 4
  • 19
3
votes
0 answers

BandPass filter for Android Audio giving unexpected results

I am trying to filter specific frequencies from android stereo audio (recorded using AudioRecord) using TarsosDSP library(and also minim Android library but code for that is not included here). There are 2 problems I want suggestions for. When I…
Amit Sharma
  • 131
  • 1
  • 2
  • 12
3
votes
1 answer

RealTime Pitch Shifting using TarsosDSP on Android

Here is what I want : 1. Real time pitch shift while playing song. 2. Pitch shift should also be recorded to a file. code : double rate = 1.0; RateTransposer rateTransposer; AudioDispatcher dispatcher; …
Avinash Shinde
  • 199
  • 2
  • 12
3
votes
2 answers

TarsosDSP Clap Detection

I decided to try out developing for android studio and designed an app that listens for a clap then performs an action of some sort. My problem lies in using TarsosDSP. I want to run the Listener class as an IntentService, so I can lock my phone…
Ausche
  • 139
  • 2
  • 12
3
votes
2 answers

TarsosDSP with android

I am trying to use TarsosDSP library with android, but it needs to use the javax.sound.sampled library which is not available on android as far as I'm aware. is there any way to include the javax.sound.sampled package in android? I found a library…
user2145312
  • 896
  • 3
  • 10
  • 33
2
votes
1 answer

How to get PCM 16-bit data from TarsosDSP AudioDispatcher?

I want to get PCM 16-bit data from TarsosDSP AudioDispatcher. I followed this link for the pitch analysis of a real-time audio stream. I am getting the desired results but I also want to get the PCM data from AudioDispatcher. AudioDispatcher adp =…
Khubaib Ahmad
  • 141
  • 10
2
votes
0 answers

How to use MFCC TarsosDSP with microphone in android

in this example (answer): How to get MFCC with TarsosDSP? they show how to use MFCC in android @Test from float array, Im trying to use it with data from microphone : int sampleRate = 44100; int bufferSize = 8192; int bufferOverlap =…
2
votes
1 answer

stream from microphone, add effect and save to wav file using tarsos android library

Notes: I'm using android studio and currently I'm using the latest tarsos audio library that is supposed to be compatible with android, and in fact have successfully added the library to my android studio project. I previously tried using the…
Wraithious
  • 385
  • 2
  • 11
2
votes
0 answers

TarsosDSP PitchDetection Issue

I am using the audiodispatcher from the TarsosDSPlibrary. The pitchdetection is used to detect sounds from the mic. Once detected, it switches to the next activity (which is a Maths quiz). After completing the quiz on the next activity, it returns…
Alvin Lee
  • 21
  • 2
1
vote
1 answer

Playing a wav file with TarsosDSP on Android

Problem: Wav file loads and is processed by AudioDispatcher, but no sound plays. First, the permissions: public void checkPermissions() { if (PackageManager.PERMISSION_GRANTED != ContextCompat.checkSelfPermission(this.requireContext(),…
sacredfaith
  • 850
  • 1
  • 8
  • 22
1
vote
1 answer

Fixing "shaky" pitch detection in Kotlin using TarsosDSP

I am writing an instrument tuner app (for now starting with Guitar). For pitch detection I'm using TarsosDSP. It does detect the pitch correctly, however it is quite shaky - for example, I'll hit the (correctly tuned) D string on my Guitar, it…
Brian
  • 117
  • 1
  • 13
1
2 3 4