---
title: Blog - 0110.be
canonical: https://0110.be/Blog?page=5
markdown_url: https://0110.be/Blog.md?page=5
page: 5
posts_per_page: 30
total_posts: 259
filters:
  content_page: Blog
  tags:
  - 0110 concerten
  - 0110.be
  - ARIP
  - Code
  - Collaborative Filtering
  - Command Line Application
  - Computational ethnomusicology
  - Computational musicology
  - Cultuur
  - Dutch
  - Film
  - Folk Music Analysis (FMA) conference
  - Hackerspace Ghent
  - Harde waren
  - HoGent
  - ISMIR
  - JNMR
  - Java
  - Jazz
  - Jongleren
  - Joren In Halmstad
  - LaTeX
  - Mac OS X
  - Music Information Retrieval
  - Muziek
  - PeachNote Piano
  - Poging tot humor
  - Portfolio
  - Presentation
  - Projecten
  - Reizen
  - Research papers
  - School
  - Schoolwijs
  - Tarsos
  - TarsosDSP
  - TarsosTranscoder
  - Thesis
  - UGent
  - Vooruit
  - WSOLA
  - featured
  - français
previous: https://0110.be/Blog.md?page=4
next: https://0110.be/Blog.md?page=6
---

# Blog - 0110.be

## [Tarsos 1.0: Transcription Features](https://0110.be/posts/Tarsos_1.0%3A_Transcription_Features.md)

- Published: 2012-12-05T00:00:00Z
- Updated: 2020-11-17T09:00:24Z
- Author: Joren
- ID: 335
- Canonical: https://0110.be/posts/Tarsos_1.0%3A_Transcription_Features

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [Tarsos](https://0110.be/tags/Tarsos.md), [WSOLA](https://0110.be/tags/WSOLA.md), [featured](https://0110.be/tags/featured.md)

Today marks the reslease of Tarsos 1.0 . The new Tarsos release contains practical transcription features. As can be seen in the screenshot below, a time stretching feature makes it easy to loop a certain audio fragment while it is playing in a slow tempo. The next loop can be played with by pressing the `n` key, the one before by pressing `b`.

Since the pitch classes can be found in a song, and there is a feature that lets you play a `MIDI` keyboard in the tone scale of the song under analysis, transcription of ethnic music is made a lot easier.

<div align="center">
<a href="http://0110.be/releases/Tarsos/Tarsos-latest/Tarsos-latest.jar">\
<img src='https://0110.be/files/attachments/335/Tarsos-1.0.png' alt="Tarsos 1.0" width="400px"/>\
</a>

</div>
The new release of Tarsos can be found in the [Tarsos release repository](http://0110.be/releases/Tarsos/). From now on, nightly releases are uploaded there automatically.


---

## [Pitch Shifting - Implementation in Pure Java with Resampling and Time Stretching](https://0110.be/posts/Pitch_Shifting_-_Implementation_in_Pure_Java_with_Resampling_and_Time_Stretching.md)

- Published: 2012-11-05T00:00:00Z
- Updated: 2020-11-17T09:07:53Z
- Author: Joren
- ID: 370
- Canonical: https://0110.be/posts/Pitch_Shifting_-_Implementation_in_Pure_Java_with_Resampling_and_Time_Stretching

- Tags: [Code](https://0110.be/tags/Code.md), [Command Line Application](https://0110.be/tags/Command%20Line%20Application.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md), [WSOLA](https://0110.be/tags/WSOLA.md), [featured](https://0110.be/tags/featured.md)

The DSP library for Taros, aptly named TarsosDSP, now includes an implementation of a *pitch shifting algorithm* (as of version 1.4). The goal of pitch shifting is to change the pitch of a piece of audio without affecting the duration. The algorithm implemented is a combination of resampling and time stretching. Resampling changes the pitch of the audio, but affects the total duration. Consecutively, the duration of the audio is stretched to the original (without affecting pitch) with time stretching. The result is very similar to [phase vocoding](http://en.wikipedia.org/wiki/Phase_vocoder).

The example application below shows how to pitch shift input from the microphone in real-time, or pitch shift a recorded track with the TarsosDSP library.

<div align="center">
<a href="https://0110.be/releases/TarsosDSP/TarsosDSP-1.4/TarsosDSP-1.4-Examples/PitchShift-1.4.jar"><img src="https://0110.be/files/attachments/370/pitch-shift-in-java.png" alt="Pitch shifting in Java"/></a>

</div>
To test the application, download and execute the [PitchShift.jar](https://0110.be/releases/TarsosDSP/TarsosDSP-latest/TarsosDSP-latest-Examples/PitchShift-latest.jar) file and load an audio file. For the moment only 44.1kHz mono wav is allowed. To get started you can try "this piece of audio":\[08.\_Ladrang_Kandamanyura_10s-20s.wav\].

There is also a command line interface, the following command lowers the pitch of `in.wav` by two semitones.

    java -jar in.wav out.wav -200

    ----------------------------------------------------
     _______                       _____   _____ _____  
    |__   __|                     |  __ \ / ____|  __ \ 
       | | __ _ _ __ ___  ___  ___| |  | | (___ | |__) |
       | |/ _` | '__/ __|/ _ \/ __| |  | |\___ \|  ___/ 
       | | (_| | |  \__ \ (_) \__ \ |__| |____) | |     
       |_|\__,_|_|  |___/\___/|___/_____/|_____/|_|     

    ----------------------------------------------------
    Name:
        TarsosDSP Pitch shifting utility.
    ----------------------------------------------------
    Synopsis:
        java -jar PitchShift.jar source.wav target.wav cents
    ----------------------------------------------------
    Description:
        Change the play back speed of audio without changing the pitch.

            source.wav  A readable, mono wav file.
            target.wav  Target location for the pitch shifted file.
            cents       Pitch shifting in cents: 100 means one semitone up, 
                    -100 one down, 0 is no change. 1200 is one octave up.

The resampling feature was implemented with libresample4j by Laszlo Systems. libresample4j is a Java port of Dominic Mazzoni's libresample 0.1.3, which is in turn based on Julius Smith's Resample 1.7 library.


- [pitch-shift-in-java.png](https://0110.be/files/attachments/370/pitch-shift-in-java.png)

- [08.\_Ladrang\_Kandamanyura\_10s-20s.wav](https://0110.be/files/attachments/370/08._Ladrang_Kandamanyura_10s-20s.wav)

---

## [ISMIR 2012 - Highlights](https://0110.be/posts/ISMIR_2012_-_Highlights.md)

- Published: 2012-10-08T11:47:22Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 388
- Canonical: https://0110.be/posts/ISMIR_2012_-_Highlights

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [HoGent](https://0110.be/tags/HoGent.md), [ISMIR](https://0110.be/tags/ISMIR.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md)

<img src="https://0110.be/files/attachments/388/ismir_2012.jpg"  alt="Logo ISMIR 2012" style="float:right">The 13th International Society for Music Information Retrieval Conference took place in Porto, Portugal, October 8th-12th, 2012. This text contains links to some papers, toolkits, software presented there which are interesting for my research. Basically it contains my personal highlights of the conference. The [ISMIR 2012](http://ismir2012.ismir.net/) is described as follows:

> The annual Conference of the International Society for Music Information Retrieval (ISMIR) is the world's leading research forum on processing, searching, organizing and accessing music-related data. The revolution in music distribution and storage brought about by digital technology has fueled tremendous research activities and interests in academia as well as in industry. The ISMIR Conference reflects this rapid development by providing a meeting place for the discussion of MIR-related research, developments, methods, tools and experimental results. Its main goal is to foster multidisciplinary exchange by bringing together researchers and developers, educators and librarians, as well as students and professional users.

### Tutorials

I saw an interesting tutorial on Jazz music and a tutorial on source separation. After an introduction, which detailed the experimental basis of the system, a source separator was introduced. The [REPET source separator](http://music.cs.northwestern.edu/research.php) is a relatively simple system that yields reasonable results to split accompaniment from foreground melody.

### Posters & Talks

The approach and the dataset used in [N-gram Based Statistical Makam Detection on Makam Music in Turkey Using Symbolic Data](http://ismir2012.ismir.net/event/papers/043-ismir-2012.pdf) is very interesting. More than 800 pieces of makam music where transcribed manually and analysed. Details about the dataset are available in the following paper: [A Turkish Makam Music Symbolic Database for Music Information Retrieval: SymbTr](http://ismir2012.ismir.net/event/papers/223-ismir-2012.pdf).

[Assigning a Confidence Threshold on Automatic Beat Annotation in Large Datasets](http://ismir2012.ismir.net/event/papers/157-ismir-2012.pdf) by Zapata et al. shows a very interesting way to do exactly what the title says. Descriptive titles are descriptive.

A very practical tool to do melody extraction was presented by Justin Salamon. He created a Vamp Plugin with the name [Melodia](http://mtg.upf.edu/technologies/melodia). Unfortunately the plugin is currently only available for windows, but Linux and OS X versions are in the pipeline. More about the algorithm implemented and background information can be found in the paper Justin presented: [Statistical Characterisation of Melodic Pitch Contours and its Application for Melody Extraction](http://ismir2012.ismir.net/event/papers/187-ismir-2012.pdf). Another Vamp Plugin for melody visualization was also presented: [Pitch Content Visualization Tools for Music Performance Analysis](http://ismir2012.ismir.net/event/papers/493-ismir-2012.pdf).

The ongoing work by Ceril Bohak and Matija Marolt on segmentation of folk music could be very useful to apply on Afican musics. The paper is called [Finding Repeating Stanzas in Folk Songs](http://ismir2012.ismir.net/event/papers/451-ismir-2012.pdf).


- [ismir\_2012.jpg](https://0110.be/files/attachments/388/ismir_2012.jpg)

---

## [ICMC 2012 - Sound to Scale to Sound, a Setup for Microtonal Exploration and Composition](https://0110.be/posts/ICMC_2012_-_Sound_to_Scale_to_Sound%2C_a_Setup_for_Microtonal_Exploration_and_Composition.md)

- Published: 2012-08-31T00:00:00Z
- Updated: 2014-02-13T10:53:56Z
- Author: Joren
- ID: 369
- Canonical: https://0110.be/posts/ICMC_2012_-_Sound_to_Scale_to_Sound%2C_a_Setup_for_Microtonal_Exploration_and_Composition

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Presentation](https://0110.be/tags/Presentation.md), [Tarsos](https://0110.be/tags/Tarsos.md), [featured](https://0110.be/tags/featured.md)

<img src="https://0110.be/files/attachments/369/ICMC_Logo.png" width="120px" alt="Logo Universiteit Utrecht" style="float:right">At this years ICMC Conference, [ICMC 2012](http://www.icmc2012.si/) we presented a paper describing a way to experiment with tone scales and how to use Tarsos as a compositional tool. What follows are some pointers to the presentation, paper and to other interesting talks that were presented there.

ICMC 2012 was organized in Ljubljana from the 9 to 14 septembre and had a very dense program of talks, posters, presentations, demos and concerts.

<blockquote>
Since 1974 the International Computer Music Conference has been the major international forum for the presentation of the full range of outcomes from technical and musical research, both musical and theoretical, related to the use of computers in music. This annual conference regularly travels the globe, with recent conferences in the Americas, Europe and Asia. This year we welcome the conference to Slovenia for the first time.

</blockquote>
### Sound to Scale to Sound, a Setup for Microtonal Exploration and Composition

Our contribution to the conference was a paper titled "Sound to Scale to Sound, a Setup for Microtonal Exploration and Composition":\[icmc2012_submission_45.pdf\].

If you want to cite our work, this BibTeX entry is included for your convenience:

\`\`\`ruby\
\@inproceedings{cornelis2012sound_to_scale,\
author = {Olmo Cornelis and Joren Six},\
title = {{Sound to Scale to Sound, a Setup for Microtonal Exploration and Composition}},\
booktitle = {{Proceedings of the 2012 International Computer Music Conference,\
(ICMC 2012)}},\
year = {2012},\
publisher = {The International Computer Music Association}\
}\
\`\`\`

### Program highlights

What follows are a number of pointers to my personal program highlights.

Verena Thomas presented two very well polished software tools. One to detect patterns in scores, called motifviewer and a tool to search in score databases in a multi-modal way. The [Probado tool](http://probado.iai.uni-bonn.de:8080/) does score-to-audio alignment and much more.

[Gibber](http://www.charlie-roberts.com/gibber/) is an impressive live-coding environment with an easy syntax. Since it is all done with javascript you can start playing with it immediately. [Overtone](http://overtone.github.com/) Another live-coding environment, presented at the conference by Sam Aaron, was equally impressive. It is programmed using the Closure language.

At ICMC there were a number of tools to assist in composition. One of those is [The Bach Project](http://www.bachproject.net/bach/home_page.html), by Andrea Agostini. Togheter with CatART by Diemo Swartz it forms a very expressive platform to work with sound, which was demonstrated by Aaron Einbond and Christopher Trapani in their paper titled *Precise Pitch Control In Real Time Corpus-Based Concatenative Synthesis*. Diemo Swartz presented work on Audio Mosaicing, it can be seen as a follow-up to [AuidioGuild](http://crca.ucsd.edu/~ben/audioGuide/) by Ben Hackbarth.

I also got to know the work by [Thomas Grill](http://grrrr.org), on his website a nice piece of software can be found a Python implementation of the [Non Stationary Gabor Transform (NSGT)](http://grrrr.org/research/software/nsgt/). Another software system I got to know is the functional signal processing programming language [FAUST](http://en.wikipedia.org/wiki/FAUST_(programming_language))

My personal highlights of the concert programme include the works by Johannes Kreidler, Aura Pon, Daniel Mayer, Alexander Schubert and the remarkable performance by Dexter Ford. The concept behind Soundlog by Johannes Kretz was also interesting.


- [ICMC\_Logo.png](https://0110.be/files/attachments/369/ICMC_Logo.png)

- [2012.09.08-Sound\_to\_Scale\_to\_Sound\_\_a\_Setup\_for\_Microtonal\_Exploration\_and\_Composition.odp](https://0110.be/files/attachments/369/2012.09.08-Sound_to_Scale_to_Sound__a_Setup_for_Microtonal_Exploration_and_Composition.odp)

- [icmc2012\_submission\_45.pdf](https://0110.be/files/attachments/369/icmc2012_submission_45.pdf)

---

## [CIM 2012 - Revealing and Listening to Scales From the Past; Tone Scale Analysis of Archived Central-African Music Using Computational Means](https://0110.be/posts/CIM_2012_-_Revealing_and_Listening_to_Scales_From_the_Past%3B_Tone_Scale_Analysis_of_Archived_Central-African_Music_Using_Computational_Means.md)

- Published: 2012-08-31T00:00:00Z
- Updated: 2014-02-13T10:58:38Z
- Author: Joren
- ID: 351
- Canonical: https://0110.be/posts/CIM_2012_-_Revealing_and_Listening_to_Scales_From_the_Past%3B_Tone_Scale_Analysis_of_Archived_Central-African_Music_Using_Computational_Means

- Tags: [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [Presentation](https://0110.be/tags/Presentation.md), [Research papers](https://0110.be/tags/Research%20papers.md), [Tarsos](https://0110.be/tags/Tarsos.md), [featured](https://0110.be/tags/featured.md)

<img src="https://0110.be/files/attachments/351/Forkeljpg.jpg" width="120px" alt="Logo Universiteit Utrecht" style="float:right">What follows is about the [Conference on Interdisciplinary Musicology (CIM2012)](http://gfm2012.uni-goettingen.de/cim12/CIM12/Home.html) and the [15th international Conference of the Gesellschaft fur Musikfoschung](http://gfm2012.uni-goettingen.de/GfM2012/Home.html). First this text will give information about our contribution to CIM2012: *Revealing and Listening to Scales From the Past; Tone Scale Analysis of Archived Central-African Music Using Computational Means* and then a number of highlights of the conference follow. The joint conference took place from the 4th to the 8th of september 2012.

<blockquote>
In 2012, CIM will tackle the subject of History. Hosted by the University of Göttingen, whose one time music director Johann Nikolaus Forkel is widely regarded as one of the founders of modern music historiography, CIM12 aims to promote collaborations that provoke and explore new methods and methodologies for establishing, evaluating, preserving and communicating knowledge of music and musical practices of past societies and the factors implicated in both the preservation and transformation of such practices over time.

</blockquote>
### Revealing and Listening to Scales From the Past; Tone Scale Analysis of Archived Central-African Music Using Computational Means

Our contribution ton CIM 2012 is titled "Revealing and Listening to Scales From the Past; Tone Scale Analysis of Archived Central-African Music Using Computational Means":\[CIM12_Submission.pdf\]. The aim was to show how tone scales of the past, e.g. organ tuning, can be extracted and sonified. During the demo special attention was given to historic Central African tuning systems. The presentation I gave is included below and or available for "download":\[2012.09.05-Revealing_and_listening_to_scales_from_the_past\_\_tone_scale_analysis_of_archived_Central-African_music_using_computational_means..ppt\]

### Highlights

What follows are some personal highlights for the [Conference on Interdisciplinary Musicology (CIM2012)](http://gfm2012.uni-goettingen.de/cim12/CIM12/Home.html) and the [15th international Conference of the Gesellschaft fur Musikfoschung](http://gfm2012.uni-goettingen.de/GfM2012/Home.html). The joint conference took place from the 4th to the 8th of september 2012.

The work presented by Rytis Ambrazevicius et al. *Modal changes in traditional Lithuanian singing: Diachronic aspect* has a lot in common with our research, it was interesting to see their approach. Another highlight of the conference was the whole session organized by Klaus-Peter Brenner around Mbira music.

Rainer Polak gave a talk titled *'Swing, Groove and Metre. Asymmetric Feels, Metric Ambiguity and Metric Transformation in African Musics'*. He showed how research about rhythm in jazz research, music theory and empirical musicology ( amongst others) could be bridged and applied to ethnic music.

The overview Eleanore Selfridge-Field gave during her talk *Between an Analogue Past and a Digital Future: The Evolving Digital Present* was refreshing. She had a really clear view on all the different ways musicology and digital media can benifit from each-other.

From the concert programme I found two especially interesting: the lecture-performance by Margarete Maierhofer-Lischka and Frauke Aulbert of [*Lotofagos*](http://www.youtube.com/watch?v=tYD30v0PgoI), a piece by Beat Furrer and *Burdocks* composed and performed by Christian Wolff and a bunch of enthusiastic students.


- [Forkeljpg.jpg](https://0110.be/files/attachments/351/Forkeljpg.jpg)

- [CIM12\_Submission.pdf](https://0110.be/files/attachments/351/CIM12_Submission.pdf)

- [2012.09.05-Revealing\_and\_listening\_to\_scales\_from\_the\_past\_\_tone\_scale\_analysis\_of\_archived\_Central-African\_music\_using\_computational\_means..ppt](https://0110.be/files/attachments/351/2012.09.05-Revealing_and_listening_to_scales_from_the_past__tone_scale_analysis_of_archived_Central-African_music_using_computational_means..ppt)

---

## [Analytical Approaches To World Music - Microtonal Scale Exploration in Central Africa](https://0110.be/posts/Analytical_Approaches_To_World_Music_-_Microtonal_Scale_Exploration_in_Central_Africa.md)

- Published: 2012-06-06T06:54:04Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 342
- Canonical: https://0110.be/posts/Analytical_Approaches_To_World_Music_-_Microtonal_Scale_Exploration_in_Central_Africa

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Presentation](https://0110.be/tags/Presentation.md), [Tarsos](https://0110.be/tags/Tarsos.md), [featured](https://0110.be/tags/featured.md)

At the 2012 [AAWM (Analytical Approaches To World Music)](http://www.aawmconference.com/aawm2012/papers.htm) conference we presented a way to explore tone scales in the music of Central Africa. Since the audience consisted of (ethno)musicologists, the main focus of the presentation was on the applicication part, the technical aspects were only briefly mentioned.

The extended abstract can be consulted: [Towards the tangible: microtonal scale exploration in Central-African music](http://www.aawmconference.com/aawm2012/papers/cornelis_p.pdf)

The conference program itself was very diverse and interesting.


- [2012.05.11-Towards\_the\_Tangible\_-\_Microtonal\_Scale\_Exploration\_in\_Central-African\_Music.odp](https://0110.be/files/attachments/342/2012.05.11-Towards_the_Tangible_-_Microtonal_Scale_Exploration_in_Central-African_Music.odp)

- [AAWM\_abstract\_short.doc](https://0110.be/files/attachments/342/AAWM_abstract_short.doc)

---

## [TarsosDSP Release 1.2](https://0110.be/posts/TarsosDSP_Release_1.2.md)

- Published: 2012-06-05T13:26:22Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 336
- Canonical: https://0110.be/posts/TarsosDSP_Release_1.2

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md)

Today a new version of the TarsosDSP library was released. TarsosDSP is a small library to do audio processing in Java. It features two new pitch detectors. An AMDF (Average Magnitude Difference Function) pitch detector, contributed by [Eder Souza](http://ederwander.wordpress.com/) of Brazil and a faster implementation of YIN kindly provided by [Matthias Mauch](http://matthiasmauch.net/) of Queen Mary University, London.

<div align="center">
[![Pitch Detector in Java](https://0110.be/files/attachments/336/PitchDetector.png "Pitch Detector in Java")](https://0110.be/releases/TarsosDSP/TarsosDSP-1.2/TarsosDSP-1.2-Examples/PitchDetector-1.2.jar)

</div>
Find your oven fresh baked binaries at the [TarsosDSP Release Repository](http://tarsos.0110.be/releases/TarsosDSP/).


- [PitchDetector.png](https://0110.be/files/attachments/336/PitchDetector.png)

---

## [Guest Lecture at MIT - Ethnic Music Analysis:  Challenges & Opportunities - Tarsos as a Case Study](https://0110.be/posts/Guest_Lecture_at_MIT_-_Ethnic_Music_Analysis%3A__Challenges_%26_Opportunities_-_Tarsos_as_a_Case_Study.md)

- Published: 2012-05-07T00:00:00Z
- Updated: 2014-02-13T10:56:44Z
- Author: Joren
- ID: 362
- Canonical: https://0110.be/posts/Guest_Lecture_at_MIT_-_Ethnic_Music_Analysis%3A__Challenges_%26_Opportunities_-_Tarsos_as_a_Case_Study

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Presentation](https://0110.be/tags/Presentation.md)

Thursday the 3th of May I gave a guest lecture titled 'Ethnic Music Analysis: Challenges & Opportunities' it featured Tarsos as a Case Study. The goal was to identify the difficulties when dealing with ethnic music and to show a possible approach, the approach implemented by Tarsos.

The invitation to give the guest lecture came from [Michael Cuthbert](http://web.mit.edu/music/facstaff/cuthbert.html) who is one of the driving forces behind [music21](http://mit.edu/music21/). The audience was a small group of double majors in both musicology and computer science: the ideal profile to gather useful feedback.


- [2012.05.03-Ethnic\_Music\_Analysis.pdf](https://0110.be/files/attachments/362/2012.05.03-Ethnic_Music_Analysis.pdf)

- [2012.05.03-Ethnic\_Music\_Analysis.odp](https://0110.be/files/attachments/362/2012.05.03-Ethnic_Music_Analysis.odp)

---

## [TarsosDSP Release 1.0](https://0110.be/posts/TarsosDSP_Release_1.0.md)

- Published: 2012-04-24T14:25:32Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 352
- Canonical: https://0110.be/posts/TarsosDSP_Release_1.0

- Tags: [Code](https://0110.be/tags/Code.md), [Command Line Application](https://0110.be/tags/Command%20Line%20Application.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md), [WSOLA](https://0110.be/tags/WSOLA.md), [featured](https://0110.be/tags/featured.md)

After about a year of development and several revisions TarsosDSP has enough features and is stable enough to slap the 1.0 tag onto it. A 'read me', manual, API documentation, source and binaries can be found on the [TarsosDSP release directory](http://tarsos.0110.be/releases/TarsosDSP/). The source is present in the\
What follows below is the information that can be found in the read me file:

<p>
TarsosDSP is a collection of classes to do simple audio processing. It features an implementation of a percussion onset detector and two pitch detection algorithms: Yin and the Mcleod Pitch method. Also included is a Goertzel <acronym title="Dual tone multi frequency"><span class="caps">DTMF</span></acronym> decoding algorithm and a time stretch algorithm (<span class="caps">WSOLA</span>).

</p>
<p>
Its aim is to provide a simple interface to some audio (signal) processing algorithms implemented in pure <span class="caps">JAVA</span>. Some <a href="http://tarsos.0110.be/tag/TarsosDSP">TarsosDSP example applications</a> are available.

</p>
<p>
The following example filters a band of frequencies of an input file <code>testFile</code>. It keeps the frequencies form <code>startFrequency</code> to <code>stopFrequency</code>.

</p>
    <code>AudioInputStream inputStream = AudioSystem.getAudioInputStream(testFile);
    AudioDispatcher dispatcher = new AudioDispatcher(inputStream,stepSize,overlap);
    dispatcher.addAudioProcessor(new HighPass(startFrequency, sampleRate, overlap));
    dispatcher.addAudioProcessor(new LowPassFS(stopFrequency, sampleRate, overlap));
    dispatcher.addAudioProcessor(new FloatConverter(format));
    dispatcher.addAudioProcessor(new WaveformWriter(format,stepSize, overlap, "filtered.wav"));
    dispatcher.run();
    </code>

<h3>
Quickly Getting Started with TarsosDSP

</h3>
<p>
Head over to the <a href="http://tarsos.0110.be/releases/TarsosDSP/">TarsosDSP release repository</a> and download the latest <a href="http://tarsos.0110.be/releases/TarsosDSP/TarsosDSP-1.0.jar">TarsosDSP library</a>. To get up to speed quickly, check the <a href="http://tarsos.0110.be/releases/TarsosDSP/TarsosDSP-1.0-Examples/">TarsosDSP Example applications</a> for inspiration and consult the <a href="http://tarsos.0110.be/releases/TarsosDSP/TarsosDSP-1.0-Documentation/"><span class="caps">API</span> documentation</a>. If you, for some reason, want to build from source, you need <a href="http://ant.apache.org/">Apache Ant</a> and <a href="http://git-scm.com/">git</a> installed on your system. The following commands fetch the source and build the library and example jars: <br />

    <code>git clone https://JorenSix@github.com/JorenSix/TarsosDSP.git
    cd TarsosDSP/build
    ant tarsos_dsp_library #Builds the core TarsosDSP library
    ant build_examples #Builds all the TarsosDSP examples
    ant javadoc #Creates the documentation in TarsosDSP/doc
    </code>

<br />\
When everything runs correctly you should be able to run all example applications and have the latest version of the TarsosDSP library for inclusion in your projects. Also the Javadoc documentation for the <span class="caps">API</span> should be available in TarsosDSP/doc. Drop me a line if you use TarsosDSP in your project. Always nice to hear how this software is used.

</p>
<h3>
Source Code Organization and Examples of TarsosDSP

</h3>
<p>
The source tree is divided in three directories:

</p>
<ul>
<li>
<code>src</code> contains the source files of the core <span class="caps">DSP</span> libraries.

</li>
<li>
<code>test</code> contains unit tests for some of the <span class="caps">DSP</span> functionality.

</li>
<li>
<code>build</code> contains <span class="caps">ANT</span> build files. Either to build Java documentation or runnable <span class="caps">JAR</span>-files for the example applications.

</li>
<li>
<code>examples</code> contains a couple of example applications with a Java Swing user interface:

<ul>
<li>
<a href="http://tarsos.0110.be/artikels/lees/TarsosDSP%253A_a_small_JAVA_audio_processing_library">SoundDetector</a> show how you loudness calculations can be done. When input sound is over a defined limit an event is fired.

</li>
<li>
<a href="http://tarsos.0110.be/artikels/lees/TarsosDSP%253A_a_small_JAVA_audio_processing_library">PitchDetector</a> this demo application shows real-time pitch detection. When pitch is detected the hertz value is printed together with a probability.

</li>
<li>
<a href="http://tarsos.0110.be/artikels/lees/TarsosDSP%253A_a_small_JAVA_audio_processing_library">PercussionDetector</a> show the percussion (onset) dectection. Clapping your hands causes an event. This demo application also shows the influence of the two parameters on the algorithm.

</li>
<li>
<a href="http://tarsos.0110.be/artikels/lees/TarsosDSP_sample_application%253A_Utter_Asterisk">UtterAsterisk</a> a game with the goal to sing as close to a melody a possible. Technically it shows real-time pitch detection with <span class="caps">YIN</span> or <span class="caps">MPM</span>.

</li>
<li>
<a href="http://tarsos.0110.be/artikels/lees/Spectrogram_in_Java_with_TarsosDSP">Spectrogram in Java</a> shows a spectrogram and detected pitch, either live or from an audio file. It is interesting to see which frequencies are picked as fundamentals.

</li>
<li>
<a href="http://tarsos.0110.be/artikels/lees/Dual-Tone_Multi-Frequency_%2528DTMF%2529_Decoding_with_the_Goertzel_Algorithm_in_Java">Goertzel <acronym title="Dual tone multi frequency"><span class="caps">DTMF</span></acronym> decoding</a> an implementation of the Goertzel Algorithm. A fancy user interface shows what goes on under the hood.

</li>
<li>
<a href="http://tarsos.0110.be/artikels/lees/Audio_Time_Stretching_-_Implementation_in_Pure_Java_Using_WSOLA">Audio Time Stretching -- Implementation in Pure Java Using <span class="caps">WSOLA</span></a> an implementation of a time stretching algorithm. <acronym title="Waveform Similarity Overlap Add"><span class="caps">WSOLA</span></acronym> makes it possible to change the play back speed of audio without changing the pitch. The play back speed can be changed at any moment, even when there is audio playing.

</li>
</ul>
</li>
</ul>


---

## [Text to Speech to Speech Recognition - Am I Sitting in a Room?](https://0110.be/posts/Text_to_Speech_to_Speech_Recognition_-_Am_I_Sitting_in_a_Room%3F.md)

- Published: 2012-03-24T00:00:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 324
- Canonical: https://0110.be/posts/Text_to_Speech_to_Speech_Recognition_-_Am_I_Sitting_in_a_Room%3F

- Tags: [0110.be](https://0110.be/tags/0110.be.md), [Code](https://0110.be/tags/Code.md), [Hackerspace Ghent](https://0110.be/tags/Hackerspace%20Ghent.md), [Muziek](https://0110.be/tags/Muziek.md), [Poging tot humor](https://0110.be/tags/Poging%20tot%20humor.md), [Projecten](https://0110.be/tags/Projecten.md)

<img src="https://0110.be/files/attachments/324/screenshot.png" style="float:right">This post is about a hack I did for the 2012 [Amsterdam music hack days](http://amsterdam.musichackday.org/2012/index.php?page=Main+page). From the website:

> The Amsterdam Music Hack Day is a full weekend of hacking in which participants will conceptualize, create and present their projects. Music + software + mobile + hardware + art + the web. Anything goes as long as it's music related

The hackathon was organized at the NiMK(Nederlands instituut voor Media Kunst) the 25th and 24th of May. My hack tries to let a phone start a conversation on its own. It does this by speaking a text and listening to the spoken text with speech recognition. The speech recognition introduces all kinds of interesting permutations of the original text. The recognized text is spoken again and so a dreamlike, unique nonsensical discussion starts. It lets you hear what goes on in the mind of the phone.

The idea is based on Alvin Lucier's *I am Sitting in a Room* form 1969 which is embedded below. He used analogue tapes to generate a similar recursive loop. It is a better implementation of [something I did a couple of years ago](http://0110.be/artikels/lees/Text_To_Speech_Recognition).

<object style="height: 390px; width: 640px">
<param name="movie" value="http://www.youtube.com/v/2jU9mJbJsQ8?version=3&feature=player_detailpage"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/2jU9mJbJsQ8?version=3&feature=player_detailpage" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></object>

The implementation is done with Android and its API's. Both speech recognition and text to speech are available on android. Those API's are used and a user interface shows the recognized text. An example of a session can be found below:

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F40881378&show_artwork=true">
</iframe>
To install the application you can download "Tryalogue.apk":\[Tryalogue.apk\] of use the QR-code below. You need Android 2.3 with Voice Recognition and TTS installed. Also needed is an internet connection. "The source":\[Tryalogue.zip\] is also up for grabs.

<div align="center">
<img src="https://0110.be/files/attachments/324/apk.png">

</div>


![](https://0110.be/files/photos/324/device-2012-03-25-105512.png)

![](https://0110.be/files/photos/324/device-2012-03-25-105559.png)

- [screenshot.png](https://0110.be/files/attachments/324/screenshot.png)

- [Tryalogue.apk](https://0110.be/files/attachments/324/Tryalogue.apk)

- [Tryalogue.zip](https://0110.be/files/attachments/324/Tryalogue.zip)

- [apk.png](https://0110.be/files/attachments/324/apk.png)

---

## [Oscilloscope in TarsosDSP](https://0110.be/posts/Oscilloscope_in_TarsosDSP.md)

- Published: 2012-03-09T15:21:30Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 330
- Canonical: https://0110.be/posts/Oscilloscope_in_TarsosDSP

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md)

The DSP library for Taros, aptly named TarsosDSP, now includes an implementation of an oscilloscope.

<div align="center">
"![Oscilloscope in Java](https://0110.be/files/attachments/330/oscilloscope.png "Oscilloscope in Java")":\[OscilloscopeExample.jar\]

</div>
The source code of the Java implementation can be found on the [TarsosDSP github page](https://github.com/JorenSix/TarsosDSP/). That is all.


---

## [Dan Ellis' Robust Landmark-Based Audio Fingerprinting - With Octave](https://0110.be/posts/Dan_Ellis%27_Robust_Landmark-Based_Audio_Fingerprinting_-_With_Octave.md)

- Published: 2012-03-08T00:00:00Z
- Updated: 2014-01-09T14:50:12Z
- Author: Joren
- ID: 337
- Canonical: https://0110.be/posts/Dan_Ellis%27_Robust_Landmark-Based_Audio_Fingerprinting_-_With_Octave

- Tags: [Code](https://0110.be/tags/Code.md), [HoGent](https://0110.be/tags/HoGent.md)

This blog post documents how to get the Matlab implementation by Dan Ellis of Avery Wangs [Industrial-Strength Audio Search Algorithm](http://www.ee.columbia.edu/~dpwe/papers/Wang03-shazam.pdf) running with [GNU Octave](http://en.wikipedia.org/wiki/GNU_Octave) on Ubuntu (and similar Linux distributions).

The Dan Ellis implementation is nicely documented here: [Robust Landmark-Based Audio Fingerprinting](http://labrosa.ee.columbia.edu/matlab/fingerprint/) . To download, get info about and decode mp3's some external binaries are needed:

\`\`\`bash\
#install octave if needed\
sudo apt-get install octave3.2\
#Install the required dependencies for the script\
sudo apt-get install mp3info curl

#mpg123 is not present as a package, install from source:\
wget http://www.mpg123.de/download/mpg123-1.13.5.tar.bz2\
tar xvvf mpg123-1.13.5.tar.bz2\
cd mpg123-1.13.5/\
./configure\
make\
sudo make install\
\`\`\`

In `mp3read.m` the following code was changed (line 111 and 112):

\`\`\`matlab\
mpg123 = 'mpg123'; % was fullfile(path,\['mpg123.',ext\]);\
mp3info = 'mp3info'; % was fullfile(path,\['mp3info.',ext\]);\
\`\`\`

Then, the demo program runs flawlessly when executing `octave -q demo_fingerprint.m`.

Running the demo with the original code with GNU Octave, version 3.2.3 takes 152 seconds on a PC with a Q9650 @ 3GHz processor. A small tweak can make it run almost 8 times faster. When working with larger data sets (10k audio files) this makes a big difference. I do not know why but storing a hash in the large hash table was really slow (0.5s per hash, with 900 hashes per song...). Caching the hashes and adding them all at once makes it faster (at least in Octave, YMMV). The optimized version of "record_hashes.m":\[record_hashes.m.txt\] can be found attached. With this alteration the same demo ran in 20s. When caching the data locally the difference is 11.5s to 141s or 12 times faster. The code with all the changes can be found here: "Robust Landmark-Based Audio Fingerprinting - optimized for Octave 3.2":\[fingerprint_fast.zip\]. Please note again that the implementation is done by Dan Ellis (2009) ( available on [Robust Landmark-Based Audio Fingerprinting](http://labrosa.ee.columbia.edu/matlab/fingerprint/)) and I did only some small tweaks.


- [record\_hashes.m.txt](https://0110.be/files/attachments/337/record_hashes.m.txt)

- [fingerprint\_fast.zip](https://0110.be/files/attachments/337/fingerprint_fast.zip)

---

## [Harmony and Variation in Music Information Retrieval](https://0110.be/posts/Harmony_and_Variation_in_Music_Information_Retrieval.md)

- Published: 2012-03-02T14:36:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 401
- Canonical: https://0110.be/posts/Harmony_and_Variation_in_Music_Information_Retrieval

- Tags: [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md)

<img src="https://0110.be/files/attachments/401/UUlogo.gif" alt="Logo Universiteit Utrecht" style="float:right;margin-left:-150px;margin-right:-80px">The 29th of February 2012 there was a symposium on Music Information Retreival in Utrecht. It was organized on the occasion of Bas de Haas' PhD defense. The title of the study day was [Harmony and variation in music information retrieval](http://research.cs.uu.nl/index.php/events/symposium-harmony-variation-in-mir).

During the talk by Xavier Serra rasikas.org was mentioned a forum with [discussions about Carnatic Music](http://rasikas.org). Since I could find a couple of discussions about pitch use on that forum I [plugged Tarsos](http://www.rasikas.org/forum/viewtopic.php?f=9&t=18763) there to see if I could gather some feedback.


---

## [Echo or Delay Audio Effect in Java With TarsosDSP](https://0110.be/posts/Echo_or_Delay_Audio_Effect_in_Java_With_TarsosDSP.md)

- Published: 2012-02-23T15:33:11Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 398
- Canonical: https://0110.be/posts/Echo_or_Delay_Audio_Effect_in_Java_With_TarsosDSP

- Tags: [Code](https://0110.be/tags/Code.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md)

The DSP library for Taros, aptly named TarsosDSP, now includes an implementation of an audio echo effect. An echo effect is very simple to implement digitally and can serve as a good example of a DSP operation.

<div align="center">
"![Echo or delay effect in Java](https://0110.be/files/attachments/398/echo_or_delay_effect.png "Echo or delay effect in Java")":\[Delay.jar\]

</div>
The implementation of the effect can be seen below. As can be seen, to achieve an echo one simply needs to mix the current sample `i` with a delayed sample present in `echoBuffer` with a certain decay factor. The length of the buffer and the decay are the defining parameters for the sound of the echo. To fill the echo buffer the current sample is stored (line 4). Looping through the echo buffer is done by incrementing the position pointer and resetting it at the correct time (lines 6-9).

\`\`\`java\
//output is the input added with the decayed echo\
audioFloatBuffer\[i\] = audioFloatBuffer\[i\] + echoBuffer\[position\] \* decay;\
//store the sample in the buffer;\
echoBuffer\[position\] = audioFloatBuffer\[i\];\
//increment the echo buffer position\
position;\
//loop in the echo buffer\
if(position == echoBuffer.length)\
position = 0;\
\`\`\`

To test the application, download and execute the "Delay.jar":\[Delay.jar\] file and start singing in a microphone.

The source code of the Java implementation can be found on the [TarsosDSP github page](https://github.com/JorenSix/TarsosDSP/).


![](https://0110.be/files/photos/398/echo_or_delay_effect.png)

- [Delay.jar](https://0110.be/files/attachments/398/Delay.jar)

- [echo\_or\_delay\_effect.png](https://0110.be/files/attachments/398/echo_or_delay_effect.png)

---

## [Spectrogram in Java with TarsosDSP](https://0110.be/posts/Spectrogram_in_Java_with_TarsosDSP.md)

- Published: 2012-02-14T14:31:04Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 384
- Canonical: https://0110.be/posts/Spectrogram_in_Java_with_TarsosDSP

- Tags: [Code](https://0110.be/tags/Code.md), [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md)

This is post presents a better version of the [spectrogram implementation](https://0110.be/artikels/lees/Tarsos_Spectrogram). Now it is included as an example in TarsosDSP, a small java audio processing library. The application show a live spectrogram, calculated using an FFT and the detected fundamental frequency (in red).

<div align="center">
<a href="https://0110.be/files/attachments/384/Spectrogram.jar"><img src="https://0110.be/files/attachments/384/spectrogram.png" alt="Spectrogram and pitch detection in Java"/></a>

</div>
To test the application, download and execute the "Spectrogram.jar":\[Spectrogram.jar\] file and start singing in a microphone.

There is also a command line interface, the following command shows the spectrum for `in.wav`:

<code>\
java -jar Spectrogram.jar in.wav\
</code>

The source code of the Java implementation can be found on the [TarsosDSP github page](https://github.com/JorenSix/TarsosDSP/).


![](https://0110.be/files/photos/384/spectrogram.png)

- [Spectrogram.jar](https://0110.be/files/attachments/384/Spectrogram.jar)

- [spectrogram.png](https://0110.be/files/attachments/384/spectrogram.png)

---

## [Démonstration de Tarsos](https://0110.be/posts/D%C3%A9monstration_de_Tarsos.md)

- Published: 2012-02-10T12:58:38Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 376
- Canonical: https://0110.be/posts/D%C3%A9monstration_de_Tarsos

- Tags: [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Tarsos](https://0110.be/tags/Tarsos.md), [français](https://0110.be/tags/fran%C3%A7ais.md)

Nous avons creé une video pour expliquer des possibilités de Tarsos, et maintenant en français.

<center>
<iframe width="550" height="355" src="http://www.youtube.com/embed/zM8fSlh7ZKI" frameborder="0" allowfullscreen>
</iframe>
</center>


---

## [Audio Time Stretching - Implementation in Pure Java Using WSOLA](https://0110.be/posts/Audio_Time_Stretching_-_Implementation_in_Pure_Java_Using_WSOLA.md)

- Published: 2012-02-06T14:52:34Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 372
- Canonical: https://0110.be/posts/Audio_Time_Stretching_-_Implementation_in_Pure_Java_Using_WSOLA

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Tarsos](https://0110.be/tags/Tarsos.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md), [WSOLA](https://0110.be/tags/WSOLA.md)

The DSP library for Taros, aptly named TarsosDSP, now includes an implementation of a time stretching algorithm. The goal of time stretching is to change the duration of a piece of audio without affecting the pitch. The algorithm implemented is described in [An Overlap-add Technique Based On Waveform Similarity (WSOLA) for High Quality Time-Scale Modification of Speech](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.202.5460&rep=rep1&type=pdf).

<div align="center">
<a href="https://0110.be/files/attachments/372/TimeStretch.jar"><img src="https://0110.be/files/attachments/372/time_stretching_in_java.png" alt="Time Stretching (WSOLA) in Java"/></a>

</div>
To test the application, download and execute the "WSOLA jar":\[TimeStretch.jar\] file and load an audio file. For the moment only 44.1kHz mono wav is allowed. To get started you can try "this piece of audio":\[08.\_Ladrang_Kandamanyura_10s-20s.wav\].

There is also a command line interface, the following command doubles the speed of `in.wav`:

<code>\
java -jar TimeStretch.jar in.wav out.wav 2.0\
</code>

     _______                       _____   _____ _____  
    |__   __|                     |  __ \ / ____|  __ \ 
       | | __ _ _ __ ___  ___  ___| |  | | (___ | |__) |
       | |/ _` | '__/ __|/ _ \/ __| |  | |\___ \|  ___/ 
       | | (_| | |  \__ \ (_) \__ \ |__| |____) | |     
       |_|\__,_|_|  |___/\___/|___/_____/|_____/|_|     

    ----------------------------------------------------
    Name:
        TarsosDSP Time stretch utility.
    ----------------------------------------------------
    Synopsis:
        java -jar TimeStretch.jar source.wav target.wav factor
    ----------------------------------------------------
    Description:
        Change the play back speed of audio without changing the pitch.

            source.wav  A readable, mono wav file.
            target.wav  Target location for the time stretched file.
            factor      Time stretching factor: 2.0 means double the length, 0.5 half. 1.0 is no change.

The source code of the Java implementation of WSOLA can be found on the [TarsosDSP github page](https://github.com/JorenSix/TarsosDSP/blob/master/src/be/hogent/tarsos/dsp/filters/WaveformSimilarityBasedOverlapAdd.java).


- [time\_stretching\_in\_java.png](https://0110.be/files/attachments/372/time_stretching_in_java.png)

- [08.\_Ladrang\_Kandamanyura\_10s-20s.wav](https://0110.be/files/attachments/372/08._Ladrang_Kandamanyura_10s-20s.wav)

- [TimeStretch.jar](https://0110.be/files/attachments/372/TimeStretch.jar)

---

## [Tarsos CLI:  Detect Pitch](https://0110.be/posts/Tarsos_CLI%3A__Detect_Pitch.md)

- Published: 2012-02-03T15:00:06Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 390
- Canonical: https://0110.be/posts/Tarsos_CLI%3A__Detect_Pitch

- Tags: [Code](https://0110.be/tags/Code.md), [Command Line Application](https://0110.be/tags/Command%20Line%20Application.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [Tarsos](https://0110.be/tags/Tarsos.md)

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>Tarsos contains a couple of useful command line applications. They can be used to execute common tasks on lots of files. [Dowload Tarsos](http://tarsos.0110.be/attachment/tarsos.jar) and call the applications using the following format:

`java -jar tarsos.jar command [argument...] [--option [value]...]`

The first part `java -jar tarsos.jar` tells the Java Runtime to start the correct application. The first argument for Tarsos defines the command line application to execute. Depending on the command, required arguments and options can follow.

`java -jar tarsos.jar detect_pitch in.wav --detector TARSOS_YIN`

To get a list of available commands, type `java -jar tarsos.jar -h`. If you want more information about a command type `java -jar tarsos.jar command -h`

## Detect Pitch

Detects pitch for one or more input audio files using a pitch detector. If a directory is given it traverses the directory *recursively*. It writes CSV data to standard out with five columns. The first is the start of the analyzed window (seconds), the second the estimated pitch, the third the saillence of the pitch. The name of the algorithm follows and the last column shows the original filename.

    Synopsis
    --------
    java -jar tarsos.jar detect_pitch [option] input_file...

    Option                                  Description                            
    ------                                  -----------                            
    -?, -h, --help                          Show help                              
    --detector <PitchDetectionMode>         The detector to use [VAMP_YIN |        
                                              VAMP_YIN_FFT |                       
                                              VAMP_FAST_HARMONIC_COMB |            
                                              VAMP_MAZURKA_PITCH | VAMP_SCHMITT |  
                                              VAMP_SPECTRAL_COMB |                 
                                              VAMP_CONSTANT_Q_200 |                
                                              VAMP_CONSTANT_Q_400 | IPEM_SIX |     
                                              IPEM_ONE | TARSOS_YIN |              
                                              TARSOS_FAST_YIN | TARSOS_MPM |       
                                              TARSOS_FAST_MPM | ] (default:        
                                              TARSOS_YIN) 

The output of the command looks like this:

    Start(s),Frequency(Hz),Probability,Source,file
    0.52245,366.77039,0.92974,TARSOS_YIN,in.wav
    0.54567,372.13873,0.93553,TARSOS_YIN,in.wav
    0.55728,375.10638,0.95261,TARSOS_YIN,in.wav
    0.56889,380.24854,0.94275,TARSOS_YIN,in.wav


---

## [A Robust Audio Fingerprinter Based on Pitch Class Histograms - Applications for Ethnic Music Archives](https://0110.be/posts/A_Robust_Audio_Fingerprinter_Based_on_Pitch_Class_Histograms_-_Applications_for_Ethnic_Music_Archives.md)

- Published: 2012-01-17T10:30:02Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 353
- Canonical: https://0110.be/posts/A_Robust_Audio_Fingerprinter_Based_on_Pitch_Class_Histograms_-_Applications_for_Ethnic_Music_Archives

- Tags: [Folk Music Analysis (FMA) conference](https://0110.be/tags/Folk%20Music%20Analysis%20%28FMA%29%20conference.md), [HoGent](https://0110.be/tags/HoGent.md)

For the [Folk Music Analyisis (FMA) 2012](http://congreso.us.es/infla3/en/) conference we (Olmo Cornelis and myself), wrote a paper presenting a new acoustic fingerprint scheme based on pitch class histograms.

The aim of acoustic fingerprinting is to generate a small representation of an audio signal that can be used to identify or recognize similar audio samples in a large audio set. A robust fingerprint generates similar fingerprints for perceptually similar audio signals. A piece of music with a bit of noise added should generate an almost identical fingerprint as the original. The use cases for audio fingerprinting or acoustic fingerprinting are myriad: detection of duplicates, identifying songs, recognizing copyrighted material,...

Using a pitch class histogram as a fingerprint seems like a good idea: it is unique for a song and it is reasonably robust to changes of the underlying audio (length, tempo, pitch, noise). The idea has probably been found a couple of times independently, but there is also a reference to it in the literature, by Tzanetakis, 2003: [Pitch Histograms in Audio and Symbolic Music Information Retrieval](http://marsyas.info/pdfs/0000/0008/jnmr03gtzan.pdf):

> Although mainly designed for genre classification it is possible that features derived from Pitch Histograms might also be applicable to the problem of content-based audio identification or audio fingerprinting (for an example of such a system see (Allamanche et al., 2001)). We are planning to explore this possibility in the future.

Unfortunately they never, as far as I know, did explore this possibility, and I also do not know if anybody else did. I found it worthwhile to implement a fingerprinting scheme on top of the Tarsos software foundation. Most elements are already available in the Tarsos API: a way to detect pitch, construct a pitch class histogram, correlate pitch class histograms with a pitch shift,... I created a GUI application which is presented here. It is, probably, acoustic / "audio fingerprinting system based on pitch class histograms":\[fingerprinter.jar\].

<center>
<a href="https://0110.be/files/attachments/353/fingerprinter.jar" title="Audio fingerprinter based on pitch class histograms"><img src="http://tarsos.0110.be/photo/cache/x360-6da51.fingerprinter.png?1327066892" alt="Audio fingerprinter based on pitch class histograms"></a>

</center>
It works using drag and drop and the idea is to find a needle (an audio file) in a hay stack (a large amount of audio files). For every audio file in the haystack and for the needle pitch is detected using an optimized, for speed, MPM implementation. A pitch class histogram is created for each file, the histogram for the needle is compared with each histogram in the hay stack and, hopefully, the needle is found in the hay stack.

An experiment was done on the audio collection of [the museum for Central Africa](http://www.africamuseum.be/). A test dataset was generated using [SoX](http://sox.sf.net) with the following "Ruby script":\[audio_fingerprinting_dataset_generator.rb.txt\]. The "raw results":\[fingerprinting_results.txt\] were parsed with another "Ruby script":\[fingerprinting_results_parser.rb.txt\]. With the data "a spreadsheet with the results":\[fingerprinting_on_dekkmma_results.ods\] was created (OpenOffice.org format). Those results are mentioned in the paper.

You can try the system yourself by "downloading the fingerprinter":\[fingerprinter.jar\].


![Drag and drop UI](https://0110.be/files/photos/353/fingerprinter.png)

- [fingerprinting\_results.txt](https://0110.be/files/attachments/353/fingerprinting_results.txt)

- [fingerprinting\_results\_parser.rb.txt](https://0110.be/files/attachments/353/fingerprinting_results_parser.rb.txt)

- [audio\_fingerprinting\_dataset\_generator.rb.txt](https://0110.be/files/attachments/353/audio_fingerprinting_dataset_generator.rb.txt)

- [fingerprinter.jar](https://0110.be/files/attachments/353/fingerprinter.jar)

- [fingerprinting\_on\_dekkmma\_results.ods](https://0110.be/files/attachments/353/fingerprinting_on_dekkmma_results.ods)

- [2012.03.02.fingerprinter.submitted.pdf](https://0110.be/files/attachments/353/2012.03.02.fingerprinter.submitted.pdf)

---

## [Pitch, Pitch Interval, and Pitch Ratio Representation](https://0110.be/posts/Pitch%2C_Pitch_Interval%2C_and_Pitch_Ratio_Representation.md)

- Published: 2011-12-21T13:42:05Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 354
- Canonical: https://0110.be/posts/Pitch%2C_Pitch_Interval%2C_and_Pitch_Ratio_Representation

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [Tarsos](https://0110.be/tags/Tarsos.md)

To prevent confusion about pitch representation in general and pitch representation in Tarsos specifically I wrote a "document about pitch, pitch Interval, and pitch ratio representation":\[pitch_representation.pdf\]. The abstract goes as follows:

<blockquote>
This document describes how pitch can be represented using various units. More specifically it documents how a software program to analyse pitch in music, Tarsos, represents pitch. This document contains definitions of and remarks on different pitch and pitch interval representations. For good measure we need a definition of pitch, here the definition from \[McLeod 2009\] is used: *The pitch frequency is the frequency of a pure sine wave which has the same perceived sound as the sound of interest.* For remarks and examples of cases where the pitch frequency does not coincide with the fundamental frequency of the signal, also see \[McLeod 2009\] . In this text pitch, pitch interval and pitch ratio are briefly discussed.

</blockquote>
<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Ftarsos.0110.be%2Fattachment%2Fcons%2F327%2Fpitch_representation.pdf&embedded=true" width="600" height="780" style="border: none;">
</iframe>


- [pitch\_representation.pdf](https://0110.be/files/attachments/354/pitch_representation.pdf)

---

## [TarsosDSP sample application: Utter Asterisk](https://0110.be/posts/TarsosDSP_sample_application%3A_Utter_Asterisk.md)

- Published: 2011-12-15T14:30:42Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 404
- Canonical: https://0110.be/posts/TarsosDSP_sample_application%3A_Utter_Asterisk

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md)

<a href="https://0110.be/files/attachments/404/UtterAsterisk.jar" title="Download Utter Asterisk"><img src="https://0110.be/photo/cons/250/utter_asterisk.png" alt="Uttter Asterisk" style="float:right" width="210"></a>The DSP library of Tarsos, aptly named TarsosDSP, contains an implementation of a game that bares some resemblance to SingStar. It is called UtterAsterisk. It is meant to be a technical demonstration showing real-time pitch detection in pure java using a [YIN](http://recherche.ircam.fr/equipes/pcm/cheveign/ps/2002_JASA_YIN_proof.pdf) -implementation.

"Download Utter Asterisk":\[UtterAsterisk.jar\] and try to sing (utter) as close to the melody as possible. The [souce code for Utter Asterisk](https://github.com/JorenSix/TarsosDSP) is available on github.


![](https://0110.be/files/photos/404/utter_asterisk.png)

- [UtterAsterisk.jar](https://0110.be/files/attachments/404/UtterAsterisk.jar)

---

## [TarsosDSP used in jAM - Java Automatic Music Transcription](https://0110.be/posts/TarsosDSP_used_in_jAM_-_Java_Automatic_Music_Transcription.md)

- Published: 2011-12-12T09:13:14Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 399
- Canonical: https://0110.be/posts/TarsosDSP_used_in_jAM_-_Java_Automatic_Music_Transcription

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [TarsosDSP](https://0110.be/tags/TarsosDSP.md)

<img src="https://0110.be/files/attachments/399/jAMlogo.png" width="40" alt="jAM logo" style="float:right">TarsosDSP, a small Java DSP library, has been used in a bachelor thesis: [Entwicklung eines Systems zur automatischen Notentranskription von monophonischem Audiomaterial](http://saeft.com/jAM/assets/Bachelorarbeit.pdf) by Michael Wager.

The goal of the thesis was to develop an automatic transcription system for monophonic music. You can download the latest version of [jAM - Java Automatic Music Transcription](http://saeft.com/jAM/index.php/index/download).

If you want to use TarsosDSP, please consult the [TarsosDSP page on github](https://github.com/JorenSix/TarsosDSP) or read [more about TarsosDSP](https://0110.be/tag/TarsosDSP) here.


---

## [Kinderuniversiteit - Muziek onder de microscoop!](https://0110.be/posts/Kinderuniversiteit_-_Muziek_onder_de_microscoop%21.md)

- Published: 2011-12-12T08:41:21Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 326
- Canonical: https://0110.be/posts/Kinderuniversiteit_-_Muziek_onder_de_microscoop%21

- Tags: [Dutch](https://0110.be/tags/Dutch.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Presentation](https://0110.be/tags/Presentation.md)

Zondag 18 december 2011 gaf ik een workshop voor de [Gentse kinderuniversiteit](http://kinderuniversiteit.be). Het thema van de kinderuniversiteit was [Muziek onder de microscoop](http://www.kinderuniversiteit.be/event/muziek-onder-de-microscoop). De teaser voor de workshop is hier te vinden:

<blockquote>
<img src="https://0110.be/files/attachments/326/logo-with-arrow.png" width="110" alt="Logo kinderuniversiteit" style="float:left"><b>WORKSHOP - Muziek (ont)luisteren op de computer</b>\
Is het mogelijk om piano te spelen op een tafel? Kan een computer luisteren naar muziek en er van genieten? Wat is muziek eigenlijk, en hoe werkt geluid?<br>\
Tijdens deze workshop worden de voorgaande vragen beantwoord met enkele computerprogramma's!

</blockquote>
Concreet worden enkele componenten van geluid (en bij uitbreiding, muziek) gedemonstreerd met computerprogrammaatjes gemaakt in het conservatorium:

-   "Geluidssterkte":\[SoundDetector.jar\]: een decibel-meter met een bepaalde drempelwaarde. Probeer zo luid mogelijk te doen en zie hoe moeilijk het is om, eens een bepaald niveau bereikt is, in decibel te stijgen.

-   "Toonhoogte":\[UtterAsterisk.jar\]: een klein spelletje om toonhoogte aan te tonen. Probeer zo juist mogelijk te zingen of te fluiten en vergelijk je score.

-   "Percussie":\[PercussionDetector.jar\]: dit programma reageert op handgeklap. Hoe kan je het onderscheid maken tussen bijvoorbeeld een fluittoon en handgeklap?

De foto's hieronder geven een sfeerbeeld.


![](https://0110.be/files/photos/326/DSC01069.jpg)

![](https://0110.be/files/photos/326/DSC01067.jpg)

![](https://0110.be/files/photos/326/DSC01053.jpg)

![](https://0110.be/files/photos/326/DSC01064.jpg)

![](https://0110.be/files/photos/326/DSC01072.jpg)

![](https://0110.be/files/photos/326/DSC01068.jpg)

- [logo-with-arrow.png](https://0110.be/files/attachments/326/logo-with-arrow.png)

- [UtterAsterisk.jar](https://0110.be/files/attachments/326/UtterAsterisk.jar)

- [PercussionDetector.jar](https://0110.be/files/attachments/326/PercussionDetector.jar)

- [PitchDetector.jar](https://0110.be/files/attachments/326/PitchDetector.jar)

- [SoundDetector.jar](https://0110.be/files/attachments/326/SoundDetector.jar)

---

## [How To: Generate an Audio Fingerprinting Data Set With Sox Audio Effects](https://0110.be/posts/How_To%3A_Generate_an_Audio_Fingerprinting_Data_Set_With_Sox_Audio_Effects.md)

- Published: 2011-12-07T09:42:13Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 391
- Canonical: https://0110.be/posts/How_To%3A_Generate_an_Audio_Fingerprinting_Data_Set_With_Sox_Audio_Effects

- Tags: [Code](https://0110.be/tags/Code.md), [HoGent](https://0110.be/tags/HoGent.md)

A small part of Tarsos has been turned into a [audio fingerprinting application](https://0110.be/artikels/lees/Robust_Audio_Fingerprinting_with_Tarsos_and_Pitch_Class_Histograms). The idea of audio fingerprinting is to create a condensed representation of an audio file. A perceptually similar audio file should generate similar fingerprints. To test how robust a fingerprinting technique is, a data set with audio files that are alike in some way is practical.

[SoX - Sound eXchange](http://sox.sourceforge.net/) is a command line utility for sound processing. It can apply audio effects to a sound. Using these effects and a set of unmodified songs an audio fingerprinting data set can be created. To generate such a data set SoX can be used to:

-   Trim the first x seconds of a file

-   Speed-up or slow-down the audio

-   Change the pitch of a file without modifying the tempo

-   Generate background noise (white noise is used)

-   Reverse the audio stream

\`\`\`ruby\
#Trim the first 10 seconds\
sox input.wav output.wav trim 10

#speed-up of 10%\
sox input.wav output.wav speed 1.10

#change the pitch upwards 100 cents (one semitone)\
#without changing the tempo\
sox input.wav output.wav pitch 100

#generate white noise with the length of input.wav\
sox input.wav noise.wav synth whitenoise\
#mix the white noise with the input to generate noisy output\
#-v defines how loud the white noise is\
sox -m input.wav -v 0.1 noise.wav output.wav

#reverse the audio\
sox input.wav output.wav reverse\
\`\`\`

A ruby script to generate a lot of these files can be found "attached":\[audio_fingerprinting_dataset_generator.rb.txt\].


- [audio\_fingerprinting\_dataset\_generator.rb.txt](https://0110.be/files/attachments/391/audio_fingerprinting_dataset_generator.rb.txt)

---

## [The Power of the Pentatonic Scale](https://0110.be/posts/The_Power_of_the_Pentatonic_Scale.md)

- Published: 2011-12-06T14:05:56Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 387
- Canonical: https://0110.be/posts/The_Power_of_the_Pentatonic_Scale

- Tags: [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Tarsos](https://0110.be/tags/Tarsos.md), [featured](https://0110.be/tags/featured.md)

The following video shows Bobby McFerrin demonstrating the power of the pentatonic scale. It is a fascinating demonstration of how quickly a (western) audience of the World Science Festival 2009 adapts to an unusual tone scale:

<object style="height: 390px; width: 640px">
<param name="movie" value="http://www.youtube.com/v/ne6tB2KiZuk?version=3&feature=player_detailpage"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/ne6tB2KiZuk?version=3&feature=player_detailpage" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></object>

With Tarsos the scale used in the example can be found. This is the result of a quick analysis: it becomes clear that this, in fact, a pentatonic scale with an unequal octave division. A perfect fifth is present between 255 and 753 cents:

<center>
<img src="https://0110.be/files/attachments/387/scale_bobby.png" alt="A pentatonic scale, demonstrated by Bobby McFerrin"/>

</center>


![The pentatonic scale](https://0110.be/files/photos/387/audio_pitch_class_histogram.png)

![Tarsos analysing a scale](https://0110.be/files/photos/387/tarsos_on_bobby.png)

![The pentatonic scale](https://0110.be/files/photos/387/scale_bobby.png)

- [scale\_bobby.png](https://0110.be/files/attachments/387/scale_bobby.png)

- [audio\_pitch\_class\_histogram.tex](https://0110.be/files/attachments/387/audio_pitch_class_histogram.tex)

- [audio\_pitch\_class\_histogram.pdf](https://0110.be/files/attachments/387/audio_pitch_class_histogram.pdf)

---

## [Software for Music Analysis](https://0110.be/posts/Software_for_Music_Analysis.md)

- Published: 2011-12-02T00:00:00Z
- Updated: 2016-08-22T13:10:11Z
- Author: Joren
- ID: 383
- Canonical: https://0110.be/posts/Software_for_Music_Analysis

- Tags: [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [Presentation](https://0110.be/tags/Presentation.md)

Friday the second of December I presented a talk about software for music analysis. The aim was to make clear which type of research topics can benefit from measurements by software for music analysis. Different types of digital music representations and examples of software packages were explained.

<center>
<img width="320px" src="https://0110.be/files/attachments/383/digital_registration_software.png" alt="software for music analysis">

</center>
Following presentation was used during the talk. ("ppt":\[2011.12.02.software_for_music_analysis.ppt\], "odp":\[2011.12.02.software_for_music_analysis.odp\]):

<center>
<iframe src="https://docs.google.com/present/embed?id=dcpqhhws_54dnqq9zgn" frameborder="0" width="410" height="342">
</iframe>
</center>

-   [Sonic Visualizer](http://www.sonicvisualiser.org): As its name suggests Sonic Visualizer contains a lot different visualisations for audio. It can be used for analysis (pitch,beat,chroma,...) with [VAMP-plugins](http://vamp-plugins.org). To quote *"The aim of Sonic Visualiser is to be the first program you reach for when want to study a musical recording rather than simply listen to it"*. It is the swiss army knife of audio analysis.

-   [BeatRoot](http://www.eecs.qmul.ac.uk/~simond/beatroot/) is designed specifically for one goal: beat tracking. It can be used for e.g. comparing tempi of different performances of the same piece or to track tempo deviation within one piece.

-   [Tartini](http://tartini.net) is capable to do real-time pitch analysis of sound. You can e.g. play into a microphone with a violin and see the harmonics you produce and adapt you playing style based on visual feedback. It also contains a pitch deviation measuring apparatus to analyse vibrato.

-   [Tarsos](http://tarsos.0110.be) is software for tone scale analysis. It is useful to extract tone scales from audio. Different tuning systems can be seen, extracted and compared. It also contains the ability to play along with the original song with a tuned midi keyboard .

To show the different digital representations of music one example (Liebestraum 3 by Liszt) was used in different formats:

-   "Score (PDF)":\[00.partituur.liebestraum_3.pdf\]

-   "MusicXML":\[01.musicXML-liebestraum_no_3.xml\]

-   "MIDI as notation":\[01.deadpan_midi.wav\]

-   "MIDI as performance":\[02.performed_midi.wav\]

-   "Acoustic performance":\[03.human.performance.wav\]


![Tartini](https://0110.be/files/photos/383/tartini.png)

![Melodic Match](https://0110.be/files/photos/383/melodic_match.jpg)

![Sonic Visualizer](https://0110.be/files/photos/383/Sonic_Visualizer.png)

![Tarsos](https://0110.be/files/photos/383/Tarsos.png)

![Digital music representations](https://0110.be/files/photos/383/digital_registration_filetypes.png)

![Software for music analysis](https://0110.be/files/photos/383/digital_registration_software.png)

- [02.performed\_midi.wav](https://0110.be/files/attachments/383/02.performed_midi.wav)

- [01.deadpan\_midi.wav](https://0110.be/files/attachments/383/01.deadpan_midi.wav)

- [2011.12.02.software\_for\_music\_analysis.ppt](https://0110.be/files/attachments/383/2011.12.02.software_for_music_analysis.ppt)

- [2011.12.02.software\_for\_music\_analysis.odp](https://0110.be/files/attachments/383/2011.12.02.software_for_music_analysis.odp)

- [03.human.performance.wav](https://0110.be/files/attachments/383/03.human.performance.wav)

- [digital\_registration\_filetypes.png](https://0110.be/files/attachments/383/digital_registration_filetypes.png)

- [00.partituur.liebestraum\_3.pdf](https://0110.be/files/attachments/383/00.partituur.liebestraum_3.pdf)

- [01.MusicXML-extract.txt](https://0110.be/files/attachments/383/01.MusicXML-extract.txt)

- [digital\_registration\_software.png](https://0110.be/files/attachments/383/digital_registration_software.png)

- [01.musicXML-liebestraum\_no\_3.xml](https://0110.be/files/attachments/383/01.musicXML-liebestraum_no_3.xml)

- [2011.12.02.software\_for\_music\_analysis.pdf](https://0110.be/files/attachments/383/2011.12.02.software_for_music_analysis.pdf)

---

## [Robust Audio Fingerprinting with Tarsos and Pitch Class Histograms](https://0110.be/posts/Robust_Audio_Fingerprinting_with_Tarsos_and_Pitch_Class_Histograms.md)

- Published: 2011-11-09T14:46:36Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 378
- Canonical: https://0110.be/posts/Robust_Audio_Fingerprinting_with_Tarsos_and_Pitch_Class_Histograms

- Tags: [Code](https://0110.be/tags/Code.md), [HoGent](https://0110.be/tags/HoGent.md), [Java](https://0110.be/tags/Java.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [Tarsos](https://0110.be/tags/Tarsos.md), [featured](https://0110.be/tags/featured.md)

The aim of acoustic fingerprinting is to generate a small representation of an audio signal that can be used to identify or recognize similar audio samples in a large audio set. A robust fingerprint generates similar fingerprints for perceptually similar audio signals. A piece of music with a bit of noise added should generate an almost identical fingerprint as the original. The use cases for audio fingerprinting or acoustic fingerprinting are myriad: detection of duplicates, identifying songs, recognizing copyrighted material,...

Using a pitch class histogram as a fingerprint seems like a good idea: it is unique for a song and it is reasonably robust to changes of the underlying audio (length, tempo, pitch, noise). The idea has probably been found a couple of times independently, but there is also a reference to it in the literature, by Tzanetakis, 2003: [Pitch Histograms in Audio and Symbolic Music Information Retrieval](http://marsyas.info/pdfs/0000/0008/jnmr03gtzan.pdf):

> Although mainly designed for genre classification it is possible that features derived from Pitch Histograms might also be applicable to the problem of content-based audio identification or audio fingerprinting (for an example of such a system see (Allamanche et al., 2001)). We are planning to explore this possibility in the future.

Unfortunately they never, as far as I know, did explore this possibility, and I also do not know if anybody else did. I found it worthwhile to implement a fingerprinting scheme on top of the Tarsos software foundation. Most elements are already available in the Tarsos API: a way to detect pitch, construct a pitch class histogram, correlate pitch class histograms with a pitch shift,... I created a GUI application which is presented here. It is, probably, the first open source acoustic / "audio fingerprinting system based on pitch class histograms":\[AudioFingerprinter.jar\].

<center>
<a href="https://0110.be/files/attachments/378/AudioFingerprinter.jar" title="Audio fingerprinter based on pitch class histograms"><img src="https://0110.be/files/attachments/378/x360-dc445.audio_fingerprinting_query.png" alt="Audio fingerprinter based on pitch class histograms"></a>

</center>
It works using drag and drop and the idea is to find a needle (an audio file) in a hay stack (a large amount of audio files). For every audio file in the haystack and for the needle pitch is detected using an optimized, for speed, Yin implementation. A pitch class histogram is created for each file, the histogram for the needle is compared with each histogram in the hay stack and, hopefully, the needle is found in the hay stack.

Unfortunately I do not have time for rigorous testing (by building a large acoustic fingerprinting data set, or an other decent test bench) but the idea seems to work. With the following modifications, done with [audacity effects](http://audacity.sourceforge.net/onlinehelp-1.2/menu_effect.htm) the needle was still found a hay stack of 836 files :

-   A 10% speedup

-   15 and 30 seconds removed form the needle (a song of 4 minutes 12 seconds)

-   White noise added

-   Reversed the audio (This is, I believe, a rather unique property of this fingerprinting technique)

-   GSM reencoded

The following modifications failed to identify the correct song:

-   A one semitone pitch shift

-   A two semitone pitch shift

-   60 seconds removed from the needle

The original was also found. No failure analysis was done. The hay stack consists of about 100 hours of western pop, the needle is also a western pop song. If somebody wants to pick up this work or has an acoustic fingerprinting data set or drop me a line at

<script type="text/javascript">
<!--
document.write("<a href='mailto:&#106;&#111;&#114;&#101;&#110;&#46;&#115;&#105;&#120;&#64;&#104;&#111;&#103;&#101;&#110;&#116;&#46;&#98;&#101;'>&#106;&#111;&#114;&#101;&#110;&#46;&#115;&#105;&#120;&#64;&#104;&#111;&#103;&#101;&#110;&#116;&#46;&#98;&#101;</a>")
// -->
</script>
.

The source code is available, as always, on the [Tarsos GitHub page](https://github.com/JorenSix/Tarsos).


![Audio Fingerprinting Results](https://0110.be/files/photos/378/audio_fingerprinting_results.png)

![Audio Fingerprinting Query](https://0110.be/files/photos/378/audio_fingerprinting_query.png)

![Large scale results](https://0110.be/files/photos/378/larger_scale_results.png)

- [x360-dc445.audio\_fingerprinting\_query.png](https://0110.be/files/attachments/378/x360-dc445.audio_fingerprinting_query.png)

- [AudioFingerprinter.jar](https://0110.be/files/attachments/378/AudioFingerprinter.jar)

---

## [PeachNote Piano demo at ISMIR 2011](https://0110.be/posts/PeachNote_Piano_demo_at_ISMIR_2011.md)

- Published: 2011-11-09T14:03:34Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 375
- Canonical: https://0110.be/posts/PeachNote_Piano_demo_at_ISMIR_2011

- Tags: [HoGent](https://0110.be/tags/HoGent.md), [ISMIR](https://0110.be/tags/ISMIR.md), [PeachNote Piano](https://0110.be/tags/PeachNote%20Piano.md)

The 21st of October a demo of PeachNote Piano was given at the ISMIR (International Society for Music Information Retrieval) 2011 conference. The demo raised some interest.

The extended abstract about PeachNote Piano can be found on the [ISMIR 2011](http://ismir2011.ismir.net/program.html#demo) schedule.

A previous post [about PeachNote Piano](http://tarsos.0110.be/artikels/lees/PeachNote_Piano) has more technical details together with a video showing the core functionality (quasi-instantaneous USB-BlueTooth-MIDI communication).


![PeachNote Piano or a doomsday device?](https://0110.be/files/photos/375/IMG_2023.jpg)

![Demoing Peachnote Piano to Dr. Goto](https://0110.be/files/photos/375/DSC_0503.jpg)

---

## [Tarsos at 'Study Day: Tuning and Temperament - Insitute of Musical Research, London' ](https://0110.be/posts/Tarsos_at_%27Study_Day%3A_Tuning_and_Temperament_-_Insitute_of_Musical_Research%2C_London%27_.md)

- Published: 2011-10-25T22:03:49Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 374
- Canonical: https://0110.be/posts/Tarsos_at_%27Study_Day%3A_Tuning_and_Temperament_-_Insitute_of_Musical_Research%2C_London%27_

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [Computational musicology](https://0110.be/tags/Computational%20musicology.md), [HoGent](https://0110.be/tags/HoGent.md), [Presentation](https://0110.be/tags/Presentation.md), [Tarsos](https://0110.be/tags/Tarsos.md)

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>The 17th of Octobre 2011 Tarsos was presented at the [Study Day: Tuning and Temperament](http://music.sas.ac.uk/imr-events/imr-conferences-colloquia-performance-events/study-day-tuning-and-temperament.html) which was held at the Institue of Music Research in Londen. The study day was organised by Dan Tidhar. A short description of the aim of the study day:

<blockquote>
This is an interdisciplinary study day, bringing together musicologists, harpsichord specialists, and digital music specialists, with the aim of exploring the different angles these fields provide on the subject, and how these can be fruitfully interconnected.

We offer an optional introduction to temperament for non specialists, to equip all potential listeners with the basic concepts and terminology used throughout the day.

</blockquote>


---

## [Tarsos presentation at 'ISMIR 2011'](https://0110.be/posts/Tarsos_presentation_at_%27ISMIR_2011%27.md)

- Published: 2011-10-25T21:55:27Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 368
- Canonical: https://0110.be/posts/Tarsos_presentation_at_%27ISMIR_2011%27

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.md), [HoGent](https://0110.be/tags/HoGent.md), [ISMIR](https://0110.be/tags/ISMIR.md), [Music Information Retrieval](https://0110.be/tags/Music%20Information%20Retrieval.md), [Presentation](https://0110.be/tags/Presentation.md), [Research papers](https://0110.be/tags/Research%20papers.md), [Tarsos](https://0110.be/tags/Tarsos.md)

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>Olmo Cornelis and myself just gave a presentation about Tarsos at the at the [12th International Society for Music Information Retrieval Conference](http://ismir2011.ismir.net/) which is held at Miami.

The live demo we gave went well and we got a lot of positive, interesting feedback. The [presentation about Tarsos](https://0110.be/25.10.2011.ismir_tarsos.pdf) is available here.

It was the first time in the history of ISMIR that there was a session with oral [presentations about Non-Western Music](http://ismir2011.ismir.net/program.html#OS2). We were pleased to be part of this.

The peer reviewed paper about our work: [Tarsos - a Platform to Explore Pitch Scales in Non-Western and Western Music](http://ismir2011.ismir.net/program.html#OS2) is available from the ISMIR website and embedded below:

<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fismir2011.ismir.net%2Fpapers%2FOS2-4.pdf&embedded=true" width="600" height="780" style="border: none;">
</iframe>


- [2011.10.25.ismir\_tarsos.pdf](https://0110.be/files/attachments/368/2011.10.25.ismir_tarsos.pdf)

---

[Newer posts](https://0110.be/Blog.md?page=4)

[Older posts](https://0110.be/Blog.md?page=6)
