Chromatic tuner for SailfishOS with multi-temperament support
Go to file
medvedych 214bd38bc7 aurora_os_build
Reviewed-on: #1
2023-05-23 15:59:24 +00:00
data Temperaments: sort and arrange letters cases 2016-01-15 09:30:53 +01:00
icons App icon refresh 2021-06-24 20:23:54 +02:00
images Readme file updated with screenshot 2016-01-19 16:05:33 +01:00
qml allow build for auroraos 2023-05-23 18:58:15 +03:00
rpm allow build for auroraos 2023-05-23 18:58:15 +03:00
src Player: volume depend of frequency 2016-01-14 22:03:36 +01:00
.gitignore First commit for SailTuner 2015-12-26 20:46:02 +01:00
LICENSE Licence to GPLv3 and Readme file 2016-01-03 17:32:36 +01:00
README.md Readme word fix 2016-01-19 16:15:14 +01:00
Tuner.pro Images reorganisation 2016-01-15 21:30:17 +01:00
harbour-sailtuner.desktop allow build for auroraos 2023-05-23 18:58:15 +03:00
harbour-sailtuner.pro allow build for auroraos 2023-05-23 18:58:15 +03:00

README.md

SailTuner

SailTuner is a chromatic multi-temperament instrument tuner for Sailfish OS.

It gets audio data from microphone, find the fundamental frequency, and then display the note, the octave and the deviation according to note reference and temperament.

It can also play a note, choosed with a scale flickable by user.

Pitch detection algorithm

The algorithm for fundamental frequency detection:

  • high-pass filter (10Hz)
  • zero-crossing detection with linear interpolation
  • pattern recognition from regions, with time based standard deviation
  • octave filtering: drop a frequency if already a higher octave for same note in some conditions
  • post filter: wait few analyses to confirm or defect a note, and make a turning average for note deviation

The audio input rate is 16KHz ; audio frames are analysed every 2048 samples (128ms) and a note is confirmed after 3 chunks (384ms).

The note is found compared to an array of frequencies modulo one octave. The comparison array is built from a temperament and a 'A4' reference, default to 440Hz and equal temperament.

Temperaments

The temperaments are stored in .csv files. At beginning, the programm scans every .csv file in the data/ dir and makes temperament list.

Every line in a file is a temperament: the first column is the temperament name, and columns 2 to 13 are the notes frequencies from C-4 to B-4

Note player

A frequency player module makes the signal at given frequency. There are 3 waveforms in the code:

  • Sinus
  • Triangle (ie pair harmonics)
  • Sinus + harmonics (1/n x f(n))

Since the speaker of Jolla phone have very low intensity for low frequencies, the third solution is used, and the intensity is higher for lower notes.

======

Licence: GPLv3
Author: Louis-Joseph Fournier
*First release date: 2016-01-19

https://github.com/LouJo/SailTuner