Spectral Envelope Transformation in Singing Voice for Advanced Pitch Shifting

.


Introduction
There is an increasing interest in the use of pitch shifting algorithms in music production [1], with a creative aim or to correct singer mistakes during a recording process, and also in voice synthesis systems for entertainment purposes [2,3].The most commonly-used pitch shifting algorithms are focused on the spectral envelope preservation in order to achieve a natural transformation, modifying as slightly as possible the original timbre [4].Although many different algorithms have been proposed, most of them are based on overlap-add techniques, like synchronized overlap-and-add (SOLA) [5], time domain-pitch synchronous overlap and add (TD-PSOLA) [6], frequency-domain PSOLA (FD-PSOLA) [7], waveform similarity based SOLA (WSOLA) [8], etc.These techniques consist of excising frames from the voice, processing them and recombining the resulting frames with an overlap-add (OLA) algorithm.Due to its quality and simplicity, one of the most used methods to perform pitch shifting is TD-PSOLA [9].This technique preserves the spectral envelope and performs the pitch shifting by using a synthesis step increment different than the analysis step increment.In addition to low computational cost, the main advantage of this algorithm relies on the usage of the explicit knowledge of the pitch, which is helpful to synchronize the time segments and to avoid pitch discontinuities.
Nevertheless, some studies suggest that the spectral envelope changes as pitch [10] or intensity [11] varies.Depending on the pitch of the note, trained singers position their voices differently when singing, producing various vocal resonances in the same vocal range, like the chest voice or the falsetto voice.This is why spectral envelope preservation might not be, in our opinion, the best choice to perform wide variations in pitch.
The majority of singing processing and synthesis studies are focused on achieving a natural result through formant preservation [12], control of f 0 fluctuations [13], etc.However, it is still unclear how the spectral envelope changes with pitch; thus, we decided to study this particular effect with the goal of obtaining more realistic results.
In this paper, two main tasks have been carried out.First, an analysis of the natural variations of the spectral envelope as the pitch of the singing voice varies is conducted.Then, a pitch shifting scheme that makes use of the proposed model is implemented.Figure 1 shows a diagram of the main stages performed for both the analysis of the behavior of the spectral envelope and the the pitch shifting process devised to take advantage of our findings.The manuscript is organized as follows: Section 2 describes the first stage, in which a parametric model [14] is used to fit accurately the spectral envelope of a number of recorded vowel sounds.In Section 3, the usage of this tool is explained and used for the analysis of a dataset consisting in 76 sung vowels, in order to obtain a set of functions describing the variations of parameters along pitch.Section 4 presents the pitch shifting algorithm developed, which is based on PSOLA with envelope transformation.The evaluation methodology is explained in Section 5, and the results are shown and discussed in Section 6.Finally, some conclusions are drawn in Section 7.

Parametric Model of the Spectral Envelope
This section describes the specific model implemented in the system to parameterize the spectral envelope.First, the model is defined by a set of resonators and a source filter.Then, a process to automatically adjust the model to the true envelope is devised.

Description of the Spectral Envelope Model
The term spectral envelope refers to a real function that passes through the prominent spectral peaks of the spectrum.For harmonic signals, these prominent peaks are normally the harmonics, but the main problem estimating the spectral envelope is revealed when some of the harmonics are missing or weak, suggesting that the spectral envelope should not go through these.
Many existing approaches to parameterize the spectral envelope of speech or singing voice are based on linear prediction coding (LPC) [15], whereby the vocal track acoustic response is modeled by an N-order all-pole filter [16].However, the LPC model has systematic errors in high-pitched signals due to the strong dependency between the optimal order of the filter and the fundamental frequency [4].Furthermore, manipulating the coefficients to achieve specific timbre transformations is not simple, so this technique was discarded to achieve our goal, as well as other further approaches, like line spectral frequencies (LSF) [17] or cepstrum-based methods [4].
An indispensable requirement for using a reliable model is to ease the control of parameters; therefore, we opted for a formant-based model developed in a previous work [14].The spectral envelope of this model is inspired by some speech/singing synthesis systems, like [18,19], and it is based on several resonator filters in parallel determining the acoustic formants, plus a certain slope serving as the glottal source.
With a source filter and a set of five parallel resonators, we modeled the spectrum of a sung vowel in the frequency band of [0,5000] Hz.The resonators correspond to the glottal resonator R GP and the first four formants of the vocal tract (R 1 to R 4 ).Thus, the envelope is defined as: where the source and the resonances are expressed as: where R i ( f ) is the frequency response of resonator i.Our approach is modeled with four-pole resonators each consisting of two identical second-order filters in cascade with two complex pole pairs with: In these expressions, f i is the central frequency of resonator i, B i is the 6-dB bandwidth and F s is the sampling rate, all of them expressed in Hz.Table 1 shows the ranges of values for the different parameters in our model.f 1 , f 2 and f 3 will be considered to define the formants F1, F2 and F3, respectively.Automatically estimating the formant frequencies and bandwidths is an important task for our scheme.The existing algorithms observed [20,21] suffer from substantial errors or mis-adjustments, requiring human intervention to achieve a reliable annotation of sounds [22].However, we decided to develop a completely automatic system, which allows a precise estimation of formants by a recursive approximation of the parameters to the spectral magnitude of the signal in a steady state.This optimization scheme is detailed in the next subsection.
Furthermore, the harmonic and residual components were separated using [23].Then, each component was optimized independently, obtaining an envelope of the harmonic component and another one of the residual component.

Estimation of Spectral Envelope Parameters
As has been mentioned before, a good estimation of the real envelope is important.The envelope estimation process can be done manually by visually modifying the parameters of the model to fit the envelope defined by the model to the spectral data [14]; however, this is a tedious and slow process that in the end relies on the judgment of the operator.Therefore, in order to perform the spectral estimation task, we have developed an algorithm to automatically find the parameters of the model by means of an iterative non-linear constrained optimization process.Very briefly, the process will adjust the parameters to selected spectral peaks used as the reference.This whole process is carried out in two steps.
In the first step, a spectral envelope model with 10 resonators in parallel is considered.Each resonator implements a four-pole transfer function as described in Section 2.1.In this model, the parameters of five of the resonators are constrained as indicated in Table 1, whereas the location of the other five resonators is not restricted, and their allowed bandwidth range is very large, between 10 and 1500 Hz.With this model, an iterative optimization process is carried out to minimize the logarithm of the absolute difference between the spectrum and our 10 resonator model (see Figure 2) by tuning the parameters (P 10 ) of this model: with E 10 ( f ) the spectral envelope (1) modeled with 10 resonators, X( f ) stands for the Fourier transform of the audio excerpt and M is the number of samples of X( f ).P 10 represents the complete set of parameters of our 10-resonator model: P 10 = {Gain dB , SlopeDepth dB , α, ρ i , θ i with i = 1...10}.After the first stage described is complete, the second stage starts.In this stage, all of the local maxima over the 10 resonator spectral envelope defined by P * 10 are selected, and a new iterative optimization process is carried out with these data.Now, the five-parallel resonator model described in Section 2.1, with the constrains in Table 1, is used to fit the selected data using the same logarithmic error measure as in the previous stage, to obtain the envelope parameters: P * 5 = arg min with C the subset of local maxima among the samples of 10log 10 | X( f i ) | over E 10 ( f ) dB , as defined by the output of the previous optimization stage.P 5 represents the complete set of parameters of our resonator model: P 5 = {Gain dB , SlopeDepth dB , α, ρ i , θ i with j = 1...5}, as described in Section 2.1.The parameters P * 5 that draw the envelope obtained after this stage (Figure 2) are used to define the location and bandwidth of the formants of the excerpt analyzed and will be used for the spectral envelope transformation process devised (Sections 3 and 4.2) and for the objective evaluation that will be described later (Section 5.1).
As in other processes in the work, this step is carried out for both the harmonic and the residual component separately.

Analysis of Parameters and Their Variation along Pitch
This section details different processes carried out to model the set of functions describing our pitch shifting model.First, the dataset of sung notes used in our analysis is described in Section 3.1.Then, the variation of the formants with pitch is described in Section 3.2.Finally, the proposed pitch shifting model with spectral envelope transformation based on the information retrieved in previous steps is presented in Section 3.3.

Dataset
Our dataset consists of 76 sustained notes sung by two male and two female amateur singers with ages between 20 and 40 years old.None of them had academic vocal training, but they had some experience as singers in different pop bands.
The singers were all given the same instructions in the recording session: they sung different scales through the specific tessitura of each singer, covering their whole vocal range with intended constant intensity.
The notes were recorded for different vowels (/a/,/e/,/i/,/o/ and /u/, corresponding to the sound of the vowels in the Spanish language), in a comfortable register.The recording environment was a semi-anechoic chamber with a Neumann TLM103 microphone with an anti-pop shield and Onyx Blackbird interface.The excerpts were recorded in mono with a sampling rate of 44,100 Hz.

Formant Analysis
Among the parameters involved in our proposed spectral envelope model, we found significant evidence of their variation with the pitch only in the central frequency of the three first formants.We did not find evidence of any noticeable modification in the case of other parameters, like gain or slope depth.Moreover, we found no meaningful relationship between the bandwidth of the different resonators in our model and the pitch, although previous works could make us hypothesize the opposite [14]; therefore, the variation of the bandwidth of the resonators has not been considered in our model.
The analysis has been carried out for the harmonic and the residual component of each audio sample separately.This has been accomplished by making use of the algorithms described in [23,24].Each component has been analyzed independently; however, the process and even the results obtained are very similar for both cases, so we will focus our explanation on the harmonic part.Whenever it is necessary to distinguish between the two cases, specific descriptions will be provided.

Formant 1
It is known that formants are dependent to varying degrees on the vowel sung, as well as on the sex and age of talkers or singers [25].With the goal of finding a global tendency of the specific parameters along pitch, all of these variables are mixed in the analysis.
Figure 3 shows the obtained results regarding the central frequency of the first formant (F1) in all of the analyzed samples.F1 is the most strongly affected parameter in our model as pitch varies with an upward trend with increasing pitch ( f 0).Taking this tendency into account, a linear approximation has been carried out by using robust regression [26].Note that the chosen approach is more accurate than ordinary least squares regression in this particular case, achieving a more reliable slope by rejecting some outliers from the data samples.This algorithm uses an iteratively re-weighted least squares scheme with the following bi-square weighting function: where r is the residual or the error to minimize, which is defined as the difference between the actual value of the dependent variable ( f 0 in this case) and the value predicted by the model.k is the tuning constant: with MAD the median absolute deviation of the residuals from their median.As already mentioned, in contrast to the approximately linear relationship between F1 and pitch, a meaningful relationship between the bandwidth (B1) of the first formant and pitch was not found.Conversely, by changing B1, some unintended variations of intensity were attained, which is ultimately coherent with the non-linear energy damping model of vocal resonators proposed in [27], in which the Q of each resonator depends on the input signal.Because of this, we decided not to modify the bandwidth B1 in order to keep the intensity of the result of the transformation as close as possible to the original intensity.
As is well known, different vowels with the same f 0 involve different parameters of F1.Because of this and before trying to find a global tendency, some analyses of separated vowels and singers were carried out.It was found that F1 had the tendency to increase with f 0 for all of the vowels and the singers, which encouraged us to find a commonly valid relationship.
If the pitch shifting is performed without changing the first formant, the vowel seems to loose thickness and becomes breathy, especially in higher notes, according to our observations.Thus, shifting F1 appears to be necessary in order to keep the original thickness of the sound.

Formants 2 and 3
Unlike the first formant, the shifting of formants F2 and F3 do not seem to follow an approximate linear variation with pitch.Figures 4 and 5 show that the central frequency of these formants seems to be related to the pitch in a logarithmic way.Thus, linear least square regression [28] is used to obtain the parameters corresponding to a first-order exponential relation between these formants and the pitch.Figures 4 and 5 also show the estimated curves for the data samples depicted.
As has been extensively demonstrated in the literature [29], it is very important to maintain the relative distance between F1 and F2 in order to keep vowel intelligibility.Therefore, at the sight of the results obtained in Section 3.2.1, it seems reasonable to find a proportional variation of F2 along pitch.
In the case of F3, a smaller variation with pitch is found.However, as in the case of F2, this shift is relative to F1, and it is important to maintain this type of relationship in order to preserve some qualitative aspects of the sound.
Again, no meaningful relation between the bandwidths of these formants (B2 and B3) and the pitch was found.As in the case of B1, modifying B2 and B3 causes timbre variations related to the intensity of the sound, but not related to pitch.

Formant-Based Model for Spectral Envelope Transformation
At the sight of the relationships unveiled, we propose a model of spectral envelope transformation for pitch shifting based on the displacement of the location of the formants F1, F2 and F3, with the pitch.The objective is to attain a pitch shifting of any frequency gap.Since we are considering singing voice, the frequency shift is conveniently expressed in semitones.In an equally-tempered scale, the frequency f 0 of the target pitch can be defined by the following expression: where f 0 is the original pitch before the shifting and N is the number of semitones corresponding to the desired frequency shift.The ± symbol refers to increasing or decreasing the pitch.With all this, the frequency displacement ∆ f 0 is defined as: Then, after the analysis described before, the following generic expression is used to modify the parameters F i : where F i is the objective value of central frequency of formant i, F i stands for the original value and g i (•) is a function dependent on the format number i.
By means of linear regression, we obtained the following expressions for the model transformation functions: where the constants A, B, C, D and E are defined in Table 2.Note the similar, but different values found for the harmonic and the residual component of the signal, as described in Section 3.2.Observe that the values in Table 2 imply that medium-large frequency displacements are required in order to perceive the effect of the envelope transformation.Generally, our observations indicated that increasing or decreasing the pitch by a fifth is enough to perceive the changes.Smaller shifts do not produce significant changes in the spectral envelope, which made the difference between our model and a conventional pitch shifting algorithm unnoticeable/hardly noticeable.
Finally, note that a change of f 0 produces the same effect for lower and higher pitches since the relationship between formants is already defined by linear or logarithmic expressions ( 13)- (15).However, it must be kept in mind that there is a huge difference in the perceptual influence of this transformations in lower or higher frequencies due to the relationship between f 0 and the perceived note.Higher frequencies need larger changes of f 0 for changing a note (see Equation ( 10)).

Complete Pitch Shifting Scheme
The first step to perform pitch shifting is the determination of the pitch of the input signal and reference time instants, called pitch marks [7].These pitch marks are located at the instant of maximum amplitude of glottal pulses at a pitch-synchronous rate.The correct determination of pitch marks is essential to achieve high quality sound modification since they become the centers of the segmentation windows in PSOLA [7].
The precise localization of pitch marks is not a trivial problem, and it has been addressed from different perspectives, like [30,31].The main difficulties appear with signals with rich harmonic content in which the largest peak may oscillate in consecutive periods leading to incorrect positioning of the pitch marks.As a consequence, the signal will be re-synthesized with some audible artifacts.Moreover, an extended delay between the pitch mark locations and the true pitch period will cause low frequency modulation of the signal amplitude due to the displacement of the segmentation window.These observations make us pay special attention to the localization of pitch marks in our pitch shifting scheme.
Our complete pitch shifting scheme can be divided into two steps: a feature extraction stage and the actual pitch shifting stage.The complete scheme is illustrated in Figure 6, and the details are given next.The entire method has been named formant-driven pitch shifting (FDPS).

Feature Extraction Stage
The first step is the extraction of the f 0 and the spectral envelope, according to the model previously described.The f 0 is used not only to determine the frequency displacement, but also to guide the process of the localization of pitch marks.
The well-known YIN algorithm [32] is used as the pitch estimator, to extract f 0 at the frame level.This algorithm has proven to be efficient for pitch extraction in different transcription systems [33,34].
With the f 0 extracted, it is possible to determine the position of the pitch marks.However, some problems arise related to mis-displacements of the pitch mark locations identified, which lower the quality of the transformation.This issue is addressed by using the mean-based signal (MBS) method, which has proven to be an efficient approach for PSOLA [35] in terms of removing discontinuities.The MBS is defined by the following expression: where x(n) is the voice signal, w(m) is a Blackman windowing function of length 2N + 1 samples and N is a value between 1.5-and two-times the average pitch period T 0,mean .Then, the maxima in MBS in each window are used to locate the pitch marks.On the other hand, glottal closure instants (GCIs) are related to instants of high energy in the voice signal, and they are also a good approach to locate the pitch marks in continuous speech; as a matter of fact, some authors [36] carried out several objective measures to support the usage of CGI in PSOLA transformations.However, in our context, it is reasonable to think that the main focus in this evaluation should be the psychoacoustic perception, which is a subjective feature.
Figure 7 shows the result of the utilization of both MBS and GCI approaches to locate pitch marks.GCI is a more precise method locating the higher energy instants, but causes abrupt shifts between consecutive marks (third and fourth blue marks in the figure).This problem is diminished by detecting the global peaks of the MBS in every interval.In this way, the difference between pitch marks is smoothed, preventing errors in the later re-synthesis using PSOLA.Recall that our final objective is to perform pitch shifting of sustained sung notes.Then, avoiding abrupt shifts between consecutive pitch marks is of main importance.This is a main reason why we use MBS instead of GCI to locate the pitch marks.Moreover, an additional post-processing stage aimed at correcting pitch mark location errors is included.The objective is to eliminate false alarms by using a thresholding operation.To this end, the minimum distance allowed between two consecutive pitch marks is defined as: where F s is the sampling rate and f 0 max is the upper limit of the YIN algorithm, which is 900 Hz in our case.
If the distance between two pitch marks is smaller than the threshold, the closest one to the adjacent mark is eliminated.In case of similar distances to the adjacent marks, a new mark is located halfway between them, and both of them are removed.
Finally, in this feature extraction stage, the spectral envelope H 1 (z) of the original sound is estimated by making use of the model described in Section 2. Note that FDPS performs the spectral transformation by shifting the central frequency of the formants, so only the resonator coefficients are needed in order to perform the transformation, as will be described next.

Pitch Shifting Stage
This stage performs the actual pitch shifting process with spectral envelope transformation; the pitch of an audio waveform will be increased or decreased by using the PSOLA technique, and also, the spectral envelope will be modified by means of formant shifting and filtering.
The pitch-shifting factor, β (shown in Figure 6), is used to define the strength of the shift of the pitch.This parameter can be larger than one (transposing up) or smaller than one (transposing down), and it is related to the number of semitones shifted through the following expression: The PSOLA [9] algorithm is composed of two steps: in the first step, the input waveform is conveniently segmented, and in the second one, a time-stretched version of the original signal is synthesized by overlapping and adding the time segments extracted before [37].The complete process is detailed below:

•
Once the f 0 and the pitch marks are determined, the algorithm extracts a signal segment at every pitch mark t i by using a Hanning window of length L = 2 • P(t i ), with P(t i ) the pitch period at the current pitch mark location.

•
Overlap and add the selected segment at the specified instant t k+1 .t k+1 is used to center the next synthesis segment, which is obtained according to: where P(t k ) is the new estimated period of the signal and β is the pitch shifting factor or skip, a multiple of the number of half steps N expressed as shown in Equation ( 18) [37].
At this point, a pitch-shifted version of the original signal has been generated by a formant preservation technique.However, the spectral envelope changes as pitch varies [10], so an additional step is performed in order to modify the spectral envelope of the synthesized signal to achieve a more natural result.
The first three formants (F1, F2 and F3) are modified according to the expressions ( 13)-( 15), resulting in a new spectral envelope H 2 (z).The resulting resonator coefficients are stored and combined with the original ones, generating the filter response in charge of modeling the shifting of the formants.Finally, the pitch-shifted signal is inverse-filtered by H 1 (z) and filtered by H 2 (z).
Figure 8 shows an example of the resulting filter response of the H 2 /H 1 filter for a F3 note (172.6 Hz) to be pitch-shifted a fifth above (C3 at 261.63 Hz), sung by a male amateur singer.The filter corresponds to shifting the formants of the harmonic component in the range of [0,5000] Hz, with a sampling rate of 44,100 Hz.As can be observed, the first formant is the most strongly affected in terms of correction (note the valley-peak sequence with a difference of almost 6 dB), whereas Formants 2 and 3 are just slightly modified.Due to our filtering stage and the way in which the envelopes are modeled, the low frequency band ([0,550] Hz approximately) is attenuated in the case of shifting to a higher pitch, so a compensation filter has been added.In Figure 9, the magnitude response of this filter when shifting to a higher pitch is shown, making up for the attenuation of the previous H 2 /H 1 filter.This compensation stage is a pre-defined second-order low shelf filter with a gain of 3 dB and a cut-off frequency at 500 Hz.In the case of shifting to a lower pitch, the result is exactly the inverse: the low frequency band needs to be attenuated; this is accomplished applying the inverse of the compensation filter defined as described above.These two filters, in our implementation, add a maximum delay of 60 samples.Note that the whole process described is carried out for the harmonic and residual components of the audio signal separately due to the fact that the resulting filters may be different, according to the parameters of the transformation model shown in Table 2.

Evaluation Methodology
This section presents the evaluation methodology, which ultimately consists of two different evaluation processes based on objective and subjective measures.However, note that the actual target of the method devised is related to perception, which implies, in our opinion, that priority should be given to the results of the subjective evaluation performed by means of an open survey.
In this section, the measurements employed for the objective evaluation of the system will be described (Section 5.1); then, the subjective evaluation methodology followed will be shown in Section 5.2.
The results of the evaluation will be presented in Section 6, including comparisons against a modern commercial software tool and a widely-used and well-known pitch shifting scheme.The dataset that will be used for the evaluation was described previously in Section 3.1.

Objective Evaluation Methodology
In order to assess the naturalness of the pitch-shifted audio samples generated, some objective measures were defined.The measures were aimed at assessing the similarity between the notes obtained after a pitch shifting process (of an octave) and the corresponding notes naturally sung in the same target pitch.The similarity measures were obtained for three pitch shifting schemes: the Flex Pitch plugin of Logic Pro X, the PSOLA algorithm and our system.We call our measure normalized similarity (NS), and it is defined as: which is a normalized inverse of the mean absolute difference of two variables X and Y, where X and Y are the normalized magnitudes of the original and transformed samples, respectively, of the different parameters to measure, namely: the magnitude and phase of spectral peaks and the central frequency and bandwidth of formants.In our case, the variables are normalized by the maximum of their spectrum.Specifically, the parameters considered to be evaluated by using the NS statistic are: • Magnitude and phase of the 10 first spectral peaks.

•
Bandwidth of the three first formants (B1, B2 and Observe that NS (Equation ( 20)) ranges between zero and one.The lower the value of NS, the lower the similarity between the variables compared.
Recall that the ultimate purpose of the evaluation is to provide an objective comparison regarding the goodness of the spectral envelope transformation.Note that all of the spectral envelopes of the original samples and their transformed versions were estimated by using the optimization method detailed in Section 2.2.

Subjective Evaluation Methodology
A subjective comparison between our method, PSOLA and the Flex Pitch plugin of Logic Pro X [38] has been carried out.Each selected note was pitch shifted a fifth or an octave above or below the original pitch by using the three different methods mentioned.The system performance was subjectively evaluated by means of a survey open to volunteers on our website (https://encuestas.uma.es/73985/lang-en).The participants listened to the different transformations randomly ordered, and they were asked to evaluate the quality of each of them from zero to 100, regarding naturalness, vowel intelligibility and breathiness.The scoring scheme was made based on a continuous quality scale (CQS), following the Recommendation ITU-R BS.1534-3 [39], which divides the range into five equal intervals with the following adjectives, from worst to best: bad, poor, fair, good and excellent (see Figure 10).The participants were inquired about the listening conditions and their musical training knowledge.The samples were grouped into two blocks.The first block contained five isolated sung notes and their corresponding three transformations per note.The second block contained three melodies consisting of four notes placed together and their transformations; this setup was prepared so that the participants were able to listen to lengthier samples of transformed musical notes, making it easier to notice the differences between them.

Results and Discussion
In this section, the results of the evaluation process will be presented.First, the results of the objective evaluation will be shown, then the results of the subjective evaluation will be presented.A discussion will accompany the data.

Objective Evaluation
The objective evaluation provided satisfactory results.The NS measure described in the previous section allowed comparing the results of our scheme with Logic Pro X and PSOLA, quantifying the similarity between the spectral envelopes of the transformed samples and the corresponding original one, which defined the target of the transformation.Figures 11 to 13 show 95% confidence intervals with a notch at the median of each measure.The first parameters to be measured were the magnitude and phase of the harmonic peaks.Figure 11 shows the NS of the magnitude and phase of the first 10 harmonic peaks with respect to the envelope target.In general, the NS of the magnitude of the peaks was mostly similar among all of the pitch shifting schemes, but the mean of the first peak is slightly better adjusted to the target by using FDPS.This peak is under the fist formant, which presented a clearer transformation tendency, as shown in Section 3.2.1, and it is the most predominant one.From our point of view, the rest of the peaks do not provide any clue on the difference of the performance of the three schemes; anyway, their relative importance with respect to the lower peaks diminishes with the peak number.Regarding the phase of the harmonic peaks, the results were also very similar for the three schemes.
The similarity of the central frequency and the bandwidth of the formants was measured, as well.Figure 12 shows the results of the NS parameter for the central frequency of the formants for both the harmonic and residual component.The average of the NS measurements indicates that the F3 of the harmonic component achieved a 35.6% better estimation with Logic Pro X than FDPS, whereas the more dominant F1 and F2 formants were 34.5% and 12%, respectively, more accurately adjusted with FDPS.In the residual component, the mean NS of F2 and F3 was, respectively, 18.6% and 32.5%, closer to the target with FDPS than with Logic Pro X.The mean NS for F1 was similar in these two cases.However, observe that the median (shown in the figures) and the shape of the distributions suggests a trend to a higher score with our approach also in this evaluation.In both components, PSOLA achieved the worst results.
Finally, the results regarding the formant bandwidths are shown in Figure 13.Again, the mean of the NS results, for both the harmonic and residual components, indicate that our FDPS scheme attained better performance (larger mean NS) in the two first formants (B1 and B2) than Logic Pro X and PSOLA.Moreover, the most significant difference appears in the bandwidth of the first formant, which highlights the better performance of our scheme.

Subjective Evaluation
As the objective evaluation, the subjective evaluation provided other interesting results.A total of 23 anonymous subjects participated and fully completed the survey.Most of the participants had some musical background.There were six female and 17 male participants.The survey informed the participant that the differences between the audio samples might be subtle and recommended the usage of good quality headphones.
Figure 14 shows the results of the survey; five different participant categories have been identified to interpret the results.The figures show the 95% confidence interval of the scores with a notch placed at the median value.The evaluation of the three transformations considered was done for isolated notes and melodies, separately.
In Figure 14a, the global results including all of the participants are shown.Our approach achieved a mean quality of 61.4%, whereas Logic Pro X and PSOLA attained 60.8% and 60.0%, respectively, in the case of isolated notes.In the case of the melodies, the three schemes achieved very similar results; although our scheme is skewed towards a higher score.
Figure 14b shows the values obtained from the participants using headphones/earphones (as recommended) for the test; they were 73% of the total number of participants.For isolated notes, the mean score of FDPS and Logic was 60.4% and 58.7%, respectively.The mean score of PSOLA was 58.2%.In the case of melodies, FDPS obtained a 52.6% mean quality score while Logic and PSOLA attained lower scores, 47.3% and 47.9%, respectively.
Figure 14c shows the result of the survey considering only the participants with professional music studies or professional music production background using headphones (30% of the total).In this case, FDPS achieved 65.2% of mean quality score in the case of isolated notes, while Logic and PSOLA obtained 58.0% and 54.7%, respectively.Regarding the melodies, our FDPS scheme achieved a 55.9% mean quality, whereas Logic Pro X and PSOLA attained mean scores of 46.5% and 43.9%, respectively.As in the previous cases analyzed, our algorithm attained better results than the other two schemes, but in this case, in which the participants have significant musical background and do the survey in good listening conditions (according to their answers), the difference in the performance between our scheme and the others is larger.
In Figure 14d, the participants with no more than elementary musical background using headphones were considered.FPDS, Logic and PSOLA achieved a mean score of 53.9%, 58.6% and 58.8% in isolated notes and 47.0%, 45.2% and 49.2% in melodies, respectively.Somehow, curiously, the results for the musically untrained subjects do not follow the trend of the results attained by trained subjects.The latter reveals rather clearly the better performance of our scheme, whereas untrained subjects do not show the same difference in performance.This can be due to the combination of two factors: the lack of musical knowledge and the inadequate listening conditions (subjects in this group are using speakers instead of headphones/earphones).The latter seems corroborated by the results shown in Figure 14e.
Figure 14e shows the results of the participants using speakers during the test (26%).In this case, the mean score for notes was 64.2%, 66.7% and 65.0% for FDPS, Logic Pro X and PSOLA, respectively.The mean score attained for the melodies was 60.1%, 56.7% and 56.5% for FDPS, Logic Pro X and PSOLA, respectively.
Considering all of the results analyzed above, it can bee seen that our FDPS approach achieved better quality according to the assessment of the participants doing the survey with a professional musical background.More specifically, the FDPS score in the case of the notes evaluated achieved greater differences of quality with regard to PSOLA and Logic Pro X.Furthermore, in the case of melodies, FPPS performance was perceived more clearly better when listening in good conditions (using headphones).This evidence is probably due to the wide variation from note to note, since melodies were made by means of the concatenation of different notes.by modifying the spectral envelope, unlike most of the systems developed until now, which are based on the idea of formant preservation.
To this end, a parametric model of the spectral envelope with four-pole resonators is employed to synthesize the vocal formants.With this model, a set of vowels sung at different notes has been analyzed in order to define a set of functions describing the variation of formants along pitch in singing voice.Then, a pitch shifting process for sung vowels has been defined by using a PSOLA algorithm with envelope processing according to the obtained functions.Special attention has also been paid to the estimation of the spectral envelope and the determination of pitch marks.
The method devised was evaluated by using both objective and subjective measures.The objective results show more precise envelope adjustment when using our method than with the competitors, when comparing the spectra of the shifted notes against the target samples, especially in the most important features analyzed.
The subjective evaluation of the system performance was carried out by means of an open survey, comparing the performance of our system with the Flex Pitch plugin of Logic Pro X and PSOLA.The results showed that our FDPS approach performed better than the two other schemes.Moreover, musically-trained participants doing the survey in good listening conditions rated our FDPS scheme higher.

Figure 1 .
Figure 1.Diagram of the analysis of the envelope behavior and our pitch shifting scheme with spectral envelope transformation.

FrequencyFigure 2 .
Figure 2. Estimation of the parameters of the spectral envelope.Harmonic component.

Figure 7 .
Figure 7. Pitch marking using two different methods.MBS achieves smaller differences between consecutive pitch marks than the glottal closure instant (GCI).

FrequencyFigure 8 .
Figure 8. Magnitude of the H 2H 1 filter response of the harmonic component of an F3 note (172.6 Hz) of a male singer to be pitch shifted a fifth above.

FrequencyFigure 9 .
Figure9.Magnitude of the compensation filter for pitch shifting an F3 note (172.6 Hz) of a male singer to be pitch shifted a fifth above.

Figure 10 .
Figure 10.Continuous quality scale provided for the subjective evaluation.

Figure 11 .
Figure 11.Normalized similarity (NS) of the 10 first harmonic peaks.(a) Magnitude of the peaks; (b) phase of the harmonic peaks.

Figure 12 .Figure 13 .
Figure 12.Normalized similarity of the central frequency of the first three formants.(a) Harmonic component; (b) residual component.

Table 1 .
Range of values used in the proposed model.

Table 2 .
Parameters involved in the expressions F 1 , F 2 and F 3 to modify formant locations.