Electronic music-performing apparatus

Abstract: Disclosed is an electronic music-performing apparatus having a chord detection device for detecting a chord from peformance information supplied thereto. The chord detection device is designed to be supplied by performance information having been analyzed into a plurality of performance parts. The chord detction carried out based on the performance information allows the determination of an accompanying chord in a very accurate way.

Description: The present invention relates to an electronic music-performing apparatus such as an electronic musical instrument, an electronic piano player, an electronic musical multimedia system or the like, and more particularly to an electronic music-performing apparatus of the type which uses a chord detection device associated with a performance information analyzer for detecting a chord on a basis of analyzed performance parts. In recent years, there has been proposed an electronic musical instrument for harmonizing automatic accompaniment with performance played on a keyboard. In this kind of electronic musical instruments, it is required to detect a chord for determining a tone pitch of the accompaniment tone. For this reason, the chord is determined on a basis of a performance information applied from the keyboard or key-codes of depressed keys of the keyboard. A prior art chord detection device, is for instance disclosed in US 4,887,504. Described is an automatic accompaniment apparatus using a procedure of chord detection, in which an automatic chord performance will be conducted when the depressed keys establish a chord, whereas an individual key performance will be conducted when the depressed keys does not establish a chord. US 5,136,914 discloses a stringed instrument emulator and method. This so-called "strum" tone generation prepares a note list from keyboard inputs within a certain time window and outputs the notes in the list at an extended time rate as compared with the time window. Another chord detection device is known from EP-0,351,862. Disclosed is an electronic musical instrument having an automatic key designating function. A key (= tonality) recognition is carried out based on the chord performance information, in which the prevailing key and mode can be recognized from what chords appear in what frequency and order. US 4,864,907 relates to an automatic bass chord accompaniment performance and discloses an apparatus for chord detection and bass tone determination, in which root-bass chords and non-root-bass chords can be automatically determined according to the state of key depression in the keyboard. In general, melody performance is played at a higher tone area of the keyboard where mainly key-codes of non-chord tones relative to the chord is detected. Accordingly, the keyboard is imaginarily divided into a left-hand key area for the lower tone and a right-hand key area for the higher tone so that a chord is detected on a basis of key-codes of depressed keys at the left-hand key area. As mentioned above, there is a tone area suitable for detection of the chord in the case that the chord is detected on a basis of a tone pitch information such as the key-codes. Since the tone area changes in accordance with performance of a musical tune, there has been proposed a method capable of enhancing accuracy in detection of the chord under control of a manual switch arranged to be operated by a user for changing a boundary between the left-hand key area and the right-hand key area. In such an electronic musical instrument, however, the manual switch must be operated by the user during performance of the musical tune, resulting in a difficulty in operation of the manual switch. On the other hand, almost all musical tunes can be divided into a plurality of performance parts such as a melody part or a bass part which include an appropriate performance part for detection of the chord. It is, therefore, able to enhance accuracy in detection of the chord in accordance with the performance part if a performance information can be analyzed into the plurality of performance parts. Assuming that an information for automatic performance could be analyzed into a plurality of performance parts, only a desired performance part can be muted to effect the automatic performance, and a function (so called a minus-one function) capable of harmonizing the keyboard performance with the automatic performance can be provided in a simple manner for practice of the user. Furthermore, in case the performance information could be analyzed into the plurality of performance parts as described above, it is able to add another melody to the performance information or to substitute another melody for a portion of the performance part for effecting an automatic arrangement. It is, therefore, a primary object of the present invention to provide an electronic music-performing apparatus which includes a chord detection device for accurately detecting a chord based on performance information obtained from performance information analyzer capable of automatically analyzing a performance information of a musical tune into a plurality of performance parts. According to the present invention, this primary object is solved by providing an electronic music-performing apparatus comprising an input device arranged to be applied with performance information including a plurality of tone pitch information data of tones which constitute a progression of a musical performance, a tone pitch detector for detecting tone pitches of the inputted tone pitch information data, a chord detector for detecting a chord from performance information, and a performance information analyzer for analyzing performance information into a plurality of performance parts. The apparatus further comprises detection point providing means for providing a plurality of points for detection allotted in sequence along the progression of the musical performance. The tone pitch detector detects at one point after another among the points, a tone pitch or pitches of at least one inputted tone pitch information data existing at each detection point. The performance information analyzer includes at least one analyzing algorithm and analyzes the detected tone pitch or pitches using the analyzing algorithm to determine which of a plurality of performance parts each of the detected tone pitches belongs to, wherein the plurality of performance parts comprise a bass part, a chord part and a melody part. The apparatus further comprises analysis result storing means for storing data indicating the determined performance part for each of the analyzed tone pitches. The chord detector includes a chord detection algorithm, for detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using the chord detection algorithm. According to another embodiment of the invention, the chord detection algorithm is such that the chord detection is made based on the tone pitches which have been determined to belong to the chord part as long as the tone pitches which have been determined to belong to the chord part are sufficient for detecting a chord in light of musical grammar and if not the chord detection is made based on the tone pitches of the chord part and the tone pitches of any other performance parts in combination. The chord part may include a bass chord part and a melody chord part. In addition, the chord detection algorithm is such that, in case both of the tone pitches analyzed to be in the bass chord part and the tone pitches analyzed to be in the melody chord part have sufficient information for detecting chords, respectively, the tone pitches analyzed to be in the bass chord part are used in preference to the tone pitches analyzed to be in the melody chord part in detecting a chord. In another embodiment of the invention, the analyzing algorithm includes a step of comparing the tone pitch under analysis with the data of a previous analysis result stored in the analysis result storing means. The electronic music-performing apparatus may further comprise tone number detection means for detecting the number of tone pitches as detected by the tone pitch detection means at the each detection point. and The performance information analyzer includes a plurality of analyzing algorithms depending on the number of detected tone pitches, and analyzes the tone pitches based on the detected number of tone pitches using one of the analyzing algorithms which corresponds to the detected number of tone pitches at each detection point to determine which of a plurality of performance parts each of the detected tone pitches belongs to. The electronic music-performing apparatus of according to another aspect of the invention may further comprise musical time defining means for defining a time progress with respect to the progression of a musical performance to be analyzed. The time progress includes musically different timings of measure heads, strong beats and weak beats. The performance information analyzer includes a plurality of different analyzing algorithms depending on the different timings and analyzes the tone pitches based on the musical timing using one of the analyzing algorithms which corresponds to the musical timing as the detection point to determine which of a plurality of performance parts each of the detected tone pitches belongs to. According to yet another embodiment of the invention the applied plurality of tone pitch information are from tones in a real time musical performance. The detection point providing means includes tempo defining means for defining a tempo of musical time progression in the analyzer, the tempo being selectable, and detection timing providing means for providing a plurality of timings for detection allotted in sequence along the progression of the real time musical performance. The performance information analyzer determines the performance parts for the detected tone pitches in real time along with the real time music performance; and the chord detector includes a chord detection algorithm for detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using the chord detection algorithm in real time along with the real time music performance. The invention also relates to a method to be carried out in an electronic music-performing apparatus for detecting a chord from performance information including tone pitch data representing tones which constitute a progression of a musical performance. The method comprises the steps of inputting a plurality of tone pitch information data of tones which constitute a progression of a musical performance; providing a plurality of points for detection allotted in sequence along the progression of the musical performance; detecting, at one point after another among the points, a tone pitch or pitches of at least one inputted tone pitch information data existing at each detection point; analyzing the tone pitches using at least one analyzing algorithm to determine which of a plurality of performance parts each of the detected tone pitches belongs to, wherein the plurality of performance parts comprise a bass part, a chord part and a melody part; storing data indicating the determined performance part for each of the analyzed tone pitches obtained as a result of the analyzing step; and detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using a chord detection algorithm. Furthermore, the invention relates to a machine readable medium for use in an electronic music-performing apparatus of a data processing type comprising a computer for detecting a chord from performance information including tone pitch data representing tones which constitute a progression of a musical performance. The medium contains program instructions executable by the computer for executing: an input process of receiving a plurality of tone pitch information data of tones which constitute a progression of a musical performance; a detection point providing process of providing a plurality of points for detection allotted in sequence along the progression of the musical performance; a tone pitch detection process of detecting, at one point after another among the points, a tone pitch or pitches of at least one inputted tone pitch information data existing at each detection point; an analysis process, performing at least one analyzing algorithm, for analyzing the detected tone pitches using the analyzing algorithm to determine which of a plurality of performance parts each of the detected tone pitches belongs to, wherein the plurality of performance parts comprise a bass part, a chord part and a melody part; an analysis result storing process of storing data indicating the determined performance part for each of the analyzed tone pitches; and a chord detecting process, performing a chord detection algorithm, for detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using the chord detection algorithm. For a better understanding of the present invention, and to show how the same may be carried into effect, reference will now be made, by way of example, to the accompanying drawings, in which: Fig. 1 is a block diagram of an electronic musical instrument provided with a performance information analyzer and a chord detection device in accordance with the present invention; Fig. 2 is a flow chart of a main routine of a control program to be executed by a central processing unit shown in Fig. 1; Fig. 3 is a flow chart of an interruption routine of the program; Fig. 4 is a flow chart of a performance part analysis routine of the program; Fig. 5 is a flow chart of a one-note part analysis routine of the program; Fig. 6 is a flow chart of a one-note strong beat analysis routine of the program; Fig. 7 is a flow chart of a one-note weak beat analysis routine of the program: Fig. 8 is a flow chart of an arpeggio continuing routine of the program; Fig. 9 is a flow chart of a two-note part analysis routine of the program; Fig. 10 is a flow chart of a three-note part analysis routine of the program; Fig. 11 is a flow chart of a four-or-more-note part analysis routine of the program; Fig. 12 is a flow chart of a first chord detection routine of the program; Fig. 13 is a flow chart of a second chord detection routine of the program; Fig. 14 is a view showing a chord table; Fig. 15 is a view showing allotment of an input tone to performance parts in analysis of the one-note part; Fig. 16 is a view showing allotment of an input tone to performance parts in analysis of the one-note strong beat part; Fig. 17 is a view showing allotment of an input tone to performance parts in analysis of the one-note weak beat part; and Fig. 18 is a view showing allotment of an input tone to performance parts in the arpeggio continuing. DESCRIPTION OF THE PREFERRED EMBODIMENT In Fig. 1 of the drawings, there is schematically illustrated a block diagram of an electronic musical instrument provided with a chord detection apparatus and a performance information analyzer associated therewith in accordance with the present invention, which includes a central processing unit or CPU 1 arranged to use a working area of a working memory 3 for executing a control program stored in a program memory 2 in the form of a read-only memory. The electronic musical instrument has a keyboard 4 to be played by a user for keyboard performance and an automatic accompaniment apparatus to be activated under control of the CPU 1 for harmonizing automatic accompaniment with the keyboard performance. When applied with a key-code with a key-on signal or a key-off signal in response to depression or release of keys on the keyboard 4, the CPU 1 applies the key-code with a note-on or a note-off to a sound source 6 for generating or muting a musical tone in accordance with the keyboard performance. The automatic accompaniment apparatus 5 is arranged to memorize a plurality of accompaniment patterns in accordance with the style of a musical tune and to select the memorized accompaniment patterns in response to a start signal applied thereto from the CPU 1 for effecting automatic performance at the selected pattern. When applied with a stop signal from the CPU 1, the automatic accompaniment apparatus 5 is deactivated to stop the automatic performance. When a chord is designated by the CPU 1 in accordance with progress of the keyboard performance, the automatic accompaniment apparatus 5 generates a musical tone signal of the accompaniment tone at a tone pitch defined by the selected chord and a bass tone. The musical tone signal from the automatic accompaniment apparatus 5 is mixed with the musical tone signal from the sound source 6 by means of a mixer 7 and applied to a sound system 8 where the mixed musical tone signals are converted into analog signals and amplified to be generated as a musical sound. The electronic musical instrument has an operation switch assembly 9 which includes various switches such as a start/stop switch for designating start or stop of the automatic accompaniment, a set switch for setting the style selection at the automatic accompaniment apparatus 5 and for setting a performance tempo, a set switch for setting a tone color at the sound source 6 and the like. Thus, the automatic accompaniment apparatus 5 effects the automatic accompaniment on a basis of a style and a tempo selected by the operation switch 9. The CPU 1 is also arranged to set the selected tempo in a timer 10 which applies an interruption signal to the CPU 1 at each 8th-note in response to the selected tempo. When applied with the interruption signal from the timer 10, the CPU 1 executes an interruption processing for counting the tempo at each 8th-note duration from the start of the automatic accompaniment and for detecting a timing of a strong beat or weak beat in a measure and a timing of a measure line. Thus, the CPU 1 analyzes the performance part based on a key-code generated by depression of keys on the keyboard 4 and detects a chord on a basis of a resultant of the analysis for applying an information of the chord to the automatic accompaniment apparatus 5. As shown in Fig. 14, a chord table 11 is designed to store each type of chords and chord composite tones related to a chord of the C tone. The chord composite tones each are represented by data of twelve bits corresponding with twelve pitch names. The bit corresponding with the chord composite tone is memorized as "1", and other bits each are memorized as "0". For detection of a chord, "1" is set at the bit corresponding with the pitch name of a key-code for chord detection in a register of twelve bits, and the register is shifted in circulation to detect a chord by matching with the data of twelve bits on the chord table 11. Thus, the chord type data is obtained by matching with the data of chord table 11, and the chord root data is obtained by the number of shifts of the register. In performance part analysis of this embodiment, a key-depression tone of the keyboard 4 is analyzed into a melody part for providing a melody at a higher part, a melody code part for adding a harmony to the melody, a bass part for providing a bass at a lower part and a bass code part for adding a harmony to the bass. Additionally, one-note part analysis, two-note part analysis, three-note part analysis and four-or-more-note part analysis are conducted in accordance with the number of depressed keys on the keyboard. The condition for analysis to the four parts is determined on a basis of a combination of the tone pitch, presence of a measure head at a current timing, a strong beat tone or a weak beat tone at the current timing, an interval relative to a previous bass part tone, an interval relative to a previous melody part tone and the like. In accordance with these conditions, a part which a current key code belongs to is determined. Accordingly, the four parts will change in accordance with a performance information. In such a manner as described above, a key code is assigned to respective parts in accordance with progress of performance. In this instance, if the key code is assigned to the bass code part, a chord is detected on a basis of the bass code part. If there is not any key code in the pass code part, a chord is detected on a basis of the melody code part. In addition, the automatic accompaniment apparatus 5 is arranged to be applied with a bass tone of the bass part obtained by the performance part analysis and the detected chord. When the applied bass tone is different from the root of the chord, the automatic accompaniment apparatus 5 causes the bass tone to sound at first. This means that the bass tone is sounded in respect to a non-root-bass-chord (an inverted chord) where the bass tone is different from the prime root of the chord. In analysis of a key code to the four parts, the respective parts relative to the key code are represented by the following formula (1). [[a 1 ], [b 1 . b 2 ...], [c 1 . c 2 . ...], [d 1 . d 2 . ...]] where "[ ]" designates a parenthesis of each element of the performance parts, "." designates a period of the respective elements, a 1 is a key code of the bass part for one tone, b 1 , b 2 ... designate each key code of the bass code part, c 1 , c 2 ... designate each key code of the melody code part, d 1 , d 2 ... designate each key code of the melody part, and the whole formula (1) represents a whole list (hereinafter referred simply to a whole analysis list) including each list of the key codes of the respective parts. Illustrated in Fig. 2 is a flow chart of a main routine of a control program to be executed by the CPU 1. Each flow chart of sub-routines and interruption routines of the control program is illustrated in Figs. 3 to 13. Hereinafter, operation of the electronic musical instrument will be described in detail with reference to the flow charts. In the following explanation, the key code applied from the keyboard is simply referred to "an input tone", and the key code indicative of each of the listed elements of the parts is simply referred to "a detection tone". In the flow charts, the bass part, bass code part, melody code part, and melody part are simply represented by "B part", BC part", "MC part", "M part, respectively. Furthermore. respective registers, flags and lists in the following description are represented as listed below. BCLST: List of a current bass code part, BSKC: Detection tone of a bass part to be applied to the automatic accompaniment apparatus, but1Lis: List of depressed key tones wherein a lowermost tone is removed, but1U15: List of tones with an 5th interval from lower depressed key tones wherein a lowermost tone is removed, CHRD: Detected chord information to be applied to the automatic accompaniment apparatus, LIST: Whole analysis list, Nt: Input tone to be analyzed in analysis of one-note music part, N11: Lower or lowest tone of depressed keys, Nth: Higher tone of depressed keys, Ntm: Intermediate tone of depressed keys, Ntm2: Intermediate tone of depressed key, NtLis: List of depressed key tones, PBCtop: Highest detection tone of a previous bass code part, PBCLST: List of detection tones of the previous bass code part, PBS: Detection tone of a previous bass part, PMbtm: Lowest detection tone of a previous melody part, PMCtop: Highest detection tone of a previous melody code part, RUN: Flag indicative of start/stop of automatic accompaniment, rLis: List of tones of depressed keys wherein a predetermined tone is removed, ShrLis: List of notes of the bass code part and melody code part with redundant existence of the same notes omitted, UndInt5: List of tones with an 5th interval from a lower depressed key tone, v1: Whole analysis list of one-tone part immediately after analysis. When the electronic musical instrument is connected to an electric power source, the CPU 1 is activated to initiate execution of the main routine shown in Fig. 2. At step M1, the CPU 1 initializes respective flags and variables in registers and causes the program to proceed to step M2 where it determines presence of a key event on the keyboard 4. If there is not any key event, the CPU 1 causes the program to proceed to step M6. If the key event is present, the CPU 1 causes the program to proceed to step M3 where it determines whether the key event is a key-on event or not. If the answer at step M3 is "Yes", the program proceeds to step M4 where the CPU 1 executes processing for generation of a musical tone and causes the program to proceed to step M6. If the answer at step M3 is "No", the program proceeds to step M5 where the CPU 1 executes processing for mute of a musical tone and causes the program to proceed to step M6. At step M6, the CPU 1 determines whether the start/stop switch 9 is operated or not. If the answer at step M6 is "No", the program returns to step M2. If the answer at step M6 is "Yes", the CPU 1 inverts the flag RUN at step M7 and determines at step M8 whether the flag RUN is "1" or not. If the answer at step M8 is "Yes", the program proceeds to step M9 where the CPU 1 applies a start signal to the automatic accompaniment apparatus 5 and returns the program to step M2. If the answer at step M8 is "No", the program proceeds to step M10 where the CPU 1 applies a stop signal to the automatic accompaniment apparatus 5 and returns the program to step M2. With the foregoing processing, generation or mute of a musical tone in performance of the keyboard is carried out, and start or stop of the automatic accompaniment apparatus is effected under control of the operation switch 9. When applied with an interruption signal from the timer 10 at each 8th-note, the CPU 1 initiates execution of the interruption routine shown in Fig. 3. At step i1 of the interruption routine, the CPU 1 determines whether "RUN" is "1" or not and whether the number N of depressed keys is "0" or not. If the answer at step i1 is "No", the program returns to the main routine shown in Fig. 2. If the answer at step i1 is "Yes", the program proceeds to step i2 where the CPU 1 executes a performance part analysis routine shown in Fig. 4. After execution of the performance part analysis routine, the program proceeds to step 13 where the CPU 1 determines whether a detection tone of the bass code part is present or not. If the answer at step 13 is "Yes", the program proceeds to step 14 where the CPU 1 executes a first chord detection routine shown in Fig. 12 on a basis of the bass code and causes the program to proceed to step 17 after execution of the first chord detection routine. If the answer at step 13 is "No", the program proceeds to step 15 where the CPU 1 determines whether a detection tone of the melody code part is present or not. If the answer at step 15 is "No", the program returns to the main routine shown in Fig. 2. If the answer at step 15 is "Yes", the program proceeds to step 16 where the CPU 1 executes a second chord detection routine shown in Fig. 13 on a basis of the melody code and causes the program to proceed to step 17 after execution of the second chord detection routine. With the above processing, the detection tones of the bass code part and the melody code part are adapted to detect a chord based on the whole analysis list LIST obtained by analysis of the performance parts. In this instance, the chord detection is conducted firstly on a basis of the bass code part and secondly on a basis of the melody code part if there is not any detection tone in the bass code part. When the program proceeds to step 17, the CPU 1 determines whether the chord detection has been effected or not. If the CPU 1 fails the chord detection, the program returns to the main routine. If the chord detection has been effected, the CPU 1 sets at step 18 an element or one detection tone of the bass part as the detection tone BSKC and sets the detected chord information as the chord information CHRD. Thus, the CPU 1 applies at step 110 the detection tone BSKC and chord information CHRD to the automatic accompaniment apparatus 5 and returns the program to the main routine. In the performance part analysis routine shown in Fig. 4, the CPU 1 determines the number of depressed key tones respectively at step A1, A2, A3. When the number of depressed key tones is one-tone, the program proceeds to step A2 where the CPU 1 sets a key code of the depressed key tone as the input tone Nt and executes at step A3 a one-note part analysis routine shown in Fig. 5. When the number of depressed key tones is two-tones, the program proceeds to step A5 where the CPU 1 executes a two-note part analysis routine shown in Fig. 9. When the number of depressed key tones is three-tones, the program proceeds to step A7 where the CPU 1 executes a three-note part analysis routine shown in Fig. 10. When the number of depressed key tones is more than four tones, the program proceeds to step A8 where the CPU 1 executes a four-or-more-note part analysis routine shown in Fig. 11. After execution of the respective analysis routines, the program returns to the main routine. In the one-note part analysis routine shown in Fig. 5, the CPU 1 sets at step S11 a key code of the previous bass tone (a key code of the bass part of the current whole analysis list LIST) as the detection tone PBS of the bass part. In addition, if the program is in an initial condition or the bass tone is not yet detected, the CPU 1 sets an invalid data as the detection tone PBS of the bass part to eliminate a previous bass tone. When the program proceeds to step S12, the CPU 1 determines whether the detection tone PBS of the previous bass tone is present or not. If the answer at steo S12 is "No", the program proceeds to step S13 where the CPU 1 determines whether or not the input tone Nt is equal to or less than a G3 code (a key code). That is to say, the CPU 1 determines whether the input tone Nt is equal to or less than "G 3 -note (196.00Hz). If the answer at step S13 is "Yes", the program proceeds to step S104. If the answer at step S13 is "No", the program proceeds to step S105. If the answer at step S12 is "Yes, the program proceeds to step S14 where the CPU 1 determines whether a current timing is a measure head or not. If the answer at step S14 is "Yes", the CPU 1 causes the program to proceed to step S18 for processing at the following step. If the answer at step S14 is "No", the program proceeds to step S15 where the CPU 1 determines whether the current timing is a strong beat or not. If the current timing is a strong beat, the CPU 1 determines a "Yes" answer at step S15 and executes a one-note strong beat part analysis routine shown in Fig. 6. If the answer at step S15 is "No", the program proceeds to step S17 where the CPU 1 executes a one-note weak beat part analysis routine shown in Fig. 7. When the program proceeds at step S18 after determination of a "Yes" answer at step S14, the CPU 1 determines whether or not the input tone Nt is equal to or less than the C3 code and less than the detection tone PBS + 12. If the answer at step S18 is "Yes", the program proceeds to step S104. If the answer at step S18 is "No", the program proceeds to step S19 where the CPU 1 determines whether or not the input tone Nt is more than the G3 code and less than the detection tone PBS + 7. If the answer at step S19 is "Yes", the program proceeds to step S104. If the answer at step S19 is "No", the program proceeds to step S101 where the CPU 1 determines whether or not a detection tone is present in the previous melody part. If the answer at step S101 is "No", the program proceeds to step S104. If the answer at step S101 is "Yes", the program proceeds to step S102 where the CPU 1 sets the lowest detection tone PMbtm of the previous melody part and causes the program to proceed to step S103. At step S103, the CPU I determines whether or not the input tone Nt is less than the lowest tone PMbtm of the previous melody part - 12. If the answer at step S103 is "Yes", the program proceeds to step S104, and if the answer at step S103 is "No", the program proceeds to step S105. At step S104, the CPU 1 executes processing for setting the element of the bass part on the whole analysis list as the input tone Nt and eliminating the list of the other parts. At step S105, the CPU 1 executes processing for setting the element of the melody part on the whole analysis list as the input tone Nt and eliminating the list of the other parts. After processing at step S104 or S105, the program returns to the main routine. As is understood from the above description, in case there is not the previous bass tone in the one-note-part analysis, the bass part is assigned to the melody part on a basis of the G3 code. In case there is the previous bass tone in the one-note-part analysis, the analysis of the one-note-part is effected in accordance with a current timing. When the current timing is a measure head, the one-note-part is analyzed in accordance with the G3 code and the detection tone PBS of the previous bass part or the lowest detection tone PMbtm of the previous melody part for assignment to the bass part or the melody part as shown in Fig. 15. When the current timing is different from the measure head, the one-note-part is analyzed in accordance with the current timing (a strong beat or a weak beat). In processing of the one-note strong beat part analysis routine shown in Fig. 6, the CPU 1 sets at step a1 the lowest detection tone PMbtm of the previous melody part, the highest detection tone PBCtop of the previous bass code part and the list PBCLIST of the previous bass code part and causes the program to proceed to step a2. At step a2, the CPU 1 determines whether LIST = [[PBS]. []. []. []] is satisfied or not or whether the detected key code (an element of LIST) represents only the detection tone of the previous bass part or not. If the answer at step a2 is "Yes", the CPU 1 executes processing at the following step a3 to a6. If the answer at step a2 is "No", the CPU 1 executes processing at the following step a7 to a9. Illustrated in Fig. 16 is allotment of the input tone Nt in the analysis of the one-note strong beat part. At step a3, a4, a5 of the one-note strong beat part analysis routine, the CPU 1 determines an interval relationship between the current input tone Nt and the detection tone PBS of the previous bass part. If "PBS - 2 ≦ Nt ≦ PBS + 2" is satisfied at step a3, the program proceeds to step a19 where the CPU 1 sets the input tone Nt as an element of the bass part and makes the list of the bass code part, melody code part and melody part empty. If "PBS + 2 ≦ Nt ≦ PBS + 12" is satisfied at step a4, the program proceeds to step a15 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of the bass code part and makes the list of the melody code part and melody part empty. If "Nt > PBS + 12" is satisfied at step a5, the program proceeds to step a14 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of the melody part and makes the list of the bass code part and melody code part empty. If "Nt > PBS + 12" is not satisfied at step a5, the program proceeds to step a6 where the CPU 1 sets the input tone Nt as an element of the bass part, sets the detection tone PBS as an element of the bass code part and makes the list of the melody code part and melody part empty. If in processing at step a2 the currently detected tone listed on the whole analysis list includes the detection tone PBS of the previous bass part and other tones, the CPU 1 determines an interval relationship between the current input tone Nt and the detection tone PBS of the previous bass part tone at step a7, a8 and a9. If "PBS = Nt" is satisfied at step a7, the program returns to the main routine. If "PBS - 2 ≦ Nt ≦ PBS" is satisfied at step a8, the program proceeds to step a19 where the CPU 1 sets the input tone Nt as an element of the bass part and makes the list of bass code part, melody code part and melody part empty. If "Nt < PBS -12" is satisfied at step a9, the program proceeds to step a10 where the CPU 1 sets the detection tone PBS as the list BCLST of the previous bass code part and causes the program to proceed to step a11. At step all, the CPU 1 sets the input tone Nt as an element of the bass part, sets the list BCLST as an element of the bass code part and make the list of the melody code part and melody part empty. If "Nt < PBS - 12" is not satisfied at step a9, the CPU 1 executes processing at the following step a12 to a18. At step a12, the CPU 1 determines whether the bass code part of LIST is empty or not. If the answer at step a12 is "Yes", the CPU 1 determines at step a13 whether the lowest detection tone PMbtm is present or not and whether "Nt ≦ PMbtm - 7" is satisfied or not. If the answer at step a13 is "Yes", the program proceeds to step a14 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of melody part and makes the list of bass code part and melody part empty. If the answer at step a12 is "No", the CPU 1 determines at step a16 whether "Nt ≦ PBCtop" is satisfied or not. If the answer at step a16 is "No", the program proceeds to step a17 where the CPU 1 executes an arpeggio continuing routine shown in Fig. 8. If the answer at step a16 is "Yes", the program proceeds to step a18 where the CPU 1 determines whether or not the input tone Nt is included in the bass code part of the whole analysis list LIST. If the answer at step a18 is "Yes", the program returns to the main routine. If the answer at step a18 is "No", the program proceeds to step a19 where the CPU 1 sets the input tone Nt as an element of the bass part, makes the list of the bass code part, melody code part and melody part empty and returns the program to the main routine. In processing of the one-note weak beat part analysis shown in Fig. 7, the CPU 1 sets at step b1 a key code of the lowest tone of the previous melody part as PMbtm, a key code of the highest tone of the previous bass code part as PBCtop and the list of the previous bass code part as PBCLIST and causes the program to proceed to step b2. At step b2, the CPU 1 determines whether or not the presently detected key code includes only the detection tone PBS of the previous bass part. If the answer at step b2 is "Yes", the CPU 1 executes processing at the following step b3 to b6. If the answer at step b2 is "No", the CPU 1 executes processing at the following step b7 to b11. Illustrated in Fig. 17 is allotment of the parts effected in accordance with the input tone Nt during processing of the one-note weak beat part analysis routine. At step b3, b4 and b5 of the weak beat one-note-part analysis routine, the CPU 1 determines an interval relationship between the input tone Nt and the detection tone PBS of the previous bass part, renews the whole analysis list LIST in accordance with the tone pitch of the input tone Nt and returns the program to the main routine. If "Nt = PBS" is satisfied at step b3, the program returns to the main routine. If "PBS < Nt ≦ PBS + 16" is satisfied at step b4, the program proceeds to step b14 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of the bass code part and makes the list of the melody code part and melody part empty. If "Nt > PBS + 16" is satisfied at step b5, the program proceeds to step b13 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of the melody part and makes the list of the bass code part and melody code part empty. If the input tone Nt is less than the detection tone PBS, the program proceeds to step b6 where the CPU 1 sets the input tone Nt as an element of the bass part, sets the detection tone PBS as an element of the bass code part and makes the list of the melody code part and melody part empty. In case the presently detected tone includes the detection tone PBS of the previous bass part and other tones at step b2, the CPU 1 determines an interval relationship between the input tone Nt and the detection tone PBS of the previous bass part at step b7 and b8, renews the whole analysis list LIST in accordance with the tone pitch of the input tone Nt and returns the program to the main routine. If "Nt = PBS" is satisfied at step b7, the program returns to the main routine. If "Nt < PBS" is satisfied at step b8, the program proceeds to step b9 where the CPU 1 adds the detection tone PBS to the list of the previous bass code part and sets it as BCLST. At the following step b10, the CPU 1 sets the input tone Nt as an element of the bass part, sets BCLST as an element of the bass code part and makes the melody code part and melody part empty. If the input tone Nt is out of the detection tone PBS, the CPU 1 executes processing at the following step b11 to b19. At step b11, the CPU 1 determines whether the bass code part of the whole analysis list LIST is empty or not. If the answer at step b11 is "Yes", the program proceeds to step b12 where the CPU 1 determines whether the lowest detection tone PMbtm of the previous melody part is present or not and whether "Nt ≦ PMbtm - 7" is satisfied or not, renews the whole analysis list LIST in accordance with the tone pitch of the input tone Nt and returns the program to the main routine. If the answer at step b12 is "Yes", the program proceeds to step b13 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of the melody part and makes the list of the bass code part and melody code part empty. If the answer at step b12 is "No", the program proceeds to step b14 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the input tone Nt as an element of the bass code part and makes the list of the melody code part and melody par empty. If at step b11 the bass code part of the whole analysis list LIST is not empty, the program proceeds to step b15 where the CPU 1 determines whether "Nt ≦ PBCtop" is satisfied or not. If the answer at step b15 is "No", the program proceeds to step b16 where the CPU 1 executes the arpeggio continuing routine shown in Fig. 8. If the answer at step b15 is "Yes", the program proceeds to step b17 where the CPU 1 determines whether the bass code part of the whole analysis list LIST includes the input tone Nt or not. If the answer at step b17 is "No", the program returns to the main routine. If the answer at step b17 is "Yes", the program proceeds to step b18 where the CPU 1 adds the input tone Nt to the list of the previous bass code part and sets it as BCLST. At the following step b19, the CPU 1 sets the detection tone PBS as an element of the bass part, sets BCLST as the list of the bass code part and makes the list of the melody code part and melody part empty. Thereafter, the program returns to the main routine. In processing of the one-note strong beat part analysis and the one-note weak beat part analysis, the condition or tone area for allotment of the input tone Nt will differ. In the case that only the bass part has been previously detected, the input tone Nt is set as the bass part in processing of the weak beat only when it is lower than the detection tone PBS as shown in Fig. 17, while the input tone Nt is set as the bass part in processing of the strong beat until it becomes PBS + 2. In the case that the bass code part of the whole analysis list LIST is not empty, the input tone Nt is added to the bass code part in processing of the weak beat when "PBS< Nt < PBCtop" is satisfied, while the input tone Nt is set as the bass part in processing of the strong beat. Thus, when the input tone Nt is near to the detection tone PBS of the previous bass part, the input tone Nt is set as the bass part in the strong beat higher than that in the weak beat so that the musical tune tends to be a bass in the strong beat and to be a bass code in the weak beat. When the input tone Nt is higher than the highest tone PBCtop of the previous bass code,the arpeggio continuing routine of Fig. 8 will be executed as follows. At step c1, the CPU 1 sets a key code of the highest tone of the previous melody code part as PMCtop. Subsequently, the CPU 1 determines an interval relationship between the input tone Nt and the highest tone PBCtop of the previous bass code part at step c2 and c3, renews the whole analysis list LIST in accordance with the tone pitch of the input tone Nt and returns the program to the main routine. Illustrated in Fig. 18 is allotment of the parts based on the input tone Nt during processing of the arpeggio continuing routine. If "PBCtop < Nt ≦ PBCtop + 9" is satisfied at step c2, the program proceeds to step c7 where the CPU 1 adds the input tone Nt to the list PBCLST of the previous bass code part and sets it as BCLST. At the following step c8, the CPU 1 sets the detection tone PBS as an element of the bass part, sets BCLST as an element of the bass code part and makes the list of the melody code part and melody part empty. If "PBCtop + 9 < Nt ≦ PBCtop + 16" is not satisfied at step c3, the program proceeds to step c10 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the list PBCLST of the previous bass code part as an element of bass code part, sets the input tone Nt as an element of the melody part and makes the list of the melody code part empty. If "PBCtop + 9 < Nt ≦ PBCtop + 16" is satisfied at step c3, the program proceeds to step c4 where the CPU 1 determines whether the list of the previous melody part is empty or not. If the answer at step c4 is "Yes", the CPU 1 executes processing at step c7. If the answer at step c4 is "No", the CPU 1 determines at step c5 whether "Nt ≦ PMCtop + 9" is satisfied or not. If the answer at step c5 is "Yes", the program proceeds to step c6 where the CPU 1 sets the detection tone PBS as an element of the bass part, sets the list PBCLST of the previous bass code part as the an element of the bass code, sets th input tone Nt as an element of the melody code part and makes the list of the melody part empty. Thereafter, the program returns to the main routine. If "Nt ≦ PMCtop + 9" is not satisfied at step c5, the program proceeds to step c9 where the CPU 1 determines whether "Nt < PMbtm - 7" is satisfied or not. If the answer at step c9 is "Yes", the CPU 1 executes processing at the following step c7 and c8. If the answer at step c9 is "No", the CPU 1 executes processing at step c10. In processing of the arpeggio continuing routine, as shown in Fig. 18, the key code higher than the highest tone PBCtop of the previous bass code part is assigned to the bass code part, melody code part or melody part in accordance with the interval relationship among PBCtop + 9, PMCtop + 9 and PMbtm - 7. The foregoing one-note strong beat part analysis, the one-note weak beat part analysis and the one-note part analysis including each processing of the arpeggio continuing are conducted in common for two-note part analysis, three-note part analysis and four-or-more-note part analysis. In each processing of the two-note part analysis, three-note part analysis and four-or-more-note part analysis described below, one-tone part analysis for the lowest tone of plural input tones is first performed. In addition, each processing of the two-note part analysis, three-note part analysis and four-or-more-note part analysis shown in Figs. 9 to 11 is effected to determine whether the input tone is a measure head or not and to renew the whole analysis list in accordance with an interval relationship among depressed key tones and the content of the whole analysis list defined by a result of the one-note part analysis. In the flow charts shown in Figs. 9 to 11, a hexagonal determination block "vl = [...]"represents whether the left list "vl" is identical with an element of the right list or not. The content of a rectangular block represents renewal of the whole analysis list thereto. (LIST - [...]) In processing of the two-note part analysis shown in Fig. 9, the CPU 1 sets at step S21 a key code of the previous bass tone as PBS, a key code of the lower tone of depressed key two-tones (input tone) as Ntl, a key code of the higher tone of depressed key two-tones Nth and causes the program to proceed to step S22. Subsequently, the CPU 1 sets the lower tone Ntl as Nt at step S22 and executes the foregoing one-note part analysis at step S23. At the following step S24, the CPU 1 sets the whole analysis list LIST indicative of a result of the one-note part analysis as "vl" and causes the program to proceed to step S25. At step 25, the CPU 1 determines whether the current timing is a measure head or not. If the answer at step S25 is "Yes", the program proceeds to step S26 where the CPU 1 determines whether an interval difference between "Ntl" and "Nth" exceeds one octave or not. If the answer at step S25 is "No", the program proceeds to step S27 where the CPU 1 determines whether "Ntl + 12" exceeds "Nth" or not. Thus, the CPU 1 assigns "Ntl", "Nth" to the respective parts in accordance with the list "V1" as shown in the flow chart for renewal of the whole analysis list LIST. When the interval difference of "Ntl" and "Nth" at the measure head is in one octave, the CPU 1 assigns "Ntl" and "Nth" as a pair to the melody code part and the melody part and assigns "Ntl" to the bass part and "Nth" to the bass code part by processing at the following step after step S201. When the interval difference of "Nthl" and "Nth" at the measure head exceeds one octave, the CPU 1 assigns "Ntl" to the melody code part and "Nth" to the melody part and assigns "Ntl" to the bass part and "Nth" to the melody part by processing at the following step after step S202. When the interval difference of "Ntl" and "Nth" is in one octave, the CPU 1 executes processing at step S203 and its following step to assign "Ntl" to the bass part and "Nth" to the bass code part in a condition where the bass part is "Ntl" and the other parts are empty, to assign PBS to the bass part in a condition where the bass part is not "Ntl" or the other parts are not empty and to assign "Ntl", "Nth" as a pair to the bass code part, the melody code part or the melody part. When the interval difference of "Ntl" and "Nth" exceeds one octave, the CPU 1 executes processing at step S204 and it following step to assign "Ntl" to the bass part and "Nth" to the melody part in a condition where the bass part is "Ntl" and the other parts are empty, to assign PBS to the bass part and "Nth" to the melody part in a condition where the bass part is not "Ntl" or the other parts are not empty and to assign "Ntl" to the bass code part or the melody code part. In processing of the three-note part analysis shown in Fig. 10, the CPU 1 sets at step S31 the key code of the previous bass tone as PBS, the key code of the lower tone of three tones of depressed keys (input tone) as "Ntl", the key code of the intermediate tone as "Ntm" and the key code of the higher tone of the three tones as "Nth". Subsequently, the CPU 1 sets at step S32 the lower tone "Ntl" as "Nt", executes at step S33 the one-note part analysis and sets at step S34 the whole analysis list LIST indicative of a result of the one-note part analysis as "vl". When the program proceeds to step S35, the CPU 1 determines whether the current performance part is a measure head or not. If the answer at step S35 is "Yes", the program proceeds to step S36 where the CPU 1 determines whether or not the higher tone and lower tone at the measure head are in an 5th interval apart from the intermediate tone . If the answer at step S36 is "Yes", the program proceeds to the following step where the CPU 1 determines whether or not "vl = [[Ntl]. []. []. []]" is satisfied. If the answer is "Yes", the CPU 1 assigns "Ntl" to the bass part and "Ntm", "Nth" to the bass code part. If the answer is "No", the CPU 1 assings the three tones of "Ntl", "Ntm" and "Nth" to the bass code part. In the answer at step S35 is "No", the program proceeds to step S37 where the CPU 1 determines whether or not the higher tone and lower tone are in the 5th interval apart from the intermediate tone. If the answer at step S37 is "Yes, the CPU 1 determines at the following step whether or not "vl = [[Ntl]. []. []. []]" is satisfied. If the answer is "Yes", the CPU assigns "Ntl" to the bass part and "Ntm", "Nth" to the bass code part. If the answer is "No", the CPU 1 assigns PBS to the bass part and the three tones of "Ntl", "Ntm", "Nth" to the bass code part. Since the chord at the measure head is changeable as described above, the CPU 1 does not assign PBS to the bass part. Since the chord under no presence of the measure head is continued, the CPU 1 assigns PBS to the bass part. As is understood from the flow chart, when the higher tone and lower tone at the measure head is out of the 5th interval apart from the intermediate tone, the three tones of "Ntl", "Ntm", "Nth" are assigned to the lower tone side. When the higher tone and lower tone under no presence of the measure head is out of the 5th interval apart from the intermediate tone, the three tones of "Ntl", "Ntm", "Nth" are assigned to the higher tone side. Even if the higher tone and lower tone at the measure head is out of the 5th interval apart from the intermediate tone, the CPU 1 assigns "Ntl" to the bass part without assigning PBS to the bass part. In addition, "highest two notes more than an 8th interval apart" means the fact that an interval between "Ntm" and "Nth" is higher than the 8th interval, "lowest two notes less than an 8th interval" means the fact that an interval between "Ntl" and "Ntm" is in the 8th interval, and "highest two notes less than an 8th interval apart" means also the fact that an interval between "Ntm" and "Nth" is in the 8th interval. In the case of the 5th interval, these facts becomes similar to the above case. In processing of the four-note-or-more part analysis shown in Fig. 11, the CPU 1 sets at step S41 the key code of the previous bass tone as PBS, the key code of the lowest tone of depressed key tones as "Ntl", the list of depressed key tones as "NTLis" and the list of tones of depressed keys except for the lowest tone as "butlLis". Subsequently, the CPU 1 sets at step S42 the lowest tone Ntl as "Nt", executes at step S43 the one-note part analysis, sets the whole analysis list LIST indicative of a result of the one-note part analysis as "vl" and causes the program to proceed to step S45. At step S45, the CPU 1 determines whether an interval difference between the lowest tone and the next lower tone (the second lower tone) is larger than the 8th interval or not. If the answer at step S45 is "Yes", the program proceeds to step S46 where the CPU 1 determines whether "vl = [[Ntl]. []. []. []]" is satisfied or not. If the answer at step S46 is "Yes", the CPU 1 assigns "Ntl" to the bass part and the list "butlLis" to the bass code part. If the answer at step S46 is "No", the CPU 1 assigns PBS to the bass part and the depressed key list "NTLis" to the bass code part. If the answer at step S45 is "No", the program proceeds to step S47 where the CPU 1 determines whether the interval difference of the second lower tone is in the 5th interval or not. If the answer at step S47 is "Yes", the CPU 1 executes processing at the following step after step S48. If the answer at step S47 is "No", the CPU 1 executes processing at the following step from step S49. At step S48, the CPU 1 sets the list "NtLis" of tones of depressed keys as UndInt 5 and causes the program to proceed to step S401 where "NtLis - UndInt 5" is set as rLis. Subsequently, the CPU 1 determines at step S402 whether "vl = [[Ntl]. []. []. []]" is satisfied or not. If the answer at step S402 is "No", the CPU 1 assigns PBS to the bass part, UndInt 5 to the bass code part and rLis to the melody code part. If the answer at step S402 is "Yes", the program proceeds to step S403 where the CPU 1 sets "UndInt 5 - Ntl" as the list butlU15 and assigns at the following step "Ntl" to the bass part, "butlU15" to the bass code part and "rLis" to the melody code part. Assuming that the program proceeds to step S49, the CPU 1 sets a key code of the second lower tone of the key depression list NtLis as "Ntm" and a key code of the third lower tone of NtLis as "Ntmn2" and causes the program to proceed to step S404. At step S404, the CPU 1 determines whether an interval between "Ntm" and "Ntm2" is in the 5th interval or not. If the answer at step S404 is "Yes", the program proceeds to step S405. If the answer at step S404 is "No", the program proceeds to step S409. Thus, the CPU 1 determines at step S405 or S409 whether the current timing is a measure head or not. Subsequently, the CPU 1 assigns the tones of depressed keys to the respective parts in accordance with the interval between "Ntm" and "Ntm2" to renew the whole analysis list LIST. When the interval between "Ntm" and "Ntm2" at the measure head is in the 5th interval, the CPU 1 assigns "Ntl" to the bass part, "UndInt 5" to the bass code part and "rLis" to the melody code part. When the interval between "Ntm" and "Ntm2" is out of the measure head in the 5th interval, the CPU 1 sets at step S406 "NtLis" as "UndInt5" and at step S407 "NtLis - UndInt5" as "rLis" and causes the program to proceed to S408. At step S408, the CPU 1 determines whether "vl = [[Ntl]. []. []. []]" is satisfied or not. If the answer at step S408 is "No", the CPU 1 assigns "PBS" to the bass part, "Ntl" to the bass code part, "UndInt5" to the melody code part and "rLis" to the melody part. If the answer at step S408 is "Yes", the CPU 1 assigns "Ntl" to the bass part, "UndInt5" to the bass code part and "rLis" to the melody part. When the interval between "Ntm" and "Ntm2" at the measure head is beyond the 5th interval, the CPU 1 assigns "Ntl" to the bass part, "Ntm" to the bass code part, the melody code part and "rLis" to the melody code part. When the interval between "Ntm" and "Ntm2" is out of the measure head and beyond the 5th interval, the CPU 1 sets at step S410 the list "NtLis - Ntl - Ntm" as the list "rLis" and determines at step S411 whether "vl = [[Ntl]. []. []. []]" is satisfied or not. If the answer at step S411 is "No", the CPU 1 assigns "PBS" to the bass part, "Ntl", "Ntm" to the bass code part and "rLis" to the melody code part. If the answer at step S411 is "Yes", the CPU 1 assigns "Ntl" to the bass part, "Ntm" to the bass code part and "rLis" to the melody code part. With the foregoing processing of the performance parts, the key codes produced during the interruption processing every 8th-note duration are analyzed into four performance parts in accordance with plural conditions such as the tone pitch, the current timing, the strong beat or weak beat, the interval relative to the previous bass part and the interval relative to the previous melody part to obtain each key code of the performance parts in the whole analysis list LIST. Thus, detection of a chord is effected on a basis of the whole analysis list as described below. In processing of the chord detection routine shown in Fig. 12, the CPU 1 produces at step S51 a list of notes of the bass code part and melody code part with redundant existence of the same notes omitted and sets the produced list as "ShrLis" and determines at step S52 whether the elements of the list "ShrLis" are more than three (3) or not. If the answer at step S52 is "Yes", the CPU 1 executes processing of the chord detection at the following step S53 to S55. If the answer at step S52 is "No", the program proceeds to step S56. At step S53, the CPU 1 sets an information CHRD of 12 bits for chord detection corresponding with the key codes in the list "ShrLis" as "1" and sets the other bits as "0". Thus, the CPU 1 scans the chord table based on the information CHRD to detect a chord. Subsequently, the CPU 1 determines at step S55 whether the chord detection has been successful or not. If the answer at step S55 is "Yes", the program returns to the main routine. If the chord detection has failed, the program proceeds to step S56 where the CPU 1 sets a list of notes of the bass part and bass code part with redundant existence of the same notes omitted as the list "ShrLis". At the following step S57, the CPU 1 determines whether or not the elements of the list "ShrLis" are more than three (3). If the answer at step S57 is "Yes", the CPU 1 executes processing at step S58, S59 to detect a chord in the same manner as the processing at step S53 and S54. If the answer at step S57 is "No", the program proceeds to step S501 where the CPU 1 determines whether the chord detection has been successful or not. If the answer at step S501 is "Yes", the program returns to the main routine. If the answer at step S501 is "No", the program proceeds to step S502 where the CPU 1 sets a list of notes of the bass part, bass code part and melody code part with redundant existence of the same notes omitted as the list "ShrLis" and returns the program to the main routine. In processing of the chord detection routine shown in Fig. 13, the CPU 1 sets at step S61 a list of notes of the melody part with redundant existence of the same notes omitted as the list "ShrLis" and determines at step S62 whether the elements of the list "ShrLis" are more than three (3) or not. If the answer at step S62 is "No", the program proceeds to step S66. If the answer at step S62 is "Yes", the CPU 1 executes processing at step S63, S64 to detect a chord in the same manner as the processing at step S53 and S54. At the following step S65, the CPU 1 determines whether the chord detection has been successful or not. If the answer at step S65 is "Yes", the program returns to the main routine. If the answer at step S65 is "No", the program proceeds to step S66 where the CPU 1 sets a list of notes of the bass part and melody code part with redundant existence of the same notes omitted as the list "ShrLis". Thus, the CPU 1 executes processing at step S67 and S68 to detect a chord in the same manner as the processing at step S53 and S54 and returns the program to the main routine. With the foregoing processing, the key codes of depressed key tones are analyzed into the four performance parts different in tone areas in accordance with performance of the keyboard, and a chord is detected on a basis of the analyzed performance parts. This is effective to facilitate detection of the chord. Although in the above embodiment the depressed key tones have been adapted as an information to effect the performance part analysis, an information applied from an external equipment or memory may be adapted to effect the performance part analysis. In addition, it is apparent that the timing of the performance can be detected by a measure line memorized in the information. Although in the above embodiment the whole analysis list has been renewed at each processing of the interruption routine to detect a chord, it is apparent that the analyzed performance parts can be successively memorized in the whole analysis list to accumulate a result of the performance part analyses. Although in the above embodiment the analyzed performance parts have been adapted to detect a chord for automatic accompaniment, an information of the automatic performance may be analyzed into a plurality of performance parts and memorized to mute a desired performance part from the memorized performance parts for the automatic performance. This is effective to provide a minus-one function to the electronic musical instrument.

Claims: An electronic music-performing apparatus comprising an input device (4) arranged to be applied with performance information including a plurality of tone pitch information data of tones which constitute a progression of a musical performance, a tone pitch detector (1, 2) for detecting tone pitches of the inputted tone pitch information data, a chord detector (1, 2, 11) for detecting a chord from performance information, and a performance information analyzer (1, 2) for analyzing performance information into a plurality of performance parts; characterized in that the apparatus further comprises detection point providing means (1, 2, 10) for providing a plurality of points for detection allotted in sequence along said progression of the musical performance; said tone pitch detector (1, 2) detects at one point after another among said points, a tone pitch or pitches of at least one inputted tone pitch information data existing at each detection point; said performance information analyzer (1, 2) includes at least one analyzing algorithm and analyzes the detected tone pitch or pitches using said analyzing algorithm to determine which of a plurality of performance parts each of said detected tone pitches belongs to, wherein the plurality of performance parts comprise a bass part, a chord part and a melody part; the apparatus further comprises analysis result storing means (3) for storing data indicating the determined performance part for each of the analyzed tone pitches; and said chord detector (1, 2, 11) includes a chord detection algorithm, for detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using said chord detection algorithm. An electronic music-performing apparatus as set forth in claim 1, wherein said chord detection algorithm is such that the chord detection is made based on the tone pitches which have been determined to belong to said chord part as long as said tone pitches which have been determined to belong to said chord part are sufficient for detecting a chord in light of musical grammar and if not the chord detection is made based on the tone pitches of the chord part and the tone pitches of any other performance parts in combination. An electronic music-performing apparatus as set forth in claim 1, wherein said chord part includes a bass chord part and a melody chord part, and wherein said chord detection algorithm is such that, in case both of the tone pitches analyzed to be in the bass chord part and the tone pitches analyzed to be in the melody chord part have sufficient information for detecting chords, respectively, the tone pitches analyzed to be in the bass chord part are used in preference to the tone pitches analyzed to be in the melody chord part in detecting a chord. An electronic music-performing apparatus as set forth in claim 1, wherein said analyzing algorithm includes a step of comparing the tone pitch under analysis with the data of a previous analysis result stored in said analysis result storing means (3). An electronic music-performing apparatus as set forth in claim 1, further comprising tone number detection means (1, 2) for detecting the number of tone pitches as detected by said tone pitch detection means at said each detection point; and wherein said performance information analyzer (1, 2) includes a plurality of analyzing algorithms depending on the number of detected tone pitches, and analyzes the tone pitches based on the detected number of tone pitches using one of said analyzing algorithms which corresponds to said detected number of tone pitches at each detection point to determine which of a plurality of performance parts each of said detected tone pitches belongs to. An electronic music-performing apparatus as set forth in claim 1, further comprising musical time defining means (1, 2) for defining a time progress with respect to said progression of a musical performance to be analyzed, said time progress including musically different timings of measure heads, strong beats and weak beats; and wherein said performance information analyzer (1, 2) includes a plurality of different analyzing algorithms depending on said different timings, and analyzes the tone pitches based on the musical timing using one of said analyzing algorithms which corresponds to said musical timing as the detection point to determine which of a plurality of performance parts each of said detected tone pitches belongs to. An electronic music-performing apparatus as set forth in claim 1, wherein said applied plurality of tone pitch information data are from tones in a real time musical performance; said detection point providing means (1, 10) includes tempo defining means for defining a tempo of musical time progression in the analyzer, said tempo being selectable, and detection timing providing means for providing a plurality of timings for detection allotted in sequence along said progression of the real time musical performance; said performance information analyzer (1, 2) determines the performance parts for the detected tone pitches in real time along with the real time music performance; and said chord detector (1, 2, 11), includes a chord detection algorithm, for detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using said chord detection algorithm in real time along with the real time music performance. A method, to be carried out in an electronic music-performing apparatus, for detecting a chord from performance information including tone pitch data representing tones which constitute a progression of a musical performance, comprising the steps of: inputting a plurality of tone pitch information data of tones which constitute a progression of a musical performance; providing a plurality of points for detection allotted in sequence along said progression of the musical performance; detecting, at one point after another among said points, a tone pitch or pitches of at least one inputted tone pitch information data existing at each detection point; analyzing the tone pitches using at least one analyzing algorithm to determine which of a plurality of performance parts each of said detected tone pitches belongs to, wherein the plurality of performance parts comprise a bass part, a chord part and a melody part; storing data indicating the determined performance part for each of the analyzed tone pitches obtained as a result of the analyzing step; and detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using a chord detection algorithm. A machine readable medium for use in an electronic music-performing apparatus of a data processing type comprising a computer, for detecting a chord from performance information including tone pitch data representing tones which constitute a progression of a musical performance, said medium containing program instructions executable by said computer for executing: an input process of receiving a plurality of tone pitch information data of tones which constitute a progression of a musical performance; a detection point providing process of providing a plurality of points for detection allotted in sequence along said progression of the musical performance; a tone pitch detection process of detecting, at one point after another among said points, a tone pitch or pitches of at least one inputted tone pitch information data existing at each detection point; an analysis process, performing at least one analyzing algorithm, for analyzing the detected tone pitches using said analyzing algorithm to determine which of a plurality of performance parts each of said detected tone pitches belongs to, wherein the plurality of performance parts comprise a bass part, a chord part and a melody part; an analysis result storing process of storing data indicating the determined performance part for each of the analyzed tone pitches; and a chord detecting process, performing a chord detection algorithm, for detecting a chord based on the analyzed tone pitches in the respectively determined performance parts using said chord detection algorithm.

Inventors: YUTAKA TOHGI
Applicants: YAMAHA CORP, YAMAHA CORPORATION
Application year: 1994
Main classification: G10H1
IPC codes: G10H1