Waveform data processing system and method 2009-10-12 00:00:00THE DRAWINGS
FIG. 1 is a block diagram showing the overall circuit of an electronic musical instrument;
FIG. 2 is a view showing the content of musical tone waveform data MW:
FIG. 3 is a view showing a panel switch group 3 and a LCD 23;
FIG. 4 is a view showing a working memory 22 in a RAM 6;
FIG. 5 is a flowchart showing a main routine:
FIG. 6 is a flowchart showing a routine (step 09) of opening a disk holder 38:
FIG. 7 is a flowchart showing a routine (step 10) of closing the disk holder 38:
FIG. 8 is a flowchart showing an information loading routine (step 36):
FIG. 9 is a flowchart showing an automatic performance routine (step 07):
FIG. 10 is a flowchart showing an automatic performance stop routine (step 08);
FIG. 11 is a flowchart showing an song selection routine (step 06):
FIG. 12 is a flowchart showing a routine (step 11) of reproducing performance information MP;
FIG. 13 is a flowchart showing a routine (step 12) of transmitting and receiving performance information MP;
FIG. 14 is a flowchart showing an interrupt routine:
FIG. 15 is a flowchart showing a routine (step 04) of loading musical tone waveform data MW;
FIG. 16 is a flowchart showing the routine (step 04) of loading musical tone waveform data MW; and
FIG. 17 is a flowchart showing a tone color selection routine (step 05).
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
Summary of the Embodiment
In a CD-ROM 8, which can be mounted and dismounted, 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 inf...