[go: up one dir, main page]

JP6851578B2 - Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument - Google Patents

Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument Download PDF

Info

Publication number
JP6851578B2
JP6851578B2 JP2018222091A JP2018222091A JP6851578B2 JP 6851578 B2 JP6851578 B2 JP 6851578B2 JP 2018222091 A JP2018222091 A JP 2018222091A JP 2018222091 A JP2018222091 A JP 2018222091A JP 6851578 B2 JP6851578 B2 JP 6851578B2
Authority
JP
Japan
Prior art keywords
waveform
storage
waveform data
read
storage area
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.)
Active
Application number
JP2018222091A
Other languages
Japanese (ja)
Other versions
JP2019032566A (en
JP2019032566A5 (en
Inventor
佐藤 博毅
博毅 佐藤
肇 川島
肇 川島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2018222091A priority Critical patent/JP6851578B2/en
Publication of JP2019032566A publication Critical patent/JP2019032566A/en
Publication of JP2019032566A5 publication Critical patent/JP2019032566A5/ja
Application granted granted Critical
Publication of JP6851578B2 publication Critical patent/JP6851578B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

本発明は、楽音生成装置、楽音生成方法、楽音生成プログラム及び電子楽器に関する。 The present invention relates to a musical tone generator, a musical tone generator, a musical tone generator, and an electronic musical instrument.

近年の電子楽器やパーソナルコンピュータにおいては、管楽器や弦楽器等の原音の特徴により近い楽音を再現するために、多種多様な音源データ(波形データ)を利用した楽音生成方法が採用されている。例えば、電子楽器やパーソナルコンピュータ上で稼働するソフトウェア音源において、より多数の、より長時間の波形データを利用できるようにするために、使用しない波形データはフラッシュメモリやハードディスク等の、アクセス速度が遅く記憶容量が大きい(低速大容量の)記憶装置に保存しておき、使用する波形データのみを音源装置が直接アクセスできるアクセス速度が速く記憶容量が小さい(高速低容量の)記憶装置に転送し、演奏に応じて波形データを読み出して発音させるというシステムを採用するものがある。 In recent years, electronic musical instruments and personal computers have adopted a musical sound generation method using a wide variety of sound source data (waveform data) in order to reproduce musical sounds that are closer to the characteristics of original sounds such as wind instruments and stringed instruments. For example, in a software sound source running on an electronic musical instrument or a personal computer, in order to make it possible to use a larger number of waveform data for a longer period of time, unused waveform data has a slow access speed such as a flash memory or a hard disk. It is stored in a storage device with a large storage capacity (low speed and large capacity), and only the waveform data to be used is transferred to a storage device with a high access speed and a small storage capacity (high speed and low capacity) that can be directly accessed by the sound source device, and played. Some adopt a system that reads out waveform data and makes it sound according to the situation.

ここで、一般に高速低容量の記憶装置は製品価格が高価であり、低速大容量の記憶装置は安価であるため、高速低容量の記憶装置の記憶容量以上のデータサイズを有する波形データを低速大容量の記憶装置に保持しておき、必要な場合にのみ高速低容量の記憶装置に移動して発音に使用することにより、良好な波形データの読み出し動作と、製品コストの抑制との両方を実現することができる。例えば特許文献1等には、このようなシステムを採用して、読み出した波形データを合成することにより所望の音色の楽音を発音させることができる音源装置について記載されている。 Here, since the product price of a high-speed low-capacity storage device is generally high and the low-speed large-capacity storage device is inexpensive, waveform data having a data size larger than the storage capacity of the high-speed low-capacity storage device can be stored at low speed. By holding it in a capacity storage device and moving it to a high-speed low-capacity storage device only when necessary and using it for sound generation, both good waveform data reading operation and product cost reduction are realized. can do. For example, Patent Document 1 and the like describe a sound source device capable of producing a musical tone having a desired timbre by synthesizing the read waveform data by adopting such a system.

特開平11−7281号公報Japanese Unexamined Patent Publication No. 11-7281

しかしながら、このような方式のシステムにおいては、低速大容量の記憶装置から高速低容量の記憶装置への波形データの移動に時間がかかるという問題を有している。特に、近年の楽音生成方法においては演奏した鍵域や強さに応じて音色を切り替える手法を採用しているため、よりデータサイズの大きな波形データを必要とする音色や、複数の波形データの組み合わせによって構成される音色の場合には、波形データの読み込みにさらに時間を要していた。このとき、波形データを読み込むまでは、その波形データに基づく楽音を発音させることができないため、演奏に支障を来す場合があった。 However, such a system has a problem that it takes time to move waveform data from a low-speed large-capacity storage device to a high-speed low-capacity storage device. In particular, recent musical tone generation methods employ a method of switching tones according to the key range and strength played, so tones that require waveform data with a larger data size or a combination of multiple waveform data. In the case of a timbre composed of, it took more time to read the waveform data. At this time, until the waveform data is read, it is not possible to pronounce a musical tone based on the waveform data, which may interfere with the performance.

そこで、本発明は、上述したような課題に鑑みて、複数の波形データを用いた楽音の生成処理に要する時間をより効果的に短縮して、良好な演奏を実現することができる楽音生成装置、楽音生成方法、楽音生成プログラム及び電子楽器を提供することを目的とする。 Therefore, in view of the above-mentioned problems, the present invention is a musical sound generation device capable of more effectively shortening the time required for the musical sound generation processing using a plurality of waveform data and realizing a good performance. , A musical tone generation method, a musical tone generation program, and an electronic musical instrument.

本発明に係る楽音生成装置は、第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の音色それぞれに対応する波形データを記憶している第1の記憶手段と、前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを音色の情報と対応付けて記憶する複数の記憶領域を有する第2の記憶手段と、前記複数の記憶領域のなかのいずれかの記憶領域が可変的に対応付けられる複数の波形読出装置を有する波形発生器と、音色を指定した発音が指示されたときに、前記指定された音色に対応する波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた形読出装置に読み込ませ、前記指定された音色に対応する波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、前記指定された音色に対応する波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる制御手段と、を備えることを特徴とする。 The music sound generator according to the present invention has a first reading speed, a first storage capacity, and a first storage means for storing waveform data corresponding to each of a plurality of sound colors, and the first storage means. It has a second read speed that is faster than the read speed of, and has a second storage capacity that is smaller than the first storage capacity, and corresponds to the waveform data read from the first storage means with the tone color information. A second storage means having a plurality of storage areas to be attached and stored, a waveform generator having a plurality of waveform readers to which any storage area of the plurality of storage areas is variably associated with each other, and a tone color. When the waveform data corresponding to the specified tone color is stored in any of the storage areas of the plurality of storage areas when the sound for which is specified is instructed, the storage area is stored in any of the storage areas. , When the waveform data corresponding to the specified tone color is not stored in any of the plurality of storage areas, any waveform is read. Waveform data corresponding to the specified tone color is stored from the first storage means in either a storage area in which the device is not reading or a storage area in which the number of waveform reading devices being read is smaller than that of the other storage areas. It is characterized by comprising a control means for transferring and reading the transferred storage area into a waveform reading device associated with the transferred storage area.

本発明によれば、複数の波形データを用いた楽音の生成処理に要する時間をより効果的に短縮して、良好な演奏を実現することができる。 According to the present invention, it is possible to more effectively shorten the time required for the music sound generation process using a plurality of waveform data, and to realize a good performance.

本発明に係る楽音生成装置を適用した電子楽器の一実施形態を示す外観図である。It is an external view which shows one Embodiment of the electronic musical instrument to which the musical tone generator which concerns on this invention is applied. 本実施形態に係る電子鍵盤楽器のハードウェアの構成例を示すブロック図である。It is a block diagram which shows the structural example of the hardware of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に適用される音源LSIの内部構造の例を示すブロック図である。It is a block diagram which shows the example of the internal structure of the sound source LSI applied to this embodiment. 本実施形態に適用される波形データの管理手法を説明する図である。It is a figure explaining the management method of the waveform data applied to this embodiment. 本実施形態に適用されるRAM及び大容量フラッシュメモリ上の情報とその転送処理の概要を説明する図である。It is a figure explaining the outline of the information on the RAM and the large-capacity flash memory applied to this embodiment, and the transfer process thereof. 本実施形態に適用されるRAMのスタティック波形領域及びダイナミック波形領域を説明する図である。It is a figure explaining the static waveform area and the dynamic waveform area of the RAM applied to this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のメインルーチンを示すフローチャートである。It is a flowchart which shows the main routine of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法に適用される初期化処理を示すフローチャートである。It is a flowchart which shows the initialization process applied to the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法の初期化処理に適用されるスタティック波形領域読み出し処理を示すフローチャートである。It is a flowchart which shows the static waveform area reading process applied to the initialization process of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法の初期化処理に適用される波形読み出し装置バッファ初期化処理を示すフローチャートである。It is a flowchart which shows the waveform reading apparatus buffer initialization processing applied to the initialization processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のスイッチ処理に適用される音色選択処理を示すフローチャートである。It is a flowchart which shows the tone color selection process applied to the switch process of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法の鍵盤処理に適用される押鍵処理及び離鍵処理を示すフローチャートである。It is a flowchart which shows the key press processing and the key release processing applied to the keyboard processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法の鍵盤処理に適用されるノートオン処理及びノートオフ処理を示すフローチャートである。It is a flowchart which shows the note-on processing and note-off processing applied to the keyboard processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形情報取得処理を示すフローチャートである。It is a flowchart which shows the waveform information acquisition processing applied to the note-on processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置の波形読み出し開始処理を示すフローチャートである。It is a flowchart which shows the waveform reading start processing of the waveform reading apparatus applied to the note-on processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用されるスタティック波形の読み出し開始処理を示すフローチャートである。It is a flowchart which shows the reading start processing of the static waveform applied to the note-on processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置の割り当て処理を示すフローチャートである。It is a flowchart which shows the allocation process of the waveform reading apparatus applied to the note-on process of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置バッファの割り当て処理(その1)を示すフローチャートである。It is a flowchart which shows the waveform reading apparatus buffer allocation processing (the 1) applied to the note-on processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置バッファの割り当て処理(その2)を示すフローチャートである。It is a flowchart which shows the waveform reading device buffer allocation processing (the 2) applied to the note-on processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法に適用される音源定期処理を示すフローチャートである。It is a flowchart which shows the sound source periodic processing applied to the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法の音源定期処理に適用される波形読み出し装置の波形読み出し停止処理を示すフローチャートである。It is a flowchart which shows the waveform reading stop processing of the waveform reading apparatus applied to the sound source periodic processing of the control method of the electronic keyboard instrument which concerns on this embodiment. 本実施形態に係る電子鍵盤楽器の制御方法の変形例に適用される波形読み出し装置バッファの割り当て処理を示すフローチャートである。It is a flowchart which shows the allocation processing of the waveform reading apparatus buffer applied to the modification of the control method of the electronic keyboard instrument which concerns on this embodiment.

以下、本発明に係る楽音生成装置、楽音生成方法、楽音生成プログラム及び電子楽器を実施するための形態について、図面を参照しながら詳しく説明する。 Hereinafter, a mode for carrying out the musical tone generation device, the musical tone generation method, the musical tone generation program, and the electronic musical instrument according to the present invention will be described in detail with reference to the drawings.

<電子楽器>
図1は、本発明に係る楽音生成装置を適用した電子楽器の一実施形態を示す外観図である。ここでは、本発明に係る電子楽器の一実施形態として、波形読み出し方式の電子鍵盤楽器を示して説明する。
<Electronic musical instrument>
FIG. 1 is an external view showing an embodiment of an electronic musical instrument to which the musical sound generator according to the present invention is applied. Here, as an embodiment of the electronic musical instrument according to the present invention, a waveform reading type electronic keyboard instrument will be described.

本実施形態に係る電子鍵盤楽器100は、例えば図1に示すように、楽器本体の一面側に、演奏操作子としての複数の鍵からなる鍵盤(入力手段)102と、波形選択操作子としての音色選択を行うための音色選択ボタン(入力手段)104、及び、音色以外の各種機能選択を行うための機能選択ボタン106からなるスイッチ・パネルと、ピッチベンドやトレモロ、ビブラート等の各種モジュレーション(演奏効果)を付加するためのベンダ/モジュレーション・ホイール108と、音色やその他の各種設定情報を表示するLCD(Liquid Crystal Display:液晶ディスプレイ)110等の表示部と、を備えている。また、電子鍵盤楽器100は、図示を省略したが、演奏により生成された楽音を出力するスピーカ(出力手段)を、例えば楽器本体の裏面部、側面部、又は背面部等に備えている。 As shown in FIG. 1, for example, the electronic keyboard instrument 100 according to the present embodiment has a keyboard (input means) 102 composed of a plurality of keys as a performance operator and a waveform selection operator on one surface side of the instrument body. A switch panel consisting of a tone color selection button (input means) 104 for selecting a tone color and a function selection button 106 for selecting various functions other than a tone color, and various modulations (playing effects) such as pitch bend, tremolo, and vibrato. ) Is added, and a display unit such as an LCD (Liquid Crystal Display) 110 for displaying a tone color and various other setting information is provided. Further, although not shown, the electronic keyboard instrument 100 is provided with a speaker (output means) for outputting a musical sound generated by the performance, for example, on a back surface portion, a side surface portion, a back surface portion, or the like of the musical instrument body.

このような電子鍵盤楽器100において、音色選択ボタン104は、例えば図1に示すように、ピアノ(図中「Piano」)、エレクトリックピアノ(図中「E.Piano」)、オルガン(図中「Organ」)、ギター(図中「Guitar」)、サクソフォン(図中「Saxophone」)、ストリング(図中「Strings」)、シンセ(図中「Synth1」、「Synth2」)、ドラム(図中「Drums1」、「Drums2」)等の各種の音色のカテゴリを選択するための波形選択操作子としてのボタンである。ここで、図1においては16種類の音色のカテゴリを示した。電子鍵盤楽器100の演奏者(ユーザ)は、任意の音色選択ボタン104を押下することにより、上記の16種類の音色の中から任意の音色のカテゴリを選択して演奏することができる。 In such an electronic keyboard instrument 100, the tone color selection button 104 is, for example, as shown in FIG. 1, a piano (“Piano” in the figure), an electric piano (“E.Piano” in the figure), an organ (“Organ” in the figure). ”), Guitar (“Guitar” in the figure), Saxophone (“Saxophone” in the figure), Strings (“Strings” in the figure), Synth (“Synth1”, “Synth2” in the figure), Drum (“Drums1” in the figure) , "Drums2"), etc. It is a button as a waveform selection operator for selecting various tone color categories. Here, in FIG. 1, 16 types of timbre categories are shown. The player (user) of the electronic keyboard instrument 100 can select and play an arbitrary timbre category from the above 16 types of timbres by pressing the arbitrary timbre selection button 104.

図2は、本実施形態に係る電子鍵盤楽器のハードウェアの構成例を示すブロック図である。図3は、本実施形態に適用される音源LSIの内部構造の例を示すブロック図である。 FIG. 2 is a block diagram showing a configuration example of the hardware of the electronic keyboard instrument according to the present embodiment. FIG. 3 is a block diagram showing an example of the internal structure of the sound source LSI applied to the present embodiment.

電子鍵盤楽器100は、例えば図2に示すように、CPU(中央演算処理装置)202と、音源LSI(大規模集積回路)204と、DMA(Direct Memory Access)コントローラ214と、I/O(入出力)コントローラ216とが、それぞれシステムバス226に直接接続された構成を備えている。また、電子鍵盤楽器100は、アクセス速度が高速(第2の読み出し速度)で低容量(第2の記憶容量)のRAM(ランダムアクセスメモリ)208がメモリコントローラ206を介して、また、アクセス速度が低速(第1の読み出し速度)で大容量(第1の記憶容量)のフラッシュ(Flash)メモリ212がフラッシュメモリコントローラ210を介して、それぞれシステムバス226に接続された構成を備えている。また、電子鍵盤楽器100は、図1に示したLCD110がLCDコントローラ218を介して、また、図1に示した鍵盤102と、音色選択ボタン104及び機能選択ボタン106からなるスイッチ・パネルとがキー・スキャナ220を介して、さらに、図1に示したベンダ/モジュレーション・ホイール108がA/Dコンバータ(アナログ・デジタル変換回路)222を介して、それぞれI/Oコントローラ216に接続され、これらの構成がI/Oコントローラ216を介してシステムバス226に接続された構成を備えている。また、システムバス226はバスコントローラ224に接続され、システムバス226を介して上記の各構成間で送受信される信号やデータがバスコントローラ224により制御される。また、音源LSI204には、D/Aコンバータ(デジタル・アナログ変換回路)228及びアンプ230が接続され、音源LSI204から出力されるデジタル楽音波形データがD/Aコンバータ228によりアナログ楽音波形信号に変換され、さらにアンプ230で増幅された後に、出力端子又は図示を省略したスピーカから出力される。ここで、少なくともCPU(制御手段)202、音源LSI(発音手段)204、RAM(第2の記憶手段)208、大容量のフラッシュメモリ(第1の記憶手段)212は、本発明に係る楽音生成装置を構成する。 As shown in FIG. 2, for example, the electronic keyboard instrument 100 includes a CPU (central processing unit) 202, a sound source LSI (large-scale integrated circuit) 204, a DMA (Direct Memory Access) controller 214, and an I / O (input). The output) controller 216 has a configuration in which each is directly connected to the system bus 226. Further, in the electronic keyboard instrument 100, a RAM (random access memory) 208 having a high access speed (second read speed) and a low capacity (second storage capacity) is transmitted via the memory controller 206, and the access speed is high. A low-speed (first read speed) and large-capacity (first storage capacity) flash memory 212 is connected to the system bus 226 via a flash memory controller 210, respectively. Further, in the electronic keyboard instrument 100, the LCD 110 shown in FIG. 1 is keyed via the LCD controller 218, and the keyboard 102 shown in FIG. 1 and a switch panel including the tone color selection button 104 and the function selection button 106 are used as keys. The vendor / modulation wheel 108 shown in FIG. 1 is further connected to the I / O controller 216 via the scanner 220 and the A / D converter (analog-to-digital conversion circuit) 222, respectively, and these configurations are used. Is connected to the system bus 226 via the I / O controller 216. Further, the system bus 226 is connected to the bus controller 224, and signals and data transmitted and received between the above configurations via the system bus 226 are controlled by the bus controller 224. Further, a D / A converter (digital-analog conversion circuit) 228 and an amplifier 230 are connected to the sound source LSI 204, and the digital waveform data output from the sound source LSI 204 is converted into an analog waveform signal by the D / A converter 228. After being further amplified by the amplifier 230, it is output from an output terminal or a speaker (not shown). Here, at least the CPU (control means) 202, the sound source LSI (sounding means) 204, the RAM (second storage means) 208, and the large-capacity flash memory (first storage means) 212 are used to generate musical sounds according to the present invention. Configure the device.

このように、電子鍵盤楽器100は、機器全体がバスコントローラ224によって制御されるシステムバス226を中心に構成されている。具体的には、バスコントローラ224はシステムバス226に接続された上記の各構成における信号やデータの送受信時の優先順位を制御する。例えば、電子鍵盤楽器100において、RAM208は、CPU202と音源LSI204によって共有された構成を有しているが、発音を行う音源LSI204は、データの欠落が許されないため、バスコントローラ224により、音源LSI204とRAM208との送受信時の優先度が最も高く設定されており、必要に応じてCPU202によるRAM208へのアクセスが制限される。 As described above, the electronic keyboard instrument 100 is configured around the system bus 226 in which the entire device is controlled by the bus controller 224. Specifically, the bus controller 224 controls the priority at the time of transmitting and receiving signals and data in each of the above configurations connected to the system bus 226. For example, in the electronic keyboard instrument 100, the RAM 208 has a configuration shared by the CPU 202 and the sound source LSI 204, but the sound source LSI 204 that performs sound generation is not allowed to lose data. The highest priority is set when transmitting and receiving to and from the RAM 208, and access to the RAM 208 by the CPU 202 is restricted as necessary.

上記のような構成において、CPU202は、機器全体の処理を行うメインプロセッサであって、RAM208をワーク領域として使用しながら所定の制御プログラムを実行することにより、電子鍵盤楽器100の制御動作を実行する。 In the above configuration, the CPU 202 is a main processor that processes the entire device, and executes a predetermined control program while using the RAM 208 as a work area to execute a control operation of the electronic keyboard instrument 100. ..

RAM208は、後述する大容量フラッシュメモリ212に比較して、一般にアクセス速度が高速で低容量、且つ、製品価格が高価なメモリデバイスであり、インターフェースであるメモリコントローラ206を介してシステムバス226に接続される。RAM208は、大容量フラッシュメモリ212から転送された波形データや制御プログラム、各種の固定データ等を配置する。特に、RAM208は、後述する音源LSI204において実行される楽音の生成処理に使用される波形データを展開する音源メモリ(又は、波形メモリ)としての機能を有し、発音される楽音の波形データは必ず、RAM208上に配置される。また、RAM208は、CPU202や音源LSI204に内蔵されるDSP(デジタル信号処理回路)306のワーク領域としても使用される。 The RAM 208 is a memory device that generally has a high access speed, a low capacity, and an expensive product price as compared with the large-capacity flash memory 212 described later, and is connected to the system bus 226 via a memory controller 206 that is an interface. Will be done. The RAM 208 arranges waveform data, control programs, various fixed data, and the like transferred from the large-capacity flash memory 212. In particular, the RAM 208 has a function as a sound source memory (or a waveform memory) that develops waveform data used for music sound generation processing executed in the sound source LSI 204, which will be described later, and the waveform data of the musical sound to be pronounced is always , Arranged on RAM 208. The RAM 208 is also used as a work area of the DSP (digital signal processing circuit) 306 built in the CPU 202 and the sound source LSI 204.

ここで、RAM208の記憶容量は、大容量フラッシュメモリ212に比較して小さいため、RAM208の記憶内容が逐次入れ替えられるが、所定の条件を満たす(後述するしきい値を超過するデータサイズを有する)波形データについては、演奏中に波形データの転送による変更がなされることのない状態でRAM208に固定的に記憶される。また、他の所定の条件を満たす(後述するしきい値以下のデータサイズを有し、既にRAM208に転送済みの)波形データについては、RAM208内に保存されている波形データが流用される。このように、本実施形態は、RAM208の記憶内容のうち、波形データの管理方法に特徴を有している。 Here, since the storage capacity of the RAM 208 is smaller than that of the large-capacity flash memory 212, the storage contents of the RAM 208 are sequentially replaced, but a predetermined condition is satisfied (the data size exceeds the threshold value described later). The waveform data is fixedly stored in the RAM 208 in a state where the waveform data is not changed by the transfer during the performance. Further, as for the waveform data satisfying other predetermined conditions (having a data size equal to or less than the threshold value described later and having already been transferred to the RAM 208), the waveform data stored in the RAM 208 is diverted. As described above, the present embodiment is characterized by a method of managing waveform data among the stored contents of the RAM 208.

大容量フラッシュメモリ212は、一般にNAND型等のアクセス速度が低速で大容量、且つ、製品価格が安価なメモリデバイスであり、インターフェースであるフラッシュメモリコントローラ210を介してシステムバス226に接続される。大容量フラッシュメモリ212は、音源LSI204において実行される楽音の生成処理に使用される(又は、使用される可能性のある)全ての音色の波形データや、全ての音色のパラメータデータ、CPU202や音源LSI204のDSP306において実行される制御プログラムのプログラムデータ、音楽データや演奏者の設定データ等の各種の固定データを記憶している。ここで、大容量フラッシュメモリ212に記憶された全ての波形データは、圧縮されており、例えば1語長が8ビットに設定されている。大容量フラッシュメモリ212に記憶された波形データ等は、CPU202がシーケンシャルに順次アクセスすることにより読み出されてRAM208に転送される。 The large-capacity flash memory 212 is generally a memory device of a NAND type or the like having a low access speed, a large capacity, and a low product price, and is connected to the system bus 226 via a flash memory controller 210 which is an interface. The large-capacity flash memory 212 is used for waveform data of all tones used (or may be used) for music generation processing executed in the sound source LSI 204, parameter data of all tones, CPU 202, and a sound source. It stores various fixed data such as program data of a control program executed by DSP 306 of LSI 204, music data, and player setting data. Here, all the waveform data stored in the large-capacity flash memory 212 are compressed, and for example, one word length is set to 8 bits. The waveform data and the like stored in the large-capacity flash memory 212 are read out by sequential access by the CPU 202 and transferred to the RAM 208.

なお、本実施形態においては、大容量で安価なメモリデバイスとして、NAND型のフラッシュメモリ(実際には、フラッシュメモリを集積して構成されたSSD;Solid State Drive)を適用した構成を示したが、本発明はこれに限定されるものではない。例えば、大容量で安価なメモリデバイスとして、ハードディスク(HDD)を適用するものであってもよい。ここで、フラッシュメモリやハードディスクは、電子鍵盤楽器100に対して着脱可能(すなわち、差し替え可能)な構成を有しているものであってもよい。また、データの高速転送が可能である場合には、大容量で安価なメモリデバイスとして、特定のネットワーク上やインターネット上(すなわち、クラウド上)のハードディスクを適用するものであってもよい。 In this embodiment, a NAND type flash memory (actually, an SSD (Solid State Drive) configured by integrating flash memories) is applied as a large-capacity and inexpensive memory device. , The present invention is not limited to this. For example, a hard disk (HDD) may be applied as a large-capacity and inexpensive memory device. Here, the flash memory or the hard disk may have a structure that is removable (that is, replaceable) with respect to the electronic keyboard instrument 100. Further, when high-speed data transfer is possible, a hard disk on a specific network or the Internet (that is, on the cloud) may be applied as a large-capacity and inexpensive memory device.

LCDコントローラ218は、LCD110の表示状態を制御するIC(集積回路)である。キー・スキャナ220は、鍵盤102や音色選択ボタン104及び機能選択ボタン106等のスイッチ・パネルの状態を走査して、CPU202に通知するICである。A/Dコンバータ222は、ベンダ/モジュレーション・ホイール108の操作位置を検出するICである。これらのLCDコントローラ218やキー・スキャナ220、A/Dコンバータ222は、インターフェースであるI/Oコントローラ216を介してシステムバス226との間でデータや信号の入出力を行う。 The LCD controller 218 is an IC (integrated circuit) that controls the display state of the LCD 110. The key scanner 220 is an IC that scans the state of the switch panel such as the keyboard 102, the tone color selection button 104, and the function selection button 106, and notifies the CPU 202. The A / D converter 222 is an IC that detects the operating position of the vendor / modulation wheel 108. These LCD controller 218, key scanner 220, and A / D converter 222 input / output data and signals to / from the system bus 226 via the interface I / O controller 216.

音源LSI204は、後述する楽音生成処理を実行する専用のICである。上記の大容量フラッシュメモリ212は、CPU202からはランダムアクセスが不可能であり、音源LSI204からもアクセスが不可能であるため、大容量フラッシュメモリ212に記憶されたデータ等は、ランダムアクセスが可能なRAM208に一旦転送される。音源LSI204は、CPU202からの命令に基づいて、RAM208に転送された波形データについて、対象となる音色の記憶領域から、演奏で指示された鍵の音高に対応する速度で波形データを読み出し、その読み出した波形データに対して演奏で指示されたベロシティの振幅エンベロープを付加し、その結果として得られる波形データを出力楽音波形データとして出力する。 The sound source LSI 204 is a dedicated IC that executes a musical sound generation process described later. Since the above-mentioned large-capacity flash memory 212 cannot be randomly accessed from the CPU 202 and cannot be accessed from the sound source LSI 204, the data and the like stored in the large-capacity flash memory 212 can be randomly accessed. It is once transferred to RAM 208. Based on the command from the CPU 202, the sound source LSI 204 reads out the waveform data transferred to the RAM 208 from the storage area of the target timbre at a speed corresponding to the pitch of the key instructed in the performance, and the waveform data thereof. The amplitude envelope of the velocity instructed by the performance is added to the read waveform data, and the resulting waveform data is output as output timbre data.

音源LSI204は、例えば図3に示すように、256組の波形読み出し装置(発音手段)304を有する波形発生器302と、DSP306と、ミキサ308と、バスインターフェース310と、を備え、波形発生器302、DSP306及びミキサ308は、バスインターフェース310を介してシステムバス226に接続されて、RAM208へのアクセスや、CPU202との通信が行われる。波形発生器302の各波形読み出し装置304は、RAM208から波形データを読み出して音色の波形を発生させる発振器(オシレータ)であり、DSP306は、音声信号に音響効果をもたらす信号処理回路である。ミキサ308は、波形発生器302からの信号を混合したり、DSP306との間で信号を送受信したりすることにより全体の音声信号の流れを制御して、外部に出力する。すなわち、ミキサ308は、演奏に応じて波形発生器302の各波形読み出し装置304によりRAM208から読み出された波形データに対して、DSP306によりCPU202から供給される楽音パラメータに応じたエンベロープを付加して、出力楽音波形データとして出力する。ミキサ308の出力信号は、図2に示したように、D/Aコンバータ228及びアンプ230を介して所定の信号レベルのアナログ信号として、図示を省略したスピーカやヘッドホン等に出力される。 As shown in FIG. 3, for example, the sound source LSI 204 includes a waveform generator 302 having 256 sets of waveform reading devices (sounding means) 304, a DSP 306, a mixer 308, and a bus interface 310, and the waveform generator 302. , The DSP 306 and the mixer 308 are connected to the system bus 226 via the bus interface 310 to access the RAM 208 and communicate with the CPU 202. Each waveform reading device 304 of the waveform generator 302 is an oscillator (oscillator) that reads waveform data from the RAM 208 and generates a timbre waveform, and the DSP 306 is a signal processing circuit that brings an acoustic effect to the voice signal. The mixer 308 controls the flow of the entire audio signal by mixing the signals from the waveform generator 302 and transmitting / receiving signals to / from the DSP 306, and outputs the signals to the outside. That is, the mixer 308 adds an envelope corresponding to the musical tone parameter supplied from the CPU 202 by the DSP 306 to the waveform data read from the RAM 208 by each waveform reading device 304 of the waveform generator 302 according to the performance. , Output Output as musical waveform data. As shown in FIG. 2, the output signal of the mixer 308 is output to a speaker, headphones, or the like (not shown) as an analog signal having a predetermined signal level via the D / A converter 228 and the amplifier 230.

(波形データの管理手法)
ここで、上述したRAM及び大容量フラッシュメモリに格納される波形データについて詳しく説明する。
(Waveform data management method)
Here, the waveform data stored in the above-mentioned RAM and the large-capacity flash memory will be described in detail.

図4は、本実施形態に適用される波形データの管理手法を説明する図である。図4(a)は、音色波形スプリットの説明図であり、図4(b)は、音色波形ディレクトリの説明図である。 FIG. 4 is a diagram illustrating a waveform data management method applied to the present embodiment. FIG. 4A is an explanatory diagram of the timbre waveform split, and FIG. 4B is an explanatory diagram of the timbre waveform directory.

本実施形態においては、演奏者が電子鍵盤楽器100に備えられた音色選択ボタン104を押下することにより、16種類のうちの任意の音色が選択されて演奏が行われる。これにより、鍵域やベロシティによって音量や音高のみならず音色が変化するのを再現するために、大容量フラッシュメモリ212からRAM208に、音高又は音量ごとの音色の波形データが読み込まれる。ここで、各音色は、それぞれ1音色当たり例えば最大32種類の波形から構成され、その波形データは大容量フラッシュメモリ212に記憶されている。一つの音色に対して、音高又は音量ごとに波形データを管理する手法としては、図4(a)に示すように、鍵盤102上で演奏者が演奏する鍵域(図中、横軸の「Key」)ごとにそれぞれ波形データを割り当て、また、同じ鍵域であっても押鍵時の速さ(演奏の強さ)を示すベロシティ(図中、縦軸の「Velocity」)ごとにそれぞれ波形データを割り当てる音色波形スプリット構造による管理手法が適用される。すなわち、音色波形スプリット構造を用いた波形データの管理手法においては、1音色の音域とベロシティ域を2次元的に分割し、それぞれのスプリット(分割)エリアに最大32個の波形が割り当てられている。この管理手法によれば、押鍵時の速さ(ベロシティ)と鍵番号(鍵域)の2つのファクターから読み出すべき波形が1つだけ決定される。 In the present embodiment, when the performer presses the tone color selection button 104 provided on the electronic keyboard instrument 100, any tone color among the 16 types is selected and the performance is performed. As a result, in order to reproduce that not only the volume and pitch but also the timbre changes depending on the key range and velocity, the waveform data of the timbre for each pitch or volume is read from the large-capacity flash memory 212 to the RAM 208. Here, each tone color is composed of, for example, a maximum of 32 types of waveforms per tone color, and the waveform data is stored in the large-capacity flash memory 212. As a method of managing waveform data for each pitch or volume for one timbre, as shown in FIG. 4A, the key area played by the performer on the keyboard 102 (in the figure, on the horizontal axis). Waveform data is assigned to each "Key"), and even in the same key area, each velocity ("Velocity" on the vertical axis in the figure) indicating the speed (performance strength) at the time of key press is used. A management method based on a timbre waveform split structure that assigns waveform data is applied. That is, in the waveform data management method using the timbre waveform split structure, the timbre range and the velocity range are two-dimensionally divided, and a maximum of 32 waveforms are assigned to each split area. .. According to this management method, only one waveform to be read is determined from the two factors of the key pressing speed (velocity) and the key number (key area).

そして、RAM208や大容量フラッシュメモリ212に記憶される波形データは、テーブル形式を有する音色波形ディレクトリ情報に基づいて管理される。音色波形ディレクトリ情報は、大容量フラッシュメモリ212に記憶され、例えば電子鍵盤楽器100の起動時に、CPU202により大容量フラッシュメモリ212から読み出されてRAM208に転送される。或る音色の楽音を演奏する際には、CPU202がRAM208からその音色に対応する音色波形ディレクトリ情報のデータを読み出して参照する。 The waveform data stored in the RAM 208 or the large-capacity flash memory 212 is managed based on the tone color waveform directory information having a table format. The timbre waveform directory information is stored in the large-capacity flash memory 212, and is read from the large-capacity flash memory 212 by the CPU 202 and transferred to the RAM 208, for example, when the electronic keyboard instrument 100 is started. When playing a musical tone of a certain timbre, the CPU 202 reads the data of the timbre waveform directory information corresponding to the timbre from the RAM 208 and refers to it.

ここで、音色波形ディレクトリ情報のテーブルには、例えば図4(b)に示すように、1つの「音色番号」の音色に含まれる各波形データごとに、その波形データの「波形番号」と、その波形データが発音されるべき鍵域及びベロシティの範囲を示す「最小ベロシティ」、「最大ベロシティ」、「最低キー番号」及び「最高キー番号」と、RAM208に転送された当該音色の記憶領域(波形領域)の先頭からのアドレスを示す「波形領域先頭からのアドレス」と、その波形データのデータサイズを示す「波形サイズ」との各項目値が登録されている。すなわち、音色波形ディレクトリ情報においては、各音色の各波形データについて、上記の音色波形スプリット構造においてどのような条件で分割されているかという鍵域及びベロシティ域情報と、実際に大容量フラッシュメモリ212の中でどのアドレスに配置されていて、波形サイズはどれだけかという情報とが、テーブル形式で規定されている。 Here, in the tone color waveform directory information table, for example, as shown in FIG. 4B, for each waveform data included in the tone color of one "tone color number", the "waveform number" of the waveform data and the "waveform number" of the waveform data are displayed. The "minimum velocity", "maximum velocity", "minimum key number" and "highest key number" indicating the key range and velocity range in which the waveform data should be sounded, and the storage area of the tone color transferred to the RAM 208 ( Each item value of "address from the beginning of the waveform area" indicating the address from the beginning of the waveform area) and "waveform size" indicating the data size of the waveform data is registered. That is, in the timbre waveform directory information, the key area and velocity area information indicating under what conditions each timbre waveform data is divided in the above timbre waveform split structure, and the actual large-capacity flash memory 212 Information about which address is placed inside and what the waveform size is is specified in a table format.

(RAM及び大容量フラッシュメモリ上の情報)
次に、本実施形態に係る電子鍵盤楽器に適用されるRAM及び大容量フラッシュメモリ上の情報とその転送処理について、図面を参照して説明する。
図5は、本実施形態に適用されるRAM及び大容量フラッシュメモリ上の情報とその転送処理の概要を説明する図である。図6は、本実施形態に適用されるRAMのスタティック波形領域及びダイナミック波形領域を説明する図である。図6(a)は、スタティック波形領域(第1の記憶領域)のディレクトリの内容を示す図であり、図6(b)は、ダイナミック波形領域である波形読み出し装置バッファ領域(第2の記憶領域)のディレクトリの内容を示す図である。
(Information on RAM and large-capacity flash memory)
Next, the information on the RAM and the large-capacity flash memory applied to the electronic keyboard instrument according to the present embodiment and the transfer processing thereof will be described with reference to the drawings.
FIG. 5 is a diagram illustrating an outline of information on a RAM and a large-capacity flash memory applied to the present embodiment and a transfer process thereof. FIG. 6 is a diagram illustrating a static waveform area and a dynamic waveform area of the RAM applied to the present embodiment. FIG. 6A is a diagram showing the contents of the directory of the static waveform area (first storage area), and FIG. 6B is a waveform reader buffer area (second storage area) which is a dynamic waveform area. It is a figure which shows the contents of the directory of).

RAM208上には、図5左方の「RAM上の情報」に示すように、音色波形ディレクトリ、音色パラメータ、CPUプログラム、CPUデータ、CPUワーク、DSPプログラム、DSPデータ、DSPワークの各種データが展開される。また、大容量フラッシュメモリ212上には、図5右方の「大容量フラッシュメモリ上の情報」に示すように、音色波形ディレクトリ、音色パラメータ領域、CPUプログラム、CPUデータ、DSPプログラム、DSPデータの各種データが展開される。 As shown in "Information on RAM" on the left side of FIG. 5, various data of tone color waveform directory, tone color parameter, CPU program, CPU data, CPU work, DSP program, DSP data, and DSP work are developed on RAM 208. Will be done. Further, on the large-capacity flash memory 212, as shown in "Information on the large-capacity flash memory" on the right side of FIG. 5, the tone color waveform directory, tone color parameter area, CPU program, CPU data, DSP program, and DSP data are displayed. Various data are expanded.

ここで、電子鍵盤楽器100の演奏に伴って、音源LSI204が波形読み出し動作を実行する際には、読み出す波形データがRAM208上に配置されている必要があるため、例えば電子鍵盤楽器100の起動時に、大容量フラッシュメモリ212からRAM208に、図4(b)に示した音色波形ディレクトリ情報、音色パラメータ、CPUプログラム、CPUデータ、DSPプログラム、DSPデータが転送される。 Here, when the sound source LSI 204 executes the waveform reading operation with the performance of the electronic keyboard instrument 100, the waveform data to be read needs to be arranged on the RAM 208. Therefore, for example, when the electronic keyboard instrument 100 is started up. The tone color waveform directory information, tone color parameters, CPU program, CPU data, DSP program, and DSP data shown in FIG. 4B are transferred from the large-capacity flash memory 212 to the RAM 208.

また、電子鍵盤楽器100の演奏時には、音源LSI204による波形読み出し動作の対象となる波形データもRAM208に転送されている必要があるが、RAM208は、大容量フラッシュメモリ212に比較して記憶容量が小さいため、大容量フラッシュメモリ212に記憶されている全ての音色の波形データをRAM208上に配置することができない。 Further, when playing the electronic keyboard instrument 100, the waveform data to be read by the sound source LSI 204 also needs to be transferred to the RAM 208, but the RAM 208 has a smaller storage capacity than the large-capacity flash memory 212. Therefore, the waveform data of all the tones stored in the large-capacity flash memory 212 cannot be arranged on the RAM 208.

本実施形態においては、基本的には演奏により発音する際に大容量フラッシュメモリ212から必要な波形データの読み出しを行い、RAM208上の波形読み出し装置304ごとに割り当てられた波形バッファに転送して一時保存し、音源LSI204により読み出し再生を行う。ここで、データサイズが大きい波形データの場合には、大容量フラッシュメモリ212からRAM208への転送に時間がかかって発音の反応が遅延してしまい、演奏に支障を来す場合がある。そこで、本実施形態においては、大容量フラッシュメモリ212に記憶されている波形データのうち、所定のしきい値を超過するデータサイズを有する波形データについては電子鍵盤楽器100の演奏の開始に先立つ任意のタイミング、例えば起動時(電源投入時)に予め全てRAM208に転送しておく。本実施形態においては、波形データの転送処理の判断基準となるデータサイズを規定するしきい値として例えば64Kバイトに設定する。このようなしきい値の設定によれば、例えばピアノやシンバル等の楽器の音色波形は、データサイズがしきい値よりも大きいため、起動時にRAM208に転送される。 In the present embodiment, basically, the waveform data required for sounding by playing is read from the large-capacity flash memory 212, transferred to the waveform buffer assigned to each waveform reading device 304 on the RAM 208, and temporarily transferred. It is saved and read and played back by the sound source LSI 204. Here, in the case of waveform data having a large data size, the transfer from the large-capacity flash memory 212 to the RAM 208 takes a long time, and the sound response is delayed, which may interfere with the performance. Therefore, in the present embodiment, among the waveform data stored in the large-capacity flash memory 212, the waveform data having a data size exceeding a predetermined threshold value is arbitrary prior to the start of the performance of the electronic keyboard instrument 100. At the timing of, for example, at the time of startup (when the power is turned on), all the data is transferred to the RAM 208 in advance. In the present embodiment, for example, 64 Kbytes is set as a threshold value that defines the data size that is the criterion for determining the waveform data transfer process. According to such a threshold value setting, for example, the timbre waveform of a musical instrument such as a piano or a cymbal is transferred to the RAM 208 at startup because the data size is larger than the threshold value.

一方、例えばギター等の楽器の音色波形のように、データサイズがしきい値(64Kバイト)以下の低容量の波形データの場合には、演奏に伴う押鍵時にその都度大容量フラッシュメモリ212からRAM208に転送を行う。ここで、演奏時に大容量フラッシュメモリ212から転送される波形データは、複数の波形読み出し装置304に対応して設定されたRAM208上の複数の波形バッファのうち、いずれの波形読み出し装置304からも使用されていない波形バッファが選択されて上書き保存される。或いは、波形読み出し装置304により使用されている数や使用頻度が低い波形バッファから優先的に選択されて、転送される波形データが上書き保存される。このような大容量フラッシュメモリ212から波形バッファへの波形データの転送時の管理は、RAM208の各波形バッファに保存されている波形データが、いずれの波形読み出し装置304による発音のために使用中であるか否かを、逐次更新しながら(リアルタイムに)管理する管理情報に基づいて実行される。 On the other hand, in the case of low-capacity waveform data whose data size is equal to or less than the threshold value (64 Kbytes), such as the tone waveform of a musical instrument such as a guitar, the large-capacity flash memory 212 is used each time a key is pressed during a performance. Transfer to RAM 208. Here, the waveform data transferred from the large-capacity flash memory 212 at the time of performance is used from any of the waveform reading devices 304 among the plurality of waveform buffers on the RAM 208 set corresponding to the plurality of waveform reading devices 304. The waveform buffer that has not been selected is selected and saved by overwriting. Alternatively, the waveform data to be transferred is overwritten and saved by preferentially selecting from the number of waveform buffers used by the waveform readout device 304 or the waveform buffers that are used less frequently. In the management at the time of transferring the waveform data from the large-capacity flash memory 212 to the waveform buffer, the waveform data stored in each waveform buffer of the RAM 208 is being used for sound generation by any waveform reading device 304. It is executed based on the management information that manages (in real time) while updating sequentially whether or not there is.

上記の波形データの転送処理に適用されるしきい値は、例えば演奏時のCPU202の処理負担や遅延時間等に基づいて設定される。具体的には、電子鍵盤楽器100の演奏においては、一般に押鍵時から楽音の発音までの合計遅延時間が概ね10msecを超過すると、演奏者は押鍵に対する発音までの反応が遅いと認識する傾向が高いため、CPU202の処理性能や周辺回路における信号遅延等を加味して、各音色波形データの転送処理に許容される遅延時間を算出する。そして、この一定の許容遅延時間内に転送処理が完了するとともに、RAM208の記憶容量を極力小さくすることができる音色波形のデータサイズをしきい値として設定する。このような条件に基づいて、発明者らが算出したしきい値の一例が、64Kバイトである。 The threshold value applied to the above waveform data transfer process is set based on, for example, the processing load of the CPU 202 during performance, the delay time, and the like. Specifically, in the performance of the electronic keyboard instrument 100, in general, when the total delay time from the time of pressing a key to the sounding of a musical tone exceeds approximately 10 msec, the performer tends to recognize that the response to the keying is slow. Therefore, the delay time allowed for the transfer processing of each tone color waveform data is calculated in consideration of the processing performance of the CPU 202, the signal delay in the peripheral circuit, and the like. Then, the transfer process is completed within this fixed allowable delay time, and the data size of the timbre waveform that can minimize the storage capacity of the RAM 208 is set as the threshold value. An example of the threshold value calculated by the inventors based on such a condition is 64 Kbytes.

なお、本実施形態においては、音色波形のデータサイズについて、しきい値を設定した場合について説明したが、本発明はこれに限定されるものではなく、例えば、音色波形を規定する音高やベロシティについて、上記と同様の概念に基づいて、しきい値を設定するものであってもよい。 In the present embodiment, the case where the threshold value is set for the data size of the timbre waveform has been described, but the present invention is not limited to this, and for example, the pitch and velocity that define the timbre waveform. The threshold value may be set based on the same concept as described above.

また、本実施形態においては、演奏時のCPU202の処理負担を軽減し、処理時間を削減するために、上記のデータサイズがしきい値以下の波形データの転送処理に先立って、演奏で指示された楽音の波形データが予めRAM208上に転送されて存在しているか否かを調査(検索)する。該当する波形データが既にRAM208上に存在する場合には、CPU202は大容量フラッシュメモリ212からの波形データの転送を行わず、RAM208内で当該波形データを流用する。この波形データの流用方法については、詳しく後述する。 Further, in the present embodiment, in order to reduce the processing load of the CPU 202 during the performance and reduce the processing time, the performance is instructed prior to the transfer processing of the waveform data whose data size is equal to or less than the threshold value. It is investigated (searched) whether or not the waveform data of the musical sound is transferred to the RAM 208 in advance and exists. If the corresponding waveform data already exists on the RAM 208, the CPU 202 does not transfer the waveform data from the large-capacity flash memory 212, but diverts the waveform data in the RAM 208. The method of diverting this waveform data will be described in detail later.

本実施形態においては、これらの処理により、上記のしきい値を超過する全ての波形データを記憶できる容量に、しきい値以下の波形データを一時保存する波形バッファの記憶容量を加算した程度の記憶容量を有するRAM208を適用すればよいことになる。なお、本願発明者らの検証によれば、本実施形態を適用することにより、RAMに使用される記憶容量を、従前の1/4〜1/5程度に圧縮することができる可能性があることを確認した。 In the present embodiment, by these processes, the storage capacity of the waveform buffer for temporarily storing the waveform data below the threshold value is added to the capacity capable of storing all the waveform data exceeding the above threshold value. A RAM 208 having a storage capacity may be applied. According to the verification by the inventors of the present application, there is a possibility that the storage capacity used for the RAM can be compressed to about 1/4 to 1/5 of the conventional one by applying the present embodiment. It was confirmed.

図6(a)に示す「スタティック波形ディレクトリ」は、図5に示した「RAM上の情報」において、上記の波形データの転送処理に適用されるしきい値(64Kバイト)を超過する波形データが格納されるRAM208のスタティック波形領域のディレクトリの内容を示すものである。このスタティック波形ディレクトリは、図5に示すように、電子鍵盤楽器100の起動時に大容量フラッシュメモリ212の音色波形ディレクトリからしきい値(64Kバイト)を超過する全ての波形データがスタティック波形領域の各領域(記憶領域)に転送され、その際にCPU202のワーク領域(CPUワーク)内に作成される。スタティック波形ディレクトリの内容は、電子鍵盤楽器100の起動後、固定的に記憶されて変更されることはない。 The “static waveform directory” shown in FIG. 6A is waveform data that exceeds the threshold value (64 Kbytes) applied to the above waveform data transfer process in the “information on RAM” shown in FIG. Indicates the contents of the directory of the static waveform area of the RAM 208 in which the data is stored. As shown in FIG. 5, in this static waveform directory, all waveform data exceeding the threshold value (64 Kbytes) from the tone color waveform directory of the large-capacity flash memory 212 when the electronic keyboard instrument 100 is started are in each of the static waveform regions. It is transferred to an area (storage area), and is created in the work area (CPU work) of the CPU 202 at that time. The contents of the static waveform directory are fixedly stored and are not changed after the electronic keyboard instrument 100 is started.

スタティック波形ディレクトリの内容は、図6(a)に示すように、大容量フラッシュメモリ212から転送された波形データ(スタティック波形1、2、・・・N)ごとに、当該波形の属する音色番号、音色内波形番号、当該波形が配置されたスタティック波形領域からの先頭アドレス、波形サイズが格納されている。ここで、大容量フラッシュメモリ212から転送されるスタティック波形の数や、波形データ全体の容量は、上記のしきい値に基づいて予め決定されているので、それに対応させてRAM208上のスタティック波形領域と、スタティック波形ディレクトリの各領域が固定的に割り当てられている。 As shown in FIG. 6A, the contents of the static waveform directory include the tone number to which the waveform belongs for each waveform data (static waveform 1, 2, ... N) transferred from the large-capacity flash memory 212. The waveform number in the tone, the start address from the static waveform area where the waveform is arranged, and the waveform size are stored. Here, since the number of static waveforms transferred from the large-capacity flash memory 212 and the capacity of the entire waveform data are determined in advance based on the above threshold values, the static waveform area on the RAM 208 is correspondingly determined. And each area of the static waveform directory is fixedly allocated.

図6(b)に示す「波形読み出し装置バッファディレクトリ」は、図5に示した「RAM上の情報」において、上記の波形データの転送処理に適用されるしきい値(64Kバイト)以下の波形データが格納されるRAM208のダイナミック波形領域のディレクトリの内容を示すものである。この波形読み出し装置バッファディレクトリは、図5に示すように、電子鍵盤楽器100の演奏時に大容量フラッシュメモリ212の音色波形ディレクトリからしきい値(64Kバイト)以下の波形データが波形読み出し装置バッファ領域の各領域(記憶領域)に転送され、CPU202のワーク領域(CPUワーク)内に確保される。波形読み出し装置バッファディレクトリの内容は、演奏に伴って可変的に記憶され、楽音の発音時や消音時に更新される。 The “waveform reader buffer directory” shown in FIG. 6B is a waveform below the threshold value (64 Kbytes) applied to the above waveform data transfer process in the “information on RAM” shown in FIG. It shows the contents of the directory of the dynamic waveform area of the RAM 208 in which the data is stored. As shown in FIG. 5, in this waveform reader buffer directory, waveform data of the threshold value (64 Kbytes) or less is stored in the waveform reader buffer area from the tone color waveform directory of the large-capacity flash memory 212 when the electronic keyboard instrument 100 is played. It is transferred to each area (storage area) and secured in the work area (CPU work) of the CPU 202. The contents of the waveform reader buffer directory are variably stored as the performance is performed, and are updated when the musical tone is sounded or muted.

波形読み出し装置バッファディレクトリは、波形読み出し装置304ごとに固定長64Kバイトの容量が割り当てられ、256組の波形読み出し装置304に1対1の関係で対応するように波形バッファ1〜256が設定されている。これにより、本実施形態の電子鍵盤楽器100においては、256の同時発音が可能な構成を有している。 In the waveform reader buffer directory, a fixed length of 64 Kbytes is allocated to each waveform reader 304, and waveform buffers 1 to 256 are set so as to correspond to 256 sets of waveform readers 304 in a one-to-one relationship. There is. As a result, the electronic keyboard instrument 100 of the present embodiment has a configuration capable of simultaneously sounding 256.

波形読み出し装置バッファディレクトリには、図6(b)に示すように、各波形読み出し装置304に対応する波形バッファごとに、当該バッファ番号、リンクフラグ、リンクバッファ番号、転送済みフラグ、アクセス中カウント、音色番号、音色内波形番号、波形サイズが格納されている。リンクフラグは、後述する波形データの流用処理において、自身の波形読み出し装置304に対応する波形バッファが、他の波形読み出し装置304に対応する波形バッファに保存されている波形データを流用しているか否かを示すフラグであり、流用している場合には「1」が設定され、流用していない場合には「0」が設定される。リンクバッファ番号は、自身の波形バッファに流用されている波形データが存在する波形バッファの番号を格納する。ここで、自身の波形バッファを対象にして、波形データを流用するリンクを設定することはできないので、当該波形データが割り当てられた(自身の)波形読み出し装置304に対応する波形バッファに残っている場合にはリンクを設定せずに、当該波形バッファを波形データの読み出し動作にそのまま使用する。 In the waveform read device buffer directory, as shown in FIG. 6 (b), for each waveform buffer corresponding to each waveform read device 304, the buffer number, the link flag, the link buffer number, the transferred flag, the access count, and the like. The timbre number, the waveform number in the timbre, and the waveform size are stored. The link flag indicates whether or not the waveform buffer corresponding to the own waveform reading device 304 is diverting the waveform data stored in the waveform buffer corresponding to the other waveform reading device 304 in the waveform data diversion processing described later. It is a flag indicating whether or not, and "1" is set when it is diverted, and "0" is set when it is not diverted. The link buffer number stores the number of the waveform buffer in which the waveform data diverted to its own waveform buffer exists. Here, since it is not possible to set a link for diverting the waveform data to its own waveform buffer, the waveform data remains in the waveform buffer corresponding to the (own) waveform readout device 304 to which the waveform data is assigned. In this case, the waveform buffer is used as it is for the reading operation of the waveform data without setting the link.

また、転送済みフラグは、流用される波形バッファから実際に波形データの転送が完了しているか否かを示すフラグであり、転送済みであれば「1」が設定される。アクセス中カウントは、波形データが流用される波形バッファにおいて、どれだけの数の波形読み出し装置304からアクセスされているかを示すものであり、発音時にはこのカウントをインクリメントし、読み出しの完了時にデクリメントすることにより、「0」の時に当該波形バッファが未使用であることを示す。音色番号、音色内波形番号、波形サイズは、波形バッファに読み込まれている波形データに固有の情報である。具体的には、例えば図6(b)に示すバッファ番号「2」の波形バッファにおいては、リンクフラグが「1」であり、リンクバッファ番号が「4」であることから、バッファ番号が「4」の波形バッファに保存されている波形データを流用しており、また、転送済みフラグが「1」、アクセス中カウントが「2」であることから、波形バッファ「4」の波形データが実際に読み込まれている状態にあり、当該波形バッファ「4」に対して2個の波形読み出し装置304に対応する波形バッファが現在アクセス中で読み出しを行っている状態であることが示されている。 Further, the transferred flag is a flag indicating whether or not the transfer of waveform data is actually completed from the diverted waveform buffer, and if it has been transferred, "1" is set. The access count indicates how many waveform readers 304 are accessing the waveform buffer in which the waveform data is diverted. The count is incremented at the time of sounding and decremented at the completion of reading. Indicates that the waveform buffer is unused when it is "0". The timbre number, the waveform number in the timbre, and the waveform size are information unique to the waveform data read in the waveform buffer. Specifically, for example, in the waveform buffer of the buffer number "2" shown in FIG. 6B, the link flag is "1" and the link buffer number is "4", so that the buffer number is "4". Since the waveform data stored in the waveform buffer of "" is diverted, and the transferred flag is "1" and the access count is "2", the waveform data of the waveform buffer "4" is actually It is shown that the waveform buffer is in the read state, and the waveform buffers corresponding to the two waveform readers 304 are currently being accessed and are being read out with respect to the waveform buffer “4”.

波形読み出し装置バッファディレクトリに格納されるこれらの情報は、RAM208内の各波形バッファにおける波形データの保存状態や、その波形データの流用状態(すなわち、波形バッファのリンク先設定や使用状態等)を示す情報であって、上述した管理情報に含まれ、逐次更新しながら(リアルタイムに)管理される。 These pieces of information stored in the waveform reader buffer directory indicate the storage state of the waveform data in each waveform buffer in the RAM 208 and the diversion state of the waveform data (that is, the link destination setting and the usage state of the waveform buffer, etc.). It is information, which is included in the above-mentioned management information, and is managed (in real time) while being updated sequentially.

<電子楽器の制御方法>
次に、本実施形態に係る電子鍵盤楽器の制御方法(楽音生成方法)について、図面を参照して詳しく説明する。ここでは、本発明の特徴である楽音生成方法を含む、電子鍵盤楽器の制御方法全体について説明する。また、以下に示す一連の制御処理は、CPU202及び音源LSI204において、RAM208に記憶された所定の制御プログラムを実行することにより実現されるものである。
<Control method for electronic musical instruments>
Next, the control method (musical tone generation method) of the electronic keyboard instrument according to the present embodiment will be described in detail with reference to the drawings. Here, the entire control method of the electronic keyboard instrument including the musical tone generation method, which is a feature of the present invention, will be described. Further, the series of control processes shown below are realized by executing a predetermined control program stored in the RAM 208 in the CPU 202 and the sound source LSI 204.

(RAM上の波形データの流用方法)
まず最初に、本実施形態に係る電子鍵盤楽器100に適用されるRAM208上の波形データの流用方法について説明する。 本実施形態に係る電子鍵盤楽器100において、演奏者による押鍵時には、CPU202は、同時発音数が多い(すなわち、発音チャンネルが多数ある)ため、まず、キーアサイナによって押鍵を割り当てる音源LSI204の波形読み出し装置304を決定する。ここで、キーアサインは発音が停止している波形読み出し装置304から優先的に割り当てられるが、その波形読み出し装置304自体が読み出しを停止している場合であっても、波形読み出し装置304の波形バッファが他の波形読み出し装置304により使用されているような場合には、当該波形読み出し装置304に割り当てを行わず、極力現在の状態を維持する判断を行う。
(How to divert waveform data on RAM)
First, a method of diverting waveform data on the RAM 208 applied to the electronic keyboard instrument 100 according to the present embodiment will be described. In the electronic keyboard instrument 100 according to the present embodiment, when the player presses a key, the CPU 202 has a large number of simultaneous sounds (that is, there are many sound channels). Determine device 304. Here, the key assignment is preferentially assigned from the waveform reading device 304 whose sound is stopped, but even when the waveform reading device 304 itself has stopped reading, the waveform buffer of the waveform reading device 304 Is used by another waveform reading device 304, the waveform reading device 304 is not assigned, and a determination is made to maintain the current state as much as possible.

より具体的には、CPU202は、例えば各波形読み出し装置304をどのような順序で、どのような波形データの読み出しに使用したかを示す履歴情報を逐次更新しながら(リアルタイムに)管理して、当該履歴情報に基づいて、どの波形読み出し装置304からも波形データの読み出し動作に使用されていない波形バッファに対応付けられた波形読み出し装置304や、使用頻度が低い波形読み出し装置304、時間的に古い波形読み出し装置304、或いは、読み出した波形データのデータサイズが小さい波形読み出し装置304から、優先的に割り当てて波形読み出し動作を実行させる。 More specifically, the CPU 202 manages (in real time), for example, sequentially updating the history information indicating what kind of waveform data is read out in what order each waveform reading device 304 is used. Based on the history information, the waveform reading device 304 associated with the waveform buffer that is not used for the waveform data reading operation from any waveform reading device 304, the waveform reading device 304 that is infrequently used, and the time old The waveform reading device 304 or the waveform reading device 304 having a small data size of the read waveform data is preferentially assigned to execute the waveform reading operation.

次いで、CPU202は、押鍵時のベロシティと鍵域に基づいて、図4(a)に示した音色波形のスプリット情報から演奏で指示された楽音の波形番号を特定し、該当する波形データが図5に示したRAM208上の音色波形ディレクトリに存在しているか否かを調査する。ここで、CPU202は、まず、RAM208上の音色波形ディレクトリのスタティック波形領域に、該当する波形データが存在しているか否かを調査し、スタティック波形領域に存在しない場合には、ダイナミック波形領域である波形読み出し装置バッファ領域に存在しているか否かをさらに調査する。 Next, the CPU 202 identifies the waveform number of the musical tone instructed by the performance from the split information of the timbre waveform shown in FIG. 4A based on the velocity and the key area at the time of key pressing, and the corresponding waveform data is shown in the figure. It is investigated whether or not it exists in the tone waveform directory on the RAM 208 shown in 5. Here, the CPU 202 first investigates whether or not the corresponding waveform data exists in the static waveform area of the tone color waveform directory on the RAM 208, and if it does not exist in the static waveform area, it is a dynamic waveform area. Further investigate whether or not it exists in the waveform reader buffer area.

該当する波形データがRAM208上のスタティック波形領域に存在している場合には、CPU202は、当該波形データを後述する発音のための読み出し動作の対象とする。また、該当する波形データがスタティック波形領域に存在せず、波形読み出し装置バッファ領域に存在している場合には、CPU202は、当該波形データを大容量フラッシュメモリ212から読み込まずに、同一のRAM208内で当該バッファ領域をリンク先に設定することにより当該波形データを流用する。 When the corresponding waveform data exists in the static waveform area on the RAM 208, the CPU 202 makes the waveform data a target of a read operation for sounding, which will be described later. Further, when the corresponding waveform data does not exist in the static waveform area but exists in the waveform reader buffer area, the CPU 202 does not read the waveform data from the large-capacity flash memory 212, but in the same RAM 208. By setting the buffer area as the link destination in, the waveform data is diverted.

これにより、大容量フラッシュメモリ212からRAM208への転送処理に比較して非常に短い時間で波形データをRAM208上に配置することができる。なお、割り当てられた波形読み出し装置304に対応する波形バッファに既に当該波形データが存在している場合には、波形データを転送する必要はなく、当該波形データが発音のための読み出し動作に使用される。一方、該当する波形データがスタティック波形領域、及び、波形読み出し装置バッファ領域のいずれにも存在していない場合には、CPU202は、大容量フラッシュメモリ212に記憶された該当する波形データをRAM208へ転送する。 As a result, the waveform data can be arranged on the RAM 208 in a very short time as compared with the transfer process from the large-capacity flash memory 212 to the RAM 208. If the waveform data already exists in the waveform buffer corresponding to the assigned waveform reading device 304, it is not necessary to transfer the waveform data, and the waveform data is used for the reading operation for sounding. To. On the other hand, when the corresponding waveform data does not exist in either the static waveform area or the waveform reader buffer area, the CPU 202 transfers the corresponding waveform data stored in the large-capacity flash memory 212 to the RAM 208. To do.

そして、指示された楽音の波形データがRAM208上に存在し、割り当てられた波形読み出し装置304に対応する波形バッファの位置が確定した時点で、CPU202は、音源LSI204において発音のための読み出し動作を開始する。 Then, when the instructed musical tone waveform data exists on the RAM 208 and the position of the waveform buffer corresponding to the assigned waveform reading device 304 is determined, the CPU 202 starts the reading operation for sound generation in the sound source LSI 204. To do.

以下、上記の波形データの流用方法を適用した電子鍵盤楽器の制御方法について詳しく説明する。
(メインルーチン)
図7は、本実施形態に係る電子鍵盤楽器の制御方法のメインルーチンを示すフローチャートである。
Hereinafter, a control method for an electronic keyboard instrument to which the above waveform data diversion method is applied will be described in detail.
(Main routine)
FIG. 7 is a flowchart showing a main routine of a control method for an electronic keyboard instrument according to the present embodiment.

本実施形態に係る電子鍵盤楽器の制御方法においては、概略、以下のような処理動作が実行される。まず、演奏者により電子鍵盤楽器100の装置電源がパワーオンされると、CPU202は図7に示すメインルーチンを起動し、装置各部を初期化する初期化処理を実行する(ステップS702)。 In the method for controlling an electronic keyboard instrument according to the present embodiment, the following processing operations are roughly executed. First, when the device power of the electronic keyboard instrument 100 is powered on by the performer, the CPU 202 activates the main routine shown in FIG. 7 and executes an initialization process for initializing each part of the device (step S702).

次いで、初期化処理が完了すると、CPU202は演奏者が音色選択ボタン104等を操作した際のスイッチ処理(ステップS704〜S708)、鍵盤102を弾いた際の押鍵イベントや離鍵イベントを処理する鍵盤処理(ステップS710〜S718)、電子鍵盤楽器100の外部から受信したMIDI(Musical Instrument Digital Interface)メッセージのノートオンイベントやノートオフイベントを処理するMIDI受信処理(ステップS720〜S728)、音源における一定時間ごとの処理を行う音源定期処理(ステップS730)の一連の処理動作を繰り返し実行する。 Next, when the initialization process is completed, the CPU 202 processes a switch process (steps S704 to S708) when the performer operates the tone color selection button 104 or the like, and a key press event or a key release event when the keyboard 102 is played. Keyboard processing (steps S710-S718), MIDI reception processing (steps S720-S728) for processing note-on events and note-off events of MIDI (Musical Instrument Digital Interface) messages received from outside the electronic keyboard instrument 100, constant in the sound source. A series of processing operations of the sound source periodic processing (step S730), which performs processing for each hour, is repeatedly executed.

なお、図7に示したフローチャートにおいては図示を省略したが、CPU202は上述した各処理動作(ステップS702〜S730)の実行中に、演奏モードが終了や中断したり装置電源をパワーオフしたりする状態の変化を検出した場合には、メインルーチンを強制的に終了する。 Although not shown in the flowchart shown in FIG. 7, the CPU 202 terminates or interrupts the performance mode or powers off the device power during each of the above-described processing operations (steps S702 to S730). When a change in state is detected, the main routine is forcibly terminated.

以下、上述した各処理動作について、具体的に説明する。
(初期化処理)
図8は、本実施形態に係る電子鍵盤楽器の制御方法に適用される初期化処理を示すフローチャートである。
Hereinafter, each of the above-mentioned processing operations will be specifically described.
(Initialization process)
FIG. 8 is a flowchart showing an initialization process applied to the control method of the electronic keyboard instrument according to the present embodiment.

本実施形態に係る電子鍵盤楽器の制御方法に適用される初期化処理においては、図8に示すフローチャートのように、まず、CPU202は、大容量フラッシュメモリ212からCPUプログラム、CPUデータ、DSPプログラム、DSPデータをRAM208に転送した後(ステップS802、S804)、引き続き、大容量フラッシュメモリ212から音色波形ディレクトリ部分をRAM208上の指定したアドレスに転送する(ステップS806)。ここで、音色波形ディレクトリ部分は、図4(b)に示したように、各音色の各波形について、分割条件となる鍵域及びベロシティ域情報と、大容量フラッシュメモリ212内での配置アドレス、波長サイズに関する情報がまとめられたテーブル形式を有している。 In the initialization process applied to the control method of the electronic keyboard instrument according to the present embodiment, first, as shown in the flowchart shown in FIG. 8, the CPU 202 is charged from the large-capacity flash memory 212 to the CPU program, CPU data, DSP program, and so on. After transferring the DSP data to the RAM 208 (steps S802 and S804), the tone color waveform directory portion is subsequently transferred from the large-capacity flash memory 212 to the designated address on the RAM 208 (step S806). Here, as shown in FIG. 4B, the tone color waveform directory portion includes the key area and velocity area information that are the division conditions for each waveform of each tone color, and the arrangement address in the large-capacity flash memory 212. It has a table format in which information on wavelength size is collected.

次いで、CPU202は、この音色波形ディレクトリから電子鍵盤楽器100の起動時にRAM208に転送すべき、スタティック波形領域部分と図6(a)に示したスタティック波形ディレクトリをRAM208上に構築するスタティック波形領域読み出し処理を実行する(ステップS808)。 Next, the CPU 202 performs a static waveform area reading process for constructing a static waveform area portion and the static waveform directory shown in FIG. 6A on the RAM 208, which should be transferred from this tone waveform directory to the RAM 208 when the electronic keyboard instrument 100 is started. Is executed (step S808).

次いで、CPU202は、音源LSI204の波形読み出し装置304が波形データの読み出し動作に使用する、図6(b)に示した波形読み出し装置バッファディレクトリ部分をRAM208上に構築するために、各波形読み出し装置304に対応する波形バッファを初期化する波形読み出し装置バッファ初期化処理を実行する(ステップS810)。 Next, the CPU 202 uses each waveform reading device 304 to construct the waveform reading device buffer directory portion shown in FIG. 6B on the RAM 208, which is used by the waveform reading device 304 of the sound source LSI 204 for reading the waveform data. The waveform reader buffer initialization process for initializing the waveform buffer corresponding to the above is executed (step S810).

次いで、CPU202は、大容量フラッシュメモリ212からピッチやフィルター、音量の設定など発音に必要な音色パラメータをRAM208上に転送する(ステップS812)。 Next, the CPU 202 transfers the tone parameters necessary for sounding, such as pitch, filter, and volume settings, from the large-capacity flash memory 212 to the RAM 208 (step S812).

(スタティック波形領域読み出し処理)
図9は、本実施形態に係る電子鍵盤楽器の制御方法の初期化処理に適用されるスタティック波形領域読み出し処理を示すフローチャートである。
(Static waveform area read processing)
FIG. 9 is a flowchart showing a static waveform region reading process applied to the initialization process of the control method of the electronic keyboard instrument according to the present embodiment.

上述した初期化処理に適用されるスタティック波形領域読み出し処理においては、図9に示すフローチャートのように、まず、CPU202は、スタティック波形の数を管理するためのカウンタ(B)を「0」に初期化する(ステップS902)。次いで、CPU202は、スタティック波形をRAM208上に転送する際のアドレス情報として、スタティック波形を配置すべき先頭アドレスを設定して初期化する(ステップS904)。 In the static waveform area reading process applied to the initialization process described above, first, as shown in the flowchart shown in FIG. 9, the CPU 202 initially sets the counter (B) for managing the number of static waveforms to “0”. (Step S902). Next, the CPU 202 sets and initializes the start address to which the static waveform should be arranged as the address information when transferring the static waveform to the RAM 208 (step S904).

次いで、CPU202は、音色波形ディレクトリテーブルの先頭から順に、波形サイズを確認し、予め設定されたしきい値(64Kバイト)を超過する波形サイズを有するスタティック波形か否かの判断を行う(ステップS908)。波形サイズがしきい値(64Kバイト)を超過する場合には、CPU202は、当該波形をスタティック波形であると判断し、大容量フラッシュメモリ212から先のアドレス情報のRAM208上のアドレスに対して、当該波形データを上記サイズ分転送する(ステップS910)。このとき、CPU202は、スタティック波形ディレクトリ情報として、転送した波形の音色番号、音色内波形番号、配置先頭アドレス、波形サイズをCPUワークに設定する(ステップS912)。 Next, the CPU 202 checks the waveform size in order from the top of the tone color waveform directory table, and determines whether or not the waveform is a static waveform having a waveform size exceeding a preset threshold value (64 Kbytes) (step S908). ). When the waveform size exceeds the threshold value (64 Kbytes), the CPU 202 determines that the waveform is a static waveform, and refers to the address on the RAM 208 of the address information beyond the large-capacity flash memory 212. The waveform data is transferred for the above size (step S910). At this time, the CPU 202 sets the tone color number, the in-tone waveform number, the arrangement start address, and the waveform size of the transferred waveform in the CPU work as static waveform directory information (step S912).

次いで、CPU202は、アドレス情報のアドレスに対して、転送した波形の波形サイズを加算し、RAM208上に配置される波形のアドレス情報を更新するとともに(ステップS914)、スタティック波形の数を管理するカウンタ(B)をインクリメントする(ステップS916)。一方、波形サイズがしきい値(64Kバイト)以下である場合には、CPU202は、スタティック波形の転送を行わず、現在の設定を維持する。CPU202は、上記の一連の処理動作(ステップS908〜S916)を音色波形ディレクトリテーブルの要素数分(すなわち、テーブル情報の最後の要素まで)繰り返すループ処理(ステップS906、S918)を実行する。当該ループ処理が終了した後、CPU202は、スタティック波形の数をCPUワークに保存する(ステップS920)。 Next, the CPU 202 adds the waveform size of the transferred waveform to the address of the address information, updates the address information of the waveform arranged on the RAM 208 (step S914), and manages the number of static waveforms. (B) is incremented (step S916). On the other hand, when the waveform size is equal to or less than the threshold value (64 Kbytes), the CPU 202 does not transfer the static waveform and maintains the current setting. The CPU 202 executes a loop process (steps S906, S918) in which the above series of processing operations (steps S908 to S916) are repeated for the number of elements of the tone waveform directory table (that is, up to the last element of the table information). After the loop processing is completed, the CPU 202 saves the number of static waveforms in the CPU work (step S920).

(波形読み出し装置バッファ初期化処理)
図10は、本実施形態に係る電子鍵盤楽器の制御方法の初期化処理に適用される波形読み出し装置バッファ初期化処理を示すフローチャートである。
(Waveform reader buffer initialization process)
FIG. 10 is a flowchart showing a waveform reading device buffer initialization process applied to the initialization process of the control method of the electronic keyboard instrument according to the present embodiment.

上述した初期化処理に適用される波形読み出し装置バッファ初期化処理においては、図10に示すフローチャートのように、まず、CPU202は、RAM208上に配置される波形バッファの番号を管理するカウンタ(C)を「1」に設定して初期化する(ステップS1002)。次いで、CPU202は、バッファ番号の「1」の波形バッファから順に、波形読み出し装置バッファディレクトリに格納されているリンクフラグ、転送済みフラグ、アクセス中カウント、音色番号、音色内波形番号、波形サイズを「0」に設定し(ステップS1006)、リンクバッファ番号を自身の波形バッファ番号(=カウンタ値)に設定する(ステップS1008)。これにより、波形バッファ番号とリンクバッファ番号が同じ場合には、他の波形バッファに対して読み出し動作を行っておらず、自身の波形バッファに対して読み出し動作を行っている状態に設定される。 In the waveform reader buffer initialization process applied to the above-described initialization process, first, as shown in the flowchart shown in FIG. 10, the CPU 202 first manages the number of the waveform buffer arranged on the RAM 208. Is set to "1" and initialized (step S1002). Next, the CPU 202 sets the link flag, the transferred flag, the access count, the tone number, the in-tone waveform number, and the waveform size stored in the waveform reader buffer directory in order from the waveform buffer having the buffer number “1”. It is set to "0" (step S1006), and the link buffer number is set to its own waveform buffer number (= counter value) (step S1008). As a result, when the waveform buffer number and the link buffer number are the same, the read operation is not performed on the other waveform buffers, and the read operation is performed on the own waveform buffer.

次いで、CPU202は、RAM208上に配置される波形バッファ番号を管理するカウンタ(C)をインクリメントする(ステップS1010)。CPU202は、上記の一連の処理動作(ステップS1006〜S1010)を、256組の波形読み出し装置に1対1の関係で対応する256個の各波形バッファに対して繰り返すループ処理(ステップS1004、S1012)を実行して、各波形バッファを初期化する。 Next, the CPU 202 increments the counter (C) that manages the waveform buffer number arranged on the RAM 208 (step S1010). The CPU 202 repeats the above series of processing operations (steps S1006 to S1010) for each of the 256 waveform buffers corresponding to 256 sets of waveform reading devices in a one-to-one relationship (steps S1004 and S1012). To initialize each waveform buffer.

(スイッチ処理)
図11は、本実施形態に係る電子鍵盤楽器の制御方法のスイッチ処理に適用される音色選択処理を示すフローチャートである。
(Switch processing)
FIG. 11 is a flowchart showing a tone color selection process applied to the switch process of the control method of the electronic keyboard instrument according to the present embodiment.

演奏者が電子鍵盤楽器100に備えられたボタンやスイッチ類を操作した際に実行されるスイッチ処理(ステップS704)においては、CPU202は、当該スイッチ操作により音色選択イベントが発生したか否かを判断し(ステップS706)、音色選択イベントが発生したと判断した場合には、音色選択処理を実行する(ステップS708)。 In the switch process (step S704) executed when the performer operates the buttons and switches provided on the electronic keyboard instrument 100, the CPU 202 determines whether or not a tone color selection event has occurred due to the switch operation. (Step S706), and when it is determined that the tone color selection event has occurred, the tone color selection process is executed (step S708).

音色選択処理においては、図11に示すフローチャートのように、CPU202は、演奏者が音色選択ボタン104を操作することにより指定された音色番号を、後述する押鍵処理などで使用するために、RAM208上のCPUワークに保存する(ステップS1102)。一方、音色選択イベントが発生していないと判断した場合、或いは、上記の音色選択処理が終了した場合には、CPU202は、後述する鍵盤処理を実行する(ステップS710)。 In the tone color selection process, as shown in the flowchart shown in FIG. 11, the CPU 202 uses the tone color number designated by the performer by operating the tone color selection button 104 in the key pressing process described later, so that the RAM 208 is used. It is saved in the above CPU work (step S1102). On the other hand, when it is determined that the tone color selection event has not occurred, or when the above tone color selection process is completed, the CPU 202 executes the keyboard process described later (step S710).

(鍵盤処理)
図12は、本実施形態に係る電子鍵盤楽器の制御方法の鍵盤処理に適用される押鍵処理及び離鍵処理を示すフローチャートである。図13は、本実施形態に係る電子鍵盤楽器の制御方法の鍵盤処理に適用されるノートオン処理及びノートオフ処理を示すフローチャートである。
(Keyboard processing)
FIG. 12 is a flowchart showing a key pressing process and a key release process applied to the keyboard processing of the control method of the electronic keyboard instrument according to the present embodiment. FIG. 13 is a flowchart showing a note-on process and a note-off process applied to the keyboard process of the electronic keyboard instrument control method according to the present embodiment.

上記のスイッチ処理(ステップS704)の後に実行される鍵盤処理(ステップS710)においては、CPU202は、演奏者が電子鍵盤楽器100に備えられた鍵盤102を操作することにより押鍵イベントや離鍵イベントが発生したか否かをそれぞれ判断する(ステップS712、S716)。CPU202は、押鍵イベントが発生したと判断した場合には、後述する押鍵処理を実行し(ステップS714)、離鍵イベントが発生したと判断した場合には、後述する離鍵処理を実行する(ステップS718)。 In the keyboard process (step S710) executed after the above switch process (step S704), the CPU 202 causes a key press event or a key release event by the performer operating the keyboard 102 provided on the electronic keyboard instrument 100. Is determined, respectively (steps S712 and S716). When the CPU 202 determines that a key pressing event has occurred, it executes a key pressing process described later (step S714), and when it determines that a key release event has occurred, it executes a key release process described later. (Step S718).

押鍵処理においては、図12(a)に示すフローチャートのように、CPU202は、演奏者が鍵盤102を弾いた際の押鍵操作による演奏情報に含まれる鍵盤位置及び押された強さを、それぞれキー番号(ノートナンバー)及びベロシティに変換してノートオン情報として保持し(ステップS1202)、ノートオンイベントとして処理を実行する(ステップS1204)。 In the key pressing process, as shown in the flowchart shown in FIG. 12A, the CPU 202 determines the key position and the pressing strength included in the performance information by the key pressing operation when the performer plays the keyboard 102. It is converted into a key number (note number) and velocity, respectively, and held as note-on information (step S1202), and processing is executed as a note-on event (step S1204).

ノートオン処理においては、図13(a)に示すフローチャートのように、CPU202は、まず、押鍵処理において演奏情報から変換されたノートオン情報から波形情報を取得する処理を実行し(ステップS1302)、次いで、音源LSI204の波形読み出し装置304における読み出し開始処理を実行する(ステップS1304)。 In the note-on process, as shown in the flowchart shown in FIG. 13A, the CPU 202 first executes a process of acquiring waveform information from the note-on information converted from the performance information in the key press process (step S1302). Next, the read start process in the waveform read device 304 of the sound source LSI 204 is executed (step S1304).

また、離鍵処理においては、図12(b)に示すフローチャートのように、CPU202は、演奏者が鍵盤102を弾いた際の離鍵による演奏情報に含まれる鍵盤位置を、キー番号(ノートナンバー)に変換してノートオフ情報として保持し(ステップS1222)、ノートオフイベントとして処理を実行する(ステップS1224)。 Further, in the key release process, as shown in the flowchart shown in FIG. 12B, the CPU 202 determines the key position (note number) included in the performance information due to the release of the key when the performer plays the key 102. ), Retained as note-off information (step S1222), and processing is executed as a note-off event (step S1224).

ノートオフ処理においては、図13(b)に示すフローチャートのように、CPU202は、まず、押鍵処理において演奏情報から変換されたノートオフ情報からキー番号(ノートナンバー)を取得する(ステップS1322)。次いで、CPU202は、波形読み出し装置304の番号「1」から順に、波形読み出し装置304の状態を確認し、波形を読み出し中の各波形読み出し装置304に対して、RAM208上のCPUワークから波形読み出し装置304に対応するキー番号を取得して、ノートオフ情報から取得したキー番号と一致するか否かの比較を行う(ステップS1326)。キー番号が一致した場合には、CPU202は、波形読み出し装置304に接続されている音量制御(アンプエンベロープ)に対して、リリースレベルを「0」に設定して、RAM208上の音色パラメータから得られるリリースレイトを設定する(ステップS1328)。一方、キー番号が一致しない場合には、CPU202は、現在のアンプエンベロープの設定を維持する。CPU202は、上記の一連の処理動作(ステップS1326〜S1328)を、波形を読み出し中の波形読み出し装置304の数分繰り返すループ処理(ステップS1324、S1330)を実行する。 In the note-off process, as shown in the flowchart shown in FIG. 13 (b), the CPU 202 first acquires a key number (note number) from the note-off information converted from the performance information in the key press process (step S1322). .. Next, the CPU 202 confirms the state of the waveform reading device 304 in order from the number "1" of the waveform reading device 304, and for each waveform reading device 304 that is reading the waveform, the waveform reading device from the CPU work on the RAM 208. The key number corresponding to 304 is acquired, and it is compared whether or not it matches the key number acquired from the note-off information (step S1326). When the key numbers match, the CPU 202 sets the release level to "0" for the volume control (amplifier envelope) connected to the waveform reading device 304, and obtains it from the tone parameter on the RAM 208. The release rate is set (step S1328). On the other hand, if the key numbers do not match, the CPU 202 maintains the current amplifier envelope setting. The CPU 202 executes a loop process (steps S1324, S1330) in which the above series of processing operations (steps S1326 to S1328) are repeated for a number of minutes of the waveform reading device 304 that is reading the waveform.

ここで、上記の押鍵処理において実行されるノートオン処理に適用される各処理動作について詳しく説明する。
(波形情報取得処理)
図14は、本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形情報取得処理を示すフローチャートである。
Here, each processing operation applied to the note-on processing executed in the above key pressing processing will be described in detail.
(Waveform information acquisition processing)
FIG. 14 is a flowchart showing a waveform information acquisition process applied to the note-on process of the control method of the electronic keyboard instrument according to the present embodiment.

ノートオン処理において実行される波形情報取得処理においては、図14に示すフローチャートのように、CPU202は、まず、押鍵処理において取得したノートオン情報からキー番号(ノートナンバー)及びベロシティを取得するとともに(ステップS1402)、RAM208上のCPUワークから音色選択処理において保存された音色番号を取得する(ステップS1404)。 In the waveform information acquisition process executed in the note-on process, the CPU 202 first acquires the key number (note number) and velocity from the note-on information acquired in the key press process, as shown in the flowchart shown in FIG. (Step S1402), the tone color number saved in the tone color selection process is acquired from the CPU work on the RAM 208 (step S1404).

次いで、CPU202は、音色波形ディレクトリテーブルの先頭から順に、取得したキー番号、ベロシティ及び音色番号について、テーブル情報と一致するか否かの比較を行う(ステップS1406)。CPU202は、この比較処理において、音色番号が一致し、キー番号が最高キー番号以下且つ最低キー番号以上であり、さらにベロシティが最大ベロシティ以下且つ最小ベロシティ以上に該当するテーブル情報を抽出して(ステップS1410〜S1418)、当該テーブルの波形番号と波形サイズ、波形領域先頭からのアドレスを取得する(ステップS1420〜S1424)。一方、上記の比較処理において、音色番号が一致しない、又は、キー番号が最高キー番号より大きい、又は、最低キー番号より小さい、又は、ベロシティが最大ベロシティより大きい、又は、最小ベロシティより小さい、のうちのいずれかの条件に該当する場合には、CPU202は、波形番号等の波形情報の取得を行わない。CPU202は、上記の一連の処理動作(ステップS1410〜S1418)を音色波形ディレクトリテーブルの要素数分(すなわち、テーブル情報の最後の要素まで)繰り返すループ処理(ステップS1408、S1426)を実行する。 Next, the CPU 202 compares whether or not the acquired key number, velocity, and tone color number match the table information in order from the beginning of the tone color waveform directory table (step S1406). In this comparison process, the CPU 202 extracts table information in which the tone color numbers match, the key numbers are the highest key number or less and the lowest key number or more, and the velocity is the maximum velocity or less and the minimum velocity or more (step). S141 to S1418), the waveform number and waveform size of the table, and the address from the beginning of the waveform area are acquired (steps S142 to S1424). On the other hand, in the above comparison process, the tone color numbers do not match, the key number is larger than the highest key number, or smaller than the lowest key number, or the velocity is larger than the maximum velocity or smaller than the minimum velocity. When any of the conditions is met, the CPU 202 does not acquire waveform information such as a waveform number. The CPU 202 executes a loop process (steps S1408, S1426) in which the above series of processing operations (steps S141 to S1418) are repeated for the number of elements of the tone waveform directory table (that is, up to the last element of the table information).

(波形読み出し開始処理)
図15は、本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置の波形読み出し開始処理を示すフローチャートである。
(Waveform read start processing)
FIG. 15 is a flowchart showing a waveform reading start processing of the waveform reading device applied to the note-on processing of the control method of the electronic keyboard instrument according to the present embodiment.

ノートオン処理において実行される波形読み出し装置の波形読み出し開始処理においては、図15に示すフローチャートのように、CPU202は、まず、波形情報取得処理において取得した波形サイズが、予め設定されたしきい値(64Kバイト)を超過するか否かの判断を行う(ステップS1502)。波形サイズがしきい値(64Kバイト)を超過する場合には、後述するスタティック波形の読み出し開始処理を実行し(ステップS1504)、一方、波形サイズがしきい値(64Kバイト)以下である場合には、後述する波形読み出し装置バッファの割り当て処理を実行する(ステップS1506)。 In the waveform reading start processing of the waveform reading device executed in the note-on processing, as shown in the flowchart shown in FIG. 15, the CPU 202 first sets the waveform size acquired in the waveform information acquisition processing to a preset threshold value. It is determined whether or not (64 Kbytes) is exceeded (step S1502). When the waveform size exceeds the threshold value (64 Kbytes), the static waveform read start process described later is executed (step S1504), while when the waveform size is equal to or less than the threshold value (64 Kbytes). Executes the waveform reader buffer allocation process described later (step S1506).

(スタティック波形の読み出し開始処理)
図16は、本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用されるスタティック波形の読み出し開始処理を示すフローチャートである。
(Static waveform read start processing)
FIG. 16 is a flowchart showing a static waveform read start process applied to the note-on process of the electronic keyboard instrument control method according to the present embodiment.

ノートオン処理において取得した波形サイズがしきい値(64Kバイト)を超過する場合に実行されるスタティック波形の読み出し開始処理においては、図16に示すフローチャートのように、CPU202は、まず、音源LSI204の波形発生器302において、どの波形読み出し装置304を使用するかを決定する割り当て処理を実行する(ステップS1602)。波形読み出し装置304の割り当て処理については後述する。次いで、CPU202は、割り当てられた波形読み出し装置304の情報として、押鍵処理において取得したキー番号を離鍵処理(ノートオフ処理)などで使用するために、RAM208上のCPUワークに保存する(ステップS1604)。 In the static waveform read start process executed when the waveform size acquired in the note-on process exceeds the threshold value (64 Kbytes), the CPU 202 first uses the sound source LSI 204 as shown in the flowchart shown in FIG. In the waveform generator 302, an allocation process for determining which waveform reading device 304 is to be used is executed (step S1602). The allocation process of the waveform reading device 304 will be described later. Next, the CPU 202 saves the key number acquired in the key pressing process as the information of the assigned waveform reading device 304 in the CPU work on the RAM 208 for use in the key release processing (note-off processing) or the like (step). S1604).

次いで、CPU202は、スタティック波形ディレクトリの先頭から順に、上記の音色選択処理及び波形情報取得処理により取得した音色番号及び波形番号について、ディレクトリ情報と一致するか否かの比較を行う(ステップS1608、S1610)。音色番号及び波形番号が共に一致する場合には、CPU202は、スタティック波形番号に基づいて当該波形がRAM208上に配置されている先頭アドレスを取得し(ステップS1612)、割り当てられた波形読み出し装置304により、取得した先頭アドレスから波形読み出し動作を開始する(ステップS1616)。一方、上記の比較処理において、音色番号又は波形番号のうちのいずれかが不一致の場合には、CPU202は、先頭アドレスの取得を行わない。CPU202は、上記の一連の処理動作(ステップS1608〜S1610)をCPUワークに保存されているスタティック波形数分繰り返すループ処理(ステップS1606、S1614)を実行する。 Next, the CPU 202 compares whether or not the tone color numbers and waveform numbers acquired by the above tone color selection process and waveform information acquisition process match the directory information in order from the beginning of the static waveform directory (steps S1608, S1610). ). When both the tone color number and the waveform number match, the CPU 202 acquires the start address in which the waveform is arranged on the RAM 208 based on the static waveform number (step S1612), and the assigned waveform reading device 304 uses the assigned waveform reading device 304. , The waveform reading operation is started from the acquired start address (step S1616). On the other hand, in the above comparison process, if either the tone color number or the waveform number does not match, the CPU 202 does not acquire the start address. The CPU 202 executes a loop process (steps S1606, S1614) in which the above series of processing operations (steps S1608 to S1610) are repeated for the number of static waveforms stored in the CPU work.

(波形読み出し装置の割り当て処理)
図17は、本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置の割り当て処理を示すフローチャートである。
(Allocation processing of waveform reader)
FIG. 17 is a flowchart showing an allocation process of the waveform reading device applied to the note-on process of the control method of the electronic keyboard instrument according to the present embodiment.

上記のスタティック波形の読み出し開始処理において実行される波形読み出し装置の割り当て処理においては、図17に示すフローチャートのように、CPU202は、まず、波形読み出し装置304を割り当てる候補の番号として「1」を仮設定して初期化する(ステップS1702)。 In the waveform reading device allocation process executed in the static waveform reading start process, the CPU 202 first tentatively sets "1" as a candidate number for allocating the waveform reading device 304, as shown in the flowchart shown in FIG. Set and initialize (step S1702).

次いで、CPU202は、波形読み出し装置304の番号「1」から順に、波形読み出し装置304の状態を確認し、波形データの読み出し中か否かの判断を行う(ステップS1706)。現在の波形読み出し装置304が波形データを読み出し中の場合には、CPU202は、割り当て候補となる波形読み出し装置304の番号(候補番号)に基づいて、当該候補番号の波形読み出し装置304の状態を確認する(ステップS1708)。候補番号の波形読み出し装置304が波形データを読み出し中の場合には、CPU202は、現在の波形読み出し装置304の番号のアクセス中カウントの値と、割り当てる波形読み出し装置の候補番号のアクセス中カウントの値との比較を行う(ステップS1710)。割り当てる波形読み出し装置304の候補番号のアクセス中カウントの値が大きい場合(すなわち、現在の波形読み出し装置304の番号のアクセス中カウントの値が割り当てる波形読み出し装置の候補番号のアクセス中カウントの値より小さい場合)には、CPU202は、割り当てる波形読み出し装置304の候補番号を現在の波形読み出し装置304の番号に更新設定する(ステップS1718)。 Next, the CPU 202 checks the state of the waveform reading device 304 in order from the number "1" of the waveform reading device 304, and determines whether or not the waveform data is being read (step S1706). When the current waveform reading device 304 is reading waveform data, the CPU 202 confirms the state of the waveform reading device 304 having the candidate number based on the number (candidate number) of the waveform reading device 304 as an allocation candidate. (Step S1708). When the waveform reading device 304 of the candidate number is reading the waveform data, the CPU 202 determines the value of the accessing count of the number of the current waveform reading device 304 and the value of the accessing count of the candidate number of the waveform reading device to be assigned. Comparison with (step S1710). When the value of the accessing count of the candidate number of the waveform reading device 304 to be assigned is large (that is, the value of the accessing count of the current waveform reading device 304 number is smaller than the value of the accessing count of the candidate number of the waveform reading device to be assigned). In the case), the CPU 202 updates and sets the candidate number of the waveform reading device 304 to be assigned to the number of the current waveform reading device 304 (step S1718).

一方、ステップS1708において、候補番号の波形読み出し装置304が波形データを読み出していない場合には、CPU202は、当該波形読み出し装置304が停止しているものと判断して、波形読み出し装置304の番号の更新を行わず、現在の設定を維持する。また、ステップS1710において、割り当てる波形読み出し装置304の候補番号のアクセス中カウントの値が小さい場合(すなわち、現在の波形読み出し装置304の番号のアクセス中カウントの値が割り当てる波形読み出し装置の候補番号のアクセス中カウントの値以上の場合)には、CPU202は、波形読み出し装置304の番号の更新を行わず、現在の設定を維持する。 On the other hand, in step S1708, when the waveform reading device 304 of the candidate number does not read the waveform data, the CPU 202 determines that the waveform reading device 304 is stopped, and determines that the waveform reading device 304 has the number of the waveform reading device 304. Keep the current settings without updating. Further, in step S1710, when the value of the accessing count of the candidate number of the waveform reading device 304 to be assigned is small (that is, the access of the candidate number of the waveform reading device to be assigned by the value of the accessing count of the current waveform reading device 304 number). In the case of the value of the medium count or more), the CPU 202 does not update the number of the waveform reading device 304 and maintains the current setting.

一方、ステップS1706において、現在の波形読み出し装置304が波形データを読み出していない(停止)場合には、CPU202は、現在の波形読み出し装置304の番号に対応する波形バッファのアクセス中カウントの値が「0」になっているか否かを判断する(ステップS1712)。アクセス中カウントの値が「0」の場合は、CPU202は、他の波形読み出し装置304からの波形バッファへのアクセスがなく、且つ、波形読み出し動作も停止していると判断して、現在の波形読み出し装置304を割り当てる(ステップS1722)。 On the other hand, in step S1706, when the current waveform reading device 304 is not reading (stopping) the waveform data, the CPU 202 sets the value of the accessing count of the waveform buffer corresponding to the number of the current waveform reading device 304 to ". It is determined whether or not it is "0" (step S1712). When the value of the access count is "0", the CPU 202 determines that there is no access to the waveform buffer from the other waveform reading device 304 and the waveform reading operation is also stopped, and the current waveform. The reading device 304 is assigned (step S1722).

一方、ステップS1712において、アクセス中カウントの値が「0」以外の場合は、CPU202は、他の波形読み出し装置304からの波形バッファへのアクセスがあると判断して、割り当て候補番号の波形読み出し装置304の状態を確認する(ステップS1714)。候補番号の波形読み出し装置304が波形データを読み出し中の場合には、CPU202は、割り当てる波形読み出し装置304の候補番号を現在の波形読み出し装置304の番号に更新設定する(ステップS1718)。 On the other hand, in step S1712, when the value of the access count is other than "0", the CPU 202 determines that there is access to the waveform buffer from another waveform reading device 304, and the waveform reading device of the allocation candidate number. The state of 304 is confirmed (step S1714). When the waveform reading device 304 of the candidate number is reading the waveform data, the CPU 202 updates and sets the candidate number of the assigned waveform reading device 304 to the number of the current waveform reading device 304 (step S1718).

一方、ステップS1714おいて、候補番号の波形読み出し装置304が波形データを読み出していない場合には、CPU202は、当該波形読み出し装置304が停止しているものと判断して、現在の波形読み出し装置304の番号のアクセス中カウントの値と、割り当てる波形読み出し装置の候補番号のアクセス中カウントの値との比較を行う(ステップS1716)。割り当てる波形読み出し装置304の候補番号のアクセス中カウントの値が大きい場合(すなわち、現在の波形読み出し装置304の番号のアクセス中カウントの値が割り当てる波形読み出し装置の候補番号のアクセス中カウントの値より小さい場合)には、CPU202は、割り当てる波形読み出し装置304の候補番号を現在の波形読み出し装置304の番号に更新設定する(ステップS1718)。 On the other hand, in step S1714, when the waveform reading device 304 of the candidate number does not read the waveform data, the CPU 202 determines that the waveform reading device 304 is stopped, and the current waveform reading device 304 The value of the in-access count of the number of is compared with the value of the in-access count of the candidate number of the waveform reading device to be assigned (step S1716). When the value of the accessing count of the candidate number of the waveform reading device 304 to be assigned is large (that is, the value of the accessing count of the current waveform reading device 304 number is smaller than the value of the accessing count of the candidate number of the waveform reading device to be assigned). In the case), the CPU 202 updates and sets the candidate number of the waveform reading device 304 to be assigned to the number of the current waveform reading device 304 (step S1718).

一方、ステップS1716において、割り当てる波形読み出し装置304の候補番号のアクセス中カウントの値が小さい場合(すなわち、現在の波形読み出し装置304の番号のアクセス中カウントの値が割り当てる波形読み出し装置の候補番号のアクセス中カウントの値以上の場合)は、波形読み出し装置304の番号の更新を行わず、現在の設定を維持する。CPU202は、上記の一連の処理動作(ステップS1706〜S1718)を波形読み出し装置304の数分繰り返すループ処理(ステップS1704、S1720)を実行する。 On the other hand, in step S1716, when the value of the accessing count of the candidate number of the waveform reading device 304 to be assigned is small (that is, the access of the candidate number of the waveform reading device to be assigned by the value of the accessing count of the current waveform reading device 304 number). (When the value is equal to or greater than the medium count value), the number of the waveform reading device 304 is not updated, and the current setting is maintained. The CPU 202 executes a loop process (steps S1704, S1720) in which the above series of processing operations (steps S1706 to S1718) are repeated for several minutes of the waveform reading device 304.

当該ループ処理が終了した後、CPU202は、波形読み出し装置の数分の状態の確認が終了した時点で、割り当てる波形読み出し装置304の番号が確定していない場合には、候補番号の波形読み出し装置をスタティック波形用に割り当てる(ステップS1724)。このとき、CPU202は、割り当てられた波形読み出し装置304が波形データの読み出し中か否かの判断を行い(ステップS1726)、波形読み出し中の場合には、ハイリリース処理(波形読み出し装置304に接続されている音量制御において、音量レベルを急速に「0」にする処理)を実行した後(ステップS1728)、割り当てられた波形読み出し装置304の波形読み出し動作を停止する。一方、波形データを読み出していない場合には、CPU202は、当該波形読み出し装置304が停止しているものと判断して、現在の設定を維持する。 After the loop processing is completed, the CPU 202 uses the waveform reading device of the candidate number if the number of the waveform reading device 304 to be assigned is not determined when the confirmation of the state for the number of waveform reading devices is completed. Allocate for static waveforms (step S1724). At this time, the CPU 202 determines whether or not the assigned waveform reading device 304 is reading the waveform data (step S1726), and if the waveform is being read, the CPU 202 is connected to the high release process (waveform reading device 304). In the volume control, the waveform reading operation of the assigned waveform reading device 304 is stopped after executing the process (process of rapidly setting the volume level to "0") (step S1728). On the other hand, when the waveform data is not read, the CPU 202 determines that the waveform reading device 304 is stopped, and maintains the current setting.

(波形読み出し装置バッファの割り当て処理)
図18、図19は、本実施形態に係る電子鍵盤楽器の制御方法のノートオン処理に適用される波形読み出し装置バッファの割り当て処理を示すフローチャートである。
(Waveform reader buffer allocation process)
18 and 19 are flowcharts showing a waveform readout device buffer allocation process applied to the note-on process of the electronic keyboard instrument control method according to the present embodiment.

ノートオン処理において取得した波形サイズがしきい値(64Kバイト)以下である場合に実行される波形読み出し装置バッファの割り当て処理においては、図18、図19に示すフローチャートのように、CPU202は、まず、音源LSI204の波形発生器302において、どの波形読み出し装置304を使用するかを決定する割り当て処理を実行する(ステップS1802)。ここでは、図16、図17のフローチャートに示した、波形読み出し装置304の割り当て処理(ステップS1602)と同等の処理が適用される。 In the waveform reader buffer allocation process executed when the waveform size acquired in the note-on process is equal to or less than the threshold value (64 Kbytes), the CPU 202 first, as shown in the flowcharts shown in FIGS. In the waveform generator 302 of the sound source LSI 204, an allocation process for determining which waveform reader 304 to use is executed (step S1802). Here, a process equivalent to the allocation process (step S1602) of the waveform reading device 304 shown in the flowcharts of FIGS. 16 and 17 is applied.

次いで、CPU202は、割り当てられた波形読み出し装置304の情報として、このときのキー番号をCPUワークに保存する(ステップS1804)。次いで、CPU202は、上記の音色選択処理及び波形情報取得処理により取得した音色番号及び波形番号について、割り当てられた波形読み出し装置304に対応する波形バッファの情報と一致するか否かの比較を行う(ステップS1806〜S1810)。音色番号及び波形番号が共に一致する場合には、CPU202は、既に波形データが転送済みであると判断して(ステップS1812)、自身の波形バッファの先頭から波形読み出し動作を開始する(ステップS1838)。一方、上記の比較処理において、音色番号又は波形番号のうちのいずれかが不一致の場合には、CPU202は、他の波形バッファに既に波形データが転送されていないかを確認する。 Next, the CPU 202 saves the key number at this time in the CPU work as the information of the assigned waveform reading device 304 (step S1804). Next, the CPU 202 compares whether or not the tone color number and the waveform number acquired by the above tone color selection process and the waveform information acquisition process match the information of the waveform buffer corresponding to the assigned waveform readout device 304 (). Steps S1806 to S1810). When both the tone color number and the waveform number match, the CPU 202 determines that the waveform data has already been transferred (step S1812), and starts the waveform reading operation from the beginning of its own waveform buffer (step S1838). .. On the other hand, in the above comparison process, if either the tone color number or the waveform number does not match, the CPU 202 confirms whether or not the waveform data has already been transferred to another waveform buffer.

まず、CPU202は、波形バッファカウンタ(C)を「1」に初期化し(ステップS1814)、バッファ番号の「1」の波形バッファから順に、上記の音色選択処理及び波形情報取得処理により取得した音色番号及び波形番号について、各波形バッファに保存されている波形データの情報と一致するか否かの比較を行う(ステップS1818、S1820)。音色番号及び波形番号が共に一致する場合には、CPU202は、上記の比較処理を停止し、図19に示すフローチャートのように、一致した波形バッファのカウンタの値とリンクバッファ番号が一致するか否かの比較を行う(ステップS1902)。リンクバッファ番号が波形バッファカウンタの値と一致する場合には、CPU202は、この波形バッファの番号を自身の波形バッファのリンクバッファ番号に設定する(ステップS1904)。一方、リンクバッファ番号が波形バッファカウンタと一致しない場合には、CPU202は、この波形バッファのリンクバッファ番号を自身の波形バッファのリンクバッファ番号に設定する(ステップS1906)。 First, the CPU 202 initializes the waveform buffer counter (C) to "1" (step S1814), and sequentially obtains the tone number obtained by the above-mentioned tone color selection process and waveform information acquisition process in order from the waveform buffer having the buffer number "1". And the waveform numbers are compared with each other to see if they match the information of the waveform data stored in each waveform buffer (steps S1818 and S1820). When both the tone color number and the waveform number match, the CPU 202 stops the above comparison process, and as shown in the flowchart shown in FIG. 19, whether or not the counter value of the matched waveform buffer and the link buffer number match. (Step S1902). When the link buffer number matches the value of the waveform buffer counter, the CPU 202 sets the waveform buffer number to the link buffer number of its own waveform buffer (step S1904). On the other hand, when the link buffer number does not match the waveform buffer counter, the CPU 202 sets the link buffer number of this waveform buffer to the link buffer number of its own waveform buffer (step S1906).

次いで、CPU202は、自身の波形バッファのリンクフラグを「1」に設定し(ステップS1908)、自身の波形バッファのリンクバッファ番号に対応する波形バッファのアクセス中カウントの値をインクリメントし(ステップS1910)、自身の波形バッファのリンクバッファ番号に対応する波形バッファの先頭アドレスから波形読み出し動作を開始する(ステップS1912)。すなわち、RAM208に既に転送済みの波形データについては、新たに大容量フラッシュメモリ212から転送する動作を行わない。CPU202は、上記の一連の処理動作(ステップS1818〜S1820)を、256個の各波形バッファに対して繰り返すループ処理(ステップS1816、S1822)を実行する。 Next, the CPU 202 sets the link flag of its own waveform buffer to "1" (step S1908), and increments the value of the access count of the waveform buffer corresponding to the link buffer number of its own waveform buffer (step S1910). , The waveform read operation is started from the start address of the waveform buffer corresponding to the link buffer number of its own waveform buffer (step S1912). That is, the waveform data that has already been transferred to the RAM 208 is not newly transferred from the large-capacity flash memory 212. The CPU 202 executes a loop process (steps S1816, S1822) in which the above series of processing operations (steps S1818 to S1820) are repeated for each of the 256 waveform buffers.

上記の一連の処理動作(ステップS1818〜S1820)において、音色番号又は波形番号のうちのいずれかが不一致で、音色番号及び波形番号が共に一致するものがなかった場合には、CPU202は、自身の波形バッファに波形情報取得処理で取得した波形番号、波形サイズ、波形領域先頭からのアドレス情報に基づいて、大容量フラッシュメモリ212からRAM208に波形データの転送を行う(ステップS1824)。CPU202は、この転送動作と同時に、自身の波形バッファのリンクフラグを「0」に設定し(ステップS1826)、割り当てられた波形読み出し装置304のリンクバッファ番号を自身の波形バッファ番号に設定する(ステップS1828)。さらに、CPU202は、アクセス中カウントの値を「1」に設定し(ステップS1830)、RAM208上への波形データの転送に伴って、音色波形ディレクトリに音色番号、音色内波形番号、波形サイズを設定する(ステップS1832)。 In the above series of processing operations (steps S1818 to S1820), if either the tone color number or the waveform number does not match and neither the tone color number nor the waveform number matches, the CPU 202 has its own The waveform data is transferred from the large-capacity flash memory 212 to the RAM 208 based on the waveform number, the waveform size, and the address information from the beginning of the waveform area acquired in the waveform information acquisition process to the waveform buffer (step S1824). At the same time as this transfer operation, the CPU 202 sets the link flag of its own waveform buffer to "0" (step S1826), and sets the link buffer number of the assigned waveform reading device 304 to its own waveform buffer number (step). S1828). Further, the CPU 202 sets the value of the access count to "1" (step S1830), and sets the tone number, the in-tone waveform number, and the waveform size in the tone waveform directory as the waveform data is transferred onto the RAM 208. (Step S1832).

次いで、CPU202は、波形データの転送状態を確認し、波形データの転送が終了したか否かの判断を行う(ステップS1834)。波形データを転送中である場合には、CPU202は、当該状態を維持し、波形データの転送が終了した場合には、転送済みフラグに「1」を設定し(ステップS1836)、自身の波形バッファの先頭から波形読み出し動作を開始する(ステップS1834)。 Next, the CPU 202 confirms the transfer state of the waveform data, and determines whether or not the transfer of the waveform data is completed (step S1834). When the waveform data is being transferred, the CPU 202 maintains the state, and when the transfer of the waveform data is completed, the transferred flag is set to "1" (step S1836), and its own waveform buffer. The waveform reading operation is started from the beginning of (step S1834).

(MIDI受信処理)
図7に示すメインルーチンに戻って、上記の鍵盤処理(ステップS710)の後に実行されるMIDI受信処理(ステップS720)においては、CPU202は、受信したMIDIメッセージにノートオンイベントやノートオフイベントが含まれているか否かをそれぞれ判断し(ステップS722、S726)、ノートオンイベントがあると判断した場合には、ノートオン処理を実行し(ステップS724)、ノートオフイベントがあると判断した場合には、ノートオフ処理を実行する(ステップS728)。ここでは、図12、図13のフローチャートに示した、ノートオン処理(ステップS1204)、又は、ノートオフ処理(ステップS1224)と同等の処理が適用される。
(MIDI reception processing)
Returning to the main routine shown in FIG. 7, in the MIDI reception process (step S720) executed after the above keyboard process (step S710), the CPU 202 includes a note-on event and a note-off event in the received MIDI message. If it is determined that there is a note-on event (step S722, S726), the note-on process is executed (step S724), and if it is determined that there is a note-off event, it is determined. , The note-off process is executed (step S728). Here, a process equivalent to the note-on process (step S1204) or the note-off process (step S1224) shown in the flowcharts of FIGS. 12 and 13 is applied.

(音源定期処理)
図20は、本実施形態に係る電子鍵盤楽器の制御方法に適用される音源定期処理を示すフローチャートである。
(Sound source periodic processing)
FIG. 20 is a flowchart showing a sound source periodic process applied to the control method of the electronic keyboard instrument according to the present embodiment.

上記のMIDI受信処理(ステップS720)の後に実行される音源定期処理(ステップS730)においては、CPU202は、或る一定時間ごとに、図20に示すフローチャートのように、音源処理を実行する。CPU202は、波形読み出し装置304の番号「1」から順に、波形読み出し装置304の状態を確認し、波形を読み出し中の各波形読み出し装置304に対して、音量制御(アンプエンベロープ)のレベルが「0」になっているか否かを判断する(ステップS2004)。音量制御のレベルが「0」になっている場合には、CPU202は、波形読み出し装置304の波形読み出し動作を停止する波形読み出し停止処理を実行する(ステップS2006)。一方、音量制御のレベルが「0」になっていない場合には、CPU202は、波形読み出し装置304の波形読み出し動作を停止せず、現在の状態を維持する。CPU202は、上記の一連の処理動作(ステップS2004〜S2006)を、波形データを読み出し中の波形読み出し装置304の数分繰り返すループ処理(ステップS2002、S2008)を実行する。 In the sound source periodic processing (step S730) executed after the MIDI reception processing (step S720), the CPU 202 executes the sound source processing at regular time intervals as shown in the flowchart shown in FIG. The CPU 202 confirms the state of the waveform reading device 304 in order from the number "1" of the waveform reading device 304, and the volume control (amplifier envelope) level is "0" for each waveform reading device 304 that is reading the waveform. It is determined whether or not it is (step S2004). When the volume control level is "0", the CPU 202 executes a waveform read-out stop process for stopping the waveform read-out operation of the waveform read-out device 304 (step S2006). On the other hand, when the volume control level is not "0", the CPU 202 does not stop the waveform reading operation of the waveform reading device 304 and maintains the current state. The CPU 202 executes a loop process (steps S2002, S2008) in which the above series of processing operations (steps S2004 to S2006) are repeated for the number of waveform reading devices 304 that are reading the waveform data.

(波形読み出し停止処理)
図21は、本実施形態に係る電子鍵盤楽器の制御方法の音源定期処理に適用される波形読み出し装置の波形読み出し停止処理を示すフローチャートである。
(Waveform read stop processing)
FIG. 21 is a flowchart showing a waveform reading stop processing of the waveform reading device applied to the sound source periodic processing of the control method of the electronic keyboard instrument according to the present embodiment.

音源定期処理において実行される波形読み出し装置の波形読み出し停止処理においては、図21に示すフローチャートのように、CPU202は、まず、波形読み出し装置304に対応する波形バッファのリングフラグの値が「1」になっているか否かを判断する(ステップS2102)。リングフラグの値が「1」になっている場合には、CPU202は、リンクバッファ番号に対応する波形バッファのアクセス中カウントの値をデクリメントした後(ステップS2104)、リンクバッファ番号を自身の波形バッファ番号に設定するとともに(ステップS1006)、リンクフラグを「0」に設定する(ステップS1008)。その後、CPU202は、波形読み出し装置304の波形読み出し動作を停止させる(ステップS1010)。一方、ステップS2102において、リングフラグの値が「0」になっている場合には、CPU202は、自身の波形バッファ番号の更新を行わず、現在の設定を維持した状態で、波形読み出し装置304の波形読み出し動作を停止させる(ステップS1010)。 In the waveform reading stop processing of the waveform reading device executed in the sound source periodic processing, the CPU 202 first sets the value of the ring flag of the waveform buffer corresponding to the waveform reading device 304 to "1" as shown in the flowchart shown in FIG. It is determined whether or not it is (step S2102). When the value of the ring flag is "1", the CPU 202 decrements the value of the accessing count of the waveform buffer corresponding to the link buffer number (step S2104), and then sets the link buffer number to its own waveform buffer. While setting the number (step S1006), the link flag is set to "0" (step S1008). After that, the CPU 202 stops the waveform reading operation of the waveform reading device 304 (step S1010). On the other hand, when the value of the ring flag is "0" in step S2102, the CPU 202 does not update its own waveform buffer number, and maintains the current setting of the waveform reading device 304. The waveform reading operation is stopped (step S1010).

このように、本実施形態においては、音源LSI204が楽音発生時に使用するRAM208からなる音源メモリと、音色に使用する全ての波形データを保存するNAND型等の大容量フラッシュメモリ212からなる大容量記憶デバイスとを備え、大容量記憶デバイスから音源メモリへの転送に時間がかかるデータサイズが大きい波形データを常時音源メモリに配置し、比較的データサイズが小さい波形データを、発音時に大容量記憶デバイスから発音ジェネレータ(波形読み出し装置304)ごとに用意された音源メモリの各波形バッファに転送してから発音する。ここで、発音のための読み出し動作の対象となる波形データのうち、比較的データサイズが小さい波形データを大容量記憶デバイスから音源メモリの各波形バッファに転送する処理に先立って、当該波形データが音源メモリ内のいずれかの波形バッファに既に存在する場合には、波形バッファの使用状態等を管理する管理情報に基づいて、当該波形データを保存する波形バッファをリンク先に設定してその波形データを音源メモリ内で流用して音源メモリから直接読み出すことにより発音する。 As described above, in the present embodiment, a large-capacity storage composed of a sound source memory composed of RAM 208 used by the sound source LSI 204 when generating music and a large-capacity flash memory 212 such as a NAND type for storing all waveform data used for sound color. It is equipped with a device, and it takes time to transfer from the large-capacity storage device to the sound source memory. Waveform data with a large data size is always placed in the sound source memory, and waveform data with a relatively small data size is stored from the large-capacity storage device at the time of sounding. The data is transferred to each waveform buffer of the sound source memory prepared for each sound generator (waveform reading device 304) and then sounded. Here, among the waveform data to be read out for sound generation, the waveform data is transferred prior to the process of transferring the waveform data having a relatively small data size from the large-capacity storage device to each waveform buffer of the sound source memory. If it already exists in any of the waveform buffers in the sound source memory, set the waveform buffer that saves the waveform data as the link destination based on the management information that manages the usage status of the waveform buffer, and that waveform data. Is diverted in the sound source memory and read directly from the sound source memory to produce sound.

また、大容量記憶デバイスから音源メモリへの波形データの転送に際しては、上記の波形バッファの使用状態等を管理する管理情報に基づいて、発音ジェネレータにより使用されていない、或いは、使用頻度が低い波形バッファが優先的に選択されて波形データが上書き保存される。さらに、演奏による押鍵時に発音ジェネレータを割り当てる際には、発音ジェネレータの使用履歴を管理する履歴情報に基づいて、発音が停止し且つ使用頻度が低い等の、所定の使用状態の発音ジェネレータから優先的に割り当てて波形読み出し動作が実行される。 Further, when transferring waveform data from a large-capacity storage device to a sound source memory, a waveform that is not used by the sound generator or is used infrequently based on the management information that manages the usage state of the waveform buffer described above. The buffer is preferentially selected and the waveform data is overwritten and saved. Furthermore, when assigning a pronunciation generator when a key is pressed by a performance, priority is given to the pronunciation generator in a predetermined usage state, such as when the pronunciation is stopped and the frequency of use is low, based on the history information that manages the usage history of the pronunciation generator. The waveform read operation is executed.

これにより、データサイズの大きい波形データを、アクセス速度が高速な音源メモリから直接読み出し、データサイズの小さい波形データを、音源メモリ内で流用して直接読み出し、又は、安価な大容量記憶デバイスから読み出して、楽音の生成処理に使用することができる。また、複数の楽音を複数の発音ジェネレータを用いて同時に発音させる場合であっても、高速低容量の音源メモリに記憶する複数の波形データの管理や、各波形データを発音させる発音ジェネレータの管理を効率的に行うことができる。したがって、製品コストを抑制した構成で、複数の波形データを用いた楽音の生成処理に要する時間をより効果的に短縮して、楽音の発生に遅延や途切れのない良好な演奏を実現することができる。これは換言すると、楽音の生成処理に要する所定の時間内に、より多数の音色波形データを読み出して同時に発音させることができることを意味しており、これにより、管楽器や弦楽器等の原音の特徴により近い楽音を再現することができる電子楽器を実現することができる。 As a result, waveform data with a large data size can be read directly from a sound source memory with a high access speed, and waveform data with a small data size can be diverted directly in the sound source memory and read directly, or read from an inexpensive large-capacity storage device. It can be used for music generation processing. In addition, even when multiple musical tones are simultaneously produced using multiple sound generators, management of multiple waveform data stored in a high-speed, low-capacity sound source memory and management of a sound generator that produces each waveform data can be performed. It can be done efficiently. Therefore, with a configuration that suppresses product costs, it is possible to more effectively shorten the time required for the generation process of musical tones using multiple waveform data, and to realize good performance without delay or interruption in the generation of musical tones. it can. In other words, this means that a larger number of timbre waveform data can be read out and sounded at the same time within a predetermined time required for the musical sound generation process, and thus, depending on the characteristics of the original sound of a wind instrument, a stringed instrument, or the like. It is possible to realize an electronic musical instrument that can reproduce close musical sounds.

<変形例>
次に、本実施形態に係る電子鍵盤楽器の制御方法の変形例について説明する。
図22は、本実施形態に係る電子鍵盤楽器の制御方法の変形例に適用される波形読み出し装置バッファの割り当て処理を示すフローチャートである。ここで、上述した実施形態(図18、図19)と同等の処理動作については、同等の符号を付してその説明を省略する。
<Modification example>
Next, a modified example of the control method of the electronic keyboard instrument according to the present embodiment will be described.
FIG. 22 is a flowchart showing a waveform reading device buffer allocation process applied to a modified example of the control method of the electronic keyboard instrument according to the present embodiment. Here, the processing operations equivalent to those of the above-described embodiments (FIGS. 18 and 19) are designated by the same reference numerals and the description thereof will be omitted.

上述した実施形態においては、RAM208上の波形データの流用方法として、データサイズがしきい値以下の波形データについて、大容量フラッシュメモリ212からRAM208に転送する処理に先立って、発音のための読み出し動作の対象となる波形データが、RAM208の他の波形バッファに既に存在するか否かを調査し、存在する場合には、複数の波形バッファを管理する管理情報に基づいて、その波形バッファをリンク先に設定し、保存されている波形データをRAM208内で流用して、波形読み出し装置304により当該リンク先の波形バッファの波形データを直接読み出す場合について説明した。 In the above-described embodiment, as a method of diverting the waveform data on the RAM 208, a read operation for sounding is performed prior to the process of transferring the waveform data whose data size is equal to or less than the threshold value from the large-capacity flash memory 212 to the RAM 208. Investigate whether the waveform data of interest already exists in other waveform buffers of RAM 208, and if so, link to that waveform buffer based on management information that manages multiple waveform buffers. The case where the waveform data stored in the RAM 208 is diverted in the RAM 208 and the waveform data of the linked waveform buffer is directly read by the waveform reading device 304 has been described.

本変形例においては、上述したRAM上の波形データの流用方法として、管理情報に基づいて、既に波形データを保存している波形バッファから、波形読み出し動作のために割り当てられた波形バッファに、当該波形データをコピー転送した後、読み出す手法を有している。ここで、本変形例においては、管理情報として、上述した実施形態に示した波形バッファのリンク先設定や使用状態に関する情報に替えて、流用の対象となる波形データを保存する波形バッファと波形読み出し動作のために割り当てられた波形バッファとの間の、RAM208内での波形データのコピー転送に関する情報を有している。この場合の管理情報においても、各波形バッファにおける波形データの保存状態やコピー転送状態に応じて逐次更新される。 In this modification, as a method of diverting the waveform data on the RAM described above, the waveform buffer already storing the waveform data is transferred to the waveform buffer allocated for the waveform read operation based on the management information. It has a method of reading out waveform data after copying and transferring it. Here, in this modification, as management information, instead of the information related to the link destination setting and the usage state of the waveform buffer shown in the above-described embodiment, the waveform buffer and the waveform read-out for storing the waveform data to be diverted. It has information about copy transfer of waveform data in RAM 208 to and from the waveform buffer allocated for operation. The management information in this case is also sequentially updated according to the storage state and copy transfer state of the waveform data in each waveform buffer.

本変形例に係る電子鍵盤楽器の制御方法においては、上述した実施形態に示した一連の処理動作のうち、特に、波形読み出し装置バッファの割り当て処理(図18、図19)において、次のような処理が実行される。すなわち、図22に示すフローチャートのように、CPU202は、演奏で指示された楽音の音色番号及び波形番号について、RAM208の各波形バッファに保存されている波形データの情報と一致するか否かの比較を行い(ステップS1818、S1820)、音色番号及び波形番号が共に一致する場合には、一致した波形バッファの波形データを、波形読み出し動作のために割り当てられた自身の波形バッファへコピー転送する(ステップS1840)。次いで、CPU202は、この波形データのコピー転送に伴って、音色波形ディレクトリに音色番号、音色内波形番号、波形サイズを設定するとともに(ステップS1832)、波形データの転送状態を確認して(ステップS1834)、波形データの転送が終了した場合には、転送済みフラグに「1」を設定する(ステップS1836)。その後、CPU202は、波形読み出し動作のために割り当てられた波形バッファの先頭から波形読み出しを開始する(ステップS1838)。 In the control method of the electronic keyboard instrument according to the present modification, among the series of processing operations shown in the above-described embodiment, particularly in the waveform reading device buffer allocation processing (FIGS. 18 and 19), the following The process is executed. That is, as shown in the flowchart shown in FIG. 22, the CPU 202 compares whether or not the tone color number and the waveform number of the musical sound instructed in the performance match the information of the waveform data stored in each waveform buffer of the RAM 208. (Steps S1818 and S1820), and if both the tone color number and the waveform number match, the waveform data of the matched waveform buffer is copied and transferred to its own waveform buffer assigned for the waveform read operation (step). S1840). Next, the CPU 202 sets the tone color number, the intra-tone waveform number, and the waveform size in the tone color waveform directory along with the copy transfer of the waveform data (step S1832), and confirms the transfer state of the waveform data (step S1834). ), When the transfer of the waveform data is completed, "1" is set in the transferred flag (step S1836). After that, the CPU 202 starts reading the waveform from the beginning of the waveform buffer allocated for the waveform reading operation (step S1838).

このような変形例においても、データサイズの大きい波形データを、アクセス速度が高速な音源メモリから直接読み出し、データサイズの小さい波形データを、音源メモリ内でコピー転送して読み出し、又は、安価な大容量記憶デバイスから読み出して、楽音の生成処理に使用することができる。したがって、上述した実施形態と同様に、製品コストを抑制した構成で、複数の波形データを用いた楽音の生成処理に要する時間をより効果的に短縮して、楽音の発生に遅延や途切れのない良好な演奏を実現することができる。 Even in such a modification, the waveform data having a large data size can be read directly from the sound source memory having a high access speed, and the waveform data having a small data size can be copied and transferred in the sound source memory to be read, or can be inexpensive. It can be read from a capacitive storage device and used for music generation processing. Therefore, as in the above-described embodiment, the time required for the music sound generation process using the plurality of waveform data can be more effectively shortened by the configuration in which the product cost is suppressed, and the music sound generation is not delayed or interrupted. Good performance can be achieved.

以上、本発明のいくつかの実施形態について説明したが、本発明は、上述した実施形態に限定されるものではなく、特許請求の範囲に記載された発明とその均等の範囲とを含むものである。
以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。
Although some embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, but includes the invention described in the claims and the equivalent scope thereof.
The inventions described in the claims of the original application of the present application are described below.

(付記)
[1]
波形データを読み込んで記憶する複数の記憶領域を有する第1の記憶手段と、
前記第1の記憶手段の選択された記憶領域からそれぞれ波形データを読み込むことにより発音させることが可能な複数の発音制御手段と、
前記発音が指示されたときに、前記発音制御手段の各々による前記記憶領域の各々からの前記波形データの読み込み状況に基づいて、前記指示された発音に用いる前記発音制御手段と前記記憶領域との組合せを決定する制御手段と、
を備えたことを特徴とする楽音生成装置。
(Additional note)
[1]
A first storage means having a plurality of storage areas for reading and storing waveform data,
A plurality of pronunciation control means capable of producing a sound by reading waveform data from the selected storage area of the first storage means, respectively.
When the pronunciation is instructed, the pronunciation control means and the storage area used for the instructed pronunciation are based on the reading status of the waveform data from each of the storage areas by each of the pronunciation control means. Control means to determine the combination and
A musical tone generator characterized by being equipped with.

[2]
前記制御手段は、
前記発音が指示されたときに、前記記憶領域の各々に記憶された前記波形データを読み込んでいる前記発音制御手段の数に基づいて、前記指示された発音に用いる前記記憶領域を選択する、
ことを特徴とする[1]に記載の楽音生成装置。
[2]
The control means
When the pronunciation is instructed, the storage area to be used for the instructed pronunciation is selected based on the number of the pronunciation control means reading the waveform data stored in each of the storage areas.
The musical tone generator according to [1].

[3]
前記制御手段は、
前記発音が指示されたときに、前記記憶領域の各々に記憶された前記波形データを読み込んでいる前記発音制御手段の数が他の前記記憶領域よりも少ない前記記憶領域を、前記指示された発音に用いる前記記憶領域として選択する、
ことを特徴とする[2]に記載の楽音生成装置。
[3]
The control means
When the pronunciation is instructed, the designated pronunciation of the storage area in which the number of the sound control means reading the waveform data stored in each of the storage areas is smaller than that of the other storage areas. Selected as the storage area used in
The musical tone generator according to [2].

[4]
前記制御手段は、
前記複数の記憶領域と前記複数の発音制御手段とを、1対1の関係で対応付けて管理し、
前記発音が指示されたときに、前記記憶領域の各々に記憶された前記波形データを読み込んでいる前記発音制御手段の数が他の前記記憶領域よりも少ない前記記憶領域に対応する前記発音制御手段を、前記指示された発音に用いる前記発音制御手段として選択する、
ことを特徴とする[2]又は[3]に記載の楽音生成装置。
[4]
The control means
The plurality of storage areas and the plurality of pronunciation control means are managed in a one-to-one relationship.
When the pronunciation is instructed, the pronunciation control means corresponding to the storage area in which the number of the sound control means reading the waveform data stored in each of the storage areas is smaller than that of the other storage areas. Is selected as the pronunciation control means used for the indicated pronunciation.
The musical tone generator according to [2] or [3].

[5]
前記制御手段は、
前記発音が指示されたときに、前記複数の発音制御手段の中から発音中ではない前記発音制御手段を、前記指示された発音に用いる前記発音制御手段として選択する、
ことを特徴とする[2]乃至[4]のいずれかに記載の楽音生成装置。
[5]
The control means
When the pronunciation is instructed, the pronunciation control means that is not being pronounced is selected from the plurality of pronunciation control means as the pronunciation control means used for the instructed pronunciation.
The musical tone generator according to any one of [2] to [4].

[6]
前記第1の記憶手段に転送される複数の前記波形データを記憶している第2の記憶手段を更に備え、
前記制御手段は、
前記発音が指示されたときに、前記指示された発音に用いる前記波形データが前記第1の記憶手段に記憶されている場合は、前記第1の記憶手段に記憶されている前記波形データを前記選択された発音制御手段により読み込ませ、前記発音が指示された波形データが前記第1の記憶手段に記憶されていない場合は、前記指示された発音に用いる前記波形データを、前記第2の記憶手段から前記第1の記憶手段の前記決定した記憶領域に転送した後、前記転送して記憶された前記波形データを前記決定した発音制御手段により読み込ませる、
ことを特徴とする[1]乃至[5]のいずれかに記載の楽音生成装置。
[6]
A second storage means for storing the plurality of the waveform data to be transferred to the first storage means is further provided.
The control means
When the pronunciation is instructed, if the waveform data used for the instructed pronunciation is stored in the first storage means, the waveform data stored in the first storage means is stored in the first storage means. When the waveform data read by the selected pronunciation control means and the pronunciation is instructed is not stored in the first storage means, the waveform data used for the instructed pronunciation is stored in the second storage. After transferring from the means to the determined storage area of the first storage means, the transferred and stored waveform data is read by the determined sound control means.
The musical tone generator according to any one of [1] to [5].

[7]
前記制御手段は、前記指示された発音に用いる前記波形データが前記選択された発音制御手段に対応付けられた前記第1の記憶手段の前記記憶領域に記憶されておらず、前記選択された発音制御手段以外の他の前記発音制御手段に対応付けられた前記記憶領域に記憶されている場合には、前記他の発音制御手段に対応付けられた前記記憶領域を、前記選択された発音制御手段のリンク先に設定して、前記他の発音制御手段に対応付けられた前記記憶領域に記憶されている前記波形データを前記選択された発音制御手段により直接読み出して発音させることを特徴とする[6]に記載の楽音生成装置。
[7]
The control means does not store the waveform data used for the instructed pronunciation in the storage area of the first storage means associated with the selected pronunciation control means, and the selected pronunciation. When the storage area associated with the pronunciation control means other than the control means is stored, the storage area associated with the other pronunciation control means is stored in the selected pronunciation control means. The waveform data stored in the storage area associated with the other pronunciation control means is directly read out by the selected pronunciation control means and pronounced. 6] The music sound generator according to.

[8]
前記制御手段は、前記指示された発音に用いる前記波形データが前記選択された発音制御手段に対応付けられた前記第1の記憶手段の前記記憶領域に記憶されておらず、前記選択された発音制御手段以外の他の前記発音制御手段に対応付けられた前記記憶領域に記憶されている場合には、前記他の発音制御手段に対応付けられた前記記憶領域に記憶されている前記波形データを、前記選択された発音制御手段に対応付けられた前記記憶領域にコピー転送して、前記コピー転送された波形データを前記選択された発音制御手段により読み出して発音させることを特徴とする[6]に記載の楽音生成装置。
[8]
The control means does not store the waveform data used for the instructed pronunciation in the storage area of the first storage means associated with the selected pronunciation control means, and the selected pronunciation. When stored in the storage area associated with the pronunciation control means other than the control means, the waveform data stored in the storage area associated with the other pronunciation control means is stored. The copy is transferred to the storage area associated with the selected pronunciation control means, and the copy-transferred waveform data is read out by the selected pronunciation control means to be pronounced [6]. The music sound generator described in.

[9]
前記制御手段は、前記発音が指示された波形データを、前記第2の記憶手段から前記第1の記憶手段に転送する際に、前記第1の記憶手段の前記複数の記憶領域のうちの、いずれの前記発音制御手段からも記憶されている前記波形データを使用されていない前記記憶領域、又は、前記波形データを使用している前記発音制御手段の数が少ない前記記憶領域を選択して、前記転送される波形データを記憶させることを特徴とする[6]に記載の楽音生成装置。
[9]
When the control means transfers the waveform data for which the sound is instructed from the second storage means to the first storage means, the control means of the plurality of storage areas of the first storage means. Select the storage area in which the waveform data stored from any of the sound control means is not used, or the storage area in which the number of the sound control means using the waveform data is small. The music sound generator according to [6], wherein the transferred waveform data is stored.

[10]
前記第1の記憶手段は、前記発音を伴う演奏の開始に先立って、所定の条件を満たす前記波形データを固定的に記憶しておく第1の記憶領域と、前記演奏中に指定されて、前記第2の記憶手段から転送された前記波形データを可変的に記憶しておく第2の記憶領域と、を有することを特徴とする[1]乃至[9]のいずれかに記載の楽音生成装置。
[10]
The first storage means is designated as a first storage area for fixedly storing the waveform data satisfying a predetermined condition prior to the start of the performance accompanied by the sound, and during the performance. The music sound generation according to any one of [1] to [9], which has a second storage area for variably storing the waveform data transferred from the second storage means. apparatus.

[11]
前記第1の記憶手段は、第1の読み出し速度を有するとともに、第1の記憶容量を有する記憶装置であり、
前記第2の記憶手段は、前記第1の読み出し速度よりも遅い第2の読み出し速度を有するとともに、前記第1の記憶容量よりも大きい第2の記憶容量を有する記憶装置であることを特徴とする[1]乃至[10]のいずれかに記載の楽音生成装置。
[11]
The first storage means is a storage device having a first read speed and a first storage capacity.
The second storage means is a storage device having a second read speed slower than the first read speed and a second storage capacity larger than the first storage capacity. The musical sound generator according to any one of [1] to [10].

[12]
波形データを読み込んで記憶する複数の記憶領域を有する第1の記憶手段と、前記第1の記憶手段の選択された記憶領域からそれぞれ波形データを読み込むことにより発音させることが可能な複数の発音制御手段と、を備える楽音生成装置に適用される楽音生成方法であって、
前記発音が指示されたときに、前記発音制御手段の各々による前記記憶領域の各々からの前記波形データの読み込み状況に基づいて、前記指示された発音に用いる前記発音制御手段と前記記憶領域との組合せを決定する、
ことを特徴とする楽音生成方法。
[12]
A first storage means having a plurality of storage areas for reading and storing waveform data, and a plurality of sound control that can be made to sound by reading waveform data from the selected storage areas of the first storage means, respectively. A musical tone generating method applied to a musical tone generating apparatus comprising means and means.
When the pronunciation is instructed, the pronunciation control means and the storage area used for the instructed pronunciation are based on the reading status of the waveform data from each of the storage areas by each of the pronunciation control means. Determine the combination,
A musical tone generation method characterized by this.

[13]
コンピュータを、請求項[1]乃至[11]のいずれかに記載の楽音生成装置として機能させるための、あるいは、コンピュータに、[12]に記載の楽音生成方法を実行させるための楽音生成プログラム。
[13]
A musical tone generation program for causing a computer to function as the musical tone generation device according to any one of claims [1] to [11], or for causing a computer to execute the musical tone generation method according to [12].

[14]
前記[1]乃至[12]のいずれかに記載の楽音生成装置と、
前記発音を伴う演奏により前記波形データを指定するための入力手段と、
前記発音された楽音を出力するための出力手段と、
を備えることを特徴とする電子楽器。
[14]
The musical tone generator according to any one of [1] to [12],
An input means for designating the waveform data by playing with the pronunciation, and
An output means for outputting the pronounced musical tone and
An electronic musical instrument characterized by being equipped with.

100 電子鍵盤楽器(電子楽器)
102 鍵盤(入力手段)
104 音色選択ボタン(入力手段)
202 CPU(制御手段)
204 音源LSI(発音制御手段)
208 RAM(第2の記憶手段)
212 大容量フラッシュメモリ(第1の記憶手段)
304 波形読み出し装置(発音制御手段)
100 Electronic keyboard instrument (electronic musical instrument)
102 keyboard (input means)
104 Tone selection button (input means)
202 CPU (control means)
204 Sound source LSI (pronunciation control means)
208 RAM (second storage means)
212 Large-capacity flash memory (first storage means)
304 Waveform reader (pronunciation control means)

Claims (8)

第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の音色それぞれに対応する波形データを記憶している第1の記憶手段と、
前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを音色の情報と対応付けて記憶する複数の記憶領域を有する第2の記憶手段と、
前記複数の記憶領域のなかのいずれかの記憶領域が可変的に対応付けられる複数の波形読出装置を有する波形発生器と、
音色を指定した発音が指示されたときに、前記指定された音色に対応する波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた形読出装置に読み込ませ、前記指定された音色に対応する波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、前記指定された音色に対応する波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる制御手段と、
を備える楽音生成装置。
A first storage means having a first read speed and a first storage capacity and storing waveform data corresponding to each of a plurality of tones.
It has a second read speed that is faster than the first read speed and has a second storage capacity that is smaller than the first storage capacity, and the waveform data read from the first storage means is used as a timbre. A second storage means having a plurality of storage areas for storing information in association with each other,
A waveform generator having a plurality of waveform readers to which any of the plurality of storage areas is variably associated with each other.
When the waveform data corresponding to the specified timbre is stored in any of the storage areas of the plurality of storage areas when the sound with the specified timbre is instructed, the storage area is one of the above. Is read into a shape reading device associated with any of the storage areas, and when the waveform data corresponding to the specified tone color is not stored in any of the plurality of storage areas, any waveform is used. The first storage means stores waveform data corresponding to the specified tone in either a storage area in which the reading device is not reading or a storage area in which the number of reading waveform reading devices is smaller than that of the other storage areas. A control means for transferring from and reading the transferred storage area into a waveform reader associated with the transferred storage area.
A musical tone generator equipped with.
前記制御手段は、前記指定された音色に対応する前記波形データを、前記第1の記憶手段から前記第2の記憶手段のなかの第1の記憶領域に転送した場合に、前記指定された音色の情報を前記第1の記憶領域と対応付けて記憶する、
請求項1に記載の楽音生成装置。
When the control means transfers the waveform data corresponding to the designated timbre from the first storage means to the first storage area in the second storage means, the designated timbre Information is stored in association with the first storage area.
The musical sound generator according to claim 1.
第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の波形データを記憶している第1の記憶手段と、
前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを記憶する複数の記憶領域を有する第2の記憶手段と、
前記複数の記憶領域のなかのいずれかの記憶領域が可変的に対応付けられる複数の波形読出装置を有する波形発生器と、
発音に用いる波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた形読出装置に読み込ませ、発音に用いる波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、発音に用いる波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる制御手段と、
を備え、
前記制御手段は、前記複数の記憶領域と前記複数の波形読出装置とを、1対1の関係で対応付けて管理する、楽音生成装置。
A first storage means having a first read speed and a first storage capacity and storing a plurality of waveform data,
It has a second read speed faster than the first read speed and a second storage capacity smaller than the first storage capacity, and stores waveform data read from the first storage means. A second storage means having a plurality of storage areas,
A waveform generator having a plurality of waveform readers to which any of the plurality of storage areas is variably associated with each other.
When the waveform data used for sounding is stored in any of the plurality of storage areas, the shape reading device associated with the storage area may be used for the storage area. When the waveform data to be read and used for sounding is not stored in any of the plurality of storage areas, the storage area not read by any of the waveform readers and the number of waveform readers being read are stored in the other. The waveform data used for sounding is transferred from the first storage means to one of the storage areas smaller than the area, and the transferred storage area is read into the waveform reading device associated with the transferred storage area. Control means to make
With
Said control means, said plurality of storage areas and a plurality of waveform readout device, to manage in association with one-to-one relationship, the musical tone generating apparatus.
第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の波形データを記憶している第1の記憶手段と、
前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを記憶する複数の記憶領域を有する第2の記憶手段と、
前記複数の記憶領域のなかのいずれかの記憶領域が可変的に対応付けられる複数の波形読出装置を有する波形発生器と、
発音に用いる波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた形読出装置に読み込ませ、発音に用いる波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、発音に用いる波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる制御手段と、
を備え、
前記制御手段は、前記発音が指示されたときに、前記複数の波形読出装置の中から発音中ではない波形読出装置を、前記指示された発音に用いる波形読出装置として選択する、楽音生成装置。
A first storage means having a first read speed and a first storage capacity and storing a plurality of waveform data,
It has a second read speed faster than the first read speed and a second storage capacity smaller than the first storage capacity, and stores waveform data read from the first storage means. A second storage means having a plurality of storage areas,
A waveform generator having a plurality of waveform readers to which any of the plurality of storage areas is variably associated with each other.
When the waveform data used for sounding is stored in any of the plurality of storage areas, the shape reading device associated with the storage area may be used for the storage area. When the waveform data to be read and used for sounding is not stored in any of the plurality of storage areas, the storage area not read by any of the waveform readers and the number of waveform readers being read are stored in the other. The waveform data used for sounding is transferred from the first storage means to one of the storage areas smaller than the area, and the transferred storage area is read into the waveform reading device associated with the transferred storage area. Control means to make
With
Wherein, when the sound is instructed, the waveform readout device not being sounded from the plurality of waveform readout device, select the waveform readout device used for the indicated sound, tone generation apparatus ..
第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の波形データを記憶している第1の記憶手段と、
前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを記憶する複数の記憶領域を有する第2の記憶手段と、
前記複数の記憶領域のなかのいずれかの記憶領域が可変的に対応付けられる複数の波形読出装置を有する波形発生器と、
発音に用いる波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた形読出装置に読み込ませ、発音に用いる波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、発音に用いる波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる制御手段と、
を備え、
前記第2の記憶手段は、発音を伴う演奏の開始に先立って、所定の条件を満たす波形データを固定的に記憶しておく固定記憶領域と、演奏中に指定されて、前記第1の記憶手段から転送された波形データを可変的に記憶しておく可変記憶領域と、を有し、
前記制御手段は、発音に用いる波形データが前記第2の記憶手段に記憶されていない場合に、発音に用いる波形データを前記第1の記憶手段から前記第2の記憶手段の前記可変記憶領域に転送する、楽音生成装置。
A first storage means having a first read speed and a first storage capacity and storing a plurality of waveform data,
It has a second read speed faster than the first read speed and a second storage capacity smaller than the first storage capacity, and stores waveform data read from the first storage means. A second storage means having a plurality of storage areas,
A waveform generator having a plurality of waveform readers to which any of the plurality of storage areas is variably associated with each other.
When the waveform data used for sounding is stored in any of the plurality of storage areas, the shape reading device associated with the storage area may be used for the storage area. When the waveform data to be read and used for sounding is not stored in any of the plurality of storage areas, the storage area not read by any of the waveform readers and the number of waveform readers being read are stored in the other. The waveform data used for sounding is transferred from the first storage means to one of the storage areas smaller than the area, and the transferred storage area is read into the waveform reading device associated with the transferred storage area. Control means to make
With
The second storage means has a fixed storage area for fixedly storing waveform data satisfying a predetermined condition prior to the start of a performance accompanied by sound, and the first storage unit designated during the performance. It has a variable storage area for variably storing waveform data transferred from the means, and has.
When the waveform data used for sounding is not stored in the second storage means, the control means transfers the waveform data used for sounding from the first storage means to the variable storage area of the second storage means. to forward, the musical tone generating apparatus.
装置が、
第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の音色それぞれに対応する波形データを記憶している第1の記憶手段から波形データを読み込み、
前記第1の記憶手段から読み込まれた波形データを、前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを音色の情報と対応付けて記憶する複数の記憶領域を有する第2の記憶手段に記憶させ、
前記複数の記憶領域のなかのいずれかの記憶領域を複数の波形読出装置のなかのいずれかの波形読出装置に対して可変的に対応付け、
音色を指定した発音が指示されたときに、前記指定された音色に対応する波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた波形読出装置に読み込ませ、前記指定された音色に対応する波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、前記指定された音色に対応する波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる、
楽音生成方法。
The device is
Waveform data is read from a first storage means that has a first read speed and a first storage capacity and stores waveform data corresponding to each of a plurality of tones.
The waveform data read from the first storage means has a second read speed faster than the first read speed and a second storage capacity smaller than the first storage capacity. The waveform data read from the first storage means is stored in a second storage means having a plurality of storage areas for storing the waveform data in association with the tone color information.
A storage area of any of the plurality of storage areas is variably associated with any of the waveform readers of the plurality of waveform readers.
When the waveform data corresponding to the specified timbre is stored in any of the storage areas of the plurality of storage areas when the sound with the specified timbre is instructed, the storage area is one of the above. Is read into a waveform reading device associated with any of the storage areas, and when the waveform data corresponding to the specified tone color is not stored in any of the plurality of storage areas, any waveform is used. The first storage means stores waveform data corresponding to the specified tone in either a storage area in which the reading device is not reading or a storage area in which the number of reading waveform reading devices is smaller than that of the other storage areas. The transferred storage area is read from the waveform reader associated with the transferred storage area.
Musical tone generation method.
コンピュータに、
第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の音色それぞれに対応する波形データを記憶している第1の記憶手段から波形データを読み込み、
前記第1の記憶手段から読み込まれた波形データを、前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを音色の情報と対応付けて記憶する複数の記憶領域を有する第2の記憶手段に記憶させ、
前記複数の記憶領域のなかのいずれかの記憶領域を複数の波形読出装置のなかのいずれかの波形読出装置に対して可変的に対応付け、
音色を指定した発音が指示されたときに、前記指定された音色に対応する波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた波形読出装置に読み込ませ、前記指定された音色に対応する波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、前記指定された音色に対応する波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる、
処理を実行させるための楽音生成プログラム。
On the computer
Waveform data is read from a first storage means that has a first read speed and a first storage capacity and stores waveform data corresponding to each of a plurality of tones.
The waveform data read from the first storage means has a second read speed faster than the first read speed and a second storage capacity smaller than the first storage capacity. The waveform data read from the first storage means is stored in a second storage means having a plurality of storage areas for storing the waveform data in association with the tone color information.
A storage area of any of the plurality of storage areas is variably associated with any of the waveform readers of the plurality of waveform readers.
When the waveform data corresponding to the specified timbre is stored in any of the storage areas of the plurality of storage areas when the sound with the specified timbre is instructed, the storage area is one of the above. Is read into a waveform reading device associated with any of the storage areas, and when the waveform data corresponding to the specified tone color is not stored in any of the plurality of storage areas, any waveform is used. The first storage means stores waveform data corresponding to the specified tone in either a storage area in which the reading device is not reading or a storage area in which the number of reading waveform reading devices is smaller than that of the other storage areas. The transferred storage area is read from the waveform reader associated with the transferred storage area.
A musical tone generation program for executing processing.
第1の読み出し速度を有するとともに第1の記憶容量を有し、複数の波形データを記憶している第1の記憶手段と、
前記第1の読み出し速度よりも速い第2の読み出し速度を有するとともに前記第1の記憶容量よりも小さい第2の記憶容量を有し、前記第1の記憶手段から読み込まれた波形データを記憶する複数の記憶領域を有する第2の記憶手段と、
前記複数の記憶領域のなかのいずれかの記憶領域が可変的に対応付けられる複数の波形読出装置を有する波形発生器と、
ユーザ操作で指定される楽音の発音に用いる波形データを選択する波形選択手段と、
前記波形選択手段により選択された波形データが前記複数の記憶領域のなかのいずれかの記憶領域に記憶されている場合に、前記いずれかの記憶領域を、前記いずれかの記憶領域に対応付けられた波形読出装置に読み込ませ、前記波形選択手段により選択された波形データが前記複数の記憶領域のいずれにも記憶されていない場合に、いずれの波形読出装置も読み込んでいない記憶領域及び、読み込んでいる波形読出装置の数が他の記憶領域よりも少ない記憶領域のいずれかに、前記波形選択手段により選択された波形データを前記第1の記憶手段から転送し、転送された記憶領域を、前記転送された記憶領域に対応付けられた波形読出装置に読み込ませる制御手段と、
前記波形発生器が発生した楽音を出力する出力手段と、
を備える電子楽器。
A first storage means having a first read speed and a first storage capacity and storing a plurality of waveform data,
It has a second read speed faster than the first read speed and a second storage capacity smaller than the first storage capacity, and stores waveform data read from the first storage means. A second storage means having a plurality of storage areas,
A waveform generator having a plurality of waveform readers to which any of the plurality of storage areas is variably associated with each other.
Waveform selection means for selecting waveform data used for sounding musical tones specified by user operation, and
When the waveform data selected by the waveform selection means is stored in any of the plurality of storage areas, the storage area is associated with the storage area. When the waveform data selected by the waveform selection means is not stored in any of the plurality of storage areas, the storage area that is not read by any of the waveform readers and the storage area that is read are read. The waveform data selected by the waveform selection means is transferred from the first storage means to any of the storage areas in which the number of waveform readers is smaller than that of the other storage areas, and the transferred storage area is transferred to the storage area. A control means for reading into a waveform reader associated with the transferred storage area, and
An output means that outputs the musical sound generated by the waveform generator,
Electronic musical instrument equipped with.
JP2018222091A 2018-11-28 2018-11-28 Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument Active JP6851578B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018222091A JP6851578B2 (en) 2018-11-28 2018-11-28 Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018222091A JP6851578B2 (en) 2018-11-28 2018-11-28 Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017058044A Division JP6443772B2 (en) 2017-03-23 2017-03-23 Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument

Publications (3)

Publication Number Publication Date
JP2019032566A JP2019032566A (en) 2019-02-28
JP2019032566A5 JP2019032566A5 (en) 2020-04-23
JP6851578B2 true JP6851578B2 (en) 2021-03-31

Family

ID=65523421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018222091A Active JP6851578B2 (en) 2018-11-28 2018-11-28 Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument

Country Status (1)

Country Link
JP (1) JP6851578B2 (en)

Also Published As

Publication number Publication date
JP2019032566A (en) 2019-02-28

Similar Documents

Publication Publication Date Title
JP3894062B2 (en) Music data distribution device, music data reception device, and program
JP3659149B2 (en) Performance information conversion method, performance information conversion device, recording medium, and sound source device
JP6388048B1 (en) Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument
CN108630178B (en) Tone generating device, tone generating method, recording medium, and electronic musical instrument
WO2001093245A1 (en) Musical composition reproducing apparatus, portable terminal, musical composition reproducing method, and storage medium
AU3890301A (en) A method of compressing a midi file
CN110299128A (en) Electronic musical instrument, method, storage medium
JP3277844B2 (en) Automatic performance device
JPWO2007015321A1 (en) Music output switching device, musical output switching method, computer program for switching musical output
JP6851578B2 (en) Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument
JP3134806B2 (en) Effect giving device and recording medium
JP4548292B2 (en) Sound source setting device and sound source setting program
JP6443773B2 (en) Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument
JP3141789B2 (en) Sound source system using computer software
JP3339372B2 (en) Storage medium storing program for realizing musical sound generating apparatus and musical sound generating method
JP7159583B2 (en) Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument
JP2019168644A (en) Electronic musical instrument, and control method and control program for electronic musical instrument
JP3324409B2 (en) Music processing method and apparatus
JP2709965B2 (en) Music transmission / reproduction system used for BGM reproduction
JPH10149166A (en) Musical sound synthesizer device
JP2956552B2 (en) Musical sound generating method and apparatus
JP3190103B2 (en) Music synthesizer
JP3646823B2 (en) Electronic musical instruments
JPH10124051A (en) Music data processing method, reproducing method for music data after processing, and storage medium
JP2000010557A (en) Tone generator

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200304

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20200918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201110

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210208

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210221

R150 Certificate of patent or registration of utility model

Ref document number: 6851578

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150