JP5648791B2 - Music signal generator - Google Patents

Music signal generator Download PDF

Info

Publication number
JP5648791B2
JP5648791B2 JP2010215204A JP2010215204A JP5648791B2 JP 5648791 B2 JP5648791 B2 JP 5648791B2 JP 2010215204 A JP2010215204 A JP 2010215204A JP 2010215204 A JP2010215204 A JP 2010215204A JP 5648791 B2 JP5648791 B2 JP 5648791B2
Authority
JP
Japan
Prior art keywords
sound
channel
musical
tone
generation
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.)
Expired - Fee Related
Application number
JP2010215204A
Other languages
Japanese (ja)
Other versions
JP2012068575A (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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2010215204A priority Critical patent/JP5648791B2/en
Priority to US13/044,470 priority patent/US8383924B2/en
Publication of JP2012068575A publication Critical patent/JP2012068575A/en
Application granted granted Critical
Publication of JP5648791B2 publication Critical patent/JP5648791B2/en
Expired - Fee Related 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 signal generating apparatus that includes a plurality of tone generation channels for generating a tone signal, and that assigns tone signal generation to tone generation channels in response to a tone signal generation instruction.

従来から、例えば下記特許文献1に示されているように、楽音信号を発生するための複数の発音チャンネルを備えた楽音信号発生装置は知られている。この楽音信号発生装置においては、演奏者が鍵盤を操作して演奏する手動演奏によって発生する楽音信号発生の指示及び予めメモリに記憶しておいた演奏情報を読み出して演奏する自動演奏によって発生する楽音信号発生の指示に応じて、楽音信号発生を1つ又は複数の発音チャンネルに割り当てる。そして、各発音チャンネルにおいて発生した楽音信号の音量レベルが減衰して所定の閾値(以下、ダンプレベルという。)以下になると、新たな押鍵に対してその発音チャンネルが開放されて空きチャンネルとなり、新たに他の楽音信号を発生することができるようになる。   2. Description of the Related Art Conventionally, as shown in Patent Document 1 below, for example, a musical tone signal generating apparatus including a plurality of sound generation channels for generating musical tone signals is known. In this musical tone signal generating apparatus, musical tone signals generated by an automatic performance in which an instruction for generating musical tone signals generated by a manual performance performed by a performer by operating a keyboard and performance information stored in advance in a memory are read out and performed. In response to a signal generation instruction, musical tone signal generation is assigned to one or a plurality of tone generation channels. When the volume level of the musical tone signal generated in each sound generation channel is attenuated to be below a predetermined threshold (hereinafter referred to as a dump level), the sound generation channel is released for a new key press and becomes an empty channel. Another musical tone signal can be newly generated.

特開2001−265343号公報JP 2001-265343 A

上記従来の楽音信号発生装置においては、手動演奏に係る楽音信号と自動演奏に係る楽音信号のダンプレベルは共通である。この場合、空きチャンネルを効率的に確保するためには、ダンプレベルを大きくしておけばよい。このように設定すると、自動演奏においては、同時に複数の楽音が発生され、その音色も多様であることが多いので、そのうちの1つの楽音を比較的音量レベルが大きい段階で消音して、他の楽音を発生させても、楽音が不自然に途切れたように感じられ難いが、手動演奏においては、同時に発生される楽音の数が少なく、音色の種類も限られているので、楽音が不自然に途切れたように感じられ易い。とくに、手動演奏に係る音色が、ピアノ音のように減衰が長い音色である場合には、楽音が不自然に途切れたように感じられ、演奏上好ましくない。一方、ダンプレベルを小さく設定した場合は、発音チャンネルがなかなか開放されず、すぐに発音チャンネルが不足してしまうという問題があった。   In the above conventional musical tone signal generator, the dump level of the musical tone signal related to manual performance and the musical tone signal related to automatic performance are the same. In this case, in order to efficiently secure an empty channel, the dump level may be increased. With this setting, in automatic performance, multiple musical sounds are generated at the same time, and their tones are often diverse, so one of them is muted at a relatively high volume level, Even if a musical tone is generated, it is difficult to feel that the musical tone is unnaturally interrupted, but in manual performance, the number of musical sounds that are generated at the same time is small and the types of timbres are limited. It is easy to feel like being interrupted. In particular, when the timbre related to the manual performance is a timbre with a long decay such as a piano sound, it seems that the musical sound is unnaturally interrupted, which is not preferable for performance. On the other hand, when the dump level is set low, there is a problem that the sound channels are not released easily and the sound channels are insufficient immediately.

本発明は上記問題に対処するためになされたもので、その目的は、演奏中の楽音が不自然に途切れたように感じられることを抑制した楽音信号発生装置を提供することにある。なお、下記本発明の各構成要件の記載においては、本発明の理解を容易にするために、後述する実施形態の対応箇所の符号を括弧内に記載しているが、本発明の各構成要件は、実施形態の符号によって示された対応箇所の構成に限定解釈されるべきものではない。   The present invention has been made to cope with the above-described problems, and an object of the present invention is to provide a musical tone signal generating apparatus that suppresses that the musical tone being played feels unnaturally interrupted. In the description of each constituent element of the present invention below, in order to facilitate understanding of the present invention, reference numerals of corresponding portions of the embodiments described later are shown in parentheses, but each constituent element of the present invention is described. Should not be construed as being limited to the configurations of the corresponding portions indicated by the reference numerals of the embodiments.

上記目的を達成するために、本発明の特徴は、楽音信号を発生する複数の発音チャンネル(CH0,CH1・・・CH127)と、複数の異なる種類の楽音信号の発生指示にそれぞれ応答して、前記複数の異なる種類の楽音信号の発生を前記複数の発音チャンネルのいずれかに割り当てる割り当て手段(S28)とを備えた楽音信号発生装置において、音量レベルに関する複数の互いに異なる閾値を記憶する閾値記憶手段(DS0,DS1)を備え、前記割り当て手段は、前記複数の互いに異なる閾値のうちの1つの閾値を参照する参照情報であって、各発音チャンネルにて発生中の楽音信号の種類に応じた1つの閾値を参照するための参照情報を発音チャンネルごとに記憶する参照情報記憶手段(DP0,DP1・・・DP127)と、前記複数の発音チャンネルのうち、発生中の楽音信号の音量レベルが、前記参照情報を用いて参照した閾値以下である発音チャンネルを、新たな楽音信号の発生を割り当てる発音チャンネルとして選択する第1選択手段(S16b,S16h,S42〜S56)を有することにある。この場合、第1選択手段は、所定の時間間隔ごとに、複数の発音チャンネルにて発生中の楽音信号の音量レベルと、前記参照した閾値とを比較して、前記発生されている楽音信号の音量レベルが前記参照した閾値以下である発音チャンネルを空きチャンネルとして設定する空きチャンネル設定手段(S42〜S56)と、新たな楽音信号の発生の指示があったとき、前記設定されている空きチャンネルを前記新たな楽音信号の発生を割り当てる発音チャンネルとして決定する割り当てチャンネル決定手段(S16b,S16h)とを有するとよい。
In order to achieve the above object, the present invention is characterized in that a plurality of tone generation channels (CH0, CH1... CH127) for generating a musical tone signal and instructions for generating a plurality of different types of musical tone signals are respectively provided. Threshold storage means for storing a plurality of different threshold values relating to the sound volume level in a musical sound signal generating apparatus comprising an assigning means (S28) for assigning the generation of the plurality of different types of musical sound signals to any of the plurality of tone generation channels. (DS0, DS1), and the assigning means is reference information for referring to one of the plurality of different thresholds, and is 1 according to the type of the musical tone signal being generated in each tone generation channel. Reference information storage means (DP0, DP1... DP127) for storing reference information for referring to one threshold value for each sound generation channel; Among a plurality of tone generation channels, the volume level of the tone signal in the generation, the tone generation channel is below the threshold value which is referenced using the reference information, the first selecting means for selecting a sound channel to assign the generation of a new tone signal (S16b, S16h, S42 to S56). In this case, the first selection means compares the volume level of the musical sound signal being generated in a plurality of tone generation channels with the referenced threshold at every predetermined time interval, and When there is an empty channel setting means (S42 to S56) for setting a sound generation channel whose volume level is equal to or less than the referred threshold value as an empty channel, and when there is an instruction to generate a new musical sound signal, the set empty channel is selected. It is preferable to have assigned channel determining means (S16b, S16h) for determining the sound generation channel to which the generation of the new tone signal is assigned.

上記のように構成した楽音信号発生装置によれば、音量レベルの減衰速度が同一であるとき、閾値の大きい楽音信号を発生している発音チャンネルは、閾値の小さい楽音信号を発生している発音チャンネルよりも楽音信号の発生開始からの経過時間が早い時点で開放される。そこで、演奏上の重要度が低い楽音信号の種類については閾値を大きくしておけば、楽音信号の音量レベルが比較的大きくても、楽音信号の発生開始からの経過時間が短い時点で消音して、その楽音信号を発生している発音チャンネルを新たな楽音信号の発生を割り当てる発音チャンネルとして選択できる。一方、演奏上の重要度が高い楽音信号の種類については閾値を小さくしておけば、楽音信号の発生開始からの経過時間が長くなったとしても、その楽音信号を発生している発音チャンネルにて、音量レベルが十分に小さくなるまでその楽音信号を発生させておくことができる。これにより、演奏中の楽音が不自然に途切れたように感じられることを抑制できる。   According to the tone signal generator configured as described above, when the sound volume level decay rate is the same, the tone generation channel generating the tone signal having the large threshold value generates the tone signal generating the tone signal having the small threshold value. It is released when the elapsed time from the start of generation of the musical sound signal is earlier than the channel. Therefore, if the threshold value is increased for the types of musical sound signals that are less important for performance, the sound is muted when the elapsed time from the start of generation of the musical sound signal is short, even if the volume level of the musical sound signal is relatively high. Thus, the tone generation channel generating the tone signal can be selected as the tone generation channel to which generation of a new tone signal is assigned. On the other hand, if the threshold value is reduced for the types of musical sound signals that are highly important in performance, even if the elapsed time from the start of the musical signal generation becomes longer, the tone generation channel that generates the musical sound signal Thus, the musical tone signal can be generated until the volume level becomes sufficiently low. As a result, it is possible to suppress the musical sound being played from being felt unnaturally interrupted.

また、本発明の他の特徴は、楽音信号は、演奏者の手動演奏によって発生される楽音信号と、自動演奏によって発生される楽音信号とを含み、手動演奏に対応した閾値(DS0)は、自動演奏に対応した閾値(DS1)よりも小さくしたことにある。これによれば、自動演奏よりも演奏上の重要度が高い手動演奏によって発生される楽音信号が不自然に途切れたように感じられることを抑制できる。
Another feature of the present invention, easy sound signal, a tone signal is generated by a manual play of the player, and a musical tone signal generated by the automatic performance, a threshold corresponding to a manual play (DS0) is This is because the threshold value (DS1) corresponding to automatic performance is made smaller. According to this, it is possible to suppress a musical sound signal generated by manual performance having higher performance importance than automatic performance from being felt unnaturally interrupted.

また、本発明の他の特徴は、割り当て手段は、発生中の楽音信号の音量レベルが前記参照した閾値以下である発音チャンネルがないとき、複数の発音チャンネルのうち、楽音信号を最も古くから発生している発音チャンネルを前記新たな楽音信号の発生を割り当てる発音チャンネルとして選択する第2選択手段(S16c)を有することにある。これによれば、音量レベルが閾値以下である発音チャンネルがないとき、最も古くから発生されていて演奏上重要でなくなっている楽音信号を発生している発音チャンネルを新たな楽音信号発生を割り当てる発音チャンネルとして選択するので、演奏中の楽音が不自然に途切れたように感じられることを抑制できる。
Another feature of the present invention is that the assigning means generates a musical sound signal from the earliest among a plurality of sound generation channels when there is no sound generation channel whose volume level of the generated music signal is equal to or lower than the reference threshold value. The present invention has second selection means (S16c) for selecting a sound generation channel as a sound generation channel to which generation of the new musical tone signal is assigned. According to this, when there is no sound channel whose volume level is below the threshold value, the sound channel that generates the sound signal that has been generated from the oldest and is no longer important for performance is assigned a new sound signal generation. Since it is selected as a channel, it can be suppressed that the musical sound being played feels unnaturally interrupted.

また、本発明の他の特徴は、割り当て手段は、発生中の楽音信号の音量レベルが前記参照した閾値以下である発音チャンネルがないとき、複数の発音チャンネルのうち、発生している楽音信号の音量レベルが最も小さい発音チャンネルを前記新たな楽音信号の発生を割り当てる発音チャンネルとして選択する第2選択手段を有することにある。これによれば、音量レベルが閾値以下である発音チャンネルがないとき、音量レベルが閾値より大きい楽音信号を発生している発音チャンネルのうち、音量レベルが最も小さく、演奏上重要でなくなっている楽音信号を発生している発音チャンネルを新たな楽音信号発生を割り当てる発音チャンネルとして選択するので、演奏中の楽音が不自然に途切れたように感じられることを抑制できる。
According to another aspect of the present invention, the assigning means includes a tone signal of a tone signal generated from a plurality of tone generation channels when there is no tone generation channel whose volume level of the tone signal being generated is equal to or less than the reference threshold value. There is provided second selection means for selecting a sound generation channel having the smallest volume level as a sound generation channel to which the generation of the new musical tone signal is assigned. According to this, when there is no sound channel whose volume level is lower than the threshold, among the sound channels generating sound signals whose volume level is higher than the threshold, the sound whose volume level is the smallest and is not important for performance Since the tone generation channel generating the signal is selected as the tone generation channel to which new tone signal generation is assigned, it can be suppressed that the tone being played is unnaturally interrupted.

また、本発明の他の特徴は、第2選択手段によって選択された発音チャンネルにて発生中の楽音信号の音量レベルを急速に減衰させるトランケート手段(S16g)を備えたことにある。これによれば、第2選択手段によって選択した発音チャンネルにて発生中の楽音信号の音量レベルが急速に減衰するので、新たな楽音信号の発生を前記選択した発音チャンネルに割り当ててから前記新たな楽音信号の発生を開始するまでの時間を短くできる。   Another feature of the present invention is that it includes truncating means (S16g) for rapidly attenuating the volume level of the musical tone signal being generated in the tone generation channel selected by the second selecting means. According to this, since the volume level of the tone signal being generated in the tone generation channel selected by the second selection means is rapidly attenuated, the new tone signal generation is assigned to the selected tone generation channel and then the new tone signal is generated. The time until the start of generation of a musical sound signal can be shortened.

本発明の一実施形態に係る楽音信号発生装置を適用した電子楽器の全体ブロック図である。1 is an overall block diagram of an electronic musical instrument to which a musical tone signal generating device according to an embodiment of the present invention is applied. 図1の音源回路の具体的構成を示すブロック図である。FIG. 2 is a block diagram showing a specific configuration of the tone generator circuit of FIG. 1. 波形データの構成を示すメモリマップである。It is a memory map which shows the structure of waveform data. 図2の発音予約回路の具体的構成を示すブロック図である。FIG. 3 is a block diagram showing a specific configuration of the pronunciation reservation circuit of FIG. 2. ボイスデータの構成を示すメモリマップである。It is a memory map which shows the structure of voice data. パート情報、ノート情報、発音チャンネル情報及びボイスデータの関係を示す模式図である。It is a schematic diagram which shows the relationship between part information, note information, sound production channel information, and voice data. ノート情報の構成を示すメモリマップである。It is a memory map which shows the structure of note information. 発音チャンネル情報の構成を示すメモリマップである。It is a memory map which shows the structure of pronunciation channel information. 発音予約プログラムを示すフローチャートである。It is a flowchart which shows a pronunciation reservation program. 図9の発音チャンネル確保ルーチンを示すフローチャートである。10 is a flowchart showing a sound generation channel securing routine of FIG. 予約する発音チャンネルが空きチャンネルである場合の発音予約回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of the pronunciation reservation circuit when the tone generation channel to reserve is an empty channel. 予約する発音チャンネルが空きチャンネルである場合のパラメータの書き込み動作を示すタイムチャートである。It is a time chart which shows the parameter write-in operation | movement when the sound generation channel to reserve is an empty channel. 予約する発音チャンネルが発音中である場合の発音予約回路の動作を示すタイムチャートである。It is a time chart which shows the operation | movement of the pronunciation reservation circuit when the tone generation channel to make a reservation is sounding. 予約する発音チャンネルが発音中である場合のパラメータの書き込み動作を示すタイムチャートである。It is a time chart which shows the parameter write-in operation when the sound generation channel to be reserved is sounding. 音量レベル取得処理プログラムを示すフローチャートである。It is a flowchart which shows a volume level acquisition process program. パラメータ更新処理プログラムを示すフローチャートである。It is a flowchart which shows a parameter update process program.

a.全体構成
まず、本発明の一実施形態に係る楽音信号発生装置を適用した電子楽器の全体構成について図1を用いて説明する。図1に示すように、この電子楽器は、鍵盤11、パネル操作子12、ペダル操作子13、操作子インターフェース回路14、表示器16、音源回路17、サウンドシステム18、コンピュータ部19、記憶装置21及び外部インターフェース回路22を備えている。
a. Overall Configuration First, the overall configuration of an electronic musical instrument to which a musical tone signal generator according to an embodiment of the present invention is applied will be described with reference to FIG. As shown in FIG. 1, the electronic musical instrument includes a keyboard 11, a panel operator 12, a pedal operator 13, an operator interface circuit 14, a display 16, a sound source circuit 17, a sound system 18, a computer unit 19, and a storage device 21. And an external interface circuit 22.

鍵盤11は、演奏者の手によって操作されて、それぞれ発生させる楽音信号の音高を指定するとともに楽音信号の発生及び停止を指示する複数の白鍵及び黒鍵からなる。パネル操作子12は、電子楽器の操作パネル上に設けられ、演奏者の手によって操作されて、発生される楽音信号の音色、音量、効果等の楽音特性を設定するとともに、電子楽器全体の動作を設定する。ペダル操作子13は、演奏者の足によって操作されて、発生される楽音信号の音色、音量、効果などの楽音特性を設定する。   The keyboard 11 is composed of a plurality of white keys and black keys that are operated by the performer's hand to specify the pitch of the tone signal to be generated and to instruct the generation and stop of the tone signal. The panel operator 12 is provided on the operation panel of the electronic musical instrument and is operated by the performer's hand to set the musical tone characteristics such as tone color, volume, and effect of the generated musical tone signal, and the operation of the entire electronic musical instrument. Set. The pedal operator 13 is operated by a player's foot and sets musical tone characteristics such as tone color, volume, and effect of the musical tone signal generated.

鍵盤11、パネル操作子12及びペダル操作子13は、バス23に接続された操作子インターフェース回路14に接続されている。そして、鍵盤11、パネル操作子12及びペダル操作子13の操作を表す演奏情報及び操作情報が、操作子インターフェース回路14及びバス23を介して後述するコンピュータ部19に供給される。表示器16は、液晶ディスプレイ(LCD)によって構成され、表示画面上に文字、図形などを表示する。この表示器16の表示は、バス23を介してコンピュータ部19によって制御される。   The keyboard 11, panel operator 12, and pedal operator 13 are connected to an operator interface circuit 14 connected to a bus 23. Then, performance information and operation information representing operations of the keyboard 11, the panel operator 12, and the pedal operator 13 are supplied to the computer unit 19 described later via the operator interface circuit 14 and the bus 23. The display 16 is configured by a liquid crystal display (LCD), and displays characters, figures, and the like on a display screen. The display on the display 16 is controlled by the computer unit 19 via the bus 23.

音源回路17は、複数の波形データを記憶した波形メモリWMを含み、波形メモリWMから、コンピュータ部19によって指定された波形データを読み出してディジタル楽音信号を生成する複数の発音チャンネルを備える。各発音チャンネルにて生成されたディジタル楽音信号はサウンドシステム18に供給される。なお、ディジタル楽音信号にコーラス効果、残響効果などの各種効果を付加するエフェクタ回路は、後述するように音源回路17に含まれている。サウンドシステム18は、音源回路17から供給されたディジタル楽音信号をアナログ楽音信号にD/A変換するD/A変換器、変換したアナログ楽音信号を増幅するアンプ、及び増幅されたアナログ楽音信号を音響信号に変換して出力するスピーカを備えている。   The tone generator circuit 17 includes a waveform memory WM that stores a plurality of waveform data, and includes a plurality of tone generation channels that read waveform data designated by the computer unit 19 from the waveform memory WM and generate a digital musical tone signal. The digital musical tone signal generated in each tone generation channel is supplied to the sound system 18. Note that an effector circuit for adding various effects such as a chorus effect and a reverberation effect to the digital musical tone signal is included in the tone generator circuit 17 as will be described later. The sound system 18 is a D / A converter that D / A converts the digital musical tone signal supplied from the sound source circuit 17 into an analog musical tone signal, an amplifier that amplifies the converted analog musical tone signal, and the amplified analog musical tone signal. A speaker that converts the signal into an output is provided.

コンピュータ部19は、バス23にそれぞれ接続されたCPU19a、タイマ19b、ROM19c及びRAM19dからなる。CPU19aは、操作子インターフェース回路14及び外部インターフェース回路22から供給される演奏情報に応じて、音源回路17に発音のために必要な情報を供給する。とくに、CPU19aは、演奏者による鍵盤11の押鍵操作及び外部インターフェース回路22を介した外部機器からの演奏情報の供給によって発生するノートオンイベントに対応した楽音の発生を、1つ又は複数の発音チャンネルに割り当てる。また、この電子楽器は、記憶装置21に記憶された演奏情報を読み出して再生する自動演奏装置を備えている。この自動演奏装置による演奏情報の再生によってもノートオンイベントが発生し、CPU19aは、このノートオンイベントに対応した楽音の発生を、1つ又は複数の発音チャンネルに割り当てる。   The computer unit 19 includes a CPU 19a, a timer 19b, a ROM 19c, and a RAM 19d connected to the bus 23, respectively. The CPU 19 a supplies information necessary for sound generation to the tone generator circuit 17 in accordance with performance information supplied from the operator interface circuit 14 and the external interface circuit 22. In particular, the CPU 19a generates one or a plurality of sound generations corresponding to a note-on event generated by a player pressing a key 11 and supplying performance information from an external device via an external interface circuit 22. Assign to a channel. The electronic musical instrument also includes an automatic performance device that reads out and reproduces performance information stored in the storage device 21. The note-on event is also generated by playing the performance information by the automatic performance device, and the CPU 19a assigns the generation of the musical sound corresponding to the note-on event to one or a plurality of sound generation channels.

また、記憶装置21は、HDD、FDD、CD−ROM、MO、DVDなどの大容量の不揮発性記録媒体と、同各記録媒体に対応するドライブユニットを含むものであり、各種データ及びプログラムの記憶及び読出しを可能にしている。これらのデータ及びプログラムは予め記憶装置21に記憶されていてもよいし、外部インターフェース回路22を介して外部から取り込んでもよい。そして、記憶装置21に記憶された各種データ及びプログラムは、CPU19aによって読み込まれ、電子楽器の制御に利用される。外部インターフェース回路22は、MIDIインターフェース回路及び通信インターフェース回路を含んでおり、他の電子音楽装置、パーソナルコンピュータなどのMIDI対応の外部機器に接続可能となっているとともに、インターネットなどの通信ネットワークに接続可能となっている。 The storage device 21 includes a large-capacity nonvolatile recording medium such as an HDD, FDD, CD-ROM, MO, and DVD, and a drive unit corresponding to each recording medium, and stores various data and programs. Reading is possible. These data and programs may be stored in advance in the storage device 21 or may be taken in from the outside via the external interface circuit 22. Various data and programs stored in the storage device 21 are read by the CPU 19a and used to control the electronic musical instrument. The external interface circuit 22 includes a MIDI interface circuit and a communication interface circuit. The external interface circuit 22 can be connected to MIDI-compatible external devices such as other electronic music devices and personal computers, and can be connected to a communication network such as the Internet. It has become.

b.音源回路の構成
次に、音源回路17の構成について詳しく説明する。まず音源回路17の全体構成について説明する。音源回路17は、図2に示すように、波形データを記憶した波形メモリWMを備えている。また、音源回路17は、波形メモリWMから波形データを読み出してディジタル楽音信号を生成する複数(例えば128個)の発音チャンネルCH0,CH1・・・CH127を備えている。また、音源回路17は、発音チャンネルCH0,CH1・・・CH127にて生成されたディジタル楽音信号を累算してサウンドシステム18に出力するチャンネル累算回路17aを備えている。また、音源回路17は、CPU19aによる発音チャンネルの予約の受け付け及び予約された発音チャンネルに発音の開始指示を行う発音予約回路17bを備えている。つぎに、これらの波形メモリWM、発音チャンネルCH0,CH1・・・CH127、チャンネル累算回路17a、及び発音予約回路17bについて詳しく説明する。
b. Next, the configuration of the tone generator circuit 17 will be described in detail. First, the overall configuration of the tone generator circuit 17 will be described. As shown in FIG. 2, the tone generator circuit 17 includes a waveform memory WM that stores waveform data. The tone generator circuit 17 includes a plurality of (for example, 128) tone generation channels CH0, CH1,... CH127 that read waveform data from the waveform memory WM and generate digital musical tone signals. The sound source circuit 17 includes a channel accumulation circuit 17a that accumulates digital musical tone signals generated in the sound generation channels CH0, CH1,. The tone generator circuit 17 also includes a tone generation reservation circuit 17b that receives a reservation for a tone generation channel by the CPU 19a and instructs the reserved tone generation channel to start a tone generation. Next, the waveform memory WM, the sound generation channels CH0, CH1,... CH127, the channel accumulation circuit 17a, and the sound generation reservation circuit 17b will be described in detail.

b1.波形メモリ
波形メモリWMには、図3に示すように複数種類の楽器の楽音波形を表す波形データが記憶されている。1つの楽器の楽音が複数の成分に分解されて別々の楽音波形として記憶されている場合もある。例えばピアノ音のように、発音開始時の音色が激しく変化する成分と、発音開始から終了まであまり音色が変化しない成分とに分解して別々の楽音波形として記憶している場合もある。そこで、1つの楽音波形を構成要素ごとに分解した楽音波形をエレメント波形といい、それぞれ別々の発音チャンネルによって読み出されたエレメント波形から生成されるそれぞれのディジタル楽音信号をエレメント信号という。生成された各エレメント信号は、チャンネル累算回路17aによって合成されて1つの楽器の楽音信号となる。なお、楽器の種類によっては、1つの楽音波形を構成要素ごとに分解することなく、1つの波形として記憶してもよい。この場合、1つの楽器の楽音信号が1つのエレメント波形のみから生成されるとみなすことができるので、この場合の楽音波形もエレメント波形という。
b1. Waveform Memory The waveform memory WM stores waveform data representing musical sound waveforms of a plurality of types of musical instruments as shown in FIG. In some cases, a musical tone of one musical instrument is decomposed into a plurality of components and stored as separate musical sound waveforms. For example, like a piano sound, there are cases where the tone color at the start of sound generation is broken down into components that do not change much from the start to the end of sound generation and is stored as separate musical sound waveforms. Therefore, a musical sound waveform obtained by disassembling one musical sound waveform for each component is referred to as an element waveform, and each digital musical sound signal generated from an element waveform read by a separate sound generation channel is referred to as an element signal. The generated element signals are synthesized by the channel accumulation circuit 17a to become a musical tone signal of one musical instrument. Depending on the type of musical instrument, one musical sound waveform may be stored as one waveform without being disassembled for each component. In this case, since it can be considered that the musical tone signal of one musical instrument is generated from only one element waveform, the musical tone waveform in this case is also referred to as an element waveform.

各エレメント波形は、鍵音高の所定の範囲毎(例えば、1オクターブ毎)に設けられた波形セットから構成され、各発音チャンネルCH0,CH1・・・CH127において補間処理を行うことにより、押鍵された鍵の音高に対応したディジタル楽音信号を生成する。また、波形セットは、押鍵強さの所定の範囲毎(例えば、4段階に分けた押鍵強さの段階毎)に設けられた波形データから構成され、各発音チャンネルCH0,CH1・・・CH127において補間処理を行うことにより、押鍵強さに対応した音色及び音量のエレメント信号を生成する。なお、各鍵ごとに波形セットを設けてもよい。また、エレメント波形を、鍵音高に関係なく、1つの波形セットのみから構成してもよい。さらに、各波形セットは、押鍵強さに関係なく、1つの波形データのみから構成される場合もある。   Each element waveform is composed of a waveform set provided for each predetermined range of key pitches (for example, every one octave). By performing interpolation processing in each of the sound generation channels CH0, CH1,. A digital musical tone signal corresponding to the pitch of the key is generated. The waveform set is composed of waveform data provided for each predetermined range of key depression strength (for example, for each step of the key depression strength divided into four stages), and each tone generation channel CH0, CH1,. By performing an interpolation process in CH127, an element signal having a tone color and volume corresponding to the key depression strength is generated. A waveform set may be provided for each key. The element waveform may be composed of only one waveform set regardless of the key pitch. Furthermore, each waveform set may be composed of only one waveform data regardless of the key depression strength.

b2.発音チャンネル
各発音チャンネルCH0,CH1・・・CH127は、それぞれ同様に構成されており、サンプリング周期ごとにエレメント信号の生成をそれぞれ行う。以下の説明では、発音チャンネルにおけるエレメント信号の生成を単に発音という。各発音チャンネルCH0,CH1・・・CH127は、低周波信号発生回路LFO、ピッチ変更回路PEG、カットオフ周波数変更回路FEG及び音量変更回路AEGを備えている。さらに、各発音チャンネルCH0,CH1・・・CH127は、アドレス発生回路ADR、サンプル補間回路SPI、フィルタ回路FLT及び音量制御回路AMPも備えている。
b2. Sound generation channels The sound generation channels CH0, CH1,... CH127 are configured in the same manner, and generate element signals for each sampling period. In the following description, the generation of element signals in the sound generation channel is simply referred to as sound generation. Each of the tone generation channels CH0, CH1,... CH127 includes a low frequency signal generation circuit LFO, a pitch change circuit PEG, a cut-off frequency change circuit FEG, and a volume change circuit AEG. Further, each sound generation channel CH0, CH1,... CH127 also includes an address generation circuit ADR, a sample interpolation circuit SPI, a filter circuit FLT, and a volume control circuit AMP.

低周波信号発生回路LFOは、発音開始後、音高、音色及び音量を周期的に変化させる変調信号を生成して、アドレス発生回路ADR、フィルタ回路FLT及び音量制御回路AMPにそれぞれ供給する。低周波信号発生回路LFOには、CPU19aから低周波信号制御パラメータが供給される。低周波信号制御パラメータには、低周波信号発生回路LFOから出力する変調信号の波形、周波数及び振幅を指定するデータが含まれる。   The low frequency signal generation circuit LFO generates a modulation signal that periodically changes the pitch, tone color, and volume after the start of sound generation, and supplies the modulation signal to the address generation circuit ADR, the filter circuit FLT, and the volume control circuit AMP. The low frequency signal generation circuit LFO is supplied with a low frequency signal control parameter from the CPU 19a. The low frequency signal control parameter includes data designating the waveform, frequency and amplitude of the modulation signal output from the low frequency signal generation circuit LFO.

ピッチ変更回路PEGは、エレメント信号の音高を制御する音高制御信号をアドレス発生回路ADRに供給する。ピッチ変更回路PEGは、発音開始後の時間経過に従ってエレメント信号の音高が変化するように、時間経過に従って変化する音高制御信号を生成してアドレス発生回路ADRに供給する。この時間経過に従って変化する一連の音高制御信号をピッチエンベロープと呼ぶ。また、カットオフ周波数変更回路FEGは、エレメント信号の周波数特性を制御するカットオフ周波数制御信号をフィルタ回路FLTに供給する。カットオフ周波数制御回路FEGは、発音開始後の時間経過に従ってフィルタのカットオフ周波数が変化するように、時間経過に従って変化するカットオフ周波数制御信号を生成して、フィルタ回路FLTに供給する。この時間経過に従って変化する一連のカットオフ周波数制御信号をカットオフエンベロープと呼ぶ。また、音量変更回路AEGは、エレメント信号の音量を制御する音量制御信号を音量制御回路AMPに供給する。音量変更回路AEGは、発音開始後の時間経過に従ってエレメント信号の音量が変化するように、時間経過に従って変化する音量制御信号を生成して音量制御回路AMPに供給する。この時間経過に従って変化する一連の音量制御信号を音量エンベロープと呼ぶ。   The pitch change circuit PEG supplies a pitch control signal for controlling the pitch of the element signal to the address generation circuit ADR. The pitch change circuit PEG generates a pitch control signal that changes over time so that the pitch of the element signal changes over time after the start of sound generation, and supplies the pitch control signal to the address generation circuit ADR. A series of pitch control signals that change over time is called a pitch envelope. The cut-off frequency changing circuit FEG supplies a cut-off frequency control signal for controlling the frequency characteristic of the element signal to the filter circuit FLT. The cut-off frequency control circuit FEG generates a cut-off frequency control signal that changes over time so that the cut-off frequency of the filter changes over time after the start of sound generation, and supplies the cut-off frequency control signal to the filter circuit FLT. A series of cutoff frequency control signals that change with the passage of time is called a cutoff envelope. The volume change circuit AEG supplies a volume control signal for controlling the volume of the element signal to the volume control circuit AMP. The volume change circuit AEG generates a volume control signal that changes with time so that the volume of the element signal changes with time after the start of sound generation, and supplies the volume control signal to the volume control circuit AMP. A series of volume control signals that change over time is called a volume envelope.

アドレス発生回路ADRは、CPU19aから供給された楽音パラメータの1つである押鍵された鍵の鍵音高を表す音高値、ピッチ変更回路PEGから供給された音高制御信号及び低周波信号発生回路LFOから供給された変調信号を合成し、ピッチシフト量を算出する。ここで、アドレス発生回路ADRには、CPU19aから、楽音パラメータの1つとして、波形データ情報も供給される。波形データ情報は、波形メモリWMから読み出す波形データの先頭アドレス及び末尾アドレス、並びにこの波形データの音高を表す元ピッチからなる。ピッチシフト量とは、波形データ情報に含まれる元ピッチと発音する楽音のピッチとの差である。次に、アドレス発生回路ADRは、前記算出したピッチシフト量に応じて、波形データの読み出しレートを決定する。そして、アドレス発生回路ADRは、前記決定した読み出しレートで波形メモリWMから波形データを読み出す。ただし、ピッチシフト量に応じて決定される読み出しレートは、通常、小数部を含むので、波形データの読み出しアドレスも整数部と小数部からなる。そこで、この波形データの読み出しでは、整数部を用いて波形データの隣合う前後一対のサンプル値を読み出し、サンプル補間部SPIへ供給する。サンプル補間部SPIは、供給された一対のサンプル値とアドレスの小数部とを用いて補間演算を行ってディジタル楽音データを生成して、フィルタ回路FLTに供給する。   The address generation circuit ADR is a pitch value representing the key pitch of the depressed key that is one of the musical tone parameters supplied from the CPU 19a, a pitch control signal supplied from the pitch change circuit PEG, and a low frequency signal generation circuit. The modulation signals supplied from the LFO are combined to calculate the pitch shift amount. Here, the waveform data information is also supplied to the address generation circuit ADR from the CPU 19a as one of the musical tone parameters. The waveform data information includes a start address and an end address of waveform data read from the waveform memory WM, and an original pitch representing a pitch of the waveform data. The pitch shift amount is a difference between the original pitch included in the waveform data information and the pitch of the musical sound to be generated. Next, the address generation circuit ADR determines a waveform data read rate according to the calculated pitch shift amount. The address generation circuit ADR reads the waveform data from the waveform memory WM at the determined read rate. However, since the readout rate determined according to the pitch shift amount usually includes a decimal part, the readout address of the waveform data also consists of an integer part and a decimal part. Therefore, in reading this waveform data, a pair of adjacent sample values of the waveform data is read using the integer part and supplied to the sample interpolation unit SPI. The sample interpolation unit SPI performs interpolation calculation using the supplied pair of sample values and the decimal part of the address to generate digital musical tone data, and supplies it to the filter circuit FLT.

フィルタ回路FLTは、カットオフ周波数変更回路FEGから供給されたカットオフ周波数制御信号及び低周波信号発生回路LFOから供給された変調信号を合成して、フィルタのカットオフ周波数を算出する。フィルタ回路FLTには、CPU19aから、フィルタ制御パラメータも供給される。フィルタ制御パラメータには、フィルタの種類(例えば、ハイパスフィルタ、ローパスフィルタなど)を選択するフィルタ選択情報が含まれる。フィルタ回路FLTは、フィルタ選択情報に従って選択したフィルタのカットオフ周波数を前記算出したカットオフ周波数に設定し、サンプル補間回路SPIから供給されたディジタル楽音データをこのフィルタでフィルタリング処理した後、音量制御回路AMPへ出力する。   The filter circuit FLT combines the cut-off frequency control signal supplied from the cut-off frequency changing circuit FEG and the modulation signal supplied from the low-frequency signal generating circuit LFO to calculate the cut-off frequency of the filter. A filter control parameter is also supplied to the filter circuit FLT from the CPU 19a. The filter control parameter includes filter selection information for selecting a filter type (for example, a high-pass filter, a low-pass filter, etc.). The filter circuit FLT sets the cut-off frequency of the filter selected according to the filter selection information to the calculated cut-off frequency, and after filtering the digital musical tone data supplied from the sample interpolation circuit SPI with this filter, the volume control circuit Output to AMP.

音量制御回路AMPは、音量変更回路AEGから供給された音量制御信号及び低周波信号発生回路LFOから供給された変調信号を合成して、発生すべき楽音信号の音量を算出する。そして、音量制御回路AMPは、フィルタ回路FLTから供給されたディジタル楽音データを前記算出した音量に応じて増幅して、チャンネル累算回路17aへ出力する。   The volume control circuit AMP combines the volume control signal supplied from the volume change circuit AEG and the modulation signal supplied from the low frequency signal generation circuit LFO, and calculates the volume of the tone signal to be generated. Then, the volume control circuit AMP amplifies the digital musical tone data supplied from the filter circuit FLT according to the calculated volume and outputs it to the channel accumulation circuit 17a.

なお、本実施形態においては、音源回路17は、128個の発音チャンネルCH0,CH1・・・CH127を備えているが、発音チャンネルを1つのみ備えるようにしておいて、その発音チャンネルを時分割で利用してもよい。例えば1サンプリング周期を128分割すれば、分割された各期間においてなされる処理は、本実施形態における発音チャンネルCH0,CH1・・・CH127においてなされる処理にそれぞれ対応する。   In the present embodiment, the tone generator circuit 17 has 128 tone generation channels CH0, CH1,... CH127, but only one tone generation channel is provided, and the tone generation channel is time-divisionally divided. You may use it. For example, if one sampling period is divided into 128, the processing performed in each divided period corresponds to the processing performed in the sound generation channels CH0, CH1,.

b3.チャンネル累算回路17a
チャンネル累算回路17aは、サンプリング周期ごとに、各発音チャンネルCH0,CH1・・・CH127から出力されたディジタル楽音信号を累算して、累算したディジタル楽音信号をサウンドシステム18に出力する。なお、チャンネル累算回路17aは、各発音チャンネルから出力されるディジタル楽音信号にそれぞれ共通の効果(例えば、コーラス効果、残響効果など)を付加するエフェクト処理回路を備えている。
b3. Channel accumulation circuit 17a
The channel accumulation circuit 17a accumulates the digital musical tone signals output from the sound generation channels CH0, CH1,... CH127 at each sampling period, and outputs the accumulated digital musical tone signals to the sound system 18. The channel accumulating circuit 17a includes an effect processing circuit that adds a common effect (for example, chorus effect, reverberation effect) to the digital musical tone signal output from each sound generation channel.

b4.発音予約回路17b
次に、発音予約回路17bについて説明する。発音予約回路17bは、CPU19aにより指定された発音チャンネルの予約に関する情報を生成して記憶するとともに、所定のタイミングで、その発音チャンネルに対し発音開始を指示する。
b4. Pronunciation reservation circuit 17b
Next, the pronunciation reservation circuit 17b will be described. The sound generation reservation circuit 17b generates and stores information related to the reservation of the sound generation channel designated by the CPU 19a, and instructs the sound generation channel to start sound generation at a predetermined timing.

発音予約回路17bは、図4に示すように、チャンネル指定レジスタCS0,CS1・・・CS127及び予約受付回路17b1を備えている。チャンネル指定レジスタCS0,CS1・・・CH127は、発音チャンネルCH0,CH1・・・CH127にそれぞれ対応したビットで構成された128ビットからなるビットマップであり、CPU19aが音源回路17に対し、発音チャンネルを特定して指示を行うときに用いられる。例えば、複数のエレメント波形に分解された楽音波形の生成を行うために、CPU19aは、発音予約回路17bにエレメント信号の発生に使用する複数の発音チャンネルを指定する。このとき、CPU19aは、チャンネル指定レジスタCS0,CS1・・・CS127のうち、使用する発音チャンネルに対応したビットであって、楽音波形を構成するエレメント信号の数と同数のビットを「予約」にセットする。その後、CPU19aは、指示した発音チャンネルに共通のグループ番号を割り当てさせるために、予約受付回路17b1に予約トリガ信号を出力する。   As shown in FIG. 4, the pronunciation reservation circuit 17b includes channel designation registers CS0, CS1,... CS127 and a reservation reception circuit 17b1. Channel designation registers CS0, CS1,... CH127 are 128-bit bitmaps composed of bits corresponding to the sound generation channels CH0, CH1... CH127, respectively. Used when specifying and giving instructions. For example, in order to generate a musical sound waveform that has been decomposed into a plurality of element waveforms, the CPU 19a designates a plurality of sound generation channels to be used for generating element signals in the sound generation reservation circuit 17b. At this time, the CPU 19a sets the bits corresponding to the tone generation channel to be used in the channel designation registers CS0, CS1... CS127 to the “reserved” number as many as the number of element signals constituting the musical sound waveform. To do. Thereafter, the CPU 19a outputs a reservation trigger signal to the reservation receiving circuit 17b1 in order to assign a common group number to the designated tone generation channel.

なお、チャンネル指定レジスタCS0,CS1・・・CS127は、CPU19aのメモリアドレス空間における「チャンネルビット0」〜「チャンネルビット127」で表わされるアドレスに割り当てられていて、CPU19aは、「チャンネルビット0」〜「チャンネルビット127」を用いて、チャンネル指定レジスタCS0,CS1・・・CH127のビット操作(予約する発音チャンネルの指定)を行うことができる。また、予約受付回路17b1内に設けられた図示しない予約トリガレジスタが、CPU19aのメモリアドレス空間における「予約トリガ」で表わされるアドレスに割り当てられていて、CPU19aは、「予約トリガ」を用いて、予約受付回路17b1に予約トリガ信号を出力することができる。   The channel designation registers CS0, CS1,... CS127 are assigned to addresses represented by “channel bits 0” to “channel bits 127” in the memory address space of the CPU 19a. The “channel bit 127” can be used to perform bit operations (designation of sound generation channels to be reserved) in the channel designation registers CS0, CS1,. A reservation trigger register (not shown) provided in the reservation receiving circuit 17b1 is assigned to an address represented by “reservation trigger” in the memory address space of the CPU 19a, and the CPU 19a uses the “reservation trigger” to make a reservation. A reservation trigger signal can be output to the reception circuit 17b1.

予約受付回路17b1は、チャンネル指定レジスタCS0,CS1・・・CS127で指定された複数の発音チャンネルに対し共通のグループ番号を割り当てる。上記の例のように、1つの楽音波形が複数のエレメント波形に分解されている場合(すなわち複数の発音チャンネルを同時に使用する場合)、これらの複数の発音チャンネルに共通のグループ番号を割り当てておき、同時に発音開始させる発音チャンネルをグループ番号で管理するようにしている。なお、1つの楽音波形が、1つのエレメント波形から構成される場合は、複数の発音チャンネルのグループ化はしないが、回路構成を共通にして簡単にするため、複数のエレメント信号を合成する場合と同様に、1つの発音チャンネルのみからなるグループを構成して、グループ番号を割り当てる。ただし、グループ数には上限があり、本実施形態では30個のグループが使用可能である。そこで、各グループ番号が使用可能か否かを示すグループ使用可否フラグを記憶するグループ使用状況レジスタGU1〜GU30が設けられている。予約受付回路17b1は、グループ使用状況レジスタGU1〜GU30の中から「使用可」となっている1つのグループ番号を発音チャンネルに割り当てた後、グループ使用状況レジスタGU1〜GU30のうちで、そのグループ番号に対応するレジスタを「使用不可」にセットする。なお、「使用不可」にセットされたグループ使用可否フラグは、発音開始時に後述の発音開始指示回路17b6によって「使用可」にセットされる。ここで、CPU19aは、予約しようとする発音チャンネルにグループ番号の割り当てが可能であることをグループフルフラグGFによって確認した上で、予約トリガ信号を出力するようになっている。したがって、予約トリガ信号を入力した予約受付回路17b1は必ずグループ番号を発音チャンネルに割り当てることができる。   The reservation receiving circuit 17b1 assigns a common group number to a plurality of tone generation channels designated by the channel designation registers CS0, CS1,... CS127. As in the above example, when one musical sound waveform is decomposed into a plurality of element waveforms (that is, when a plurality of tone generation channels are used simultaneously), a common group number is assigned to the plurality of tone generation channels. At the same time, the sound generation channels for starting sound generation are managed by group numbers. When one musical sound waveform is composed of one element waveform, the multiple sound channels are not grouped. However, in order to simplify the circuit configuration, a plurality of element signals are combined. Similarly, a group consisting of only one sounding channel is formed and a group number is assigned. However, there is an upper limit to the number of groups, and 30 groups can be used in this embodiment. Therefore, group usage status registers GU1 to GU30 are provided for storing a group availability flag indicating whether each group number can be used. The reservation receiving circuit 17b1 assigns one group number “usable” from the group usage status registers GU1 to GU30 to the sound generation channel, and then selects the group number in the group usage status registers GU1 to GU30. The register corresponding to is set to “unusable”. The group availability flag set to “unusable” is set to “usable” by the sounding start instruction circuit 17b6 described later at the start of sounding. Here, the CPU 19a outputs a reservation trigger signal after confirming with the group full flag GF that a group number can be assigned to the tone generation channel to be reserved. Therefore, the reservation receiving circuit 17b1 to which the reservation trigger signal is input can always assign the group number to the sound generation channel.

グループフルフラグGFとは、空きグループがあるか否か(すなわち、発音チャンネルに対しグループ番号の割り当てが可能か否か)を示すフラグである。グループフルフラグGFは、グループフルフラグセット回路17b2によって、「空きグループ有り」又は「空きグループ無し」にセットされる。すなわち、グループフルフラグセット回路17b2は、グループ使用状況レジスタGU1〜GU30のうち、「使用可」となっているレジスタが1つでもあればグループフルフラグを「空きグループ有り」にセットする。一方、グループ使用状況レジスタGU1〜GU30のすべてのレジスタが「使用不可」となっていれば、グループフルフラグGFを「空きグループ無し」にセットする。なお、グループフルフラグGFは、CPU19aのメモリアドレス空間における「グループフル」で表わされるアドレスに割り当てられていて、CPU19aは、「グループフル」を用いて、グループフルフラグGFの値を読み込むことができる。   The group full flag GF is a flag indicating whether or not there is an empty group (that is, whether or not a group number can be assigned to a sound generation channel). The group full flag GF is set to “with empty group” or “without empty group” by the group full flag setting circuit 17b2. In other words, the group full flag setting circuit 17b2 sets the group full flag to “with free group” if any one of the group usage status registers GU1 to GU30 is “available”. On the other hand, if all the registers of the group usage status registers GU1 to GU30 are “unusable”, the group full flag GF is set to “no empty group”. The group full flag GF is assigned to an address represented by “group full” in the memory address space of the CPU 19a, and the CPU 19a can read the value of the group full flag GF using “group full”. .

予約受付回路17b1は、取得したグループ番号を、キーオンマップに書き込む。キーオンマップは、発音チャンネルCH0〜CH127にそれぞれ対応して設けられたキーオンマップレジスタKM0〜KM127からなる。キーオンマップレジスタKM0〜KM127は、グループ番号「1」〜「30」のうちのいずれかの番号又は「グループ割り当てなし」を表す。キーオンマップは、ノートオンイベントが発生するごとに更新される。すなわち、ノートオンイベントが発生すると、CPU19aによって、1つ又は複数の発音チャンネルが選択され、選択された発音チャンネルに係るキーオンマップレジスタに共通のグループ番号が書き込まれる。その後、予約受付回路17b1は、「予約」にセットされているチャンネル指定レジスタを「指定なし」にセットする。   The reservation receiving circuit 17b1 writes the acquired group number in the key-on map. The key-on map includes key-on map registers KM0 to KM127 provided corresponding to the sound generation channels CH0 to CH127, respectively. The key-on map registers KM0 to KM127 represent any number of group numbers “1” to “30” or “no group assignment”. The key-on map is updated each time a note-on event occurs. That is, when a note-on event occurs, the CPU 19a selects one or a plurality of sound generation channels, and writes a common group number to the key-on map register relating to the selected sound generation channel. Thereafter, the reservation receiving circuit 17b1 sets the channel designation register set to “reservation” to “no designation”.

レベル検出回路17b3は、各発音チャンネルCH0,CH1・・・CH127の音量制御回路AMPから出力されるエレメント信号の音量レベルを検出して、音量レベルレジスタAL0,AL1・・・AL127に記録する。また、音量レベルレジスタAL0,AL1・・・AL127内に記録された音量レベルは、ダンプレベル到達検出回路17b4に供給される。なお、音量レベルレジスタAL0,AL1・・・AL127は、CPU19aのメモリアドレス空間における「音量レベルCH0」〜「音量レベルCH127」で表わされるアドレスに割り当てられていて、CPU19aは、「音量レベルCH0」〜「音量レベルCH127」を用いて、音量レベルレジスタAL0,AL1・・・AL127の値を読み込むことができる。   The level detection circuit 17b3 detects the volume level of the element signal output from the volume control circuit AMP of each sound generation channel CH0, CH1... CH127, and records it in the volume level registers AL0, AL1. Also, the volume levels recorded in the volume level registers AL0, AL1,... AL127 are supplied to the dump level arrival detection circuit 17b4. Note that the volume level registers AL0, AL1,... AL127 are assigned to addresses represented by “volume level CH0” to “volume level CH127” in the memory address space of the CPU 19a. The value of the volume level registers AL0, AL1,... AL127 can be read using “volume level CH127”.

レベル検出回路17b3による発音チャンネルCH0〜CH127のエレメント信号の音量レベル検出及び検出結果のダンプレベル到達検出回路17b4への供給は、1サンプリング周期内に時分割でなされる。レベル検出回路17b3が一連の発音チャンネルCH0〜CH127の楽音データのレベル検出を開始する直前に、キーオンマップの内容が、キーオンマップラッチ回路17b5によって、キーオンマップラッチとして、キーオンマップレジスタKM0〜KM127と同様のキーオンマップラッチレジスタKML0〜KML127にコピーされて保持される。ダンプレベル到達検出回路17b4は、キーオンマップラッチに基づいて、各グループに属する全ての発音チャンネルにて生成されているエレメント信号の音量レベルがダンプレベル以下になっているか否かの判定を行う。   The level detection circuit 17b3 detects the volume level of the element signals of the sound generation channels CH0 to CH127 and supplies the detection result to the dump level arrival detection circuit 17b4 in a time division manner within one sampling period. Just before the level detection circuit 17b3 starts to detect the level of the musical tone data of the series of tone generation channels CH0 to CH127, the contents of the key-on map are the same as the key-on map registers KM0 to KM127 by the key-on map latch circuit 17b5. The key-on-map latch registers KML0 to KML127 are copied and held. Based on the key-on map latch, the dump level arrival detection circuit 17b4 determines whether or not the volume level of the element signal generated in all sound generation channels belonging to each group is equal to or lower than the dump level.

ダンプレベル到達検出回路17b4は、上記の判定において、発音予約回路17bが備えるダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1に記憶されたダンプレベルと各エレメント信号の音量レベルとを比較する。ダンプレベル設定レジスタDS0は、演奏者が鍵盤11を押離鍵して演奏する手動演奏に係るエレメント信号のダンプレベルを記憶し、ダンプレベル設定レジスタDS1は、自動演奏装置が記憶装置21に記憶された演奏情報を読み出して演奏する自動演奏によるエレメント信号のダンプレベルを記憶する。ダンプレベル設定レジスタDS,DS1には、この電子楽器の電源投入時の初期化処理において、CPU19aによって、それぞれ異なるダンプレベルが書き込まれる。ダンプレベル設定レジスタDS0,DS1に書き込まれるダンプレベルは、エレメント信号がとり得る最大レベルに対する相対値で表される。また、ダンプレベル設定レジスタDS0に書き込まれるダンプレベルは、ダンプレベル設定レジスタDS1に書き込まれるダンプレベルよりも小さい。例えば、ダンプレベルDS0には、「−96dB」が書き込まれ、ダンプレベル設定レジスタDS1には、「−84dB」が書き込まれる。なお、ダンプレベル設定レジスタDS0及びダンプレベル設定レジスタDS1は、CPU19aのメモリアドレス空間における「ダンプレベル0」及び「ダンプレベル1」で表わされるアドレスにそれぞれ割り当てられていて、CPU19aは、「ダンプレベル0」及び「ダンプレベル1」を用いて、ダンプレベル設定レジスタDS0及びダンプレベル設定レジスタDS1にダンプレベルをそれぞれ書き込むことができる。また、「ダンプレベル0」及び「ダンプレベル1」を用いて、ダンプレベル設定レジスタDS0,DS1からダンプレベルを読み込むことができる。   In the above determination, the dump level arrival detection circuit 17b4 compares the dump level stored in the dump level setting register DS0 or the dump level setting register DS1 included in the sound generation reservation circuit 17b with the volume level of each element signal. The dump level setting register DS0 stores the dump level of the element signal related to the manual performance performed by the performer by pressing and releasing the keyboard 11, and the dump level setting register DS1 is stored in the storage device 21 by the automatic performance device. The dump level of the element signal by the automatic performance that reads out the performance information and performs is stored. Different dump levels are written in the dump level setting registers DS and DS1 by the CPU 19a in the initialization process when the electronic musical instrument is turned on. The dump level written in the dump level setting registers DS0 and DS1 is represented by a relative value with respect to the maximum level that the element signal can take. The dump level written to the dump level setting register DS0 is smaller than the dump level written to the dump level setting register DS1. For example, “−96 dB” is written in the dump level DS0, and “−84 dB” is written in the dump level setting register DS1. The dump level setting register DS0 and the dump level setting register DS1 are respectively assigned to addresses represented by “dump level 0” and “dump level 1” in the memory address space of the CPU 19a. ”And“ dump level 1 ”, the dump level can be written in the dump level setting register DS0 and the dump level setting register DS1, respectively. Further, the dump level can be read from the dump level setting registers DS0 and DS1 using “dump level 0” and “dump level 1”.

また、ダンプレベル到達検出回路17b4には、後述のパラメータ出力回路17c4から、各発音チャンネルごとに、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1のどちらのレジスタに記憶されているダンプレベルを用いるかを表すダンプレベル参照情報DPn(n=0,1・・・127)も供給される。ダンプレベル参照情報DPnは、対応する発音チャンネルCHnのエレメント信号が手動演奏により発生させられている場合は、ダンプレベル設定レジスタDS0のアドレスを表し、自動演奏により発生させられている場合は、ダンプレベル設定レジスタDS1のアドレスを表す。ダンプレベル到達検出回路17b4は、ダンプレベル参照情報DPnを用いて、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1に記憶されているダンプレベルを取得する。そして、ダンプレベル到達検出回路17b4は、キーオンマップラッチ、各発音チャンネルCHnの音量レベル及び前記取得したダンプレベルを用いて上記の判定を行い、判定結果をダンプレベル到達検出レジスタDL1,DL2・・・DL30に順次書き込んでいく。ダンプレベル到達検出レジスタDL1,DL2・・・DL30は、各グループに対応して設けられたレジスタであって、それぞれ「ダンプレベル到達」又は「ダンプレベル未到達」を表すデータを記憶する。まず、ダンプレベル到達検出回路17b4は、レベル検出回路17b3が一連の発音チャンネルCH0〜CH127についてのエレメント信号の音量レベルの検出を開始する前に、ダンプレベル到達検出レジスタDL1,DL2・・・DL30を「ダンプレベル到達」にセットする。そして、レベル検出回路17b3によって検出された各発音チャンネルのエレメント信号の音量レベルとダンプレベル参照情報DP0〜DP127によって参照されるダンプレベルとをそれぞれ比較する。   The dump level arrival detection circuit 17b4 uses the dump level stored in the dump level setting register DS0 or the dump level setting register DS1 for each tone generation channel from the parameter output circuit 17c4 described later. Dump level reference information DPn (n = 0, 1,... 127) representing the above is also supplied. The dump level reference information DPn represents the address of the dump level setting register DS0 when the element signal of the corresponding tone generation channel CHn is generated by manual performance, and when it is generated by automatic performance, the dump level reference information DPn. Indicates the address of the setting register DS1. The dump level arrival detection circuit 17b4 acquires the dump level stored in the dump level setting register DS0 or the dump level setting register DS1 using the dump level reference information DPn. The dump level arrival detection circuit 17b4 makes the above determination using the key-on map latch, the sound volume level of each sound generation channel CHn and the acquired dump level, and the determination result is sent to the dump level arrival detection registers DL1, DL2,. Write sequentially to DL30. The dump level arrival detection registers DL1, DL2,..., DL30 are registers corresponding to each group, and store data indicating “dump level reached” or “dump level not reached”, respectively. First, the dump level arrival detection circuit 17b4 sets the dump level arrival detection registers DL1, DL2,... DL30 before the level detection circuit 17b3 starts detecting the volume level of the element signal for the series of sound generation channels CH0 to CH127. Set to “Dump level reached”. Then, the volume level of the element signal of each tone generation channel detected by the level detection circuit 17b3 is compared with the dump level referred to by the dump level reference information DP0 to DP127.

例えば、発音チャンネルCHn(n=0,1・・・127)のエレメント信号の音量レベルがダンプレベル参照情報DPnによって参照されるダンプレベルよりも大きい場合、発音チャンネルCHnに対応するキーオンマップラッチレジスタKMLnに記憶されているグループ番号m(m=1,2・・・30)を取得し、グループ番号mに対応するダンプレベル到達検出レジスタDLmを「ダンプレベル未到達」にセットする。このとき、すでにダンプレベル到達検出レジスタDLmが「ダンプレベル未到達」にセットされている場合は、ダンプレベル到達検出レジスタDLmの操作を行うことなく、次の発音チャンネルの判定を行う。一方、発音チャンネルCHnの音量レベルがダンプレベル参照情報DPnによって参照されるダンプレベル以下になっていた場合は、ダンプレベル到達検出レジスタDLmの操作を行わない。なお、発音チャンネルCHn(n=0,1・・・127)のエレメント信号の音量レベルがダンプレベル参照情報DPnによって参照されるダンプレベルよりも大きい場合及び発音チャンネルCHnの音量レベルがダンプレベル参照情報DPnによって参照されるダンプレベル以下になっていた場合のいずれにおいても、取得したキーオンマップレジスタの値が「グループ割り当てなし」の場合は、ダンプレベル到達検出レジスタDLmの操作を行うことなく、次の発音チャンネルの判定を行う。   For example, when the volume level of the element signal of the sound generation channel CHn (n = 0, 1,... 127) is higher than the dump level referred to by the dump level reference information DPn, the key-on map latch register KMLn corresponding to the sound generation channel CHn. And the dump level arrival detection register DLm corresponding to the group number m is set to “dump level not reached”. At this time, if the dump level arrival detection register DLm is already set to “dump level not reached”, the next sound generation channel is determined without operating the dump level arrival detection register DLm. On the other hand, when the volume level of the sound generation channel CHn is equal to or lower than the dump level referred to by the dump level reference information DPn, the dump level arrival detection register DLm is not operated. When the volume level of the element signal of the sound generation channel CHn (n = 0, 1,... 127) is larger than the dump level referred to by the dump level reference information DPn, and the volume level of the sound generation channel CHn is the dump level reference information. If the acquired key-on map register value is “no group assignment” in any of the dump levels referenced by DPn, the next operation is not performed on the dump level arrival detection register DLm. Determines the sound channel.

上記の判定処理を全ての発音チャンネルについて行った後、ダンプレベル到達検出レジスタDLmが「ダンプレベル未到達」にセットされていれば、グループmに属する発音チャンネルのうち、いずれか1つ又は複数の発音チャンネルのエレメント信号の音量レベルがダンプレベルよりも大きいことになる。一方、ダンプレベル到達検出レジスタDLmが「ダンプレベル到達」にセットされていれば、グループmに属する全発音チャンネルのエレメント信号の音量レベルがダンプレベル以下であることになる。   After the above determination process is performed for all sound generation channels, if the dump level arrival detection register DLm is set to “dump level unreachable”, any one or a plurality of sound generation channels belonging to the group m are selected. The volume level of the element signal of the sound generation channel is higher than the dump level. On the other hand, if the dump level arrival detection register DLm is set to “dump level reached”, the volume levels of the element signals of all sound channels belonging to the group m are below the dump level.

ここで、キーオンマップではなくキーオンマップラッチに基づいて、上記ダンプレベル到達の判定を行う理由について説明しておく。前述のように、ダンプレベル到達検出回路17b4が発音チャンネルCH0、CH1・・・CH127のエレメント信号の音量レベルの判定をしている間であっても、キーオンマップレジスタKM0〜KM127は更新されていく。   Here, the reason for determining whether the dump level has been reached based on the key-on map latch instead of the key-on map will be described. As described above, the key-on map registers KM0 to KM127 are updated even while the dump level arrival detection circuit 17b4 is determining the volume level of the element signals of the sound generation channels CH0, CH1,. .

例えば、発音チャンネルCH0が発音中でダンプレベルに到達していない状態であり、かつキーオンマップレジスタKM0にはグループ番号が記録されていない(すなわち、発音チャンネルCH0の予約がなされていない)ものとする。さらに、発音チャンネルCH5は、発音に使用されていないチャンネル(空きチャンネル)であるとする。そして、レベル検出回路17b3及びダンプレベル到達検出回路17b4が発音チャンネルCH0についての判定を行った後、発音チャンネルCH5の判定を行うまでの間に、新たなノートオンイベントが発生して、発音チャンネルCH0及び発音チャンネルCH5が新たな発音に使用する発音チャンネルとして指定され、キーオンマップレジスタKM0及びKM5にグループ番号「3」が記録されたとする。その後、レベル検出回路17b3及びダンプレベル到達検出回路17b4が発音チャンネルCH5の判定を行うと、発音チャンネルCH5は空きチャンネルなので、ダンプレベルに到達していると判定される。すると、グループ番号「3」に属する発音チャンネルCH0で発音中の楽音信号がダンプレベルに到達していないにもかかわらず、発音チャンネルCH0及び発音チャンネルCH5に対して後述する発音開始指示回路17b6によって、発音開始指示がなされる。したがって、発音チャンネルCH0にて発音中の楽音が、突然途切れたような不自然な楽音となる。このような不自然な楽音の発生を防止するため、レベル検出回路17b3及びダンプレベル到達検出回路17b4が一連の発音チャンネルCH0〜CH127についての判定をしている間は、各発音チャンネルの属するグループが変化しないようにしておく必要がある。したがって、キーオンマップの内容をキーオンマップラッチにコピーしておき、キーオンマップラッチに基づいてダンプレベル到達の判定を行うようにしている。   For example, it is assumed that the sound generation channel CH0 is sounding and has not reached the dump level, and the group number is not recorded in the key-on map register KM0 (that is, the sound channel CH0 is not reserved). . Further, it is assumed that the sound generation channel CH5 is a channel that is not used for sound generation (empty channel). Then, after the level detection circuit 17b3 and the dump level arrival detection circuit 17b4 determine the sound generation channel CH0 and before the sound generation channel CH5 is determined, a new note-on event occurs and the sound generation channel CH0. And the sound generation channel CH5 is designated as a sound generation channel to be used for new sound generation, and the group number “3” is recorded in the key-on map registers KM0 and KM5. Thereafter, when the level detection circuit 17b3 and the dump level arrival detection circuit 17b4 determine the sound generation channel CH5, it is determined that the sound generation channel CH5 has reached the dump level because the sound generation channel CH5 is an empty channel. Then, although the musical sound signal being sounded in the sound generation channel CH0 belonging to the group number “3” has not reached the dump level, the sound generation start instruction circuit 17b6 described later for the sound generation channel CH0 and the sound generation channel CH5 An instruction to start pronunciation is given. Therefore, the musical sound being generated on the sound generation channel CH0 becomes an unnatural musical sound that seems to be suddenly interrupted. In order to prevent the generation of such unnatural musical sounds, while the level detection circuit 17b3 and the dump level arrival detection circuit 17b4 make the determination for the series of sound generation channels CH0 to CH127, the group to which each sound generation channel belongs is determined. It must be kept unchanged. Therefore, the contents of the key-on map are copied to the key-on map latch, and it is determined that the dump level has been reached based on the key-on map latch.

発音開始指示回路17b6は、ダンプレベル到達検出レジスタDLm(m=1,2・・・30)が「ダンプレベル到達」にセットされていると、グループmに属する全発音チャンネルに対して、発音の開始を指示する。そして、発音開始指示回路17b6は、グループmに属する全発音チャンネルに対応するキーオンマップレジスタ及びキーオンマップラッチレジスタを「グループ割り当てなし」にセットする。また、発音開始指示回路17b6は、グループ使用状況レジスタGUmを「使用可」にセットする。また、発音開始指示回路17b6は、発音開始指示の直前に、後述のパラメータ転送回路17c2及びパラメータ出力回路17c4に転送及び出力の指示を行う。   When the dump level arrival detection register DLm (m = 1, 2,... 30) is set to “Dump level reached”, the sound generation start instruction circuit 17b6 generates sound for all sound channels belonging to the group m. Instruct to start. Then, the sound generation start instruction circuit 17b6 sets the key-on map registers and key-on map latch registers corresponding to all sound generation channels belonging to the group m to “no group assignment”. Further, the sound generation start instruction circuit 17b6 sets the group usage status register GUm to “usable”. The sound generation start instruction circuit 17b6 issues a transfer and output instruction to a parameter transfer circuit 17c2 and a parameter output circuit 17c4 described later immediately before the sound generation start instruction.

また、発音予約回路17bは、各発音チャンネルが予約可能か否かを示す予約可否フラグを記憶する予約可否フラグレジスタAF0、AF1・・・AF127を有している。予約可否フラグレジスタAF0,AF1・・・AF127は、チャンネル指定レジスタCS0,CS1・・・CS127と同様に、発音チャンネルCH0,CH1・・・CH127に対応した128ビットからなるビットマップである。予約可否フラグレジスタAF0,AF1・・・AF127においては、予約可否フラグセット回路17b8によって、各ビットが「予約可」又は「予約不可」にセットされる。予約可否フラグセット回路17b8は、発音チャンネルCHn(n=0,1・・・127)に対応するキーオンマップレジスタKMnに「1」〜「30」のうちのいずれかのグループ番号が書き込まれている場合は、発音チャンネルCHnに対応する予約可否フラグレジスタAFnを「予約不可」にセットする。一方、予約可否フラグセット回路17b8は、キーオンマップレジスタKMnが「グループ割り当てなし」にセットされてから所定の期間(例えば、サンプリング周期の5周期分)「予約不可」に保持した後、予約可否フラグレジスタAFnを「予約可」にセットする。前記所定の期間においては、音源回路17は、発音開始の処理中であり、新たにその発音チャンネルCHnの予約を受け付けられる状態にないからである。   Further, the tone generation reservation circuit 17b has reservation enable / disable flag registers AF0, AF1... AF127 for storing reservation enable / disable flags indicating whether or not each sound channel can be reserved. The reservation availability flag registers AF0, AF1,... AF127 are 128-bit bitmaps corresponding to the sound generation channels CH0, CH1,. In the reservation availability flag registers AF0, AF1,... AF127, each bit is set to “reservation possible” or “reservation impossible” by the reservation availability flag setting circuit 17b8. In the reservation enable / disable flag set circuit 17b8, one of the group numbers “1” to “30” is written in the key-on map register KMn corresponding to the tone generation channel CHn (n = 0, 1,... 127). In this case, the reservation availability flag register AFn corresponding to the sound generation channel CHn is set to “reservation impossible”. On the other hand, the reservation enable / disable flag setting circuit 17b8 holds the reservation enable / disable flag after holding the key-on map register KMn for “no reservation” for a predetermined period (for example, five sampling periods) after the key on map register KMn is set to “no group assignment”. The register AFn is set to “reservable”. This is because, during the predetermined period, the tone generator circuit 17 is in the process of starting sound generation and is not in a state in which a reservation for the sound generation channel CHn can be newly accepted.

なお、予約可否フラグレジスタAF0,AF1・・・AF127は、CPU19aのメモリアドレス空間における「チャンネルビット0」〜「チャンネルビット127」で表わされるアドレスに割り当てられていて、CPU19aは、「チャンネルビット0」〜「チャンネルビット127」を指定して読み込みを行うことにより、予約可否フラグレジスタAF0,AF1・・・AF127内の値を読み込むことができる。上記のように、チャンネル指定レジスタCS0,CS1・・・CS127及び予約可否フラグレジスタAF0,AF1・・・AF127は、同じアドレスに割り当てられているが、CPU19aによる書き込み動作時においては、チャンネル指定レジスタCS0,CS1・・・CS127が指定され、読み込み動作時においては、予約可否フラグレジスタAF0,AF1・・・AF127が指定されるようになっている。   The reservation enable / disable flag registers AF0, AF1,... AF127 are assigned to addresses represented by “channel bit 0” to “channel bit 127” in the memory address space of the CPU 19a, and the CPU 19a receives “channel bit 0”. By reading with designation of “channel bit 127”, the values in the reservation enable / disable flag registers AF0, AF1,... AF127 can be read. As described above, the channel designation registers CS0, CS1... CS127 and the reservation availability flag registers AF0, AF1... AF127 are assigned to the same address, but at the time of the write operation by the CPU 19a, the channel designation register CS0. , CS1... CS127 are designated, and the reservation availability flag registers AF0, AF1.

また、発音予約回路17bは、楽音パラメータ入出力回路17cを備える。楽音パラメータ入出力回路17cは、第1メモリ17c1、パラメータ転送回路17c2、第2メモリ17c3及びパラメータ出力回路17c4からなる。楽音パラメータ入出力回路17cは、バス16を介してCPU19aから供給される楽音パラメータを入力して、音源回路17の各部に出力する。また、楽音パラメータ入出力回路17cは、音源回路17の各回路(ピッチ変更回路PEG、カットオフ周波数変更回路FEG、音量変更回路AEGなど)の状態を表すパラメータを入力して、CPU19aに出力する。   The sound generation reservation circuit 17b includes a musical tone parameter input / output circuit 17c. The musical tone parameter input / output circuit 17c includes a first memory 17c1, a parameter transfer circuit 17c2, a second memory 17c3, and a parameter output circuit 17c4. The musical tone parameter input / output circuit 17 c receives musical tone parameters supplied from the CPU 19 a via the bus 16 and outputs the musical tone parameters to each unit of the tone generator circuit 17. Further, the musical tone parameter input / output circuit 17c inputs parameters representing the state of each circuit (pitch change circuit PEG, cut-off frequency change circuit FEG, volume change circuit AEG, etc.) of the sound source circuit 17 and outputs them to the CPU 19a.

第1メモリ17c1は、音源回路17の各回路に供給するパラメータを発音チャンネルの予約時からその発音開始時まで記憶しておくメモリである。第1メモリ17c1の記憶領域は、発音チャンネルごと、かつパラメータの種類ごとに分割されて、CPU19aのメモリアドレス空間の所定のアドレスにそれぞれ割り当てられている。例えば、第1メモリ17c1におけるダンプレベル参照情報DP0〜DP127の記憶領域は、CPU19aのメモリアドレス空間において、「予約用ダンプレベル参照情報CH0」〜「予約用ダンプレベル参照情報CH127」で表わされるアドレスにそれぞれ割り当てられていて、CPU19aは、「予約用ダンプレベル参照情報CH0」〜「予約用ダンプレベル参照情報CH127」を用いて、予約する発音チャンネルのダンプレベルを記憶したダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1のいずれかのアドレスをダンプレベル参照情報DP0〜DP127として第1メモリ17c1に書き込むことができる。   The first memory 17c1 is a memory for storing parameters to be supplied to each circuit of the tone generator circuit 17 from the reservation of the sound generation channel to the start of the sound generation. The storage area of the first memory 17c1 is divided for each sound generation channel and for each parameter type, and assigned to a predetermined address in the memory address space of the CPU 19a. For example, the storage area of the dump level reference information DP0 to DP127 in the first memory 17c1 is at an address represented by “reserved dump level reference information CH0” to “reserved dump level reference information CH127” in the memory address space of the CPU 19a. The CPU 19a uses the “reservation dump level reference information CH0” to “reservation dump level reference information CH127” to store the dump level setting register DS0 or the dump level storing the dump level of the sound generation channel to be reserved. Any address of the setting register DS1 can be written to the first memory 17c1 as dump level reference information DP0 to DP127.

また、パラメータ転送回路17c2は、発音開始指示回路17b6による発音開始指示に応答して、第1メモリ17c1に書き込まれたパラメータを第2メモリ17c3に転送する。第2メモリ17c3は、発音チャンネルにて生成中のエレメント信号に関するパラメータを記憶するメモリである。第2メモリ17c3の記憶領域も、第1メモリ17c1の記憶領域と同様に、発音チャンネルごと、かつパラメータの種類ごとに分割されていて、各パラメータの記憶領域は、CPU19aのメモリアドレス空間の所定のアドレスにそれぞれ割り当てられている。   The parameter transfer circuit 17c2 transfers the parameter written in the first memory 17c1 to the second memory 17c3 in response to the sound generation start instruction from the sound generation start instruction circuit 17b6. The second memory 17c3 is a memory for storing parameters relating to element signals being generated in the sound generation channel. Similarly to the storage area of the first memory 17c1, the storage area of the second memory 17c3 is divided for each sound generation channel and for each parameter type. The storage area for each parameter is a predetermined memory address space of the CPU 19a. Each address is assigned.

例えば、第2メモリ17c3におけるダンプレベル参照情報DP0〜DP127の記憶領域は、CPU19aのメモリアドレス空間において、「実行用ダンプレベル参照情報CH0」〜「実行用ダンプレベル参照情報CH127」で表わされるアドレスにそれぞれ割り当てられている。予約された発音チャンネルCHn(n=0,1・・・127)にて発音を開始する場合、パラメータ転送回路17c2は、「予約用ダンプレベル参照情報CHn」で表されるアドレスを用いてダンプレベル参照情報DPnを第1メモリ17c1から読み出し、「実行用ダンプレベル参照情報CHn」で表されるアドレスを用いて前記読み出したダンプレベル参照情報DPnを第2メモリ17c3に書き込む。これにより、ダンプレベル参照情報DPnが第1メモリ17c1から第2メモリ17c3に転送される。また、詳しくは後述するように、CPU19aは、発音チャンネルCHnのエレメント信号の音量レベルがダンプレベル以下であるか否かを判定するとき、「実行用ダンプレベル参照情報CHn」で表されるアドレスを用いて、第2メモリ17c3からダンプレベル参照情報DPnを読み出すことができる。そして、読み出したダンプレベル参照情報DPnを用いて、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1から上記の判定に用いるダンプレベルを読み出すことができる。   For example, the storage areas of the dump level reference information DP0 to DP127 in the second memory 17c3 are at addresses represented by “execution dump level reference information CH0” to “execution dump level reference information CH127” in the memory address space of the CPU 19a. Each is assigned. When sounding is started on the reserved sounding channel CHn (n = 0, 1,... 127), the parameter transfer circuit 17c2 uses the address represented by “reserved dump level reference information CHn” for the dump level. The reference information DPn is read from the first memory 17c1, and the read dump level reference information DPn is written to the second memory 17c3 using an address represented by “execution dump level reference information CHn”. Thereby, the dump level reference information DPn is transferred from the first memory 17c1 to the second memory 17c3. As will be described in detail later, when determining whether or not the volume level of the element signal of the sound generation channel CHn is equal to or lower than the dump level, the CPU 19a uses the address represented by “execution dump level reference information CHn”. The dump level reference information DPn can be read from the second memory 17c3. Then, the dump level used for the above determination can be read from the dump level setting register DS0 or the dump level setting register DS1 using the read dump level reference information DPn.

また、パラメータ出力回路17c4は、発音開始指示回路17b6による発音開始指示に応答して、第2メモリ17c3に書き込まれたパラメータを、音源回路17の各部にそれぞれ出力する。例えば、ダンプレベル参照情報DP0〜DP127を、ダンプレベル到達検出回路17b4に出力する。なお、パラメータ出力回路17c4は、第2メモリ17c3に書き込まれたパラメータを、1サンプリング周期を128分割した時分割で出力する。すなわち、1サンプリング周期を128分割した各期間がそれぞれ発音チャンネルCH0〜CH127に対応していて、パラメータ出力回路17c4は、各期間内に、対応する発音チャンネルのパラメータを出力する。   The parameter output circuit 17c4 outputs the parameters written in the second memory 17c3 to each part of the tone generator circuit 17 in response to the sounding start instruction from the sounding start instruction circuit 17b6. For example, dump level reference information DP0 to DP127 is output to the dump level arrival detection circuit 17b4. The parameter output circuit 17c4 outputs the parameters written in the second memory 17c3 in a time division manner in which one sampling period is divided into 128. That is, each period obtained by dividing one sampling period into 128 corresponds to the sound generation channels CH0 to CH127, and the parameter output circuit 17c4 outputs the parameter of the corresponding sound generation channel within each period.

また、CPU19aは、第2メモリ17c3にパラメータを直接書き込むことができる。例えば、CPU19aは、各種エンベロープに関するパラメータを逐次更新して、発音中の楽音の音高、音色及び音量を変化させる。   In addition, the CPU 19a can directly write parameters to the second memory 17c3. For example, the CPU 19a sequentially updates parameters related to various envelopes, and changes the pitch, tone color, and volume of a musical tone that is being generated.

なお、第1メモリ17c1と第2メモリ17c3を1つのメモリで構成してもよい。すなわち、大きな記憶容量を有するメモリの記憶領域を分割して、第1メモリ17c1に相当する領域と第2メモリ17c3に相当する領域を確保すればよい。   Note that the first memory 17c1 and the second memory 17c3 may be configured by one memory. In other words, a memory area having a large storage capacity may be divided to secure an area corresponding to the first memory 17c1 and an area corresponding to the second memory 17c3.

c.コンピュータ部19の構成
次に、コンピュータ部19の構成について詳しく説明する。とくに、ROM19c及びRAM19dに記憶されるプログラム及び各種データについて詳しく説明する。ROM19cには、ボイスデータリストが記憶されている。ボイスデータリストは、図5に示すように、各音色ごとに規定されたボイスデータからなる。ボイスデータは、各音色の楽音波形を構成するエレメント波形ごとに設けられたエレメントデータ及び各エレメント信号の生成に共通に使用されるコモンデータからなる。
c. Next, the configuration of the computer unit 19 will be described in detail. In particular, the programs and various data stored in the ROM 19c and the RAM 19d will be described in detail. The ROM 19c stores a voice data list. As shown in FIG. 5, the voice data list is composed of voice data defined for each tone color. The voice data is composed of element data provided for each element waveform constituting a musical tone waveform of each tone color and common data commonly used for generating each element signal.

各エレメントデータの構成は共通である。各エレメントデータは、フィルタ回路FLTを制御するためのフィルタ制御パラメータ、低周波信号発生回路LFOを制御するための低周波信号制御パラメータ、各種エンベロープ生成用のエンベロープパラメータ及び波形データの選択に関する波形データ選択情報から構成されている。波形データ選択情報は、ノートナンバ及びベロシティと選択する波形データに関する情報を表す波形データ情報との対応関係を記録したテーブルである。波形データ情報は、波形データの先頭アドレス、末尾アドレス及び元ピッチからなる。   The configuration of each element data is common. Each element data includes a filter control parameter for controlling the filter circuit FLT, a low frequency signal control parameter for controlling the low frequency signal generation circuit LFO, an envelope parameter for generating various envelopes, and waveform data selection relating to selection of waveform data. It consists of information. The waveform data selection information is a table that records the correspondence between the note number and velocity and the waveform data information that represents information related to the selected waveform data. The waveform data information includes the top address, end address, and original pitch of the waveform data.

また、コモンデータは、音色名を表す音色名情報及びチャンネル累算回路17aにおいて各発音チャンネルから出力される全てのエレメント信号に共通の効果を付与するためのエフェクトパラメータなどから構成される。   The common data includes timbre name information representing a timbre name and an effect parameter for giving a common effect to all element signals output from each sound generation channel in the channel accumulation circuit 17a.

また、ROM19cには、発音予約プログラム(図9)、発音チャンネル確保プログラム(図10)、音量レベル取得の周期処理プログラム(図15)及びパラメータ更新の周期処理プログラム(図16)が記憶されている。発音予約プログラムは、ノートオンイベントが発生すると実行され、前記ノートオンイベントに対応した発音を行うために使用する発音チャンネルの予約及び発生させる楽音に関するパラメータの書き込みを行うためのプログラムである。発音チャンネル確保プログラムは、発音予約プログラムのサブルーチンであって、発音に必要な発音チャンネルを確保するためのプログラムである。発音予約プログラムの実行において、CPU19aは、確保した発音チャンネルが他の発音処理に使用されているか否かに関わらず、前記発生したノートオンイベントに対応した楽音に関するパラメータを音源回路17の第1メモリ17c1に書き込む。これにより、発音チャンネルの予約が終了する。すなわち、CPU19aは、発音予約プログラムの実行により予約した発音チャンネルにて発音処理が開始されるのを待たずに発音予約プログラムを終了する。音源回路17は、予約された発音チャンネルが前記発生したノートオンイベントに対応した楽音の生成のために使用可能な状態になると、発音予約プログラムの実行により第1メモリ17c1に書き込まれたパラメータを用いて発音処理を開始する。   The ROM 19c stores a tone generation reservation program (FIG. 9), a tone generation channel securing program (FIG. 10), a volume level acquisition cycle processing program (FIG. 15), and a parameter update cycle processing program (FIG. 16). . The sound generation reservation program is executed when a note-on event occurs, and is a program for reserving a sound channel used for sound generation corresponding to the note-on event and writing parameters relating to the musical sound to be generated. The pronunciation channel securing program is a subroutine of the pronunciation reservation program, and is a program for securing a pronunciation channel necessary for pronunciation. In the execution of the pronunciation reservation program, the CPU 19a sets parameters relating to the musical tone corresponding to the generated note-on event to the first memory of the tone generator circuit 17 regardless of whether or not the reserved tone generation channel is used for other tone generation processing. Write to 17c1. This completes the reservation of the sound channel. That is, the CPU 19a ends the pronunciation reservation program without waiting for the sound generation process to be started in the sound generation channel reserved by the execution of the sound generation reservation program. When the reserved tone generation channel becomes usable for generating a tone corresponding to the generated note-on event, the tone generator circuit 17 uses the parameters written in the first memory 17c1 by executing the tone reservation program. To start the pronunciation process.

音量レベル取得の周期処理プログラム及びパラメータ更新の周期処理プログラムは、タイマ19bから供給される割り込み信号をトリガとして実行される。音量レベル取得の周期処理プログラムは、音量レベルレジスタAL0〜AL127の値を定期的に読み出して、後述する各発音チャンネル情報を更新するプログラムである。また、パラメータ更新の周期処理プログラムは、発音中の各発音チャンネルにて発生されるエレメント信号をリアルタイムに変化させるために音源回路17に供給する楽音パラメータを所定の周期で更新するプログラムであって、例えば、各エンベロープ生成のためのパラメータを第2メモリ17c3に書き込むプログラムである。   The periodic processing program for volume level acquisition and the periodic processing program for parameter update are executed using an interrupt signal supplied from the timer 19b as a trigger. The periodic processing program for volume level acquisition is a program that periodically reads the values of the volume level registers AL0 to AL127 and updates each tone generation channel information to be described later. The parameter update periodic processing program is a program for updating the musical tone parameters supplied to the tone generator circuit 17 in a predetermined cycle in order to change the element signal generated in each sound generation channel during sound generation in real time. For example, it is a program for writing parameters for generating each envelope in the second memory 17c3.

また、RAM19dには、各プログラムの実行により一時的に生成されるデータが記憶される。この一時的に生成されるデータには、メロディパート、伴奏パートなどの演奏パートごとに設けられたパート情報からなるパート情報リストPLが含まれる。本実施形態においては、16個の演奏パートを備えていて、各演奏パートには、それぞれパート番号PN(PN=0,1・・・16)が付されている。したがって、パート情報リストPLは16個のパート情報からなる。各パート情報は、図6に示すように、ノート情報リストNLへの参照情報及びボイスデータへの参照情報からなる。   The RAM 19d stores data temporarily generated by executing each program. The temporarily generated data includes a part information list PL composed of part information provided for each performance part such as a melody part and accompaniment part. In this embodiment, 16 performance parts are provided, and each performance part is given a part number PN (PN = 0, 1,... 16). Therefore, the part information list PL consists of 16 pieces of part information. Each part information includes reference information to the note information list NL and reference information to the voice data, as shown in FIG.

ボイスデータへの参照情報は、各パートに割り当てられた音色のボイスデータへの参照情報である。ノート情報リストNLは、演奏パートごとに設けられている。各演奏パートごとのノート情報リストNLは、1つの演奏パートに属するノートオンイベントごとに発音中又は予約された発音に関する情報を記憶したノート情報からなる。各ノート情報には、図7に示すように、音高を表すノートナンバ、押鍵タッチ強さを表すべロシティ及び使用する発音チャンネルに関する情報を表す発音チャンネル情報への参照情報(チャンネル番号など)が含まれる。各ノート情報は、1つの楽音波形を構成するエレメント波形の数と同数の発音チャンネルへの参照情報を有する。図5乃至図7に示す例では、パート1に割り当てられた音色は、楽音波形が2つのエレメント波形から構成されている。したがって、パート1の各ノート情報は、発音チャンネルへの参照情報をそれぞれ2つずつ有する。ノート情報は、ノートオンイベントが発生するごとにノート情報リストNLに1つずつ追加される。また、ノートオフイベントの発生により発音が終了すると、ノート情報はノート情報リストNLから削除される。ただし、必ず最も古いノート情報から順番に削除されるとは限らない。そこで、各ノート情報は、1つ前のノート情報のアドレスを示す前方リンク及び1つ後のノート情報のアドレスを示す後方リンクを有している。なお、最も古いノート情報の前方リンク及び最も新しいノート情報の後方リンクには、リンク先のノート情報が無いことを示す値(例えば「0」)が記録される。ノート情報の追加及び削除がなされるごとに、前方リンク及び後方リンクを更新することにより、ノートオンイベントが発生した順にノート情報を辿ることができるようにしている。   The reference information to the voice data is reference information to the voice data of the timbre assigned to each part. The note information list NL is provided for each performance part. The note information list NL for each performance part is composed of note information that stores information related to pronunciation during or for each note-on event belonging to one performance part. As shown in FIG. 7, each note information includes a note number indicating a pitch, a velocity indicating a key press touch strength, and reference information to a sound channel information indicating information on a sound channel to be used (such as a channel number). Is included. Each note information includes reference information for the same number of sound generation channels as the number of element waveforms constituting one musical sound waveform. In the example shown in FIGS. 5 to 7, the tone color assigned to part 1 is composed of two element waveforms in the musical sound waveform. Therefore, each piece of note information in part 1 has two pieces of reference information for the sound generation channel. Note information is added to the note information list NL one by one every time a note-on event occurs. Further, when the sound generation ends due to the occurrence of a note-off event, the note information is deleted from the note information list NL. However, the oldest note information is not necessarily deleted in order. Thus, each piece of note information has a front link indicating the address of the previous note information and a back link indicating the address of the next note information. A value (for example, “0”) indicating that there is no linked note information is recorded in the forward link of the oldest note information and the backward link of the newest note information. Each time the note information is added or deleted, the forward link and the backward link are updated so that the note information can be traced in the order in which the note-on event occurs.

発音チャンネル情報リストCLは、各発音チャンネルごとに設けられた発音チャンネル情報1乃至発音チャンネル情報127からなり、各発音チャンネル情報は、図8に示すように、発音中か否かを表す空きチャンネルフラグ、各種エンベロープに関するエンベロープ情報及びその発音チャンネル情報への参照情報を記憶しているノート情報への参照情報からなる。いずれのノート情報からも参照されていない発音チャンネル情報に対応した発音チャンネル(例えば、図6における発音チャンネルCH4)は、空きチャンネルである。   The sound channel information list CL includes sound channel information 1 to sound channel information 127 provided for each sound channel, and each sound channel information is an empty channel flag indicating whether or not sound is being generated, as shown in FIG. And reference information to note information storing envelope information related to various envelopes and reference information to the sound channel information. The sound generation channel (for example, the sound generation channel CH4 in FIG. 6) corresponding to the sound generation channel information that is not referred to by any note information is an empty channel.

次に、上記のように構成した電子楽器の動作について説明する。演奏者が鍵盤11のいずれかの鍵を押鍵操作してノートオンイベントが発生すると、CPU19aは、図11に示すように、ステップS10にて、発音予約プログラムを開始する。次に、CPU19aは、ステップS12にて、操作子インターフェース回路14から供給された演奏情報から、押鍵された鍵を表すノート番号NN、押鍵の強さを表すベロシティVEL及びパート番号PNを取得する。鍵盤11には、予めいずれかの演奏パートが割り当てられていて、鍵盤11の押鍵操作により、その演奏パートに割り当てられた音色で発音するようになっている。また、鍵域ごとに異なる演奏パートを割り当てることもできる。CPU19aは、ノートオンイベントが鍵盤11の押鍵操作により発生したこと、前記取得したノート番号NNなどから押鍵された鍵が属する演奏パートを表すパート番号PNを特定する。次に、CPU19aは、ステップS14にて、前記取得したパート番号PNを用いて、対応するボイスデータを特定し、このボイスデータを構成するエレメントデータの数を取得する。すなわち、前記ステップS12において取得したパートに割り当てられた音色で発音するのに必要な発音チャンネル数を取得する。そして、CPU19aは、ステップS16にて、図10に示す発音チャンネル確保プログラムを実行して、前記ステップS14において取得した数の発音チャンネルを確保する。   Next, the operation of the electronic musical instrument configured as described above will be described. When a performer presses any key on the keyboard 11 to generate a note-on event, the CPU 19a starts a pronunciation reservation program in step S10 as shown in FIG. Next, in step S12, the CPU 19a obtains a note number NN indicating the pressed key, a velocity VEL indicating the key pressing strength, and a part number PN from the performance information supplied from the operator interface circuit 14. To do. One of the performance parts is assigned to the keyboard 11 in advance, and when the keyboard 11 is depressed, the tone assigned to the performance part is generated. Different performance parts can be assigned to each key range. The CPU 19a specifies that a note-on event has occurred due to a key pressing operation on the keyboard 11, and specifies a part number PN representing a performance part to which the key pressed from the acquired note number NN or the like belongs. Next, in step S14, the CPU 19a identifies the corresponding voice data using the acquired part number PN, and acquires the number of element data constituting the voice data. That is, the number of tone generation channels necessary for sound generation with the tone assigned to the part acquired in step S12 is acquired. Then, in step S16, the CPU 19a executes the sound channel securing program shown in FIG. 10 to secure the number of sound production channels acquired in step S14.

CPU19aは、図10に示すように、ステップS16aにて、発音チャンネル確保プログラムの実行を開始し、ステップS16bにて、発音チャンネル情報の空きチャンネルフラグを参照して、空きチャンネルを検索する。ステップS16bの検索結果、空きチャンネルがある場合、後述のステップS16hに進む。一方、空きチャンネルが無い場合、CPU19aは、ステップS16cにて、発音チャンネルCH0,CH1・・・CH127のうちの、予約済みでない発音チャンネルの中から、トランケートする発音チャンネルCHn(n=0,1・・・127)を1つ選択する。予約済みが否かは、予約可否フラグAFn(n=0,1・・・127)を参照することにより判断する。また、予約済みでない発音チャンネルのうち、どの発音チャンネルをトランケートするかは、予め定められた規則に従う。例えば、発音チャンネル情報を参照して、エレメント信号の音量レベルが最も小さい発音チャンネルをトランケートするチャンネルとして決定する。また、ノート情報の前方リンクを次々と辿って最も古いノート情報を特定し、最も古いノート情報が参照している発音チャンネル情報に記録されているエレメント信号の音量レベルが最も小さい発音チャンネルをトランケートするチャンネルとして決定してもよい。   As shown in FIG. 10, the CPU 19a starts executing the sound generation channel securing program in step S16a, and searches for an empty channel with reference to the empty channel flag of the sound generation channel information in step S16b. If there is an empty channel as a result of the search in step S16b, the process proceeds to step S16h described later. On the other hand, if there is no empty channel, the CPU 19a, in step S16c, truncates the sound channel CHn (n = 0, 1,...) To be truncated from the sound channels not reserved among the sound channels CH0, CH1,. .. Select one 127). Whether or not the reservation has been made is determined by referring to the reservation availability flag AFn (n = 0, 1,... 127). In addition, it is determined in accordance with a predetermined rule which sound channel to be truncated among sound channels not reserved. For example, referring to the sound channel information, the sound channel having the smallest volume level of the element signal is determined as the channel to be truncated. Also, the oldest note information is identified by following the forward links of the note information one after another, and the sound channel with the lowest volume level of the element signal recorded in the sound channel information referred to by the oldest note information is truncated. It may be determined as a channel.

次に、CPU19aは、ステップS16dにて、前記ステップS16cの処理により選択したトランケートする発音チャンネルCHnに対応する発音チャンネル情報n内のノート情報への参照情報を用いて、発音チャンネル情報nを参照しているノート情報(参照元のノート情報)を特定し、この参照元のノート情報から発音チャンネル情報nへの参照情報を削除する。そして、CPU19aは、ステップS16eにて、参照元のノート情報内の発音チャンネル情報への参照情報が全て削除されたか否かを判定する。ステップS16eの判定の結果、参照元のノート情報内の発音チャンネル情報への参照情報が全て削除されている場合、CPU19aは、ステップS16fにて、ノート情報リストNLから参照元のノート情報を削除する。一方、ステップS16eの処理の結果、参照元のノート情報内に他の発音チャンネル情報への参照情報が残っている場合は、ノート情報リストNLから参照元のノート情報を削除することなく、ステップS16gに進む。そして、CPU19aは、ステップ16gにて、前記ステップS16cの処理により選択した発音チャンネルCHnのトランケートを指示する。具体的には、発音チャンネルCHnのエレメント信号の音量レベルを急速に小さくするエンベロープを音量変更回路AEGに生成させるためのパラメータを第2メモリ17c3に書き込む。   Next, in step S16d, the CPU 19a refers to the sound production channel information n by using the reference information to the note information in the sound production channel information n corresponding to the sound production channel CHn to be truncated selected by the process of step S16c. Current note information (reference source note information) is specified, and reference information to the sound generation channel information n is deleted from the reference source note information. Then, in step S16e, the CPU 19a determines whether or not all the reference information to the sound generation channel information in the reference source note information has been deleted. As a result of the determination in step S16e, if all the reference information to the sound channel information in the reference source note information has been deleted, the CPU 19a deletes the reference source note information from the note information list NL in step S16f. . On the other hand, as a result of the processing in step S16e, if reference information for other sound generation channel information remains in the reference source note information, step S16g is deleted without deleting the reference source note information from the note information list NL. Proceed to In step 16g, the CPU 19a instructs truncation of the tone generation channel CHn selected by the processing in step S16c. Specifically, a parameter for causing the volume changing circuit AEG to generate an envelope that rapidly decreases the volume level of the element signal of the sound generation channel CHn is written in the second memory 17c3.

そして、CPU19aは、ステップS16hにて、前記ステップS16gにおいてトランケート指示を行った発音チャンネルCHnを新たな発音に使用する発音チャンネルとして確保する。また、上述のステップS16bによる空きチャンネルの検索の結果、空きチャンネルが有った場合、CPU19aは、ステップS16hにて、その空きチャンネルを新たな発音に使用する発音チャンネルとして確保する。   Then, in step S16h, the CPU 19a secures the sound generation channel CHn for which the truncation instruction was given in step S16g as a sound generation channel used for new sound generation. If there is an empty channel as a result of searching for an empty channel in step S16b described above, the CPU 19a secures the empty channel as a sound generation channel to be used for new sound generation in step S16h.

次に、CPU19aは、ステップS16iにて、発音に必要なチャンネル数分の発音チャンネルを確保したかの判定を行う。すなわち、図9のステップS14の処理により取得したエレメントデータの数と同じ数の発音チャンネルを確保した場合は、ステップS16jにて、発音チャンネル確保プログラムを終了して、発音予約プログラムに戻る。一方、確保した発音チャンネルの数が、ステップS14の処理により取得したエレメントデータ数未満の場合は、ステップS16b〜ステップS16hからなる処理を繰り返し実行して、エレメントデータ数分の発音チャンネルを確保する。   Next, in step S16i, the CPU 19a determines whether sound channels for the number of channels necessary for sound generation have been secured. That is, if the same number of sound generation channels as the number of element data acquired by the process of step S14 in FIG. 9 is secured, the sound generation channel reservation program is terminated in step S16j and the process returns to the sound generation reservation program. On the other hand, if the number of sounding channels secured is less than the number of element data acquired by the processing in step S14, the processing consisting of steps S16b to S16h is repeatedly executed to secure sounding channels for the number of element data.

ふたたび図9の説明に戻る。発音チャンネル確保プログラムの実行により、発音に必要なチャンネル数分の発音チャンネルを確保すると、CPU19aは、ステップS18にて、ノート情報リストNLに新たなノート情報を1つ追加する(図6及び図7参照)。そして、追加したノート情報に、前記ステップS12にて取得したノートナンバ及びベロシティを書き込む。また、確保した発音チャンネルに対応する発音チャンネル情報への参照情報を書き込む。さらに、1つ前に発生したノートオンイベントに対応するノート情報への参照情報である前方リンクを書き込む。次に、CPU19aは、ステップS20にて、前記ステップS16の処理により確保した発音チャンネルに対応する発音チャンネル情報を初期化する(図6及び図8参照)。具体的には、空きチャンネルフラグを「使用中」にセットし、ノート情報への参照情報として、前記ステップS18の処理により追加した新たなノート情報への参照情報をセットする。また、各種エンベロープの初期値をセットする。   Returning again to the description of FIG. When the number of sound generation channels required for sound generation is secured by executing the sound generation channel reservation program, the CPU 19a adds one new note information to the note information list NL in step S18 (FIGS. 6 and 7). reference). Then, the note number and velocity acquired in step S12 are written in the added note information. In addition, reference information to the sound channel information corresponding to the secured sound channel is written. Further, a forward link that is reference information to the note information corresponding to the note-on event that occurred one before is written. Next, in step S20, the CPU 19a initializes the sound channel information corresponding to the sound channel secured by the process of step S16 (see FIGS. 6 and 8). Specifically, the empty channel flag is set to “in use”, and reference information to the new note information added by the process of step S18 is set as reference information to the note information. Also, set initial values of various envelopes.

次に、CPU19aは、ステップS20にて、前記ステップS16の処理により確保した発音チャンネルのそれぞれについての各種パラメータを第1メモリ17c1に書き込む。すなわち、ステップS14において特定したボイスデータから、エフェクトパラメータ、エンベロープパラメータ、波形データの先頭及び末尾アドレス、元ピッチなどを取得して、これらを第1メモリ17c1にそれぞれ書き込む。また、CPU19aは、第1メモリ17c1にダンプレベル参照情報を第1メモリ17c1に書き込む。すなわち、CPU19aは、ステップS12において取得したパート番号PNに応じて、第1メモリ17c1にダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1のアドレスを書き込む。この例においては、手動演奏によってノートオンイベントが発生しているので、ダンプレベル設定レジスタDS0のアドレスを書き込む。なお、自動演奏によってノートオンイベントが発生した場合は、ダンプレベル設定レジスタDS1のアドレスを書き込む。   Next, in step S20, the CPU 19a writes various parameters for each of the sound generation channels secured by the process of step S16 into the first memory 17c1. That is, the effect parameter, envelope parameter, start and end addresses of the waveform data, the original pitch, and the like are acquired from the voice data identified in step S14, and these are written in the first memory 17c1, respectively. Further, the CPU 19a writes dump level reference information to the first memory 17c1 in the first memory 17c1. That is, the CPU 19a writes the address of the dump level setting register DS0 or the dump level setting register DS1 in the first memory 17c1 according to the part number PN acquired in step S12. In this example, since a note-on event has occurred due to manual performance, the address of the dump level setting register DS0 is written. If a note-on event occurs due to automatic performance, the address of the dump level setting register DS1 is written.

ふたたび、図9の説明に戻る。CPU19aは、ステップS24にて、チャンネル指示レジスタCS0,CS1・・・CS127のうち、前記ステップS16の処理により確保した発音チャンネルに対応するレジスタを「予約」にセットする。次に、CPU19aは、ステップS26にて、グループフルレジスタGFが「空きグループあり」になるまで待つ。なお、上述のように、本実施形態においては30個のグループを使用することができるので、ステップS26の開始時にグループフルレジスタGFが「空きグループ無し」の状態になっていることはほとんど無い。たとえ、ステップS26の開始時にグループフルレジスタGFが「空きグループ無し」の状態になっていても、音源回路17において、発音チャンネルに対するトランケート処理が行われ、予約中の楽音の生成が開始されることにより、短時間(例えば数ミリ秒)でグループフルレジスタGFが「空きグループあり」になる。したがって、ステップS26の待ち時間が長くなって、CPU19aが他の処理をタイミング良く実行できなくなるという問題は発生しない。   Returning to the description of FIG. In step S24, the CPU 19a sets, in the channel designation registers CS0, CS1,... CS127, a register corresponding to the sound generation channel secured by the processing in step S16 to “reserved”. Next, in step S26, the CPU 19a waits until the group full register GF becomes “available group”. As described above, 30 groups can be used in the present embodiment, and therefore, the group full register GF is hardly in a “no empty group” state at the start of step S26. Even if the group full register GF is in a state of “no empty group” at the start of step S26, the tone generator circuit 17 performs the truncation process on the sound generation channel, and the generation of the reserved musical tone is started. Thus, the group full register GF becomes “with free group” in a short time (for example, several milliseconds). Therefore, the problem that the waiting time in step S26 becomes long and the CPU 19a cannot execute other processes in a timely manner does not occur.

CPU19aは、ステップS26の処理にて、「空きグループあり」と判定すると、ステップS28にて、予約受付回路17b1に対し、予約トリガ信号を出力し、ステップS30にて、発音予約プログラムを終了する。これにより、1つのノートオンイベントについての発音チャンネルの予約が完了する。   If the CPU 19a determines that “there is an empty group” in the process of step S26, the CPU 19a outputs a reservation trigger signal to the reservation receiving circuit 17b1 in step S28, and ends the pronunciation reservation program in step S30. This completes the reservation of the sound channel for one note-on event.

つぎに、発音予約プログラムのステップS16において確保した発音チャンネルCHn(n=0,1・・・127)が空きチャンネルであって、ステップS18乃至ステップS28において、発音チャンネルCHnを予約した場合の音源回路17の動作について図11を用いて説明する。   Next, the tone generation channel CHn (n = 0, 1,... 127) reserved in step S16 of the tone generation reservation program is an empty channel, and the tone generator circuit when the tone generation channel CHn is reserved in steps S18 to S28. 17 will be described with reference to FIG.

予約トリガ信号を入力した予約受付回路17b1は、グループ使用可否フラグGU0,GU1・・・GU30から空きグループ番号mを取得するとともに、そのグループ使用可否フラグGUmを「使用中」にセットする。そして、取得した空きグループ番号mを、発音チャンネルCHnに対応するキーオンマップレジスタKMnに書き込む。その後、予約受付回路17b1は、チャンネル指定レジスタCSを「指定なし」にセットする。キーオンマップレジスタKMnにグループ番号mが書き込まれると、予約可否フラグセット回路17b8が、発音チャンネルCHnに対応する予約可否フラグAFnを「予約不可」にセットする。また、キーオンマップレジスタKMnにグループ番号mが書き込まれたサンプリング周期の次のサンプリング周期の開始時に、キーオンマップラッチ回路17b5が、キーオンマップKMの内容をキーオンマップラッチKMLにコピーする。すなわち、キーオンマップラッチレジスタKMLnにグループ番号mが書き込まれる。   The reservation receiving circuit 17b1 that has input the reservation trigger signal acquires the empty group number m from the group availability flag GU0, GU1,... GU30, and sets the group availability flag GUm to “in use”. Then, the acquired empty group number m is written into the key-on map register KMn corresponding to the tone generation channel CHn. Thereafter, the reservation receiving circuit 17b1 sets the channel designation register CS to “no designation”. When the group number m is written in the key-on map register KMn, the reservation enable / disable flag setting circuit 17b8 sets the reservation enable / disable flag AFn corresponding to the tone generation channel CHn to “reservation disabled”. In addition, at the start of the sampling period next to the sampling period in which the group number m is written in the key-on map register KMn, the key-on map latch circuit 17b5 copies the contents of the key-on map KM to the key-on map latch KML. That is, the group number m is written in the key-on map latch register KMLn.

そして、ダンプレベル到達検出回路17b4は、音量レベルレジスタAL0〜AL127を介してレベル検出回路17b3から供給される各発音チャンネルのエレメント信号の音量レベル、及びキーオンマップラッチに基づいて、グループmに属する全ての発音チャンネルにて生成されているエレメント信号の音量レベルがそれぞれの発音チャンネルに設定されているダンプレベルに到達したか否かを判定する。発音チャンネルCHnについての判定において、ダンプレベル到達検出回路17b4には、パラメータ出力回路17c4からダンプレベル参照情報DPnが供給される。ダンプレベル到達検出回路17b4は、ダンプレベル参照情報DPnを用いて、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1を参照し、発音チャンネルCHnについての上記の判定に用いるダンプレベルを取得する。この例の場合、手動演奏によってノートオンイベントが発生しているので、ダンプレベル参照情報DPnには、ダンプレベル設定レジスタDS0のアドレスが書き込まれている。したがって、ダンプレベル到達検出回路17b4は、ダンプレベル設定レジスタDS0に記憶されているダンプレベルを取得する。そして、ダンプレベル到達検出回路17b4は、判定結果をダンプレベル到達検出レジスタDLmに書き込む。上記のように、発音チャンネルCHnの予約時においては、発音チャンネルCHnは空きチャンネルとなっている。すなわち、発音チャンネルCHnのエレメント信号の音量レベルは、ダンプレベル参照情報DPnにより参照されるダンプレベルよりも小さくなっている。したがって、ダンプレベル到達検出回路17b4は、CPU19aが発音チャンネルCHnの予約を行ったサンプリング周期の次のサンプリング周期にて、発音チャンネルCHnの音量レベルはダンプレベルに到達していると判定する。   Then, the dump level arrival detection circuit 17b4 receives all the sound levels belonging to the group m based on the volume level of the element signal of each tone generation channel supplied from the level detection circuit 17b3 via the volume level registers AL0 to AL127 and the key-on map latch. It is determined whether or not the volume level of the element signal generated in each sound generation channel has reached the dump level set in each sound generation channel. When determining the sound generation channel CHn, the dump level arrival detection circuit 17b4 is supplied with the dump level reference information DPn from the parameter output circuit 17c4. The dump level arrival detection circuit 17b4 refers to the dump level setting register DS0 or the dump level setting register DS1 using the dump level reference information DPn, and acquires the dump level used for the above determination for the sound generation channel CHn. In this example, since a note-on event has occurred due to manual performance, the address of the dump level setting register DS0 is written in the dump level reference information DPn. Therefore, the dump level arrival detection circuit 17b4 acquires the dump level stored in the dump level setting register DS0. Then, the dump level arrival detection circuit 17b4 writes the determination result in the dump level arrival detection register DLm. As described above, when the sound generation channel CHn is reserved, the sound generation channel CHn is an empty channel. That is, the volume level of the element signal of the tone generation channel CHn is smaller than the dump level referred to by the dump level reference information DPn. Accordingly, the dump level arrival detection circuit 17b4 determines that the volume level of the sound generation channel CHn has reached the dump level in the sampling period next to the sampling period in which the CPU 19a has reserved the sound generation channel CHn.

一方、CPU19aによる発音予約プログラムのステップS22の処理によって、図12に示すように、第1メモリ17c1にパラメータが書き込まれ、これらのパラメータは、ダンプレベル到達検出レジスタDLmの値が「ダンプレベル到達」になるまで、第1メモリ17c1に保持されている。そして、ダンプレベル到達レジスタDLmの値が「ダンプレベル到達」になると、その次のサンプリング周期にて、パラメータ転送回路17c2が、第1メモリ17c1に書き込まれているパラメータを第2メモリ17c3にコピーする。第1メモリ17c1に保持されていたパラメータが第2メモリ17c3にコピーされた後に発生したノートオンイベントに対応して再び発音チャンネルCHnが予約され、その新たな予約に係るパラメータが第1メモリ17c1に書き込まれるまでは、元のパラメータは、第1メモリ17c1に残るが、この記憶領域は参照されず、未使用となる。   On the other hand, as shown in FIG. 12, parameters are written in the first memory 17c1 by the processing of step S22 of the pronunciation reservation program by the CPU 19a, and these parameters have the value of the dump level arrival detection register DLm “Dump level reached”. Until the first memory 17c1 holds. When the value of the dump level arrival register DLm reaches “dump level reached”, the parameter transfer circuit 17c2 copies the parameter written in the first memory 17c1 to the second memory 17c3 in the next sampling cycle. . The tone generation channel CHn is reserved again in response to the note-on event that occurs after the parameter held in the first memory 17c1 is copied to the second memory 17c3, and the parameter relating to the new reservation is stored in the first memory 17c1. Until the data is written, the original parameters remain in the first memory 17c1, but this storage area is not referred to and is unused.

そして、発音開始指示回路17b6が、グループmに属する全発音チャンネルに対し、発音開始を指示するとともに、これらの発音チャンネルに対応するキーオンマップレジスタ及びキーオンマップラッチレジスタを「グループ割り当てなし」にセットする。さらに、発音開始指示回路17b6は、グループ使用状況レジスタGUmを「使用可」にセットする。予約可否フラグセット回路17b8は、キーオンマップレジスタKMnが「グループ割り当てなし」にセットされても、所定時間(例えば、サンプリング周期の5周期分)だけ予約可否フラグを「予約不可」に保持し、その後「予約可」にセットする。   Then, the sound generation start instruction circuit 17b6 instructs the sound generation start to all sound generation channels belonging to the group m, and sets the key-on map register and the key-on map latch register corresponding to these sound generation channels to “no group assignment”. . Further, the sound generation start instruction circuit 17b6 sets the group usage status register GUm to “usable”. Even if the key-on map register KMn is set to “no group assignment”, the reservation enable / disable flag setting circuit 17b8 holds the reservation enable / disable flag at “reservation disabled” for a predetermined time (for example, five sampling cycles), and thereafter Set to “Reservable”.

パラメータ転送回路17c2によって第2メモリ17c3に書き込まれたパラメータは、パラメータ出力回路17c4によって、サンプリング周期ごとに、ダンプレベル到達検出回路17b4及び各発音チャンネルの所定の回路にそれぞれ出力される。   The parameter written to the second memory 17c3 by the parameter transfer circuit 17c2 is output by the parameter output circuit 17c4 to the dump level arrival detection circuit 17b4 and a predetermined circuit of each sound generation channel for each sampling period.

つぎに、発音チャンネルCHn(n=0,1・・・127)の発音中(すなわち、空きチャンネルでないとき)に、新たなノートオンイベントが発生し、CPU19aが、このノートオンイベントに対応する楽音生成のために発音チャンネルCHnの予約をした場合の音源回路17の動作について、図13を用いて説明する。この例においては、予約する発音チャンネルCHnは、ノートオフイベント発生後の楽音を発音中である。すなわち、音源回路17は、発音チャンネルCHnにて生成されているエレメント信号の音量レベルをサンプリング周期ごとに徐々に小さくしている。そして、CPU19aが、発音チャンネル確保プログラムのステップS16gを実行して、発音チャンネルCHnのトランケート指示を行うと、音量変更回路AEGが、エレメント信号の音量レベルの減少率を大きくするエンベロープを生成して音量制御回路AMPに供給するので、急速に音量レベルが小さくなっていく。そして、ダンプレベル到達検出回路17b4は、サンプリング周期ごとに、音量レベルレジスタAL0〜AL127を介してレベル検出回路17b3から供給される各発音チャンネルのエレメント信号の音量レベル、及びキーオンマップラッチに基づいて、グループmに属する全ての発音チャンネルの音量レベルがそれぞれの発音チャンネルに設定されているダンプレベルに到達したか否かを判定する。この場合も、予約時に発音チャンネルCHnが空きチャンネルである場合と同様に、ダンプレベル到達検出回路17b4には、パラメータ出力回路17c4からダンプレベル参照情報DPnが供給され、ダンプレベル到達検出回路17b4は、ダンプレベル参照情報DPnを用いて、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1に記憶されているダンプレベルを取得する。また、この例においても、手動演奏によってノートオンイベントが発生しているので、ダンプレベル参照情報DPnには、ダンプレベル設定レジスタDS0のアドレスが書き込まれている。したがって、ダンプレベル到達検出回路17b4は、ダンプレベル設定レジスタDS0に記憶されているダンプレベルを取得する。そして、取得したダンプレベルを用いて上記の判定を行い、ダンプレベル到達の判定結果を、ダンプレベル到達検出レジスタDLmに書き込む。   Next, a new note-on event occurs during the sound generation of the sound generation channel CHn (n = 0, 1,... 127) (that is, when it is not an empty channel), and the CPU 19a generates a musical tone corresponding to this note-on event. The operation of the tone generator circuit 17 when the tone generation channel CHn is reserved for generation will be described with reference to FIG. In this example, the tone generation channel CHn to be reserved is generating a tone after the note-off event occurs. That is, the tone generator circuit 17 gradually decreases the volume level of the element signal generated in the sound generation channel CHn for each sampling period. Then, when the CPU 19a executes step S16g of the sound generation channel securing program and gives a truncation instruction for the sound generation channel CHn, the sound volume changing circuit AEG generates an envelope for increasing the decrease rate of the sound volume level of the element signal. Since the voltage is supplied to the control circuit AMP, the volume level is rapidly reduced. The dump level arrival detection circuit 17b4 is based on the volume level of the element signal of each tone generation channel supplied from the level detection circuit 17b3 via the volume level registers AL0 to AL127 and the key-on map latch for each sampling period. It is determined whether or not the volume levels of all sound channels belonging to the group m have reached the dump level set for each sound channel. Also in this case, the dump level arrival detection circuit 17b4 is supplied with the dump level reference information DPn from the parameter output circuit 17c4, and the dump level arrival detection circuit 17b4 The dump level stored in the dump level setting register DS0 or the dump level setting register DS1 is acquired using the dump level reference information DPn. Also in this example, since a note-on event has occurred due to manual performance, the address of the dump level setting register DS0 is written in the dump level reference information DPn. Therefore, the dump level arrival detection circuit 17b4 acquires the dump level stored in the dump level setting register DS0. Then, the above determination is performed using the acquired dump level, and the determination result of reaching the dump level is written in the dump level arrival detection register DLm.

上記のように、予約時に発音チャンネルCHnが発音中である場合においては、予約時に発音チャンネルCHnが空きチャンネルである場合と比べると、ダンプレベル到達検出回路17b4によって発音チャンネルCHnがダンプレベルに到達していると判定されるまでにサンプリング周期の数周期分の時間がかかるという違いがあるが、図14に示すように、パラメータの第1メモリ17c1及び第2メモリ17c3への書き込みの動作及びパラメータの各回路への出力の動作は、予約時に発音チャンネルCHnが空きチャンネルである場合と同様である。   As described above, when the sound generation channel CHn is sounding at the time of reservation, the sound generation channel CHn reaches the dump level by the dump level arrival detection circuit 17b4 as compared with the case where the sound generation channel CHn is an empty channel at the time of reservation. However, as shown in FIG. 14, the operation of writing parameters to the first memory 17c1 and the second memory 17c3 and the parameter The output operation to each circuit is the same as when the tone generation channel CHn is an empty channel at the time of reservation.

なお、上記の例においては、ノートオンイベント及びノートオフイベントは、鍵盤11の手動演奏によって発生しているが、ノートオンイベント及びノートオフイベントは、自動演奏によっても発生する。この場合のCPU19a及び音源回路17の動作は、ステップS12にて、自動演奏装置が再生する演奏情報に応じたパート番号PNが割り当てられる点及びダンプレベル参照情報によってダンプレベル設定レジスタDS1が参照される点を除いて、ノートオンイベント及びノートオフイベントが手動演奏によって発生した場合と同様である。   In the above example, the note-on event and the note-off event are generated by manual performance of the keyboard 11, but the note-on event and the note-off event are also generated by automatic performance. The operation of the CPU 19a and the tone generator circuit 17 in this case is performed by referring to the dump level setting register DS1 in step S12 based on the point assigned with the part number PN corresponding to the performance information reproduced by the automatic performance device and the dump level reference information. Except for this point, the note-on event and note-off event are the same as those generated by manual performance.

また、CPU19aは、一定の時間間隔(例えば1ミリ秒)でタイマ19cから割り込み信号を供給され、この割り込み信号に基づいて前記所定の時間間隔(例えば10ミリ秒)ごとに、音量レベルチェックの周期処理プログラム及びパラメータ更新の周期処理プログラムを繰り返し実行する。   Further, the CPU 19a is supplied with an interrupt signal from the timer 19c at a constant time interval (for example, 1 millisecond), and the volume level check cycle is performed at the predetermined time interval (for example, 10 millisecond) based on the interrupt signal. The processing program and the periodic processing program for parameter update are repeatedly executed.

つぎに、音量レベル取得の周期処理プログラムについて説明する。図15に示すように、CPU19aは、ステップS40にて、音量レベル取得の周期処理プログラムを開始すると、ステップS42にて、1つの発音チャンネルCHn(n=0,1・・・127)を選択して、「音量レベルCHn」で表されるアドレスを用いて、発音チャンネルCHnで生成されているエレメント信号の音量レベルを、音量レベルレジスタALnから読み出す。次に、CPU19aは、ステップS44にて、「実行用ダンプレベル参照情報CHn」で表されるアドレスを用いて、第2メモリ17c3に記憶されているダンプレベル参照情報DPnを読み出す。次に、CPU19aは、ステップS46にて、前記ステップS42において読み出したダンプレベル参照情報DPnを用いて、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1に記憶されているダンプレベルを読み出す。そして、CPU19aは、ステップS48にて、前記ステップS44の処理により読み出したエレメント信号の音量レベルが、前記ステップS46の処理により読み出したダンプレベル以下であるか否かを判定する。ステップS48の判定の結果、エレメント信号の音量レベルがダンプレベル以下でない場合、後述のステップS58に進む。   Next, the volume level acquisition periodic processing program will be described. As shown in FIG. 15, when the CPU 19a starts the volume level acquisition periodic processing program in step S40, the CPU 19a selects one tone generation channel CHn (n = 0, 1,... 127) in step S42. The volume level of the element signal generated in the sound generation channel CHn is read from the volume level register ALn using the address represented by “volume level CHn”. Next, in step S44, the CPU 19a reads the dump level reference information DPn stored in the second memory 17c3 using the address represented by “execution dump level reference information CHn”. Next, in step S46, the CPU 19a reads the dump level stored in the dump level setting register DS0 or the dump level setting register DS1 using the dump level reference information DPn read in step S42. In step S48, the CPU 19a determines whether or not the volume level of the element signal read out in the process of step S44 is equal to or lower than the dump level read out in the process of step S46. If the result of determination in step S48 is that the volume level of the element signal is not less than or equal to the dump level, processing proceeds to step S58 described later.

一方、ステップS48の判定の結果、エレメント信号の音量レベルがダンプレベル以下である場合は、ステップS50にて、発音チャンネルCHnに対応する発音チャンネル情報nの空きチャンネルフラグを「空き」にセットする。つぎに、CPU19aは、ステップS52にて、発音チャンネル情報nに記録されているノート情報への参照情報を用いて、発音チャンネル情報nへの参照情報を記憶している参照元のノート情報を特定する。そして、参照元のノート情報の発音チャンネル情報nへの参照情報を削除する。つぎに、CPU19aは、ステップS54にて、参照元のノート情報内のすべての発音チャンネル情報への参照情報が削除されているか否かを判定する。参照元のノート情報内に発音チャンネル情報への参照情報が残っている場合は、ステップS58に進む。   On the other hand, if the result of determination in step S48 is that the volume level of the element signal is less than or equal to the dump level, the empty channel flag of the sound channel information n corresponding to the sound channel CHn is set to “free” in step S50. Next, in step S52, the CPU 19a uses the reference information to the note information recorded in the sound channel information n to identify the reference source note information that stores the reference information to the sound channel information n. To do. Then, the reference information to the sound generation channel information n of the reference source note information is deleted. Next, in step S54, the CPU 19a determines whether or not the reference information for all the sound channel information in the reference source note information has been deleted. If reference information to the sound channel information remains in the reference source note information, the process proceeds to step S58.

一方、すべての発音チャンネル情報への参照情報が削除されている場合は、CPU19aは、ステップS56にて、そのノート情報を削除する。そして、削除したノート情報の1つ前及び1つ後のノート情報内の前方リンク及び後方リンクを更新する。次に、CPU19aは、ステップS58にて、全ての発音チャンネルの処理が終了したか否かの判定を行う。残りの発音チャンネルがあれば、ステップS42乃至ステップS56からなる処理を繰り返して、全ての発音チャンネルの音量レベルの取得を行う。すべての発音チャンネルの音量レベルの取得が終了すると、CPU19aは、ステップS60にて、音量レベル取得の周期処理プログラムを終了する。   On the other hand, if the reference information for all the sound channel information has been deleted, the CPU 19a deletes the note information in step S56. Then, the forward link and the backward link in the note information immediately before and after the deleted note information are updated. Next, in step S58, the CPU 19a determines whether or not the processing of all sound generation channels has been completed. If there are remaining sound generation channels, the processing from step S42 to step S56 is repeated to acquire the sound volume levels of all sound generation channels. When the acquisition of the volume levels of all the sound generation channels is completed, the CPU 19a ends the periodic processing program for acquiring the volume level in step S60.

つぎに、パラメータ更新の周期処理プログラムについて説明する。パラメータ更新の周期処理プログラムは、発音中の楽音の音高、音色及び音量を変化させるエンベロープを生成するためのパラメータなどを書き込むプログラムである。CPU19aは、図16に示すステップS60にて、パラメータ更新の周期処理を開始すると、ステップS62にて、1つの発音チャンネルCHn(n=0,1・・・127)を選択し、発音チャンネルCHnに対応する予約可否フラグAFnを参照して、発音チャンネルCHnにて発生中の楽音信号がトランケート処理中か否かの判定を行う。すなわち、予約可否フラグAFnが、「予約不可」であるということは、発音チャンネルCHnにて生成中のエレメント信号がトランケート処理中であることになる。この場合、後述のステップS66に進む。一方、予約可否フラグAFnが「予約可」であるということは、発音チャンネルCHnにて生成中のエレメント信号はトランケート処理中でないことになる。この場合、CPU19aは、ステップS64にて、第2メモリ17c3のパラメータを更新する。   Next, a parameter update periodic processing program will be described. The parameter update periodic processing program is a program for writing parameters for generating an envelope for changing the pitch, tone color, and volume of a musical tone being sounded. When the CPU 19a starts the parameter update cycle process in step S60 shown in FIG. 16, the CPU 19a selects one tone generation channel CHn (n = 0, 1,... 127) in step S62, and assigns it to the tone generation channel CHn. With reference to the corresponding reservation availability flag AFn, it is determined whether or not the musical tone signal being generated in the sound generation channel CHn is being truncated. That is, if the reservation availability flag AFn is “reservation impossible”, the element signal being generated in the sound generation channel CHn is being truncated. In this case, the process proceeds to step S66 described later. On the other hand, if the reservation availability flag AFn is “reservation is possible”, the element signal being generated in the sound generation channel CHn is not being truncated. In this case, the CPU 19a updates the parameters of the second memory 17c3 in step S64.

上記ステップS64のパラメータの書き込みの例としては、演奏者によるパネル操作子12、ペダル操作子13などの操作により発生する演奏情報及び外部インターフェース回路22を介したMIDI対応の外部機器から送信された演奏情報に応じて、発音中の楽音の音高、音色、音量などを変化させる場合が挙げられる。これらの場合、CPU19aは、前記演奏情報に応じて、対応する発音チャンネルのパラメータを第2メモリ17c3に書き込んで更新する。更新されたパラメータは、更新されなかった他のパラメータとともに、パラメータ出力回路17c4によって各発音チャンネルの各回路に出力される。   As an example of the parameter writing in step S64, the performance information generated by the player's operation of the panel operator 12, the pedal operator 13, etc., and the performance transmitted from the MIDI compatible external device via the external interface circuit 22 are shown. There is a case where the pitch, tone color, volume, etc. of a musical tone being generated is changed according to information. In these cases, the CPU 19a writes and updates the parameters of the corresponding tone generation channel in the second memory 17c3 in accordance with the performance information. The updated parameter is output to each circuit of each tone generation channel by the parameter output circuit 17c4 together with other parameters that have not been updated.

CPU19aは、第2メモリ17c3に記憶された発音チャンネルCHnに関するパラメータを更新すると、ステップS66にて、全ての発音チャンネルについてのパラメータの更新が終了したか否かの判定を行う。残りの発音チャンネルがあれば、ステップS62乃至ステップS64からなる処理を繰り返して、全ての発音チャンネルについてのパラメータの更新を行う。全ての発音チャンネルについてのパラメータの更新が終了すると、CPU19aは、ステップS68にて、パラメータ更新の周期処理プログラムを終了する。   When the CPU 19a updates the parameters related to the sound generation channel CHn stored in the second memory 17c3, in step S66, the CPU 19a determines whether or not the parameter update for all the sound generation channels has been completed. If there are remaining sound generation channels, the process consisting of steps S62 to S64 is repeated to update the parameters for all sound generation channels. When the parameter update for all sound generation channels is completed, the CPU 19a ends the parameter update cycle processing program in step S68.

上記の電子楽器においては、手動演奏のパートの楽音のダンプレベルを自動演奏のパートの楽音のダンプレベルよりも小さくした。したがって、音量レベル取得の周期処理のステップS48において、自動演奏のパートのエレメント信号を発生している発音チャンネルは、手動演奏のパートのエレメント信号を発生している発音チャンネルよりも音量レベルが大きい段階でダンプレベル以下であると判定される。したがって、自動演奏のパートのエレメント信号と手動演奏のパートのエレメント信号の音量レベルの減衰速度が同一であるとき、自動演奏のパートのエレメント信号を発生している発音チャンネルは、手動演奏のパートのエレメント信号を発生している発音チャンネルよりも、エレメント信号の発生開始からの経過時間が短い時点で開放される。自動演奏のパートは、手動演奏のパートに比べて、音数が多く、音色も多様であるであることが多いので、自動演奏に係る発音チャンネルにおいては、比較的音量レベルが大きい段階で消音して、他のノートオンイベントに対応する楽音を発生させても、楽音が不自然に途切れたように感じ難い。一方、手動演奏に係る発音チャンネルにおいては、楽音の音量レベルの減衰時間が長く、発音開始からの経過時間が長くなったとしても、音量レベルが十分に小さくなるまで開放されないので、減衰時間の長い音色で演奏しても楽音が途切れたように感じ難い。したがって、自動演奏によって多くの発音チャンネルを使用しても、主に、自動演奏に使用した発音チャンネルの中から空きチャンネルを確保することができ、発音中の楽音をトランケートする機会を減らすことができる。とくに、自動演奏よりも演奏上の重要度が高い手動演奏のパートの楽音をトランケートする機会を減らすことができるので、演奏が不自然に途切れたように感じられるのを抑制できる。   In the electronic musical instrument described above, the musical sound dump level of the manually played part is set lower than the musical sound dump level of the automatic performance part. Accordingly, in step S48 of the volume level acquisition cycle processing, the sound generation channel generating the element signal of the automatic performance part has a volume level higher than the sound generation channel generating the element signal of the manual performance part. Is determined to be below the dump level. Therefore, when the volume level decay rate of the element signal of the automatic performance part and the element signal of the manual performance part is the same, the sound generation channel generating the element signal of the automatic performance part is the same as that of the manual performance part. It is released when the elapsed time from the start of the generation of the element signal is shorter than the sound generation channel generating the element signal. Automatic performance parts often have more tones and timbres than manual performance parts, so the sound channels related to automatic performance are muted at a relatively high volume level. Thus, even if a musical sound corresponding to another note-on event is generated, it is difficult to feel that the musical sound is unnaturally interrupted. On the other hand, in the sound channel related to manual performance, the decay time of the sound volume level is long, and even if the elapsed time from the start of sound generation becomes long, it is not released until the sound volume level becomes sufficiently low. It is hard to feel as if the musical tone has been interrupted even when playing with the tone. Therefore, even if a large number of sound channels are used for automatic performance, it is possible to secure a free channel mainly from the sound channels used for automatic performance, and to reduce the chance of truncating the musical sound being sounded. . In particular, it is possible to reduce the chance of truncating the musical tone of a manually played part, which is more important than the automatic performance, so that it is possible to prevent the performance from being felt unnaturally interrupted.

また、発音チャンネル確保処理(図10)において、音量レベルがダンプレベル以下である発音チャンネルがないとき、あらかじめ決められた規則に従って、新たな楽音信号の発生を割り当てる発音チャンネルを選択するようにした。例えば、最も古くから発生されていて演奏上重要でなくなっている楽音信号を発生している発音チャンネル又は音量レベルが閾値より大きい楽音信号を発生している発音チャンネルのうち、音量レベルが最も小さく、演奏上重要でなくなっている楽音信号を発生している発音チャンネルを新たな楽音信号発生を割り当てる発音チャンネルとして選択するようにした。そして、選択した発音チャンネルにて発生中の楽音信号をトランケートした後、新たな楽音信号の発生を開始するので、演奏中の楽音が不自然に途切れたように感じられることを抑制できるとともに、新たな楽音信号の発生を発音チャンネルに割り当ててから新たな楽音信号の発生を開始するまでの時間を短くできる。   In the sound channel securing process (FIG. 10), when there is no sound channel whose volume level is equal to or lower than the dump level, a sound channel to which a new musical sound signal is assigned is selected according to a predetermined rule. For example, among the sound generation channels that generate musical sound signals that have been generated since the oldest and are no longer important for performance, or the sound generation channels that generate musical sound signals whose volume level is greater than the threshold, the volume level is the smallest, The tone generation channel generating a musical tone signal that is no longer important in performance is selected as a tone generation channel to which a new musical tone signal generation is assigned. Then, after truncating the musical sound signal that is occurring on the selected sounding channel, the generation of a new musical sound signal is started, so that it is possible to prevent the musical sound being played from appearing unnaturally interrupted, It is possible to shorten the time from the generation of a new musical sound signal to the sound generation channel until the start of the generation of a new musical sound signal.

さらに、本発明の実施にあたっては、上記実施形態に限定されるものではなく、本発明の目的を逸脱しない限りにおいて種々の変更が可能である。   Furthermore, in carrying out the present invention, the present invention is not limited to the above embodiment, and various modifications can be made without departing from the object of the present invention.

g.変形例
上記実施形態においては、1つのノートオンイベントに対応した楽音信号の発生のために十分な数の空きチャンネルがある場合であっても、空きチャンネルが不足していて発音中の楽音をトランケートする場合と同様に、発音チャンネルを予約するようにした。これは、音源回路17の処理手順を統一することにより、音源回路17の回路構成を簡単にするためである。しかし、1つのノートオンイベントに対応した楽音信号の発生のために十分な数の空きチャンネルがある場合は、それらの発音チャンネルを予約する必要はない。すなわち、第1メモリ17c1及び第2メモリ17c3を介することなく、CPU19aが、各発音チャンネルCHn(n=0,1・・・127)のレジスタにパラメータを直接書き込み可能に構成しておき、CPU19aが、ステップS22(図9)にて、パラメータを第1メモリ17c1ではなく、各発音チャンネルのレジスタに直接書き込んでもよい。ただし、ダンプレベル参照情報は、第2メモリ17c3に書き込んでおく。そして、ステップS24乃至ステップS28(図9)に代えて、CPU19aが発音開始指示するようにすればよい。これによれば、ノートオンイベントに対応する十分な数の空きチャンネルがある場合には、発音チャンネルの予約のための処理を省略できるので、処理速度を向上させることができる。
g. Modification In the above embodiment, even when there are a sufficient number of empty channels for generating a musical sound signal corresponding to one note-on event, the empty sound is insufficient and the musical sound that is being sounded is truncated. As in the case of making a reservation, the pronunciation channel was reserved. This is for simplifying the circuit configuration of the sound source circuit 17 by unifying the processing procedure of the sound source circuit 17. However, if there are a sufficient number of vacant channels for generating a musical sound signal corresponding to one note-on event, it is not necessary to reserve those tone generation channels. That is, the CPU 19a is configured not to go through the first memory 17c1 and the second memory 17c3, so that the parameters can be directly written to the registers of the respective sound generation channels CHn (n = 0, 1,... 127). In step S22 (FIG. 9), the parameter may be directly written to the register of each tone generation channel instead of the first memory 17c1. However, the dump level reference information is written in the second memory 17c3. Then, instead of steps S24 to S28 (FIG. 9), the CPU 19a may instruct the start of sound generation. According to this, when there is a sufficient number of free channels corresponding to the note-on event, the processing for reserving the sound generation channel can be omitted, so that the processing speed can be improved.

また、上記の変形例においては、ダンプレベル到達検出回路17b4は、空きチャンネルが不足する場合にのみ、予約された発音チャンネルの音量レベルがダンプレベルに到達したか否かを判定する。このとき、比較対象とするダンプレベルは、全ての発音チャンネルに共通(例えば、ダンプレベル設定レジスタDS0に記憶されているダンプレベル)としてもよい。このように構成しても、予約された発音チャンネルにおいては、トランケート処理によって、音量レベルが急速に減少しているので、ダンプレベルとしてどのような値を設定しても、ダンプレベルに到達したと判定されるのにサンプリング周期の数周期分の差しか生じない。これによれば、ダンプレベル到達検出回路17b4は、発音チャンネルごとにダンプレベルに到達したことを判定するために比較対象とするダンプレベルを取得する必要がないので、処理速度をさらに向上させることができる。   In the above modification, the dump level arrival detection circuit 17b4 determines whether or not the volume level of the reserved tone generation channel has reached the dump level only when there are not enough empty channels. At this time, the dump level to be compared may be common to all sound generation channels (for example, the dump level stored in the dump level setting register DS0). Even with this configuration, the volume level of the reserved sound channel has decreased rapidly due to the truncation process, so no matter what value is set as the dump level, the dump level has been reached. Only a difference of several sampling periods is generated even if the determination is made. According to this, the dump level arrival detection circuit 17b4 does not need to acquire a dump level to be compared in order to determine that the dump level has been reached for each sound generation channel, so that the processing speed can be further improved. it can.

また、上記実施形態においては、手動演奏のパート用と自動演奏のパート用の2つのダンプレベルを設定するようにした。しかし、さらに多くのダンプレベルを設定してもよい。例えば、手動演奏パートにおいて、右手で演奏するメロディパートのダンプレベルと左手で演奏する伴奏パートのダンプレベルを異ならせてもよい。例えば、メロディパートのダンプレベルを「−96dB」に設定し、伴奏パートのダンプレベルを「−90dB」に設定してもよい。これによれば、演奏上最も重要な手動演奏のメロディパートの楽音がトランケートされる機会を減らすことができる。また、上記実施形態及びその変形例においては、パートを条件としてダンプレベルを設定するようにしたが、パート以外にも、エフェクトの種類、MIDIチャンネル、演奏情報の送信元(外部機器又は内蔵の自動演奏装置)などを条件としてダンプレベルを設定するようにしてもよい。   In the above embodiment, two dump levels are set for the manual performance part and the automatic performance part. However, more dump levels may be set. For example, in the manual performance part, the dump level of the melody part played with the right hand may be different from the dump level of the accompaniment part played with the left hand. For example, the dump level of the melody part may be set to “−96 dB” and the dump level of the accompaniment part may be set to “−90 dB”. According to this, it is possible to reduce the chance that the musical tone of the melody part of the manual performance that is most important in performance is truncated. In the above embodiment and its modifications, the dump level is set on the condition of the part. However, in addition to the part, the effect type, MIDI channel, performance information transmission source (external device or built-in automatic The dump level may be set on the condition of a performance device).

また、上記実施形態においては、ダンプレベル設定レジスタDS0及びダンプレベル設定レジスタDS1にダンプレベルをそれぞれ書き込んでおき、ダンプレベル参照情報DPnには、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1のアドレスを書き込むようにした。そして、このダンプレベル参照情報DPnに書き込まれているアドレスを用いてダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1のいずれかを特定するようにした。しかし、これに代えて、ダンプレベル設定レジスタDS0及びダンプレベル設定レジスタDS1にそれぞれ対応するインデックス番号(「0」及び「1」)で識別するようにし、ダンプレベル参照情報DPnとしてインデックス番号を記憶するようにしてもよい。そして、このダンプレベル参照情報DPnに書き込まれているインデックス番号を用いてダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1のいずれかを特定するようにしてもよい。これによれば、ダンプレベル参照情報DPnの桁数を小さくすることができ、第1メモリ17c1及び第2メモリ17c3の記憶容量を小さくすることができる。また、ダンプレベル設定レジスタDS0及びダンプレベル設定レジスタDS1の桁数を大きくする場合、ダンプレベル参照情報DPnの桁数を大きくする必要はない。すなわち、ダンプレベル参照情報DPnの桁数を小さくしたまま、ダンプレベル設定レジスタDS0及びダンプレベル設定レジスタDS1の桁数を大きくしてダンプレベルのダイナミックレンジを大きくすることができる。   In the above embodiment, the dump level is written in the dump level setting register DS0 and the dump level setting register DS1, respectively, and the address of the dump level setting register DS0 or the dump level setting register DS1 is stored in the dump level reference information DPn. I tried to write. Then, either the dump level setting register DS0 or the dump level setting register DS1 is specified using the address written in the dump level reference information DPn. However, instead of this, the index numbers (“0” and “1”) respectively corresponding to the dump level setting register DS0 and the dump level setting register DS1 are identified, and the index number is stored as the dump level reference information DPn. You may do it. Then, either the dump level setting register DS0 or the dump level setting register DS1 may be specified using the index number written in the dump level reference information DPn. According to this, the number of digits of the dump level reference information DPn can be reduced, and the storage capacities of the first memory 17c1 and the second memory 17c3 can be reduced. Further, when increasing the number of digits of the dump level setting register DS0 and the dump level setting register DS1, it is not necessary to increase the number of digits of the dump level reference information DPn. That is, the dynamic range of the dump level can be increased by increasing the number of digits of the dump level setting register DS0 and the dump level setting register DS1 while keeping the number of digits of the dump level reference information DPn small.

また、上記実施形態においては、ダンプレベル設定レジスタDS0,DS1にダンプレベルを書き込んでおき、キーオンイベントが発生して発音チャンネルを予約するごとに、予約する発音チャンネルにて発生させる楽音信号のダンプレベルを規定するために、ダンプレベル設定レジスタDS0又はダンプレベル設定レジスタDS1を参照するダンプレベル参照情報を第1メモリ17c1に書き込むようにした。しかしこれに代えて、ダンプレベル自体を第1メモリ17c1に書き込んでもよい。そして、第1メモリ17c1に書き込んだダンプレベルをパラメータ転送回路17c2によって第2メモリ17c3に転送し、第2メモリ17c3に転送されたダンプレベルをパラメータ出力回路17c4によって、ダンプレベル到達検出回路17b4に出力するようにしてもよい。これによれば、ダンプレベル設定レジスタDS0,DS1を設けておく必要がないので、音源回路17の回路構成をより簡単にできる。   In the above embodiment, the dump level is written in the dump level setting registers DS0 and DS1, and each time a key-on event occurs and a sound channel is reserved, the sound signal dump level generated in the reserved sound channel is reserved. Therefore, dump level reference information referring to the dump level setting register DS0 or the dump level setting register DS1 is written in the first memory 17c1. However, instead of this, the dump level itself may be written in the first memory 17c1. Then, the dump level written to the first memory 17c1 is transferred to the second memory 17c3 by the parameter transfer circuit 17c2, and the dump level transferred to the second memory 17c3 is output to the dump level arrival detection circuit 17b4 by the parameter output circuit 17c4. You may make it do. According to this, since it is not necessary to provide the dump level setting registers DS0 and DS1, the circuit configuration of the tone generator circuit 17 can be simplified.

また、上記実施形態においては、レベル検出回路17b3は、各発音チャンネルの音量制御回路AMPから出力されるエレメント信号の音量レベルを検出するようにした。そして、ダンプレベル到達検出回路17b4は、レベル検出回路17b3が検出した音量レベルを用いて、各グループに属する発音チャンネルのエレメント信号がダンプレベルに到達したか否かを判定するようにした。また、レベル検出回路17b3が検出した音量レベルを用いて、トランケートする発音チャンネルを決定するようにした(図10のステップS16c)。さらに、レベル検出回路17b3が検出した音量レベルを用いて、空きチャンネルを検索するようにした(図15のステップS46乃至S57)。しかし、上記ダンプレベル到達の検出、トランケートする発音チャンネルの決定及び空きチャンネルの検索の各処理に対応して、各発音チャンネルの音量制御回路AMPから出力されるエレメント信号の音量レベルを検出するレベル検出回路をそれぞれ設けてもよいし、2つのレベル検出回路を設けて、一方のレベル検出回路を各処理のうちのいずれか1つの処理用とし、他方のレベル検出回路を残りの処理用としてもよい。また、ダンプレベル到達の検出専用のレベル検出回路を設けた場合、このダンプレベル到達の検出専用のレベル検出回路は、上記実施形態のように、この電子楽器が有する全ての発音チャンネルにて生成されているエレメント信号の音量レベルを検出してもよいし、予約されている発音チャンネルにて生成されているエレメント信号の音量レベルのみを検出するようにしてもよい。   In the above embodiment, the level detection circuit 17b3 detects the volume level of the element signal output from the volume control circuit AMP of each tone generation channel. Then, the dump level arrival detection circuit 17b4 uses the volume level detected by the level detection circuit 17b3 to determine whether or not the element signal of the sound generation channel belonging to each group has reached the dump level. Further, the sound generation channel to be truncated is determined using the volume level detected by the level detection circuit 17b3 (step S16c in FIG. 10). Furthermore, an empty channel is searched using the volume level detected by the level detection circuit 17b3 (steps S46 to S57 in FIG. 15). However, the level detection for detecting the volume level of the element signal output from the volume control circuit AMP of each sound channel corresponding to each process of detecting the arrival of the dump level, determining the sound channel to be truncated and searching for an empty channel. Each circuit may be provided, or two level detection circuits may be provided, and one level detection circuit may be used for any one of the processes, and the other level detection circuit may be used for the remaining processes. . Further, when a level detection circuit dedicated to detection of reaching the dump level is provided, the level detection circuit dedicated to detection of reaching the dump level is generated in all sound generation channels of the electronic musical instrument as in the above embodiment. The volume level of the element signal being generated may be detected, or only the volume level of the element signal generated in the reserved tone generation channel may be detected.

また、上記のダンプレベル到達の検出、トランケートする発音チャンネルの決定及び空きチャンネルの検索においては、各発音チャンネルの音量制御回路AMPから出力されるエレメント信号の音量レベルではなく、音量変更回路AEGが音量制御回路AMPに供給する音量制御信号を用いてもよい。すなわち、レベル検出回路17b3は、音量制御回路AMPから出力されるエレメント信号の音量レベルを検出するのではなく、音量変更回路AEGが音量制御回路AMPに供給する音量制御信号を検出するようにしてもよい。   Further, in the detection of reaching the dump level, the determination of the sounding channel to be truncated, and the search for the empty channel, the sound volume changing circuit AEG does not use the sound volume level of the element signal output from the sound volume control circuit AMP of each sounding channel. A volume control signal supplied to the control circuit AMP may be used. That is, the level detection circuit 17b3 does not detect the volume level of the element signal output from the volume control circuit AMP, but detects the volume control signal supplied from the volume change circuit AEG to the volume control circuit AMP. Good.

また、音量制御回路AMPから出力されるエレメント信号の音量レベルを検出するレベル検出回路17b3に加えて、音量変更回路AEGが音量制御回路AMPに供給する音量制御信号を検出する音量制御信号検出回路を設けておき、ダンプレベル到達の検出、トランケートする発音チャンネルの決定及び空きチャンネルの検索の各処理に応じて、レベル検出回路17b3及び音量制御信号検出回路によってそれぞれ検出される音量レベル及び音量制御信号を組み合わせて用いてもよいし、適宜使い分けるようにしてもよい。   In addition to the level detection circuit 17b3 that detects the volume level of the element signal output from the volume control circuit AMP, a volume control signal detection circuit that detects the volume control signal supplied to the volume control circuit AMP by the volume change circuit AEG. A sound volume level and a sound volume control signal detected by the level detection circuit 17b3 and the sound volume control signal detection circuit, respectively, according to each process of detecting the arrival of the dump level, determining the sounding channel to be truncated and searching for an empty channel, are provided. They may be used in combination or may be used appropriately.

また、上記実施形態においては、音源回路17は、波形メモリWMから波形データを読み出して発音する波形メモリ音源とした。しかし、本発明は、波形メモリ音源に限られず、楽音信号を発生させる発音チャンネルを有する音源であれば、どのような方式の音源であっても適用でき、上記実施形態と同様の効果が得られる。   In the above embodiment, the sound source circuit 17 is a waveform memory sound source that reads out waveform data from the waveform memory WM and generates a sound. However, the present invention is not limited to a waveform memory sound source, and can be applied to any type of sound source as long as it has a sound generation channel for generating a musical sound signal, and the same effects as those of the above embodiment can be obtained. .

17b…発音予約回路、17b3…レベル検出回路、17b4…ダンプレベル到達検出回路、17b6…発音開始指示回路、17c…楽音パラメータ入出力回路、17c1…第1メモリ、17c2…パラメータ転送回路、17c3…第2メモリ、17c4…パラメータ出力回路、19a…CPU、DS0,DS1…ダンプレベル設定レジスタ 17b ... Sound generation reservation circuit, 17b3 ... Level detection circuit, 17b4 ... Dump level arrival detection circuit, 17b6 ... Sound generation start instruction circuit, 17c ... Musical sound parameter input / output circuit, 17c1 ... First memory, 17c2 ... Parameter transfer circuit, 17c3 ... First 2 memory, 17c4 ... parameter output circuit, 19a ... CPU, DS0, DS1 ... dump level setting register

Claims (6)

楽音信号を発生する複数の発音チャンネルと、
複数の異なる種類の楽音信号の発生指示にそれぞれ応答して、前記複数の異なる種類の楽音信号の発生を前記複数の発音チャンネルのいずれかに割り当てる割り当て手段とを備えた楽音信号発生装置において、
音量レベルに関する複数の互いに異なる閾値を記憶する閾値記憶手段を備え、
前記割り当て手段は、
前記複数の互いに異なる閾値のうちの1つの閾値を参照する参照情報であって、各発音チャンネルにて発生中の楽音信号の種類に応じた1つの閾値を参照するための参照情報を発音チャンネルごとに記憶する参照情報記憶手段と、
前記複数の発音チャンネルのうち、発生中の楽音信号の音量レベルが、前記参照情報を用いて参照した閾値以下である発音チャンネルを、新たな楽音信号の発生を割り当てる発音チャンネルとして選択する第1選択手段を有することを特徴とする楽音信号発生装置。
Multiple sound channels that generate musical signals,
In a musical sound signal generating device comprising: allocation means for allocating generation of the plurality of different types of musical sound signals to any of the plurality of sound generation channels in response to generation instructions of the plurality of different types of musical sound signals,
Threshold storage means for storing a plurality of different threshold values relating to the volume level,
The assigning means includes
Reference information for referring to one threshold value among the plurality of different threshold values, wherein reference information for referring to one threshold value corresponding to the type of musical sound signal being generated in each tone generation channel is generated for each tone generation channel. Reference information storage means for storing
A first selection that selects a sound channel whose volume level of a musical sound signal being generated is equal to or lower than a threshold value referred to by using the reference information as a sound sound channel to which a new musical sound signal is assigned. A musical sound signal generating apparatus characterized by comprising means.
請求項1に記載の楽音信号発生装置において、
前記第1選択手段は、
所定の時間間隔ごとに、前記複数の発音チャンネルにて発生中の楽音信号の音量レベルと、前記参照した閾値とを比較して、前記発生されている楽音信号の音量レベルが前記参照した閾値以下である発音チャンネルを空きチャンネルとして設定する空きチャンネル設定手段と、
新たな楽音信号の発生の指示があったとき、前記設定されている空きチャンネルを前記新たな楽音信号の発生を割り当てる発音チャンネルとして決定する割り当てチャンネル決定手段とを有することを特徴とする楽音信号発生装置。
In the musical tone signal generator according to claim 1,
The first selection means includes
At every predetermined time interval, the volume level of the tone signal being generated in the plurality of tone generation channels is compared with the referenced threshold, and the volume level of the generated tone signal is equal to or less than the referenced threshold. An empty channel setting means for setting a sound generation channel as an empty channel,
A musical tone signal generation comprising: an assigned channel determining means for determining, when an instruction to generate a new musical tone signal is given, the set empty channel as a tone generation channel to which the generation of the new musical tone signal is assigned. apparatus.
請求項1又は2に記載の楽音信号発生装置において、
記楽音信号は、演奏者の手動演奏によって発生される楽音信号と、自動演奏によって発生される楽音信号とを含み、
前記手動演奏に対応した閾値は、前記自動演奏に対応した閾値よりも小さいことを特徴とする楽音信号発生装置。
In the musical tone signal generator according to claim 1 or 2,
Before Kiraku sound signal includes a tone signal generated by a manual play of the player, and a musical tone signal generated by the automatic performance,
The musical tone signal generator according to claim 1, wherein a threshold value corresponding to the manual performance is smaller than a threshold value corresponding to the automatic performance.
請求項1乃至3のうちのいずれか1つに記載の楽音信号発生装置において、
前記割り当て手段は、
前記発生中の楽音信号の音量レベルが前記参照した閾値以下である発音チャンネルがないとき、前記複数の発音チャンネルのうち、楽音信号を最も古くから発生している発音チャンネルを前記新たな楽音信号の発生を割り当てる発音チャンネルとして選択する第2選択手段を有することを特徴とする楽音信号発生装置。
In the musical sound signal generator according to any one of claims 1 to 3,
The assigning means includes
When there is no tone generation channel whose volume level of the generated tone signal is equal to or less than the reference threshold, among the plurality of tone generation channels, the tone generation channel in which the tone signal has been generated the oldest is selected as the new tone signal. A musical tone signal generator comprising second selection means for selecting a sound generation channel to which generation is assigned.
請求項1乃至3のうちのいずれか1つに記載の楽音信号発生装置において、
前記割り当て手段は、
前記発生中の楽音信号の音量レベルが前記参照した閾値以下である発音チャンネルがないとき、前記複数の発音チャンネルのうち、発生している楽音信号の音量レベルが最も小さい発音チャンネルを前記新たな楽音信号の発生を割り当てる発音チャンネルとして選択する第2選択手段を有することを特徴とする楽音信号発生装置。
In the musical sound signal generator according to any one of claims 1 to 3,
The assigning means includes
When there is no sound channel whose volume level of the musical sound signal being generated is equal to or less than the reference threshold value, a sound channel whose volume level of the generated music signal is the lowest among the plurality of sound generation channels is selected as the new music sound. A musical tone signal generating apparatus comprising second selection means for selecting a sound generation channel to which signal generation is assigned.
請求項4又は5に記載の楽音信号発生装置において、さらに、
前記第2選択手段によって選択された発音チャンネルにて発生中の楽音信号の音量レベルを急速に減衰させるトランケート手段を備えたことを特徴とする楽音信号発生装置。
In the musical sound signal generator according to claim 4 or 5,
A musical tone signal generating apparatus comprising truncating means for rapidly attenuating the volume level of the musical tone signal being generated in the sound generation channel selected by the second selection means.
JP2010215204A 2010-03-10 2010-09-27 Music signal generator Expired - Fee Related JP5648791B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010215204A JP5648791B2 (en) 2010-09-27 2010-09-27 Music signal generator
US13/044,470 US8383924B2 (en) 2010-03-10 2011-03-09 Musical tone signal generating apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010215204A JP5648791B2 (en) 2010-09-27 2010-09-27 Music signal generator

Publications (2)

Publication Number Publication Date
JP2012068575A JP2012068575A (en) 2012-04-05
JP5648791B2 true JP5648791B2 (en) 2015-01-07

Family

ID=46165904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010215204A Expired - Fee Related JP5648791B2 (en) 2010-03-10 2010-09-27 Music signal generator

Country Status (1)

Country Link
JP (1) JP5648791B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2687810B2 (en) * 1992-03-19 1997-12-08 ヤマハ株式会社 Electronic musical instrument

Also Published As

Publication number Publication date
JP2012068575A (en) 2012-04-05

Similar Documents

Publication Publication Date Title
JP3838353B2 (en) Musical sound generation apparatus and computer program for musical sound generation
JP2002297142A (en) Device and method for timbre selection
JP5152373B2 (en) Musical sound generating apparatus and program
JP3840851B2 (en) Recording medium and tone signal generation method
JP3846376B2 (en) Automatic performance device, automatic performance program, and automatic performance data recording medium
US8383924B2 (en) Musical tone signal generating apparatus
US20130125734A1 (en) Musical sound generator and method for generating musical sound based on element data
JP5648791B2 (en) Music signal generator
JP2562260B2 (en) Electronic musical instrument assigner
JP5839156B2 (en) Music signal generator
JP5569048B2 (en) Music signal generator
JP5504983B2 (en) Music signal generator
JP4239706B2 (en) Automatic performance device and program
JP2866439B2 (en) Tone selection device
JP4803042B2 (en) Musical sound generating apparatus and program
JPH0719150B2 (en) Electronic musical instrument assigner
JP2641851B2 (en) Automatic performance device
JP4803043B2 (en) Musical sound generating apparatus and program
JP3755385B2 (en) Sound source device and recording medium readable by sound source device
JPS63192097A (en) Automatic performer
JP2562261B2 (en) Electronic musical instrument assigner
JP5070842B2 (en) Musical sound generating apparatus and program
JP3758041B2 (en) Musical sound control data generator
JP3518392B2 (en) Performance information setting device and computer-readable recording medium storing performance information setting program
JP2583377B2 (en) Automatic performance device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130724

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140304

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140501

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: 20141015

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141028

R150 Certificate of patent or registration of utility model

Ref document number: 5648791

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees