Efficient Spectral Envelope Estimation and Its Application to Pitch Shifting and Envelope Preservation

Efficient Spectral Envelope Estimation and Its Application to Pitch Shifting and Envelope Preservation

Efficient Spectral Envelope Estimation and its application to pitch shifting and envelope preservation Axel Roebel, Xavier Rodet To cite this version: Axel Roebel, Xavier Rodet. Efficient Spectral Envelope Estimation and its application to pitch shifting and envelope preservation. International Conference on Digital Audio Effects, Sep 2005, Madrid, Spain. pp.30-35. hal-01161334 HAL Id: hal-01161334 https://hal.archives-ouvertes.fr/hal-01161334 Submitted on 8 Jun 2015 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Proc. of the 8th Int. Conference on Digital Audio Effects (DAFx’05), Madrid, Spain, September 20-22, 2005 EFFICIENT SPECTRAL ENVELOPE ESTIMATION AND ITS APPLICATION TO PITCH SHIFTING AND ENVELOPE PRESERVATION A. Robel¨ X. Rodet Analysis/Synthesis Group Analysis/Synthesis Group IRCAM, Paris, France IRCAM, Paris, France [email protected] [email protected] ABSTRACT changing pitch, formants may change their relative level and may In this article the estimation of the spectral envelope of sound sig- even appear or disappear completely. For speech signals it is well nals is addressed. The intended application for the developed al- known that the first formant moves with the fundamental frequency. gorithm is pitch shifting with preservation of the spectral envelope Given the rather small bandwidth that the lower formants usu- in the phase vocoder. As a first step the different existing envelope ally have, this makes sense from a energy-saving point of view. estimation algorithms are investigated and their specific properties The spectral deviations, however, depend on the instrument that is discussed. As the most promising algorithm the cepstrum based it- played and the playing style, and therefore, the optimal warping erative true envelope estimator is selected. By means of controlled function would require a model of the envelope evolution, a topic sub-sampling of the log amplitude spectrum and by means of a that is beyond the following investigation. simple step size control for the iterative algorithm the run time of The subject of the following investigation is first, the investiga- the algorithm can be decreased by a factor of 2.5-11. As a remedy tion into the properties of the different options that are available for for the ringing effects in the the spectral envelope that are due to the estimation of the spectral envelope. The comparison of the dif- the rectangular filter used for spectral smoothing we propose the ferent estimators, i.e. all-pole models and cepstral models, shows use of a Hamming window as smoothing filter. The resulting im- that the cepstral based true envelope estimator has especially fa- plementation of the algorithm has slightly increased computational vorable properties, besides the fact that its estimation is compu- complexity compared to the standard LPC algorithm but offers sig- tationally rather demanding. Despite of its favorable estimation nificantly improved control over the envelope characteristics. The properties the true envelope estimator has not received much at- application of the true envelope estimator in a pitch shifting appli- tention outside of Japan, because the original publication has been cation is investigated. The main problems for pitch shifting with in Japanese [6]. Therefore, the basic principle of the algorithm envelope preservation in a phase vocoder are identified and a sim- will first be explained, before an optimized implementation is pro- ple yet efficient remedy is proposed. posed, that reduces the required computation to a minimum. The new implementation features the advantageous properties of the discrete cepstrum [7] without its drawbacks [8], and, with reduced 1. INTRODUCTION computational complexity. The algorithm can be run in real time Pitch shifting is a signal transformation that is often used and many even in parallel with the signal transposition algorithm, i.e. the algorithms are available to achieve it. In the following article we phase vocoder. The advantage of the cepstral representation is the address signal transposition based on a frequency domain repre- fact that the optimal envelope model order can be derived from the sentation notably the phase vocoder [1, 2, 3]. There exist two ap- fundamental frequency of the sound signal, which makes it sim- proachers to achieve pitch-shifting in the phase vocoder [4], both ple to achieve semi automatic order adaptation. Considering the of which share the problem that they do not allow to change pitch application to signal transposition we investigate into the problem without affecting timbre. If naturalness of the modified signals that the envelope properties are ill conditioned for frequencies be- is desired the timbre modification poses a significant problem. A low the fundamental frequency. A revised pre-warping function is straightforward means to prevent timbre modification for mono- proposed that may achieve significantly improved perceived sound phonic signals consists of pre-warping the spectral envelope of quality and may be used to influence the position of the first for- each signal frame in the spectral domain before the transposition mant of the pitch shifted signal. Comparing the transposition re- is actually performed [1]. To be able to perform the pre-warping sults obtained with the true envelope and a standard LPC envelope a robust estimator of the spectral envelope is needed. To be able estimation we find that for high pitched signals the artifacts related to achieve real time transposition [5] the estimation should be ef- to the fact that the all-pole model may represent individual peaks ficient and result in reasonable estimates for signals containing si- are significantly reduced. nusoidal and noise signal components. The article is organized as follows. In section 2 we describe Note, however, that even the preservation of the spectral enve- the main tools that are available today for spectral envelope estima- lope is not necessarily assuring a naturally sounding transformed tion. We compare the different algorithms with respect to results signal. A simple comparison of spectra of instrument samples re- and performance. In section 3 we describe the steps that are neces- veals that the spectral envelope of sounds played with the same sary to reduce the computational complexity of the algorithm. In instrument changing only the pitch do in most cases not preserve 4 we describe the automatic selection of the appropriate cepstral the same spectral envelope. Using straightforward spectral com- smoothing order and in section 5 we evaluate the performance of parison it can be easily found that for the same instrument and the optimized algorithm and investigate into its application for en- DAFX-1 Proc. of the 8th Int. Conference on Digital Audio Effects (DAFx’05), Madrid, Spain, September 20-22, 2005 velope preservation. has been developed in [6] where it was introduced as a method that estimates the true envelope. The algorithm is iterative and a 2. ESTIMATING THE SPECTRAL ENVELOPE straightforward implementation requires rather extensive compu- tation, especially if the FFT size is large. Let Vi(k) be the cep- The term spectral envelope denotes a smooth function that passes stral representation of the spectral envelope at iteration i, that is through the prominent spectral peaks. For an harmonic signal the the Fourier transform of the filtered cepstrum, and further initial- prominent spectral peaks are generally the harmonics, however, if ize the iteration using A0(k) = log(|X(k)|) and V0(k) = −∞. some of the harmonics are missing or weak (clarinet) the spectral The algorithm then iteratively replaces the current target amplitude envelop should not pass through these. From this explanation the spectrum according to main problem of the spectral envelope becomes apparent. There A (k) = max(A (k),V (k)) (2) exists no technical or mathematical definition and what is desired i i−1 i−1 depends to some extend on the signal and iteratively applies the cepstral filter to the updated target spec- Most of the existing techniques are based on either linear pre- trum Ai. With this procedure the valleys between the peaks of diction (LPC) [9] or the real cepstrum [10]. For an LPC model of the target spectrum will be filled by the cepstral filter and the esti- order Pl the standard all-pole model estimation using the Levinson- 2 mated envelope will steadily grow until all the peaks are covered. Durbin recursion requires O(Pl ) floating point operations. For As stopping criterion of the procedure a parameter ∆ is used that reasonable Pl (< 120) it is possible to run the LPC estimation in defines the maximum excess that a peak of the observed spectrum real time within the phase vocoder such that for each frame the is allowed to have above the spectral envelope (in the following spectral envelope can be pre-warped as required. For harmonic experiments ∆ = 2dB is used). The graceful interpolation of the sounds the all-pole model suffers from systematic errors that have signal spectrum according to the requested cepstral order is a nice been addressed in [11]. For high pitched signals or for signals feature of the algorithm avoiding all the problems related to the ill- that contain individual, outstanding sinusoids , i.e. sinusoids with conditioned setup of the discrete cepstrum [8]. Nevertheless, the significantly increased amplitude, the all-pole model may start to method suffers from two drawbacks. The first is due to the fact that represent those peaks and, if it is applied for envelope preservation, the complexity is not related to Pc but to the DFT size K.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us