Audio Experiments

The Audio Experiments application was created to detect musical notes from a microphone that the user can whistle into

In v1.2 of the application, I developed a pitch-shifter that enables real-time alteration of the voice pitch. Users can make the pitch higher or lower using a slider control

Description

You can detect the prevailing note by whistling into the microphone and optionally output it via MIDI

In v1.2, you can modify the pitch of the voice in real time with a pitch shifter.

The application utilizes platform libraries with the following features:

  • Multi-language
  • Configurable multi-resolution zoom
  • Dark mode option
  • New version notification

Code description

The detection of the predominant pitch utilizes the Fast Fourier Transform (FFT), which I obtained from a university that shared their algorithm implementation.

The pitch alteration is achieved through an STFT transform, where voice frequencies between 400Hz and 4000Hz are shifted right to increase pitch or left to decrease it.

This type of pitch-shifter is easy to implement, but it is unreliable because the filter does not take the phase into account

Windows

Instrumental Music v1.0 (2017)

Download

Instrumental Music v1.1 (2021)

Download

Instrumental Music v1.2 (2021-2024)

Watch vídeo
Download

Versions

image

Instrumental music is a small application programmed in Java that allows you to listen to music from a microphone.

It also lets you process the captured input and determine the predominant note in real-time.

Test the application by whistling notes and then setting it to play the detected note in MIDI.

This application makes for simple entertainment.

image

The version of the platform libraries has been updated in this release:

  • You can change the application's zoom level.
  • A new version query to get the statistics on how many people use the application.
  • Dark mode option

You can now also set the amplitude threshold for detecting a note.

image

This application version results from the extra free time I had due to the ban on entering bars and restaurants in Catalonia without a COVID certificate during Christmas in 2021.

The most notable new feature is changing the voice pitch from lower to higher using a slider.

  • New classes that facilitate the creation of producers and consumers.
  • New classes enable audio bites to be consumed and processed in the frequency domain by applying an STFT.
  • Several improvements in the class structure and user interface.
  • Compatibility with jdk-17
Demo video

Vídeos

Downloads