CN1241767A - Computerized music system having software and hardware sound sources - Google Patents
Computerized music system having software and hardware sound sources Download PDFInfo
- Publication number
- CN1241767A CN1241767A CN 99108968 CN99108968A CN1241767A CN 1241767 A CN1241767 A CN 1241767A CN 99108968 CN99108968 CN 99108968 CN 99108968 A CN99108968 A CN 99108968A CN 1241767 A CN1241767 A CN 1241767A
- Authority
- CN
- China
- Prior art keywords
- waveform
- waveform generator
- sound
- mode
- processing unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
A musical sound generating apparatus creates a waveform to generate a musical sound according to performance information. In the apparatus, a first waveform generator is operable for creating a waveform. A second waveform generator is operable independently from the first waveform generator for creating a waveform. An input device provides performance information. A designating device designates at least one of the first waveform generator and the second waveform generator in correspondence with the provided performance information. A controller selectively operates the designated one of the first waveform generator and the second waveform generator according to the provided performance information. An output device generates the musical sound based on the created waveform.
Description
The present invention relates in the computer application system that adopts (CPU), electronic game machine for example, Caraok device, employed a kind of musical sound generator in the personal computer etc. more particularly relates to the musical sound generator that can produce various musical sounds according to performance information.
Usually, at a kind of device for example in the personal computer, can be with an application specific hardware modules for example sound source CSI and sound source card, and control the sound source device of being installed by driver, come reproducing music sound.The performance of CPU is improved significantly in personal computer recently, thereby replaces specific hardware module can produce musical sound by CPU.Be called " software sound source " with " hardware sound sources " the relative musical sound of planting like this that produces musical sound by specific hardware.CPU is according to specific program computational music acoustic wave form data.Depend on the cpu performance of this program of execution by the sound quality of software sound source generation.If the performance height of CPU can calculate Wave data so under two-forty, thereby can improve the sampling frequency of Wave data and realize that high-quality musical sound takes place.Yet, if cpu performance is poor, being difficult to computational data under two-forty, the result must reduce sampling frequency.Above-mentioned situation must cause reproducing music sound inferior quality.
About optional components is installed, in the structure of application system, for example there is very big difference between the different system of personal computer.Generally in a broad sense, optional device comprises hard disk, video card etc.Yet optional components represents to relate to the device that can connect in the musical sound generation in the present invention.Merit attention, the processing power of CPU may be different in different system configuration.Say that more simultaneously during parallel calling, the load of CPU can change along with the situation of executing the task in program run situation and the current system in sonorific application program and other application programs of carrying out other work.In aforesaid way, the CPU effective processing capacity can change in identical system.Therefore, when system environments changed, the user must rearrange and be used for the basic setup that sound produces, and this is very tired.In such system the user can not be identified in existing structure be provided with in sound whether correctly produce, take place up at actual reproduction sound the time that musical sound is any to be lost and could discern when jumping over.Whether in other words, come out by actual reproduction up to sound exactly, be can't the setting of review system rational.No matter how high the performance of CPU is in addition, the hope according to the user in many cases can utilize a kind of outside sound that hardware takes place, the actual hardware resource that uses.In such situation, all use hardware sound sources that problem may take place, just, can not produce the sound of the restriction that surpasses this generation hardware device.Many musical sounds can not reproduce.Even enough processing poweies are arranged, can not increase numerous timbre kinds in CPU.
The objective of the invention is to address the above problem, and a kind of musical sound generator that can produce the various musical sounds that are possessed of good qualities is provided.
According to the present invention, a kind of musical sound generation device produces waveform so that musical sound to take place according to performance information.This device comprises the 1st waveform generator device that can be used to produce a kind of waveform, can be independent of the 2nd waveform generator device that the 1st waveform generator device is used to produce waveform, be used for providing the input media of performance information to be used at the 1st waveform generator device and the selected at least selecting apparatus that the performance information that is provided is provided of the 2nd waveform generator device, be used for selectively operating in selected one of the 1st waveform generator device and the 2nd waveform generator device, producing the control device of waveform, and be used for output unit based on the waveform generation musical sound that produces according to the performance information that provided.
Specifically, input media comprises the device that is used to provide performance information; Said performance information comprises the timbre information of the timbre of selected musical sound effectively, and comprises the timing information of the timing of selected effectively musical sound generation.In addition, selecting apparatus comprises that being used for selecting one among the 1st waveform generator device and the 2nd waveform generator device responds timbre information, thereby output unit produces the device of the musical sound with selected timbre in selected timing.
Selecting apparatus can comprise and be used for as one man not only selected the 1st waveform generator device if desired but also select the 2nd waveform generator device, thereby control device is not only operated the 1st waveform generator device but also operate the 2nd waveform generation generating apparatus, but produces the operating means of waveform in the same way in mode arranged side by side.
Input media can comprise and is used to provide performance information to order the device that produces many musical sounds in the same way effectively.Selecting apparatus can comprise and being used for according to selected the 1st waveform generator device of number of can the information selected musical sound in the same way of do as one likes and of the 2nd waveform generator device in addition, and of selecting of result has the device that is enough to produce corresponding to many waveform capacity of musical sound number.
Selecting apparatus can also comprise operating means, when any capacity in the 1st waveform generator device and the 2nd waveform generator device of outnumbering of musical sound in the same way, be used for not only selected the 1st waveform generator device but also selected the 2nd waveform generator device, to guarantee to produce fully musical sound in the same way.
The 1st waveform generator device comprises an outside waveform generator that selectively is connected to control device, the 2nd waveform generator device can comprise one and the inner waveform generator of controller all-in-one-piece simultaneously, when the result is not connected to control device when outside waveform generator, both made the outside waveform generator should be mainly corresponding to the performance information that provides, the still selected inner waveform generator of this selecting apparatus replaces outside waveform generator.
The 2nd waveform generator device, input media, selecting apparatus and control device can become one mutually, to constitute the critical piece of forming computing machine, the 1st waveform generator device constitutes a slave part that separates with major part separately simultaneously, it selectively is installed on the computing machine.
The 1st waveform generator device can be made up of the nextport hardware component NextPort that control device drives, and the 2nd waveform generator device can be made of the component software that is installed in the control device simultaneously.
The 2nd waveform generator device comprises many digital waveform generators, and it produces the digital waveform with different qualities based on the algorithms of different computing.Say that again behaviour's system apparatus can comprise that device is used for according to the performance information that provides, selectively a best digital waveform generator of operation.
The 2nd waveform generator device can comprise the digital waveform generator of waveform storage pattern, it can produce based on relative simple algorithm has inferior relatively digital waveform, and another digital waveform generator can have another high-quality relatively digital waveform based on the algorithm generation of relative complex.
The 2nd waveform generator device can comprise a computerized waveform generator, and it can pass through to calculate the digital waveform sample value continuously under variable operation speed according to given algorithm, produces a digital waveform.Further, control device can comprise the waveform generator that is used to give first operational computations machineization, in the operation rate when testing generation, test and produce pattern number character waveform device, be used for one of optimum determining can with the determinator of measuring operation speed ratio sampling frequency, and be used for the in fact waveform generator of operational computations machineization, can be similarly according to the performance information that is provided under the sampling frequency of measuring, calculate the device of the sample value of a real figure waveform continuously.
Determinator can comprise the device that is used for sampling frequency is fixed to a stepping predeterminated level, and said set rate is lower than and the operation rate of approaching measurement.
Control device can also comprise converting means, when the mensuration sampling frequency falls to being lower than critical level of the assurance digital waveform lowest quality that is limited, the operational transformation device is used to change the operation rate of algorithm with raising computerize waveform generator, thereby can measure sampling frequency again to surpass this critical level.
Converting means can comprise and be used for complicated algorithm is changed over simple algorithm, thereby computerized waveform generator is operated to read a sample value of giving storage produces digital waveform with reproduction device continuously based on simple algorithm.
According to another aspect of the present invention, a sound generation device, produce a digital waveform so that a musical sound to take place according to performance information, this device comprises the input media that is used to provide performance information, computerized waveform generator device can be based on given algorithm, by continuous calculating digital waveform sample value, under change operation speed, produce a digital waveform, proving installation is used to give the waveform generator of first operational computations machineization, generation to the pattern number character waveform is tested, test the operation rate when producing simultaneously, determinator is used for one of optimum determining and the comparable sampling frequency of measuring operation speed, control device is used for the computerized waveform generator of practical operation, under the sampling frequency of measuring, can calculate real figure waveform sample value equally continuously, and output unit is used for according to the performance information that is provided based on the real figure waveform so that musical sound to take place.
In apparatus of the present invention, input media provides performance information, and selected which waveform generator of selecting apparatus should produce the musical sound waveform that is relevant to performance information.Produce the musical sound waveform of correlated performance information by the selected waveform generator device control of selecting apparatus.Therefore, performance information itself can select the 1st and the 2nd waveform generator device which should produce musical sound waveform with performance information.The the 1st and the 2nd waveshape generating device structurally differs from one another, and the result is between the 1st and the 2nd waveform generator device, and the sound of load that they are handled and generation can be so that different aspect waveform generation.So, by selecting the 1st waveform generator device to be used to produce to be relevant to the musical sound waveform of a definite incident of performance information, and determine the musical sound waveform of incident by another that select the 2nd waveform generator device to be used to produce to be relevant to performance information, might produce various musical sounds.Say again,, might regulate the processing load by the performance information that the control waveform generating apparatus is assigned to.
Preferably determine which waveform generator device, produce the musical sound waveform, because the waveform generator device of a shaping type should obtain the timbre that a best is determined according to the timbre that produces musical sound.Determine that according to the timbre that performance information among the present invention is selected the optimum waveform generating apparatus is relevant to the musical sound waveform of performance information with generation.In the present invention, timbre information can be included in the performance information.As mentioned above, both having made provides identical performance information, because the difference between the 1st and the 2nd waveform generator device, the feature of musical sound still can be different.In other words, can the various waveforms of reproducing music sound.When passing through the 1st and the 2nd waveform generator device and producing the musical sound waveform, can realize the variation of musical sound by using the different wave generating apparatus for common timbre according to identical performance information.
Because musical sound produces condition,, also might produce the musical sound waveform by the waveform generator that substitutes even should produce waveform according to the main waveform generating apparatus of performance information.For example, above-mentioned when substituting the sound generation capacity to occur in main waveform generating apparatus and almost reach its ability peaked.Added performance information in the present invention, considered which waveform generator device number that the musical sound waveform produces is used to measure and should produces musical sound, overflowed so that prevent that waveform from calculating.
By the way, the 1st is identical with the 2nd waveform generator device on the waveform generation function, so the user can two uses, and only uses one.For example, the 1st waveform generator is dismountable, and the 2nd waveform generator is permanent the installation.In the present invention,, should produce the musical sound waveform that is relevant to performance information by the 1st waveform generator device so, thereby selected the 1st waveform generator device produces the musical sound waveform that is relevant to performance information if the 1st waveform generator device is housed.Otherwise if the 1st waveform generator device is suddenly by shedding on the device, the 2nd waveform generator device can be chosen to be and produce the musical sound waveform that is relevant to performance information so.The initial musical sound waveform that is produced by the 1st waveform generator device can change by the 2nd waveform generator device and produce.Therefore, the 1st waveform generator device was not existed, still produced the musical sound waveform safely.
In the present invention, the 1st and the 2nd waveform generator device can be distinguished the sample value of computational music acoustic wave form.Proving installation is measured the 2nd waveform generator device and is produced the musical sound required time of waveform.According to the time that proving installation is measured, measured sampling frequency.Therefore, under best sampling frequency, can produce musical sound for this system architecture.In general, if sampling frequency changes continuously, the arrangement of handling frequency measurement so becomes complicated.Yet, in a kind of particular form of the present invention, by the flat middle sampling frequency of selecting by determinator mensuration of predetermined steps water inlet.
If the sampling frequency subcritical level by determinator is measured changes the computing of waveform so,, can not keep the quality of generation sound by initial waveform generation because under the sampling frequency of measuring.In this kind situation, preferably change computing, for example simply read the sample value of musical sound waveform so that improve sampling frequency.
Fig. 1 represents the square sketch map of the 1st embodiment of musical sound generator of the present invention.
Fig. 2 represents the square sketch map of a kind of remodeling embodiment illustrated in fig. 1.
Fig. 3 represents the square sketch map of another kind of remodeling embodiment illustrated in fig. 1.
Fig. 4 A represents that sound source device and external unit thereof are in the square sketch map that one is installed.
Fig. 4 B represents that DSP and external unit thereof are in the square sketch map that one is installed.
Fig. 5 represents the mode of operation in the 1st embodiment according to the present invention.
Fig. 6 is the memory map of the random-access memory (ram) that provided in the 1st embodiment.
Fig. 7 is illustrated in performed whole program flow diagrams among the 1st embodiment.
Fig. 8 is illustrated in the process flow diagram of waveform synthesis program performed among the 1st embodiment.
Fig. 9 is illustrated in the process flow diagram of waveform synthesis program performed among the 1st embodiment.
Figure 10 is illustrated in the process flow diagram of waveform synthesis program performed among the 1st embodiment.
Figure 11 is illustrated in the process flow diagram of waveform synthesis program performed among the 1st embodiment.
Figure 12 is illustrated in the process flow diagram of waveform sample value loading processing performed in the waveform synthesis program.
Figure 13 is illustrated in the process flow diagram of waveform sample value computing performed in the waveform synthesis program.
Figure 14 is illustrated in the process flow diagram that is calculated by the performed waveform sample value of CPU in the waveform synthesis program.
Figure 15 is illustrated in the waveform synthesis program and synthesizes the process flow diagram of handling by selected hardware.
Figure 16 is illustrated in the waveform synthesis program and synthesizes the process flow diagram of handling by selected hardware.
Figure 17 is illustrated in the process flow diagram of timer processing in the waveform synthesis program.
Figure 18 is illustrated among the 2nd embodiment and synthesizes the process flow diagram of handling by selected hardware.
Figure 19 is illustrated among the 3rd embodiment and synthesizes the process flow diagram of handling by selected hardware.
Figure 20 is illustrated among the 4th embodiment and synthesizes the process flow diagram of handling by the hardware of selecting.
Figure 21 has represented to adopt the square sketch map of a kind of remodeling of the present invention.
Figure 22 has represented to adopt the square sketch map of another kind of remodeling of the present invention.
Figure 23 represents the square sketch map that this has adopted the further remodeling of invention.
The square sketch map that Figure 24 has represented to adopt the present invention further to retrofit.
Figure 25 represents the square sketch map of another embodiment of musical sound generating means of the present invention.
Followingly will describe embodiments of the invention in detail with reference to accompanying drawing.Fig. 1 represents the square sketch map according to the 1st embodiment of a kind of musical sound generator of the present invention.CPU of label 10 expressions in Fig. 1, it controls each unit that constitutes computer system according to the base program that is stored in ROM (read-only memory) (ROM) 11 via data bus 12.The RAM of the temporary transient storage of label 13 expressions various registers, mark and data.Label 14 expression receives and transmits MIDI information, the information that key operation provided on keyboard and via I/O (I/O) port of the multiple pattern of other various information of each interface I/F (not shown).The performance information that this multiple pattern I/O port one 4 receives with MIDI information or key information KBD form.In the present embodiment, can produce performance information by the automatic performance program.In above-mentioned situation, this automatic performance program means by certain automatic sequence program and produces performance information with chronological order.So setting shown in Figure 1 is not only as musical sound generator work, and as a sequencer job.The I/F interface of this pattern can be the serial or parallel connection port, RS-232C, RS-422 or the like.Especially in the situation of RS-232C, computer system is communicated with major key by the public telephone network with modulator-demodular unit.Therefore, the input source of performance information can be keyboard in the situation that keyboard operation information is provided, perhaps in the situation that MIDI information is provided, can be the external unit that connects by I/F, perhaps can be by the performed sequencer program of CPU in the situation that automatic performance information is provided.Label 15 expressions comprise the storage element of FD (floppy disk) or HD (hard disk).Storage element 15 is storage application program and data also.The display that label 16 expressions are made up of CRT or LCD (liquid crystal display).Display 16 shows various data under CPU10 control.Label 17 expression replaced C PU10 carry out a selected coprocessor of Floating-point Computation.Carry out the remainder data processing by CPU10.The timer of computing time in the timer processing of describing after label 18 is illustrated in.Label 19 expression is not subjected to CPU control and transmits the data directly to and from the DMAC (direct memory access (DMA) controller) of RAM20.Although these are discrete devices in the present embodiment, coprocessor 17, timer 18 and DMAC19 can be in CPU10 be contained in chip piece now.RAM of label 20 expressions, it has the hardware configuration that is similar to aforementioned RAM.Yet RAM13 is as the workspace by the CPU executive routine, and RAM20 is a wave memorizer, and it is temporarily stored by the represented waveform of Wave data.Label 21 expressions are used for a DSP (digital signal processor) of the synthetic needed digital signal processing of musical sound.Its 1st waveform generator that constitutes a LSI of selected sound source of label 22 expressions is used to produce the musical sound waveform according to performance information.D/A converter of label 23 expressions, its startup when mark DACENBL places " 1 ".Before D/A converter 23, provide a FIFD data buffer (not shown) usually.At sampling frequency f
sRead the Wave data that is stored in FIFO down.After D/A converter 23, provide a LPF (low-pass filter) (not shown) usually.The cutoff frequency of a LDF is arranged to sampling frequency f
sHalf about.This LDF is the output device of musical sound generator.Reproduced musical sound by amplifier and broadcaster.RAM of label 24 expressions, its similar is in the hardware configuration of RAM13 or 20.With the arithmetic operation working storage of RAM24 as DSP21.Label 25 expression wave memorizers are taking place in the situation of a musical sound according to wave memorizer reading method sound source 22, the Wave data of the basic or typical timbre of this memory stores.The effect of wave memorizer 25 and RAM20 is a little somewhat different, and wave memorizer 25 mainly is that sound source 22 is used and provided with ROM or subboard form, and RAM20 is used as wave memorizer by CPU10.
In general in above arrangement, often according to user's selection, selected some assemblies of installation are coprocessor 17, sound source 22, RAM24 and wave memorizer 25 for example.If RAM24 is not installed, so with certain differentiation dispensing DSP21 of RAM13.If it produces a kind of musical sound by pure calculating Wave data the sound source 22 synthetic mail that is a kind of frequency modulation (FM), wave memorizer 25 can not installed so.Whether CPU10 discerns these selected assemblies and installs.In the present embodiment, CPU10 is according to the selected assembly of one of following method identification.
(1) port address being preserved for corresponding assembly connects.After power connection or system reset, CPU10 immediate access port address.If CPU10 surveys the predetermined symbol from port address, the existence of its identification corresponding assembly so.
(2) provide the switch of beating to be used to show the assembly installation.The user connects switch corresponding assembly was installed at that time.
(3) if realize this system with special purpose computer, will select assembly so and use the corresponding assembly drive records in configuration file, or in the autoexec.This system software is by this assembly of these file identification.
In the present embodiment, all these are selected assembly is installed fully and is connected on the data bus 12.Yet the connectivity port is not limited to data bus 12.Can connect via series connection/parallel interface selecting assembly, realize that by each assembly of interface data and CPU10 transmit mutually.In other words, the interface of any kind of might be offered selected assembly, and can be connected with CPU by this assembly of interface.For example, as shown in Figure 2, in fact can provide sound source 22 as a sound source card 41 or a disposal card.In above-mentioned situation, in a groove on sound card 41 insertion mainboards or the motherboard.Sound card 41 is communicated with CPU10 by bus 12, I/F controller 26 and external interface 27.In above-mentioned the setting,, wave memorizer 25 can be installed by the socket on the sound card 41.In addition, external interface 27 can provide another D/A converter 28.In addition, sound source 22 can provide with the form of discrete LSI chip, or is installed on the daughter board.In above-mentioned the setting,, this chip or subboard are installed by at the socket on the mainboard or on the expansion slot.Similarly, can provide DSP21 with the form of DSP plug-in unit 42.In above-mentioned situation, this DSP21 is communicated with CPU10 via expansion interface 27.In addition, DSP21 can provide with the form that discrete LSI piece is similar to sound source 22.The input data are sent on the D/A converter 23 by bus 12 in Fig. 1.Yet,, can directly or pass through the expansion interface distribute data so if DSP21 or sound source 22 are installed by socket or expansion interface.
As shown in Figure 3, can be with the 1st waveform generator or the sound system of forming by sound source 22 or DSP21, be connected on the local bus 33, data are sent to cpu system 30 and from cpu system 30, spread out of by this local bus 33, and do not use data bus 12.The cpu system of being made up of standard configuration 30 comprises CPU10, ROM11, and RAM13, and external unit 31 comprises multiple pattern I/O port one 4, storage unit 15 and other interface and manipulater simultaneously.In the present embodiment, sound system 32 is made up of discrete sound source 22 or DSP21 specially.Yet in general, any musical sound generation function element is included in the sound system 32.Sound system 32 can be integral with cpu system 30 or separate.Further, can provide connecting interface over there here or at the sound source device at CPU.Just, the system according to the present invention sets up can use any connecting interface.Append on the local bus, can use the interface/protocol of any kind to unite for example MIDI, RS-232C/422, IEEEP-1394, or SCSI.Simultaneously, communication network such as public telephone network can be used as data communications media.
In being provided with shown in Fig. 4 A, sound source device 22 can integrally be formed in the one chip or P.e.c. is pulled in the assembly with wave memorizer and D/A transducer 23.Equally, shown in Fig. 4 B, DSP21, RAM24 and D/A transducer 23 can be formed in the single SIC (semiconductor integrated circuit) piece integrally, together.
Setting shown in Fig. 1 to 3 only is as an example.And the form that assembly connects depends on the foundation of individual system.Further, two or more function element shown in Figure 1 can integrally be formed in the one chip.
According to the present invention, the musical sound generating means of above-mentioned structure has provided a kind of waveform according to performance information generation musical sound.The 1st waveform generator for example sound source 22 or DSP21 can be operated and produces a kind of waveform.By the 2nd waveform generator that CPU10 forms, can be independent of the operation of the 1st waveform generator and produce a kind of waveform.I/O14 provides performance information.Corresponding to one in selected the 1st waveform generator of the performance information that is provided and the 2nd waveform generator.This device is selectively operated one selected in the 1st waveform generator and the 2nd waveform generator, according to the information generation waveform of providing performance.Based on the waveform that produces, musical sound takes place in DAC23.The 1st waveform generator comprises the selected outside waveform generator that can be connected on this device, and simultaneously, the 2nd waveform generator comprises the inside waveform generator with the CPU10 one.Sometimes, externally waveform generator is provided with when being connected to this device, even outside waveform generator should still specify inner waveform generator to replace outside waveform generator mainly corresponding to the performance information that is provided.Constitute the major part that computing machine is formed with CPU10 all-in-one-piece the 2nd waveform generator, and the 1st waveform generator constitutes the accessory that separates with main portion individually, and it can select to be installed on the computing machine.The 1st waveform generator is made up of the nextport hardware component NextPort that drives by CPU10, and the 2nd waveform generator is made up of the component software that can install on computers.
Various in the present embodiment modes of operation below will be described.As shown in Figure 5, musical sound generator mode of operation of the present invention can be categorized into two main groups, and one relates to and is called synthetic method, and another relates to timbre is assigned to the different wave generator.Two major constituents are become more specifically mode.At first, the mode that below explanation is called synthetic method.
In the present embodiment, by waveform or Wave data, realize taking place sound, and convert it to simulating signal according to performance information composite music sound.The generation Wave data can in all sorts of ways.According to selected synthetic method mode of operation, determined used method.In the present embodiment, by selecting to take by the CPU synthesis mode of the 2nd waveform generator with by the sound source synthesis mode of the 1st waveform generator.
In the CPU synthesis mode,, or unite to come composite music sound by CPU10 and coprocessor 17 only by CPU10.Further, the CPU synthesis mode can be divided into roughly following four submodes.By D/A converter 23 waveform transformation that produces is become the simulation signal in order to reproduce sound.
Mode of frequency regulation: for synthetic video, above-mentioned mode of frequency regulation uses an a kind of software module of frequency modulation sound source.By using CPU10 frequency modulation modulation in real time on main sine wave, produce Wave data.
The harmonic wave synthesis mode: the harmonic wave synthesis mode is that first-harmonic and harmonic wave thereof are synthesized together.Use the CPU10 true-time operation, calculate first-harmonic and harmonic wave thereof and come synthetic waveform.
Waveform storage playback mode: in this kind mode, come synthetic video by access waveform in storer.Before synthesizing, CPU10 is with many basic waveforms RAM20 that packs into.When synthetic order enters, the Wave data of the selected timbre of CPU by reading designated tones of waveform generation and volume.In waveform storage playback mode, the CPU that had both used a low performance also can synthetic video, thereby realizes synthetic video because read Wave data by access RAM or ROM.So in this kind mode, the operating load of CPU is less than the operating load in FM mode and the harmonic wave synthesis mode.Yet, should distribute RAM Wave data district, the result causes that sometimes freely pressing of RAM13 or 20 is short.Therefore, in some cases, depend on capacity and the cpu address volume of whole RAM, preferably do not use waveform storage playback mode.
The physical model synthesis mode: in the physical model synthesis mode, for synthetic video by actual musical instrument sound mechanism of electronic model simulation, the flowing of air in wind instrument for example.Wave data has been calculated in true-time operation with the device that comprises CPU10.The synthetic algorithm examples of physical model is disclosed in JP-A-63-40199.
As mentioned above, comprise by the CPU of software sound source or the 2nd waveform generator and manyly can produce the digital waveform that different qualities be arranged through computing based on the digital waveform generator of algorithms of different operation.Apparatus of the present invention are according to the performance information that is provided, the digital waveform generator of a kind of the best of selection operation.Specifically, the 2nd waveform generator comprises a kind ofly can read the digital waveform generator of pattern based on the waveform storage of relative simple algorithm operation, produce a kind of inferior relatively digital waveform, can produce another kind of high-quality relatively digital waveform based on the digital waveform generator of relative complex algorithm operating with another kind.
On the other hand, in the hardware sound sources synthesis mode, use a kind of concrete hardware such as LSI sound source 22 composite music sound.Certainly, in this kind mode, nextport hardware component NextPort such as LSI sound source 22 must be installed in this system.With mode of frequency regulation or waveform storage playback mode (being similar to software sound source), LSI sound source 22 synthetic these Wave datas.Determine synthetic method by hardware itself.CPU10 does not control sound source 22 and itself synthesizes processing.
In the present embodiment, provide multichannel.In the CPU synthesis mode, or in the sound source synthesis mode, a channel allocation is given a kind of musical sound.Thereby having produced multiple musical sound in multichannel realizes in the multiple sound sound taking place.Since in the present embodiment can both the synthetic waveform data by CPU10 and sound source device 22, so the selection of the waveform generator that is utilized is an important problem.In the present embodiment, when accepting a note-order, distribute, select a kind of waveform generator of the best according to sound.Below list the sound allocation scheme:
The CPU selection mode: in the CPU selection mode, override considers it is to finish waveform by the CPU synthesis mode to synthesize.Yet,, limited the number of the sound channel that can be used to synthesize so if comprise that the computing power of calculating device of CPU10 is not enough.In such situation, finished the part that surpasses the waveform synthetic work of the calculating device ability that comprises CPU10 by hardware sound sources.
The sound source selection mode: in the sound source selection mode, what override was considered is to finish waveform by hardware sound sources to synthesize.Yet,, limited the number that can be used for synthetic sound channel so if the ability of hardware sound sources device 22 is not enough.In such situation, finished the part that surpasses the waveform synthetic work of sound source device 22 abilities by the CPU software sound source.
Manual mode: in manual mode, the user manually specifies or software, or hardware sound sources.Further, if selected CPU by software sound source will select a kind of concrete synthesis mode so.
Forced mode: in forced mode,, force to determine used sound source according to running status except the application program in the sound generating program of user view that has nothing to do.
The memory map of RAM13 or 20 below will be described.The arrangement of musical sound generator of the present invention is to be different from general personal computer so.Further, can provide to carry out to relate to the synthetic operation of waveform as the general personal computer of musical sound generator.Therefore, RAM13 or 20 content are to be different from personal computer so.As shown in Figure 6, the storage space with RAM13 or 20 is divided into many districts.In Fig. 6, an OS district is occupied by operating system as personal computer is the same.Application area (1) is to the various application programs of (n) adaptation except the waveform synthesis program.These districts are distributed to the application program of calling singly.Voice data and other various data storing in the data field, and are being realized that by waveform storage reading method when synthetic, this Wave data is packed in the Wave data district " waveform ".At last, selected a kind of waveform synthesis program is stored in waveform synthesis program district.
Operation according to musical sound generator of the present invention below will be described.By carrying out concrete application program of personal computer, being the waveform synthesis program, produce musical sound.In other words,, a kind of equipment of the form of transient program as OS is installed automatically, can be realized the waveform synthesis program with at that time in guidance system.Although storage address and carry out the synthetic licensing procedure of waveform depends on configuration, user's operation, number of applications, condition of work of OS environment or the like,, carried out the waveform synthesis program as application program (1) in (n).As shown in Figure 7, in initial step S1, when power connection or musical sound generator reset, various registers and mark setting/reset, in step S2, carry out the system management of OS and handle.In S5, carried out application program (1), waveform synthesis program at step S3 respectively, and application program (n).In the circulation that program is enabled, carry out the sample value that the waveform synthesis program produces a Wave data.And application program (1) does not comprise the waveform synthesis program to (n).These application programs can relate to the music performance, or relate to diverse affairs.After step 5, do not turn back to step 2.
If the practice condition of application program is provided with change, so by S
2To S
5Circulation carry out repeatedly.In other words, if the application program practice condition changes, and when system management is handled in step 2, detect such change.If the change of situation is the terminal of program, jump over the step of corresponding executive utility so.If the change of situation is when program is enabled, so the step of carrying out a new application program is added in the circulation, and carries out whole circulation repeatedly.Therefore, carry out operation conditions and the system load varies that the round-robin cycle depends on application program.Yet, haveing nothing to do in the operation conditions of application program, each circulation produces a sample value Wave data of musical sound forever.Produce a series of sample values continuously by repetitive cycling, to produce a desirable waveform.Therefore, if convert the Wave data that produces to simulating signal simply, the sample period changes so, and the result can beat when reproducing music sound.Sound waveform for temporary transient storage produces before D/A converter 23, is equipped with data buffer.At fixing sampling frequency f
s, the Wave data that this data buffer access is read.If in this system is not personal computer but separately electronic musical instrument, sound source assembly or any other has in the situation of the system that produces sound device, musical sound produces is to be undertaken by fixed routine, the performance period of so can fixed cycles handling.In other words, carry out this loop program fixed intervals.In this kind situation, make intercycle and sampling frequency f
sInverse conform to and be very practical, thereby can eliminate data buffer.
With reference to Fig. 8 to 11, below be described in waveform synthesis program performed among the step S4.According to scheduled operation, after loading by storage unit 15, carry out this program.In step Sa1, checked synthesis model and hardware to set up.In the check that hardware is set up, by the method for inspection described below, the selected device of identification.As for mode of operation, synthesis mode harmony cent prescription formula has also all been checked.About the foundation of mode of operation, if before calling the waveform synthesis program, carry out other application program, the sound allocation scheme can turn to forced mode.In other words, select to import desirable setting, can set up synthesis mode harmony cent prescription formula via display menu according to the user.Further,, so just might be provided with or the CPU selection mode if in hardware check, discerned various sound source devices, or the sound source selection mode.Therefore, in step Sa1, before carrying out the waveform synthesis program, set up and the identifying operation mode.
In step Sa2, carried out the waveform processing of packing into.Pack at waveform and to handle, in the situation of the basic waveform that is used for waveform storage playback mode, typical case or basic waveform packed into is distributed in waveform district in RAM13 or 20.In step Sa3, whether certification label SETFLG is " 1 ".This mark SETFLG is initially set to " 0 ", if but in step Sa21, set up sampling frequency f
sIf perhaps selected waveform storage playback mode is a reserve waveform account form, can forward " 1 " to so.If mark SETFLG is " 1 ", this process enters step Sa4.In other words, if mark SETFLG is " 0 ", this process jumps to step Sa5.At first in loop shown in Figure 7.Carry out in the situation of waveform synthesis program, this mark SETFLG is " 0 ", and the process unimpeded access is to step Sa5.Yet, for convenience for the purpose of, at this program of step Sa4 is described also.In step Sa4, whether check realizes that by the CPU synthesis mode sound is synthetic fully.Might use the result of hardware check in step Sa1, whether discern any outside sound source to detect.If synthetic for waveform, except CPU, use the possible property of any sound source, whether the Sa4 step be branched off into " or not direction so.In step Sa5, whether certification label ENBLFLG is " 1 ", so that detect non-operating state.Non-operating state means sampling frequency f
sNeither being based upon the waveform generation process, can not be reserve waveform account form.So in non-operating state, the CPU synthesis mode also is not ready for.
At first in major cycle shown in Figure 7, when carrying out the waveform synthesis program, mark ENBLFLG is " 0 ", and outcome procedure enters step Sa11.Yet, exactly for convenience for the purpose of, be in the situation of " 1 " at mark ENBLFLG, but under operating conditions, described this program at this.Operable state means for CPU is synthetic has finished all preparations.In this kind situation, process enters step Sa6, carries out performance information at this and handles.In step Sa7, check has not CPU waveform generation order.Respond packet is contained in keypad information KBD, MIDI information or under the CPU synthesis mode by the connection of the given performance information of I/F, produce the order of CPU waveform generation.In step Sa7,, in step Sa8, carry out the process of response command so if detect the order of CPU waveform generation.In the process of step Sa8,, produce Wave data by a concrete synthesis mode of selecting in the available CPU synthesis mode.Then, via bus 12, Wave data is given D/A converter 23.Therefore, according to composite wave data or waveform, realize sound generating.
In wideer qualification, the order of CPU waveform generation can comprise that the ON-and OFF-command note stops, although omitted corresponding to the explanation that disconnects process at this.These note processes of stopping are very simply to handle, and for example waveform generation disconnects and waveform generation stops.In step Sa7,, jumped over the synthetic calculating of waveform in the step 8 so, because work will not carried out if do not detect the order of CPU waveform generation.In step Sa9, check whether the user will stop the waveform synthesis program.If do not indicate this program of termination, process forwards to immediately and prepares the order of next CPU waveform generation so.On the other hand, stop in the situation of order, in step Sa10, stop the waveform synthesis program to " 0 " by mark SETFLG is set in input.
If at first in Fig. 7 major cycle, carried out the waveform synthesis program, mark ENBLFLG is " 0 " so.Then, in step Sa11, check whether allocation scheme is one of CPU selection mode and sound source selection mode.If allocation scheme is manual mode or forced mode, so result of detection be " or not thus program enters step Sa12, at this mark ENBLFLG, DACENBL and SETFLG place " 1 " entirely.Then, this program is returned.Mark DACENBL places " 1 ", starts D/A converter 23.Therefore,, check that step Sa3 result is " being ", check that step Sa4 result is " or not, thereby execution list is shown in the program of Figure 11 if carried out the waveform synthesis program and used outside sound source next time.In other words, only finished by CPU if waveform is synthetic, execution in step Sa6 is to Sa10 so.
On the other hand, in step Sa11, checking that allocation scheme is CPU or when being the sound source selection mode, this program enters step Sa13.If at first called the waveform generation program, promptly can carry out the program of step Sa13 shown in Fig. 9 and 10 in the Sa27.In said procedure, determined sampling frequency f for only synthesizing by CPU
sIn step Sa13, mark ENBLFLG switch is to " 0 ", and mark BUSY places " 1 ", and mark DACENBL places " 0 ".Mark BUSY places 1, in the described afterwards timer processing, and enabling counting.Mark DACENBL is set to " 0 ", so that forbid the output services of D/A converter 23, the described afterwards test waveform computing interval stops sound generating.After step Sa13, register SCOUNT and TCOUNT are placed " 0 ".The poke of register SCOUNT shows follows the circuit cycle number that test waveform calculates.Register TCOUNT increases counting, and label switch is to " 1 ".Therefore, above-mentioned register shows by required elapsed time of waveform of m synthetic computation cycles generation.In step Sa15, give the standing wave graphic data by execution and produce algorithm, for sample value of a sample period generation.Below will be described in detailed process in the step 15.In step Sa16, when the execution sample value was calculated one time, register increased " 1 ".In step Sa17, it is inferior whether to check that register SCO UNT reaches circulation " m ", if detect not, process turns back to step Sa15 so.In other words, check result is that process enters the step Sa18 among Figure 10.Therefore, step Sa15 and Sa16 calculate looped cycle up to sample value to reach " m " inferior repeatedly.
In the Sa18 of Figure 10 step, mark BUSY switch is forbidden the timer counting to " 0 ".Then, in step Sa19, calculated frequency F by following formula (1)
S
F
S=(m tolerance limit)/(TCOUNTTt) ... (1)
In above-mentioned formula, " tolerance limit " is the constant that is provided with less than value 1, offers the counter that comprises the CPU with some tolerance limits, as the processing power of this counter.As previously mentioned, TCOUNT shows when carrying out sample value and calculate required cycle of " m " inferior circulation regularly enabling time, and Tt represents the interval of timer.Therefore, the product of TCOUNT and Tt produces the cycle that waveform is required corresponding to finishing the sample value computing.
Therefore, the frequency F that calculates by formula (1)
SBe the frequency of waveform sampling, and the processing power of constant " tolerance limit " expression hardware.
The frequency F of detection computations in step Sa20
SWhether greater than 32 kilo hertzs.Using this threshold frequency " 34 kilo hertzs " is to consider the lowest quality that musical sound takes place.If this testing result is sure, it means that the CPU processing power is enough for the lowest quality that keeps sound, and process enters step Sa21.In step Sa21, select less than with near calculated rate F
SEnough sampling frequency f
s, 32 kilo hertzs, 44.1 kilo hertzs, 48 kilo hertzs and 50 kilo hertzs.If calculated rate F
SBe 47 kilo hertzs, sampling frequency f so
sBe to place 44.1 kilo hertzs, its be near and less than 47 kilo hertzs, select less than calculated rate F
SValue be because if words that sampling frequency surpasses the CPU processing power are set, the constant tolerance limit is just nonsensical so.After step Sa21, mark DACENBL in step Sa22, ENBLFLG and SETFLAG all place " 1 ", and program is returned.Thereby above-mentioned marking operation starts D/A converter 23 outputting music sound.Further, above-mentioned marking operation shows and has set up sampling frequency f
sTherefore, but the inoperative situation changes to working condition.
But under working condition, when the next one is carried out the waveform synthesis program, check step Sa4 result " or not thus synthesize by the program that is illustrated in Figure 11, should realize that waveform is synthetic by the outside sound source device.In other words, it is synthetic to be used for waveform iff CPU, checks that step Sa4 result is in " being " and checks that step Sa5 result is in " or not, thereby realize synthetic to Sa8 by step Sa6.
On the other hand, if in Figure 10, in step Sa20, check about calculated rate F
SThe result be " or not, it means the lowest quality that can not keep sound, this process enters step Sa23.In step Sa23, the warning user can not reach the sound lowest quality, and calls reserve waveform account form.Reserve waveform account form is a waveform storage playback mode, when the sound lowest quality can not obtain with the 1st synthesis mode of selected available CPU synthesis mode, does to select the 2nd, has selected waveform to store playback mode.In step Sa24, whether check selectes reserve waveform account form.If this program enters step Sa25, produced initial waveform at this by the 1st account form, and then be stored in RAM13 or 20.32 kilo hertzs of sampling frequencies, it is automatically determined when reading the waveform of storage, has in fact reproduced sound.Therefore, it is synthetic in fact to have finished waveform with waveform storage playback mode, even the result equips the CPU of low performance in system, can also obtain the reproduction sound of lowest quality.After this, executive routine arrives duty with the off working state switch in step Sa22, and this program is returned.On the other hand, specify reserve waveform account form if be provided with in step 24, program enters step Sa26 so, wherein detects the termination order of sound synthesis program.If order sound synthesis program stops, operation is finished, and removes mark SETFLG to " 0 " in step Sa27.At calculated rate F
SIn 32 kilo hertzs of situations, and reserve waveform account form not only established appointment but also had been provided with command program and stopped, and the warning alarm is successive.Therefore, carrying out waveform with counter such as CPU10 synthesizes.With respect to cpu performance with the sampling frequency optimization.Further, if the performance of CPU is low, synthetic to the execution of waveform storage playback mode by switch, it can reduce the load of CPU.
Brief summary comprises a computerized waveform generator by the CPU of the 2nd waveform generator, its can according to given algorithm under variable-operation speed by calculating the digital waveform sample value continuously, produce digital waveform.The waveform generator of operational computations machineization has been realized pattern number character waveform on probation and has been measured operation rate regularly.In the operation rate that compares and measures, determined sampling frequency best.In fact the waveform generator of operational computations machineization allows according to providing performance information, under the sampling frequency of determining, and the same sample value of calculating a real figure waveform continuously.Sampling frequency is fixed to giving of a stepping decides level, it is lower than and the operation rate of approaching measurement.When definite sampling frequency falls to being lower than a critical level, limit the lowest quality that this critical level guarantees digital waveform, change the operation rate that initial algorithm improves computerized waveform generator, surpass this critical level thereby can redefine sampling frequency.Algorithm is simple by changing over of complexity, thus computerized waveform generator work is read continuously and is given the sample value that stores earlier to reproduce digital waveform based on simple algorithm.Can the initial calculation sample value by complicated algorithm.Then, sample value is stored in the wave memorizer so that actual use under the simple algorithm of waveform storage playback mode.Therefore, sound generating apparatus of the present invention, provide digital waveform to produce musical sound according to performance information, it comprises that input media is used to provide performance information, computerized waveform generator device can be based on given algorithm under variable operation speed, by continuous calculating digital waveform sample value, produce digital waveform, proving installation is used for the waveform generator realization pattern number character waveform on probation of operational computations machineization regularly, measure the operation rate of carrying out service test model at this simultaneously, determinator is used for measuring best and the comparable sampling frequency of measuring operation speed, control device is used for the in fact waveform generator of operational computations machineization, measuring the sample value that to calculate a real figure waveform under the sampling frequency equally continuously, and output unit is used to produce musical sound, and it is based on the digital waveform of reality and produce musical sound according to the performance information that provides.
By the way, if in Fig. 8 at step Sa4, might use hardware sound sources for synthetic the detecting of waveform, this process is branched off into step Sa28 among Figure 11 so.In step Sa28, mark DACENBL switch is started D/A converter 23 output sounds to " 1 ".In step 29, detect any termination order for the sound synthesis program.If ordered the sound synthesis program to stop, through step 30 in step 31, with mark SETFLG be scavenged into " 0 ", synthesis program is finished.On the other hand,, negate, so checked operation model sound source synthetic model whether in step 32 in step Sa29 testing result if order stops the sound synthesis program.When in step 32, detecting the sound source synthetic model, in step 33, detect selected aforesaid way when in step Sa1, discerning with hardware check for the required hardware of specific mode.If corresponding hardware is arranged, in step 34, carries out building-up process by corresponding hardware.In other words, expression lacks corresponding hardware in step Sa35, and if corresponding hardware do not have, use so the hardware of current foundation, continue synthetic the processing.After step Sa34 and Sa35, process is returned.To describe later on, synthesize processing with the hardware of selecting.
Performed waveform will load program among the step Sa2 (Fig. 8) with reference to being described in below Figure 12.In the waveform loading procedure, in step Sb1, detect whether receive MIDI sample value dump command by a plurality of I/O port ones 4.This MIDI sample value dump comprises according to the Wave data of midi standard and is used for waveform storage playback mode.If received the dump of MIDI sample value, handled the sample value receiving course, the result is sent to the data that receive the waveform district of RAM13 or 20 in step Sb2.The dump of repeating step Sb2 sample value receives till having finished all Data Receiving.Detecting this in step Sb3 finishes.If finish all Data Receiving, testing result " is " in step Sb3 so, and this process is returned.On the other hand, if step Sb1, checks whether transmit Wave data via interface I/F so at check result " or not in step Sb4.If received Wave data,, in step Sb2 and Sb3, the data that receive are sent to the waveform district in RAM13 or 20 so as in the MIDI sample value dump situation.If whether the result be " or not in step Sb1 and Sb4, in step Sb5, detect so and carry out access for storage unit 15 and read, promptly ask by reading some data in the storage unit 15.If request is provided with the result, waveform is packed into immediately and to be stopped and process is returned so, because there is not more work to do.On the other hand, when access takes place, in step Sb6, check by sense data in the storage unit 15.Further, in step Sb7, check whether sense data is a Wave data.If sense data is not a Wave data, waveform is packed into immediately and to be stopped, and process returns, because there is not more work to do.In other words, if read Wave data, so Wave data is sent to the waveform district in RAM13 or 20.In step Sb8, repeating data transmits up to detect data in step Sb9 and transmits end.When finishing the data transmission, step Sb9 check result " is " and process is returned.Therefore, in waveform is packed into, in waveform storage playback mode, receive and read used Wave data.Then, Wave data is sent to waveform district in RAM13 or 20.Store playback mode according to simple algorithm with waveform for synthetic actual waveform, counter such as CPU10 handle this Wave data.In order to reproduce with pack into the Wave data of RAM13 or 20 of sound source 22, the first-harmonic data of being packed into can be sent to again in the wave memorizer 25 that is contained in the sound source 22.In the conventional musical sound generator of particular hardware sound source was arranged, this hardware sound sources must have the Wave data that temporary transient wave memorizer is packed into reception.CPU must carry out Wave data is sent to wave memorizer by RAM.Yet, in the present embodiment, under the control of CPU10, with first-harmonic data pack into RAM13 or 20.So in hardware, do not need to provide scratchpad memory to preserve Wave data.Further, do not need to carry out being reloaded into program, wherein installed Wave data further is sent in the external hardware device.Can reduce the expense of system hardware or software and shorten to pack into and finish time to sound reproduction by Wave data.
With reference to will be explained in (Fig. 9) performed sample value calculating operation in the step 15 below Figure 13.In the step Sc1 of Figure 13, checked whether coprocessor 17 is arranged.In the present embodiment, coprocessor 17 has been installed.Yet, when some hardware is set up, this device be select and may lack.If CPU10 adapts to an arithmetic operation unit and is equivalent to coprocessor 17, detect so altogether-processor be not need.Might be about this system just as coprocessor has been installed.If detected coprocessor 17, in step Sc2, carry out the calculating of sample value with CPU10 and common-processor 17.In other words, in step Sc3, only carried out sample value calculating with CPU10, if not altogether-processor 17.After step Sc2 or Sc3, this process is returned.Except with maybe need not be total to-processor 17, to calculate be identical to sample value in step Sc2 and Sc3.Therefore, will explain detailed sample value calculating about step Sc3.
In the step Sd1 of Figure 14, whether existing mode of operation places mode of frequency regulation in various CPU synthesis modes in check.If place frequency modulation (FM) mode, so in step Sd2, calculated one group of sample value at a sampling spot corresponding to many roads according to the FM synthetic method.For example, if selected many phonosynthesis, calculated so and be used for synthetic needed one a group of various value of desirable sound number.In this kind situation, the load of CPU10 is high, because perhaps produce the alternative sounds with different tones in the same way.Both made failure, other is handled as image processing and can go simultaneously to do.If in step Sd1, be provided with the FM mode that detects, so in step Sd3, detect existing mode of operation whether and be the waveform storage playback mode that places among the CPU synthesis mode.If detect waveform storage playback mode here, from wave memorizer, read so for one group of sample value that sampling spot is required.In many phonosynthesis, read used synthetic desirable sound several need a plurality of sample values.CPU10 of no use reads with data and transmits but carry out above-mentioned data with DMAC19.With pack into waveform district in RAM13 or 20 of this Wave data, perhaps be stored among the ROM11 regularly.If in step Sd3, do not detect waveform storage playback mode, in step Sd5, detect in various CPU synthesis modes whether existing mode of operation places the harmonic wave synthesis mode so.As detect the harmonic wave synthesis mode, in step Sd6, calculated with CPU10 so and be used for a sampling and handle one group of required sample value according to humorous wave synthesis method.In many modes, with humorous wave synthesis method calculated be used for synthetic hope sound number institute must many sample values.In above-mentioned situation, the load of CPU10 is high, because can produce the various sound with various tones in the same way.Both make failure, and can carry out other simultaneously and handle, be similar to the situation of FM mode.If in step Sd5, do not detect humorous wave synthesis method, promptly in step Sd7, in many CPU synthesis modes, the check whether existing mode of operation places on the physical model synthesis mode.If detect the physical model synthesis mode, so in step Sd8 according to the physical model synthetic method, by CPU10 calculated be used for a sampling spot must sample value.In many modes, the many sample values that are used for synthetic hope sound number institute palpus have been calculated with the physical model synthetic method.If do not detect the physical model synthesis mode in step Sd7, so existing operation model is in outside the present embodiment, thereby in step Sd9, carries out wrong set-up mode alarm and other processing.After step Sd2, Sd4, Sd6, Sd8 or Sd9, program is returned, and then, carries out step Sa16 (Fig. 9) subsequently.
As in step Sc2 performed with CPU10 and altogether-waveform sample value that processor 17 calculates, thereby with CPU10 be total to-program shown in Figure 14 has been carried out in processor 17 cooperations can carry out calculating operation faster.Omitted detailed explanation at this, because this process basically and only identical with CPU calculating about operation.
Therefore, when the waveform sample value is calculated in step Sa15, finished the most influential processing on the synthetic sound quality by one of CPU synthesis mode.At FM, harmonic wave is synthetic, or in the physical model synthesis mode, Wave data calculate institute must time, the sound number of preparing to duplicate simultaneously is the key that sound synthesizes.In fact calculated each sampling spot Wave data in order to examine processing power.In Sa17, repeat to calculate m circulation at step Sa15, and in step Sa21, be suitable for the sampling frequency f of CPu processing power by timer work setting
s, measured m sample value and calculated institute's palpus time.In waveform storage playback mode, the Wave data read operation is the synthetic key of sound similarly, thereby the Wave data of reading each sampling point is with the examination access rate., in Sa17, m sample value done to read processing, and in step Sa21, by the timer operation setting, be suitable for the sampling frequency f of CPU processing power at step Sa15
s, measured m sample value calculate institute must the time.
Below explanation performed selection hardware in above-mentioned Sa34 (Figure 11) synthesizes.Above-mentioned building-up process is to synthesize all sound channels by the independent synthesis mode of CPU.According to allocation scheme, control is used for the sound source device of synthetic waveform and carries out above-mentioned processing.In said process, at first in Figure 15 step Se1, carry out event detection.This incident comprises the connection incident that response keypad information KBD or MIDI information are sent, and comprises other incident, and not only the CPU synthesis mode is that follow but also incident that sound source device mode is also followed.When detecting the connection incident, this device beginning synthesis program.Whether existing mode of operation is selected the sound source synthesis mode in check in step Sa2.If testing result is " or not, this process is branched off into step Se11.Otherwise if testing result is " being ", this program moves forward into step Se30 in step Se3, checks the existing synthetic operation situation of sound source device whether and observes " condition " with sound source device synthetic waveform corresponding to the performance information of this incident.In the present embodiment, condition be existing synthetic sound number (timbre) whether in the most loud several scopes, it can synthesize simultaneously by hardware selected in the sound source synthesis mode.More particularly, in step Se3, being under the effective condition now and dividing the number of channels that is used in the sound source device is to be less than or equal to by this device to be used for the sound channel sum of synthetic video simultaneously.Should " condition " can comprise the following other factors of listing: whether (1) is higher than predetermined value by detection incident selected " tone " or " tonequality ".(2) whether be higher than (or being lower than) predetermined value by the selected value that is equivalent to " timbre " of detection incident.(3) by the selected value that is equivalent to many in the performance information " key elements " of detection incident, whether be higher than (or being lower than) predetermined value.(4) whether a detected MIDI-CH value (channel number) that is equivalent to the incident that detects is higher than (or being lower than) predetermined value.Whether as implied above, can be generalized to do as one likes for the judgement of " condition " can the selected a certain value of information be higher than (or being lower than) predetermined value.If in FM mode or harmonic wave synthesis mode, use synthetic some the selected unique timbre of sound source device, might carry out one special " condition " and provide a negative result.The realization of above-mentioned situation will be described in a further embodiment later.Be somebody's turn to do " condition " if satisfy, carry out assignment and handle in step Se4, the result gives in the sound source device for the channel allocation that the connection incident will be synthesized a sound, is not used in the empty road of synthetic video so far.In step Se5, use selected sound source hardware to carry out sound generating, it is synthetic wherein to have carried out the reality of waveform for the incident that provides in the sound channel of distributing.
" condition " do not satisfy, whether certification label ENBLFLG is " 1 " in step Se6 so if be somebody's turn to do in step Se3.In the above-mentioned stage, the value of mark ENBLFLG " 1 " shows has carried out step Sa13 to Sa25, and shows for the CPU synthesis mode and set up sampling frequency f
sTherefore, the CPU synthesis mode is available.So, if step Se6 assay is " being ", because mark ENBLFLG value is " 1 ", in step Se7, carried out the sound assigning process of CPU synthesis mode, it is synthetic that the result has realized being equivalent to not observe the waveform of incident of synthesis condition by the sound source device by the CPU synthesis mode.Specifically, send assignment commands and calculated the waveform sample value that is equivalent to incident in the synthetic assigning process of above-mentioned CPU.This order comprises that appointment is by performed account form of CPU10 (any way in the CPU synthesis mode) and appointment timbre, tone, tonequality, volume and sound channel assignment.Further, this order comprises that the note order is as being switched on or switched off.When assignment commands is effective, in step Se10, comprise that the counter of CPU10 is carried out the synthetic computing of waveform, so that produce the sample value that is equivalent to this incident.If produce waveform with Interrupt Process, this assignment commands also comprises about interrupting the information that initial sum stops.On the other hand, if detect " 0 " value of mark ENBLGLG in step Se6, this CPU synthesis mode is disabled so.In above-mentioned situation, in step Se8, carry out truncation cut-out channel sound the earliest and reproduce operation, force to constitute an empty road.Above-mentioned truncation can be included in allocation process performed among the step Se4.In step Se4, dependent event is assigned to by in the empty road that forces note-disconnection formation, and has realized that by the sound channel of in step Se4, distributing the waveform of dependent event is synthetic.If many sound sources device is installed in the system, the sound channel of so different sound source devices can distribute to synthesize single timbre.
By the way, if in step Se2, do not detect the sound source device selection mode or the mode of carrying out, may be that CPU selects to carry out mode or manual mode, wherein the CPU synthesis mode is provided with the sound source synthesis mode so.Therefore, this process is branched off into the step Se11 among Figure 16.In above-mentioned steps Se11, whether existing shape condition of check CPU synthesis mode and the relevant incident performance information that sends observe " condition " of synthesizing by the device that comprises CPU.Various factors it is contemplated that " condition " of synthesizing into CPU, as using synthetic " condition " situation of sound source device (step Se3).In the above-described embodiments, this condition is whether existing synthetic many sound are can be with the CPU synthesis mode simultaneously within the range of sounds of synthetic maximum number.More particularly, in step Se11, check existingly to remain on note connection situation neutralization and distribute to the road number (CH) of the calculating device that comprises CPU and whether be less than or equal to the CPU synthesis mode synthetic waveform road number that can use simultaneously.If satisfy " condition ", whether certification label ENBLFLG is " 1 " in step Se12 so.As mentioned above, the value of mark ENBLFLG " 1 " shows with the synthetic preparation beginning of CPU synthesis mode waveform at this.So, in step Se13, carry out this assigning process by comprising the CPU10 device for waveform is synthetic, and this process enters step Se9.Assigning process detailed in step 13 does not have explanation again at this, because this process is in fact with identical in step Se7.On the other hand, if in step Se11, do not observe " condition " with the CPU synthetic waveform, the device that perhaps comprises CPU1O in step 12 is not ready for, so in step Se14 with the same assigning process of carrying out in step Se4, handle thereby do dependent event by the outside sound source device.Use selected hardware to synthesize at step Se15 with the same in step Se5.At execution in step Se13, after step Se9 and the step Se10.Whether have, produce Wave data by CPU if in step Se9, detecting assignment commands.If do not detect this order, this program is returned immediately.Otherwise, in step Se10,, calculate waveform to produce sound by CPU according to assignment commands.
Therefore, externally sound source is selected to carry out in the mode, carries out the synthetic processing of observing by hardware synthetic " condition " by sound source in step Se5, and in step Se10, carries out the synthetic processing of not observing " condition " by CPU.On the other hand, if not being sound source, mode selected do not carry out selection mode, in step Se10, carry out the program of observing by CPU10 synthetic " condition " so, and in step Se15, carry out the synthesis program of not observing by CPU10 synthetic " condition " by the hardware sound sources device by component software.Therefore, in use selection hardware is synthetic, if synthesis program surpasses hardware handles ability selected in the sound source synthesis mode, carry out the program of overage so by the CPU synthesis mode, thereby might synthesize many sound more than in hardware, reproducing whole sound numbers simultaneously, and be provided with the setting that increases hardware.In general, when entering apparatus such as I/O14 provide effective information, order produces many musical sounds in the same way, apparatus of the present invention are according to the selected many musical sounds in the same way of do as one likes energy information, in selected first waveform generator and the 2nd waveform generator one, selected one of result have capacity is enough to produce many waveforms corresponding to the musical sound number.When any the capacity in the 1st waveform generator and the 2nd waveform generator of outnumbering of musical sound in the same way, the 1st waveform generator and two of the 2nd waveform generators are all selected, to guarantee to produce fully musical sound in the same way.
Below timer program will be described.Timer program is during former described test waveform synthesis program, an Interrupt Process that predetermined space Tt is performed.Figure 17 is the process flow diagram of the detailed timed sequence of expression.At step Sf
1In, if check mark BUSY is " 1 ", it means that opening the beginning timer counts.If above-mentioned testing result negates that this process jumps to Sf3.Otherwise routine enters step Sf
2If testing result is sure, register TCOUNT increases " 1 " herein.At step Sf
3In carry out other various timer processing, finish the timer routine.Therefore, if mark BUSY is " 1 ", so regularly the phase handles increases this register TCOUNT " 1 ".Only at step Sa9 in the loop of Sa11, mark BUSY switch is to " 1 ", must enable the timer processing circulation in the time thereby the content of register TCOUNT shows calculating or read a waveform institute.By being multiply by Tt, TCOUNT obtains the elapsed time.
In configuration shown in Figure 1, assembly such as coprocessor 17 that all are selected, DSP21 and outside sound source 22 are all installed.Therefore, in above-mentioned configuration, can specify all modes of operation about synthesis mode and allocation scheme.At first preferentially mode of operation is placed the sound source selection mode, a part that surpasses the outside sound source processing power is handled and is distributed to CPU, and the restriction that CPU control and treatment result surpasses the outside sound source device can produce musical sound, and can produce various timbres.Say again, in the given CPU selection mode of override, also can produce various timbres.Since in step Sa21 with sampling frequency f
sPlace on the optimum value forever, so that generation sound can remain on is high-quality.
In the above-described embodiments, will select assembly as shown in Figure 1 all installs.Yet the setting of pc hardware or electronic musical instrument are along with the selected assembly of installing changes.The available action mode of musical sound synthesis program is different along with hardware setting.Below explanation is different from the operation of musical sound synthesis program in other hardware configuration of Fig. 1.
Lack all selected assemblies that comprise coprocessor 17, DSP21 and CSI sound source 22 in hardware setting shown in Figure 21.Certainly, in above-mentioned configuration, the sound source synthesis mode is unavailable, because in step Sa4 (Fig. 8), detecting becomes " being ", has only the CPU synthesis mode to use.Yet if the processing power of CPU10 is not enough height, the real-time waveform data computation is impossible so, because two of coprocessor 17 and DSP21 do not have installation.So, have the situation that waveform storage playback mode can only obtain in the CPU synthesis mode.
Have only altogether in hardware setting shown in Figure 22-the selected assembly of processor 17 conducts.In above-mentioned configuration, do not provide the hardware sound sources synthesis mode, because (Fig. 8) detection becomes " being " in step Sa4.Use the CPU synthesis mode only.Yet all CPU synthesis modes are possible, because with being total to-processor 17, the high-speed real-time arithmetic operation is possible.In above-mentioned the setting, by CPU10 and altogether-processor 17 carries out actual waveforms and calculate (step Sa9), and waveform on probation calculates (step Sa15), because altogether-processor 17 is available.
In hardware setting shown in Figure 23, comprise being total to-processor 17 and the selected device of DSP21 conduct.The purpose that DSP21 is set is that the two-forty that guarantees waveform is calculated.If DSP21, enables synthesis program or after this uses DSP at the 2nd time waiing upon as outside sound source, this sound source synthesis mode is available, because in step Sa4 (Fig. 8), whether detect becomes " or not.The purpose that DSP21 is set is that reduced data calculates, thereby does not produce Wave data by waveform storage reading method, but by various pure compute modes such as FM mode, harmonic wave synthesis mode and physical model mode produce Wave data.Say that again the CPU synthesis mode is available, this depends on allocation scheme.It is possible that Wave data calculates, but waveform storage playback mode is disabled, because detect DMAC19 and RAM20.Might only utilize the FM mode, harmonic wave synthesis mode, and the physics synthesis mode of remodeling are carried out the real time high-speed wave datum and are calculated.In above-mentioned the setting, carry out actual waveform by CPU10 and coprocessor 17 and calculate (step Sa8), and waveform on probation calculates (step Sa15).
In hardware setting shown in Figure 24, include only LSI sound source 22 as selected assembly.In above-mentioned the setting, enabling synthesis program for the 2nd time or after this time, the sound source synthesis mode is available, because whether (Fig. 8) detect and become " or not in step Sa4.Say that again the CPU synthesis mode is available, this is decided by allocation scheme.Yet, have the situation that can not utilize waveform storage playback mode, because lack DMAC19 and RAM20.Further, if the processing power of CPU10 is not high enough, wave datum calculating in real time is impossible, is total to-processor 17 because lack.So, have all disabled situation of all CPU synthesis modes.
The 2nd embodiment below will be described.In general, calculate by wave datum according to FM mode or humorous wave synthesis method, it is very difficult reproducing the actual sound that knocks musical sound such as the rhythm or the drum music.Therefore, if LSI sound source 22 has been installed and, has calculated the music sound wave data, be not enough by LSI sound source 22 reproducing music sound so with this sound source 22 by pure computing method such as FM mode except waveform storage playback mode.Say again,, do not need to calculate wave datum by the computing account form except store playback mode with the waveform of CPU10 if the LSI sound source 22 of mentioned kind has been installed.Further, CPU10 should carry out the work except waveform is synthetic, the result should reduce as much as possible carry out the waveform synthesis program the system load of palpus, especially in the not high situation of the processing power of CPU10, more should be like this.Therefore, in above-mentioned situation, it is simultaneously easily that CPU10 produces the knock wave data that are suitable for LSI sound source 22 with waveform storage playback mode, and LSI sound source 22 produces the wave datum of other timbre.Therefore,, can reduce computational load, and LSI sound source 22 does not have the ability of synthetic any wave datum for CPU10, to this, sound source 22 poor ability.It is high as much as possible that the product mass-energy of reproduction sound keeps.The purpose of the 2nd embodiment is just at this point.The 2nd embodiment supposition installed sound source 22 as shown in Fig. 1 or 24.About the waveform synthesis program, replace using selection hardware (Figure 15 and 16) to synthesize processing with the processing that is illustrated among Figure 18.More particularly, being used in processing shown in Figure 180 has replaced in step Sa34 (Figure 11) to synthesize processing with the hardware of selecting.The processing that replaces below will be described,, omit the explanation of other processing simultaneously for fear of numerous and diverse description.
In the 2nd embodiment, when entering step Sa34, this program proceeds to carries out synthetic the processing, uses selected hardware as shown in figure 18.In step Sg1,, carry out event detection as at step Se1.In step Sg2, carry out the systems inspection that distributes for sound.More particularly, determine to handle synthetic device for each sound (timbre) of CPU and LSI sound source.Judgement for above-mentioned distribution below will be described.In general, sound source has the available timbre of unique configuration, thereby can select a single timbre by unique timbre coding.Therefore, might give and realize that earlier comprises a timbre coding catalogue listing that knocks musical sound, so that in table, find in the situation for the detected timbre coding of dependent event,, and discern between other musical sound by 22 processing of LSI sound source by the musical sound of CPU10 processing.Yet, in the present embodiment, distribute and judge that being not limited to timbre encodes.Timbre treating apparatus under the manual mode might be set, and some timbre is handled by CPU, and other timbre is handled by sound source.Also can distribute each musical sound, this depends on and can be used for synthetic simultaneously road number.Say again, under forced mode, can force each musical sound of distribution by its working procedure of tool.
Musical sound for the LSI sound source is distributed as in step Se4 (Figure 15), produces empty sound channel by the sound allocation process in step Sg3.In step Sg4, synthesized the waveform that is relevant to the connection incident by empty sound channel.For aforesaid operations, the method for synthesizing is not limited to the FM mode, harmonic wave synthesis mode, or physical model mode, but might use, for example, the PCM mode is by reading wave datum in the wave memorizer 25, and this depends on the feature of the sound source 22 of being installed.On the other hand, in step Sg5,,,, finished CPU and synthesized assigning process is relevant to the detection incident with generation wave datum in order to produce an assignment commands for the timbre that is assigned to CPU as in step Se7 (Figure 15).If assignment commands can be used, testing result in step S6 " is " to produce a waveform that is relevant to assignment commands and carry out synthetic calculating in step 7.As previously mentioned, for the load that reduces CPU, to finish waveform by waveform storage playback mode synthetic.On the other hand, when assignment commands is unavailable, testing result in step S6 " or not, this process is returned.
In above-mentioned the 2nd embodiment, musical sound can be assigned to CPU and sound source selectively according to their timbre, thereby the load of best distribution handle to(for) CPU and sound source might obtain, and can produce the quality that various timbres keep duplicating sound simultaneously.Put it briefly, entering apparatus provides performance information, and it comprises timbre the information timbre and the selected effectively timing that produces musical sound of timing information of selected musical sound effectively.In selected the 1st waveform generator of corresponding timbre information and the 2nd waveform generator one as a result output device at the selected musical sound that regularly produces with selected timbre.
In the 1st and the 2nd embodiment, in the sound channel that CPU provides or in another sound channel that sound source provides, a musical sound has been carried out synthetic processing.Yet,, can carry out synthetic the processing to a musical sound by CPU and sound source.In above-mentioned arrangement, in CPU, might use the harmonic wave synthesis mode, and in sound source, might use a kind of mode except harmonic wave is synthetic, for example, FM mode, thereby the musical sound that can change are because by the synthetic same musical sound of various computing mode.This point just of the purpose aiming of the 3rd embodiment.In the 3rd embodiment, be shown in as Fig. 1 and 24 the LSI sound source has been installed in the system.About the waveform synthesis program, replace using the synthetic processing (Figure 15 and 16) of selected hardware with the processing shown in Figure 19.More particularly, with the synthetic processing that is illustrated in the processing replacement hardware that use is selected in step Sa34 among Figure 19.The processing that replaces below will be described, and omit the explanation of other processing so that avoid numerous and diverse description.
In the above-described embodiments, when entering step Sa34, this synthesis program proceeds to, and uses selected hardware to carry out synthetic the processing as shown in figure 19.In step Sh1, as in step Se1 and Sg1, carrying out event detection.In step Sh2, distribute executive system to detect for sound.More particularly, determine to handle synthesizer for each sound (musical sound) outside CPU and the LSI sound source.As in the 2nd embodiment, can be the timbre coding for the judgement of above-mentioned distribution, for the number that synthesize available sound channel simultaneously, perhaps use the setting of manual or forced mode structure.As in step Se4 (Figure 15),, produced empty sound channel at step Sh3 by the sound allocation process for the musical sound that is assigned to the LSI sound source.In step Sh4, synthesized the waveform that is relevant to note connection incident by empty sound channel.Synthetic method for aforesaid operations is not limited to FM mode or humorous wave synthesis method, but might use, and for example, physical model mode and PCM mode are read wave datum from wave memorizer 25, and this depends on the feature of the sound source 22 of being installed.On the other hand, for the musical sound that is assigned to CPU, in step 5,,, carried out the synthetic assigning process of CPU in order to produce an assignment commands that is relevant to detection note-connection incident as in step Se7 (Figure 15).In assignment commands, comprise information about computing method.In step Sh3 and step Sh4, handled the sound that is assigned to CPU and sound source by the LSI sound source, in step Sh5, handled same sound simultaneously by CPU.These are handled simultaneously and carry out.If assignment commands is available, testing result in step Sh6 " is ", and the synthetic calculating of execution in step Sh7 is relevant to the waveform of assignment commands with generation.Different with the 2nd embodiment, comprise that by variety of way FM, harmonic wave synthesize, physical model or the like has carried out synthetic calculating.On the other hand, if assignment commands is unavailable, testing result in step Sh6 " or not, this process is returned.
In the 3rd embodiment, a sound (musical sound) is assigned to CPU and LSI sound source, thereby can duplicates different wave datum for practically identical musical sound.Because above-mentioned feature, the 3rd embodiment also can make the musical sound of system change.Put it briefly, the 1st waveform generator and the 2nd waveform generator are all selected, controller is not only operated the 1st waveform generator but also operate the 2nd waveform generator as a result, produces waveform for single timbre in the same way with parallel mode.
Below the 4th embodiment will be described.Although the sound allocation scheme is introduced in the foregoing description, yet simpler realization is possible.Can be assigned to the incident of certain sound source device, during event detection that the device in being installed in system provides, be assigned on the related device simply.In above-mentioned the 4th embodiment, provide extraordinary realization.The 4th embodiment shows installation sound source 22 shown in Fig. 1 or 24, as in the 2nd and the 3rd embodiment.About the waveform synthesis program, replace using the synthetic processing of selecting hardware with the processing that is illustrated among Figure 20.More particularly, use the synthetic processing of selecting hardware with the processing replacement in step Sa34 (Figure 11) that is illustrated among Figure 20.Below will illustrate to replace handling, omit the explanation of other processing simultaneously, with the description of avoiding.
In the above-described embodiments, when proceeding to step Sa34, as shown in figure 20, this synthesis program proceeds to and uses selected hardware, carries out synthetic the processing.At first, by there not being illustrated processing, carry out the detection of incident.In step Si1, carry out sound and be distributed in empty sound channel of generation in the LSI sound source.In step Si2, use empty sound channel in fact to synthesize the waveform that is relevant to the detection incident.Synthetic method for aforesaid operations is not limited to FM mode or harmonic wave synthesis mode, and might use, for example, physical model mode and PCM mode, by reading wave datum in the wave memorizer 25, this depends on the feature that sound source 22 is installed.After synthetic, process is returned.So, in the 4th embodiment, can be assigned to the incident of certain sound source device, when the event detection that is installed in above-mentioned device in the system to be provided, be assigned to simply in the above-mentioned device.
Figure 25 represents another embodiment of musical sound generating means of the present invention.This embodiment have substantially be illustrated in Fig. 1 in the identical structure of the 1st embodiment.The device identical with the 1st embodiment represented with same label, so that present embodiment is understood easily.Storage element 15 can store the various data that comprise Wave data and comprise system control program or base program, the various programs of waveform synthesis program and other application program.Usually, ROM11 gives these programs that store earlier.Yet, if do not store, so in storage element 15, any program can be packed into hard disk or other place.The program that to pack into is sent to RAM13, start CPU10 operates musical sound generating means of the present invention system.Mode like this, new or remodeling program can be contained in the system at an easy rate.For this purpose, a kind of computer-readable recording medium machine for example CD-ROM (mini disk ROM (read-only memory)) 51 be used for installation procedure.Incorporate CD-ROM51 into CD-ROM drive 52 read and will pack into downwards in the storage element 15 from the program of CD-ROM51 by bus 12.Machine-readable medium can be made up of disk or CD except CD-ROM51.
Communication interface 53 is passed through for example LAN (local area net) of communication network 55, and public telephone network and INTERNET are connected to external service person's computing machine 54.If storage element 15 do not keep need data or program, communication interface 53 starts to receive data or the program from waiter's computing machine 54 so.CPU10 is sent to a request on waiter's computing machine 54 by interface 53 and network 55.Responding this request waiter computing machine 54 is sent to the data or the program of asking on this device.The data or the program that transmit are stored in the hard disk of this storage element 15, finish downwards thus and pack into.
By the data that need and the personal computer of program are housed, can realize musical sound generating means of the present invention.In this kind situation, for example CD-ROM51 or floppy disk offer the user with data and program with machine-readable medium.This machine-readable medium comprises instruction and is used to make personal computer to carry out in conjunction with the former described musical sound method for generation of the present invention of embodiment.In other words, personal computer can receive data and program by communication network 55.
In the above-described embodiments, selected as an example device comprises coprocessor 17, DSP21, sound source 22, however selected device is not limited to these devices.The present invention can be used for application system, for example, personal computer, electronic musical instrument, game machine or the like wherein produce musical sound.
As previously mentioned, can obtain various useful effects according to the present invention. Might produce Various musical sounds and the processing load that reduce to produce musical sound institute palpus. Knot for this device Structure, under best sampling frequency, can produce musical sound. Can significantly simplify for generation of sound The structure of music wave datum. Even in low performance hardware, also can keep producing music The quality of sound. Even the performance information volume becomes very big, also can produce sound according to performance information Music.
Claims (10)
1. one kind has the musical instrument that produces the central processing unit of musical sound according to playing information, it is characterized in that it comprises:
A playing information receiving trap;
A waveform generator is made of a software program, and described software program can be carried out with variable mode of operation according to the computing power of self by described central processing unit, thereby produces digital waveform;
A mode of operation modifier is for the variable mode of operation that changes waveform generator according to the computing power of the existing control waveform generator course of work;
Central processing unit is pressed the course of work of the variable operation mode control waveform generator that changes, thereby produces digital waveform according to the playing information of being received; With
A note generating device is for producing musical sound according to the digital waveform that produces.
2. musical instrument as claimed in claim 1, it is characterized in that, waveform generator can be worked under the variable variable operation mode with the generation digital waveform of operating speed by the sample value of calculating digital waveform successively, and handle to such an extent that make its test manufacture give birth to Typical Digital waveform to measure computing power aspect the operating speed of central processing unit when carrying out described test manufacture and give birth to simultaneously temporarily, wherein said modifier has a variable operation mode to determine device, for the variable operation mode of determining aspect the sampling frequency suitable with the operating speed of being measured, and the wherein operating process of central processing unit working control waveform generator can be complied with it and is calculated the sample value of digital waveform under specific sampling frequency.
3. musical instrument as claimed in claim 1, it is characterized in that, whether it also has a computing power pick-up unit, for assisting the central processing unit software program for execution to detect the computing power of the existing control waveform generator course of work by detecting another processor.
4. musical instrument as claimed in claim 3 is characterized in that, described another processor is made up of the coprocessor of central processing unit.
5. musical instrument as claimed in claim 1, it is characterized in that, it also has a computing power pick-up unit, supplies by before making waveform generator work in the processor software program for execution, and the computing power of temporarily measuring central processing unit detects the computing power of the control waveform generator course of work.
6. musical instrument as claimed in claim 1, it is characterized in that, described modifier has a device that changes variable operation mode, determines that the algorithm that produces the digital waveform method becomes than simpler second algorithm of first algorithm thereby make when the computing power of central processing unit descends.
7. musical instrument as claimed in claim 1, it is characterized in that, described modifier has one to change the device of variable operation mode according to central processing unit in the computing power aspect the variable sampling frequency, and waveform generator promptly changes ground generation digital waveform sample with described variable sampling frequency.
8. musical instrument as claimed in claim 1 is characterized in that, described modifier has a device that changes variable operation mode, thereby changes the central processing unit generation cover calculation procedure that digital waveform carried out according to the computing power of central processing unit.
9. one kind produces the method for musical sound according to playing information by central processing unit, it is characterized in that it comprises the following steps:
Receive playing information;
Be equipped with a kind of waveform generator of being made up of a software program, described software program can be carried out under variable operation mode according to its computing power by central processing unit, to produce digital waveform;
Change the variable operation mode of waveform generator according to the computing power of control waveform generator operating process;
The operating process of control waveform generator is to produce digital waveform according to the playing information of being received under the variable operation mode after the change; With
Produce musical sound according to the digital waveform that produces.
10. a kind of machine-readable medium that use in the musical instrument, described musical instrument has a central processing unit, produce musical sound for summarizing playing information, it is executable in order to impel musical instrument to carry out some instructions of a kind of method that comprises the following steps that described medium contain central processing unit;
Receive playing information;
Be equipped with a kind of waveform generator of being made up of a software program, described software program can be carried out under variable operation mode according to its computing power by central processing unit, to produce digital waveform;
Change the variable operation mode of waveform generator according to the computing power of control waveform generator operating process;
By the process of the operation of the variable operation mode control waveform generator after changing to produce digital waveform according to the playing information of being received; With
Produce musical sound according to the digital waveform that produces.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB991089685A CN1192350C (en) | 1995-06-06 | 1999-06-30 | Computerized music system having software and hardware sound sources |
Applications Claiming Priority (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP139526/1995 | 1995-06-06 | ||
JP13952695 | 1995-06-06 | ||
JP253493/1995 | 1995-09-29 | ||
JP7253493A JP2998612B2 (en) | 1995-06-06 | 1995-09-29 | Music generator |
CNB991089685A CN1192350C (en) | 1995-06-06 | 1999-06-30 | Computerized music system having software and hardware sound sources |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB961104171A Division CN1153187C (en) | 1995-06-06 | 1996-06-06 | Computerized music system having software and hardware sound sources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1241767A true CN1241767A (en) | 2000-01-19 |
CN1192350C CN1192350C (en) | 2005-03-09 |
Family
ID=34636789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB991089685A Expired - Fee Related CN1192350C (en) | 1995-06-06 | 1999-06-30 | Computerized music system having software and hardware sound sources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1192350C (en) |
-
1999
- 1999-06-30 CN CNB991089685A patent/CN1192350C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1192350C (en) | 2005-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1153187C (en) | Computerized music system having software and hardware sound sources | |
CN1129110C (en) | Tone generating method and device | |
CN108630178B (en) | Musical tone generating apparatus, musical tone generating method, recording medium, and electronic musical instrument | |
CN1460989A (en) | Automatic musical instrument playing device and its processing program | |
CN1192350C (en) | Computerized music system having software and hardware sound sources | |
JP4513625B2 (en) | Musical sound generator and musical sound generation processing program | |
CN1133465A (en) | Electronic music instrument with data converting | |
US6919502B1 (en) | Musical tone generation apparatus installing extension board for expansion of tone colors and effects | |
US5864082A (en) | Tone synthesizing apparatus and method based on ensemble of arithmetic processor and dedicated tone generator device | |
JP4443658B2 (en) | Musical sound generator, electronic musical instrument, and recording medium | |
JP3104697B2 (en) | Music sound generating apparatus and music sound generating method | |
JP3169003B2 (en) | Music generator | |
JP2001034271A (en) | Musical sound generator | |
JP3246405B2 (en) | Musical sound generating method, musical sound generating device, and recording medium recording musical sound generating program | |
JPH11202866A (en) | Method and device for musical sound generation | |
JP2687810B2 (en) | Electronic musical instrument | |
JP2004279750A (en) | Device and program for musical sound generation | |
JP4492680B2 (en) | Music generator | |
JP2008097022A (en) | Musical sound generator | |
JPH09297579A (en) | Musical sound synthesizer | |
CN1763838A (en) | Tone generating method and device | |
JP2001282243A (en) | Electronic musical tone generator, electronic musical tone generating method and recording medium | |
JPH09311680A (en) | Effect device | |
JP2004361482A (en) | Waveform modulator and waveform modulation program | |
JP2008052305A (en) | Musical sound generator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20050309 |