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
1
vote
1 answer

Detecting frequency lower than 40 hz using TarsosDSP java android

I am making an Android mobile app, where I have been trying to detect pitch using TarsosDSP. Which has been working great, only if it is greater than 43hz. But I have a requirement to make it work with 40hz. When I play the sound, it doesn't even…
Rohaitas Tanoli
  • 624
  • 4
  • 16
1
vote
0 answers

Pitch evaluation of .wav file on Android using TarsosDSP

I am trying to write a simple Android app that displays the various pitches of a .wav file while it plays. I'm using TarsosDSP to do the pitch processing and AudioTrack to play the file. Before I dive into the code here, I'm running Android Studio…
sacredfaith
  • 850
  • 1
  • 8
  • 22
1
vote
1 answer

Difficulties using TARSOS DSP to extract MFCC from WavFiles JAVA

I am attempting to use the TARSOS DSP library to extract the MFCC values from wav files, before using DTW to calculate the distance between them. Unfortunately I am having trouble undesrtanding how the code from the MFCC class can be used on a wav…
Lcarrins
  • 47
  • 5
1
vote
1 answer

TarsosDSP in Android Studio

This is my first post on SO and I am trying to combine my music skills with computer science. I am using Android studio 3.1.2 with gradle 4.5, Nexus 5X, API 25, Android 7.1.1, Windows 7. I followed very careful these instructions: Create a project…
1
vote
1 answer

TarsosDSP: Buffer size too small should be at least 7168 #151

Although it is written in the documentation that the common buffer size is 1024, 2048; it is not really running for a size of 1024; and I am getting the error message : Buffer size too small should be at least 7168 while calling the…
Dania Qb
  • 23
  • 3
1
vote
1 answer

Converting Stereo to Mono using TarsosDSP does not work

I would like to use some features of TarsosDSP on sound data. The incoming data is Stereo, but Tarsos does only support mono, so I tried to transfer it to mono as follows, but the result still sounds like stereo data interpreted as mono, i.e. the…
centic
  • 15,565
  • 9
  • 68
  • 125
1
vote
0 answers

Reason for different results for mfcc extraction using different libraries

I found two libraries (librosa and tarsosDSP), which are meant for audio signal processing. They both have a method to extract mfcc. After running a simple example on the same .wav file they give quite different results: Blue comes from librosa,…
Natjo
  • 2,005
  • 29
  • 75
1
vote
1 answer

How to Merge MFCCs

I am working on extracting MFCC features from some audio files. The program I have currently extracts a series of MFCCs for each file and has a parameter of a buffer size of 1024. I saw the following in a paper: The feature vectors extracted within…
CCCodes
  • 145
  • 3
  • 14
1
vote
0 answers

can't run Java program PitchShift with TarsosDSP

I am trying to run the Pitch Shifting example here: https://0110.be/posts/Pitch_Shifting_-_Implementation_in_Pure_Java_with_Resampling_and_Time_Stretching but I can't get it to work. I try to run java -jar PitchShift-latest.jar from the command…
1
vote
0 answers

How to extract BPM of an MP3 file in TarsosDSP (Android)

I've been developing a player which can extract the audio tags and other metadata. I'm using mp3agic for ID3 tag management, but I want to implement a method in which the MP3 file is analyzed to find the BPM (Beats Per Minute) of the said MP3 file.…
1
vote
1 answer

Activity whith pitch detect TarsosDSP no restart

I wrote a guitar tuner in music application. The main activity launch the tuner when click on button. The tuner works fine. But if I come back to main activity. The Tuner activity start, but pitch detection does not. The thread don't stop for the…
Roberto
  • 11
  • 2
1
vote
1 answer

Extracting audio features like MFCC on android

I want to extract MFCC from audio files on android. I have searched everywhere but I couldn't find any working code for this. Could someone share any working code for the same?
1
vote
0 answers

Count the number of audio samples between two identical tones

I would like to count the number of sound samples between the beginnings of two identical tones in time domain. The tones are generated at random points in time. To do so, I think that I need to do three main things for each audio-samples…
MJZ
  • 174
  • 13
1
vote
0 answers

Android app - Skipped frames in pitch recognition

I'm working on a note recognition software, and, I use a Thread.sleep to ensure a pitch is consistent enough over a period to qualify as a note rather than noise. This seems to be making my app skip frames though, and pretty much breaks the program.…
Miguel Boland
  • 131
  • 1
  • 4
1
vote
1 answer

TARSOS DSP for Android: retrieving SpectralPeaks

I'm using Tarsos Dsp for android for retrieving spectral peaks from an audiofile. Since version 2, TarsosDSP doesn't use javax which should make everything a lot easier. What is bugging me is that my code is working fine but android is struggling…