Waveform data structure, waveform data storage device, waveform data storing method, waveform data extracting device, waveform data extracting method and electronic musical instrument
AssigneeCasio Computer Co., Ltd.
InventorGoro Sakata
Life of this patent
Estimating the term…
Abstract
A waveform data structure includes a plurality of types of frames having different data sizes. Each of the plurality of types of frames includes an auxiliary information area and a data area. The auxiliary information area includes an area for storing common effective-bit length data for a section of waveform samples, and an area for storing an identifier for identifying one of the plurality of types of frames. The data area is an area for storing extracted waveform samples which are extracted from the waveform samples based on the common effective-bit length. The number of the extracted waveform samples is determined based on the common effective-bit length.
Claims13
An electronic musical instrument comprising:
- a memory having a waveform data structure, the waveform data structure being configured by one of at least first and second frame types, each of the first and second frame types being determined based on a result of whether or not a first value is equal to a second value, the first value being a value of a common effective-bit length calculated based on compressed waveform samples corresponding to the first frame type, the second value being a value of the common effective-bit length calculated based on the compressed waveform samples corresponding to the second frame type, frame sizes of the first and second frame types being different from each other, each of the first and second frame types including an auxiliary information area and a data area, the auxiliary information area including an area for storing one of the first value and the second value and an area for storing an identifier for identifying one of the first and second frame types, the data area being an area for storing waveform samples which are extracted from the compressed waveform samples in accordance with the one of the first value and the second value, and a number of the waveform samples being determined based on the one of the first value and the second value and the one of the first and second frame types which is identified by the identifier;
- a musical-instrument-performance input section;
- a hardware processor that performs an instructing process of instructing music generation according to playing operations input to the musical-instrument-performance input section, and an obtaining process of obtaining necessary waveform samples from the memory in response to the instructing process;
- and
- a speaker that produces music sound based on waveform data obtained by decompressing the waveform samples obtained from the memory.
A waveform data storage device comprising:
- a determiner comprising circuitry or a hardware processor, the determiner being configured to determine one of at least first and second frame types based on a result of whether or not a first value is equal to a second value, the first value being a value of a common effective-bit length calculated based on compressed waveform samples corresponding to the first frame type, and the second value being a value of the common effective-bit length calculated based on the compressed waveform samples corresponding to the second frame type, wherein frame sizes of the first and second frame types are different from each other;
- and
- a memory that stores a plurality of frames, each of the plurality of frames being determined by the determiner to be one of the first and second frame types, and each of the plurality of frames including (i) an auxiliary information area, which stores frame attribute data including one of the first value and the second value, and an identifier for identifying the frame as one of the first and second frame types as determined by the determiner, and (ii) a data area in which the compressed waveform samples are stored based on a set number of compressed waveform samples corresponding to the one of the first value and the second value of the common effective-bit length of the frame attribute data stored in the auxiliary information area.
A waveform data storage device comprising:
- a determiner comprising circuitry or a hardware processor, the determiner determining one frame type from a plurality of frame types based on a bit length of compressed waveform samples which are supplied, wherein frame sizes of the plurality of frame types for storing compressed waveform samples are different from each other;
- and
- a memory that stores a plurality of frames, each of the plurality of frames including an auxiliary information area and a data area, the auxiliary information area storing at least bit length data representing the bit length of the compressed waveform samples and frame attribute data representing the one frame type determined by the determiner, a size of the data area being set based on the frame attribute data stored in the auxiliary information area, and the data area storing the compressed waveform samples.
A waveform data extracting device comprising:
- a memory having a waveform data structure, the waveform data structure being configured by one of at least first and second frame types, each of the first and second frame types being determined based on a result of whether or not a first value is equal to a second value, the first value being a value of a common effective-bit length calculated based on compressed waveform samples corresponding to the first frame type, the second value being a value of the common effective-bit length calculated based on the compressed waveform samples corresponding to the second frame type, a set number of compressed waveform samples to be stored in the first frame type being different from a set number of compressed waveform samples to be stored in the second frame type, each of the first and second frame types including an auxiliary information area and a data area, the auxiliary information area including an area for storing one of the first value and the second value and an area for storing an identifier for identifying one of the first and second frame types, the data area being an area for storing extracted waveform samples which are extracted from the compressed waveform samples in accordance with the one of the first value and the second value, and a number of the extracted waveform samples being determined based on the one of the first value and the second value and the one of the first and second frame types which is identified by the identifier;
- and
- a waveform data extracting device comprising circuitry, the waveform data extracting device being configured to:
- generate address data based on the one of the first value and the second value read from the auxiliary information area of a designated frame stored in the memory;
- extract the stored extracted waveform samples from the data area of the designated frame, according to the generated address data;
- and
- designate the next frame to be extracted after the stored extracted waveform samples are extracted.
A waveform data extracting device comprising:
- a memory having a waveform data structure, the waveform data structure being configured by at least first and second frame types, a set number of compressed waveform samples to be stored in the first frame type being different from a set number of compressed waveform samples to be stored in the second frame type, each of the first and second frame types including an auxiliary information area and a data area, the auxiliary information area having frame attribute data including an area for storing common effective-bit length data indicating a value of a common effective-bit length for compressed waveform samples and an area for storing an identifier for identifying one of the first and second frame types, and the data area being an area for storing as many compressed waveform samples as the set number of compressed waveform samples determined according to the one of the first and second frame types which is identified by the identifier and the value of the common effective-bit length;
- and
- a waveform data extracting device comprising circuitry, the waveform data extracting device being configured to:
- sequentially read the compressed waveform samples from the data area of a designated frame, according to address data based on the value of the common effective-bit length of the frame attribute data stored in the auxiliary information area of the designated frame;
- and
- designate the next frame to be read after the compressed waveform samples of the designated frame are read.
A sound generation method of an electronic musical instrument, the electronic musical instrument comprising (i) a memory having a waveform data structure, the waveform data structure being configured by one of at least first and second frame types, each of the first and second frame types being determined based on a result of whether or not a first value is equal to a second value, the first value being a value of a common effective-bit length calculated based on compressed waveform samples corresponding to the first frame type, the second value being a value of the common effective-bit length calculated based on the compressed waveform samples corresponding to the second frame type, frame sizes of the first and second frame types being different from each other, each of the first and second frame types including an auxiliary information area and a data area, the auxiliary information area including an area for storing one of the first value and the second value and an area for storing an identifier for identifying one of the first and second frame types, the data area being an area for storing waveform samples which are extracted from the compressed waveform samples in accordance with the one of the first value and the second value, and a number of the waveform samples being determined based on the one of the first value and the second value and the one of the first and second frame types which is identified by the identifier, (ii) a musical-instrument-performance input section, (iii) a hardware processor, and (iv) a speaker, and the method comprising:
- performing, by the hardware processor, an instructing process of instructing music generation according to playing operations input to the musical-instrument-performance input section, and an obtaining process of obtaining necessary waveform samples from the memory in response to the instructing process;
- and
- producing, by the speaker, music sound based on waveform data obtained by decompressing the waveform samples obtained from the memory.
Dependencies are inferred from the claim text.