---
title: Blog - 0110.be
canonical: https://0110.be/Blog?page=6
markdown_url: https://0110.be/Blog.md?page=6
page: 6
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=5
next: https://0110.be/Blog.md?page=7
---

# Blog - 0110.be

## [Tarsos at 'WASPAA 2011'](https://0110.be/posts/Tarsos_at_%27WASPAA_2011%27.md)

- Published: 2011-10-18T13:59:12Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 367
- Canonical: https://0110.be/posts/Tarsos_at_%27WASPAA_2011%27

- Tags: [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)

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>During the the demo session of the [IEEE Workshop on Applications of Signal Processing to Audio and Acoustics (WASPAA)](http://waspaa.com) a demonstration of Tarsos was given. During the demo, [the 18th of Octobre 2011](http://www.waspaa.com/waspaa11/information-for-attendees/schedule/index.html#DM) feedback was gathered.

During the conference I met interesting people and their work:

Carnatic Music Analysis: Shadja, Swara Identification and Raga Verification in Alapana using Stochastic Models\
Ranjani HG, Arthi S, Sreenivas TV

Simulation of the Violin Section Sound based on the analysis of orchestra performance\
Jukka Pätynen, Sakari Tervo, Tapio Lokki

Another interesting paper is [Informed Source Separation: Source Coding Meets Source Separation](http://hal.inria.fr/docs/00/61/05/26/PDF/Ozerov_et_al_WASPAA11_v6.pdf). A demo of this can be found [here](http://www.irisa.fr/metiss/ozerov/ciss_demo.html).


---

## [Bruikbare software voor muziekanalyse](https://0110.be/posts/Bruikbare_software_voor_muziekanalyse.md)

- Published: 2011-10-04T09:48:55Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 360
- Canonical: https://0110.be/posts/Bruikbare_software_voor_muziekanalyse

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

Op dinsdag vier oktober 2011 werd een les gegeven over bruikbare software voor muziekanalyse. Het doel was om duidelijk te maken welk type onderzoeksvragen van bachelor/masterproeven baat kunnen hebben bij objectieve metingen met software voor klankanalyse. Ook de manier waarop werd besproken: soorten digitale representaties van muziek met voorbeelden van softwaretoepassingen werden behandeld.

<center>
<img width="320px" src="https://0110.be/photo/cons/231/digitale_registratie.png" alt="digitale muziek representatie">

</center>
Voor de les werden volgende slides gebruikt ("ppt":\[2011.10.04.bruikbare_software_voor_muziekanalyse.ppt\], "odp":\[2011.10.04.bruikbare_software_voor_muziekanalyse.odp\]):

<iframe src="https://docs.google.com/present/embed?id=dcpqhhws_38cs3txmc2" frameborder="0" width="410" height="342">
</iframe>
De behandelde software voor klank als signaal werd al [eerder besproken](https://0110.be/artikels/lees/Seminar_-_Research_on_Music_History_and_Analysis):

<blockquote>

* [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 .

* [music21](http://mit.edu/music21/) from their website: "music21 is a set of tools for helping scholars and other active listeners answer questions about music quickly and simply. If you've ever asked yourself a question like, "I wonder how often Bach does that" or "I wish I knew which band was the first to use these chords in this order," or "I'll bet we'd know more about Renaissance counterpoint (or Indian ragas or post-tonal pitch structures or the form of minuets) if I could write a program to automatically write more of them," then music21 can help you with your work."

</blockquote>
Om aan te duiden welke digitale representaties welke informatie bevatten werd een stuk van Franz Liszt in verschillende formaten gebruikt:

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

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

-   "MIDI als partituur":\[01.deadpan_midi.wav\]

-   "MIDI als uitvoering":\[02.performed_midi.wav\]

-   "Acoustische uitvoering":\[03.human.performance.wav\]


![Digitale registratie van muziek](https://0110.be/files/photos/360/digitale_registratie.png)

![Muziekanalyse software](https://0110.be/files/photos/360/MusicAnalysisSoftwareCross.png)

- [01.BeatRoot.tempo.wav](https://0110.be/files/attachments/360/01.BeatRoot.tempo.wav)

- [beatroot-0.5.8-rc1.jar](https://0110.be/files/attachments/360/beatroot-0.5.8-rc1.jar)

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

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

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

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

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

- [2011.10.04.bruikbare\_software\_voor\_muziekanalyse.ppt](https://0110.be/files/attachments/360/2011.10.04.bruikbare_software_voor_muziekanalyse.ppt)

- [2011.10.04.bruikbare\_software\_voor\_muziekanalyse.odp](https://0110.be/files/attachments/360/2011.10.04.bruikbare_software_voor_muziekanalyse.odp)

---

## [Dual-Tone Multi-Frequency (DTMF) Decoding with the Goertzel Algorithm in Java](https://0110.be/posts/Dual-Tone_Multi-Frequency_%28DTMF%29_Decoding_with_the_Goertzel_Algorithm_in_Java.md)

- Published: 2011-09-27T09:07:26Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 343
- Canonical: https://0110.be/posts/Dual-Tone_Multi-Frequency_%28DTMF%29_Decoding_with_the_Goertzel_Algorithm_in_Java

- 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)

<a href="https://0110.be/files/attachments/343/GoertzelDTMF.jar"><img style="float:right;margin-left:5px" src="https://0110.be/files/attachments/343/goertzel_DTMF_java_7.png" alt="DTMF Goertzel in JAVA"/></a>The DSP library of Tarsos, aptly named TarsosDSP, now contains an implementation of the Goertzel Algorithm. It is implemented using pure Java.

The [Goertzel algorithm](http://en.wikipedia.org/wiki/Goertzel_algorithm) can be used to detect if one or more predefined frequencies are present in a signal and it does this very efficiently. One of the classic applications of the Goertzel algorithm is decoding the tones generated on by touch tone telephones. These use [DTMF (Dual tone multi frequency)-signaling](http://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling).

To make the algorithm visually appealing a Java Swing interface has been created(visible right). You can try this application by running the "Goertzel DTMF Jar-file":\[GoertzelDTMF.jar\]. The souce code is included in the jar and is avaliable as a separate "zip file":\[GoertzelDTMF_src.zip\]. The [TarsosDSP github page](https://github.com/JorenSix/TarsosDSP) also contains the source for the [Goertzel algorithm Java implementation](https://github.com/JorenSix/TarsosDSP/blob/master/src/be/hogent/tarsos/dsp/pitch/Goertzel.java).


![DTMF detection of 9](https://0110.be/files/photos/343/goertzel_DTMF_java_9.png)

![DTMF detection of 2](https://0110.be/files/photos/343/goertzel_DTMF_java_2.png)

- [goertzel\_DTMF\_java\_7.png](https://0110.be/files/attachments/343/goertzel_DTMF_java_7.png)

- [GoertzelDTMF.jar](https://0110.be/files/attachments/343/GoertzelDTMF.jar)

- [GoertzelDTMF\_src.zip](https://0110.be/files/attachments/343/GoertzelDTMF_src.zip)

---

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

- Published: 2011-09-26T07:32:02Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 340
- Canonical: https://0110.be/posts/PeachNote_Piano_at_the_ISMIR_2011_demo_session

- Tags: [Code](https://0110.be/tags/Code.md), [Computational musicology](https://0110.be/tags/Computational%20musicology.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), [PeachNote Piano](https://0110.be/tags/PeachNote%20Piano.md), [Presentation](https://0110.be/tags/Presentation.md), [Research papers](https://0110.be/tags/Research%20papers.md)

<img style="float:right;margin-left:5px" src="https://0110.be/photo/cons/212/PeachNote_Schema.png" alt="PeachNote Piano Schema"/>The extended abstract about PeachNote Piano has been accepted as a demonstration presentation to appear at the ISMIR (International Society for Music Information Retrieval) 2011 conference in Miami. To know more about PeachNote Piano come see us at our demo stand (during the [Late Breaking and Demo Session](http://ismir2011.ismir.net/program2011.html#demo)) or read the paper: "Peachnote Piano: Making MIDI instruments social and smart using Arduino, Android and Node.js":\[PeachNote_Piano_ISMIR_Demo.pdf\]. What follows here is the introduction of the extended abstract:

<blockquote>
Playing music instruments can bring a lot of joy and satisfaction, but not all apsects of music practice are always enjoyable. In this contribution we are addressing two such sometimes unwelcome aspects: the solitude of practicing and the "dumbness" of instruments.

The process of practicing and mastering of music instruments often takes place behind closed doors. A student of piano spends most of her time alone with the piano. Sounds of her playing get lost, and she can't always get feedback from friends, teachers, or, most importantly, random Internet users. Analysing her practicing sessions is also not easy. The technical possibility to record herself and put the recordings online is there, but the needed effort is relatively high, and so one does it only occasionally, if at all.

Instruments themselves usually do not exhibit any signs of intelligence. They are practically mechanic devices, even when implemented digitally. Usually they react only to direct actions of a player, and the player is solely responsible for the music coming out of the insturment and its quality. There is no middle ground between passive listening to music recordings and active music making for someone who is alone with an instrument.

We have built a prototype of a system that strives to offer a practical solution to the above problems for digital pianos. From ground up, we have built a system which is capable of transmitting MIDI data from a MIDI instrument to a web service and back, exposing it in real-time to the world and optionally enriching it.

</blockquote>
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). Some photos can be found below.


![PeachNote Piano enclosure](https://0110.be/files/photos/340/IMG_20110827_014141.jpg)

![PeachNote Piano in action](https://0110.be/files/photos/340/peachnote.jpg)

![PeachNote Piano Schema](https://0110.be/files/photos/340/PeachNote_Schema.png)

![PeachNote Piano Arduino Shield](https://0110.be/files/photos/340/IMG_20110827_003652.jpg)

![PeachNote Piano assembled](https://0110.be/files/photos/340/IMG_20110827_014024.jpg)

- [PeachNote\_Piano\_ISMIR\_Demo.pdf](https://0110.be/files/attachments/340/PeachNote_Piano_ISMIR_Demo.pdf)

---

## [Simplify Collaboration on a LaTeX Documents with Dropbox and a Build Server](https://0110.be/posts/Simplify_Collaboration_on_a_LaTeX_Documents_with_Dropbox_and_a_Build_Server.md)

- Published: 2011-09-21T09:46:41Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 409
- Canonical: https://0110.be/posts/Simplify_Collaboration_on_a_LaTeX_Documents_with_Dropbox_and_a_Build_Server

- Tags: [Code](https://0110.be/tags/Code.md), [HoGent](https://0110.be/tags/HoGent.md), [LaTeX](https://0110.be/tags/LaTeX.md), [Research papers](https://0110.be/tags/Research%20papers.md)

### Problem

<img src="https://0110.be/files/attachments/409/latex.gif"  alt="LaTeX icon" style="float:right"/>While working on a Latex document with several collaborators some problems arise:

-   Who has the latest version of the TeX-files?

-   Which LaTeX distributions are in use (MiKTeX, LiveTex,...)

-   Are all [LaTeX packages](http://en.wikibooks.org/wiki/LaTeX/Packages) correctly installed on each computer?

-   Why is the bibliography, generated with BiBTeX, not included or incomplete?

-   How does the final PDF look like when it is build by one of the collaborators, with a different LaTeX distribution?

Especially installing and maintaining LaTeX distributions on different platforms (Mac OS X, Linux, Windows) in combination with a lot of LaTeX packages can be challenging. This blog post presents a way to deal with these problems.

### Solution

The solution proposed here uses a build-server. The server is responsible for compiling the LaTeX source files and creating a PDF-file when the source files are modified. The source files should be available on the server should be in sync with the latest versions of the collaborators. Also the new PDF-file should be distributed. The syncing and distribution of files is done using a Dropbox install. Each author installs a Dropbox share (available on all platforms) which is also installed on the server. When an author modifies a file, this change is propagated to the server, which, in turn, builds a PDF and sends the resulting file back. This has the following advantages:

-   Everyone always has the latest version of files;

-   Only one LaTeX install needs to be maintained (on the server);

-   The PDF is the same for each collaborator;

-   You can modify files on every platform with Dropbox support (Linux, Mac OS X, Windows) and even smartphones;

-   Compiling a large LaTeX file can be computationally intensive, a good task for a potentially beefy server.

### Implementation

The implementation of this is done with a couple of bash-scripts running on Ubuntu Linux. LaTeX compilation is handeled by the LiveTeX distribution. The first script `compile.bash` handles compilation in multiple stages: the cross referencing and BiBTeX bibliography need a couple of runs to get everything right.

\`\`\`ruby\
#!/bin/bash\
#first iteration: generate aux file\
pdflatex -interaction=nonstopmode ---src-specials article.tex\
#run bibtex on the aux file\
bibtex article.aux\
#second iteration: include bibliography\
pdflatex -interaction=nonstopmode ---src-specials article.tex\
#third iteration: fix references\
pdflatex -interaction=nonstopmode ---src-specials article.tex\
#remove unused files\
rm article.aux article.bbl article.blg article.out\
\`\`\`

The second script `watcher.bash` is more interesting. It watches the Dropbox directory for changes (only in .tex-files) using the efficient inotify library. If a modification is detected the compile script (above) is executed.

\`\`\`ruby\
#!/bin/bash\
directory=/home/user/Dropbox/article/\
#recursivly watch te directory\
while inotifywait -r \$directory; do\
#find all files changed the last minute that match tex\
#if there are matches then do something...\
if find \$directory -mmin --1 \| grep tex; then\
#tex files changed =\> recompile\
echo "Tex file changed... compiling"\
/bin/bash \$directory/compile.bash\
#sleep a minute to prevent recompilation loop\
sleep 60\
fi\
done\
\`\`\`

<b>To summarize</b>: a user-friendly way of collaboration on LaTeX documents was presented. Some server side configuration needs to be done but the clients only need Dropbox and a simple text editor and can start working togheter.


---

## [The Pidato Experiment: Vibrato on a Digital Piano Using an Arduino](https://0110.be/posts/The_Pidato_Experiment%3A_Vibrato_on_a_Digital_Piano_Using_an_Arduino.md)

- Published: 2011-09-21T00:00:00Z
- Updated: 2023-05-25T07:36:48Z
- Author: Joren
- ID: 410
- Canonical: https://0110.be/posts/The_Pidato_Experiment%3A_Vibrato_on_a_Digital_Piano_Using_an_Arduino

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

<img src="https://0110.be/files/attachments/410/vibrato_ff.png"  style="float:right" alt="ff vibrato on a piano score of Franz Liszt"/> The Pidato experiment demonstrates a rather straightforward method to handle vibrato on a digital piano. It solves the age-old problem on what to do with the enigmatic "vibrato" instructions on some piano solo scores of Franz Liszt. The figure on the right is an exerpt of [*sonetto 104 del Petrarca*](http://imslp.org/wiki/3_Sonetti_del_Petrarca,_S.270_%28Liszt,_Franz%29).

Since there is no way to perform vibrato on an *analogue* piano there are all kinds of different interpretations. Interpretations of the 'vibrato' instruction include: vibrating the pedal, vibrating the key, simply ignoring it, [a vibrato like wiggling with a psychological sounding effect](http://www3.sympatico.ca/norma.barr/library/piano/tone_piano_playing.html), ... A pianist specialized in 19th century music, explains his embodied use of vibrato in a youtube video: [Brian Ganz on piano vibrato](http://www.youtube.com/watch?v=FxwBDZQslzI&feature=related). Those solutions all seem a bit halfhearted, so I created an alternative approach which resulted in the Pidato experiment.

Pidato is a portmanteau of piano and vibrato, the d, a and o hint to the use of an Arduino. Pidato is also Indonesian for speech, expression. To get a feel of what it actually does I created the video below. Please note that this is a *technical demonstration*, not an artistic performance... in any way.

<center>
<video style="width:70%" controls preload="none"  poster="https://0110.be/files/attachments/410/The_Pidato_experiment-Vibrato_on_a_Digital_Piano_using_an_Arduino.webp">
<source src="https://0110.be/files/attachments/410/The_Pidato_experiment-Vibrato_on_a_Digital_Piano_using_an_Arduino.mp4" type="video/mp4">
</video>
<small>Vid: The Pidato experiment - Vibrato on a Digital Piano using an Arduino.</small>

</center>
The way it works is by translating movement (accelerometer data) to MIDI messages. The hardware consists of an [Arduino](http://arduino.cc), MIDI-ports and a three axis accelerometer. The MIDI-ports are provided by this [MIDI IN & OUT Arduino shield](http://tomscarff.110mb.com/MIDI_IN_OUT_ARDUINO/midi_in_out_arduino.htm). The accelerometer is a [MMA7260Q](http://www.sparkfun.com/datasheets/Accelerometers/MMA7260Q-Rev1.pdf) from [Sparkfun](http://sparkfun.com). Attaching the MMA7260Q and the arduino is done by following the instructions [here](http://chalmersphyscomp10.wordpress.com/2010/09/17/mma7260q/). One change was made: by attaching the 3.3V output to `AREF` and executing [`analogReference(EXTERNAL);`](http://www.arduino.cc/en/Reference/AnalogReference) fluctuations in power supply cease to have an influence on accelerometer data readings. It is represented by the purple wire in the diagram below.

<img src="https://0110.be/files/attachments/410/accelerometer_wire_piano_vibrato.jpg" width="100%"  alt="Accelerometer - Arduino - wiring diagram"/>

The software should know when a vibrato like movement is made and how to translate such movement to MIDI messages. The software therefore contains a periodicity estimator and frequency detector to detect how periodic a movement is and how fast the movement is repeated. This was done with the [YIN algorithm](http://audition.ens.fr/adc/pdf/2002_JASA_YIN.pdf) (more commonly used in audio signal analysis). A periodicity threshold was determined experimentally so the system does not yield false positives when playing the piano in the usual way. Another interesting bit of code is the interrupt setup that samples the accelerometer at a fixed sample rate and sends MIDI messages, also at a fixed rate.

MIDI messaging is done over a serial connection. From the Arduino sending a MIDI message is as simple as calling `Serial.print` with the correct data. For the task at hand (sending vibrato) [Pitch Bend messages](http://tomscarff.110mb.com/midi_analyser/pitch_bend.htm) were used. The standard Arduino UNO firmware is replaced with [Arduino MIDI firmware](http://hunt.net.nz/users/darran/weblog/5b7f8/Arduino_UNO_USB_MIDI_firmware.html). This makes the Arduino appear as a standard MIDI device when connected to a computer, which makes interfacing with it practical.

The YIN algorithm is encapsulated in a reusable Arduino library and can be used to detect periodicity and frequency for any signal. [This guy](http://www.youtube.com/watch?v=oGKE1vmAWCA) used his implementation to create a chromatic tuner. The source code for both the [Yin Arduino library](https://github.com/JorenSix/Pidato) and [Pidato experiment](https://github.com/JorenSix/Pidato) can be found on github or "here (zip)":\[Pidato.src.zip\].

The Pidato experiment was done with the help the friendly hackers at [Hackerspace Ghent](http://0x20.be).

This [piano vibrato](http://hackaday.com/2011/04/16/pidato-box-adds-vibrato-effect-to-digital-pianos/) hack was also covered by [hackaday.com](http://hackaday.com) and posted to the [Hackerspace Ghent blog](http://0x20.posterous.com/).


![Prototype](https://0110.be/files/photos/410/01.prototype.jpg)

![Constuction](https://0110.be/files/photos/410/02.case.jpg)

![Finished](https://0110.be/files/photos/410/03.pidato.jpg)

![ff vibrato annotation](https://0110.be/files/photos/410/vibrato.png)

![wire schema](https://0110.be/files/photos/410/accelerometer_wire.jpg)

- [Pidato.src.zip](https://0110.be/files/attachments/410/Pidato.src.zip)

- [vibrato\_ff.png](https://0110.be/files/attachments/410/vibrato_ff.png)

- [accelerometer\_wire\_piano\_vibrato.jpg](https://0110.be/files/attachments/410/accelerometer_wire_piano_vibrato.jpg)

- [The\_Pidato\_experiment-Vibrato\_on\_a\_Digital\_Piano\_using\_an\_Arduino.mp4](https://0110.be/files/attachments/410/The_Pidato_experiment-Vibrato_on_a_Digital_Piano_using_an_Arduino.mp4)

- [The\_Pidato\_experiment-Vibrato\_on\_a\_Digital\_Piano\_using\_an\_Arduino.webp](https://0110.be/files/attachments/410/The_Pidato_experiment-Vibrato_on_a_Digital_Piano_using_an_Arduino.webp)

---

## [Rendering MIDI Using Arbitrary Tone Scales - Revisited](https://0110.be/posts/Rendering_MIDI_Using_Arbitrary_Tone_Scales_-_Revisited.md)

- Published: 2011-09-20T14:14:02Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 408
- Canonical: https://0110.be/posts/Rendering_MIDI_Using_Arbitrary_Tone_Scales_-_Revisited

- 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)

Tarsos can be used to render MIDI files to audio (WAV) files using arbitrary tone scales. This functionallity can be used to (automatically) verify tone scale extraction from audio files. Since I could not find a dataset with audio and corresponding tone scales creating one using MIDI seemed a good idea.

MIDI files can be found in spades (for example on [piano-midi.de](http://www.piano-midi.de/midi_files.htm) or [kunstderfuge.com](http://kunstderfuge.com)), tone scales on the other hand are harder to find. Luckily there is one massive source, the [Scala Tone Scale Archive](http://www.huygens-fokker.org/scala/downloads.html#scales): *A large collection of over 3700 tone scales*.

Using Scala tone scale files and a midi files a *Tone Scale - Audio* dataset can be generated. The quality of the audio depends on the (software) synthesizer and the [SoundFont](http://en.wikipedia.org/wiki/SoundFont) used. Tarsos currently uses the [Gervill synthesizer](https://gervill.dev.java.net/). Gervill is a pure Java software synthesizer with support for 24bit SoundFonts and the MIDI tuning standard.\
<br/>

### How To Render MIDI Using Arbitrary Tone Scales with Tarsos

A recent version of the JRE (Java Runtime Environment) needs to be installed on your system if you want to use Tarsos. Tarsos itself can be downloaded in the form of the "MIDI and Scala to Wav - JAR Package":\[MidiToWav.jar\].

To test the program you can use "a MIDI file":\[MIDI_file.mid\] and "a Scala file":\[persian.scl.txt\] and drag and drop those on the graphical interface.

<center>
<img src="https://0110.be/photo/cons/216/MIDI_and_Scala_to_WAV.png" alt="Midi to WAV screen shot"/>

</center>
The result should sound like this:

<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F23757999"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F23757999" type="application/x-shockwave-flash" width="100%"></embed> </object>

To summarize: by rendering audio with MIDI and Scala tone scale files a dataset with tone scale - audio information can be generated and tone scale extraction algorithms can be tested on the fly.


![Drag and drop MIDI and scala files](https://0110.be/files/photos/408/MIDI_and_Scala_to_WAV.png)

![Create WAV files](https://0110.be/files/photos/408/MIDI_and_Scala_to_WAV_processing.png)

- [MidiToWav.jar](https://0110.be/files/attachments/408/MidiToWav.jar)

- [MIDI\_file.mid](https://0110.be/files/attachments/408/MIDI_file.mid)

- [persian.scl.txt](https://0110.be/files/attachments/408/persian.scl.txt)

---

## [PeachNote Piano](https://0110.be/posts/PeachNote_Piano.md)

- Published: 2011-09-08T06:32:37Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 407
- Canonical: https://0110.be/posts/PeachNote_Piano

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

<img style="float:right;margin-left:5px" src="https://0110.be/photo/cons/212/PeachNote_Schema.png" alt="PeachNote Piano Schema"/>This is about PeachNote Piano, a project only tangentially related to Tarsos. PeachNote Piano aims to capture as many piano practice sessions as possible and offer useful services using this data. The system does this by capturing and redirecting MIDI events on a Bluetooth enabled smartphone. It is done together with [Vladimir Viro](http://www.peachnote.com/about.html) and builds on the existing [PeachNote](http://peachnote.com) infrastructure.

The schema - right - shows the components of the PeachNote Piano system. At the bottom you have a MIDI keyboard connected to the MIDI-Bluetooth-bridge. A smartphone (middle left) receives these MIDI events via Bluetooth and controls the communication to the server (top left). An alternative path goes through a standard computer (top right).

The Arduino based Bluetooth to MIDI bridge is an improvement on the work by [Peter Brinkmann](http://nettoyeur.noisepages.com/). The video below shows communication between USB-MIDI, Bluetooth MIDI and MIDI IN/OUT ports.

As an example application of the PeachNote Piano system we implemented a "Continue a Melody" service which works as follows: a user plays something on a keyboard, maybe just a few notes, and pauses for a few seconds. In the meantime, the server searches through a large database of MIDI piano recordings, finds the longest fuzzy match for the user's most recent input, and, after a short silence on the users part, starts streaming the continuation of the best matched performance from the database to the user. This mechanism, in fact, is way of browsing a music collection. Users may play a known leitmotiv or just improvise something, and the system continues playing a high quality recording, "replying" to the musical proposition of the user.

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

### More technical details

The melody matching is done on the server, which is implemented in Javascript in the Node.js framework. The whole dataset (about 350 hours of piano recordings) resides in memory in two representations: as a sequence of pitches, and as a sequence of "densities" at the corresponding places of the pitch sequence dataset. This second array is used to store the rough tempo information (number of notes per second) absent in the pitch sequence data.\
By combining the two search criteria we can achieve reasonable approximation of the tempo-aware search without its computational complexity.

The implementation of the hardware is based on the open-source electronic prototyping platform Arduino. Optocoupled MIDI ports (IN/OUT) and the BlueSMiRF Bluetooth module were attached to the main board, as can be seen in the middle left block of the schema. The BlueTooth module is configured to use the Serial Port Profile (SPP) which emulates RS-232. The software on the Arduino manages bi-directional, low latency message passing between three serial ports: USB (through an FTDI chip), BlueTooth and the hardware MIDI-IN and OUT port.

The standard Arduino firmware has been replaced with firmware that implements the "Universal Serial Bus Device Class Definition for MIDI Devices": when attached to a computer via USB, the Arduino shows up as a standard MIDI device, which makes it compatible with all available MIDI software. The software client currently works on the Android smartphone platform. It is represented using the middle right block in the schema. The client can send and receive MIDI events over its Bluetooth port. Pairing, connecting and communicating with the device is done using the [Amarino software library](http://www.amarino-toolkit.net/). The client communicates with the Peachnote Piano server using TCP sockets implemented on the Dalvik Java runtime.


![Finished enclosure](https://0110.be/files/photos/407/IMG_20110827_014141.jpg)

![Building a Bluetooth - MIDI shield](https://0110.be/files/photos/407/IMG_20110827_003652.jpg)

![Assembled](https://0110.be/files/photos/407/IMG_20110827_014024.jpg)

![PeachNote Piano in action](https://0110.be/files/photos/407/peachnote.jpg)

![PeachNote Schema](https://0110.be/files/photos/407/PeachNote_Schema.png)

---

## [Makam Recognition with the Tarsos API](https://0110.be/posts/Makam_Recognition_with_the_Tarsos_API.md)

- Published: 2011-09-01T08:13:21Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 406
- Canonical: https://0110.be/posts/Makam_Recognition_with_the_Tarsos_API

- Tags: [Code](https://0110.be/tags/Code.md), [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.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)

This article describes how to do makam recognition with a script that uses the Tarsos API.

The task we want to do is to find the tone scales most similar to the one used in recorded music. To complete this task you need a small set of theoretical scales and a large set of music, each brought in one of the scales. To make it more concrete, an example of Turkish classical music is used.

In an [article by Bozkurt](http://dl.acm.org/citation.cfm?id=1688013) pitch histograms are used for - amongst other tasks - makam recognition. A maqam defines rules for a composition or performance of classical Turkish music. It specifies melodic shapes and pitch intervals, the scale. The task is to identify which of nine makams is used in a specific song. A simplified, generalized implementation of this task is shown here. In our implementation there is no tonic detection step. Also here we use only theoretical descriptions of the tone scales as a template and do not construct a template using the audio itself, as is done by Bozkurt. Ioannidis Leonidas wrote an interesting [master thesis about makam recognition](http://www.mtg.upf.edu/static/media/Ioannidis-Leonidas-Master-Thesis-2010.pdf). Since no knowledge of the music itself is used the approach is generally applicable.

The following is an implementation in [Scala](http://scala-lang.org) a general purpose programming language that is interoperable with Jave . The first step is to write the Scala header. This is just some boilerplate code to be able to run the script from the command line - it assumes a UNIX-like environment and tarsos.jar in the same directory:

\`\`\`ruby\
#!/bin/sh\
exec scala -cp tarsos.jar -savecompiled "\$0" "\$@"\
!#\
import be.hogent.tarsos.util.\_\
//other import statements\
\`\`\`

The second step constructs the templates the capability of Tarsos to create\
theoretical tone scale templates using Gaussian kernels is used, line 8. See the attached images for some examples.

\`\`\`ruby\
val makams = List( "hicaz","huseyni","huzzam","kurdili_hicazar",\
"nihavend","rast","saba","segah","ussak")

var theoreticKDEs = Map\[java.lang.String,KernelDensityEstimate\]()\
makams.foreach{ makam =\>\
val scalaFile = makam + ".scl"\
val scalaObject = new ScalaFile(scalaFile);\
val kde = HistogramFactory.createPichClassKDE(scalaObject,35)\
kde.normalize\
theoreticKDEs = theoreticKDEs + (makam -\> kde)\
}\
\`\`\`

The third and last step is matching. First a list of audio\
files is created by recursively iterating a directory and matching each file to\
a regular expression. Next, starting from line 4, each audio file is processed.\
The internal implementation of the YIN pitch detection\
algorithm is used on the audio file and a pitch class histogram is created\
(line 6,7). On line 10 normalization of the histogram is done, to\
make the correlation calculation meaningful. Line 11 until 15 compare the\
created histogram from the audio file with the templates calculated beforehand.\
The results are stored, ordered and eventually printed on line 19.

\`\`\`ruby\
val directory = "/home/joren/turkish_makams/"\
val audio_pattern = ".\*.(mp3\|wav\|ogg\|flac)"\
val audioFiles = FileUtils.glob(directory,audio_pattern,true).toList

audioFiles.foreach{ file =\>\
val audioFile = new AudioFile(file)\
val detectorYin = PitchDetectionMode.TARSOS_YIN.getPitchDetector(audioFile)\
val annotations = detectorYin.executePitchDetection()\
val actualKDE = HistogramFactory.createPichClassKDE(annotations,15);\
actualKDE.normalize\
var resultList = List\[Tuple2\[java.lang.String,Double\]\]()\
for ((name, theoreticKDE) \<- theoreticKDEs){\
val shift = actualKDE.shiftForOptimalCorrelation(theoreticKDE)\
val currentCorrelation = actualKDE.correlation(theoreticKDE,shift)\
resultList = (name -\> currentCorrelation) :: resultList\
}\
//order by correlation\
resultList = resultList.sortBy{\_.\_2}.reverse\
Console.println(file + " is brought in tone scale " + resultList(0).\_1)\
}\
\`\`\`

A complete version of this script can is available: "Tone scale matching script":\[guess_makam.scala\] Results of the script when ran on Bozkurt's dataset can be seen in the attached spreadsheet ("openoffice format":\[makam_recognition_results.ods\] or "excel format":\[makam_recognition_results.xls\]).


![Theoretical template](https://0110.be/files/photos/406/template_ussak.png)

![Other theoretical template](https://0110.be/files/photos/406/template_segah.png)

![Actual Hicaz song overlayed with a theoretical template](https://0110.be/files/photos/406/hicaz.png)

- [guess\_makam.scala](https://0110.be/files/attachments/406/guess_makam.scala)

- [makams.zip](https://0110.be/files/attachments/406/makams.zip)

- [makam\_recognition\_results.ods](https://0110.be/files/attachments/406/makam_recognition_results.ods)

- [makam\_recognition\_results.xls](https://0110.be/files/attachments/406/makam_recognition_results.xls)

---

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

- Published: 2011-08-22T08:26:09Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 405
- Canonical: https://0110.be/posts/Tarsos_at_%27ISMIR_2011%27

- Tags: [Code](https://0110.be/tags/Code.md), [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), [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="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>A paper about Tarsos was submitted for review at the [12th International Society for Music Information Retrieval Conference](http://ismir2011.ismir.net/) which will be held in Miami. The paper "Tarsos - a Platform to Explore Pitch Scales in Non-Western and Western Music":\[tarsos_ismir_2011.pdf\] was reviewed and accepted, it will be published in this year's proceedings of the ISMIR conference. It can be read below as well.

An oral presentation about Tarsos is going to take place Tuesday, the 25 of October during the afternoon, as can be seen on the [ISMIR preliminary program schedule](http://ismir2011.ismir.net/program.html#OS2).

If you want to cite our work, please use the following data:

\`\`\`ruby\
\@inproceedings{six2011tarsos,\
author = {Joren Six and Olmo Cornelis},\
title = {Tarsos - a Platform to Explore Pitch Scales\
in Non-Western and Western Music},\
booktitle = {Proceedings of the 12th International\
Society for Music Information Retrieval Conference,\
ISMIR 2011},\
year = {2011},\
publisher = {International Society for Music Information Retrieval}\
}\
\`\`\`

<iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/78729538/content?start_page=1&view_mode=list&access_key=key-1z0pgdh7p069k0k1s0jg" data-auto-height="true" data-aspect-ratio="0.772727272727273" scrolling="no" id="doc_99055" width="100%" height="600" frameborder="0">
</iframe>
<script type="text/javascript">
(function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "http://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")\[0\]; s.parentNode.insertBefore(scribd, s); })();</script>


- [tarsos\_ismir\_paper.bibtex.txt](https://0110.be/files/attachments/405/tarsos_ismir_paper.bibtex.txt)

- [tarsos\_ismir\_2011.pdf](https://0110.be/files/attachments/405/tarsos_ismir_2011.pdf)

---

## [Android Gingerbread 2.3.4 on LG GT540 Optimus](https://0110.be/posts/Android_Gingerbread_2.3.4_on_LG_GT540_Optimus.md)

- Published: 2011-07-19T00:00:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 323
- Canonical: https://0110.be/posts/Android_Gingerbread_2.3.4_on_LG_GT540_Optimus

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

<img src='https://0110.be/files/attachments/323/GT-540-black.jpg' width='90' style='float:right' />

I have upgraded the operating system on my LG GT540 Optimus from the stock Android 1.6 to Android Gingerbread 2.3.4. I followed this [updgrade procedure](http://androidforums.com/optimus-gt540-all-things-root/352239-android-2-3-4-gingerbread-lg-gt540-new-method.html).

It is well worth it to spend some time upgrading the phone, especially from 1.6. Everything feels a lot faster and the upgraded applications, e.g. Gallery, are nicely improved.

The main reason I upgraded my phone is to get the open source accessory development kit (ADK) for Android working. I got the [DemoKit application](http://developer.android.com/guide/topics/usb/adk.html#running-demokit) working after some time but need to do some more experiments to see if the hardware actually works: I am waiting for a USB Host Shield for Arduino. To be continued...

<br>


---

## [Latex export functions](https://0110.be/posts/Latex_export_functions.md)

- Published: 2011-06-17T08:02:51Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 402
- Canonical: https://0110.be/posts/Latex_export_functions

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

Tarsos, a software package to analyse pitch organization in music, contains a new output modality. It is now possible to export a pitch class histogram and a pitch class interval matrix to latex from within Tarsos. This makes documenting tone scales more efficient.

An example for "a pitch class histogram and pitch class interval matrix":\[latex_export.pdf\] can be seen. Also available is the "latex source code":\[latex_export.tex\].


![Latex export of a pitch class histo.](https://0110.be/files/photos/402/latex_export_pitch_class_histo.png)

![Latex export of a pitch class interval matrix](https://0110.be/files/photos/402/latex_export_p_c_interval_matrix.png)

- [latex\_export.tex](https://0110.be/files/attachments/402/latex_export.tex)

- [latex\_export.pdf](https://0110.be/files/attachments/402/latex_export.pdf)

- [MR.1954.1.19-4.dat](https://0110.be/files/attachments/402/MR.1954.1.19-4.dat)

---

## [Resynthesis of Pitch Detection Annotations on a Flute Piece](https://0110.be/posts/Resynthesis_of_Pitch_Detection_Annotations_on_a_Flute_Piece.md)

- Published: 2011-06-16T14:43:10Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 403
- Canonical: https://0110.be/posts/Resynthesis_of_Pitch_Detection_Annotations_on_a_Flute_Piece

- Tags: [Code](https://0110.be/tags/Code.md), [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.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)

Tarsos, a software package to analyse pitch organization in music, contains a new output modality. Now it is possible to export resynthesized pitch annotations, detected by a pitch detection algorithm and compare those with the original sound. This can be interesting to see which errors a pitch detection algorithm makes.

Below you can listen to an example of synthesized pitch detection results compared with the original flute piece. The file starts with only the original flute sound (on the right channel) and gradually changes so only the synthesized annotations (on the left channel) can be heard.

<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F17260613&amp;show_comments=true&amp;auto_play=false&amp;color=ff7700"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F17260613&amp;show_comments=true&amp;auto_play=false&amp;color=ff7700" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><a href="http://soundcloud.com/joren_six/flute-resynth">Resynthesis of Pitch Detection Annotations on a Flute Piece</a> by <a href="http://soundcloud.com/joren_six">Joren Six</a></span>


- [flute\_resynth.wav](https://0110.be/files/attachments/403/flute_resynth.wav)

---

## [Tarsos at 'IPEM Open House'](https://0110.be/posts/Tarsos_at_%27IPEM_Open_House%27.md)

- Published: 2011-05-27T10:02:51Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 400
- Canonical: https://0110.be/posts/Tarsos_at_%27IPEM_Open_House%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), [featured](https://0110.be/tags/featured.md)

<img src="https://0110.be/files/attachments/400/ipem_logo.gif"  alt="IPEM Logo"  width="100" style="float:right;margin-left:5px;"/> The 25th of May 2011 Tarsos was present at the [IPEM (Institute for Psychoacoustics and Electronic Music)](http://www.ipem.ugent.be/) open house.

> IPEM (Institute for Psychoacoustics and Electronic Music) is the research center of the Department of Musicology, which is part of the Department of Art, Music and Theater Studies of Ghent University. IPEM provides a scientific basis for the cultural and creative sector, especially for music and performance arts, and does pioneering research work on the relationship between music body movement and new technologies. The institute consists of an interdisciplinary team but also welcomes visiting researchers from all over the world. One of its aims is also to actively try and validate research results during public events and by means of user studies.

There are close relations between the Royal Conservatory Ghent, where we are located, and IPEM. There is more information [about the IPEM open house](http://www.ipem.ugent.be/node/292) available. Also available is [the program of the IPEM open house 2011](http://www.ipem.ugent.be/node/293)

Tarsos was presented using a poster, a flyer and a live demo. The "poster about Tarsos":\[tarsos_poster.pdf\] and the "flyer about Tarsos":\[tarsos_flyer.pdf\] are both downloadable.


- [tarsos\_flyer.pdf](https://0110.be/files/attachments/400/tarsos_flyer.pdf)

- [tarsos\_poster.pdf](https://0110.be/files/attachments/400/tarsos_poster.pdf)

- [ipem\_logo.gif](https://0110.be/files/attachments/400/ipem_logo.gif)

---

## [PulseAudio Support for Sun Java 6 on Ubuntu](https://0110.be/posts/PulseAudio_Support_for_Sun_Java_6_on_Ubuntu.md)

- Published: 2011-05-27T09:59:31Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 394
- Canonical: https://0110.be/posts/PulseAudio_Support_for_Sun_Java_6_on_Ubuntu

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

This article describes how to make sun-java6 play nice with the PulseAudio sound sytem on Ubuntu with an x64 processor architecture. With some changes the method should also work with other operating systems and other platforms.

The default way sun-java6 operates with respect to sound on Ubuntu is, well unrespectfull. When playing audio it claims an audio device, which then can not be used any more by other applications trying to access the same device. This is far from ideal. Also changing audio interfaces (by e.g. plugging in a USB audio interface) goes wrong most of the time.

<center>
<img src="https://0110.be/files/attachments/394/pulseaudio_logo.png" alt="PulseAudio ear-candy">

</center>
These problems are addressed by PulseAudio and there is a way to make sun-java6 aware of PulseAudio on Ubuntu. The OpenJDK does this automatically but it has some other, unrelated, issues. If you want to use PulseAudio with java6 on Ubuntu x64 you need copy "pulse-java.jar":\[pulse-java.jar\] and platform dependent "libpulse-java.so":\[libpulse-java.so\] file to correct JVM directories. To make it easy you can execute these commands:

\`\`\`ruby\
wget http://tarsos.0110.be/attachment/cons/255/libpulse-java.so\
sudo cp libpulse-java.so /usr/lib/jvm/java-6-sun/jre/lib/amd64

wget http://tarsos.0110.be/attachment/cons/256/pulse-java.jar\
sudo cp pulse-java.jar /usr/lib/jvm/java-6-sun/jre/lib/ext\
\`\`\`

From this moment on the "PulseAudio Mixer" is available for Java applications. Sharing, switching and assigning audio devices to Java programs is as a result smooth. To use the PulseAudio Mixer by default you need to change sound.properties which can be found at `/usr/lib/jvm/java-6-sun/jre/lib/sound.properties`. Details can be found [here](http://www.mail-archive.com/universe-bugs@lists.ubuntu.com/msg146425.html).


- [libpulse-java.so](https://0110.be/files/attachments/394/libpulse-java.so)

- [pulse-java.jar](https://0110.be/files/attachments/394/pulse-java.jar)

- [pulseaudio\_logo.png](https://0110.be/files/attachments/394/pulseaudio_logo.png)

---

## [TwinSeats heeft Apps For Ghent gewonnen!](https://0110.be/posts/TwinSeats_heeft_Apps_For_Ghent_gewonnen%21.md)

- Published: 2011-05-18T00:00:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 320
- Canonical: https://0110.be/posts/TwinSeats_heeft_Apps_For_Ghent_gewonnen%21

- 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), [Portfolio](https://0110.be/tags/Portfolio.md), [Projecten](https://0110.be/tags/Projecten.md)

Vorige zaterdag werd [Apps For Ghent](http://appsforghent.be/) georganiseerd: een activiteit om het belang van open data te onderstrepen in navolging van onder meer [Apps For Amsterdam](http://www.appsforamsterdam.nl/) en [New York City Big App](http://nycbigapps.com/). Tijdens de voormiddag kwamen er verschillende organisaties hun open gestelde data voorstellen de namiddag werd gereserveerd voor een wedstrijd. Het doel van de wedstrijd was om in enkele uren een concept uit te werken en meteen voor te stellen. Het uitgewerkte prototype moest gedeeltelijk functioneren en gebruik maken van (Gentse) open data.

Luk Verhelst en ikzelf hebben er TwinSeats voorgesteld.

> <img src='https://0110.be/files/attachments/320/TwinSeatsLogo.png' width='100' style='float:left' /> TwinSeats is een website / online initiatief om nieuwe mensen te leren kennen. Met hen deel je dezelfde culturele interesse en ga je vervolgens samen naar deze of gene voorstelling. Door events centraal te stellen kan TwinSeats uitzonderlijke cultuurburen zoeken. Leden vinden die cultuurburen dankzij een gezamenlijke voorliefde voor een artiest of attractie of eender welke bezigheid in de vrijetijdssfeer.

Het prototype is ondertussen terug te vinden op [TwinSeats.be](http://twinseats.be). Let wel dit is in enkele uren in elkaar geflanst en is verre van 'af', het achterliggende concept is belangrijker.

Samen met Wa Kank Doen van SumoCoders werden we door de jury tot winnaar uitgeroepen. Maandag verscheen er [een artikel in de Standaard over AppsForGhent met een vermelding van TwinSeats](http://www.standaard.be/artikel/detail.aspx?artikelid=IV3A3TCU). Op de Apps For Ghent site is uiteraard ook iets te vinden [over TwinSeats](http://appsforghent.be/?post_type=apps&p=161) ook het [juryverslag](http://appsforghent.be/?page_id=223) is er te vinden. Zoals het hoort bij die categorie evenementen werd ook wat [afgetweet](http://search.twitter.com/search?q=AppsforGhent).

Er is ook een publieksprijs verbonden aan AppsForGhent die wordt over enkele weken uitgereikt.


---

## [Tarsos at 'First International Workhop of Folk Music Analysis'](https://0110.be/posts/Tarsos_at_%27First_International_Workhop_of_Folk_Music_Analysis%27.md)

- Published: 2011-05-13T09:46:54Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 393
- Canonical: https://0110.be/posts/Tarsos_at_%27First_International_Workhop_of_Folk_Music_Analysis%27

- Tags: [Computational musicology](https://0110.be/tags/Computational%20musicology.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)

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>Tarsos will be presented at the [First International Workhop of Folk Music Analysis: Symbolic and Signal Processing](http://www.arehna.di.uoa.gr/fma/):

> "The First International Workhop of Folk Music Analysis: Symbolic and Signal Processing, will take place in Athens, Greece, on the 19th and 20th of May, 2011. ... The purpose of the event is to gather reseachers who work in the area of computational folk music analysis, using symbolic or singal processing methods, to present their work, discuss and exchange views on the topic."

The "submitted abstract about Tarsos":\[Tarsos_FMA_2011.pdf\] can be downloaded. "A presentation about Tarsos":\[2011-05-20-tarsos_at_athens.pdf\] is also available.


- [Tarsos\_FMA\_2011.pdf](https://0110.be/files/attachments/393/Tarsos_FMA_2011.pdf)

- [2011-05-20-tarsos\_at\_athens.pdf](https://0110.be/files/attachments/393/2011-05-20-tarsos_at_athens.pdf)

---

## [TarsosDSP: a small JAVA audio processing library](https://0110.be/posts/TarsosDSP%3A_a_small_JAVA_audio_processing_library.md)

- Published: 2011-03-25T15:58:59Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 392
- Canonical: https://0110.be/posts/TarsosDSP%3A_a_small_JAVA_audio_processing_library

- Tags: [Code](https://0110.be/tags/Code.md), [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), [featured](https://0110.be/tags/featured.md)

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.

Its aim is to provide a simple interface to some audio (signal) processing algorithms implemented in JAVA.

To make some of the possibilities clear I coded some examples.

-   "TarsosDSP UtterAsterisk":\[UtterAsterisk.jar\] a game that shows real-time pitch detection with YIN.

-   "TarsosDSP Sound Detector":\[SoundDetector.jar\] is simply to show how to react when (loud) sound is available.

-   "TarsosDSP Percussion Detector":\[PercussionDetector.jar\] is capable of detecting percussion onsets using the method described [here](http://arrow.dit.ie/cgi/viewcontent.cgi?article=1018&context=argcon). It plays a sound from [freesound.org](http://freesound.org) when percussion is detected.

The [source code of TarsosDSP](https://github.com/JorenSix/TarsosDSP) is available on github.

### Presentation at Newline

Saturday the 25th of March TarsosDSP was presented at [Newline](http://0x20.be/Newline/Schedule), a small conference organized by [whitespace](http://0x20.be). Here you can download "the slides I used to present TarsosDSP":\[tarsosDSP_presentation.pdf\], I also created "an introductory text on sound and Java":\[sound_and_java.pdf\].

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


![Percussion detection](https://0110.be/files/photos/392/Percussion_Detector.png)

![UtterAsterisk](https://0110.be/files/photos/392/UtterAsterisk.png)

![Sound Detector](https://0110.be/files/photos/392/SoundDetector.png)

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

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

- [tarsosDSP\_presentation.pdf](https://0110.be/files/attachments/392/tarsosDSP_presentation.pdf)

- [sound\_and\_java.pdf](https://0110.be/files/attachments/392/sound_and_java.pdf)

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

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

---

## [Tarsos praktisch](https://0110.be/posts/Tarsos_praktisch.md)

- Published: 2011-03-21T13:54:41Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 397
- Canonical: https://0110.be/posts/Tarsos_praktisch

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

### Wat

Tarsos is een softwareprogramma waarmee toonhoogte in muziek onderzocht kan worden in onder meer etnische muziek. Het kan gebruikt worden om toonintervallen en toonladders te identificeren. Het maakt kwarttonen of andere (ongewone) intervallen visueel duidelijk. Tarsos heeft nu ook real-time mogelijkheden. Geluid afkomstig van een microfoon wordt meteen geanalyseerd en onmiddellijke feedback toont een gespeeld of gezongen interval. Zangers of instrumentalisten die willen experimenteren met intonatie kunnen Tarsos zelf uit te proberen.

Meer info over de werking van Tarsos is te vinden in een "kort artikel over de werking van Tarsos":\[tarsos_werking.pdf\]. Daarin wordt ook de betekenis van de verschillende vensters in Tarsos duidelijk.

### Installatie

Om Tarsos te kunnen gebruiken heb je, naast Tarsos zelf, Java nodig. Java staat waarschijnlijk al op je pc. Dit is te controleren op [java.com](http://java.com). Daar zijn ook instructies te vinden hoe je Java kan installeren.

Met een werkende Java is Tarsos installeren eenvoudig: download [Tarsos](https://0110.be/attachment/tarsos.jar) en voer het uit (dubbel klikken).

### Toonladder detecteren

Om een toonladder te detecteren in een muziekbestand met Tarsos doe je het volgende.

1.  Open het bestand door via `file - open...` het bestand te kiezen. Een voorbeeld van een muziek bestand in een vreemde toonladder is hier te vinden het is "een cello suite van Bach gespeeld in een toonladder met 10 gelijke delen - intervallen van 120 cents":\[bach_BWV_1007_120.mp3\]

2.  Laat het algoritme het bestand analyseren.

3.  Detecteer de pieken in het histogram door met de slider `peakpicking` te bewegen. Als niet alle pieken gedetecteerd worden kan je een piek toevoegen door met `alt` en een muisbeweging over het pitch class histogram te bewegen. Klik om de positie van de piek te bevestigen. Met `ctrl` kunnen pieken verplaatst worden.

Deze stappen zijn ook te zien in een screenshot in de bijlage. Om de informatie te exporteren kan je bij de uitvoeropties kijken. Met `file - export - scala...` kan je een scala bestand exporteren. Dit zijn tekstbestanden met daarin een toonladder die gebruikt kunnen worden in het [Scala programma](http://www.huygens-fokker.org/scala/).

### Real time analyse

Met de real time analyse kan je intervallen inspelen en via visuele feedback meteen te weten komen hoe dicht je intonatie bij het gewenste resultaat zat. Je hebt er een microfoon voor nodig. Door `Settings - Tarsos Live` te kiezen en daarna Tarsos af te sluiten en opnieuw te starten luistert Tarsos naar geluid afkomstig van een microfoon. Speel toonhoogte intervallen en die worden visueel duidelijk. De reset knop wist het histogram.


![](https://0110.be/files/photos/397/detect_tone_scale.png)

- [tarsos\_werking.pdf](https://0110.be/files/attachments/397/tarsos_werking.pdf)

- [bach\_BWV\_1007\_120.mp3](https://0110.be/files/attachments/397/bach_BWV_1007_120.mp3)

---

## [ARIP: Programma](https://0110.be/posts/ARIP%3A_Programma.md)

- Published: 2011-03-08T13:23:14Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 389
- Canonical: https://0110.be/posts/ARIP%3A_Programma

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

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/> Tijdens ARIP( Artistic Research in Progress) wordt Tarsos voorgesteld en kan het zelfs uitgetest worden. Volgens de [ARIP website](http://cons.hogent.be/nl/nieuws-en-agenda/nieuws/dag-van-het-onderzoek-arip-371) : *"Op 18 maart 2011 stellen de verschillende onderzoekers hun onderzoeksproject voor: geen afgewerkte producten of eindresultaten, maar wel momentopnames. Samen bieden ze een interessante en intrigerende kijk in wat het onderzoek in ons Conservatorium te bieden heeft".*

Het tekstje over Tarsos:

> Tarsos is een softwareprogramma waarmee toonhoogte in muziek onderzocht kan worden in onder meer etnische muziek. Tarsos heeft nu ook nieuwe, real-time mogelijkheden. Geluid afkomstig van een microfoon wordt meteen geanalyseerd en onmiddellijke feedback toont een gespeeld of gezongen interval. Het maakt kwarttonen of andere (ongewone) intervallen visueel duidelijk.\
> Tijdens ARIP zal er kort wat uitleg gegeven worden over Tarsos en mag je een demo verwachten. Zangers of instrumentalisten die willen experimenteren met intonatie zijn ook meer dan welkom om Tarsos *zelf uit te proberen*.

<center>
<img src="https://0110.be/files/attachments/389/arip.jpg" alt="arip logo">

</center>


---

## [Tarsos at 'Lectures on Computational Ethnomusicology'](https://0110.be/posts/Tarsos_at_%27Lectures_on_Computational_Ethnomusicology%27.md)

- Published: 2011-02-24T13:09:23Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 385
- Canonical: https://0110.be/posts/Tarsos_at_%27Lectures_on_Computational_Ethnomusicology%27

- Tags: [Computational ethnomusicology](https://0110.be/tags/Computational%20ethnomusicology.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)

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/> This monday the 28th of February Tarsos will be presented at "Lectures on Computational Ethnomusicology" which is held at Izmir, Turkey. "The presentation of Tarsos":\[2011-02-28_tarsos_at_izmir.pdf\] is available here.

Next to the interesting "programme":\[programme_lectures_on_comp_ethno_izmir.pdf\] it is a great opportunity to meet [Baris Bozkurt](http://web.iyte.edu.tr/~barisbozkurt/) who has been working on similar research but applied to [Makam music](http://likya.iyte.edu.tr/eee/labs/audio/Main.html).

On wednesday the second of March there is a small seminar at Electrical and Electronics Eng. Dept. of [İzmir Yüksek Teknoloji Enstitüsü](http://www.iyte.edu.tr/) where Tarsos will be presented also.


- [2011-02-28\_tarsos\_at\_izmir.pdf](https://0110.be/files/attachments/385/2011-02-28_tarsos_at_izmir.pdf)

- [2011-02-28-tarsos\_at\_izmir.odp](https://0110.be/files/attachments/385/2011-02-28-tarsos_at_izmir.odp)

- [programme\_lectures\_on\_comp\_ethno\_izmir.pdf](https://0110.be/files/attachments/385/programme_lectures_on_comp_ethno_izmir.pdf)

---

## [TarsosTranscoder](https://0110.be/posts/TarsosTranscoder.md)

- Published: 2011-02-09T13:17:34Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 382
- Canonical: https://0110.be/posts/TarsosTranscoder

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

Tarsos Transcoder is a library to transcode audio with JAVA.

Downloads and more info on http://tarsos.0110.be/tag/TarsosTranscoder

It uses (platform dependent) [FFmpeg](http://ffmpeg.org/) binaries in the background. It is a fork of JAVE (Java Audio and Video Encoder) by Carlo Pelliccia (www.sauronsoftware.it).

Tarsos Transcoder focuses only on audio and it is compatible with more, and more recent FFmpeg binaries and it less dependent on text output of the different binaries. The interface is also simplified. It falls back to use the ffmpeg binary in the system path, if one is present, therefore it supports platforms for which no binary is provided within the release.

## Getting Started

If you have [Apache Ant](http://ant.apache.org/) and [git](http://git-scm.com/) installed on your system the following commands get you started quickly:

    <code>git clone https://JorenSix@github.com/JorenSix/TarsosTranscoder.git
    cd TarsosTranscoder/build
    ant #Compiles and builds the core TarsosTranscoder library
    ant javadoc #Creates the javadoc documentation in TarsosTranscoder/doc
    java -jar tarsos_transcoder-1.0.jar ../audio/input/tone/tone_10s.wav test.flac FLAC_MONO_44KHZ #Test wav to flac transcoding
    </code>

If you want to use the transcoder from within Java you need to call Transcoder. It is as simple as:

<code>Transcoder.transcode("foo.mp3","foo.wav",DefaultAttributes.WAV_PCM_S16LE_STEREO_44KHZ);</code>

FFmpeg can encode to a lot of audio formats and can decode even more.

## Inner workings

Tarsos Transcoder tries to find an FFmpeg binary in the path of the system. If it does not find one it tries to copy a binary for the current platform. Tarsos Transcoder contains three binaries: one for MAC OS X, one for Linux (x86) and one for windows. Tarsos Transcoder has been tested on:

-   MAC OS X 10.6

-   Windows 7

-   Ubuntu linux 10.10 ARM

-   Ubuntu Linux 10.04 x86_64

It will probably work most of the time.

## Alternative Binaries

If the TarsosTranscoder does not include binaries for you platform, install ffmpeg and add the ffmpeg executable to your system path. It will be found and used by TarsosTranscoder automatically.

Alternatively, providing binaries for your (unsupported) platform can be done by implementing FFMPEGLocator. The PickMe method should yield true on your platform and copy e.g. an FFmpeg binary to a temporary directory.

## Lisence

This software is licensed under GPL, TarsosTranscoder is based on JAVE (GPL).

## Credits

JAVE (Java Audio and Video Encoder) by Carlo Pelliccia - www.sauronsoftware.it

[FFmpeg](http://www.ffmpeg.org): this uses libraries from the FFmpeg project under the LGPLv2.1

This product includes software developed by [The Apache Software Foundation](http://www.apache.org/). It uses the Apache Commons Exec library, licensed under [the Apache License Version 2.0](http://commons.apache.org/exec/license.html)

TarsosTranscoder is used by [Tarsos](http://tarsos.0110.be), Tarsos is developed at University College Ghent, Faculty of Music


---

## [ARIP: Artistic Research In Progress](https://0110.be/posts/ARIP%3A_Artistic_Research_In_Progress.md)

- Published: 2011-02-01T10:35:52Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 386
- Canonical: https://0110.be/posts/ARIP%3A_Artistic_Research_In_Progress

- Tags: [ARIP](https://0110.be/tags/ARIP.md), [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), [Research papers](https://0110.be/tags/Research%20papers.md), [Tarsos](https://0110.be/tags/Tarsos.md)

Voor ARIP (Artistic Research In Progress) heb ik een "artikel over Tarsos":\[arip.pdf\] geschreven. Het motiveert kort de bestaansredenen van Tarsos - een applicatie om toonhoogtegebruik in muziek te analyseren - en het artikel geeft een overzicht van de werking van Tarsos aan de hand van een voorbeeld. Hieronder zijn multimediale aanvullingen te vinden bij het artikel.

Ladrang Kandamanyura (slendro pathet manyura), zo heet het muziekfragment dat gebruikt werd in het artikel als voorbeeld van een stuk muziek met een ongewone (voor onze westerse oren toch) toonladder. De CD waarop het stuk te vinden is, is bij [wergo](http://www.wergo.de/shop/en_UK/Audio_CDs/1000088/show,223736,n.html) te verkrijgen. Een fragment van 30 seconden is hier te beluisteren:

<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F9912709%3Fsecret_token%3Ds-pZJk8&secret_url=true"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F9912709%3Fsecret_token%3Ds-pZJk8&secret_url=true" type="application/x-shockwave-flash" width="100%"></embed> </object>

Het fragment kan je ook "downloaden":\[08.\_Ladrang_Kandamanyura_10s-20s.wav\] om zelf te analyseren met Tarsos.

Ladrang Kandamanyura (slendro pathet manyura) <br>\
Courtesy of: WERGO/Schott Music & Media, Mainz, Germany, [www.wergo.de](http://wergo.de) and Museum Collection Berlin <br>\
Lestari - The Hood Collection, Early Field Recordings from Java ([SM 1712 2](http://www.wergo.de/shop/en_UK/Audio_CDs/1000088/show,223736,n.html)) <br>\
Recorded in 1957 and 1958 in Java - First release

### Tarsos Live

Het onderstaande videofragment geeft aan hoe Tarsos gebruikt kan worden om in real time stemmingen te meten. Geluid afkomstig van een microfoon wordt dan meteen geanalyseerd en onmiddellijke feedback toont een gespeeld of gezongen interval. Het maakt kwarttonen of andere (ongewone) intervallen visueel duidelijk. Tarsos kan zo gebruikt worden door zangers of strijkers die willen experimenteren met microtonaliteit. Ook kan het handig zijn voor etnomusicologisch veldwerk: bijvoorbeeld om kora (een Afrikaanse harp) toonladders te documenteren.

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


![Spectrogram](https://0110.be/files/photos/386/01_spectrogram.png)

![Annotaties](https://0110.be/files/photos/386/02_piano_roll.png)

![Ambitus](https://0110.be/files/photos/386/03_ambitus.png)

![Toonladder](https://0110.be/files/photos/386/04_tone_scale.png)

- [arip.doc](https://0110.be/files/attachments/386/arip.doc)

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

- [arip.pdf](https://0110.be/files/attachments/386/arip.pdf)

---

## [Tarsos Live - Real Time Tone Scale Analysis](https://0110.be/posts/Tarsos_Live_-_Real_Time_Tone_Scale_Analysis.md)

- Published: 2011-01-25T14:04:16Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 381
- Canonical: https://0110.be/posts/Tarsos_Live_-_Real_Time_Tone_Scale_Analysis

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

<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>A new version of Tarsos was uploaded today and it contains an exciting (at least my kind of exciting) new feature. It is capable of real-time pitch analysis and tone scale construction. A video should make its use clear:

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

The immediate feedback is practical for educational purposes: it makes rather vague things like quarter tones or (uncommon) pitch intervals in general quite tangible. It could be used by singers or string players to explore microtonality or to improve their technique. Another use case is ethnomusicologic field-work: if you would want to research Kora tuning (an African harp) Tarsos could be a practical tool for real-time analysis.

Thanks to [Olmo Cornelis](http://cons.hogent.be/nl/onderzoek/onderzoeksprojecten/olmo-cornelis) and [Wannes Gonnissen](http://cons.hogent.be/nl/onderzoek/onderzoeksprojecten/wannes-gonnissen) for playing the thumb piano and Saz respectively.


---

## [Tarsos in het jaarboek Orpheus instituut](https://0110.be/posts/Tarsos_in_het_jaarboek_Orpheus_instituut.md)

- Published: 2011-01-14T14:54:35Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 380
- Canonical: https://0110.be/posts/Tarsos_in_het_jaarboek_Orpheus_instituut

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

Naar jaarlijkse gewoonte wordt er in het [Orpheus instituut](http://www.orpheusinstituut.be/nl/home) de [Dag van het Artistiek onderzoek](http://www.orpheusinstituut.be/nl/seminaries/studiedagen-2010-2011#DAO) georganiseerd. Hieronder volgt een tekstje over het onderzoeksproject rond Tarsos dat in het jaarboek komt. Het jaarboek is een boekje met daarin een overzicht van artistieke onderzoeksprojecten aan Vlaamse instituten. Het wordt gepubliceerd naar aanleiding van de eerder aangehaalde "Dag van het Artistiek Onderzoek".

<div style="padding-left:2em;">
<img src="http://tarsos.0110.be/attachment/cons/210/tarsos_logo_small.png"  alt="Tarsos Logo" style="float:right;margin-left:5px;"/>Het doel van dit onderzoeksproject is het ontwikkelen van een methode om een cultuuronafhankelijke kijk op muzikale parameters te verkrijgen. Meer concreet worden er technieken aangewend uit Music Information Retrieval om toonhoogte, tempo en timbre te bestuderen. Aanpassing van bestaande, meestal westers georiënteerde, MIR-methodes moet leiden tot een gestructureerde documentatie van verschillende klankkleuren, toonschalen, metrische verhoudingen en muzikale vormen. Die beschrijving kan dienen als inspiratie voor de ontwikkeling van een artistieke compsitionele taal of kan gebruikt worden als bronmateriaal voor wetenschappelijk onderzoek rond ethnische muziek. Bijvoorbeeld om (de eventuele\
teloorgang van) de eigenheid van orale muziekculturen objectief aan te tonen.

<img style="float:left;margin-right:5px;" src="https://0110.be/attachment/cons/167/dataset_small.jpg" alt="dataset" class="bordered" height="96" width="104">In de eerste fase van het onderzoek ligt de focus van het onderzoek op één van de meer tastbare parameters: toonhoogte. In etnische muziek is het gebruik van toonhoogte vaak radicaal anders dan westerse muziek die meestal gebaseerd is op de onderverdeling van een octaaf in twaalf gelijke delen. Om toonladders uit\
muziek te extraheren en weer te geven werd het software platform Tarsos ontwikkeld. Met Tarsos is het mogelijk om automatische toonladderanlyse uit te voeren op een grote dataset of om manueel een gedetailleerde analyse te verkrijgen van enkele muziekstukken. De cultuuronafhankelijke analysemethode waarvan Tarsos gebruik maakt kan even goed toegepast worden op Indonesische, Westerse of Afrikaanse muziek.

Onze bedoeling is om Tarsos te gebruiken om evoluties in toonladdergebruik te ontdekken in de enorme dataset van het Koninklijk Museum voor Midden-Afrika. Is toonladderdiversiteit in Afrika aan het wegkwijnen onder invloed van Westerse muziek? Zijn er specifieke kenmerken te vinden over eventueel 'uitgestorven' muziekculturen? Dit zijn vragen die kaderen in het overkoepelende onderzoeksproject van Olmo Cornelis en waar we met behulp van Tarsos een antwoord op proberen te vinden.

Later krijgen de twee overige muzikale parameters, tempo en timbre, een gelijkaardige behandeling. In de laatste fase van dit toch wel ambitieuze onderzoekproject wordt de relatie tussen de parameters onderzocht.

</div>


- [tarsos\_orpheus\_jaarboek.pdf](https://0110.be/files/attachments/380/tarsos_orpheus_jaarboek.pdf)

- [tarsos\_orpheus\_jaarboek.txt](https://0110.be/files/attachments/380/tarsos_orpheus_jaarboek.txt)

---

## [Find the MAC Address of your Android Device](https://0110.be/posts/Find_the_MAC_Address_of_your_Android_Device.md)

- Published: 2011-01-13T00:00:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 316
- Canonical: https://0110.be/posts/Find_the_MAC_Address_of_your_Android_Device

- Tags: [0110.be](https://0110.be/tags/0110.be.md), [Hackerspace Ghent](https://0110.be/tags/Hackerspace%20Ghent.md)

Just a quick hint. If you ever need to find the MAC address of your Android device, and who doesn't, check this file:

\`\`\`ruby\
/sys/devices/virtual/net/wlan0\
\`\`\`

You can read the file with the Astro File Manager.


---

## [Remote Port Forwarding with Ubuntu 8.04 and OpenSSH 4.7](https://0110.be/posts/Remote_Port_Forwarding_with_Ubuntu_8.04_and_OpenSSH_4.7.md)

- Published: 2011-01-10T00:00:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 315
- Canonical: https://0110.be/posts/Remote_Port_Forwarding_with_Ubuntu_8.04_and_OpenSSH_4.7

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

<img src="https://0110.be/files/attachments/315/openssh.png" alt="OpenSSH Logo" style="float:right"/>

With this post I would like to draw attention to the fact that remote port forwarding with OpenSSH 4.7 on Ubuntu 8.04.1 does not work as expected.

If you follow the instructions of a [SSH remote port forwarding tutorial](http://www.debianadmin.com/howto-use-ssh-local-and-remote-port-forwarding.html) everything goes well until you want to allow everyone to access the forwarded port (not just localhost). The problem arises when binding the forwarded port to an interface. Even with `GatewayPorts yes` present in `/etc/ssh/sshd_config` the following command shows that it went wrong:

\`\`\`ruby\
user@local\$ssh -R 2222:localhost:22 user@remote\
user@remote\$sudo netstat -lntp #on the remote server\
Active Internet connections (only servers)\
Proto Recv-Q Send-Q Local Address Foreign Address State\
tcp6 0 0 ::1:2222 :::\* LISTEN\
\`\`\`

It listens only via IPv6 and only on localhost an not on every interface (as per request by defining `GatewayPorts yes`). The `netstat` command should yield this output:

\`\`\`ruby\
user@local\$ssh -R 2222:localhost:22 user@remote\
user@remote\$sudo netstat -lntp #on the remote server\
Active Internet connections (only servers)\
Proto Recv-Q Send-Q Local Address Foreign Address State\
tcp 0 0 0.0.0.0:2222 0.0.0.0:\* LISTEN\
\`\`\`

I do not really know here it goes wrong but there is an easy workaround. By defining both

\`\`\`ruby\
GatewayPorts yes\
AddressFamily inet\
\`\`\`

in `/etc/ssh/sshd_config` remote port forwarding works fine but you lose IPv6 connectivity (this due to the `AddressFamily` setting). Another solution is to use more up to date software: the bug is not present in Ubuntu 10.04 with OpenSSH 5.3 (I don't know if it is an Ubuntu or OpenSSH bug, or even a configuration issue.

I have been struggling with this issue for a couple of hours and, with this blog post, I hope I can prevent someone else from doing the same.


---

## [Oneliner to Install ssh-copy-id on Mac OS X](https://0110.be/posts/Oneliner_to_Install_ssh-copy-id_on_Mac_OS_X.md)

- Published: 2010-12-25T00:00:00Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 314
- Canonical: https://0110.be/posts/Oneliner_to_Install_ssh-copy-id_on_Mac_OS_X

- Tags: [0110.be](https://0110.be/tags/0110.be.md), [Code](https://0110.be/tags/Code.md), [Mac OS X](https://0110.be/tags/Mac%20OS%20X.md)

`ssh-copy-id` is a practical bash script, installed by default on Ubuntu. The script is used to distribute public keys. The following oneliner makes it available on Mac OS X:

\`\`\`ruby\
sudo bash \< \<( curl ---silent http://0110.be\[install-ssh-copy-id.bash\] )\
\`\`\`\
This oneliner does three things:

1.  It copies `ssh-copy-id` from this website to `/bin/ssh-copy-id`.

2.  It makes sure that `ssh-copy-id` is executable, using `chmod`.

3.  There is no three

The install procedure needs superuser rights because it writes in the `/bin` folder. Executing scripts from untrusted sources with superuser rights is actually really, really, extremely dangerous. But in this case it is rather innocent.

The `ssh-copy-id` script is the one provided with Ubuntu and Debian, I assume it is GPL'ed. I have not modified it for Mac OS X but it seems to behave as expected. I have only tested the install script and behavior on 10.6.5, YMMV (Your Mileage May Vary).


- [ssh-copy-id.txt](https://0110.be/files/attachments/314/ssh-copy-id.txt)

- [install-ssh-copy-id.bash](https://0110.be/files/attachments/314/install-ssh-copy-id.bash)

- [install-ssh-copy-id.bash](https://0110.be/files/attachments/314/install-ssh-copy-id.bash)

---

## [ Digital Music Research Network Workshop - Queen Mary University London](https://0110.be/posts/_Digital_Music_Research_Network_Workshop_-_Queen_Mary_University_London.md)

- Published: 2010-12-22T14:00:56Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 366
- Canonical: https://0110.be/posts/_Digital_Music_Research_Network_Workshop_-_Queen_Mary_University_London

- 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), [Research papers](https://0110.be/tags/Research%20papers.md), [featured](https://0110.be/tags/featured.md)

<img src="https://0110.be/files/attachments/366/queenmary.jpg"  alt="Queen Mary University Logo" style="float:right;margin-left:5px;"/>

Monday the 20th and Tuesday the 21th of December I attended two workshops at The Queen Mary University of London: [The Machine Listening Workshop](http://www.eecs.qmul.ac.uk/events/mlw/mlw2010/) and [Digital Music Research Network One-day Workshop 2010](http://www.elec.qmul.ac.uk/dmrn/events/dmrnp5/)

At the workshop I had an interesting meeting with Dan Tidhar. He researches harpsichord temperament estimation at QMUL (Queen Mary University of London). Together they created the [Tempest web service](http://www.isophonics.net/sawa/tempest/) where you can upload harpsichord audio and let the system guess the temperament. The process is described in the paper "High precision frequency estimation for harpsichord tuning classification". Although Tarsos was not officially part of the programme I hijacked the poster sessions to show a live demo of Tarsos with Dan's dataset.

Another interesting talk was about [2032](http://www.dynamictonality.com/2032), a tunable synthesizer with definable Harmonics. It elaborates on the ideas of Sethares about tone scales .


---

## [Latex  & Version Control Introduction](https://0110.be/posts/Latex__%26_Version_Control_Introduction.md)

- Published: 2010-11-30T08:56:17Z
- Updated: 2013-12-05T18:19:15Z
- Author: Joren
- ID: 365
- Canonical: https://0110.be/posts/Latex__%26_Version_Control_Introduction

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

<img src="https://0110.be/files/attachments/365/latex_icon.png"  alt="Latex Logo" style="float:right;margin-left:5px;"/>

Monday, I'll give a small presentation about Latex and Version Control for the research team at the [University College Gent, Faculty of Music](http://cons.hogent.be). The idea is to give a pragmatic overview of working with Latex and version control. The "presentation about Latex & Version control (in Dutch)":\[latex_svn_presentatie.pdf\] can be downloaded. The presentation itself is created using Latex and "the source of the presentation":\[latex_svn_presentatie.zip\] is also available. A good description of Latex can be found [here](http://swik.net/LaTeX):

> LaTeX (pronounced "latech") is a document preparation system for high-quality typesetting based on, and succeeding TeX formatting. It is a very popular format in academia, as it allows advanced document formatting capabilities not found in other common document formatting systems. Some of these capabilities include table figure notations, bibliography formatting (see BibTeX), and an advanced macro language.

Some useful references:

-   [Practical Latex introduction course (in Dutch)](http://zeus.ugent.be/~gaspard/latex/)

-   [UGent Latex website](http://latex.ugent.be)

-   [WikiBook about Latex](http://en.wikibooks.org/wiki/Latex)

-   [Eclipse](http://eclipse.org): an IDE (Integrated Development Environment) which can be used as Latex editor with version control by installing the [TeXclipse](http://texlipse.sourceforge.net/) and [Subclipse](http://subclipse.tigris.org/) plugins.


- [latex\_svn\_presentatie.zip](https://0110.be/files/attachments/365/latex_svn_presentatie.zip)

- [latex\_icon.png](https://0110.be/files/attachments/365/latex_icon.png)

- [latex\_svn\_presentatie.pdf](https://0110.be/files/attachments/365/latex_svn_presentatie.pdf)

---

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

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