Electronic musical instrument, electronic musical instrument control method, and storage medium

Information

  • Patent Grant
  • 10629179
  • Patent Number
    10,629,179
  • Date Filed
    Thursday, June 20, 2019
    5 years ago
  • Date Issued
    Tuesday, April 21, 2020
    4 years ago
Abstract
An electronic musical instrument includes: a memory that stores a machine-learning trained acoustic model mimicking voice of a singer and at least one processor. When a vocoder mode is on, prescribed lyric data and pitch data corresponding to a user operation of an operation element of the musical instrument are inputted to the trained acoustic model, and inferred singing voice data that infers a singing voice of the singer is synthesized on the basis of acoustic feature data output by the trained acoustic model and on the basis of instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element. When the vocoder mode is off, the inferred singing voice data is synthesized based on the acoustic feature data without using the sound waveform data.
Description
BACKGROUND OF THE INVENTION
Technical Field

The present invention relates to an electronic musical instrument that generates a singing voice in accordance with the operation of an operation element on a keyboard or the like, an electronic musical instrument control method, and a storage medium.


Background Art

Hitherto known electronic musical instruments output a singing voice that is synthesized using concatenative synthesis, in which fragments of recorded speech are connected together and processed (for example, see Patent Document 1).


RELATED ART DOCUMENTS
Patent Documents



  • Patent Document 1: Japanese Patent Application Laid-Open Publication No. H09-050287



SUMMARY OF THE INVENTION

However, this method, which can be considered an extension of pulse code modulation (PCM), requires long hours of recording when being developed. Complex calculations for smoothly joining fragments of recorded speech together and adjustments so as to provide a natural-sounding singing voice are also required with this method.


An object of the present invention is to provide an electronic musical instrument that sings well in the singing voice of a given singer at pitches specified through the operation of operation elements by a user due to being equipped with a trained model that has learned the singing voice of the given singer.


Additional or separate features and advantages of the invention will be set forth in the descriptions that follow and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.


To achieve these and other advantages and in accordance with the purpose of the present invention, as embodied and broadly described, in one aspect, the present disclosure provides An electronic musical instrument including: a plurality of operation elements respectively corresponding to mutually different pitch data; a memory that stores a trained acoustic model obtained by performing machine learning on training musical score data including training lyric data and training pitch data, and on training singing voice data of a singer corresponding to the training musical score data, the trained acoustic model being configured to receive lyric data and prescribed pitch data and output acoustic feature data of a singing voice of the singer in response to the received lyric data and pitch data; and at least one processor in which a first mode and a second mode are interchangeably selectable, wherein in the first mode, the at least one processor: in accordance with a user operation on an operation element in the plurality of operation elements, inputs prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, and digitally synthesizes and outputs inferred singing voice data that infers a singing voice of the singer on the basis of at least a portion of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, and on the basis of instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element, and wherein in the second mode, the at least one processor: in accordance with a user operation on an operation element in the plurality of operation elements, inputs prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, and digitally synthesizes and outputs inferred singing voice data that infers a singing voice of the singer on the basis of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, without using instrument sound waveform data that are or could be synthesized in accordance with the pitch data corresponding to the user operation of the operation element.


In another aspect, the present disclosure provides a method performed by the at least one processor in the electronic musical instrument described above, the method including, via the at least one processor, each step performed by the at least one processor described above.


In another aspect, the present disclosure provides a non-transitory computer-readable storage medium having stored thereon a program executable by the at least one processor in the above-described electronic musical instrument, the program causing the at least one processor to perform each step performed by the at least one processor described above.


According to an aspect of the present invention, an electronic musical instrument can be provided that sings well in the singing voice of a given singer at pitches specified through the operation of operation elements by a user due to being equipped with a trained model that has learned the singing voice of the given singer.


It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory, and are intended to provide further explanation of the invention as claimed.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram illustrating an example external view of an embodiment of an electronic keyboard instrument of the present invention.



FIG. 2 is a block diagram illustrating an example hardware configuration for an embodiment of a control system of the electronic keyboard instrument.



FIG. 3 is a block diagram illustrating an example configuration of a voice training section and a voice synthesis section.



FIG. 4 is a diagram for explaining a first embodiment of statistical voice synthesis processing.



FIG. 5 is a diagram for explaining a second embodiment of statistical voice synthesis processing.



FIG. 6 is a diagram illustrating an example data configuration in the embodiments.



FIG. 7 is a main flowchart illustrating an example of a control process for the electronic musical instrument of the embodiments.



FIGS. 8A, 8B, and 8C depict flowcharts illustrating detailed examples of initialization processing, tempo-changing processing, and song-starting processing, respectively.



FIG. 9 is a flowchart illustrating a detailed example of switch processing.



FIG. 10 is a flowchart illustrating a detailed example of automatic-performance interrupt processing.



FIG. 11 is a flowchart illustrating a detailed example of song playback processing.





DETAILED DESCRIPTION OF EMBODIMENTS

Embodiments of the present invention will be described in detail below with reference to the drawings.



FIG. 1 is a diagram illustrating an example external view of an embodiment of an electronic keyboard instrument 100 of the present invention. The electronic keyboard instrument 100 is provided with, inter alia, a keyboard 101, a first switch panel 102, a second switch panel 103, and a liquid crystal display (LCD) 104. The keyboard 101 is made up of a plurality of keys serving as performance operation elements. The first switch panel 102 is used to specify various settings, such as specifying volume, setting a tempo for song playback, initiating song playback, playing back an accompaniment, and for a vocalization mode (a first mode indicating that a vocoder mode is ON, and a second mode indicating that the vocoder mode is OFF). The second switch panel 103 is used to make song and accompaniment selections, select tone color, and so on. The LCD 104 displays a musical score and lyrics during the playback of a song, and information relating to various settings. Although not illustrated in the drawings, the electronic keyboard instrument 100 is also provided with a speaker that emits musical sounds generated by playing of the electronic keyboard instrument 100. The speaker is provided at the underside, a side, the rear side, or other such location on the electronic keyboard instrument 100.



FIG. 2 is a diagram illustrating an example hardware configuration for an embodiment of a control system 200 in the electronic keyboard instrument 100 of FIG. 1. In the control system 200 in FIG. 2, a central processing unit (CPU) 201, a read-only memory (ROM) 202, a random-access memory (RAM) 203, a sound source large-scale integrated circuit (LSI) 204, a voice synthesis LSI 205, a key scanner 206, and an LCD controller 208 are each connected to a system bus 209. The key scanner 206 is connected to the keyboard 101, to the first switch panel 102, and to the second switch panel 103 in FIG. 1. The LCD controller 208 is connected to the LCD 104 in FIG. 1. The CPU 201 is also connected to a timer 210 for controlling an automatic performance sequence. Musical sound output data 218 (instrument sound waveform data) output from the sound source LSI 204 is converted into an analog musical sound output signal by a D/A converter 211, and inferred singing voice data 217 output from the voice synthesis LSI 205 is converted into an analog singing voice sound output signal by a D/A converter 212. The analog musical sound output signal and the analog singing voice sound output signal are mixed by a mixer 213, and after being amplified by an amplifier 214, this mixed signal is output from an output terminal or the non-illustrated speaker. The sound source LSI 204 and the voice synthesis LSI 205 may of course be integrated into a single LSI. The musical sound output data 218 and the inferred singing voice data 217, which are digital signals, may also be converted into an analog signal by a D/A converter after being mixed together by a mixer.


While using the RAM 203 as working memory, the CPU 201 executes a control program stored in the ROM 202 and thereby controls the operation of the electronic keyboard instrument 100 in FIG. 1. In addition to the aforementioned control program and various kinds of permanent data, the ROM 202 stores musical piece data including lyric data and accompaniment data.


The ROM 202 (memory) is also pre-stored with melody pitch data (215d) indicating operation elements that a user is to operate, singing voice output timing data (215c) indicating output timings at which respective singing voices for pitches indicated by the melody pitch data (215d) are to be output, and lyric data (215a) corresponding to the melody pitch data (215d).


The CPU 201 is provided with the timer 210 used in the present embodiment. The timer 210, for example, counts the progression of automatic performance in the electronic keyboard instrument 100.


Following a sound generation control instruction from the CPU 201, the sound source LSI 204 reads musical sound waveform data from a non-illustrated waveform ROM, for example, and outputs the musical sound waveform data to the D/A converter 211. The sound source LSI 204 is capable of 256-voice polyphony.


When the voice synthesis LSI 205 is given, as singing voice data 215, lyric data 215a and either pitch data 215b or melody pitch data 215d by the CPU 201, the voice synthesis LSI 205 synthesizes voice data for a corresponding singing voice and outputs this voice data to the D/A converter 212.


The lyric data 215a and the melody pitch data 215d are pre-stored in the ROM 202. Either the melody pitch data 215d pre-stored in the ROM 202 or pitch data 215b for a note number obtained in real time due to a user key press operation is input to the voice synthesis LSI 205 as pitch data.


In other words, when there is a user key press operation at a prescribed timing, an inferred singing voice is produced at a pitch corresponding to the key on which there was a key press operation, and when there is no user key press operation at a prescribed timing, an inferred singing voice is produced at a pitch indicated by the melody pitch data 215d stored in the ROM 202.


When the vocoder mode has been turned ON (when the first mode has been specified) using the first switch panel 102, musical sound output data outputted from designated sound generation channels (single or plural channels) of the sound source LSI 204 are inputted to the voice synthesis LSI 205 as instrument sound waveform data 220.


The key scanner 206 regularly scans the pressed/released states of the keys on the keyboard 101 and the operation states of the switches on the first switch panel 102 and the second switch panel 103 in FIG. 1, and sends interrupts to the CPU 201 to communicate any state changes.


The LCD controller 609 is an integrated circuit (IC) that controls the display state of the LCD 505.



FIG. 3 is a block diagram illustrating an example configuration of a voice synthesis section, an acoustic effect application section, and a voice training section of the present embodiment. The voice synthesis section 302 and the acoustic effect application section 322 are built into the electronic keyboard instrument 100 as part of functionality performed by the voice synthesis LSI 205 in FIG. 2.


Along with lyric data 215a, the voice synthesis section 302 is input with pitch data 215b instructed by the CPU 201 on the basis of a key press on the keyboard 101 in FIG. 1 via the key scanner 206 in FIG. 2. With this, the voice synthesis section 302 synthesizes and outputs output data 321. If no key on the keyboard 101 is pressed and pitch data 215b is not instructed by the CPU 201, melody pitch data 215d stored in memory is input to the voice synthesis section 302 in place of the pitch data 215b. A trained acoustic model 306 takes this data and outputs spectral data 318 and sound source data 319.


In the first mode, the voice synthesis section 302 outputs inferred singing voice data 217 for which the singing voice of a given singer has been inferred on the basis of the spectral data 318 output from the trained acoustic model 306 and on the instrument sound waveform data 220 output by the sound source LSI 204, and not on the basis of the sound source data 319. Also, even when a user does not press a key at a prescribed timing, a corresponding singing voice is produced at an output timing indicated by singing voice output timing data 215c stored in the ROM 202.


In the second mode, the voice synthesis section 302 outputs inferred singing voice data 217 for which the singing voice of a given singer has been inferred on the basis of the spectral data 318 and the sound source data 319 output from the trained acoustic model 306. Also, even when a user does not press a key at a prescribed timing, a corresponding singing voice is produced at an output timing indicated by singing voice output timing data 215c stored in the ROM 202.


It is important to note that the electronic musical instrument constituting one embodiment of the present invention is equipped with a first mode and a second mode, and that the first mode and the second mode can be switched 320 between by user operation. It is thereby possible to switch between the first mode (a polyphonic mode) and the second mode (a monophonic mode), for example, in accordance with the song performed by a user, as appropriate.


Thus, in this aspect of the present invention, in the vocoder mode, the electronic musical instrument 100 uses the instrument sound waveform data 220 output by the sound source LSI 204 instead of (in other words, without using) sound source data 319 output by the trained acoustic model 306. The instrument sound waveform data 220 are instrument sound waveform data having one or more pitches specified by the user by operating the keyboard 101 (or specified by the melody pitch data 215d stored in the ROM 202 if there is no keyboard operation by the user). The instrument sounds for the waveform data that are synthesized here preferably include, but not limited to, sounds of brass instruments, strings instruments, organ, sound of animals, for example. The instrument sound may be the sound of just one of these instrumental sounds selected by an user operation of the first switch panel 102. Through diligent research, the present inventors have discovered that these listed instrument sounds are particularly effective when combined with the spectral data 318 that carry characteristics of a human singing voice.


In this embodiment of the present invention, in the vocoder mode, if the user presses multiple keys at the keyboard 101 at the same time (specifying a chord, for example), a synthesized singing voice having certain characteristics of a human singing voice having the corresponding multiple pitches is output (i.e., polyphonic output). That is, in the vocoder mode of this embodiment, for each of the pitches specified in the chord, the waveform data of the music instrument having the corresponding pitch is modified by the spectral data 318 (formant information) outputted from the acoustic model 306, thereby adding the vocal characteristics of the singer with respect to which the acoustic model 306 has been trained to the inferred singing voice data 217, which is polyphonically output. This aspect is advantageous because when the user presses multiple keys at the same time, the polyphonic singing voice corresponding to the specified multiple pitches are outputted.


In conventional vocoders, users needed to sing while operating the keyboard; a microphone to pick up the user's singing voice was necessary. In the vocoder mode of the present embodiment of the present invention, the user need not sing, and a microphone is not needed. Also, as noted above, in the vocoder mode of this embodiment, with respect to the acoustic feature data 317 (explained below) including spectral data 318 and sound source data 319, only the spectral data 318 is used in synthesizing the inferred singing voice data.


According to this embodiment of the present invention, the user only needs to select On and Off of the vocoder mode in order to switch voice sound generation modes. Therefore, the electronic musical instrument of the present embodiment is more advantageous than electronic musical instruments having only one of these modes.


The acoustic effect application section 322 is input with effect application instruction data 215e, as a result of which the acoustic effect application section 320 applies an acoustic effect such as a vibrato effect, a tremolo effect, or a wah effect to the output data 321 output by the voice synthesis section 302.


Effect application instruction data 215e is input to the acoustic effect application section 320 in accordance with the pressing of a second key (for example, a black key) within a prescribed range from a first key that has been pressed by a user (for example, within one octave). The greater the difference in pitch between the first key and the second key, the greater the acoustic effect that is applied by the acoustic effect application section 320.


As illustrated in FIG. 3, the voice training section 301 may, for example, be implemented as part of functionality performed by a separate server computer 300 provided outside the electronic keyboard instrument 100 in FIG. 1. Alternatively, although not illustrated in FIG. 3, if the voice synthesis LSI 205 in FIG. 2 has spare processing capacity, the voice training section 301 may be built into the electronic keyboard instrument 100 and implemented as part of functionality performed by the voice synthesis LSI 205.


The voice training section 301 and the voice synthesis section 302 in FIG. 2 are implemented on the basis of, for example, the “statistical parametric speech synthesis based on deep learning” techniques described in Non-Patent Document 1, cited below.


(Non-Patent Document 1)

  • Kei Hashimoto and Shinji Takaki, “Statistical parametric speech synthesis based on deep learning”, Journal of the Acoustical Society of Japan, vol. 73, no. 1 (2017), pp. 55-62


The voice training section 301 in FIG. 2, which is functionality performed by the external server computer 300 illustrated in FIG. 3, for example, includes a training text analysis unit 303, a training acoustic feature extraction unit 304, and a model training unit 305.


The voice training section 301, for example, uses voice sounds that were recorded when a given singer sang a plurality of songs in an appropriate genre as training singing voice data for a given singer 312. Lyric text (training lyric data 311a) for each song is also prepared as training musical score data 311.


The training text analysis unit 303 is input with training musical score data 311, including lyric text (training lyric data 311a) and musical note data (training pitch data 311b), and the training text analysis unit 303 analyzes this data. The training text analysis unit 303 accordingly estimates and outputs a training linguistic feature sequence 313, which is a discrete numerical sequence expressing, inter alia, phonemes and pitches corresponding to the training musical score data 311.


In addition to this input of training musical score data 311, the training acoustic feature extraction unit 304 receives and analyzes training singing voice data for a given singer 312 that has been recorded via a microphone or the like when a given singer sang (for approximately two to three hours, for example) lyric text corresponding to the training musical score data 311. The training acoustic feature extraction unit 304 accordingly extracts and outputs a training acoustic feature sequence 314 representing phonetic features corresponding to the training singing voice data for a given singer 312.


As described in Non-Patent Document 1, in accordance with Equation (1) below, the model training unit 305 uses machine learning to estimate an acoustic model {circumflex over (λ)} with which the probability (P(o|l,λ)) that a training acoustic feature sequence 314 (o) will be generated given a training linguistic feature sequence 313 (l) and an acoustic model (λ) is maximized. In other words, a relationship between a linguistic feature sequence (text) and an acoustic feature sequence (voice sounds) is expressed using a statistical model, which here is referred to as an acoustic model.

{circumflex over (λ)}=arg maxλP(o|l,λ)  (1)


Here, arg max denotes a computation that calculates the value of the argument underneath arg max that yields the greatest value for the function to the right of arg max.


The model training unit 305 outputs, as training result 315, model parameters expressing the acoustic model {circumflex over (λ)} that have been calculated using Equation (1) through the employ of machine learning.


As illustrated in FIG. 3, the training result 315 (model parameters) may, for example, be stored in the ROM 202 of the control system in FIG. 2 for the electronic keyboard instrument 100 in FIG. 1 when the electronic keyboard instrument 100 is shipped from the factory, and may be loaded into the trained acoustic model 306, described later, in the voice synthesis LSI 205 from the ROM 202 in FIG. 2 when the electronic keyboard instrument 100 is powered on. Alternatively, as illustrated in FIG. 3, as a result of user operation of the second switch panel 103 on the electronic keyboard instrument 100, the training result 315 may, for example, be downloaded from the Internet, a universal serial bus (USB) cable, or other network via a non-illustrated network interface 219 and into the trained acoustic model 306, described later, in the voice synthesis LSI 205.


The voice synthesis section 302, which is functionality performed by the voice synthesis LSI 205, includes a text analysis unit 307, the trained acoustic model 306, and a vocalization model unit 308. The voice synthesis section 302 performs statistical voice synthesis processing in which output data 321, corresponding to singing voice data 215 including lyric text, is synthesized by making predictions using the statistical model, referred to herein as an acoustic model, set in the trained acoustic model 306.


As a result of a performance by a user made in concert with an automatic performance, the text analysis unit 307 is input with singing voice data 215, which includes information relating to phonemes, pitches, and the like for lyrics specified by the CPU 201 in FIG. 2, and the text analysis unit 307 analyzes this data. The text analysis unit 307 performs this analysis and outputs a linguistic feature sequence 316 expressing, inter alia, phonemes, parts of speech, and words corresponding to the singing voice data 215.


As described in Non-Patent Document 1, the trained acoustic model 306 is input with the linguistic feature sequence 316, and using this, the trained acoustic model 306 estimates and outputs an acoustic feature sequence 317 (acoustic feature data 317) corresponding thereto. In other words, in accordance with Equation (2) below, the trained acoustic model 306 estimates a value (ô) for an acoustic feature sequence 317 at which the probability (P(o|l,{circumflex over (λ)})) that an acoustic feature sequence 317 (o) will be generated based on a linguistic feature sequence 316 (l) input from the text analysis unit 307 and an acoustic model {circumflex over (λ)} set using the training result 315 of machine learning performed in the model training unit 305 is maximized.

ô=arg maxoP(o|l,{circumflex over (λ)})  (2)


The vocalization model unit 308 is input with the acoustic feature sequence 317. With this, the vocalization model unit 308 generates output data 321 corresponding to the singing voice data 215 including lyric text specified by the CPU 201. An acoustic effect is applied to the output data 321 in the acoustic effect application section 322, described later, and the output data 321 is converted into the final inferred singing voice data 217. This inferred singing voice data 217 is output from the D/A converter 212, goes through the mixer 213 and the amplifier 214 in FIG. 2, and is emitted from the non-illustrated speaker.


The acoustic features expressed by the training acoustic feature sequence 314 and the acoustic feature sequence 317 include spectral information that models the vocal tract of a person, and sound source information that models the vocal chords of a person. A mel-cepstrum, line spectral pairs (LSP), or the like may be employed for the spectral information. A power value and a fundamental frequency (F0) indicating the pitch frequency of the voice of a person may be employed for the sound source information. The vocalization model unit 308 includes a sound source generator 309 and a synthesis filter 310. The sound source generator 309 models the vocal cords of a person. When a user turns the vocoder mode OFF using the first switch panel 102 in FIG. 1 (when the second mode is specified), a vocoder mode switch 320 connects the sound source generator 309 to the synthesis filter 310. As a result, the sound source generator 309 is sequentially input with a sound source data 319 sequence from the trained acoustic model 306. Thereby, the sound source generator 309, for example, generates a sound source signal that is made up of a pulse train (for voiced phonemes) that periodically repeats with a fundamental frequency (F0) and power value contained in the sound source data 319, that is made up of white noise (for unvoiced phonemes) with a power value contained in the sound source data 319, or that is made up of a signal in which a pulse train and white noise are mixed together. This sound source signal is input to the synthesis filter 310 via the vocoder mode switch 320. However, when the user turns the vocoder mode ON using the first switch panel 102 in FIG. 1 (when the first mode is specified by operation of a switching operation element), the vocoder mode switch 320 causes instrument sound waveform data 220 in the designated sound generation channels (single or plural channels) of the sound source LSI 204 in FIG. 2 to be input to the synthesis filter 310. The synthesis filter 310 models the vocal tract of a person. The synthesis filter 310 forms a digital filter that models the vocal tract on the basis of a spectral data 318 sequence sequentially input thereto from the trained acoustic model 306, and using either the sound source signal input from the sound source generator 309 or the instrument sound waveform data 220 from the designated sound generation channels (single or plural channels) of the sound source LSI 204 as an excitation signal, generates and outputs inferred singing voice data 217 in the form of a digital signal. When the vocoder mode is ON, the instrument sound waveform data 220 input from the sound source LSI 204 is polyphonic data corresponding to the designated sound generation channel(s).


As described above, when the vocoder mode is turned OFF by a user using the first switch panel 102 in FIG. 1 (the second mode is specified by operation of the switching operation element), a sound source signal generated by the sound source generator 309 on the basis of sound source data 319 input from the trained acoustic model 306 is input to the synthesis filter 310 operating on the basis of spectral data 318 input from the trained acoustic model 306, and output data 321 is output from the synthesis filter 310. Output data 321 generated and output in this manner has been entirely modeled by the trained acoustic model 306, and thus results in a singing voice that is both natural-sounding and very faithful to the singing voice of the singer.


However, when the vocoder mode is turned ON (the first mode) by a user using the first switch panel 102 in FIG. 1, instrument sound waveform data 220 generated and output by the sound source LSI 204 based on the playing of the user on the keyboard 101 (FIG. 1) is input to the synthesis filter 310 operating on the basis of spectral data 318 input from the trained acoustic model 306, and output data 321 is output from the synthesis filter 310. Output data 321 generated and output in this manner uses instrument sounds generated by the sound source LSI 204 as a sound source signal. For this reason, although some faithfulness is lost when compared to the singing voice of the singer, the essence of instrument sounds set in the sound source LSI 204 as well as the vocal characteristics of the singing voice of the singer come through clearly, thus allowing effective output data 321 to be output. An effect in which a plurality of singing voices seem to be in harmony can also be achieved owing to polyphonic operation being possible in the vocoder mode.


The sound source LSI 204 may be operated such that, for example, at the same time that the output from a plurality of designated sound generation channels is supplied to the voice synthesis LSI 205 as instrument sound waveform data 220, the output of another channel(s) is output as normal musical sound output data 218. Operation is thus possible in which singing voices for a melody are vocalized by the voice synthesis LSI 205 at the same time that accompaniment sounds are produced as normal instrument sounds or instrument sounds for a melody line are produced.


The instrument sound waveform data 220 input to the synthesis filter 310 in the vocoder mode may be any kind of signal, but in terms of qualities as a sound source signal, instrument sounds that have many harmonic components and can be sustained for long durations, such as, for example, brass sounds, string sounds, and organ sounds, are preferable. Of course, a very amusing effect may be obtained even when, to achieve a greater effect, an instrument sound that does not remotely adhere to this standard, for example an instrument sound that sounds like an animal cry, is used. As one specific example, data obtained by sampling the cry of a pet dog, for example, is input to the synthesis filter 310 as an instrument sound. Sound is then produced from the speaker on the basis of inferred singing voice data 217 output from the synthesis filter 310 and through the acoustic effect application section 322. This results in a very amusing effect in which it sounds as if the pet dog were singing the lyrics.


A user can select an instrument sound to be used from among a plurality of instrument sounds by operating an input operation element (selection operation element) on the switch panel 102 or the like.


With the electronic musical instrument constituting one embodiment of the present invention, a user can easily switch between the first mode and the second mode merely by switching the vocoder mode ON (the first mode)/OFF (the second mode) in an operation on the first switch panel 102 in FIG. 1. In the first mode, singing voice data for which the way a singer sings has been inferred is output. In the second mode, a plurality of pieces of singing voice data reflecting characteristics of the way a singer sings are output. Further, a singing voice can be easily generated and output in either mode of the electronic musical instrument constituting one embodiment of the present invention. In other words, because it is possible to easily generate and output a variety of singing voices with the present invention, users are able to enjoy performances more.


The sampling frequency of the training singing voice data for a given singer 312 is, for example, 16 kHz (kilohertz). When a mel-cepstrum parameter obtained through mel-cepstrum analysis, for example, is employed for a spectral parameter contained in the training acoustic feature sequence 314 and the acoustic feature sequence 317, the frame update period is, for example, 5 msec (milliseconds). In addition, when mel-cepstrum analysis is performed, the length of the analysis window is 25 msec, and the window function is a twenty-fourth-order Blackman window function.


An acoustic effect such as a vibrato effect, a tremolo effect, or a wah effect is applied to the output data 321 output from the voice synthesis section 302 by the acoustic effect application section 322 in the voice synthesis LSI 205.


A “vibrato effect” refers to an effect whereby, when a note in a song is drawn out, the pitch level is periodically varied by a prescribed amount (depth).


A “tremolo effect” refers to an effect whereby one or more notes are rapidly repeated.


A “wah effect” is an effect whereby the peak-gain frequency of a bandpass filter is moved so as to yield a sound resembling a voice saying “wah-wah”.


When a user performs an operation whereby a second key (second operation element) on the keyboard 101 (FIG. 1) is repeatedly struck while a first key (first operation element) on the keyboard 101 for instructing a singing voice sound is causing output data 321 to be continuously output (while the first key is being pressed), an acoustic effect that has been pre-selected from among a vibrato effect, a tremolo effect, or a wah effect using the first switch panel 102 (FIG. 1) can be applied by the acoustic effect application section 322.


In this case, the user is able to vary the degree of the pitch effect in the acoustic effect application section 322 by, with respect to the pitch of the first key specifying a singing voice, specifying the second key that is repeatedly struck such that the difference in pitch between the second key and the first key is a desired difference. For example, the degree of the pitch effect can be made to vary such that the depth of the acoustic effect is set to a maximum value when the difference in pitch between the second key and the first key is one octave and such that the degree of the acoustic effect is weaker the lesser the difference in pitch.


The second key on the keyboard 101 that is repeatedly struck may be a white key. However, if the second key is a black key, for example, the second key is less liable to interfere with a performance operation on the first key for specifying the pitch of a singing voice sound.


In the present embodiment, it is thus possible to apply various additional acoustic effects in the acoustic effect application section 322 to output data 321 that is output from the voice synthesis section 302 to generate the final inferred singing voice data 217.


It should be noted that the application of an acoustic effect ends when no key presses on the second key have been detected for a set time (for example, several hundred milliseconds).


As another example, such an acoustic effect may be applied by just one press of the second key while the first key is being pressed, in other words, without repeatedly striking the second key as above. In this case too, the depth of the acoustic effect may change in accordance with the difference in pitch between the first key and the second key. The acoustic effect may be also applied while the second key is being pressed, and application of the acoustic effect ended in accordance with the detection of release of the second key.


As yet another example, such an acoustic effect may be applied even when the first key is released after the pressing the second key while the first key was being pressed. This kind of pitch effect may also be applied upon the detection of a “trill”, whereby the first key and the second key are repeatedly struck in an alternating manner.


In the present specification, as a matter of convenience, the musical technique whereby such acoustic effects are applied is sometimes called “what is referred to as a legato playing style”.


Next, a first embodiment of statistical voice synthesis processing performed by the voice training section 301 and the voice synthesis section 302 in FIG. 3 will be described. In the first embodiment of statistical voice synthesis processing, hidden Markov models (HMMs), described in Non-Patent Document 1 above and Non-Patent Document 2 below, are used for acoustic models expressed by the training result 315 (model parameters) set in the trained acoustic model 306.


(Non-Patent Document 2)

  • Shinji Sako, Keijiro Saino, Yoshihiko Nankaku, Keiichi Tokuda, and Tadashi Kitamura, “A trainable singing voice synthesis system capable of representing personal characteristics and singing styles”, Information Processing Society of Japan (IPSJ) Technical Report, Music and Computer (MUS) 2008 (12 (2008-MUS-074)), pp. 39-44, 2008-02-08


In the first embodiment of statistical voice synthesis processing, when a user vocalizes lyrics in accordance with a given melody, HMM acoustic models are trained on how singing voice feature parameters, such as vibration of the vocal cords and vocal tract characteristics, change over time during vocalization. More specifically, the HMM acoustic models model, on a phoneme basis, spectrum and fundamental frequency (and the temporal structures thereof) obtained from the training singing voice data.


First, processing by the voice training section 301 in FIG. 3 in which HMM acoustic models are employed will be described. As described in Non-Patent Document 2, the model training unit 305 in the voice training section 301 is input with a training linguistic feature sequence 313 output by the training text analysis unit 303 and a training acoustic feature sequence 314 output by the training acoustic feature extraction unit 304, and therewith trains maximum likelihood HMM acoustic models on the basis of Equation (1) above. The likelihood function for the HMM acoustic models is expressed by Equation (3) below.













P


(


o
|
l

,
λ

)


=





q




P


(


o
|
q

,
λ

)




P


(


q
|
l

,
λ

)










=





q






t
=
1

T








P


(



o
t

|

q
t


,
λ

)




P


(



q
t

|

q

t
-
1



,
l
,
λ

)











=





q






t
=
1

T





(



o
t

|

μ

q
t



,

Σ

q
t



)



a


q

t
-
1




q
t













(
3
)







Here, ot represents an acoustic feature in frame t, T represents the number of frames, q=(q1, . . . , qT) represents the state sequence of a HMM acoustic model, and qt represents the state number of the HMM acoustic model in frame t. Further, aqt-1qt represents the state transition probability from state qt-1 to state qt, and custom character(otqtqt) is the normal distribution of a mean vector μqt and a covariance matrix Σqt and represents an output probability distribution for state qt. An expectation-maximization (EM) algorithm is used to efficiently train HMM acoustic models based on maximum likelihood criterion.


The spectral parameters of singing voice sounds can be modeled using continuous HMMs. However, because logarithmic fundamental frequency (F0) is a variable dimension time series signal that takes on a continuous value in voiced segments and is not defined in unvoiced segments, fundamental frequency (F0) cannot be directly modeled by regular continuous HMMs or discrete HMMs. Multi-space probability distribution HMMs (MSD-HMMs), which are HMMs based on a multi-space probability distribution compatible with variable dimensionality, are thus used to simultaneously model mel-cepstrums (spectral parameters), voiced sounds having a logarithmic fundamental frequency (F0), and unvoiced sounds as multidimensional Gaussian distributions, Gaussian distributions in one-dimensional space, and Gaussian distributions in zero-dimensional space, respectively.


As for the features of phonemes making up a singing voice, it is known that even for identical phonemes, acoustic features may vary due to being influenced by various factors. For example, the spectrum and logarithmic fundamental frequency (F0) of a phoneme, which is a basic phonological unit, may change depending on, for example, singing style, tempo, or on preceding/subsequent lyrics and pitches. Factors such as these that exert influence on acoustic features are called “context”. In the first embodiment of statistical voice synthesis processing, HMM acoustic models that take context into account (context-dependent models) can be employed in order to accurately model acoustic features in voice sounds. Specifically, the training text analysis unit 303 may output a training linguistic feature sequence 313 that takes into account not only phonemes and pitch on a frame-by-frame basis, but also factors such as preceding and subsequent phonemes, accent and vibrato immediately prior to, at, and immediately after each position, and so on. In order to make dealing with combinations of context more efficient, decision tree based context clustering may be employed. Context clustering is a technique in which a binary tree is used to divide a set of HMM acoustic models into a tree structure, whereby HMM acoustic models are grouped into clusters having similar combinations of context. Each node within a tree is associated with a bifurcating question such as “Is the preceding phoneme /a/?” that distinguishes context, and each leaf node is associated with a training result 315 (model parameters) corresponding to a particular HMM acoustic model. For any combination of contexts, by traversing the tree in accordance with the questions at the nodes, one of the leaf nodes can be reached and the training result 315 (model parameters) corresponding to that leaf node selected. By selecting an appropriate decision tree structure, highly accurate and highly generalized HMM acoustic models (context-dependent models) can be estimated.



FIG. 4 is a diagram for explaining HMM decision trees in the first embodiment of statistical voice synthesis processing. States for each context-dependent phoneme are, for example, associated with a HMM made up of three states 401 (#1, #2, and #3) illustrated at (a) in FIG. 4. The arrows coming in and out of each state illustrate state transitions. For example, state 401 (#1) models the beginning of a phoneme. Further, state 401 (#2), for example, models the middle of the phoneme. Finally, state 401 (#3), for example, models the end of the phoneme.


The duration of states 401 #1 to #3 indicated by the HMM at (a) in FIG. 4, which depends on phoneme length, is determined using the state duration model at (b) in FIG. 4. As a result of training, the model training unit 305 in FIG. 3 generates a state duration decision tree 402 for determining state duration from a training linguistic feature sequence 313 corresponding to context for a large number of phonemes relating to state duration extracted from training musical score data 311 in FIG. 3 by the training text analysis unit 303 in FIG. 3, and this state duration decision tree 402 is set as a training result 315 in the trained acoustic model 306 in the voice synthesis section 302.


As a result of training, the model training unit 305 in FIG. 3 also, for example, generates a mel-cepstrum parameter decision tree 403 for determining mel-cepstrum parameters from a training acoustic feature sequence 314 corresponding to a large number of phonemes relating to mel-cepstrum parameters extracted from training singing voice data for a given singer 312 in FIG. 3 by the training acoustic feature extraction unit 304 in FIG. 3, and this mel-cepstrum parameter decision tree 403 is set as the training result 315 in the trained acoustic model 306 in the voice synthesis section 302.


As a result of training, the model training unit 305 in FIG. 3 also, for example, generates a logarithmic fundamental frequency decision tree 404 for determining logarithmic fundamental frequency (F0) from a training acoustic feature sequence 314 corresponding to a large number of phonemes relating to logarithmic fundamental frequency (F0) extracted from training singing voice data for a given singer 312 in FIG. 3 by the training acoustic feature extraction unit 304 in FIG. 3, and sets this logarithmic fundamental frequency decision tree 404 is set as the training result 315 in the trained acoustic model 306 in the voice synthesis section 302. It should be noted that as described above, voiced segments having a logarithmic fundamental frequency (F0) and unvoiced segments are respectively modeled as one-dimensional and zero-dimensional Gaussian distributions using MSD-HMMs compatible with variable dimensionality to generate the logarithmic fundamental frequency decision tree 404.


Moreover, as a result of training, the model training unit 305 in FIG. 3 may also generate a decision tree for determining context such as accent and vibrato on pitches from a training linguistic feature sequence 313 corresponding to context for a large number of phonemes relating to state duration extracted from training musical score data 311 in FIG. 3 by the training text analysis unit 303 in FIG. 3, and set this decision tree as the training result 315 in the trained acoustic model 306 in the voice synthesis section 302.


Next, processing by the voice synthesis section 302 in FIG. 3 in which HMM acoustic models are employed will be described. The trained acoustic model 306 is input with a linguistic feature sequence 316 output by the text analysis unit 307 relating to phonemes in lyrics, pitch, and other context. For each context, the trained acoustic model 306 references the decision trees 402, 403, 404, etc., illustrated in FIG. 4, concatenates the HMMs, and then predicts the acoustic feature sequence 317 (spectral data 318 and sound source data 319) with the greatest probability of being output from the concatenated HMMs.


As described in the above-referenced Non-Patent Documents, in accordance with Equation (2), the trained acoustic model 306 estimates a value (ô) for an acoustic feature sequence 317 at which the probability (P(o|l,{circumflex over (λ)})) that an acoustic feature sequence 317 (o) will be generated based on a linguistic feature sequence 316 (l) input from the text analysis unit 307 and an acoustic model {circumflex over (λ)} set using the training result 315 of machine learning performed in the model training unit 305 is maximized. Using the state sequence {circumflex over (q)}=arg maxq P(q|l,{circumflex over (λ)}) estimated by the state duration model at (b) in FIG. 4, Equation (2) is approximated as in Equation (4) below.














o
^

=




argmax
o





q




P


(


o
|
q

,

λ
^


)




P


(


q
|
l

,

λ
^


)
















argmax
o



P


(


o
|

q
^


,

λ
^


)









=




argmax
o




(


o
|

μ

q
^



,



q
^



)








=



μ

q
^












Here
,


μ

q
^


=


[


μ


q
^

1

T

,





,

μ


q
^

T

T


]

T













q
^




=

diag


[





q
^

1




,





,




q
^

T




]




,





(
4
)








and μ{circumflex over (q)}t and Σ{circumflex over (q)}t are the mean vector and the covariance matrix, respectively, in state {circumflex over (q)}t. Using linguistic feature sequence l, the mean vectors and the covariance matrices are calculated by traversing each decision tree that has been set in the trained acoustic model 306. According to Equation (4), the estimated value (ô) for an acoustic feature sequence 317 is obtained using the mean vector μ{circumflex over (q)}. However, μ{circumflex over (q)} is a discontinuous sequence that changes in a step-like manner where there is a state transition. In terms of naturalness, low quality voice synthesis results when the synthesis filter 310 synthesizes output data 321 from a discontinuous acoustic feature sequence 317 such as this. In the first embodiment of statistical voice synthesis processing, a training result 315 (model parameter) generation algorithm that takes dynamic features into account may accordingly be employed in the model training unit 305. In cases where an acoustic feature sequence (ot=[ctT,ΔctT]T) in frame t is composed of a static feature ct and a dynamic feature Δct, the acoustic feature sequence (o=[o1T, . . . , oTT]T) is expressed over all times with Equation (5) below.

o=Wc  (5)


Here, W is a matrix whereby an acoustic feature sequence o containing a dynamic feature is obtained from static feature sequence c=[c1T, . . . , cTT]T. With Equation (5) as a constraint, the model training unit 305 solves Equation (4) as expressed by Equation (6) below.

ĉ=arg maxccustom character(Wc|μ{circumflex over (q)}{circumflex over (q)})  (6)


Here, ĉ is the static feature sequence with the greatest probability of output under dynamic feature constraint. By taking dynamic features into account, discontinuities at state boundaries can be resolved, enabling a smoothly changing acoustic feature sequence 317 to be obtained. This also makes it possible for high quality singing voice sound output data 321 to be generated in the synthesis filter 310.


It should be noted that phoneme boundaries in the singing voice data often are not aligned with the boundaries of musical notes established by the musical score. Such timewise fluctuations are considered to be essential in terms of musical expression. Accordingly, in the first embodiment of statistical voice synthesis processing employing HMM acoustic models described above, in the vocalization of singing voices, a technique may be employed that assumes that there will be time disparities due to various influences, such as phonological differences during vocalization, pitch, or rhythm, and that models lag between vocalization timings in the training data and the musical score. Specifically, as a model for lag on a musical note basis, lag between a singing voice, as viewed in units of musical notes, and a musical score may be represented using a one-dimensional Gaussian distribution and handled as a context-dependent HMM acoustic model similarly to other spectral parameters, logarithmic fundamental frequencies (F0), and the like. In singing voice synthesis such as this, in which HMM acoustic models that include context for “lag” are employed, after the boundaries in time represented by a musical score have been established, maximizing the joint probability of both the phoneme state duration model and the lag model on a musical note basis makes it possible to determine a temporal structure that takes fluctuations of musical note in the training data into account.


Next, a second embodiment of the statistical voice synthesis processing performed by the voice training section 301 and the voice synthesis section 302 in FIG. 3 will be described. In the first embodiment of statistical voice synthesis processing, in order to predict an acoustic feature sequence 317 from a linguistic feature sequence 316, the trained acoustic model 306 is implemented using a deep neural network (DNN). Correspondingly, the model training unit 305 in the voice training section 301 learns model parameters representing non-linear transformation functions for neurons in the DNN that transform linguistic features into acoustic features, and the model training unit 305 outputs, as the training result 315, these model parameters to the DNN of the trained acoustic model 306 in the voice synthesis section 302.


As described in the above-referenced Non-Patent Documents, normally, acoustic features are calculated in units of frames that, for example, have a width of 5.1 msec (milliseconds), and linguistic features are calculated in phoneme units. Accordingly, the unit of time for linguistic features differs from that for acoustic features. In the first embodiment of statistical voice synthesis processing in which HMM acoustic models are employed, correspondence between acoustic features and linguistic features is expressed using a HMM state sequence, and the model training unit 305 automatically learns the correspondence between acoustic features and linguistic features based on the training musical score data 311 and training singing voice data for a given singer 312 in FIG. 3. In contrast, in the second embodiment of statistical voice synthesis processing in which a DNN is employed, the DNN set in the trained acoustic model 306 is a model that represents a one-to-one correspondence between an input linguistic feature sequence 316 and an output acoustic feature sequence 317, and so the DNN cannot be trained using an input-output data pair having differing units of time. For this reason, in the second embodiment of statistical voice synthesis processing, the correspondence between acoustic feature sequences given in frames and linguistic feature sequences given in phonemes is established in advance, whereby pairs of acoustic features and linguistic features given in frames are generated.



FIG. 5 is a diagram for explaining the operation of the voice synthesis LSI 205, and illustrates the aforementioned correspondence. For example, when the singing voice phoneme sequence (linguistic feature sequence) /k/ /i/ /r/ /a/ /k/ /i/ ((b) in FIG. 5) corresponding to the lyric string “Ki Ra Ki” ((a) in FIG. 5) at the beginning of a song has been acquired, this linguistic feature sequence is mapped to an acoustic feature sequence given in frames ((c) in FIG. 5) in a one-to-many relationship (the relationship between (b) and (c) in FIG. 5). It should be noted that because linguistic features are used as inputs to the DNN of the trained acoustic model 306, it is necessary to express the linguistic features as numerical data. Numerical data obtained by concatenating binary data (0 or 1) or continuous values responsive to contextual questions such as “Is the preceding phoneme /a/?” and “How many phonemes does the current word contain?” is prepared for the linguistic feature sequence for this reason.


In the second embodiment of statistical voice synthesis processing, the model training unit 305 in the voice training section 301 in FIG. 3, as depicted using the group of dashed arrows 501 in FIG. 5, trains the DNN of the trained acoustic model 306 by sequentially passing, in frames, pairs of individual phonemes in a training linguistic feature sequence 313 phoneme sequence (corresponding to (b) in FIG. 5) and individual frames in a training acoustic feature sequence 314 (corresponding to (c) in FIG. 5) to the DNN. The DNN of the trained acoustic model 306, as depicted using the groups of gray circles in FIG. 5, contains neuron groups each made up of an input layer, one or more middle layer, and an output layer.


During voice synthesis, a linguistic feature sequence 316 phoneme sequence (corresponding to (b) in FIG. 5) is input to the DNN of the trained acoustic model 306 in frames. The DNN of the trained acoustic model 306, as depicted using the group of heavy solid arrows 502 in FIG. 5, consequently outputs an acoustic feature sequence 317 in frames. For this reason, in the vocalization model unit 308, the sound source data 319 and the spectral data 318 contained in the acoustic feature sequence 317 are respectively passed to the sound source generator 309 and the synthesis filter 310, and voice synthesis is performed in frames.


The vocalization model unit 308, as depicted using the group of heavy solid arrows 503 in FIG. 5, consequently outputs 225 samples, for example, of output data 321 per frame. Because each frame has a width of 5.1 msec, one sample corresponds to 5.1 msec÷225≈0.0227 msec. The sampling frequency of the output data 321 is therefore 1/0.0227≈44 kHz (kilohertz).


As described in the above-referenced Non-Patent Documents, the DNN is trained so as to minimize squared error. This is computed according to Equation (7) below using pairs of acoustic features and linguistic features denoted in frames.

{circumflex over (λ)}=arg minλ½Σt=1T∥ot−gλ(lt)∥2  (7)


In this equation, ot and lt respectively represent an acoustic feature and a linguistic feature in the tth frame t, {circumflex over (λ)} represents model parameters for the DNN of the trained acoustic model 306, and gλ(⋅) is the non-linear transformation function represented by the DNN. The model parameters for the DNN are able to be efficiently estimated through backpropagation. When correspondence with processing within the model training unit 305 in the statistical voice synthesis represented by Equation (1) is taken into account, DNN training can represented as in Equation (8) below.













λ
^

=



arg







max
λ



P


(


o
|
l

,
λ

)










=



arg







max
λ






t
=
1

T





(



o
t

|


μ
~

t


,



t

~


)












(
8
)







Here, {tilde over (μ)}t is given as in Equation (9) below.

{tilde over (μ)}t=gλ(lt)  (9)


As in Equation (8) and Equation (9), relationships between acoustic features and linguistic features are able to be expressed using the normal distribution custom character(ot|{tilde over (μ)}t,{tilde over (Σ)}t), which uses output from the DNN for the mean vector. In the second embodiment of statistical voice synthesis processing in which a DNN is employed, normally, independent covariance matrices are used for linguistic feature sequences lt. In other words, in all frames, the same covariance matrix {tilde over (Σ)}g is used for the linguistic feature sequences lt. When the covariance matrix {tilde over (Σ)}g is an identity matrix, Equation (8) expresses a training process equivalent to that in Equation (7).


As described in FIG. 5, the DNN of the trained acoustic model 306 estimates an acoustic feature sequence 317 for each frame independently. For this reason, the obtained acoustic feature sequences 317 contain discontinuities that lower the quality of voice synthesis. Accordingly, a parameter generation algorithm employing dynamic features similar to that used in the first embodiment of statistical voice synthesis processing is, for example, used in the present embodiment. This allows the quality of voice synthesis to be improved.


Detailed description follows regarding the operation of the embodiment of the electronic keyboard instrument 100 of FIGS. 1 and 2 in which the statistical voice synthesis processing described in FIGS. 3 to 5 is employed. FIG. 6 is a diagram illustrating, for the present embodiment, an example data configuration for musical piece data loaded into the RAM 203 from the ROM 202 in FIG. 2. This example data configuration conforms to the Standard MIDI (Musical Instrument Digital Interface) File format, which is one file format used for MIDI files. The musical piece data is configured by data blocks called “chunks”. Specifically, the musical piece data is configured by a header chunk at the beginning of the file, a first track chunk that comes after the header chunk and stores lyric data for a lyric part, and a second track chunk that stores performance data for an accompaniment part.


The header chunk is made up of five values: ChunkID, ChunkSize, FormatType, NumberOfTrack, and TimeDivision. ChunkID is a four byte ASCII code “4D 54 68 64” (in base 16) corresponding to the four half-width characters “MThd”, which indicates that the chunk is a header chunk. ChunkSize is four bytes of data that indicate the length of the FormatType, NumberOfTrack, and TimeDivision part of the header chunk (excluding ChunkID and ChunkSize). This length is always “00 00 00 06” (in base 16), for six bytes. FormatType is two bytes of data “00 01” (in base 16). This means that the format type is format 1, in which multiple tracks are used. NumberOfTrack is two bytes of data “00 02” (in base 16). This indicates that in the case of the present embodiment, two tracks, corresponding to the lyric part and the accompaniment part, are used. TimeDivision is data indicating a timebase value, which itself indicates resolution per quarter note. TimeDivision is two bytes of data “01 E0” (in base 16). In the case of the present embodiment, this indicates 480 in decimal notation.


The first and second track chunks are each made up of a ChunkID, ChunkSize, and performance data pairs. The performance data pairs are made up of DeltaTime_1[i] and Event_1[i] (for the first track chunk/lyric part), or DeltaTime_2[i] and Event_2[i] (for the second track chunk/accompaniment part). Note that 0≤i≤L for the first track chunk/lyric part, 0≤i≤M for the second track chunk/accompaniment part. ChunkID is a four byte ASCII code “4D 54 72 6B” (in base 16) corresponding to the four half-width characters “MTrk”, which indicates that the chunk is a track chunk. ChunkSize is four bytes of data that indicate the length of the respective track chunk (excluding ChunkID and ChunkSize).


DeltaTime_1[i] is variable-length data of one to four bytes indicating a wait time (relative time) from the execution time of Event_1[i−1] immediately prior thereto. Similarly, DeltaTime_2[i] is variable-length data of one to four bytes indicating a wait time (relative time) from the execution time of Event_2[i−1] immediately prior thereto. Event_1[i] is a meta event (timing information) designating the vocalization timing and pitch of a lyric in the first track chunk/lyric part. Event_2[i] is a MIDI event (timing information) designating “note on” or “note off” or is a meta event designating time signature in the second track chunk/accompaniment part. In each DeltaTime_1[i] and Event_1[i] performance data pair of the first track chunk/lyric part, Event_1[i] is executed after a wait of DeltaTime_1[i] from the execution time of the Event_1[i−1] immediately prior thereto. The vocalization and progression of lyrics is realized thereby. In each DeltaTime_2[i] and Event_2[i] performance data pair of the second track chunk/accompaniment part, Event_2[i] is executed after a wait of DeltaTime_2[i] from the execution time of the Event_2[i−1] immediately prior thereto. The progression of automatic accompaniment is realized thereby.



FIG. 7 is a main flowchart illustrating an example of a control process for the electronic musical instrument of the present embodiment. For this control process, for example, the CPU 201 in FIG. 2 executes a control processing program loaded into the RAM 203 from the ROM 202.


After first performing initialization processing (step S701), the CPU 201 repeatedly executes the series of processes from step S702 to step S708.


In this repeat processing, the CPU 201 first performs switch processing (step S702). Here, based on an interrupt from the key scanner 206 in FIG. 2, the CPU 201 performs processing corresponding to the operation of a switch on the first switch panel 102 or the second switch panel 103 in FIG. 1.


Next, based on an interrupt from the key scanner 206 in FIG. 2, the CPU 201 performs keyboard processing (step S703) that determines whether or not any of the keys on the keyboard 101 in FIG. 1 have been operated, and proceeds accordingly. Here, in response to an operation by a user pressing or releasing any of the keys, the CPU 201 outputs musical sound control data 216 instructing the sound source LSI 204 in FIG. 2 to start generating sound or to stop generating sound.


Next, the CPU 201 processes data that should be displayed on the LCD 104 in FIG. 1, and performs display processing (step S704) that displays this data on the LCD 104 via the LCD controller 208 in FIG. 2. Examples of the data that is displayed on the LCD 104 include lyrics corresponding to the inferred singing voice data 217 being performed, the musical score for the melody corresponding to the lyrics, and information relating to various settings.


Next, the CPU 201 performs song playback processing (step S705). In this processing, the CPU 201 performs a control process described in FIG. 5 on the basis of a performance by a user, generates singing voice data 215, and outputs this data to the voice synthesis LSI 205.


Then, the CPU 201 performs sound source processing (step S706). In the sound source processing, the CPU 201 performs control processing such as that for controlling the envelope of musical sounds being generated in the sound source LSI 204.


Then, the CPU 201 performs voice synthesis processing (step S707). In the voice synthesis processing, the CPU 201 controls voice synthesis by the voice synthesis LSI 205.


Finally, the CPU 201 determines whether or not a user has pressed a non-illustrated power-off switch to turn off the power (step S708). If the determination of step S708 is NO, the CPU 201 returns to the processing of step S702. If the determination of step S708 is YES, the CPU 201 ends the control process illustrated in the flowchart of FIG. 7 and powers off the electronic keyboard instrument 100.



FIGS. 8A to 8C are flowcharts respectively illustrating detailed examples of the initialization processing at step S701 in FIG. 7; tempo-changing processing at step S902 in FIG. 9, described later, during the switch processing of step S702 in FIG. 7; and similarly, song-starting processing at step S906 in FIG. 9 during the switch processing of step S702 in FIG. 7, described later.


First, in FIG. 8A, which illustrates a detailed example of the initialization processing at step S701 in FIG. 7, the CPU 201 performs TickTime initialization processing. In the present embodiment, the progression of lyrics and automatic accompaniment progress in a unit of time called TickTime. The timebase value, specified as the TimeDivision value in the header chunk of the musical piece data in FIG. 6, indicates resolution per quarter note. If this value is, for example, 480, each quarter note has a duration of 480 TickTime. The DeltaTime_1[i] values and the DeltaTime_2[i] values, indicating wait times in the track chunks of the musical piece data in FIG. 6, are also counted in units of TickTime. The actual number of seconds corresponding to 1 TickTime differs depending on the tempo specified for the musical piece data. Taking a tempo value as Tempo (beats per minute) and the timebase value as TimeDivision, the number of seconds per unit of TickTime is calculated using the following equation.

TickTime (sec)=60/Tempo/TimeDivision  (10)


Accordingly, in the initialization processing illustrated in the flowchart of FIG. 8A, the CPU 201 first calculates TickTime (sec) by an arithmetic process corresponding to Equation (10) (step S801). A prescribed initial value for the tempo value Tempo, e.g., 60 (beats per second), is stored in the ROM 202 in FIG. 2. Alternatively, the tempo value from when processing last ended may be stored in non-volatile memory.


Next, the CPU 201 sets a timer interrupt for the timer 210 in FIG. 2 using the TickTime (sec) calculated at step S801 (step S802). A CPU 201 interrupt for lyric progression and automatic accompaniment (referred to below as an “automatic-performance interrupt”) is thus generated by the timer 210 every time the TickTime (sec) has elapsed. Accordingly, in automatic-performance interrupt processing (FIG. 10, described later) performed by the CPU 201 based on an automatic-performance interrupt, processing to control lyric progression and the progression of automatic accompaniment is performed every 1 TickTime.


Then, the CPU 201 performs additional initialization processing, such as that to initialize the RAM 203 in FIG. 2 (step S803). The CPU 201 subsequently ends the initialization processing at step S701 in FIG. 7 illustrated in the flowchart of FIG. 8A.


The flowcharts in FIGS. 8B and 8C will be described later. FIG. 9 is a flowchart illustrating a detailed example of the switch processing at step S702 in FIG. 7.


First, the CPU 201 determines whether or not the tempo of lyric progression and automatic accompaniment has been changed using a switch for changing tempo on the first switch panel 102 in FIG. 1 (step S901). If this determination is YES, the CPU 201 performs tempo-changing processing (step S902). The details of this processing will be described later using FIG. 8B. If the determination of step S901 is NO, the CPU 201 skips the processing of step S902.


Next, the CPU 201 determines whether or not a song has been selected with the second switch panel 103 in FIG. 1 (step S903). If this determination is YES, the CPU 201 performs song-loading processing (step S904). In this processing, musical piece data having the data structure described in FIG. 6 is loaded into the RAM 203 from the ROM 202 in FIG. 2. The song-loading processing does not have to come during a performance, and may come before the start of a performance. Subsequent data access of the first track chunk or the second track chunk in the data structure illustrated in FIG. 6 is performed with respect to the musical piece data that has been loaded into the RAM 203. If the determination of step S903 is NO, the CPU 201 skips the processing of step S904.


Then, the CPU 201 determines whether or not a switch for starting a song on the first switch panel 102 in FIG. 1 has been operated (step S905). If this determination is YES, the CPU 201 performs song-starting processing (step S906). The details of this processing will be described later using FIG. 8C. If the determination of step S905 is NO, the CPU 201 skips the processing of step S906.


Next, the CPU 201 determines whether or not the vocoder mode has been changed with the first switch panel 102 in FIG. 1 (step S907). If this determination is YES, the CPU 201 performs vocoder-mode-changing processing (step S908). In other words, the CPU 201 sets the vocoder mode to ON if up to this point the vocoder mode had been set to OFF. Conversely, the CPU 201 sets the vocoder mode to OFF if up to this point the vocoder mode had been set to ON. If the determination of step S907 is NO, the CPU 201 skips the processing of step S908. The CPU 201 sets the vocoder mode to ON or OFF by, for example, changing the value of a prescribed variable in the RAM 203 to 1 or 0. When the CPU 201 sets the vocoder mode to ON, the vocoder mode switch 320 in FIG. 3 is controlled such that instrument sound waveform data 220 from designated sound generation channels (single or plural channels) of the sound source LSI 204 in FIG. 2 are inputted to the synthesis filter 310. However, when the CPU 201 sets the vocoder mode to OFF, the vocoder mode switch 320 in FIG. 3 is controlled such that a sound source signal from the sound source generator 309 in FIG. 3 is input to the synthesis filter 310.


Then, the CPU 201 determines whether or not a switch for selecting an effect on the first switch panel 102 in FIG. 1 has been operated (step S909). If this determination is YES, the CPU 201 performs effect-selection processing (step S910). Here, as described above, a user selects which acoustic effect to apply from among a vibrato effect, a tremolo effect, or a wah effect using the first switch panel 102 when an acoustic effect is to be applied to the vocalized voice sound of the output data 321 output by the acoustic effect application section 322 in FIG. 3. As a result of this selection, the CPU 201 sets the acoustic effect application section 322 in the voice synthesis LSI 205 with whichever acoustic effect was selected. If the determination of step S909 is NO, the CPU 201 skips the processing of step S910.


Depending on the setting, a plurality of effects may be applied at the same time.


Finally, the CPU 201 determines whether or not any other switches on the first switch panel 102 or the second switch panel 103 in FIG. 1 have been operated, and performs processing corresponding to each switch operation (step S911). This processing includes processing for a switch for selecting tone color on the second switch panel 103 allowing, from a plurality of instrument sounds including at least one of a brass sound, a string sound, an organ sound, or an animal cry, the selection of any instrument sound from among the brass sound, the string sound, the organ sound, and the animal cry as the instrument sound for instrument sound waveform data 220 supplied to the vocalization model unit 308 in the voice synthesis LSI 205 from the sound source LSI 204 in FIGS. 2 and 3 when the vocoder mode described above has been selected by a user.


The CPU 201 subsequently ends the switch processing at step S702 in FIG. 7 illustrated in the flowchart of FIG. 9. This processing includes, for example, switch operations such as that for selecting the tone color of musical sounds for the vocoder mode and selecting the designated sound generation channel(s) for the vocoder mode.



FIG. 8B is a flowchart illustrating a detailed example of the tempo-changing processing at step S902 in FIG. 9. As mentioned previously, a change in the tempo value also results in a change in the TickTime (sec). In the flowchart of FIG. 8B, the CPU 201 performs a control process related to changing the TickTime (sec).


Similarly to at step S801 in FIG. 8A, which is performed in the initialization processing at step S701 in FIG. 7, the CPU 201 first calculates the TickTime (sec) by an arithmetic process corresponding to Equation (10) (step S811). It should be noted that the tempo value Tempo that has been changed using the switch for changing tempo on the first switch panel 102 in FIG. 1 is stored in the RAM 203 or the like.


Next, similarly to at step S802 in FIG. 8A, which is performed in the initialization processing at step S701 in FIG. 7, the CPU 201 sets a timer interrupt for the timer 210 in FIG. 2 using the TickTime (sec) calculated at step S811 (step S812). The CPU 201 subsequently ends the tempo-changing processing at step S902 in FIG. 9 illustrated in the flowchart of FIG. 8B.



FIG. 8C is a flowchart illustrating a detailed example of the song-starting processing at step S906 in FIG. 9.


First, with regards to the progression of automatic performance, the CPU 201 initializes the values of both a DeltaT_1 (first track chunk) variable and a DeltaT_2 (second track chunk) variable in the RAM 203 for counting, in units of TickTime, relative time since the last event to 0. Next, the CPU 201 initializes the respective values of an AutoIndex_1 variable in the RAM 203 for specifying an i value (1≤i≤L−1) for DeltaTime_1[i] and Event_1[i] performance data pairs in the first track chunk of the musical piece data illustrated in FIG. 6, and an AutoIndex_2 variable in the RAM 203 for specifying an i (1≤i≤M−1) for DeltaTime_2[i] and Event_2[i] performance data pairs in the second track chunk of the musical piece data illustrated in FIG. 6, to 0 (the above is step S821). Thus, in the example of FIG. 6, the DeltaTime_1[0] and Event_1[0] performance data pair at the beginning of first track chunk and the DeltaTime_2[0] and Event_2[0] performance data pair at the beginning of second track chunk are both referenced to set an initial state.


Next, the CPU 201 initializes the value of a SongIndex variable in the RAM 203, which designates the current song position, to 0 (step S822).


The CPU 201 also initializes the value of a SongStart variable in the RAM 203, which indicates whether to advance (=1) or not advance (=0) the lyrics and accompaniment, to 1 (progress) (step S823).


Then, the CPU 201 determines whether or not a user has configured the electronic keyboard instrument 100 to playback an accompaniment together with lyric playback using the first switch panel 102 in FIG. 1 (step S824).


If the determination of step S824 is YES, the CPU 201 sets the value of a Bansou variable in the RAM 203 to 1 (has accompaniment) (step S825). Conversely, if the determination of step S824 is NO, the CPU 201 sets the value of the Bansou variable to 0 (no accompaniment) (step S826). After the processing at step S825 or step S826, the CPU 201 ends the song-starting processing at step S906 in FIG. 9 illustrated in the flowchart of FIG. 8C.



FIG. 10 is a flowchart illustrating a detailed example of the automatic-performance interrupt processing performed based on the interrupts generated by the timer 210 in FIG. 2 every TickTime (sec) (see step S802 in FIG. 8A, or step S812 in FIG. 8B). The following processing is performed on the performance data pairs in the first and second track chunks in the musical piece data illustrated in FIG. 6.


First, the CPU 201 performs a series of processes corresponding to the first track chunk (steps S1001 to S1006). The CPU 201 starts by determining whether or not the value of SongStart is equal to 1, in other words, whether or not advancement of the lyrics and accompaniment has been instructed (step S1001).


When the CPU 201 has determined there to be no instruction to advance the lyrics and accompaniment (the determination of step S1001 is NO), the CPU 201 ends the automatic-performance interrupt processing illustrated in the flowchart of FIG. 10 without advancing the lyrics and accompaniment.


When the CPU 201 has determined there to be an instruction to advance the lyrics and accompaniment (the determination of step S1001 is YES), the CPU 201 then determines whether or not the value of DeltaT_1, which indicates the relative time since the last event in the first track chunk, matches the wait time DeltaTime_1[AutoIndex_1] of the performance data pair indicated by the value of AutoIndex_1 that is about to be executed (step S1002).


If the determination of step S1002 is NO, the CPU 201 increments the value of DeltaT_1, which indicates the relative time since the last event in the first track chunk, by 1, and the CPU 201 allows the time to advance by 1 TickTime corresponding to the current interrupt (step S1003). Following this, the CPU 201 proceeds to step S1007, which will be described later.


If the determination of step S1002 is YES, the CPU 201 executes the first track chunk event Event_1[AutoIndex_1] of the performance data pair indicated by the value of AutoIndex_1 (step S1004). This event is a song event that includes lyric data.


Then, the CPU 201 stores the value of AutoIndex_1, which indicates the position of the song event that should be performed next in the first track chunk, in the SongIndex variable in the RAM 203 (step S1004).


The CPU 201 then increments the value of AutoIndex_1 for referencing the performance data pairs in the first track chunk by 1 (step S1005).


Next, the CPU 201 resets the value of DeltaT_1, which indicates the relative time since the song event most recently referenced in the first track chunk, to 0 (step S1006). Following this, the CPU 201 proceeds to the processing at step S1007.


Then, the CPU 201 performs a series of processes corresponding to the second track chunk (steps S1007 to S1013). The CPU 201 starts by determining whether or not the value of DeltaT_2, which indicates the relative time since the last event in the second track chunk, matches the wait time DeltaTime_2[AutoIndex_2] of the performance data pair indicated by the value of AutoIndex_2 that is about to be executed (step S1007).


If the determination of step S1007 is NO, the CPU 201 increments the value of DeltaT_2, which indicates the relative time since the last event in the second track chunk, by 1, and the CPU 201 allows the time to advance by 1 TickTime corresponding to the current interrupt (step S1008). The CPU 201 subsequently ends the automatic-performance interrupt processing illustrated in the flowchart of FIG. 10.


If the determination of step S1007 is YES, the CPU 201 then determines whether or not the value of the Bansou variable in the RAM 203 that denotes accompaniment playback is equal to 1 (has accompaniment) (step S1009) (see steps S824 to S826 in FIG. 8C).


If the determination of step S1009 is YES, the CPU 201 executes the second track chunk accompaniment event Event_2[AutoIndex_2] indicated by the value of AutoIndex_2 (step S1010). If the event Event_2[AutoIndex_2] executed here is, for example, a “note on” event, the key number and velocity specified by this “note on” event are used to issue a command to the sound source LSI 204 in FIG. 2 to generate sound for a musical tone in the accompaniment. However, if the event Event_2[AutoIndex_2] is, for example, a “note off” event, the key number and velocity specified by this “note off” event are used to issue a command to the sound source LSI 204 in FIG. 2 to silence a musical tone being generated for the accompaniment.


However, if the determination of step S1009 is NO, the CPU 201 skips step S1010 and proceeds to the processing at the next step S1011 without executing the current accompaniment event Event_2[AutoIndex_2]. Here, in order to progress in sync with the lyrics, the CPU 201 performs only control processing that advances events.


After step S1010, or when the determination of step S1009 is NO, the CPU 201 increments the value of AutoIndex_2 for referencing the performance data pairs for accompaniment data in the second track chunk by 1 (step S1011).


Next, the CPU 201 resets the value of DeltaT_2, which indicates the relative time since the event most recently executed in the second track chunk, to 0 (step S1012).


Then, the CPU 201 determines whether or not the wait time DeltaTime_2[AutoIndex_2] of the performance data pair indicated by the value of AutoIndex_2 to be executed next in the second track chunk is equal to 0, or in other words, whether or not this event is to be executed at the same time as the current event (step S1013).


If the determination of step S1013 is NO, the CPU 201 ends the current automatic-performance interrupt processing illustrated in the flowchart of FIG. 10.


If the determination of step S1013 is YES, the CPU 201 returns to step S1009, and repeats the control processing relating to the event Event_2[AutoIndex_2] of the performance data pair indicated by the value of AutoIndex_2 to be executed next in the second track chunk. The CPU 201 repeatedly performs the processing of steps S1009 to S1013 same number of times as there are events to be simultaneously executed. The above processing sequence is performed when a plurality of “note on” events are to generate sound at simultaneous timings, as for example happens in chords and the like.



FIG. 11 is a flowchart illustrating a detailed example of the song playback processing at step S705 in FIG. 7.


First, at step S1004 in the automatic-performance interrupt processing of FIG. 10, the CPU 201 determines whether or not a value has been set for the SongIndex variable in the RAM 203, and that this value is not a null value (step S1101). The SongIndex value indicates whether or not the current timing is a singing voice playback timing.


If the determination of step S1101 is YES, that is, if the present time is a song playback timing, the CPU 201 then determines whether or not a new user key press on the keyboard 101 in FIG. 1 has been detected by the keyboard processing at step S703 in FIG. 7 (step S1102).


If the determination of step S1102 is YES, the CPU 201 sets the pitch specified by a user key press to a non-illustrated register, or to a variable in the RAM 203, as a vocalization pitch (step S1103).


Next, the CPU 201 determines whether the vocoder mode is currently ON or OFF by, for example, checking the value of the prescribed variable in the RAM 203 (step S1105).


If the determination at step S1105 is that the vocoder mode is ON, the CPU 201 generates “note on” data for producing musical sound in the designated sound generation channel(s) having the tone color set previously at step S909 in FIG. 9 and at a vocalization pitch set to the pitch based on a key press set at step S1103, and instructs the sound source LSI 204 to perform processing to produce musical sound (step S1106). The sound source LSI 204 generates a musical sound signal for the designated sound generation channel(s) with the designated tone color specified by the CPU 201, and this signal is input to the synthesis filter 310 as instrument sound waveform data 220 via the vocoder mode switch 320 in the voice synthesis LSI 205.


If the determination of step S1105 is that the vocoder mode is OFF, the CPU 201 skips the processing of step S1106. As a result, a sound source signal from the sound source generator 309 in the voice synthesis LSI 205 is input to the synthesis filter 310 via the vocoder mode switch 320.


Then, the CPU 201 reads the lyric string from the song event Event_1[SongIndex] in the first track chunk of the musical piece data in the RAM 203 indicated by the SongIndex variable in the RAM 203. The CPU 201 generates singing voice data 215 for vocalizing, at the vocalization pitch set to the pitch based on a key press that was set at step S1103, output data 321 corresponding to the lyric string that was read, and instructs the voice synthesis LSI 205 to perform vocalization processing (step S1107). The voice synthesis LSI 205 implements the first embodiment or the second embodiment of statistical voice synthesis processing described with reference to FIGS. 3 to 5, whereby lyrics from the RAM 203 specified as musical piece data are, in real time, synthesized into and output as output data 321 to be sung at the pitch(es) of keys on the keyboard 101 pressed by a user.


As a result, if the determination at step S1105 is that the vocoder mode is ON, musical sound output data 220 generated and output by the sound source LSI 204 based on the playing of a user on the keyboard 101 (FIG. 1) is input to the synthesis filter 310 operating on the basis of spectral data 318 input from the trained acoustic model 306, and output data 321 is output from the synthesis filter 310 in a polyphonic manner.


However, if the determination at step S1105 is that the vocoder mode is OFF, a sound source signal generated and output by the sound source generator 309 based on the playing of a user on the keyboard 101 (FIG. 1) is input to the synthesis filter 310 operating on the basis of spectral data 318 input from the acoustic model unit 306, and, operating monophonically, output data 321 is output from the synthesis filter 310.


If at step S1101 it is determined that the present time is a song playback timing and the determination of step S1102 is NO, that is, if it is determined that no new key press is detected at the present time, the CPU 201 reads the data for a pitch from the song event Event_1[SongIndex] in the first track chunk of the musical piece data in the RAM 203 indicated by the SongIndex variable in the RAM 203, and sets this pitch to a non-illustrated register, or to a variable in the RAM 203, as a vocalization pitch (step S1104).


Then, by performing the processing at step S1105 and subsequent steps, described above, the CPU 201 instructs the voice synthesis LSI 205 to perform vocalization processing of the output data 321, 217 (step S1105 to S1107). In implementing the first embodiment or the second embodiment of statistical voice synthesis processing described with reference to FIGS. 3 to 5, even if a user has not pressed a key on the keyboard 101, the voice synthesis LSI 205, as inferred singing voice data 217 to be sung in accordance with a default pitch specified in the musical piece data, synthesizes and outputs lyrics from the RAM 203 specified as musical piece data in a similar manner.


After the processing of step S1107, the CPU 201 stores the song position at which playback was performed indicated by the SongIndex variable in the RAM 203 in a SongIndex_pre variable in the RAM 203 (step S1108).


Then, the CPU 201 clears the value of the SongIndex variable so as to become a null value and makes subsequent timings non-song playback timings (step S1109). The CPU 201 subsequently ends the song playback processing at step S705 in FIG. 7 illustrated in the flowchart of FIG. 11.


If the determination of step S1101 is NO, that is, if the present time is not a song playback timing, the CPU 201 then determines whether or not “what is referred to as a legato playing style” for applying an effect has been detected on the keyboard 101 in FIG. 1 by the keyboard processing at step S703 in FIG. 7 (step S1110). As described above, this legato style of playing is a playing style in which, for example, while a first key is being pressed in order to playback a song at step S1102, another second key is repeatedly struck. In such case, at step S1110, if the speed of repetition of the presses is greater than or equal to a prescribed speed when the pressing of a second key has been detected, the CPU 201 determines that a legato playing style is being performed.


If the determination of step S1108 is NO, the CPU 201 ends the song playback processing at step S705 in FIG. 7 illustrated in the flowchart of FIG. 11.


If the determination of step S1110 is YES, the CPU 201 calculates the difference in pitch between the vocalization pitch set at step S1103 and the pitch of the key on the keyboard 101 in FIG. 1 being repeatedly struck in “what is referred to as a legato playing style” (step S1111).


Then, the CPU 201 sets the effect size in the acoustic effect application section 322 (FIG. 3) in the voice synthesis LSI 205 in FIG. 2 in correspondence with the difference in pitch calculated at step S1111 (step S1112). Consequently, the acoustic effect application section 322 subjects the output data 321 output from the synthesis filter 310 in the voice synthesis section 302 to processing to apply the acoustic effect selected at step S908 in FIG. 9 with the aforementioned size, and the acoustic effect application section 320 outputs the final inferred singing voice data 217 (FIG. 2, FIG. 3).


The processing of step S1111 and step S1112 enables an acoustic effect such as a vibrato effect, a tremolo effect, or a wah effect to be applied to output data 321 output from the voice synthesis section 302, and a variety of singing voice expressions are implemented thereby.


After the processing at step S1112, the CPU 201 ends the song playback processing at step S705 in FIG. 7 illustrated in the flowchart of FIG. 11.


In the first embodiment of statistical voice synthesis processing employing HMM acoustic models described with reference to FIGS. 3 and 4, it is possible to reproduce subtle musical expressions, such as for particular singers or singing styles, and it is possible to achieve a singing voice quality that is smooth and free of connective distortion. The training result 315 can be adapted to other singers, and various types of voices and emotions can be expressed, by performing a transformation on the training results 315 (model parameters). All model parameters for HMM acoustic models are able to be machine-learned from training musical score data 311 and training singing voice data for a given singer 312. This makes it possible to automatically create a voice synthesis system in which the features of a particular singer are acquired as HMM acoustic models and these features are reproduced during synthesis. The fundamental frequency and duration of a singing voice follows the melody and tempo in a musical score, and changes in pitch over time and the temporal structure of rhythm can be uniquely established from the musical score. However, a singing voice synthesized therefrom is dull and mechanical, and lacks appeal as a singing voice. Actual singing voices are not standardized as in a musical score, but rather have a style that is specific to each singer due to voice quality, pitch of voice, and changes in the structures thereof over time. In the first embodiment of statistical voice synthesis processing in which HMM acoustic models are employed, time series variations in spectral information and pitch information in a singing voice is able to be modeled on the basis of context, and by additionally taking musical score information into account, it is possible to reproduce a singing voice that is even closer to an actual singing voice. The HMM acoustic models employed in the first embodiment of statistical voice synthesis processing correspond to generative models that consider how, with regards to vibration of the vocal cords and vocal tract characteristics of a singer, an acoustic feature sequence of a singing voice changes over time during vocalization when lyrics are vocalized in accordance with a given melody. In the first embodiment of statistical voice synthesis processing, HMM acoustic models that include context for “lag” are used. The synthesis of singing voice sounds that able to accurately reproduce singing techniques having a tendency to change in a complex manner depending on the singing voice characteristics of the singer is implemented thereby. By fusing such techniques in the first embodiment of statistical voice synthesis processing, in which HMM acoustic models are employed, with real-time performance technology using the electronic keyboard instrument 100, for example, singing techniques and vocal qualities of a model singer that were not possible with a conventional electronic musical instrument employing concatenative synthesis or the like are able to be reflected accurately, and performances in which a singing voice sounds as if that singer were actually singing are able to be realized in concert with, for example, a keyboard performance on the electronic keyboard instrument 100.


In the second embodiment of statistical voice synthesis processing employing a DNN acoustic model described with reference to FIGS. 3 and 5, the decision tree based context-dependent HMM acoustic models in the first embodiment of statistical voice synthesis processing are replaced with a DNN. It is thereby possible to express relationships between linguistic feature sequences and acoustic feature sequences using complex non-linear transformation functions that are difficult to express in a decision tree. In decision tree based context-dependent HMM acoustic models, because corresponding training data is also classified based on decision trees, the training data allocated to each context-dependent HMM acoustic model is reduced. In contrast, training data is able to be efficiently utilized in a DNN acoustic model because all of the training data used to train a single DNN. Thus, with a DNN acoustic model it is possible to predict acoustic features with greater accuracy than with HMM acoustic models, and the naturalness of voice synthesis is able be greatly improved. In a DNN acoustic model, it is possible to use linguistic feature sequences relating to frames. In other words, in a DNN acoustic model, because correspondence between acoustic feature sequences and linguistic feature sequences is determined in advance, it is possible to utilize linguistic features relating to frames, such as “the number of consecutive frames for the current phoneme” and “the position of the current frame inside the phoneme”. Such linguistic features are not easy taken into account in HMM acoustic models. Thus using linguistic feature relating to frames allows features to be modeled in more detail and makes it possible to improve the naturalness of voice synthesis. By fusing such techniques in the second embodiment of statistical voice synthesis processing, in which a DNN acoustic model is employed, with real-time performance technology using the electronic keyboard instrument 100, for example, singing voice performances based on a keyboard performance, for example, can be made to more naturally approximate the singing techniques and vocal qualities of a model singer.


In the embodiments described above, statistical voice synthesis processing techniques are employed as voice synthesis methods, can be implemented with markedly less memory capacity compared to conventional concatenative synthesis. For example, in an electronic musical instrument that uses concatenative synthesis, memory having several hundred megabytes of storage capacity is needed for voice sound fragment data. However, the present embodiments get by with memory having just a few megabytes of storage capacity in order to store training result 315 model parameters in FIG. 3. This makes it possible to provide a lower cost electronic musical instrument, and allows singing voice performance systems with high quality sound to be used by a wider range of users.


Moreover, in a conventional fragmentary data method, it takes a great deal of time (years) and effort to produce data for singing voice performances since fragmentary data needs to be adjusted by hand. However, because almost no data adjustment is necessary to produce training result 315 model parameters for the HMM acoustic models or the DNN acoustic model of the present embodiments, performance data can be produced with only a fraction of the time and effort. This also makes it possible to provide a lower cost electronic musical instrument. Further, using a server computer 300 available for use as a cloud service, or training functionality built into the voice synthesis LSI 205, general users can train the electronic musical instrument using their own voice, the voice of a family member, the voice of a famous person, or another voice, and have the electronic musical instrument give a singing voice performance using this voice for a model voice. In this case too, singing voice performances that are markedly more natural and have higher quality sound than hitherto are able to be realized with a lower cost electronic musical instrument.


In particular, users are able to switch the vocoder mode ON/OFF using the first switch panel 102 in the present embodiment, and when the vocoder mode is OFF, output data 321 generated and output by the voice synthesis section 302 in FIG. 3 is entirely modeled by the trained acoustic model 306, and as described above, this enables a singing voice that is both natural-sounding and very faithful the singing voice of the singer to be produced. However, when the vocoder mode is ON, because instrument sound waveform data 220 for instrument sounds generated by the sound source LSI 204 is used as a sound source signal, the essence of instrument sounds set in the sound source LSI 204 as well as the vocal characteristics of the singing voice of the singer come through clearly, allowing effective output data 321 to be output. An effect in which a plurality of singing voices seem to be in harmony can also be achieved owing to polyphonic operation being possible in the vocoder mode. It is thus possible to provide an electronic musical instrument that sings well in a singing voice corresponding to the singing voice of a singer that has been learned on the basis of pitches specified by a user.


If the voice synthesis LSI 205 has spare processing capacity, when the vocoder mode is OFF, the sound source signal generated by the sound source generator 309 may be made polyphonic such that polyphonic output data 321 is output from the synthesis filter 310.


It should be noted that the vocoder mode may be switched between ON/OFF in the middle of performing a single song.


In the embodiments described above, the present invention is embodied as an electronic keyboard instrument. However, the present invention can also be applied to electronic string instruments and other electronic musical instruments.


Voice synthesis methods able to be employed for the vocalization model unit 308 in FIG. 3 are not limited to cepstrum voice synthesis, and various voice synthesis methods, such as LSP voice synthesis, may be employed therefor.


In the embodiments described above, a first embodiment of statistical voice synthesis processing in which HMM acoustic models are employed and a second embodiment of a voice synthesis method in which a DNN acoustic model is employed were described. However, the present invention is not limited thereto. Any voice synthesis method using statistical voice synthesis processing may be employed by the present invention, such as, for example, an acoustic model that combines HMMs and a DNN.


In the embodiments described above, lyric information is given as musical piece data. However, text data obtained by voice recognition performed on content being sung in real time by a user may be given as lyric information in real time. The present invention is not limited to the embodiments described above, and various changes in implementation are possible without departing from the spirit of the present invention. Insofar as possible, the functionalities performed in the embodiments described above may be implemented in any suitable combination. Moreover, there are many aspects to the embodiments described above, and the invention may take on a variety of forms through the appropriate combination of the disclosed plurality of constituent elements. For example, if after omitting several constituent elements from out of all constituent elements disclosed in the embodiments the advantageous effect is still obtained, the configuration from which these constituent elements have been omitted may be considered to be one form of the invention.


It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention cover modifications and variations that come within the scope of the appended claims and their equivalents. In particular, it is explicitly contemplated that any part or whole of any two or more of the embodiments and their modifications described above can be combined and regarded within the scope of the present invention.

Claims
  • 1. An electronic musical instrument comprising: a plurality of operation elements respectively corresponding to mutually different pitch data;a memory that stores a trained acoustic model obtained by performing machine learning on training musical score data including training lyric data and training pitch data, and on training singing voice data of a singer corresponding to the training musical score data, the trained acoustic model being configured to receive lyric data and prescribed pitch data and output acoustic feature data of a singing voice of the singer in response to the received lyric data and pitch data; andat least one processor in which a first mode and a second mode are interchangeably selectable,wherein in the first mode, the at least one processor: in accordance with a user operation on an operation element in the plurality of operation elements, inputs prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, anddigitally synthesizes and outputs inferred singing voice data that infers a singing voice of the singer on the basis of at least a portion of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, and on the basis of instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element, andwherein in the second mode, the at least one processor: in accordance with a user operation on an operation element in the plurality of operation elements, inputs prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, anddigitally synthesizes and outputs inferred singing voice data that infers a singing voice of the singer on the basis of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, without using instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element.
  • 2. The electronic musical instrument according to claim 1, wherein the at least one processor switches between the first mode and the second mode based on a user operation of a mode selection operation element provided in the electronic musical instrument.
  • 3. The electronic musical instrument according to claim 1, wherein the memory contains melody pitch data indicating operation elements that a user is to operate, singing voice output timing data indicating output timings at which respective singing voices for pitches indicated by the melody pitch data are to be output, and lyric data respectively corresponding to the melody pitch data, andwherein in the first mode, the at least one processor: when a user operation for producing a singing voice is performed at an output timing indicated by the singing voice output timing data, inputs pitch data corresponding to the user-operated operation element and lyric data corresponding to said output timing to the trained acoustic model, and outputs, at said output timing, inferred singing voice data that infers the singing voice of the singer on the basis of the at least a portion of the acoustic feature data output by the trained acoustic model in response to the input, andwhen a user operation for producing a singing voice is not performed at the output timing indicated by the singing voice output timing data, inputs melody pitch data corresponding to said output timing and lyric data corresponding to said output timing to the trained acoustic model, and outputs, at said output timing, inferred singing voice data that infers the singing voice of the singer on the basis of the at least a portion of the acoustic feature data output by the trained acoustic model in response to the input.
  • 4. The electronic musical instrument according to claim 1, wherein the acoustic feature data of the singing voice of the singer includes spectral data that models a vocal tract of the singer and sound source data that models vocal cords of the singer, andwherein in the second mode, the at least one processor synthesizes the inferred singing voice data that infers the singing voice of the singer on the basis of the spectral data and the sound source data.
  • 5. The electronic musical instrument according to claim 1, further comprising a selection operation element that, from a plurality of instrument sounds including at least one of a brass sound, a string sound, an organ sound, or an animal cry, specifies one of the instrument sounds in response to a user operation, and wherein in the first mode, the instrument sound waveform data corresponds to the instrument sound specified by the selection operation element.
  • 6. The electronic musical instrument according to claim 1, wherein the acoustic feature data of the singing voice of the singer includes spectral data that models a vocal tract of the singer and sound source data that models vocal cords of the singer, andwherein in the first mode, the at least one processor synthesizes the inferred singing voice data that infers the singing voice of the singer on the basis of the sound source data by applying an acoustic feature of the spectral data to the instrument sound waveform data without using the sound source data of the acoustic feature data.
  • 7. The electronic musical instrument according to claim 1, wherein the trained acoustic model has been trained via machine learning using at least one of a deep neural network or a hidden Markov model.
  • 8. The electronic musical instrument according to claim 1, wherein the plurality of operation elements include a first operation element as the operation element that was operated by the user and a second operation element that meets a prescribed condition with respect to the first operation element, andwherein in both of the first and second modes, the at least one processor applies an acoustic effect to the inferred singing voice data when the second operation element is operated while the first operation element is being operated.
  • 9. The electronic musical instrument according to claim 8, wherein the at least one processor changes a depth of the acoustic effect in accordance with a difference in pitch between a pitch corresponding to the first operation element and a pitch corresponding to the second operation element.
  • 10. The electronic musical instrument according to claim 8, wherein the second operation element is a black key.
  • 11. The electronic musical instrument according to claim 8, wherein the acoustic effect includes at least one of a vibrato effect, a tremolo effect, or a wah-wah effect.
  • 12. A method performed by at least one processor in an electronic musical instrument that includes, in addition to the at least one processor: a plurality of operation elements respectively corresponding to mutually different pitch data; and a memory that stores a trained acoustic model obtained by performing machine learning on training musical score data including training lyric data and training pitch data, and on training singing voice data of a singer corresponding to the training musical score data, the trained acoustic model being configured to receive lyric data and prescribed pitch data and output acoustic feature data of a singing voice of the singer in response to the received lyric data and pitch data, a first mode and a second mode being interchangeably selectable in the at least one processor, the method comprising, via the at least one processor: in the first mode: in accordance with a user operation on an operation element in the plurality of operation elements, inputting prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, anddigitally synthesizing and outputting inferred singing voice data that infers a singing voice of the singer on the basis of at least a portion of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, and on the basis of instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element, andin the second mode: in accordance with a user operation on an operation element in the plurality of operation elements, inputting prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, anddigitally synthesizing and outputting inferred singing voice data that infers a singing voice of the singer on the basis of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, without using instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element.
  • 13. The method according to claim 12, wherein the method includes, via the at least one processor, switching between the first mode and the second mode based on a user operation of a mode selection operation element provided in the electronic musical instrument.
  • 14. The method according to claim 12, wherein the memory contains melody pitch data indicating operation elements that a user is to operate, singing voice output timing data indicating output timings at which respective singing voices for pitches indicated by the melody pitch data are to be output, and lyric data respectively corresponding to the melody pitch data, andwherein in the first mode, the method include, via the at least one processor: when a user operation for producing a singing voice is performed at an output timing indicated by the singing voice output timing data, inputting pitch data corresponding to the user-operated operation element and lyric data corresponding to said output timing to the trained acoustic model, and outputting, at said output timing, inferred singing voice data that infers the singing voice of the singer on the basis of the at least a portion of the acoustic feature data output by the trained acoustic model in response to the input, andwhen a user operation for producing a singing voice is not performed at the output timing indicated by the singing voice output timing data, inputting melody pitch data corresponding to said output timing and lyric data corresponding to said output timing to the trained acoustic model, and outputting, at said output timing, inferred singing voice data that infers the singing voice of the singer on the basis of the at least a portion of the acoustic feature data output by the trained acoustic model in response to the input.
  • 15. The method according to claim 12, wherein the acoustic feature data of the singing voice of the singer includes spectral data that models a vocal tract of the singer and sound source data that models vocal cords of the singer, andwherein the method includes, in the second mode, causing the at least one processor to synthesize the inferred singing voice data that infers the singing voice of the singer on the basis of the spectral data and the sound source data.
  • 16. The method according to claim 12, wherein the electronic musical instrument further includes a selection operation element that, from a plurality of instrument sounds including at least one of a brass sound, a string sound, an organ sound, or an animal cry, specifies one of the instrument sounds in response to a user operation, andwherein in the first mode, the instrument sound waveform data corresponds to the instrument sound specified by the selection operation element.
  • 17. The method according to claim 12, wherein the acoustic feature data of the singing voice of the singer includes spectral data that models a vocal tract of the singer and sound source data that models vocal cords of the singer, andwherein in the first mode, the inferred singing voice data that infers the singing voice of the singer is synthesized on the basis of the sound source data by applying an acoustic feature of the spectral data to the instrument sound waveform data without using the sound source data of the acoustic feature data.
  • 18. A non-transitory computer-readable storage medium having stored thereon a program executable by at least one processor in an electronic musical instrument that includes, in addition to the at least one processor: a plurality of operation elements respectively corresponding to mutually different pitch data; and a memory that stores a trained acoustic model obtained by performing machine learning on training musical score data including training lyric data and training pitch data, and on training singing voice data of a singer corresponding to the training musical score data, the trained acoustic model being configured to receive lyric data and prescribed pitch data and output acoustic feature data of a singing voice of the singer in response to the received lyric data and pitch data, a first mode and a second mode being interchangeably selectable in the at least one processor, the program causing the at least one processor to perform the following: in the first mode: in accordance with a user operation on an operation element in the plurality of operation elements, inputting prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, anddigitally synthesizing and outputting inferred singing voice data that infers a singing voice of the singer on the basis of at least a portion of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, and on the basis of instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element, andin the second mode: in accordance with a user operation on an operation element in the plurality of operation elements, inputting prescribed lyric data and pitch data corresponding to the user operation of the operation element to the trained acoustic model so as to cause the trained acoustic model to output the acoustic feature data in response to the inputted prescribed lyric data and the inputted pitch data, anddigitally synthesizing and outputting inferred singing voice data that infers a singing voice of the singer on the basis of the acoustic feature data output by the trained acoustic model in response to the inputted prescribed lyric data and the inputted pitch data, without using instrument sound waveform data that are synthesized in accordance with the pitch data corresponding to the user operation of the operation element.
Priority Claims (1)
Number Date Country Kind
2018-118057 Jun 2018 JP national
US Referenced Citations (30)
Number Name Date Kind
5621182 Matsumoto Apr 1997 A
5703311 Ohta Dec 1997 A
5747715 Ohta et al. May 1998 A
5750912 Matsumoto May 1998 A
5889223 Matsumoto Mar 1999 A
6337433 Nishimoto Jan 2002 B1
6369311 Iwamoto Apr 2002 B1
8008563 Hastings Aug 2011 B1
10325581 Ogasawara Jun 2019 B2
20020017187 Takahashi Feb 2002 A1
20030009344 Kayama et al. Jan 2003 A1
20040040434 Kondo et al. Mar 2004 A1
20050137862 Monkowski Jun 2005 A1
20050257667 Nakamura Nov 2005 A1
20060015344 Kemmochi Jan 2006 A1
20060111908 Sakata May 2006 A1
20090306987 Nakano et al. Dec 2009 A1
20110000360 Saino et al. Jan 2011 A1
20140006031 Mizuguchi et al. Jan 2014 A1
20160111083 Iriyanna et al. Apr 2016 A1
20170025115 Tachibana et al. Jan 2017 A1
20180018949 Sullivan et al. Jan 2018 A1
20180277075 Nakamura Sep 2018 A1
20180277077 Nakamura Sep 2018 A1
20190096372 Setoguchi Mar 2019 A1
20190198001 Danjo Jun 2019 A1
20190318712 Nakamura et al. Oct 2019 A1
20190318715 Danjyo et al. Oct 2019 A1
20190392798 Danjyo et al. Dec 2019 A1
20190392799 Danjyo et al. Dec 2019 A1
Foreign Referenced Citations (15)
Number Date Country
2 270 773 Jan 2011 EP
H04-238384 Aug 1992 JP
H06-332449 Dec 1994 JP
H09-050287 Feb 1997 JP
2001-67078 Mar 2001 JP
2004-86067 Mar 2004 JP
2005-331806 Dec 2005 JP
2006-146095 Jun 2006 JP
2011-013454 Jan 2011 JP
2014-10190 Jan 2014 JP
2014-62969 Apr 2014 JP
2016-206323 Dec 2016 JP
2017-97176 Jun 2017 JP
2017-107228 Jun 2017 JP
2017-194594 Oct 2017 JP
Non-Patent Literature Citations (12)
Entry
U.S. Appl. No. 16/447,572, filed Jun. 20, 2019.
U.S. Appl. No. 16/447,586, filed Jun. 20, 2019.
U.S. Appl. No. 16/384,861, filed Apr. 15, 2019.
U.S. Appl. No. 16/384,883, filed Apr. 15, 2019.
Japanese Office Action dated May 28, 2019, in a counterpart Japanese patent application No. 2018-078110. (Cited in the related U.S. Appl. No. 16/384,861 and a machine translation (not reviewed for accuracy) attached.).
Japanese Office Action dated May 28, 2019, in a counterpart Japanese patent application No. 2018-078113. (Cited in the related U.S. Appl. No. 16/384,883 and a machine translation (not reviewed for accuracy) attached.).
Kei Hashimoto and Shinji Takaki, “Statistical parametric speech synthesis based on deep learning”, Journal of the Acoustical Society of Japan, vol. 73, No. 1 (2017), pp. 55-62 (Mentioned in paragraph Nos. 23-24, 29, 36, 56, 70, 79, and 84 of the as-filed specification.).
Shinji Sako, Keijiro Saino, Yoshihiko Nankaku, Keiichi Tokuda, and Tadashi Kitamura, “A trainable singing voice synthesis system capable of representing personal characteristics and singing styles”, Information Processing Society of Japan (IPSJ) Technical Report, Music and Computer (MUS) 2008 (12 (2008-MUS-074)), pp. 39-44, Feb. 8, 2008 (Mentioned in paragraph Nos. 56-57, 59, 70, 79, and 84 of the as-filed specification; English abstract included as a concise explanation relevance.).
European Search Report dated Oct. 29, 2019, in a counterpart European patent application No. 19181426.8. (Cited in the related U.S. Appl. No. 16/447,586.).
European Search Report dated Oct. 29, 2019, in a counterpart European patent application No. 19181429.2. (Cited in the related U.S. Appl. No. 16/447,572.).
Merlijn Blaauw et al, “A Neural Parametric Singing Synthesizer Modeling Timbre and Expression from Natural Songs”, Applied Sciences, vol. 7, No. 12, Dec. 18, 2017 (Dec. 18, 2017), p. 1313, XP055627719 (Cited in the related U.S. Appl. No. 16/447,586.).
Masanari Nishimura et al., “Singing Voice Synthesis Based on Deep Neural Networks”, Interspeech 2016, vol. 2016, Sep. 8, 2016 (Sep. 8, 2016), pp. 2478-2482, XP055627666 (Cited in the related U.S. Appl. No. 16/447,586.).
Related Publications (1)
Number Date Country
20190392807 A1 Dec 2019 US