Waveform data processing system and method 2009-10-12 00:00:00dismounted, various musical tone waveform data MW are stored. These data MW can be loaded in a musical tone waveform stock memory 12 and also loaded in a musical tone waveform memory 16 in a tone generator 15. The loaded musical tone waveform data MW are selected according to tone number data TN. The tone number data TN is input from a panel switch group 3, or is stored within performance information MP, or is supplied via a MIDI interface 11.
When a song selection key 33 is operated, reproduced song number data RSN is changed (steps 81 to 84), and then a check is made as to whether musical tone waveform data MW corresponding to the tone number data TN in the performance information MP concerning the song selection is stored in the musical tone waveform memory 16 (steps 85 to 87). If the data is not stored, it is loaded from the musical tone waveform stock memory 12 into the musical tone waveform memory 16 (steps 88 to 90).
1. Overall Circuit
FIG. 1 shows the overall circuit of an electronic musical instrument. A keyboard 1 has keys which can be scanned by a keyboard scanner 2 for detecting data indicative of key-"on" and key-"off" events. A CPU 5 writes the detected data into a RAM 6 and compares the data with "on"/"off" state data for each key having been stored in the RAM 6, thus judging an "on" or "off" event concerning each key. The keyboard 1 may be replaced with an electronic string instrument, an electronic reed instrument, an electronic pad instrument, a computer keyboard, etc.
A panel switch group 3 has keys which are scanned by a panel scanner 4. The scanner detects "on"/"off" data for each switch. The CPU 5 writes the detected data in the RAM 6 and compares the data with "on"/"off" state data for each key having been stored in the RAM 6, thus judging an "on" or "off" event concerning each switch.
In the RAM 6 are stored, in addition to the above various data, data to be processed by the CPU 5 and also data necessary for the processing. The RAM 6 has working memory 22 to be described later. In a
ROM 7 are stored programs, which correspond to flowcharts to be described later, and which are executed by the CPU 5, and also programs corresponding to other processes.
In the CD-ROM 8 are stored various musical tone waveform data MW, which are waveform sampling data of musical instruments such as a piano, violin, flute, cymbal, etc. The individual musical tone waveform data are selected according to tone number data TN. In the CD-ROM 8 are also stored performance information MP on a plurality of songs. The performance information MP is data for automatic performance such as melody, chord, rhythm, etc..
In the CD-ROM 8 are further stored various kinds of control information CT. The control information CT includes data indicative of the start of reading of the musical tone waveform data MW noted above, loop top and loop end address data, envelope waveform data, touch data, key scaling data, etc.. The tone color of each tone is determined by the control information CT and tone number data TN. Data of the musical tone waveforms includes the control information CT in addition to the musical tone waveform data MW.
The performance information MP comprises a plurality of sequential event data. One piece of event data EV comprises status data SS, the above parameter data PR and step time data ST. The status data SS comprises key-"on"/"Off" data, key number data KN, chordtype data and chord root data, or touch data.
The parameter data PR is indicative of the function level of the status data SS; for instance, it is data for controlling the touch, tone color, performance part, etc. The step time data ST represents time from bar mark data BM to event execution. The bar mark data BM represents a bar. End mark data ED represents the end of a song. The tone number data TN and control information CT or data designating the control information CT may be stored at the head of each piece of performance information MP or at a musical factor change point therein.
Volume distributer VD is stored in a head logic sector in the CD-ROM 8. The volume distributer VD comprises volume name data VN and directory DR. The volume name data VN represents the kind of memory such as the storage type of the CD-ROM 8.
The directory data DR comprises a file name, file size and head sector number of each piece of performance information MP, control information CT and each piece of musical tone waveform data MW and comprises all song number data ASN of performance information MP. The file name represents the song name with respect to the performance information MP, the tone number data TN with respect to the musical tone waveform data MW and the kind with respect to the control information CT.
The CD-ROM 8 is driven by the CD driver 9, and each piece of information that is read out as a result is supplied to the bus line through the CD interface 10. Performance information MP is further supplied to the bus line through the MIDI interface 11. This performance information MP is the same as the performance information MP of the CD-ROM 8. The CD interface 10 is of non-synchronous serial type, but it may be of synchronous parallel type as well.
The musical tone waveform data MW read out from the CD-ROM 8 is all loaded in the musical tone waveform stock memory 12 by the CPU 5. Performance information MP read out from the CD-ROM 8 and sent via a MIDI interface 11 is loaded in the performance information memory 13 by the CPU 5. Further, control information CT read out from the CD-ROM 8 is loaded in the control memory 14 by the CPU 5. The MIDI interface 11 may of a type other than...