ELECTRONIC MUSICAL INSTRUMENT

Abstract: An electronic musical instrument comprises a first wave form memory for storing a wave form corresponding to an attack portion of a musical tone and one period of a steady wave form produced after the attack, a second wave form memory for storing one period of a wave form dif­ ferent from the contents of the first wave form memory, a wave form reader which reads out the first and second wave forms from the first and second wave form memory, respectively, and an envelope generator which generates two separate envelope signals. The first wave form including the attack portion of the musical tone and the periodic second wave form are multiplied by the separate envelope signals, respectively, and then the products of the multiplication are added together. The sum of the products is provided as an output. Thus, the electronic musical instrument is capable of precisely simulating the attack portions of musical tones of a natural musical instrument and generating musical tone signals having steady part vividly simulating the musical tones of the natural musical instrument.

Description: The present invention relates to an electronic musical instrument which generates musical tones through digital signal processing and more specifically, to an electronic musical instrument capable of simu­ lating the musical tones of natural musical instruments such as pianos, fluetes, horns, strings, etc. In recent years, the introduction of digital signal processing techniques into electronic musical instruments has enabled the gener­ ation of high-quality musical tones. Provisional Japanese Patent Publication (Kokai) No. 52-107823 discloses an advanced electronic musical instrument, the manner of operation of which will be described with reference to a block diagram shown in Fig. 15. When a key on a keyboard 300 is depressed, an R-number memory 301 generates frequency information (hereinafter referred to as "an R-number") corresponding to the de­ pressed key. A gate 302 is controlled by a clock pulse . An accumu­ lator 303 adds the R-number repeatedly at every clock pulse . There­ fore, the output S of the accumulator increases at every clock pulse  from S = 0, R, 2R, ...., and after the output S has exceeded a constant N, a difference S - N remains in the accumulator 303. A wave form memory I 310 and a waveform memory II 320 provides wave forms of two systems addressed by the output S of the accumulator 303. Therefore, when the addressable area of the wave form memory I 310 and the wave form memory II 320 is N, the frequency f of the output is: f = × (frequency of clock pulse  ) ...... (1) Logarithmic wave forms log W₁ and log W₂ are stored beforehand in the wave form memory I 310 and the wave form memory II 320, respectively. A time function generator 330 generates a time function f(t). Indi­ cated at 331 is a logarithmic converter (L/LG converter). An adder 311 operates a₁ + a₂ and a subtractor 321 operates b₁ - b₂. Indicated at 312 and 322 are lagarithmic/linear converters (LG/L converters) at 341 is an adder, at 350 is an envelope generator, at 342 is a multi­ plier which multiplies the output of the adder 341 by the output of the envelop generator 350, at 343 is a D/A converter, at 344 is an amplifier and at 345 is a speaker. In operation, when the key is de­ pressed, the time function generator 330 generates a time function f(t), and then the L/LG converter 331 converts the time function f(t) into log f(t). On the other hand, the wave form memory I 310 and the wave form memory II provide wave forms log W₁ and log W₂ of a frequency decided by Expression (1), respectively. Consequently, the adder 311, the subtractor 321, the LG/L converter 312 and the LG/L converter 322 provide log W₁ + log f(t), log W₂ - log f(t), W₁ × f(t) and W₂/f(t), respectively. Therefore, the adder 341 provides W₁ × f(t) + W₂/f(t), and then this output of the adder 341 is multiplied by the envelope siganl generated by the envelop generator 350 by the multiplier 342. The result of the multiplication is converted into a corresponding analog signal by the D/A converter 343 and the analog signal is ampli­ fied by the amplifier 344 to drive the speaker 345 to generate a cor­ responding musical tone. Since the above-mentioned constitution is calculated only to vary the mixing ratio of two wave forms with time, this constitution is unable to simulate the subtle variation in tone during the initial rising period (usually called "attack period") of each sound. The portion of a sound wave form during the attack period hereinafter be referred to as "attack portion". SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an electronic musical instrument capable of simulating subtle variations of musical tones during each attack period and capable of generating natural (not electrical-tone-like) musical tones in the steady state. In order to achieve the object of the invention, the present invention provides an electronic musical instrument comprising: a data bank for storing first wave form data corresponding to an attack portion of a musical tone , second wave form data corresponding to one cycle wave form of a musical tone, first parameter representing a characteristic of a first envelope representing a sound level variation of the first wave form data, and second parameter representing a characteristic of a second envelope representing a sound level variation of the second wave form data; envelope forming means which reads out the first parameter and the second parameter from the data bank and forms the first envelope and the second envelope; data producing means which reads out the first wave form data sequentially from the data bank, wave form data of the last cycle of the first wave form being read out repeatedly, and multiplies the data read out from the data bank by the first envelope to produce first data, and at the same time reads out the second wave form data repeatedly from the data bank and multiplies the read-out second wave form data by the second envelope to produce second data; and musical tone data producing means which adds the first data and the second data to produce musical tone data. In this electronic musical instrument, when each key of the key­ board is depressed, previously stored wave form data corresponding to the attack portion of a musical tone of a natural musical instrument is read out, two wave form data are respectively multiplied by envelopes independent of each other, and the products of the multiplication are added together, so that the subtle variation in tone during each attack period can be reproduced. The multiplication of two wave form data by the indipendently provided envelopes prevents the reproduced tone in the steady state from becoming monotonous. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1a is a block diagram of an electonic musical instrument, in a preferred embodiment, according to the present invention; Figure 1b is a time chart of data transfer operation of a micro­ processor; Figure 1c is a diagram showing operation time slots employed in the present invention; Figure 2 is a block diagram of a musical tone signal generating unit 1-5 according to the present invention; Figure 3 is a block diagram showing the principle of note clock pulse generation of the musical tone signal generating unit 1-5; Figure 4 is a detail view of the SEQ 2-2 of the musical tone signal generating unit 1-5; Figure 5 is a detail view of the UCIF 2-3 of the musical tone signal generating 1-5; Figure 6 is a detail view of the CDR 2-4 of the musical tone signal generating unit 1-5; Figure 7 is a detail view of the memory 205 of the musical tone signal generating unit 1-5; Figure 8 is a detail view of the FA 2-6 of the musical tone signal generating unit 1-5; Figure 9a is a detail view of the MPLY 2-7 of the musical tone signal generating unit 1-5; Figure 9b is a detail view of the multiplier 9-16 of the MPLY 2-7; Figure 10 is a detail view of the I/O 2-10 of the musical tone signal generating unit 1-5; Figure 11a is a detail view of the MSW 2-11 of the musical tone signal generating unit 1-5; Figures 11b to 11j are patterns of the switch employed in the MSW 2-11 of the musical tone signal generating unit 1-5; Figure 11j is a time chart of data transfer operation of the MSW 2-11; Figure 12 is a diagram showing the data format of a data bank 1-6; Figure 13 is a diagram showing the data format of the envelope data of the data bank 1-6; Figure 14 is a wave form chart showing the wave form of a musical tone signal provided by the electronic musical instrument according to the present invention; and Figure 15 is a block diagram of a conventional electronic musical instrument. DESCRIPTION OF THE PREFERRED EMBODIMENTS In Fig. 1a showing an electronic musical instrument according to the present invention, there are shown a keyboard 1-1, a tablet 1-2 which is, a control unit for instructing the selection of musical tone signals to be produced by the electronic musical instrument, effect switches 1-3 for controlling effects, such as vibrato and tremolo, to be imparted to musical tones, a microprocessor (µP) 1-4, such as Intel 8049, a musical tone signal generating unit (tone generator) 1-5 which calculates waveforms and frequencies according to control signals given thereto by the microprocessor 1-4, a data bank 1-6 comprising a read only memory (ROM) for storing wave form data and envelope data to be used by the musical tone signal generating unit 1-5, a filter 1-7 for removing aliasing noise in the output musical sound signals of the musical tone signal generating unit 1-5, and a speaker 1-8. In operation, the condition of the keyboard 1-1, the tablet 1-2 and the effect switches 1-3 is searched sequentially according to commands previously stored in the microprocessor 1-4. The microproces­ sor 1-4 provides an assignment signal to assign the code of a depressed key of the keyboard 1-1 to a plurality of channels of the musical tone signal generating unit 1-5 on the condition of the key and also provides control data corresponding to the condition of the tablet 1-2 and the effect switches 1-3. The musical tone signal generating unit 1-5 re­ ceives the assignment signal and other control signals provided by the microprocessor 1-4 into its internal registers,and then reads out neces­ sary wave form data and envelope data from the data bank 1-6 according to the output signals of the microprocessor 1-4 to synthesize a musical tone signal. The musical tone signal synthesized by the musical tone signal generating unit 1-5 is given through the filter 1-7 to the speaker 1-8 to produce a corresponding musical tone. A timing chart of data transfer from the microprocessor 1-4 to the musical tone signal generating unit 1-5 is shown in Fig. 1b and the contents of the data given by the microprocessor 1-4 to the musical tone signal generating unit 1-5 are tabulated in Table 1. In Table 1, note octave data NOD includes note data, octave data OCT and key-on data Kon. The concrete bit constitution of the NOD is shown in Table 2, the note data and the corresponding musical tones are shown in Table 3 and the octave data OCT and the corresponding octave ranges are shown in Table 4. Suppose that a musical tone of the sixth octave of note G# (hereinafter referred to as "G#6") is required to be provided on channel 1, the microprocessor 1-4 gives an address 00000001 and data 10011110 to the musical tone signal generating unit 1-5. Pitch detune data PDD is 8-bit data represented by two's complements among 256 two's complements in the range of -128 to +127, for modulating the tune. Release data RLD is 4-bit data for controlling damping charac­ teristics after key-off. When the bit of a volume flag VOL is "1", the output level of the musical tone signal provided by the musical tone signal generating unit 1-5 can be controlled according to volume data VLD. Damper flag DMP indicates quick damping after key-off for a piano-type envelope, which functions when DMP = 1. Solo flag SOL is provided for deciding whether or not the matching of the phase char­ acteristics of a musical tone signal provided in a channel and those of the same musical tone assigned in another channel. When SOL = 1, phase matching is cancelled. Tablet data TAB is 5-bit data in which data selected by the tablet 1-2 of Fig. 1a is entered. When a pitch extend flag PE is bit "1", the corresponding channel is subject to pitch extend. Volume data VLD controls, in combination with the volume flag VOL, the level of the output musical tone signal of the channel at a 8-bit fineness. A series of these data can be individually as­ signed to channels. The arithmetic sequence of the musical tone signal generating unit 1-5 will be described hereinafter. Tables 5 and 6 show the arithmetic sequence of the musical tone signal generating unit 1-5. The arithmetic sequence has an initial mode and a normal mode to carry out data processing operation within a short cycle. The initial mode and the normal mode each has a long sequence and a short sequence. The initial mode short sequence and the normal mode long sequene each has an EVEN-state and an ODD-state. In the initial mode, when the microprocessor 1-4 gives a new command for musical tone signal generation to the musical tone signal generating unit 1-5, initialization of the channel of the musical tone signal generating unit 1-5 assigned by the microprocessor 1-4 is exe­ cuted. In the initial mode, first the long sequence is carried out, then the short sequence is carried out twice, and then the initial mode is changed for the normal mode. In the initial mode, the first short sequence is a short sequence of the ODD-state and the second short sequence is a short sequence of the EVEN-state. After the com­ pletion of the initial mode, the normal mode is started, in which the short sequence is carried out six times, and then the long sequence is carried out once. In this embodiment, two individual wave forms are multiplied by two individual envelopes for each channel. This embodiment is capable of fine regulating function, however, time shared operation for the eight channels requires numerous steps. Operations to be carried out in a short cycle is included in the short sequence, while those to be carried out in a long cycle, namely, those which are not operated frequently, are included in the long sequence. The long sequence is inserted between the short sequences to improve the efficiency of oper­ ation. Fig. 1c is a time chart of the short sequence and the long se­ quence. The short sequence consists of eleven time slots 0 to 10, while the long sequence consists of nine time slots 11 to 19. The width of each time slot is 250ns, which is divided into four sections. The system operates with a nonoverlapping two-phase clock signals of 1 and 3. The long sequence for one channel is inserted in the short sequence for eight channels 0 to 7. Accordingly, for example, the short sequence and the long sequence for channel 3 appear every 97 = 11 × 8 + 9 time slots and 776 = 97 × 8 time slots, respectively. Since the normal mode long sequence has the EVEN-state and the ODD-state, the cycle of operation of the system corresponds to 776 × 2 = 1552 time slots. The individual arithmetic sequences will be desicribed hereinafter with reference to Tables 5 and 6. As mentioned above, when a new key is depressed, the musical tone signal generating unit 1-5 starts the intial mode long sequence. First, the time slots for the initial mode long sequence will be described. Adding Part (13) PDD + PED → PDR (15) 0 → TR1 (16) 0 → TR2 (17) 0 → ZR1 (18) 0 → ZR2 The time slot 13 means adding the contents of registers PDD and PED and storing the sum in a register PDR, and the time slots 15 to 18 mean writing "0" in registers TR1, TR2, ZR1 and ZR2, re­ spectively. Data Bank Reading Part (12) WTD → HAD → HAD (14) HAD → CONT → CONT, DIF1 (16) ∿ (17) HAD → STE → EAR1 The above representations mean reading out data (CONT for the time slot 14) written in the middle by using the data (HAD for the time slot 14) as an address from the data bank 1-6 and storing the data read out from the data bank 1-6 in a register or registers (CONT and DIF1 for the time slot 14) written on the right. Initial Mode Sequence: Adding Part (1) PDR + JD L.B. ; 0 → ER2/1 (3) ORG + OCT + 1 → WE2 →ΔWAR (4) D.B. + EAR1 → EAR2 (6) 0 → WR1 (8) 0 → ER1 (9) 0 → WE2 (10) 0 → WE1, WR2 In the time slot 1, 0→ER2/1 means writing "0" in a register ER2 and in a register ER1 in the first short sequence, namely, in the ODD-state, and in the second sequence, namely, in the EVEN-state, re­ spectively. L.B. means transferring the result of PDR + JD through a bus L to a multiplying part, which will be described later, without storing the result PDR + JD in any register. In the time slot 3, the representation means temporarily storing the result of operation in a register WE2 and storing the same in a register ΔWAR after decoding. In the time slot 4, the representation D.B. means transmitting data read out from the data bank by a data bank reading part, which will be described later, to an adder without storing the data in any register. Multiplying Part (4) (6) C.B. × CN1 → FR C.B. means directly transmitting the output of the adding part to the multiplying part without storing the output in any register. In this case, the output corresponds to PDR + JD obtained in the time slot 1. Data Bank Reading Part (1) HAD → ΔSTE → A.B. (3) ∿ (4) EAR1/2 → E1/2 →ΔT1/2, ΔE1/2, ΔZ1/2 (6) ∿ (7) HAD → STW/ΔSTW → STW/WAR A.B. in the time slot 1 means directly transmitting the data read out from the data bank to the input A of the adding part without storing the same in any registor. STW/ΔSTW → STW/WAR in the time slots 6 and 7 means reading out data STW and storing the same in a register STW in the first short sequence, namely, in the ODD-state, and reading data ΔSTW in the second short sequence, namely, in the EVEN-state, and storing the same in a register WAR. The normal mode will be described hereinafter. Normal Mode Short Sequence In Table 6, representations marked with "*" indicate operations to be performed only by the first short sequence after a note clock pulse has been produced. A flag for controlling those operations is designated as a calculation request flag CLRQ. Adding Part (1) WE2 + WE1 → L.B. (2) STW + WAR → D.B., B.B. (3) ZR1 + ΔZ1 → ZR1 (4) DIF 1 + C.B. → D.B. (5) ER1 + ΔE1 + Ci → ER1 (6) ZR2 + ΔZ2 → ZR2 (7) WAR + ΔWAR → WAR* (8) ER2 + ΔE2 + Ci → ER2 (9) FR + CDR → CDR* In the time slot 1, L.B. indicates directly transmitting the result of calculation to the multiplying part without storing the same in any register. In the time slot 2, D.B., B.B. indicates directly transmitting the result of calculation to the data bank reading part and the input B of the adding part, respectively. In the time slot 4, C.B. indicates the direct input of the result of operation of the adding part without storing in any register. In this case, the result of calculation STW + WAR in the time slot 2 is provided, and D.B. indicates direct application of the result of calculation to the data bank reading part. In the time slots 5 and 8, Ci indicates the carry of the result of operation. Multiplying Part (1) ∿ (3) WR2 + ER2 → WE2* (4) ∿ (6) C.B. × CN → (DAC) (7) ∿ (9) WR1 X ER1 → WE1* In the time slots 4 to 6, C.B. indicates direct application of the output of the adding part to the multiplying part without storing in any register. In this case, the output corresponds to WE2 + WE1 in the time slot 1. (DAC) indicates giving the result of operation to a DAC (DA converter, which will be described later). Data Bank Reading Part (4) ∿ (5) C.B. → W1 → WR1* (7) ∿ (8) C.B. → W1 → WR2* In the time slots 4 and 5, C.B. indicates direct transmission of result to calculation to the data bank reading part as the address of the data bank 1-6, in which the result of calculation corresponds to STW + WAR of the time slot 2. In the time slots 7 and 8, C.B. also corresponds to the result of calculation DIF1 + (STW + WAR) in the time slot 4. Long Sequence: Adding Part (13) Δ/T1/2 + TR1/2 → TR1/2 (14) PDR + JD → L.B. (15) ΔEAR1/2 + Ci (16) PDD + PED → PDR In the time slot 14, L.B. indicates direct transmission of the result of calculation in the adding part, namely, PDR + JD, to the multiplying part without storing the same in any register. In the time slot 15, Ci indicates carry resulting from operation in the time slot 13. Multiplying Part (16) ∿ (18) CN + C.B. → FR C.B. indicates direct transmission of the result of calculation in the adding part, where inputted is result of calculation PDR + JD in the time slot 14. Data Bank Reading Part (14) ∿ (15) EAR2/1 → E2/1 →ΔT2/1, ΔE2/1, ΔZ2/1 In the above representation, "2/1" indicates that "2" for the ODD-state (for example, E2/1 is E2 in the ODD-state) and "1" for the EVEN-state (E1); separate data are read out in the ODD-state and EVEN-­ state and the separate data are stored in separate registers, respectively. Fig. 2 is a detail view of the musical tone signal generating unit (tone generator) 1-5 of Fig. 1a. In Fig. 2, there are shown a master clock 2-1 which generates clock pulses of frequency f = 8.00096MHz, a sequencer 2-2(hereinafter referred to as "SEQ") which divides the master clock 2-1 and generates a sequence signal (hereinafter referred to as "SQ signal") of the musical tone signal generating unit 1-5 and various control signals, a microprocessor interface (hereinafter re­ ferred to as "UCIF") 2-3 which receives data provided by the micro­ processor 1-4 asynchronously with the musical tone signal generating unit 1-5 and matches the data to the SQ signal provided by the SEQ, and also generates a flag INI indicating mode change between the initial mode and the normal mode, a comparison register (hereinafter referred to as "CDR") 2-4 which compares the data of eight channels of the re­ gister CDR shown by the arithmetic sequence with a division signal of ten bits obtained by sequentially dividing the master clock signal, and then generates note clock signals for eight channels and a cal­ culation request flag CLRQ, a random access memory (hereinafter re­ ferred to simply as "memory") 2-5 which stores various results of calculation performed by the musical tone signal generating unit 1-5, a full adder unit (hereinafter referred to as "FA") 2-6 having a 16-bit full adder which performs the addition of various data, a multiplying unit (hereinafter referred to as "MPLY") 2-7 having a multiplier which executes an operation represented by (two's complement of twelve bits) × (absolute value of ten bits), a digital-to-analog converter (hereinafter referred to as "DAC") 2-8 which converts digital musical tone data provided by the MPLY 2-7 into the corresponding analong musical tone data, an analog buffer memory unit (hereinafter referred to as "ABM") 2-9 which synchronizes musical tone data provided by the DAC 2-8 at the machine cycle by the note clock pulse provided by the CDR 2-4, an input-output circuit (­ hereinafter referred to as "I/O") 2-10 which gives address signals to the data bank 1-6, reads out wave form data and envelope data corre­ sponding to the address signals and, if necessary, converts the read data, and a matrix switch unit (hereinafter referred to as "MSW") 2-11 which connects lateral bus lines HA, HB, HC, HD, HE and HL connected to the UCIF 2-3, CDR 2-4 and memory 2-5 and longitudianl bus lines A, B, C, D and L connected to the FA 2-6, MPLY 207 and I/O 2-10, ac­ cording to the SQ signal. These circuits executes the arithmetic sequences shown in Tables 5 and 6. The functions and constitution of the ABM 2-9 are the same as those of an analog buffer memory disclosed in Unexamined Japanese Patent Publication (Kokai) No. 59-214091. The individual circuits of the musical tone signal generating unit 1-5 will be described hereinafter. Fig. 4 is a detail view of the SEQ 2-2 of Fig. 2. The SEQ 2-2 has a counter 4-1, a sequence ROM (SQROM) 4-2 and a logic gate 4-3. The counter 4-1 divides the master clock signal and produces various timing signals shown in Fig. 1c. Signals TS represent the time slots of Fig. 1c, a channel code CHC is a signal representing the channel number in Fig. 1c, a signal EV indicates the ODD-state and the EVEN-­ state of the arithmetic sequences, in which EV = 0 and EV = 1 indicate the ODD-state and the EVEN-state, respectively. The time slot signals TS and flag INI are supplied to the address input of the SQROM 4-2. The SQROM 4-2 produces various control instructions for time slot on the basis of those input signals. The logic gate 4-3 controls the output of the SQROM 4-2 by various flags and the flag CLRQ and produces SQ signals to instruct the manner of operation of the functional circuits for each time slot, according to the instructions given thereto by means of the effect switches 1-3 and playing information. In Fig. 4, the SQ signals are indicated by SQ. Fig. 5 is a detail view of the UCIF 2-3. Referring to Fig. 5, a latch 5-1 latches A/D 0 to 7 given thereto from the micorprocessor 1-4 of Fig. 1a by ALE. The relation between the A/D 0 to 7 and the ALE is shown in Fig. 1b. The latch 5-1 latches the addresses shown in Table 1. A latch 5-2 latches the A/D 0 to 7 given thereto from the microprocessor 1-4 by . Since the A/D 0 to 7 are related to the as shown in Fig. 1b, the latch 5-2 latches the data shown in Table 1. A latch 5-3 latches the output of the latch 5-1 under the control of the . The addresses are latched at two stages because the ALE becomes "1" periodically regardless of the . Latching the addresses at two stages, the latches 5-3 and 5-2 store the addresses and data until new data is written by the . A 1-word 8-bit RAM 5-4 has an address input terminal A, an output control terminal OE and a data terminal D connected to a bus line HE. When OE = 1, an address given to the ad­ dress input terminal A is provided from the data terminal D. Indicated at WE is a write control terminal. When WE = 1, data given to the terminal D is written in an address given to the input terminal A. The output control terminal OE and the write control terminal WE are controlled by the SQ signals. A RAM 5-4 has eight channels storing various data shown in Table 1 (NOD, PDD, RLD·VOL·DMP·SOL, TAB·PE, VLD), control data CONT (data fetched from the data bank) and data PDR stored in a pitch data register. A selecter 5-5 selectively gives, on the basis of another SQ signals, addresses specified by the microprocessor 1-4 and addresses specified by the SQ signals to the input terminal A of the RAM 5-4. A signal processor 5-6 is connected to the bus line HE. The signal processor 5-6 receives data from the bus line HE and produces various flag signals. The signal processor 5-6 also produces sixteen releasing envelopes corresponding to four bits of release data RLD provided by the microprocessor 1-4 and provides the releasing en­ velopes on the bus line HE. A gate 5-7 is opened by the SQ signal to provide the output of the latch 5-2, namely, the data provided by the microprocessor 1-4, on the bus line HE. The functions of the UCIF 2-3 will be described hereinafer. Suppose that the data shown in Table 1 is fed to the UCIF 2-3 from the microprocessor 1-4 in the manner as shown in Fig. 1b and, for example, an address 05₁₆ and data 89₁₆ is specified, namely, keying for F#1 is specified to the channel 5. First, the signal ALE causes the latch 5-1 to latch the address, and then the signal causes the latch 5-2 to latch the data and the latch 5-3 to latch the address. Then, the selector 5-5 selects the output of the latch 5-3 at a pre­ determined time and the gate 5-7 is opened to feed a write signal to the WE of the RAM 5-4. Consequently, the data latched by the latch 5-2, namely, the data 89₁₆ specified by the microprocessor 1-4, is provided on the bus line HE and the latch 5-3 gives a signal specifying the address 05₁₆ to the input terminal A of the RAM 5-4, and thereby the data 89₁₆ is written in an address 05₁₆ of the RAM 5-4. Thus, various data shown in Table 1 are written in the RAM 5-4. As shown in Table 1, the RAM 5-4 stores flags such as VOL flags PE flags. These flags are fed through the bus line HE to and are latched temporarily by the signal processor 5-6. Fig. 6 is a detail view of the CDR 2-4. A ten-sit divider 6-1 receives the master clock signal. A RAM with comparator 6-2 (herein­ after referred to as "CDRAM") has eight words each of thirteen bits. The upper ten bits of each word is provided with a comparator which compares the ten bits with data divided by the divider 6-1 fed to a terminal T. When all the ten bits are equal, an equal pusle is provided from a terminal C. The functions of OE, WE, A and D are the same as those of the RAM 5-4. Indicated at 6-3 is a decoder. The relation between A- and EN-input and D-output is shown in Table 8. Indicated at 6-4 to 6-11 are RS flip flops; when a positive pulse signal is fed to the input terminal S, the output at the output terminal Q is "1", and when a positive pulse signal is fed to the input terminal R, the output at the output terminal Q is "0". The equal pusles of the channels 0, 1, .... are fed to the input terminals S of the RS flip flops 6-4, 6-5, .... A selector 6-12 selects one signal among eight input signals given to the input terminal A, according to a channel code CHC 3 bit, and provides the selected signal from the output ter­ minal D. A latch 6-13 latches the output of the selector 6-12 according to the SQ signal. Indicated at 6-14 is an AND gate. In operation, the divider 6-1 divides the master clock signal and gives ten bits of divided output to the input terminal T of the CDRAM 6-2. Each word of the CDRAM 6-2 has an optional value. An equal pulse signal is provided from the terminal C for every coincidence of the value of each word with the output of the divider 6-1. Since the CHC, i.e., a signal indicating a channel is applied to the input terminal A of the CDRAM 6-2, each word corresponds to each channel, and hence an equal pulse signal is given for each channel. Since the equal pulse signals are given to the RS flip flops 6-4 to 6-11, the outputs Q of the RS flip flops corresponding to the channels carrying the equal pulse signals become "1". The outputs Q of the RS flip flops 6-4 to 6-11 are selected sequentially one by one on the basis of the channel code CHC and are latched by the latch 6-13. Since the output of the latch 6-13 is given to the AND gate 6-14, when the output Q of the RS flip flop presently selected by the selector 6-12 is "1", the re­ levant channel connected to the output terminal D of the decoder 6-3 is changed to "1" by the SQ signal given to the AND gate 6-14, and thereby the output terminal Q of the RS flip flop is reset at "0". Fig. 7 is a detail view of the memory 2-5. In Fig. 7, indicated at 7-1 to 7-4 are RAMs, the functions of the OE, WE, A and D of which are the same as those of the RAM 5-4. The RAMs 7-1, 7-2, 7-3 and 7-4 store the registers for eight channels of WAR, EAR1, ΔZ1, ΔE1, EAR2, ΔZ2 and ΔE2, the resisters for eight channels of WR2, ZR1, ΔT1, FR, ΔWAR, ZR2 and ΔT2, the registers for eight channels of ER1, TR1, DIF1, DW1, ER2, TR2, STW, TAB' and HAD, and the registers of eight channels for NOD', WE2 and VLD', respectively. NOD', TAB' and VLD' are the data of NOD, TAB and VLD written in RAM 5-4. Indicated at 7-5 is a ROM for thirteen words each of ten bits. The ROM 7-5 stores note sequences of the arithmetic sequences shown in Tables 5 and 6. The ROM 7-5 has an address input terminal A, an output terminal Q and an output control terminal OE. When OE = 1, the contents of the ROM is provided at the terminal Q and, when OE = 0, the terminal Q is in a high impedance state. Values of note coefficients are shown in Table 7. The ten-bit output of the ROM 7-5 is connected to the lower ten bits of a bus line HD. A signal processor 7-6 has a circuit which reads out note date ND and octave data OCT from the NOD' stored in the RAM 7-4 and produces pitch detune data PED on the basis of the data ND and OCT and a PE flag, and a decoding circuit which reads out and decodes the data stored in the register WE2. Fig. 8 is a detail view of the FA 2-6. In Fig. 8, indicated at 8-1 to 8-8 are latches which are controlled by signals 1 and 3 produced by the SEQ 2-2. An adder 8-9 adds values of sixteen bits provided on an input A and an input B and value provided on carry input Ci, and provides output signals C and Co. Co is a carry output produced by calculation. Bit processing circuits 8-10 and 8-11 which operates the bits of the outputs of the latches 8-1 and 8-2. A logic gate 8-12 sets the output of the latch 8-6 forcibly at "1" or "0" according to the SQ signal or passes the outpout of the latch 8-6. A RAM 8-13 has twelve words each of nine bits. The functions of the A, D, WE and OE of the RAM 8-13 are the same as hose of the RAM 5-4. The nine bits of the output D are connected to the lower nine bits of a bus line C. A RAM 8-13 provided for phase matching, which will be described later, controls the phase of wave form data reading address WAR for each one of twelve notes. Fig. 9a is a detail view of the MPLY 2-7. In Fig. 9, indicated at 9-1 to 9-9 are latches. The latches 9-3 and 9-5 are connected to the bits 0 to 9 of a bus line L and the bits 9 to 12 of the bus line L, respectively. Indicated at 9-10 is an encoder, the inputs and out­ puts of which are shown in Table 9. A shifter 9-11 shifts a signal of sixteen bits given to I according to a control signal give to C and provides an output signal at 0. The contents of shift are shown in Table 10. A bit processing circuit 9-12 processes the bits of the output signal of the latch 9-3 according to the SQ signal. Indicated at 9-13 is a decoder, the inputs A and the outputs D of which are shown in Table 11. A selector 9-14 provides sixteen signals given to A or sixteen signals given to B through Y when C = 1 or C = 0, respectively. The lower eleven bits of input A are connected to earth potential GND, that is lower eleven bits are "0". A shifter 9-15 a shifts a signal of fourteen bits given to an input I according to a control signal given to C and provides an output siganl through 0. The contents of shift are shown in Table 12. Indicated at 9-16 is a multiplier, in which input A is two's complements of twelve bits, input B is absolute values of ten bits and output is two's complements of fourteen bits. Normally, multiplication: (twelve bits) × (ten bits) provides a product of twenty two bits. Naturally, the fourteen bits of the output of the multiplier 9-16 are the upper fourteen bits of the twenty-two bits. Accordingly, the relation between the input and the output of the multiplier 9-16 is represented by: The multiplier 9-16 of the MPLY 2-7 is constituted as follows to simplify the circuit. An ordianry multiplier for calculating (two's complement of twolve bits) × (absolute value of ten bits) has 116 adding cells to provide an accurate product of twenty-two bits, however, since the present embodiment utilizes only the upper fourteen bits and does not utilize the lower eight bits, adding cells for operating the lower seven bits which do not affect the LSB of the upper fourteen bits are omitted. Thus, in the multiplier 9-16, twenty-eight adding cells for operating the lower bits are omitted to constitute a multiplier having a constitution shown in Fig. 9b. In Fig. 9b, the same cells are arranged also in area enclosed by broken lines. Each block shown in Fig. 9b is an adder having inputs A, B and Ci (carry input) and outputs S (sum) and Co (carry). Fig. 10 is a detail view of I/O 2-10. In Fig. 10, indicated at 10-1 to 10-8 are latches. The latch 10-3 is a latch with set, the input of which is connected to bits 7 to 9. A shift selector 10-9 which changes the input between input A and input B according to input C and shifts input A by one bit. A bit operation circuit 10-10 sets the lower three bits forcibly at "1" or "0" according to the SQ signal. Indicated at 10-11 is a decoder, the input I and the output D of which are shown in Table 13. The output bits 12 to 15 of the latch 10-7 are given to the input I of the decoder 10-11. A selector 10-12 provides either the input A or the input B given to input C through output Y. A shifter 10-13 shifts input given to I according to input given to a control terminal C and provides an output through O. A noise circuit 10-14 mixes a noise corresponding to a noise flag NA into input data. Fig. 11a is a detail view of MSW 2-11, in which circles represent switches, namely, MOSFETs of N-channels as illustrated in Fig. 11b. When SQ signal = 1, the MOSFET is closed to connect the longitudinal line and the lateral line for data transfer. In this SMW 2-11, all the bus lines are precharged by the signal 1 before data transfer for quick data transfer. Since the switch is a MOSFET of N-channels, the bus lines are precharged to prevent the drop of the level of "1" of data by a value corresponding to the threshold voltage of the MOSFET. Examples of switch patterns employed in the MSW 2-11 are illustrated in Figs. 11c to 11i, in which intersection points encircled by circles are connected by the switches. In these examples, each bus line is supposed to be of eight bits, for convenience' sake. In Fig. 11c, bn and an (n = 0 to 7) are connected by the switches. In Fig. 11d, values of four bits b0 to b3 and "0" are written through the switches in the longitudinal bus. In Fig. 11e, bits b0 to b3 and bits c4 to c7 are written in bits 10 to a3 and in bits a4 to a7, respectively, so that data provided in two buses are mixed and the mixed data is transferred to another bus. In Fig. 11f, bit position is changed for data transfer from bus to bus. In this switch arrangement, the upper four bits and the lower four bits of the data of the lateral bus are inverted to transfer data to the longitudinal bus. Figs. 11g to 11i illustrates exemplary circuits for setting a constant in the bus. The circuit of Fig. 11g sets all the bits of the bus at "0". The circuit of Fig. 11h sets 101010101, namely, AA₁₆ in the bits of the bus. Bits a7, a5, a3 and a1 not having any switch hold "1" written immediately before the switch is opened by precharging. Fig. 11i shows an arrangement for changing the value of constants by a flag TO. When TO = 0, 00₁₆ is written in the bus and, when TO = 1, EB₁₆ is written in the bus. The switches shown in Figs. 11c to 11i are arranged in the MSW 2-11 according to the purpose and are operated selectively to achieve data transfer from an optional bus to other optioanl bus including necessary bit operation. For example, when simultaneous data transfer from bus HA to bus A, from bus HB to bus B and from bus C to bus HC is required, the switches SW1, SW7 and SW13 are closed simultaneously. When the data transfer from bus C to buses L and D, switches SW28, SW29 and SW30 are closed, and thereby the data is transferred from bus C through bus HL to buses L and D. In the MSW 2-11, data transfer is carried out at a time shown in Fig. 11j. In a period corresponding to 1 = 1, the longitudinal and lateral bus lines are prechrged, in a period from the trailing edge of 1 and the leading edge of 3, the data is transferred, and the data is latched at the trailing edge of 3. There is a sufficient time for stable latching operation between the trailing edge of 3 and the leading edge of 1. The data bank 1-6 will be described hereinafter. The data bank 1-6 stores four kinds of data, namely, header address data (1), header data (2), wave form data (3) and envelope data (4). The header address data is eight-bit data indicating the address of the header data, and header data is eight-bit data indicating the addresses and the attribute of the wave form data and the envelope data. The four kinds of data will be described in detail hereinafter. (1) Header Address Data (HAD) Header address data indicates the address of the header data by a note assigned to each tablet, each octave and every three keys. The addresses of the header address data are shown in Table 14. Tablet data TAB, octave data OCT, the upper two bits of note data ND and "1" are stored in bits 9 to 5, bits 4 to 2, bits 1 to 0 and the rest of the bits. The ten bits consisting of TAB, OCT and ND are sesignated as WTD, each of which are shown in Table 1. Table 15 shows the addresses of the header data indicated by the header address data, in which the header address data is stored in bits 10 to 3 and all the upper bits are "1", while data of 000 to 111 are store in the lower three bits. (2) Header Data The header data is a data of eight words each of eight bits stored in addresses shown in Table 15. The contents of the eight words are shown in Table 16, in which control data CONT indicates the attribute of wave form data and envelope data represented by the header data. E1' is one of two envelope data. The start address of the other en­ velope data E2' is given by STE + ΔSTE. W1 and W2 are two kinds of wave form data. The start address of the waveform data W1 is given by STW + ΔSTW. Table 17 shows the constitution of the control data CONT. The components of the control data CONT signify the following information. P/O: Flags for indicating whether a musical tone represented by the header data has a piano type envelope or an organ type envelope. When P/O = 1, the musical tone is of a piano type envelope. ORG: Information of three bits indicating the intrinsic octave range of the musical tone data in question. The correspondence between ORG and octave ranges is shown in Table 18. Thus, ORG is information showing the actual number of samples in one cycle of a wave form data. W8: Data which indicates whether the accuracy of wave form data is of twelve-bit accuracy or eight-bit accuracy. When W8 = 1, the accuracy is eight-bit accuracy and four bits of "0" are added to wave form data after the lowest bit to maintain the amplitude level of the wave form. PCM: When PCM = 1, the leading edge of the wave form data W1 is PCM. NA: A two-bit signal used for superposing a noise signal upon a musical tone signal. (3) Wave Form Data (W1, W2) As mentioned above, the musical tone signal generating unit 1-5 uses two kinds of wave form data, namely, wave form data of twelve bits and wave form data of eight bits. Most commercial ROMs are of eight bits or less and 12-bit ROMs are rarely available. According to the present invention, the following wave forms are stored in the ROM. 8-bit wave forms are stored sequentially one by one in addresses specified by STW and ΔSTW. In storing 12-bit wave form data, the upper eight bits are stored sequentially in an address specified by STW + ΔSTW, while the lower four bits of two words are stored in an address having 1 in MSB specified by shifting the value of STW + ΔSTW by one bit to the right. For example, the location of the lower four bits of the upper eight bits of wave form data in address 0444₁₆ is the upper four bits of address 1222₁₆ and, with address 0445₁₆, the lower four bits of address 1222₁₆. (4) Envelope data (E1', E2') Envelope data are 16-bit data. The data format of the envelope data is shown in Table 19. ΔT indicates data for deciding the renewal interval of envelope address, S is a flag which indicates the gradient (increase or decrease) of the envelope, Z is a flag indicating the magnitude of the gradient of the envelope, and DATA is its magnitude. The data shown in Table 19 are stored in the data bank in addresses specified by STE and ΔSTE shown in Table 16. Since the data bank has the above-mentioned constitution, tone is modulated for every successive three keys. On the other hand, when tones of an octave has the same header address data, a musical tone of the same tone quality can be produced without increasing the wave form data, envelope data and header data. Since each header data can specify optional wave form data and envelope data, various musical tones can be produced through the combination of a reduced number of wave form data and envelope data. The initial procedure, note clock generating procedure, envelope generating procedure and wave form generating procedure in the musical tone signal generating unit 1-5 upon the depression of the key will be described hereinafter. (1) Initial Procedure The registers are initialized when the key is depressed to gener­ ate a musical tone signal. Upon the depression of the key, the arithmetic sequence is started from the long sequence of the initial mode, and hence in the adding unit, the PDR is initialized in the time slot 13. With reference to Fig. 5, PDD is read out from the RAM 5-4 and is provided on the bus HE. At the same time, the signal processor 7-6 (Fig. 7) gives PED to the bus HD and the switches SW21 and SW17 are closed to provide PDD and PED on the bus A and the bus B, respectively (Fig. 11a). The data are added by the FA 2-6 (Fig. 8) and the result of the calculation is provided on the bus C. The result of calculation is provided through the SW23 on the bus HE and is stored in the register PDR of RAM 5-4. The PDD and PED are transferred one time slot before the time slot in which the calculation: PDD + PED is executed, while the calculated result is stored in the PDR one time slot after the calculation PDD + PED is executed. Other adding operations are executed in the same manner. Then, in the time slots 15 to 18, "0" is written in the TR1, TR2, ZR1, and ZR2. This operation will be described with reference to writing "0" in the TR1. In the time slot 15, the SW33 and SW13 of MSW 2-11 (Fig. 11a) are closed. Since the SW33 has a con­ stitution as shown in Fig. 11g, "0" is provided on the bus C. At the same time, since the SW13 is closed, the data provided on the bus C is given to the bus HC and "0" is written in the register TR1 of the RAM 7-3 (Fig. 7). On the other hand, the data bank reading unit operates in the following manner, which will be described with reference mainly to Fig. 10. The WRD consisting of the TAB, ND and OCT reads the header address data HAD. In the initial mode in which the initial procedure is carried out, the latch 10-3 is set at 111 by the SQ signal. This data is rearranged in the format shown in Table 15 by the shifter 10-13 of the I/O 2-10, and then the data is transmitted through the bus D, the SW15 and the bus HC to and stored in the register HAD of the RAM 7-3. During this operation, the header address data HAD read out from the data bank is latched sequentially by the latches 10-8 and 10-6, is rearranged in the format shown in Table 15 by the shifter selector 10-9 and is latched by the latch 10-4. The bit operation circuit 10-­ 10 gives 000 to the lower three bits of the output of the latch 10-4, and the control data CONT is read out from the data bank 1-6 and is latched through the latch 10-8 by the latch 10-7 in the upper eight bits. The control data CONT is transmitted through the selector 10-­ 12, the shifter 10-13, the noise circuit 10-14, the latch 10-2 and the bus D to and stored in the register CONT of the RAM 5-4. On the other hand, since the upper four bits of the latch 10-7 are connected to the decoder 10-11, data of sixteen bits is obtained from the truth table of Table 14. At this moment, the input C of the decoder 10-11 is "1". The selector 10-12 selects the output of the decoder 10-11, and then the shifter 10-13 shifts the output by six bits to the right and pro­ vides an output. The data given from the latch 10-7 to the decoder 10-11 are P/O and ORG three bits. Since the input C of the decoder 10-11 is "1", the output of the decoder 10-11 is dependent only on the ORG three bits. Accordingly, the value shown in Table 18 is obtained by shifting the output of the decoder 10-11 by six bits to the right by the shifter 10-13. This value is provided through the noise circuit 10-14 and the latch 10-2 on the bus D, and then the value is trans­ mitted through the SW15 of the MSW 2-11 to and stored in the register DIFI1 of the RAM 7-3. The bit operation circuit 10-10 gives 001 and then 010 to the lower three bits of the output of the latch 10-4 to read out the upper eight bits and the lower eight bits of the STE of the header. The value of the STE is provided through the selector 10-12, the shifter 10-13, the noise circuit 10-14 and the latch 10-2 on the bus D and is trans­ mitted through the SW5 of the MSW 2-11 to and stored in the register EAR1 of the RAM 7-1. Then, the short sequence is executed twice. In the time slot 1, PDR and JD are added, in which JD is a constant which is obtained when the SW32 of the MSW 2-11 is closed. Since the SW32 has a constitution as shown in Fig. 11h, JD = 45B₁₆. The result of the addition is multi­ plied by the note coefficient CN to provide FR. A series of the operation is executed in the following manner. In the time slot 1, PER + JD is executed, and then the result of addition is provided on the bus C in the time slot 2. Then, the switches SW28 and SW29 are closed to transfer the data via the bus C → the bus HL → the bus L, and then the data is latched by the latch 9-1 of the MPLY 2-7 (Fig. 9a). In the next time slot 3, the value of CN corresponding to the note data ND given by the ROM 7-5 is read out and provided on the bus HD. This value CN is provided through SW19 of the MSW 2-11 on the bus L and is latched by the latch 9-3 of the MPLY 2-7. The output of the latch 9-1 is trans­ mitted through the shifter 9-11 to and latched by the latch 9-2, while the output of the latch 9-3 is transmitted through the bit operation circuit to and latched by the latch 9-4. Consequently, the value of PDR + JD and the value of CN are latched by the latch 9-2 and the latch 9-4, respectively. Then, the multiplier 9-16 calculates the product of (PDR + JD) and CN. The result of multiplication is transmitted through the shifter 9-15 and is latched by the latch 9-8. During a series of these operations, the shifter 9-11, the bit operation circuit 9-12 and the shifter 9-15 operate so as to make the data pass there­ through. That is, the input C of the encoder 9-10 is "1". The value latched by the latch 9-8 is transmitted through the bus L and the SW9 of the MSW 2-11 to and is stored in the register FR of the RAM 7-2. Accordingly, in the time slot 2, ORG + OCT + 1 is calculated. In this calculation, the logic gate 8-12 of the FA 2-6 (Fig. 8) perform operation for +1. That is, when the logic gate 8-12 provides "1" forcibly in the relevant time slot, the latch 8-5 latches "1" and "1" is given to the input of the adder Ci. The significance of this operation is as follows. The ORG represents a value (this value is supposed to be N, for example) representing the intrinsic octave range of the wave form data in the inverse logic of the octave data. Tables 18 and 22 show the relation of wave form sample number to ORG and OCT, respectively. Accordingly, ORG + 1 is represented by -N. That is, ORG + OCT + 1 = OCT - N. This value is the difference between the octave range of a musical tone signal to be generated presently and the intrinsic octave range of the wave form data to be used actually, namely, a value representing the amount of octave shift, and hence the value indicates the number of octave intervals between the intrinsic octave range of the original wave form and a higher octave range at which the original wave form is actually read out. This value is stored temporarily in the register WE 2 of the RAM 7-4, and then the value is decoded by the signal pro­ cessor 7-6 and stored in the register ΔWAR of the RAM 7-2. Table 20 shows the values of ΔWAR corresponding to the values of ORG + OCT +1. In the time slot 4 and in the time slots 6, 8, 9 and 10, the EAR2, and the registers of the WR1, ER1, WE2, WE1 and WR2 are initi­ alized. On the other hand, in the data bank reading unit, the header address data HAD stored in the RAM 7-3 through the long sequence is read out and the header address data HAD is transmitted through the bus D → the latch 10-1 → the shift selector 10-9 to and latched by the latch 10-4, the bit operation circuit 10-10 give 001 to the lower three bits and the ΔSTE of the header data is read out from the data bank. This value is transmitted through the latch 10-7 → the selector 10-12 → the shifter 10-13 → the noise circuit 10-14 and the latch 10-2 to the bud D, and then through the SW26 and SW30 of the MSW 2-11 to the bus A. Then, the value is added to EAR1 by the FA 2-6. Then, the STE (the start address of the envelope data E1') stored in the re­ gister EAR1 of the RAM 7-1 is read out, and then the STE is transmitted through the bus D → the latch 10-1 → the shifter selector 10-9 to and latched by the latch 10-4. The output of the latch 10-4 is processed by the bit operation circuit 10-10 and the bit operation circuit 10-10 gives "0" and then "1" to the LSB. Thus, envelope data of two bytes shown in Table 19 is read out. The sixteen bits of this value is latched by the latch 10-7. According to the output of the latch 10-7, ΔT1, ΔE1 and ΔZ1 are produced in the first short sequence, while ΔT2, ΔE2 and ΔZ2 are produced in the second short sequence. The upper four bits of the latch 10-7 is given to the decoder 10-11. The upper four bits of the latch 10-7 include the value of ΔT shown in Table 19. Therefore, the decoder 10-11 decodes ΔT according to Table 13 and gives the decoded result to the selector 10-12. Then, the selector 10-12 becomes C = 1 and selects the input B and gives the same to the shifter 10-13. The output of the selector 10-12 is not subjected to any bit operation in the shifter 10-13 and the noise circuit 10-14 and is provided through the latch 10-2 on the bus D, and then the output of the selector 10-12 is transmitted through the SW10 of the MSW 2-11 and the bus HD to and stored in the register ΔT1 of the RAM 7-2. ΔE1, ΔZ1, ΔE2 and ΔZ2 are subjected to bit operation in the shifter 10-13 according to Z, S and DATA shown in Table 19, and then the oper­ ated values are stored to the corresponding registers. The manner of the bit operation is shown in Fig. 13. The data format is dependent on the value of Z shown in Table 19. The value stored in the register HAD of the RAM 7-3 is read out, similarly to reading out ΔSTE from the data bank 1-6, and the value is latched by the latch 10-4. In the first initial mode, 100 and then 101 are given to the lower three bits of the header address data HAD in the bit operation circuit 10-10, and then in the second initial mode, 110 and then 111 are given to the lower three bits of the header address data HAD to read out STW and ΔSTW from the data bank 1-6. STW and ΔSTW are stored in the register STW of the RAM 7-3 and in the register WAR of the RAM 7-1, respectively. (2) Note Clock Signal Generating Procedure The principle of the note clock signal generating procedure em­ ployed in the musical tone generating unit 1-5 will be described with reference to Fig. 3. A divider 3-1 divides a master clock signal given to the terminal CK and provides a divided output of 10 bits from a terminal Q. A comparator 3-2 compares an input A and an input B, and when A = B, provides "1" from a terminal Q. A flip flop 3-3 receives a signal through an input terminal D at the leading edge of the input CK and provides a signal from a terminal Q. An adder 3-4 adds an input A and an input B and provides the sum from a terminal C. A constant circuit 3-5 gives a contant M to the input terminal B of the adder 3-4. Indicated at 3-6 is an RS latch. When a positive pulse is given to the input terminal S or to the input terminal R, the RS latch becomes Q = 1 or Q = 0, respectively. A delay circuit 3-7 holds an input signal and provides the input signal after a time lag. Indicated at 3-8 is an AND gate. In operation, suppose that the output Q of the RS latch 3-6 is "0", since the output of the AND gate 3-8 is always "0", the output Q of the flip flop 3-3 is constant. On the other hand, the divider 3-1 divides the master clock signal and provides an output Q of ten bits including the repetition of 000₁₆ to 3FF₁₆. If the output of the flip flop 3-3 is N, 000₁₆ ≦ N ≦ 3FF₁₆. Therefore, there arrives neces­ sarily a moment where the output Q of the divider 3-1 is N. At this moment, the comparator 3-2 provides a coincidence pulse signal from the output Q thereof. Upon the reception of the coincidence pulse signal through the input terminal S, the RS latch 3-6 becomes Q = 1, and the AND gate 3-8 provides a write pulse signal. Since the output C of the adder 3-4 is fed to the input terminal D of the flip flop 3-3, the value of N + M is registered. At the same time, the write pulse signal, after being delayed by the delay circuit 3-7, changes the output Q of the RS latch 3-6 into "0". Consequently, the output Q of the flip flop 3-3 becomes constant again, whereas the value is changed from N to N + M. Accordingly, the next coincidence pulse signal is provided when the output Q of the divider 3-1 becomes N + M. A series of these procedures are repeated and the comparator 3-2 pulse signals when the output of the divider 3-1 is N, N + M, N + 2M, ..... That is, the one coincidence pulse signal is provided for every M counts of the master clock pulse signals counted by the divider 3-1. When N + nM > 3FF₁₆, the output of the adder 3-4 overflows, and then the output of the same becomes N + nM - 3FF₁₆. Accordingly, the coincidnec pulse signal is generated likewise when the master clock signal is counted M times. Thus, various note clock signals can be generated by varying the constant M employing the coincidence pulse signal of the comparator 3-2 as a note clock signal. The frequency of the note clock signal is (the frequency of the master clock signal) ÷ M. The output Q of the RS latch 3-6 corresponds to the calculation request flag CLRQ. The arithmetic sequences of the musical tone signal generating unit 1-5 of Fig. 1 for generating the note clock signal will be de­ scribed in detail hereinafter. Upon the depression of a key of the keyboard 1-1, the microprocessor 1-4 instructs the musical tone signal generating unit 1-5 to generate a musical tone signal corresponding to the key. Then, the the long sequence/initial mode of the arithmetic sequence is started to execute PDD + PED → PDR......(2-1) in the time slot 13, and then the short sequence is started to execute PDR + JD → L.B...... (2-2) C.B. × CN → FR ...... (2-3) in the time slots 1 to 6. Then, the mode is mode is changed into the normal mode and FR + CDR → FR ...... (2-4) is implemented in the time slog 9 of the short sequence and PDR + JD → L.B. ...... (2-5) C.B. × CN → FR ...... (2-6) PDD + PED → PDR ...... (2-7) are implemented in the time slots 14 to 18 of the long sequence. PDD is the pitch tune data PDD shown in Table 1, PED is the pitch extend data, JD is a constant, namely 1115₁₀ (a hexadecimal 45B) herein, and the note coefficient CN is a value corresponding to a note assigned. The relation of tones to CNs is shown in Table 7. As explained with reference to Tables 5 and 6, the operations (2-2), (2-3), (2-5) and (2-6) are expressed by (PDR + JD) × CN → FR ...... (2-8) Since PDR = PDD + PED, substituting the PDR of Expression (2-8) by PDD + PED, (PDD + PED + JD) × CN → FR ...... (2-9) As indicated by Expression (2-4), the value of FR is accumulated in CDR. As mentioned above, the accumulation is implemented once every one note clock pulse signal. Accordingly, When the initial value of the CDR is N, the value of the CDR changes from N, to N + FR, N + 2FR, N + 3FR, .... When the value of the upper ten bits of the value of the CDR coincides with a ten-bit divided signal obtained by sequentially dividing the master clock signal, a coincidence pulse signal is generated. Therefore, actually, N/8, (N + FR)/8, (N + 2FR)/8, ... are compared with the ten-bit divided signal. Hence, the upper ten bits of the CDR correspond to the flip flop 3-3 of Fig. 3, and FR/8 corresponds to the value M of the constant circuit 3-5 of Fig. 3. Accordingly, a note clock signal of a fixed period is obtained through the implementation of Expressions (2-1) to (2-7), and the frequency of the note clock thus (the frequency of the master clock signal) ÷ FR/8. (3) Wave Form Generating Procedure The wave form generating procedure to be carried out by the musical tone signal generating unit 1-5 comprises the following five steps. 1) Address Generation An address for reading out wave form data from the data bank 1-6 is generated. 2) Wave Form Reading Wave form date specified by the address generated in 1) is read out from the data bank 1-6, and then the wave form data is subjected to bit operation according to the control data CONT. 3) Envelope Multiplication 4) Mixing two wave forms 5) CN multiplication These steps will be described further in detail hereinafter. 1) Address Generation Upon the depression of a key, initialization is performed to store the STW (the start address of W2) of the header data, ΔSTW (the number of words of W1) and DIF1 (the number of samples in one wave form) in the registers STW, WAR and DIF1, respectively, and the re­ gister ΔWAR is decided through operation. In the normal mode, an ad­ drress is generated on the basis of these data. The following process is carried out in different ways for wave form data having PCM part (PCM = 1) and for wave form data not having PCM part (PCM = 0). Wave Form Data not Having PCM Part: As shown in Table 6, the sum of STW and WAR is obtained in the time slot 2 and a wave form 1 is read out from the data bank 1-6 with the sum, and then a wave form 2 is read out from the data bank 1-6 with a value obtained by adding DIF1 and the sum, namely, the value of STW + WAR + DIF1, in the time slot 4. STW is the top address of the wave form 2 and WAR has ΔSTW, namely, the negative number of the word number included in the wave form 1, as an initial value. In the time slot 7, ΔWAR is accumulated. Accordingly, the value of STW + WAR increases sequentially from the top address of the wave form 1 for every value of ΔWAR. Therefore, the value of STW + WAR + DIF1 increases from the top address of the wave form 2 for every value of ΔWAR. ΔWAR is a value which indicates skipping reading the wave form, and hence addresses for the wave form 1 and the wave form 2 can be generated. When the wave form data does not have PCM part, solo flag SOL = 0 and octave shift is not performed, the musical tone signal generator 1-5 carries out phase matching. Phase matching is carried out in the following procedure. In the first time slot 7 after the arithmetic sequence has been changed from the initial mode into the normal mode, nine-bit data addressed by the same note in the RAM 8-13 is stored in WAR as the result of operation. Although the output of the RAM 8-13 is nine-bit data, "1" is given to the upper seven bits of the nine bits of the sixteen bits, because the bus C is precharged. The results of the second operation and thereafter in the time slot 7 are stored in WAR as shown in Table 6 and are renewed in a register addressed by the same note in the RAM 8-13. Thus, even if a musical note signal of the same note is generated in another channel, the value of the register WAR in the channel is fed through the RAM 8-13 to the register WAR of the channel in which the musical note signal is to be generated; therefore, phase matching between these two channels is achieved. The calculation WAR + ΔWAR in the time slot 7 will be described hereunder. When WAR + ΔWAR ≧ 0, -512₁₀(FFOO₁₆) is provided on the bus C as the result of calculation, regardless of octave range. When octave shift is not performed, ΔWAR = 1, and hence the value of the register WAR is repeated at a period of 512. Thus, the registers WARs of a plurality of channels which gener­ ate the same note are always the same. Therefore, the phases of the same notes generated in different channels are matched completely, and thereby phase matching is achieved. Further details of the calculation STW + WAR in the time slot 2 will be described hereinafter. Data is read out from the register STW of the RAM 7-3. The read data is transmitted through the bus HC, the SW11 and the bus A to and latched by the latch 8-1 of the FA 2-6 at the clock signal 3. At the same time, the value of the register WAR of the RAM 7-1 is transmitted through the bus HA, the SW2 and the bus B to and latched by the latch 8-2 of the FA 2-6 at the clock signal 3. The output of the latch 8-1 is transmitted to and latched by the latch 8-3 at the clock signal 1 without being subjected to any bit operation in the bit operation cir­ cuit 8-10. On the other hand, the output of the latch 8-2 is subjected to bit operation in the bit operation circuit 8-11 as shown in Table 21 by using an input ORG, and then the operated data is latched by the latch 8-4 at the clock signal 1. The adder 8-9 adds the outputs of the latches 8-3 and 8-4, and then the sum is provided through the latches 8-7 and 8-8 on the bus C. Although the contents of the register WAR varies at a period of 512, the above-mentioned bit operation of the bit operation circuit 8-11 causes the contents of the register WAR to vary at a period corresponding to the octave. For example, when ORG = 5 and OCT = 2, octave shift is not performed as described with re­ ference to initializing procedure and ΔWAR = 1. From Table 21, since the bits 7 and 8 of the WAR are always "1", when STW' = 0, the result of calculation in the time slot 2 is -10, -9, ...-1,-128, -127, ... -1, -128 .... Thus, the period is 128. When ORG = 4 and OCT = 5, octave shift of two octaves is performed and ΔWAR = 4. From Table 21, since the bits 6, 7 and 8 of the WAR are always "1", the result of calculation is -40, ... -8, -4, -64, -60, -56 ... -4, -64, and hence the period is 16. The fact that the period of repetition is 128 when OCT = 2 and 16 when OCT = 5 indicates that a desired wave form point is obtained from Table 22. The fact that the WAR increases at a step of 4 when ORG = 4 and OCT = 5 indicates as shown in Table 18 that the octave of the intrinsic wave form data can be raised by two octaves by obtaining data of sixty-four samples at every four samples. Wave Form Data Having PCM Part: Addressing for wave form data having PCM part is the same as that for wave form data not having PCM part, except that the operation in the time slot 2 for the wave form data having PCM part is different from that for the wave form data not having PCM part. In the time slot 2, calculation STR + WAR is carried out. That is, data is read out from the register STW of the RAM 7-3, and then the data is transmitted through the bus HC, the SW11 and the bus A to and latched by the latch 8-1 of the FA 2-6 at the clock signal 3. At the same time, the value of the register WAR of the RAM 7-1 is trans­ mitted through the bus HA, the SW2 and the bus B to and latched by the latch 8-2 of the FA 2-6. The output of the latch 8-1 is given to the bit operation circuit 8-10, while the output of the latch 8-2 is given to the bit operation circuit 8-11. However, both the outputs are fed to the latch 8-3 and the latch 8-4, respectively, without being subjected to bit operation, and then the outputs are added by the adder 8-9. As regards the value of the register WAR, when PCM part is not included, the negative number of the number of samples contained in one period of the wave form is written in the register WAR as the initial value whereas, when PCM part is included, the negative number of the number of all the samples of the wave form used as PCM part is written in the register WAR as the initial value. Accordingly, the result of calculation in the time slot 2 corresponds to a value increased by an increment of ΔWAR from the top address of the PCM part of the wave form 1 in the data bank 1-6. The end of the PCM part is detected by detecting WAR + ΔWAR ≧ 0 in the time slot 7. Procedure for gener­ ating an address after the end of the PCM part is the same as that for wave form data not having PCM part; the outputs of the latches are subjected to bit operation in the bit operation circuit 8-11. The address operation in the musical tone signal generating unit 1-5 is sixteen bits, however, an address signal of sixteen bits may not be sufficient. The musical tone signal generating unit 1-5 of the present invention is capable of expanding the address space by using the upper three bits of the tablet data TAB. The latch 10-3 of the I/O 2-10 is used for expanding the address space. The latch 10-3 latches the upper three bits of the tablet data TAB. Upon the depression of a key, the initial mode is established. Then, tablet data stored in the RAM 5-4 is transmitted through the MSW 2-11 to and stored in the register TAB' of the RAM 7-3. In the successive normal mode, the value of the register TAB' of the RAM 7-3 is read out and is transmitted through the MSW 2-11 to and latched by the latch 10-3 of the I/O 2-10. Thus, although the internal operation is for sixteen bits, an address space of nineteen bits is available. 2) Wave Form Reading Wave form reading operation is carried out on the basis of the address produced through operation in the time slots 2 and 4. The result of operation in the time slot 2 is transmitted through the bus C the SW28, the bus HL, the SW30 and the bus D to and is latched by the latch 10-1 of the I/O 2-10. The output of the latch 10-1 is trans­ mitted through the shifter selector 10-9, the latch 10-4 and the bit operation circuit 10-10 to and is latched by the latch 10-5. The out­ put latched by the latch 10-5 reads the data bank 1-6 together with the data latched by the latch 10-3. The output of the data bank 1-6 is latched by the latch 10-8. Then, the output of the data bank 1-6 is shifted to the right by one bit by the shifter selector 10-9, "1" is given to the MSB and the sum is latched by the latch 10-4. The output of the latch 10-4 is transmitted through the bit operation cir­ cuit 10-10 to and is latched by the latch 10-5. The data latched by the latch 10-5 reads the data bank 1-6 together with the data latched by the latch 10-3. Then, the output of the data bank 1-6 is latched by the latch 10-7. Since the output of the latch 10-8 is given to the upper eight bits of the latch 10-7, the data of the latch 10-7 is latched together with the former output of the data bank 1-6. The data latched in the lower eight bits of the latch 10-7 corresponds to the respective lower four bits of two wave forms as is explained above regarding the data bank. The output of the latch 10-7 is given through the selector 10-12 to the shifter 10-13; the upper eight bits of the output is shifted to the right by four bits. When the output of the latch 10-1 is LSB = 0, the lower eight bits also are shifted to the right by four bits, when LSB = 1, the output of the latch 10-7 is given through the shifter 10-13 to the noise circuit 10-14 without the lower four bits being shifted. When the control data CONT specified a 8-bit wave form, namely W8 = 1, the lower four bits of the output of the shifter are "O". The output of the shifter 10-13 is provided through the noise circuit 10-14 and the latch 10-2 on the bus D, and then the output is transmitted through the MSW 2-11 to and is stored in the register WR1 of the RAM 7-3. This value is the waveform data of the wave form 1 and corresponds to the W1 shown in Fig. 14. The address decided through the operationimplemented in the time slot 4 is subjected to the same process, except that a noise signal is added in the noise circuit 10-14 when NA ≠ 00 in the control data CONT. When NA = 01, NQ = 10 or NA = 11, the bit 9, the bit 10, or bits 9 and 10 are substituted by the noise signal. Thus, the noise signal is super­ posed on the wave form datawithout using any adder. The value thus obtained is stored in the register WR2 of the RAM 7-2 as the wave form data of the wave form 2, which is a periodic wave form cor­ responding to the W2 shown in Fig. 14. 3) Envelope Multiplication The two kinds of wave forms 1 and 2 thus obtained are subjected to envelope multiplication (envelope generating procedure will be de­ scribed later). The envelope for the wave form 1 are stored in the register ER1 of the RAM 7-3 and in the register ER2 of the RAM 7-3, respectively (E1 and E2 in Fig. 14). The envelope is data consisting of 4-bit exponential part and 9-bit fixed point part in the floating point representation. The envelope multiplication is implemented twice for each channel in the same manner, hence only the operation for WR1 × ER1 in the time slots 7 to 9 will be described. The data of the register ER1 of the RAM 7-3 is transmitted through the MSW 2-11 to and is latched by the latches 9-3 and 9-5 of the MPLY 2-7. The lower ten bits of the data of the ER1 are latched by the latch 9-3, while the upper four bits of the same are latched by the latch 9-5. Then, the data of the register WR1 of the RAM 7-3 is transmitted through the MSW 2-11 to and is latched by the latch 9-1 of the MPLY 2-7. The MSB of the output of the latch 9-3 is set at "1" by the bit operation circuit 9-12 and the output is latched by the latch 9-4. Thus, the fixed point part of the envelope is latched by the latch 9-4. The output of the latch 9-1 is transmitted through the shifter 9-11 to and is latched by the latch 9-2. To the input terminal C of the encoder 9-10, 1 is given by the SQ signal, while 00001 is given to the input terminal C of the shifter 9-11. Accordingly, the shifter 9-11 feeds the lower twelve bits of the output of the latch 9-1, namely, the wave form data of twelve bits of the wave form 1 read from the data bank 1-6, to the latch 9-2. The multiplier 9-16 multiplies the data of the latch 9-2 by the data of the latch 9-4. The 14-bit product is latched by the latch 9-7 and fed to the shifter 9-15. On the other hand, the exponential part of the envelope latched by the latch 9-5 is transmitted through the latch 9-6 to the decoder 9-13, where the exponential part is decoded. The decoded signal is given through the selector 9-14 to the shifter 9-15 as a control signal. Accordingly, the output of the latch 9-7 is shifted by the exponential part of the envelope and is latched by the latch 9-8. Thus the wave form data of fixed point representation is multiplied by the envelope data of floating point representation. The output of the latch 9-8 is transmitted through the bus L and the MSW 2-11 to and is stored in the register WE1 of the RAM 7-1 (W1 and E1 in Fig. 14). The wave form data and the envelope data of the wave form 2 are processed through the similar procedures and the result is stored in the register WE2 of the RAM 7-4 (W2 and E2 in Fig. 14). 4) Mixing Two Wave Forms In order to mix two wave forms, the contens of the registers WE1 and WE2 are added (W1·E1 + W2·E2 in Fig. 14). This addition corresponds to the operation in the time slot 1. 5) CN Multiplication Two wave forms are mixed in the time slot 1. In generating a musical tone signal by the musical tone signal generating unit 1-5 of the present invention, in some cases, sound pressure level varies be­ tween notes due to the characteristics of the ABM 2-9 and the filter 1-7, and hence the musical tone signal is corrected through CN multi­ plication. The note coefficient is employed as a coefficient for cor­ rection. The result of operation WE2 + WE1 in the time slot 1 is trans­ mitted through the bus C, the SW 28, the bus HL, the SW29 and the bus L to and is latched by the latch 9-1 of the MPLY 2-7. On the other hand, a note coefficient corresponding to the note data ND is read out from the ROM 7-5 of the memory 2-5. The read note coefficient is transmitted through the bus HD, the SW24 and the bus L to and is latched by the latch 9-3 of the MPLY 2-7. Since WE1 + WE2 is 16-bit data and an input at the input terminal A of the multiplier 9-16 needs to be 12-bit data, the following process is implemented by the MPLY 2-7. The upper five bits of the data of the latch 9-1 is fed to the encoder 9-10, and the encoder 9-10 provides data as shown in Table 9 through the terminals A and B thereof. That is, the substantial bit number of the data latched by the latch 9-1 is obtained and twelve bits are fetched from the latch 9-1 by the shifter 9-11. For example, When the data latched by the latch 9-1 is 3A26₁₆, the substantial bit number of the data is fifteen, and hence the shifter 9-11 fetches twelve bits below the bit 14 of the latch 9-1 and provides an output of 744₁₆. Thus, the substantial part of WE1 + WE2 is multi­ plied by the note coefficient, and then the bit number of the product is restored to the original bit number and the product is latched by the latch 9-9. Thus, the multiplication of data having a large bit number is achieved by a multiplier of small bit capacity. The value thus obtained is given to the DAC 2-8, and then the period of the value is corrected to a predetermined period by the ABM 2-9 to provide a musical tone signal. The musical tone signal generating unit 1-5 of the present in­ vention is capable, as mentioned above, of changing the CN multipli­ cation for VLD multiplication by the flag VOL of Table 1 by the inst­ ruction of the microprocessor. In the long sequence, the 8-bit data of the register VLD of the RAM 5-6 is fed through the MSW 2-11 to the register VLD' of the RAM 7-4. In the MSW 2-11, the 8-bit data is sub­ jected to bit shift operation; the 8-bit data is shifted by two bits to the left and "O" are added to the lower two bits to convert the 8-bit data into 10-bit data, and thereby the bit number of the bit number of the data of the VLD becomes equal to the bit number of CN. Whether the value of WE1 + WE2 is multiplied by the data of the ROM 7-5 or the same is multiplied by the data of the register VLD' is decided by the flag VOL of Table 1; when VOL = 0, the ROM 7-5 provides data on the bus HD, and, when VOL = 1, the RAM 7-4 provides data on the bus HD. Thus, the microprocessor 1-4 is able to control the level of the musical tone signal generated by the musical tone signal generating unit 1-5. Amplitude modulation is achieved by sequentially changing the value of the VLD of Table 1. When the VLD is produced on the basis of either key depressing speed or key depressing pressure, the musical tone signal generating unit is capable of touch response function. Touch response function is an operation to vary the volume and tone of sound according to the speed and intensity of keyboard operation. The piano, for example, emits intense and vivid sound when the notes are struck intensely and, on the contrary, the piano emits weak and damp sound when the notes are struck faintly. Thus, the volume and tone of the sound of the piano can be controlled at will by varying the intensity of striking the notes, however, the tone quality of the declining sound can not be changed even if the pressure on the notes is changed after striking the notes. Accordingly, with the piano, touch response function is related only to the intensity of striking the notes. Such touch re­ sponse function is designated as initial touch control. Generally, initial touch control is effective for percussion instruments. With the trumpet, the tone quality of a continuous sound can be varied by varying the breath. Therefore, in simulating the sound of the trumpet by operating the keyboard of an electronic musical instru­ ment, it is necessary to vary the volume and tone of the sound by con­ trolling the depression of the keys. Such a function is designated as after-touch control. Generally, after-touch control is effective for wind instruments and string instruments. As mentioned in the foregoing description, the embodiment of the present invention is capable of control the sound volumes of the indi­ vidual channels through the VLD multiplication using VOL flags. In application, key striking intensity is measured, the value of VLD is decided according to the measurement by the microprocessor, and then the volume of each note corresponding to the struck key is controlled according to the value of VLD. As apparent from the foregoing description of the function of the musical tone signal generating unit, the musical tone signal gener­ ating unit of the present invention is capable of varying both the volume and tone of sound according to the value of VLD by making the the microprocessor provide VLD by changing the tablet data according to the value of VLD. Tone changing operation will be described with reference to an example, in which VLD is 8-bit data. Table 23 shows the ranges of the values of VLD and the corre­ sponding accent marks and tablets. Sound volume is reduced by half, namely, 6dB, for every decrement of one bit in VLD. The levels of sound volume are assigned to musical accents, respectively. A plurality of wave form data are stored in the data bank. Since the musical accent ff requires vivid tone, wave form data having abundant harmonics is assigned to tablet 0 and, since the musical accent mp requires soft tone, nearly sinusoidal wave form data is assigned to tablet 3. Thus, it is possible to select one tone among four kinds of tones within the range of value of VLD by control­ ling key striking force and 256 sound levels are available according to 8-bit VLD. Thus, initial touch control is achieved. The musical tone signal generating unit according to the present invention is capable of continuously varying the tone and volume of sound according to the variation of pressure on the key after the key has been struck, by making the microprocessor provide tablet data corresponding to the value of VLD continuously varying according to the pressure applied to the key after striking the key. Thus, after-­ touch control is achieved. (4) Envelope Generating Procedure Envelope generating procedures in the musical tone signal gener­ ating unit 1-5 are carried out in the following three steps: 1) Address generation, 2) Envelope data reading, and 3) Envelope calculation. These steps will be described in detail hereinafter. 1) Address Generation Upon the depression of a key, the registers EAR1, EAR2, TR1, TR2, ΔT1 and ΔT2 are initialized on the basis of STE of the header data (­ start address of envelope data E1') and ΔSTE (word number of envelope data E1'). Address calculation is executed on the basis of these data. Since the frequency of address calculation is small, the long sequence is employed. The address of envelope data E1' and the address of en­ velope data E1' are calculated in the ODD/long sequence and EVEN/long sequence, respectively. In the ODD/long sequence, operation is implemented for ΔT1 + TR1 → TR1 ...... (4-1) in the time slot 13, and ΔEAR1 + EAR1 + Ci → EAR1 ...... (4-2) in the stime slot 15. Data is read out from the data bank 1-6 by using the value of EAR1. The Ci in the time slot 15 corresponds to an overflow resulting from the accumulation of ΔT1 in the time slot 13. With particular regards to (4-1), the data of the register ΔT1 of the RAM 7-2 is transmitted through the bus HB and the MSW 2-11 to and is latched by the latch 8-1, while the data of the register TR1 of the RAM 7-3 is transmitted through the bus HC and the MSW 2-11 to and is latched by the latch 8-2 of the FA 2-6. The bit 3 of the output of the latch 8-1 is set forcibly at "O" (the reason for forcibly setting the bit 3 at "O" will be described later) by the bit operation circuit 8-10, and the thus operated output of the latch 8-1 is latched by the latch 8-3. The output of the latch 8-2 is transmitted through the bit operation circuit 11 without being subjected to any operation such as bit conversion to and latched by the latch 8-4. The respective outputs of the latches 8-3 and 8-4 are added by the adder 8-9, and then sum of the addition is provided through the latch 8-8 on the bus C and transmitted through the MSW 2-11 to and is stored in the register TR1 of the RAM 7-3. When there is any overflow in the result of the addition, the adder 8-9 provides "1" through the Co thereof. This output of the adder 8-9 is latched by the latch 8-6 for operation in the time slot 15. These procedures are for wave form data not having PCM part. When the wave form data has PCM part (flag PCM = 1), "O" is given forcibly to the register TR1 as the result of the addition until the end of reading the PCM part. Accordingly, overflow does not occur in the accumulation of ΔT1, therefore, the value of EAR1 is not renewed until the end of reading the PCM part. As explained with reference to initialization procedure, ΔT1 is the value of D output when C = 0 shown in Table 13. Since the TR1 is a 16-bit register, when ΔT1 = 4000₁₆, for instance, the register TR1 overflows when the operation (4-1) is repeated four times and Ci = 1 in operation (4-2), so that the address is renewed. Operations (4-1) and (4-2) are executed once in two long sequences. As shown in Fig. 1c, since the period of recurrence of the long sequence corresponds to 388 time slots and the period of each time slot is 250ns, the long sequence appears at every 194µs. Therefore, the operations (4-1) and (4-2) are executed at every 194µs and, when ΔT1 = 4000₁₆, the address is renewed at every 776µs. Since the envelope data is 2-byte data, two addresses needs to be renewed at a time. Address renewal is performed in the time slot 15 in the following procedures. The value of ΔEAR1 is dependent on ΔT1; when ΔT1 ≠ 0008₁₆, ΔEAR1 = 0000₁₆ and, when ΔT1 = 0008₁₆, ΔEAR1 = FFEB₁₆ = -21₁₀. This operation is executed by the SW31 of the MSW 2-11. The SW31 has a constitution as shown in Fig. 11i and controls the connection by a flat TO indicating the value of the bit 3 of ΔT1. Suppose that ΔT1 ≠ 0008₁₆. Then, the SW31 provides 0000₁₆ on the bus A, and the EAR1 provides its data through the bus A and the SW2 of the MSW 2-11 on the bus B. These data are latched by the latches 8-1 and 8-2 of the FA 2-6. The output of the latch 8-1 is given through the bit operation circuit 8-10 to the latch 8-3, in which the output is not subjected to any data conversion in the bit operation circuit 8-10. On the other hand, the output of the latch 8-2 is fed to the bit operation circuit 8-11, where the LSB of the data is set forcibly at "1", and then the bit operation circuit 8-11 give an output to the latch 8-4. That is, the bit operation circuit 8-11 adds 1 beforehand to the output of the latch 8-2. The overflow of the operation (4-1) stored in the latch 8-6 is latched by the latch 8-5. Accordingly, when the data latched by the latches 8-3, 8-4 and 8-5 are added and when the data of the latch 8-5 is "1", "2" is added to the data of EAR1. On the other hand, when the data of the latch 8-5 is "O", the data of the EAR1 is increased by 1. however, since the I/O 2-10 gives "O" or "1" forcibly to the LSB, any problem does not occur. When ΔT1 = 0008₁₆, ΔEAR1 = FFEB₁₆(-21₁₀). Accordingly, 21₁₀ is subtracted from the value of EAR1, and hence envelope data ten words before is read. Consequently, the address of the envelope data is looped, and thereby a repetitive envelope, such as that of mandolins can be generated. The reason for setting the bit 3 at "O" through the operation (4-1) in the bit operation circuit 8-10 is that the bit 3 is a bit for establishing ΔEAR1 = FFEB₁₆ and the addition of 0008₁₆, should to the register TR1 needs to be inhibited in the operation. The operation of ΔT2, TR2, ΔEAR2 and EAR2 in the EVEN/long se­ qunece is performed in the similar manner. Since operation relating to EAR1 and EAR2 is executed independently, entirely different envelope signals are generated for the wave form 1 and the wave form 2, respec­ tively. The period of repitition of the EAR1 or EAR2 can be easily varied, and thereby various effects can be produced. 2) Envelope reading Envelope data reading is executed in the long sequence; envelope data for the wave form 1 is read in the EVEN/long sequence, while en­ velope data for the wave form 2 is read in the ODD/long sequence. Pro­ cedures for reading envelope data on the basis of the data stored in the registers EAR1 and EAR2 are the same as those described with re­ ference to initializing process; the format of the data read out from the data bank 1-6 by the I/O 2-10 is converted and while the data are stored in the registers ΔT1, ΔT2, ΔZ1, ΔZ2, ΔE1 and ΔE2. 3) Envelope Calculation The envelope data is read out and stored in the registers ΔZ1, ΔZ2, ΔE1 and ΔE2, while the ER1, ER2, ZR1 and ZR2 are initialized. The envelope is calculated on the basis of those stored data. The bases of envelope calculation are the time slots 3, 5, 6 and 8 of the addition unit. The envelope of the wave form 1 is calculated in the time slots 3 and 5, while the envelope of the wave form 2 is calculated in the time slots 6 and 8. The Ci in the time slots 5 and 8 is the overflow produced through calculation in the time slots 3 and 6. The addition of the overflow produced in the time slots 5 and 8 is the same as the addition described with regard to address generation in the time slots 13 and 15. The data of ER1 and ER2 thus obtained are the envelope data, which correspond to E1 and E2 shown in Fig. 14. The manner of envelope calculation varies with modes, such as: 1) Mode in which the form does not have PCM part (PCM = 1/O), 2) Mode for piano type envelope and organ type envelope (P/O - 1/O), and 3) Mode in which damper flag is ON or OFF (DMP = 1/O). These three modes will be described individually hereinafter. PCM = 0 and P/O = 0 In the initial state, ER1, ER2, ZR1 and ZR2 are "O". While the key is depressed, the calculation of envelope is executed on the basis of the data of the registers ΔE1, ΔE2, ΔZ1 and ΔZ2. When the key is released, the signal processor 5-6 of the UCIF 2-3 produces release data as the data of ΔZ1, ΔE1, ΔZ2 and ΔE2 in the time slots 3, 5, 6 and 8, and the release data is used instead of the data of the registers ΔZ1, ΔE1, ΔZ2 and ΔE2. In this mode, the calculation is not affected by the damper flag DMP. PCM = 0 and P/O = 1 In the initial state, ER1, ER2, ZR1 and ZR2 are "O". While the key is depressed, the calculation of envelope is executed on the basis of the data of the registers ΔE1, ΔE2, ΔZ1 and ΔZ2. When the key is released, the calculation of envelope is continued on the basis of the data of the registers ΔE1, ΔE2, ΔZ1 and ΔZ2 when damper flag DMP = 1. The operation when DMP = 0 is the same as that when PCM = 0 and P/O = 0. PCM = 1 and P/O = 0 In the initial state, EA1 - 1FFF₁₆, ER2 = 0, ZR1 = 0 and ZR2 = 0. While the key is depressed and the wave form 1 is reading the PCM part, those initial values are held. After completion of reading the PCM part, the calculation of envelope is executed on the basis of the data of the registers ΔE1, ΔE2, ΔZ1 and ΔZ2. When the key is released, the calculation is executed on the release data provided by the signal processor 5-6 of the UCIF 2-3 regardless of whether or not the wave form 1 is reading the PCM part. Thus, the mode of PCM = 0 and P/O = 0 results. In this mode the calculation is not affected by the damper flag DMP. PCM = 1 and P/O = 1 In the initial state, ER1 = 1FFF¹⁶, ER2 = 0, ZR1 = 0 and ZR2 = 0. When the damper flag DMP = 0, the calculation is carried out once the key is depressed regardless of the timing of releasing the key. While the wave form 1 is reading the PCM part, the registers ER1, ER2, ZR1 and ZR2 are held in the initial state and upon the completion of reading the PCM part, the operation is started on the basis of the data of the registers ΔE1, ΔE2, ΔZ1 and ΔZ2. When the damper flag DMP = 1, the operation is the same as the mode in which PCM = 1 and P/O = 0. Thus, envelope signals can be optionally produced according to various modes. Furthermore, since the registers ΔE1, ΔZ1, and the re­ gisters ΔE2 and ΔZ2 can be set entirely independently from each other and the data is renewed at a time decided by ΔT1 and ΔT2, those two wave forms and those various modes generates various musical tone signals.

Claims: 1. An electronic musical instrument comprising: a data bank for storing first waveform data corresponding to an attack portion of a musical tone, second waveform data corresponding to one cycle waveform of a musical tone, first parameter representing a characteristic of a first envelope representing a sound level variation of the first waveform data, and second parameter representing a characteristic of a second envelope representing a sound level variation of the second waveform data; envelope forming means which reads out the first parameter and the second parameter from the data bank and forms the first envelope and the second envelope; data producing means which reads out the first waveform data sequentially from the data bank, waveform data of the last cycle of the first waveform being read out repeatedly, and multiplies the data read out from the data bank by the first envelope to produce first data, and at the same time reads out the second wave­ form data repeatedly from the data bank and multiplies the read-out second waveform data by the second envelope to produce second data; and musical tone data producing means which adds the first data and the second data to produce musical tone data. 2. An electronic musical instrument according to Claim 1, wherein said first envelope and second envelope are respectively polygonal lines on a coordinate system defined by a time axis of linear repre­ sentation and a sound level axis of exponential representation, said first and second parameters having the time length of the polygonal lines, said envelope forming means having means which counts the time length of said first parameter and the time length of said second parameter, and reads out next data of relevant one of the first parameter and the second parameter from the data bank at every end of the time length. 3. An electronic musical instrument according to Claim 1, wherein said data producing means comprises first data producing means and second data producing means, at least one of which comprises: means for producing note data, octave data and tablet data ac­ cording to playing operation; means for producing a partial differential value (PED) corresponding at least to one of the note data and the octave data; means for producing note coefficient (CN) corresponding to the note data; means for producing a dividing number (FR; FR = (JD + PED) × CN) by multiplying the sum of a fixed number (JD) independent of the note data and the octave data and the partial differential value (PED) by the note coefficient (CN); and means for producing note clock signal by dividing a master clock signal by the dividing number, said first and second wave forms being read out on the basis of the note clock signal. 4. An electronic musical instrument according to Claim 1, wherein, when M < N ≦ 3M/2, where N is the number of bits of one word of at least on of said first and second wave forms and M is the number of bits of one word of the data bank, said data bank satisfies an expression: B₁ = [W/2 + {(N - M)/M}·A₁], where [ ] is the Gaussian symbol representing the integer part of the value in the symbol, W is the number of the total words of the data bank, and A₁ and B₁ are addresses in which the upper M bits of the data of i-th word of said wave form and the lower (N - M) bits of the same are located, respectively. 5. An electronic musical instrument according to Claim 4, further comprising means for producing said address B₁ by shifting said address A₁ to the right by log₂ M/(N - M) bits, and adding 1 to at least one bit including the uppermost bit.

Inventors: KANEAKI, TETSUHIKO, TAKAGI, YOSHIYUKI
Applicants: MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1986
Main classification: G10H1
IPC codes: G10H1, G10H7