< Back to IRCAM Forum

Exporting Spectral Envelope Info


I’m wondering whether someone could advise on the best method to export a list of peak frequencies as frequency and amplitude pairs for a given marker of a sound file after a simple FFT analysis.

I want to export the spectrum of a sound (e.g. gong) so I can see and process the pitch data in either OpenMusic and/or bach in Max.

I see the info on the user guide about exporting SDIF files but I’m not certain whether I can specify frequency and amplitude to export, and then I’m also not certain how to use SDIF with other applications. But, I think many other composers already do this as a compositional workflow (e.g. Murail), so I’m hoping someone can point out what’s best practice.

Many thanks

Hi, I came along this question shortly too:
there is a free software SPEAR which does spectral analysis and provides export of textfiles or sdif-files, which can be read in to OM…


Hello Nicholas

In AS you have peak analysis and partial analysis. Both create the analysis in SDIF format and should therefore be accessible in OM.

For peak analysis you can find the explanation here


This one creates 1PIC sdif frames as described in the html doc. Here the only control over the result is the amplitude level and the maximum number of peaks per time position

For partial analysis (which is what spear does) here


With respect to partial analysis you have two variants - harmonic (you need to provide an F0 estimate for this case, and the peaks retained are only the harmonics) and inharmonic analysis (no need for F0 for this case, but yo get more peaks (that you can control according to amplitude and frequency position).

The first one creates 1HRM sdif frames with pics organized according to partial index. The second creates the 1TRC frames that you find in the above example from SPEAR. You see that pic frequencies are not ordered. This analysis is quite similar to peak analysis but subsequent peaks are connected to sinusoidal tracks and you can control which of the tracks you would like to retain during the analysis. For partial analysis AS shows the result on the spectrogram so you get a pretty good idea of the result. For peak analysis we don’t have any visual feedback.