1. Field of the Invention
The present invention relates to a waveform data generating apparatus for generating waveform data indicative of waveforms of tones which are to be stored in a storage device provided in a musical performance apparatus such as an electronic organ and an electronic piano, and a computer program applied to the waveform data generating apparatus.
2. Description of the Related Art
Conventionally, as described in Japanese Unexamined Patent Publication No. 2007-104598, for example, there is a known information transmitting apparatus which emits control tones for controlling an external apparatus. The information transmitting apparatus has a modulator which generates control tones by modulating carrier waves of audible frequencies by use of control information.
However, the modulator of the conventional information transmitting apparatus is expensive, because the modulator is formed of a plurality of information processors in order to perform complicated computations. Therefore, there is a problem that a musical performance apparatus such as an electronic organ and an electronic piano in which the modulator is employed is expensive. Therefore, it can be considered that it is preferable to previously store waveform data indicative of waveforms of control tones in a storage device so that the waveform data can be read out at the timing at which control information is transmitted to reproduce a control tone. However, there is a problem that in a case where there are many kinds of control information, the storage device has to have a large storage capacity in order to store sets of waveform data indicative of control tones corresponding to the pieces of control information.
The present invention was accomplished to solve the above-described problem, and an object thereof is to provide a waveform data generating apparatus for generating waveform data sets indicative of waveforms representative of parts commonly used in control tones corresponding to different kinds of control information. As for descriptions for respective constituents of the present invention described below, numbers corresponding to components of a later-described embodiment are given in parenthesis for easy understanding. However, the respective constituents of the present invention are not limited to the corresponding components indicated by the numbers of the embodiment.
In order to achieve the above-described object, it is a feature of the present invention to provide a waveform data generating apparatus including waveform data generating portion (WP1 to WP6) inputting a digital signal formed of a plurality of bits which form a control signal (SD) for controlling an external apparatus, and generating waveform data indicative of a waveform of a control tone which corresponds to the input digital signal, is formed of tones corresponding to respective values of the bits of the input digital signal, and is formed of frequency components included in a certain high frequency band; basic waveform data extracting portion (WP7) extracting a part or a whole of a intermediate portion which is situated at an intermediate portion of the waveform data, and corresponds to the intermediate portion of the digital signal whose bit pattern coincides with a certain bit pattern as basic waveform data (f1 to f4,g1 to g8,h1 to h8); and storing portion (13c,13d,14) storing the extracted basic waveform data. In this case, the control tone is a modulated tone obtained by modulating a carrier wave by use of the digital signal.
In this case, furthermore, the external apparatus may have a display unit (22) to display a score, the digital signal has a score page designating signal which designate the page position of the score to be displayed on the display unit.
In this case, furthermore, the score page designating signal may be generated by spreading the data representative of the page position of the score to be displayed on the display unit and modulating the spread data by using differential phase shift modulation scheme.
By generating the basic waveform data on the waveform data generating apparatus configured as above, a musical performance apparatus can reproduce tones corresponding to a control signal which is to be transmitted to an external apparatus by appropriately combining one or more basic waveform data sets in accordance with a bit pattern of the control signal. Therefore, compared to a case where waveform data sets each indicative of an entire control tone are stored in a musical performance apparatus, this configuration can save storage capacity of a storage device. Furthermore, because tones corresponding to the control signal are formed of frequency components included in the certain high frequency band, a performer rarely recognizes generated tones corresponding to the control signal. Therefore, the performer's musical performance will not be hindered.
The other feature of the present invention is that the basic waveform data extracting portion extracts the intermediate portion which is situated at a intermediate portion of the waveform data and includes a portion equivalent to a boundary of two neighboring bits of the certain bit pattern as the basic waveform data. The other feature prevents interruption of tones that can occur at boundaries of bits which form the control signal on the musical performance apparatus which generates tones by use of the basic waveform data. Furthermore, depending on a coding scheme or a modulation scheme employed in order to generate waveform data, a tone equivalent to the top of a bit of the control signal can be affected by a tone equivalent to the end of an adjacent bit (e.g., due to group delay of filter). In a case where tones are combined simply in accordance with bit values of the control signal without consideration given to the above-described influence, therefore, noises ranging over a wide frequency band can generate at boundaries of tones corresponding to the bits. By the configuration described above, however, the noises can be avoided. Resultantly, the other feature of the present invention enhances accuracy of decoding of control signal by an external apparatus.
The present invention can be embodied not only as the waveform data generating apparatus but also as a computer program applied to the apparatus.
A configuration of a waveform data generating apparatus according to an embodiment of the present invention will be explained with reference to
The input device 11 has a keyboard, a mouse and the like, so that operating information indicative of user's operation on the input device 11 will be supplied to the computer portion 13 via a bus BS. The display unit 12 is configured by a liquid crystal display (LCD), and displays letters, graphics (e.g., waveform of control tone) and the like on a screen. The display of the display unit 12 is controlled by the computer portion 13 via the bus BS.
The computer portion 13 is formed of the CPU 13a, a timer 13b, a ROM 13c and a RAM 13d which are connected to the bus BS. The CPU 13a executes a waveform data generating program which is not shown by use of the timer 13b, the ROM 13c and the RAM 13d. In accordance with operating information, as a result, the CPU 13a supplies musical score data to the waveform data generating circuit WP which will be described in detail later to allow the waveform data generating circuit WP to generate basic waveform data and writes the generated basic waveform data in the storage device 14.
The storage device 14 includes large-capacity nonvolatile storage media such as HDD, FDD, CD-ROM, MO and DVD, and drive units for the storage media to enable storage and reading of various kinds of data and programs.
Next, the waveform data generating circuit WP will be explained in detail. In this explanation, musical score data SD is formed of a header portion, a main body portion and a footer portion as indicated in
As indicated in
The musical score data SD supplied from the CPU 13a is orderly input one bit by one bit into the spreading process portion WP1, starting with the least significant bit LSB toward the most significant bit MSB. Hereafter, each bit of the musical score data SD will be referred to as a symbol. To the spreading process portion WP1, furthermore, a spreading code PN will be also input. The spreading code PN is a pseudorandom number code string having a certain periodicity. In this embodiment, the spreading code PN is a code of 11 chips as indicated in
The symbols input to the spreading process portion WP1 are spread by use of the spreading code PN. As indicated in
The symbols spread by the spreading process portion WP1 are input to a differential phase modulation portion WP2 one chip by one chip, starting with the top chip toward the last chip. As indicated in
The differential code output from the XOR calculation portion WP2b is input to the low-pass filter WP3. The low-pass filter WP3 is a filter for restricting frequency band of control tone output from the later-described pass band modulation portion WP5. The differential code output from the low-pass filter WP3 is input to the Hilbert transform portion WP4. The Hilbert transform portion WP4 transforms the differential code by shifting the phase of the differential code. The pass band modulation portion WP5 modulates a carrier output from the carrier generation portion WP6 by use of a signal output from the Hilbert transform portion WP4, and shifts the frequency band of the differential code to a high frequency band included in an audio band, also extracting the upper sideband and outputting a control tone formed of frequency components included in the upper sideband. By reducing the frequency band of the differential code by half as described above, the embodiment reduces influence caused by noise to enhance accuracy of decoding of the musical score data SD by the musical score display apparatus. Because the frequency of the carrier is 17.64 kHz, the control tone is hard to be heard in general. Then, the waveform data extraction portion WP7 samples the control tone, and stores sample values of sampling periods as waveform data of the control tone in a buffer memory. The sampling frequency is 44.1 kHz.
Although the differential codes P1, P0, N1, and N0 are sequentially output from the differential phase modulation portion WP2, the manner in which the type of differential codes transitions is limited to the 8 different transitions (see
As indicated in
The musical performance apparatus can form waveform data indicative of the whole of a desired control tone by appropriately combining the basic waveform data sets g1 to g8. For selecting basic waveform data corresponding to one symbol which forms musical score data SD, however, consideration must be given to the kind of a differential code corresponding to a symbol situated immediately in front of the symbol (on the least significant bit LSB side). More specifically, a set of basic waveform data is selected to agree with the transition of differential codes ranging from the least significant bit LSB to the most significant bit MSB of the musical score data SD. Such extraction of the basic waveform data sets g1 to g8 can save storage capacity of the musical performance apparatus, compared to a case where waveform data sets each indicative of an entire control tone are stored for respective musical score data sets SD having different values in a storage device of the musical performance apparatus.
In the case of the above-described configuration, furthermore, parts equivalent to boundaries of the symbols of the control tones can be affected by the processing by the low-pass filter WP3 and the Hilbert transform portion WP4. Therefore, this embodiment is designed such that the basic waveform data sets g1 to g8 are extracted with the boundaries of the symbols (differential codes) being defined as midpoints. As a result, when the musical performance apparatus generates tones corresponding to control signals by use of the basic waveform data, this embodiment prevents the parts equivalent to the boundaries of the symbols from noise ranging across a wide frequency band, eliminating the possibility of interfered musical performance. Therefore, this embodiment is able to increase accuracy of decoding control signals by the musical score display apparatus.
In carrying out the invention, the invention is not limited to the above-described embodiment, but can be variously modified without departing from the object of the present invention.
The modulation scheme (control tone generating scheme) performed by the control waveform data generating apparatus WP is not limited to that I of the above-described embodiment and its modifications, but can be any schemes.
In the above-described embodiment and its modifications, the differential phase modulation portion WP2 performs the differential binary phase shift keying (DBPSK) which is the scheme to output the differential codes in accordance with the sequence of the values of the chips output from the spreading process portion WP1. The embodiment can be modified such that the differential phase modulation portion WP2 selects neighboring chips two by two which form the signal output from the spreading process portion WP1 stating with top chip toward the last chip, and determine the value of the next chip in accordance with the values of the selected chips. In other words, the differential phase modulation portion WP2 may perform the differential quadrature phase shift keying (DQPSK).
Furthermore, the spreading process can be canceled. In this case, a symbol which will be transmitted may be directly converted into differential codes without being spread.
Furthermore, the conversion into differential codes can be canceled. In this case, the carrier wave may be modulated in accordance with the values of the chips which are output from the spreading process portion WP1.
Furthermore, the spreading process and the conversion into differential codes can be canceled. In this case, the waveform data generating apparatus WP may be vary amplitude or phase of the carrier wave in accordance with symbol value. In case that the conversion into differential code is canceled, synchronization signals representative of the timing for detecting the control tone may be separately transmitted from the musical performance apparatus 1 to the musical score display apparatus 20.
Furthermore, the Hilbert transform potion WP4 of the waveform data generating apparatus WP transforms the differential codes so that the upper sideband of the frequency band of the differential code can be extracted. By reducing the frequency band of the differential code as described above, the embodiment reduces influence caused by noise. In case the control tone has a sufficiently wide bandwidth or noise has very low amplitude, the Hilbert transform processing can be canceled and the control tone may be formed of frequency components included in the both sideband.
Furthermore, the modulation scheme performed by the pass band modulation portion WP5 is not limited to that of the above-described embodiment and its modifications, but can be any schemes. For instance, the amplitude shift keying or the frequency shift keying can be employed. In this case, the pass band modulation portion WP5 may modulate the carrier wave in accordance with the value of each bit which forms the signal which is input into the pass band modulation portion WP5, or may modulate carrier wave in accordance with the values of a plurality of bits which form the signal. For instance, the On/Off modulation scheme which is a sort of the amplitude shift keying is employed. In this case, the pass band modulation portion WP5 switches on/off the carrier wave in accordance with the value of signal which is input into the pass band modulation portion WP5 and may output a signal like Morse signal.
In case the modulation scheme which is different from that of above-described embodiment or its modifications is employed, the score display apparatus 20 may perform the decode processing by the scheme corresponding to the modulation scheme which is employed in the musical performance apparatus 10.
Furthermore, for instance, the waveform data extraction portion WP7 may extract basic waveform data sets to correspond to differential code types. More specifically, the waveform data extraction portion WP7 may extract the basic waveform data sets so that each basic waveform data will not straddle a boundary between differential codes. As indicated in
The basic waveform data sets f1 to f4 extracted as described above are to be stored in the storage device of the musical performance apparatus. Then, the musical performance apparatus is to convert symbols of musical score data SD which will be transmitted into differential codes, to select basic waveform data sets to correspond to the sequence of the differential codes, and to reproduce the selected basic waveform data sets. This configuration can also save storage capacity of the musical performance apparatus, compared to the case where waveform data sets each indicative of an entire control tone are stored for respective musical score data sets SD having different values in the storage device of the musical performance apparatus.
Similarly to the above-described embodiment and its modifications, however, in a case which employs a modulation scheme by which a tone corresponding to a symbol (or a differential code) affects the top of a tone corresponding to the next symbol, sets of basic waveform data are extracted as different types of basic waveform data depending on values of neighboring symbols situated on the most significant bit MSB side and the least significant bit LSB side of a target symbol for which corresponding waveform data will be extracted.
As indicated in
The extraction of basic waveform data h5 to h8 corresponding to a symbol having a value “1” is done similarly to the case of the symbol having the value “0”. More specifically, if the values of adjacent symbols are “0” and “0”, a waveform corresponding to the target symbol is extracted as basic waveform data h5. If the values of adjacent symbols are “0” and “1”, the waveform corresponding to the target symbol is extracted as basic waveform data h6. If the values of adjacent symbols are “1” and “0”, the waveform corresponding to the target symbol is extracted as basic waveform data h7. If the values of adjacent symbols are “1” and “1”, the waveform corresponding to the target symbol is extracted as basic waveform data h8.
The basic waveform data sets h1 to h8 extracted as described above are to be stored in the storage device of the musical performance apparatus, while the musical performance apparatus is to select and reproduce sets of basic waveform data so that the selected sets of basic waveform data will correspond to the bit pattern of musical score data SD which will be transmitted. For selecting basic waveform data corresponding to one symbol which forms musical score data SD, however, consideration must be given to values of symbols adjacent to the symbol. For selecting basic waveform data corresponding to a symbol having a value “0”, for example, a set of basic waveform data is to be selected from among the basic waveform data sets h1 to h4 in accordance with the values of symbols adjacent to the symbol. Furthermore, for selecting basic waveform data corresponding to a symbol having a value “1”, a set of basic waveform data is to be selected from among the basic waveform data sets h5 to h8 in accordance with the values of symbols adjacent to the symbol. In a case where a set of basic waveform data corresponding to the least significant symbol is to be selected, consideration is given only to a value of a neighboring symbol situated on the most significant bit MSB side. In a case where a set of basic waveform data corresponding to the most significant symbol is to be selected, consideration is given only to a value of a neighboring symbol situated on the least significant bit LSB side.
In a case where a value of the 0th bit (the least significant bit LSB) of the musical score data SD is “0”, the basic waveform data h1 or h3 will be selected in accordance with a value of the 1st bit. In a case where a value of the 0th bit of the musical score data SD is “1”, the basic waveform data h5 or h7 will be selected in accordance with a value of the 1st bit. In a case where a value of the 31st bit (the most significant bit MSB) of the musical score data SD is “0”, the basic waveform data h1 or h2 will be selected in accordance with a value of the 30th bit. In a case where a value of the 31st bit of the musical score data SD is “1”, the basic waveform data h5 or h6 will be selected in accordance with a value of the 30th bit.
By the above-described configuration as well, the musical performance apparatus can form waveform data indicative of the whole of a desired control tone by appropriately combining sets of basic waveform data h1 to h8. Therefore, this configuration can also save storage capacity of the musical performance apparatus, compared to the case where waveform data sets each indicative of an entire control tone are stored for respective musical score data sets SD having different values in the storage device of the musical performance apparatus.
Without using the waveform data generating circuit WP, furthermore, the waveform data may be generated by the computer portion 13. More specifically, processing such as conversion of symbols into differential codes, and generation and modulation of carrier waves may be done by numerical calculations by software.
The format of the musical score data SD is not limited to that of the above-described embodiment and its modifications, but can be any format. Furthermore, waveform data which will be generated is not limited to waveform data corresponding to musical score data SD but can be any waveform data as long as the waveform data corresponds to control data for controlling an external apparatus.
Number | Date | Country | Kind |
---|---|---|---|
2012-000910 | Jan 2012 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7897864 | Akiyama | Mar 2011 | B2 |
8198524 | Bastian et al. | Jun 2012 | B2 |
20050211068 | Zar | Sep 2005 | A1 |
20080243491 | Matsuoka | Oct 2008 | A1 |
20080250913 | Gerrits et al. | Oct 2008 | A1 |
20080260183 | Hertzberg et al. | Oct 2008 | A1 |
20110023691 | Iwase et al. | Feb 2011 | A1 |
20110150240 | Akiyama et al. | Jun 2011 | A1 |
20130174715 | Akiyama | Jul 2013 | A1 |
20130174716 | Akiyama | Jul 2013 | A1 |
Number | Date | Country |
---|---|---|
2312763 | Apr 2011 | EP |
2007-104598 | Apr 2007 | JP |
2005055194 | Jun 2005 | WO |
Entry |
---|
European Search Report issued in European counterpart application No. EP12197636.9, dated Jul. 26, 2013. |
Number | Date | Country | |
---|---|---|---|
20130174716 A1 | Jul 2013 | US |