Author Topic: Tartini is a cross platform real-time music analysis tool  (Read 3673 times)

0 Members and 1 Guest are viewing this topic.

Software Santa

  • Administrator
  • *****
  • Posts: 4446
Tartini is a cross platform real-time music analysis tool
« on: October 06, 2010, 08:55:24 PM »
Tartini is a cross platform real-time music analysis tool

About Tartini

Tartini is a program designed as a practical music analysis tool for singers and instrumentalists.
Just plug in a microphone and instantly your computer will give real-time feedback including:-

    * Accurate pitch contours for visualising intonation, vibrato shape, tuning or just which note is being played
    * Loudness graphs, to help analyse dynamics
    * Harmonic structure of a note describing timbre

The program is named after the violinist and composer Giuseppe Tartini. In 1714, he discovered that if two related notes were played simultaneously on a violin, a third sound could be heard. The frequency of the third sound is the difference in frequencies of the two original notes. Tartini taught his students that unless they could hear the third sound, they were playing out of tune. Thus we see him as an early example of someone trying to apply scientific principles to understanding and improving musical technique.

Documentation - Tartini for musicians - a quick tutorial

Recording sound

   1. Make sure your input device is plugged in, e.g. Microphone.
   2. Start Tartini.
   3. From the menu, choose preferences. In the Quick Analysis Options, select the desired note range for your instument from the drop down menu.
      In most cases the default option of 'Notes F1 and higher' is sufficient. Then click 'OK'.
   4. Click Record (the red dot on the main menu bar)
   5. You should now see a pitch contour moving across the screen.
   6. The record button will turn to a stop button. Press this to finish recording.
   7. Now use the time slider to move back through and analyse your sound.

Things to try

    * Try varying the loudness (tremolo) of your notes and see how they change in the bottom window of the 'Pitch Contour' view.
      Try making a long crescendo, building the dynamics up linearly over time.
    * Try varying the pitch (vibrato) of your notes and see how they change in the top part of the 'Pitch Contour' view.
      Try keeping the depth and speed of vibrato consistant.

University of Otago    
the real-time music analysis tool
    Graphics & Vision Lab
Other work
Change log
Department of Computer Science Department of
Computer Science
    Documentation - Creating other views

Clicking on the 'Create' menu will give you a list of new views you can create.
We will give a description of the views that aren't opened at startup here.
Create menu

A - 3D Harmonic Track
Harmonic track

This view shows a 3D piano keyboard. The key of the active channel is depressed and painted yellow.
The blue and green 'tracks' coming out from the back of the keyboard represent the harmonics within the notes of the active channel.
Each note on an instrument is made up of many harmonic frequencies (they are all a multiple of some base frequency). This view is showing the strength of each of these harmonics, and how these frequencies fit on the musical scale.
As time progresses the tracks move away from the keyboard.
The vertical slider adjusts the noise floor, increasing/decreasing the height of all the tracks.
The 3 wheels adjust the camera angle and zoom level.
Click and drag the background to translate (move) the view around.

B - 2D Piano Keyboard
2D Piano Keyboard

This is a simple view that shows the note of the active channel in red.
Note: The octave is not shown.

C - Harmonic Block
Harmonic Block

This is still a work in progress.
Each horizontal bar represents a single harmonic, the bottom harmonic being the fundamental frequency.
A louder harmonic produces a wider bar.
If a harmonic is slightly above or below the exact multiple of the fundamental frequency then it is moved left or right respectively.

D - Pitch Compass
Pitch Compass

Here we were playing with the cyclical nature of an octave.
So we implemented a compass dial which shows the note of the active channel.
As you keep going up in the scale the dial keeps going around.

E - Summary View
Summary View

This gives you a pitch overview of all the currently open channel.
The box represents what is displayed in the 'Pitch Contour' view.
The vertical black line represents the current time position.
You can click and drag to change the current time and view.
Warning: This view is a little out dated and buggy.

F - Volume Meter
Volume Meter

This is the same as the volume meter in the 'Main Tool-bar'.
It shows the volume in dB of the soundfile that contains the active channel.

G - FFT View (Technical)
FFT View

This shows a Fast Fourier Transform (FFT) of the current window of data from the active channel.
It is zero padded by 50% and has a no (rectangular) windowing function; as used in the Mcleod Pitch Method (MPM).
If 'Background Shading' is toggled on, then alternating colours represent the fundamental frequency.

H - Cepstrum View (Technical)
Cepstrum View

This shows a cepstrum, i.e. the FFT of the log of the FFT of the data window.
This is just here for experimental purposes.
Note: No windowing function has been applied.


Tartini (version 1.2) is released under the GPL licence.

For Mac or Windows users, just save the file to disk. Unzip the file. Then run it.

MacOSX    tartini1.2.tar.gz (4.6 MB)
Windows (5.4 MB)
Linux (source code)    tartini1.2.tar.gz (0.8 MB)

An input device, such as a microphone, is required for real-time use.
Here is an example.wav to test the program (0.9MB).

Note: The same source code compiles on Linux, Windows and MacOSX.
If you want to compile Tartini yourself you will need to have the following libraries:

Qt4.x - Download it from the Qt open source download page.
Qwt - Quick download
FFTW - Quick download fftw-3.1.2.tar.gz

Note: older versions of Tartini can be found


This Site was Opened on January 1st, 2007

Welcome Visitor:

Spam Harvester Protection Network
provided by Unspam