Sonogram

[ NextMusic Home Page | Sound and Music Programs Page | Program List ]

Author:         Hiroshi Momose (hmomose@ucdavis.edu)
Platforms:      ?
Prerequisites:  ?
Price:          free
Demo:           N/A
To acquire:     ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Science/signal_proc/Sonogram.0.90.N.bsd.tar.gz
Information:    ?
Entry updated:  24 April 1997
Description:    An acoustic signal analyzer/editor.

This application is pretty old. I'm not sure what versions of NextStep it will run on, but the binary was probably compiled on NS2.2 - Eric


This program allows you to analyze time-frequency characteristics of non-stationary signals. It displays "sonogram" 1 two dimensional density plot of sound energy distribution. X-axis shows time running from left to right, and Y-axis shows frequency (upper in the graph, higher the sound ). It allows you to "see" how a signal sounds like.

Sonogram allows you to analyze time-varying audio signals such as a birdsong visually. It uses either FFT ( Fast Fourier Transform ) or Wigner-Ville transform to calculate instantaneous power spectrum and displays the results as a sonogram - a two- dimentional ( time and frequency ) density plot of sound energy. Also, you can do time and frequency measurements by clicking and dragging the mouse inside the sonogram window, and display the power spectrum curve at the cursor point in real time. This program is, in part, based on EdSnd1.4 by James Pritchett and Steven Boker and inherits some signal editing capabilities of EdSnd.

The application [was originally] available via anonymous ftp from nova.cc.purdue.edu:(pub.next/2.0-release/binaries/Sonogram0.90.tar.Z )


Sonogram 1 An Acoustic Signal Analyzer / Editor

Version 0.90(Beta)

by

Hiroshi Momose Department of Zoology, University of California Davis, CA 95616, USA momose@ucdavis.edu

Introduction

This program allows you to analyze time-frequency characteristics of non-stationary signals. It displays "sonogram" 1 two dimensional density plot of sound energy distribution. X-axis shows time running from left to right, and Y-axis shows frequency (upper in the graph, higher the sound ). It allows you to "see" how a signal sounds like.

Analysis method

The program uses one of the several time window functions to cut out a small portion of signal samples, and perform spectrum analysis on them. You can use either FFT or auto-Wigner-transform to calculate frequency spectrum, which is a vector containing the sound pressure level at each discrete frequency. The program then draws this spectrum as a column of pixels with different darkness levels. A darker pixel means a higher energy at that particular time and frequency point.

How to display a Sonogram

To display a sonogram, double click on the program icon, open a sound file using Window / Open menu. A window showing the waveform envelope of the signal appears at the bottom of the screen. Select a part of the signal you want to analyze by clicking on the start point and dragging to the end point, or, if you want to select the entire signal, click Edit / Select all menu. Then click New Sonogram in the main menu. A window named "Control Panel" appears at the top of the screen, and then another window called "Sonogram" appears. It immediately starts to display the sonogram of the selected portion. If you want to interrupt this process, just click a mouse once inside the sonogram window. To re-display it, click on the button called Display in the sonogram window. Each time you select New Sonogram menu, a new sonogram window appears. You can also open more than one sound file at the same time. If you want to close any window, click inside that window and choose Window / Close menu, or just click the close button in the upper right corner of each window. You can't close the control panel, you can just hide it.

Measuring the time and frequency of the signal

You can click inside the sonogram view to measure and time and frequency at the cursor point. They are displayed in text cells below the view, labeled From: Sec and Hz. If you drag the cursor, the values at the cursor point are shown in To: Sec and Hz cells, and the time and frequency interval between that point and the initial point are displayed in D: Sec and Hz. Also, as you click or drag the cursor inside a sonogram view, the power spectrum at the cursor point is calculated and displayed real time in the Control Panel. You can then click inside this power spectrum to measure the exact frequency and sound pressure level ( in dB ± decibel ).

Changing the appearance of sonogram display

You can control many aspects of sonogram display using the control panel. I will explain them item by item.

Analysis Options

Left part of the control panel is where you control the sound analysis features.

Display Options

Right part of the control panel is where you control the display features.

Other Controls

A radio-button named Scaling let you select the scaling of the power spectrum display in the Control Panel. Default is Linear scaling. You can also select Log scaling. A button named Revert initializes all the settings in the control panel to their default values.

Editing a sound

You can edit the sound by usual cut and paste method. Also, you can fill the selection with 0 volt with Edit / Erase menu, and also add silence at the end of the file using Edit / Add Silence, which will ask you the duration of the silence you want to add. If you want to restore the sound to its original form, use the Window / Revert To Saved menu.

Credit

This programis based on EdSnd 1.4 by James Pritchett and Steven M. Boker, which, in turn, is based on SoundEditor by Lee Boynton. FFT routine ( for CPU ) was originally coded by Kevin Peterson of MIT Media Lab. Wigner transform algorithm used here was originally coded by Yuji Nishimori ( Nishimori, 1988 ). All the routines were heavily modified by me, so the original authors are not necessarily responsible for any bugs that may be found in these routines.

Reference

Nishimori, Y. 1988 Wigner distribution and its application ( in Japanese ). A thesis presented to the Department of Electrical Engineering, Faculty of Engineering, Doshisha University, Kyoto, Japan.

Boashash, B. 1991 Time-frequency signal analysis. In: Advances in Spectrum Analysis and Array Processing Vol.1 pp. 418-517. Ed. by Simon Haykin, Prentice Hall, New Jersey ( ISBN 0-13-007444-6 ).

Markerl, J.D. & Gray, A.H., Jr. 1976 Linear Prediction of Speech. Springer-Verlag, Berlin & Heidelberg.


Eric M. Mrozek (mrozek@umich.edu), EECS-Systems, University of Michigan