0% found this document useful (0 votes)
199 views15 pages

tarsosDSP Presentation

The document covers audio processing basics and the TarsosDSP library. It outlines goals of covering basic audio principles and provides an overview of analog and digital audio concepts like sample rate and bit depth. It introduces TarsosDSP as a Java library for simple audio processing with examples for filters, pitch detection, FFT and more. Contact information is provided to ask questions.

Uploaded by

kapil44629
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views15 pages

tarsosDSP Presentation

The document covers audio processing basics and the TarsosDSP library. It outlines goals of covering basic audio principles and provides an overview of analog and digital audio concepts like sample rate and bit depth. It introduces TarsosDSP as a Java library for simple audio processing with examples for filters, pitch detection, FFT and more. Contact information is provided to ask questions.

Uploaded by

kapil44629
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Outline and Goal Basics TarsosDSP Conclusion

Audio Processing Joren Six

25 March 2011
Outline and Goal Basics TarsosDSP Conclusion

Goal

Cover the basic principles of doing stuff with audio.


Outline and Goal Basics TarsosDSP Conclusion

Outline

Outline and Goal

Basics
Analog Audio
Digital Audio

TarsosDSP
Examples
Contact

Conclusion
Outline and Goal Basics TarsosDSP Conclusion Analog Audio Digital Audio

Basics - Analog Audio

f (x)

Figure: Continuous wave


Outline and Goal Basics TarsosDSP Conclusion Analog Audio Digital Audio

Basics - Digital Audio

f (x)

Figure: Sampled wave


Outline and Goal Basics TarsosDSP Conclusion Analog Audio Digital Audio

Basics - Digital Audio - Samplerate

Listing 1: A sampled sine wave buffer


1 double sampleRate = 44100.0;
double frequency = 440.0;
double seconds = 2.0;
float [] b = new float [ seconds * sampleRate ];
for ( int sample = 0; sample < b . length ; sample ++) {
6 double time = sample / sampleRate ;
b [ sample ] = 0.8 * Math . sin ( twoPiF0 * time ) ;
}
Outline and Goal Basics TarsosDSP Conclusion Analog Audio Digital Audio

Basics- Digital Audio - Bit depth

Listing 2: A sampled sine wave buffer


final byte [] byteBuffer = new byte [ b . length * 2];
2 int bIndex = 0;
for ( int i = 0; i < byteBuffer . length ; i ++) {
final int x = ( int ) ( b [ bIndex ++] * 32767.0) ;
byteBuffer [ i ] = ( byte ) x ;
i ++;
7 // unsigned right shift
byteBuffer [ i ] = ( byte ) ( x >>> 8) ;
}

float in [−1.0, 1.0] to 16bit signed little endian PCM.


Multiply each sample with b(216 − 1)/2c = 32767
Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - What

TarsosDSP is a collection of JAVA classes to do simple audio


processing. Bascially chainable operations on float or byte buffers.
Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - Contents

I Filters: low pass, high pass


I Pitch detectors: YIN and MPM
I FFT
I WAV file writer
I ...
Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - Sound Detection

Demo
Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - Pitch Detection

Figure: Pitch detection


Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - Percussion Detection

Figure: Percussion onset detection


Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - FFT to MIDI

Demo
Outline and Goal Basics TarsosDSP Conclusion Examples Contact

TarsosDSP - Contact

Figure: https://github.com/JorenSix/TarsosDSP
Outline and Goal Basics TarsosDSP Conclusion

Conclusion and Questions

[email protected]

You might also like