JP2562260C - - Google Patents

Info

Publication number
JP2562260C
JP2562260C JP2562260C JP 2562260 C JP2562260 C JP 2562260C JP 2562260 C JP2562260 C JP 2562260C
Authority
JP
Japan
Prior art keywords
channel
channels
note
assigned
tone
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 - Lifetime
Application number
Other languages
Japanese (ja)
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.)
Roland Corp
Original Assignee
Roland Corp
Publication date

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】 この発明は、それぞれ音色の異なる複数のパートを同時に演奏できる電子楽器
に係り、さらに詳しくは、押鍵などにより新たに入力された演奏データに割り当
てる楽音発生チャンネルを選定する電子楽器のアサイナに関するものである。 【0002】 【従来の技術】 電子楽器は一般に複数の楽音発生チャンネル(以下、単にチャンネルとも称す
る)を有しており、新たな押鍵などによる楽音の発音に際しては、その新たに入
力された演奏データに割り当てるべきチャンネルをその複数のチャンネルのうち
から選定している。 【0003】 このチャンネルの選定方法としては、種々の方法があり、例えば、空いてい
るチャンネルのうちから選定する、最も早く発音を開始したチャンネル、つま
り最も早く押鍵した楽音に対応するチャンネルを選定する、最も早く離鍵した
楽音に対応するチャンネルを選定する、最も発音量等の小さいチャンネルを選
定する、これらを組み合わせる、などがある。 【0004】 また、電子楽器にはそれぞれ音色の異なる複数のパートを同時に演奏できるい
わゆるマルチティンバ電子楽器があり、例えば自動演奏装置は複数のパートの演
奏情報を記憶し、これを順次に読み出して所定のテンポで同時演奏を行う。 【0005】 さて、この種の電子楽器では、同時に発音できるチャンネル数が有限であるた
め、演奏を始める前に、各パートに対して個々のパートが専用的に使用できるチ
ャンネル数をそれぞれ固定的に割り当てている。例えば、全チャンネル数が「1
6」であれば、ピアノ「8」、ストリングス「5」、フルート「1」、トランペ
ット「1」、ベース「1」というように、それぞれのパートに対してチャンネル
数を固定的に配分設定する。これにより、各パートにおいて同時発音できる楽音
の数が決まるのである。 【0006】 【発明が解決しようとする課題】 ところが、この方法では、各パートは使用できるチャンネル数を固定的に定め
られてしまっているため、その定められたチャンネル数の範囲内でしかチャンネ
ルを使用できないことになる。このため、例えばあるパートの押鍵が連続的にな
されて、そのパートが使用するチャンネルの数がそのパートに定められた上限値
に達すると、他のパートでは使用されていないチャンネルがあるにもかかわらず
、そのパートでは最早それ以上チャンネルが選定できないことになり、このため
演奏が単調なものになりがちで、演奏表現の豊かさが損なわれる。 【0007】 本発明は上記問題点を解決するためになされたものであり、各パートの使用で
きるチャンネル数が固定的とならないようにして、演奏表現の豊かさが損なわれ
ないようにすることを目的とする 【0008】 【課題を解決するための手段】 上述の問題点を解決するために、本発明に係る電子楽器のアサイナは、1つの
形態として、複数の楽音発生チャンネルを用いて複数のパートの演奏を行う電子
楽器において、該複数のパートの1つを演奏するための演奏データが新たに入力
されたときに該新たな演奏データを割り当てる楽音発生チャンネルを選定するア
サイナであって、該複数のパートについて各パートの優先順位と各パートで発音
する音色を記憶する記憶手段と、該新たな演奏データを割り当てる楽音発生チャ
ンネルの選定を行うにあたり、該新たな演奏データを割り当てる楽音発生チャン
ネルが不足する場合には、該記憶手段に記憶された該パートの優先順位に基づい
て、優先順位が低いパートが割り当てられている楽音発生チャンネルの方から順
に選定する選定手段とを備える。 また本発明に係る電子楽器のアサイナは、他の形態として、複数の楽音発生チ
ャンネルを用いて複数のパートの演奏を行う電子楽器において、該複数のパート
の1つを演奏するための演奏データが新たに入力されたときに該新たな演奏デー
タを割り当てる楽音発生チャンネルを選定するアサイナであって、該複数のパー
トについて各パートの優先順位と各パートで発音する音色を記憶する記憶手段と
、 該新たな演奏データを割り当てる楽音発生チャンネルの選定を行うにあたり、該
新たな演奏データを割り当てる楽音発生チャンネルが不足する場合には、該記憶
手段に記憶された該パートの優先順位に基づいて、該優先順位が低いパートの方
から順にその着目するパートで使用している楽音発生チャンネルのうち割当て可
能な楽音発生チャンネルがあるか否かを検索し、あれば該割当て可能な楽音発生
チャネルを選定する選定手段とを備える。 【0009】 【作用】 複数の楽音発生チャネルを用いて複数のパートの演奏を行う場合、従来広く行
われている方法では、各パートに対して所定数の楽音発生チャンネルを予め固定
的に割り当てておいて、各パートの演奏では、そのパートに割り当てられた所定
数を超えて楽音発生チャンネルを使用することはなく、またそのパートの演奏に
必要な楽音発生チャンネルの数が上記所定数に達していない場合でもその差分数
の楽音発生チャンネルを他のパートの演奏に使用させることもしていない。この
ため、楽音発生チャンネルが効率的に使用されているとはいえなかった。 そこで、本発明に係る電子楽器のアサイナでは、各パートの演奏に使用する楽
音発生チャネルの数を各パートに対して固定的な数に割り当てるのではなく、す
なわち上記のような固定配分はやめ、各パートに優先順位を付け、新たな演奏デ
ータに割り当てる楽音発生チャンネルの選定を、空き状態の楽音発生チャンネル
からし終わるなどして各パートで発音中の楽音発生チャネル等からする必要があ
る場合には、優先順位の低いパートで使用中の楽音発生チャネルの方から順に選
定する。これにより新たに入力された演奏データが属するパートは、使用できる
楽音発生チャンネル数を固定数に制限されることがなくなる。 この選定にあたっては、優先順位が低いパートの方から順にその着目するパー
トで使用している楽音発生チャンネルのうち割当て可能な楽音発生チャンネルが
あるか否かを検索し、割当て可能な楽音発生チャネルがあったらそれに新たな演
奏データを割り当てるようにすれば、各パートに、割り当てできない楽音発生チ
ャネルとして幾つかの数の発音中の楽音発生チャンネルを残すなどすることもで
き、これにより演奏表現が豊かになる。 【0010】 【実施例】 図1は本発明の一実施例としてのアサイナを備えた電子楽器を示すブロック図
である。 【0011】 演奏データ発生装置1はミュージックシーケンサとも呼ばれる装置であり、鍵
盤やコンピュータを用いて作成される各パート毎の演奏情報を記憶し、これを順
次に読み出して演奏データを発生する。 【0012】 演奏データ発生装置1から発生される演奏データにはMIDI規格によるフォ
ーマットが用いられる。このMIDI規格を用いる場合には、各パートに別々の
MIDIチャンネルを割り当てることにより、複数のパートの演奏データを送受
することができる。例えば、ピアノ音をMIDIチャンネル1、ストリングスを
MIDIチャンネル2というように割り当て、演奏データはこのMIDIチャン
ネルにより識別されてそれぞれ送受される。 【0013】 チャンネルアサイナ2 はこのMIDI演奏データを受信し、このMIDIチャ
ンネルに対応するパートに応じて、メモリ3を参照して、その演奏データに割り
当てる所要のチャンネルを選定し、その選定データおよび演奏データに基づいて
楽音発生装置4を制御する。 【0014】 楽音発生装置4は楽音発生用のチャンネルを24チャンネル有する装置であり
、その楽音発生方式としては各種の方式を用いることができる。近年、楽音発生
回路はディジタル化が進み、波形読出し方式、周波数変調方式、位相歪方式など
が実用化され、さらにはこれらの方式を組み合わせることによって、より豊かな
音色が得られるようになっている。したがって、この実施例の楽音発生装置4で
は一つの楽音を発生するために複数のチャンネルが使われている。 【0015】 メモリ3はチャンネルアサインなどの際に必要な各種データを記憶・管理する ための記憶領域であり、ここにはパートテーブル、ノートテーブル、チャンネル
テーブル等が記憶されている。 【0016】 パートテーブルは図2の(A)に示される形態のものであり、各パート#1〜
#8別に、各パートのチャンネル数、音色ナンバー、リザーブチャンネル数、使
用チャンネル数、ノートリンク番号等を記憶する。 【0017】 ここで、パートテーブル第2行のチャンネル数は当該パートの一つのノート(
あるいは楽音)に対して使用されるチャンネルの数である。なお各パート毎のパ
ラメータは図示しない別のメモリ領域に記憶されており、発音時にそのパートの
楽音を発生するために必要なチャンネルに送信される。 【0018】 パートテーブル第3行目には当該パートに割り当てられた音色番号が記憶され
ており、この音色番号によって上記パラメータの記憶されている位置がアドレス
される。 【0019】 パートテーブル第4行は当該パートについてのチャンネルのリザーブチャンネ
ル数である。このリザーブチャンネル数は後に詳しく述べるが、当該パートで現
に発音中のチャンネルのうちから演奏データに割り当てるチャンネルの選定を行
う場合に、その発音中のチャンネルのうち発音継続を保証するチャンネルの最少
数を定めるものである。 【0020】 パートテーブル第5行は当該パートにおいて現在使用中のチャンネル数である
。 パートテーブル第6行目は、次に述べるノートテーブルとの関係(リンク)を
示すノートリンク番号である。 【0021】 ノートテーブルは図2の(B)に示される形態のもの、チャンネルテーブルは
同図(C)示される形態のものであり、それぞれチャンネル数に等しい24の列
を設けている。またノートテーブルはフリーノートリンクレジスタを有し、チャ ンネルテーブルはフリーチャンネルリンクレジスタとフリーチャンネル数レジス
タを有する。 【0022】 ノートテーブル第1行目にはノートリンク番号を記憶する。 パートテーブルおよびノートテーブルのノートリンク番号は、同一パートにつ
いてのノートオン(押鍵信号)のリンク順を表すか、または使用されていないフ
リーノートのリンク状態を表わす。 【0023】 例えば、電源を投入した直後のリセットされた状態ではフリーノートリンクレ
ジスタに番号「1」が記入されており、ノートテーブルのノートリンク番号欄は
第1列には「2」、第2列には「3」、同様に第3〜23列には各々その番号の
列番号に1を加えた値が記入され、第24列には“終り”という意味の記号「E
」が記入されている。 【0024】 パート#1のノートオンが発生すると、そのノートを、フリーノートリンクレ
ジスタの番号「1」で指示されるノートテーブルの第1列に割り当て、パートテ
ーブルのパート#1のノートリンク番号を「1」、ノートテーブル第1行のノー
トリンク番号を「E」、フリーノートリンクレジスタの番号を「2」と書き替え
る。 【0025】 次に同じくパート#1のノートオンが発生すると、そのノートを、フリーノー
トリンクレジスタの番号「2」で指示されるノートテーブルの第2列に割り当て
、パートテーブルのパート#1のノートリンク番号を「2」とし、ノートテーブ
ル第2列のノートリンク番号を「1」、フリーノートリンクレジスタの番号を「
3」とする。 【0026】 すなわち、パートテーブルのノートリンク番号はそのパートで最新にノートオ
ンしたノートを割り当てたノートテーブルの列を表わす。ノートテーブルのノー
トリンク番号は同一パートであって、そのノートオンの直前に発生したノートオ ンのノートを記入する列番号を表わし、この列番号が「E」であれば同一パート
で直前に発生したノートオンはないことを表わす。 【0027】 同様に現在使用されていないノートテーブルの列のうち先頭のものがフリーノ
ートリンクレジスタに記入されており、ノートテーブルにおけるそれぞれの使用
されていない列(空き列)には次の空き列の列番号がノートリンク番号として記
入される。 【0028】 ノートテーブルにおける各列は単にノートを管理するためのスペースにすぎな
いが、図2の(C)に示すチャンネルテーブルの各列はそれぞれのチャンネルに
対応している。すなわち、第1列は第1チャンネルであり、第2列は第2チャン
ネル、・・・以下同様である。 【0029】 チャンネルテーブルにおいても同様にフリーチャンネルリンクレジスタが設け
られており、使用されていないチャンネルの先頭チャンネル番号が記入されてい
る。さらにフリーチャンネル数レジスタが設けられており、現在の空チャンネル
の数を表わしている。したがって、電源投入直後のフリーチャンネルリンク番号
は「1」であり、フリーチャンネル数は「24」である。また、ノートテーブル
の最下位行にはチャンネルリンク番号が記入される。 【0030】 ノートテーブルの第1列にパート#1のノートが割り当てられると、パート#
1のノートは、パートテーブルから明らかなように、3つのチャンネルを使用す
るので、このノートに第1〜第3チャンネルの3つを割り当てる。このときノー
トテーブルの第1列のチャンネルリンク番号は「1」とし、チャンネルテーブル
のチャンネルリンク番号欄は、第1チャンネルには「2」を、第2チャンネルに
は「3」、第3チャンネルには「E」を記入する。 【0031】 同様にノートデーブルの第2列に、パート#1において続いてノートオンした
ノートを割り当てると、ノートテーブルのチャンネルリンク番号は「4」が記入 され、チャンネルデーブルの第4チャンネルのチャンネルリンク番号は「5」、
第5チャンネルのチャンネルリンク番号は「6」、第6チャンネルのチャンネル
リンク番号は「E」がそれぞれ記入される。この変更に伴い、フリーチャンネル
リンクレジスタのフリーチャンネルリンク番号を「7」に、フリーチャンネル数
レジスタのフリーチャンネル数を「18」にそれぞれ更新する。 【0032】 ノートテーブルの第2行は各列に割り当てられたノートの番号、第3行にはノ
ートベロシティーを記憶する。 【0033】 チャンネルテーブルの第2行以下には各チャンネルの担当する音色番号やステ
ータス、例えばエンベロープがどのような状態にあるか等を記入する。このステ
ータスは音源方式により各種の方式があるのでここでは詳述しない。 【0034】 割り当て処理 チャンネルアサイナ2は、新たなノートオン(押鍵)信号を受けると、図3の
流れ図に示す手順に従ってチャンネルの割り当て処理を行う。 【0035】 まず、新たなノートオン信号を受けると、その受信したノートオン信号のMI
DIチャンネルからそのノートオン信号がいずれのパートのものかを判定し、パ
ートテーブルを参照してそのパートのノートを発音するに必要なチャンネル数を
調べる(ステップS1)。 【0036】 次に、この必要チャンネル数をフリーチャンネル数レジスタが示すフリーチャ
ンネル数と比較する(ステップS2)。このとき、フリーチャンネル数の方が大
きい場合には、楽音データをフリーノートリンクレジスタの示す番号のノートテ
ーブルの列に割り当てるとともにそのフリーノートリンクレジスタの番号を更新
する(ステップS3)。そして前述のとおり、パートテーブルの該当パートのノ
ートリンク番号およびノートテーブルのノートリンク番号をそれぞれ更新する。 【0037】 そして次に、フリーチャンネルリンクレジスタが示すチャンネル番号を先頭と
する3つのチャンネルを楽音データに割り当てると共に、フリーチャンネルリン
クレジスタの番号を更新する(ステップS4)。同様に、フリーチャンネル数レ
ジスタのフリーチャンネル数、ノートテーブルおよびチャンネルテーブルのチャ
ンネルリンク番号をそれぞれ更新する。 【0038】 入力されたノートの必要チャンネル数を割り当てる空チャンネルがない場合、
または不足している場合には、現に使用しているチャンネル、つまり現に発音中
のチャンネルを停止させるトランケート処理を行って、その停止させたチャンネ
ルを新たなノートに割り当てる。この場合の停止させる順位は次のようになる。 【0039】 各パートに優先順位を設け、優先順位の低いパートから高いパートへと順に
、各パートで使用中のチャンネルのうちリザーブチャンネル数を超える数のチャ
ンネルを停止させる。 本実施例ではパート#1、#2・・・#8の順に優先順位が低く設定されてい
る。 【0040】 パート毎にリザーブチャンネル数(最低保証チャンネル数)を設ける。 図2の(A)のパートテーブルの第4行はこのリザーブチャンネル数で、例え
ばパート#2のリザーブチャンネル数は「6」であるから、現在使用中の9つの
チャンネルのうち6つのチャンネルはトランケートされることはない。すなわち
、現在使用中のチャンネルのうち最低6つのチャンネルはパート#2が継続して
使用できることを保証するというものである。これにより各パートの中で演奏表
現上最低限必要と考えられる数のチャンネルがトランケートされずに残るため、
音楽的に好ましい演奏が、限られたチャンネル数で可能となるものである。 【0041】 すなわち、図3の流れ図のステップS2において空チャンネルが不足している
場合には、まず最も優先順位の低いパート#8が現に使用しているチャンネル数
をパートテーブルで調べ、その使用チャンネル数と当該パート#8のリザーブチ ャンネル数「2」とを比較する(ステップS11)。 【0042】 このパート#8においてリザーブチャンネル数「2」よりも多い数のチャンネ
ルが使用されている場合には、そのリザーブチャンネル数「2」を超える数の使
用中のチャンネルをトランケートする。また反対に、このパート#8においてリ
ザーブチャンネル数「2」以下の数のチャンネルしか使用されていない場合には
、パート#8で使用中のチャンネルはトランケートせず、次に優先度の低いパー
ト#7のチャンネルの使用状態を調べる(ステップS10)。 【0043】 前述の使用チャンネル数がリザーブチャンネル数より多い場合にトランケート
する使用中チャンネルの選び方は、まずそのパートの1つのノートに対応する数
のチャンネルをトランケートする。そしてそのパート内で複数のノートが発音さ
れている場合には、最も早く離鍵されたノート、または最も減衰の進んでいるノ
ートをトランケートするのが望ましい。また、離鍵されていない場合には高音の
高いノート、もしくはレベルの大きいノートを優先して残すようにするなどの方
法が考えられる。 【0044】 ここでは、最も早く発音が開始されたノートをトランケートする。この時は、
パートテーブルの該当するパートのノートリンク番号からノートテーブルのノー
トテーブル番号を順にたどり、「E」が記入されている列に記載されたノートお
よびその列のチャンネルリンク番号からチャンネルテーブルを順にたどり、該当
するチャンネルの発音を強制的に停止させる。これに伴ってフリーノートリンク
、フリーチャンネルリンク、フリーチャンネル数をそれぞれ更新する(ステップ
S11)。そして再びステップS2に戻り、必要とするチャンネル数とフリーチ
ャンネル数を比較する。 【0045】 なお、上記の実施例はリザーブチャンネル数をそのパートの最低保証チャンネ
ル数としたが、これは最低保証ノート数としてもよい。例えば図2のパートデー
ブルにおいて、パート#1のチャンネル数は「3」、リザーブチャンネル数は 「6」であるから、最低保証ノート数で管理する場合にはリザーブノート数は「
2」である。このように、リザーブ数はチャンネル数で定義しても、あるいはノ
ート数で定義してもよい。 【0046】 【発明の効果】 以上に説明したように、本発明においては、各パートが使用する楽音発生チャ
ンネルの数が各パート毎に固定配分されていないので、新たに入力されるパート
は必要な数の楽音発生チャンネルを獲得でき、よって演奏音が制限されず、演奏
表現を豊かにすることができる。
Description: BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to an electronic musical instrument capable of simultaneously playing a plurality of parts having different timbres. The present invention relates to an electronic musical instrument assigner for selecting a tone generation channel to be assigned to performance data. 2. Description of the Related Art An electronic musical instrument generally has a plurality of musical tone generation channels (hereinafter, also simply referred to as channels). When a musical tone is generated by a new key press or the like, a newly input musical performance is generated. A channel to be assigned to data is selected from the plurality of channels. There are various methods for selecting this channel. For example, a channel that starts sounding earliest, that is, a channel corresponding to a musical tone that is depressed earliest, is selected from available channels. To select the channel corresponding to the tone that has been released the earliest key, to select the channel with the smallest sound volume, or to combine them. There is a so-called multi-timbral electronic musical instrument capable of simultaneously playing a plurality of parts having different timbres from each other. For example, an automatic musical instrument stores performance information of a plurality of parts and sequentially reads out the information to read out the information. Perform at the same tempo. [0005] In this type of electronic musical instrument, the number of channels that can be sounded simultaneously is finite. Therefore, before starting the performance, the number of channels that can be used exclusively by each part for each part is fixed. Have assigned. For example, if the total number of channels is "1"
In the case of "6", the number of channels is fixedly allocated to each part such as piano "8", strings "5", flute "1", trumpet "1", bass "1". This determines the number of musical tones that can be produced simultaneously in each part. However, in this method, since the number of usable channels is fixedly determined for each part, channels are limited only within the predetermined number of channels. You will not be able to use it. For this reason, for example, if the key of a certain part is continuously pressed and the number of channels used by that part reaches the upper limit specified for that part, even if there are channels that are not used by other parts, Regardless, the channel can no longer be selected for that part, which tends to make the performance monotonous and impair the richness of the performance expression. SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to prevent the number of usable channels of each part from being fixed, so that the richness of performance expression is not impaired. [0008] In order to solve the above-mentioned problems, an electronic musical instrument assigner according to the present invention, as one mode, uses a plurality of musical tone generation channels and a plurality of tone generation channels. An electronic musical instrument for performing a part, wherein when performance data for performing one of the plurality of parts is newly input, a tone generation channel to which the new performance data is assigned is selected. Priority of each part and pronunciation of each part for multiple parts
When selecting a tone generation channel to which the new performance data is to be assigned, and selecting a tone generation channel to which the new performance data is to be assigned, if the number of tone generation channels to which the new performance data is to be assigned is insufficient, the storage means is stored in the storage means. Selecting means for sequentially selecting, based on the priority of the parts, the musical tone generation channels to which the parts with the lower priority are assigned. According to another aspect of the electronic musical instrument assigner according to the present invention, in an electronic musical instrument that performs a plurality of parts using a plurality of tone generation channels, performance data for playing one of the plurality of parts is provided. Storage means for selecting a tone generation channel to which the new performance data is to be assigned when newly input, wherein the storage means stores, for the plurality of parts, a priority order of each part and a tone to be emitted by each part ; In selecting a tone generation channel to which new performance data is to be assigned, if there are not enough tone generation channels to which the new performance data is assigned, the priority is determined based on the priority of the part stored in the storage means. Assignable tone generation channels among the tone generation channels used in the part of interest in order from the part with the lowest rank Selecting means for retrieving whether or not there is a channel, and selecting the assignable tone generating channel if there is any. When performing a plurality of parts using a plurality of tone generation channels, a conventionally widely used method is to fixedly assign a predetermined number of tone generation channels to each part in advance. In the performance of each part, the number of tone generation channels used for the performance of the part does not exceed the predetermined number assigned to the part, and the number of tone generation channels necessary for the performance of the part reaches the predetermined number. Even if there is no such tone, the tone generation channels of the difference number are not used for the performance of other parts. For this reason, it cannot be said that the tone generation channel is used efficiently. Therefore, in the assigner of the electronic musical instrument according to the present invention, the number of musical tone generation channels used for playing each part is not assigned to a fixed number for each part. When it is necessary to prioritize the parts and select the tone generation channels to be assigned to new performance data from the tone generation channels that are sounding in each part, such as by ending with an empty tone generation channel Are selected in order from the tone generation channel in use in the part with the lowest priority. As a result, the number of musical tone generating channels that can be used by the part to which newly input performance data belongs is not limited to a fixed number. In this selection, a search is made for whether or not there is an assignable tone generating channel among the tone generating channels used in the part of interest in order from the part with the lowest priority, and the assignable tone generating channel is determined. If new performance data is assigned to each part, it is possible to leave a number of tone generation channels that are currently sounding as unassignable tone generation channels for each part, thereby enriching the performance expression. Become. FIG. 1 is a block diagram showing an electronic musical instrument having an assigner according to an embodiment of the present invention. The performance data generator 1 is a device also called a music sequencer, and stores performance information for each part created using a keyboard or a computer, and sequentially reads out this to generate performance data. The performance data generated by the performance data generator 1 uses a format conforming to the MIDI standard. When the MIDI standard is used, performance data of a plurality of parts can be transmitted and received by assigning different MIDI channels to each part. For example, the piano sound is assigned as MIDI channel 1 and the strings are assigned as MIDI channel 2, and the performance data is identified and transmitted by the MIDI channel. The channel assigner 2 receives the MIDI performance data, selects a required channel to be assigned to the performance data with reference to the memory 3 according to a part corresponding to the MIDI channel, and selects the selected data and The tone generator 4 is controlled based on the performance data. The tone generator 4 is a device having 24 channels for tone generation, and various types of tone generators can be used. In recent years, digitalization of musical tone generation circuits has progressed, and a waveform readout system, a frequency modulation system, a phase distortion system, and the like have been put to practical use, and by combining these systems, richer timbres can be obtained. . Therefore, in the tone generator 4 of this embodiment, a plurality of channels are used to generate one tone. The memory 3 is a storage area for storing and managing various data necessary for channel assignment and the like, and stores a part table, a note table, a channel table, and the like. The part table is in the form shown in FIG.
For each # 8, the number of channels, tone color number, reserved channel number, used channel number, note link number, etc. of each part are stored. Here, the number of channels in the second row of the part table is one note (
Or the number of channels used for the tone). The parameters for each part are stored in another memory area (not shown), and are transmitted to a channel necessary for generating a musical tone of the part at the time of sound generation. In the third row of the part table, a tone color number assigned to the part is stored, and the tone color number addresses a position where the parameter is stored. The fourth row of the part table is the number of reserved channels of the channel for the part. Although the number of reserved channels will be described in detail later, when selecting a channel to be assigned to performance data from the currently sounding channels in the part, the minimum number of channels that are guaranteed to continue sounding among the sounding channels is selected. It is determined. The fifth row of the part table is the number of channels currently used in the part. The sixth line of the part table is a note link number indicating a relationship (link) with the note table described below. The note table has the form shown in FIG. 2B, and the channel table has the form shown in FIG. 2C, and has 24 columns each equal to the number of channels. The note table has a free note link register, and the channel table has a free channel link register and a free channel number register. The first line of the note table stores a note link number. The note link numbers of the part table and the note table indicate the link order of note-on (key press signal) for the same part, or the link state of an unused free note. For example, in the reset state immediately after the power is turned on, the number “1” is written in the free note link register, and the note link number column of the note table is “2” in the first column, and “2” in the second column. In the column, “3” is written. Similarly, in the third to 23rd columns, a value obtained by adding 1 to the column number of each number is written. In the 24th column, a symbol “E” meaning “end” is written.
Is written. When the note-on of part # 1 occurs, the note is assigned to the first column of the note table indicated by the number “1” of the free note link register, and the note link number of part # 1 of the part table is assigned. "1", the note link number in the first row of the note table is rewritten to "E", and the number of the free note link register is rewritten to "2". Next, when note-on of part # 1 occurs, the note is assigned to the second column of the note table indicated by the number “2” of the free note link register, and the note of part # 1 of the part table is assigned. The link number is "2", the note link number in the second column of the note table is "1", and the number of the free note link register is "
3 ". That is, the note link number in the part table indicates the row of the note table to which the note that was most recently turned on in the part is assigned. The note link number in the note table is the same part, and indicates the column number in which the note of the note-on that occurred immediately before the note-on is written. If this column number is "E", the note link number occurred immediately before in the same part. Indicates that there is no note-on. Similarly, among the columns of the note table that are not currently used, the first one is written in the free note link register, and each unused column (empty column) in the note table has the next empty column. Is entered as the note link number. Each column in the note table is merely a space for managing notes, but each column of the channel table shown in FIG. 2C corresponds to each channel. That is, the first row is the first channel, the second row is the second channel, and so on. Similarly, a free channel link register is provided in the channel table, and the head channel number of an unused channel is entered. Further, a free channel number register is provided, which indicates the number of currently empty channels. Therefore, the free channel link number immediately after power-on is “1”, and the number of free channels is “24”. The channel link number is written in the lowest line of the note table. When the note of part # 1 is assigned to the first column of the note table,
As is apparent from the part table, one note uses three channels. Therefore, three notes of the first to third channels are assigned to this note. At this time, the channel link number in the first column of the note table is “1”, and the channel link number column of the channel table is “2” for the first channel, “3” for the second channel, and “3” for the third channel. Enter "E". Similarly, when a note that has been subsequently turned on in Part # 1 is assigned to the second column of the note table, “4” is written in the channel link number of the note table, and the channel link of the fourth channel of the channel table is set. The number is "5",
The channel link number of the fifth channel is "6", and the channel link number of the sixth channel is "E". With this change, the free channel link number of the free channel link register is updated to "7", and the free channel number of the free channel number register is updated to "18". The second row of the note table stores the number of the note assigned to each column, and the third row stores the note velocity. In the second and subsequent rows of the channel table, the tone color number and status assigned to each channel, such as the state of the envelope, are written. This status is not described in detail here because there are various types depending on the sound source type. Assignment Process Upon receiving a new note-on (key press) signal, the channel assigner 2 performs a channel assignment process according to the procedure shown in the flowchart of FIG. First, when a new note-on signal is received, the MI of the received note-on signal
From the DI channel, it is determined which part the note-on signal belongs to, and the number of channels required to sound the note of the part is checked by referring to the part table (step S1). Next, the required number of channels is compared with the number of free channels indicated by the free channel number register (step S2). At this time, if the number of free channels is larger, the tone data is allocated to the column of the note table with the number indicated by the free note link register, and the number of the free note link register is updated (step S3). Then, as described above, the note link number of the corresponding part in the part table and the note link number of the note table are updated. Next, three channels starting with the channel number indicated by the free channel link register are assigned to musical tone data, and the number of the free channel link register is updated (step S4). Similarly, the number of free channels in the free channel number register and the channel link numbers in the note table and the channel table are updated. If there is no empty channel to which the required number of channels of the input note are assigned,
Alternatively, if there is a shortage, a truncation process of stopping the currently used channel, that is, the currently sounding channel, is performed, and the stopped channel is assigned to a new note. The stop order in this case is as follows. A priority order is set for each part, and the number of channels exceeding the number of reserved channels among the channels being used in each part is stopped in order from the part with the lowest priority to the part with the highest priority. In this embodiment, the priority is set lower in the order of parts # 1, # 2,. The number of reserved channels (the minimum guaranteed number of channels) is provided for each part. The fourth row of the part table of FIG. 2A is the number of reserved channels. For example, the number of reserved channels of part # 2 is "6". Therefore, six of the nine channels currently used are truncated. It will not be done. That is, at least six of the currently used channels guarantee that part # 2 can be continuously used. As a result, the minimum number of channels that are considered necessary for performance expression in each part remain without being truncated,
Musically favorable performance is possible with a limited number of channels. That is, if there are not enough empty channels in step S2 in the flowchart of FIG. 3, first, the number of channels currently used by the lowest priority part # 8 is checked in the part table, and The number is compared with the reserved channel number “2” of the part # 8 (step S11). If more channels than the reserved channel number “2” are used in this part # 8, the number of the used channels exceeding the reserved channel number “2” is truncated. Conversely, when only the number of channels equal to or less than the reserved channel number “2” is used in part # 8, the channel used in part # 8 is not truncated, and the part # 8 having the next lowest priority is used. The use state of the channel 7 is checked (step S10). When selecting the used channel to be truncated when the number of used channels is larger than the number of reserved channels, first, the number of channels corresponding to one note of the part is truncated. If a plurality of notes are sounded in that part, it is desirable to truncate the earliest released note or the most attenuated note. When the key is not released, a method of leaving a high-pitched note or a high-level note with priority is considered. Here, the note whose tone generation is started earliest is truncated. At this time,
The note table number of the note table is sequentially traced from the note link number of the corresponding part of the part table, and the channel table is traced sequentially from the note described in the column where "E" is entered and the channel link number of the column. Forcibly stop the sound of the channel to be played. Accordingly, the free note link, the free channel link, and the number of free channels are updated (step S11). Then, the process returns to step S2 to compare the required number of channels with the number of free channels. In the above embodiment, the number of reserved channels is set as the minimum guaranteed channel number of the part, but this may be set as the minimum guaranteed note number. For example, in the part table of FIG. 2, the number of channels of part # 1 is "3" and the number of reserved channels is "6".
2 ". Thus, the number of reserves may be defined by the number of channels or the number of notes. As described above, in the present invention, since the number of tone generation channels used by each part is not fixedly allocated to each part, a newly input part is necessary. As many musical tone generation channels as possible can be obtained, so that the performance sounds are not limited, and the performance expression can be enriched.

【図面の簡単な説明】 【図1】 本発明の一実施例としてのアサイナを備えた電子楽器を示すブロック図である
。 【図2】 実施例装置におけるメモリに記憶する各種テーブルを示す図である。 【図3】 実施例装置におけるチャンネルアサイナによるチャンネル割当て処理の手順を
示す流れ図である。 【符号の説明】 1 演奏データ発生装置 2 チャンネルアサイナ 3 メモリ 4 楽音発生装置
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an electronic musical instrument provided with an assigner as one embodiment of the present invention. FIG. 2 is a diagram illustrating various tables stored in a memory in the apparatus according to the embodiment. FIG. 3 is a flowchart illustrating a procedure of a channel assignment process by a channel assigner in the apparatus according to the embodiment. [Description of Signs] 1 Performance data generator 2 Channel assigner 3 Memory 4 Musical sound generator

Claims (1)

【特許請求の範囲】 (1)複数の楽音発生チャンネルを用いて複数のパートの演奏を行う電子楽器に
おいて、該複数のパートの1つを演奏するための演奏データが新たに入力された
ときに該新たな演奏データを割り当てる楽音発生チャンネルを選定するアサイナ
であって、 該複数のパートについて各パートの優先順位と各パートで発音する音色を記憶
する記憶手段と、 該新たな演奏データを割り当てる楽音発生チャンネルの選定を行うにあたり、
該新たな演奏データを割り当てる楽音発生チャンネルが不足する場合には、該記
憶手段に記憶された該パートの優先順位に基づいて、優先順位が低いパートが割
り当てられている楽音発生チャンネルの方から順に選定する選定手段と を備えた電子楽器のアサイナ。 (2)複数の楽音発生チャンネルを用いて複数のパートの演奏を行う電子楽器に
おいて、該複数のパートの1つを演奏するための演奏データが新たに入力された
ときに該新たな演奏データを割り当てる楽音発生チャンネルを選定するアサイナ
であって、 該複数のパートについて各パートの優先順位と各パートで発音する音色を記憶
する記憶手段と、 該新たな演奏データを割り当てる楽音発生チャンネルの選定を行うにあたり、
該新たな演奏データを割り当てる楽音発生チャンネルが不足する場合には、該記
憶手段に記憶された該パートの優先順位に基づいて、該優先順位が低いパートの
方から順にその着目するパートで使用している楽音発生チャンネルのうち割当て
可能な楽音発生チャンネルがあるか否かを検索し、あれば該割当て可能な楽音発
生チャネルを選定する選定手段と を備えた電子楽器のアサイナ。
Claims (1) In an electronic musical instrument for performing a plurality of parts using a plurality of tone generation channels, when performance data for playing one of the plurality of parts is newly input. An assigner for selecting a tone generating channel to which the new performance data is to be assigned, wherein: a storage means for storing, for the plurality of parts, a priority order of each part and a tone to be produced by each part; In selecting the generation channel,
If there are not enough tone generation channels to which the new performance data is assigned, based on the priority order of the parts stored in the storage means, the tone generation channels to which parts with lower priorities are assigned in order. An electronic musical instrument assigner having selecting means for selecting. (2) In an electronic musical instrument that performs a plurality of parts using a plurality of tone generation channels, when new performance data for playing one of the plurality of parts is input, the new performance data is transmitted. An assigner for selecting a tone generation channel to be assigned, comprising: storage means for storing, for the plurality of parts, a priority order of each part and a tone to be emitted by each part ; and selecting a tone generation channel to which the new performance data is assigned. Hits the,
If there is a shortage of musical tone generation channels to which the new performance data is assigned, the part with the lower priority is used in the part of interest in order from the part with the lower priority based on the priority of the part stored in the storage means. Selecting means for retrieving whether or not there is an assignable tone generating channel among the assigned tone generating channels, and selecting the assignable tone generating channel if there is any.

Family

ID=

Similar Documents

Publication Publication Date Title
JP3177374B2 (en) Automatic accompaniment information generator
JP2562260B2 (en) Electronic musical instrument assigner
JP2641605B2 (en) Electronic musical instrument channel assignment device and channel assignment method
JP3372124B2 (en) Electronic musical instrument
JP2004045669A (en) Automatic playing device, automatic playing program, and automatic playing data recording medium
JPH0719150B2 (en) Electronic musical instrument assigner
JP2562261B2 (en) Electronic musical instrument assigner
US5945620A (en) Digital tone generator for producing phase synchronized tones
JP2562260C (en)
JPS6231358B2 (en)
JPH06259064A (en) Electronic musical instrument
JP3518716B2 (en) Music synthesizer
JPH0367276B2 (en)
JPS6086597A (en) Electronic musical instrument with musical scale setting function
JP3217772B2 (en) Apparatus and method for processing sound waveform data
JPH1091160A (en) Effect adding device of electronic musical instrument
JP3755385B2 (en) Sound source device and recording medium readable by sound source device
JP5648791B2 (en) Music signal generator
JP2715833B2 (en) Tone generator
JP2001051681A (en) Automatic accompaniment information generator
JP5141012B2 (en) Arpeggio generator and program
JP3040583B2 (en) Apparatus and method for processing sound waveform data
JP2639604B2 (en) Sound device for electronic keyboard instruments
JPH07104753A (en) Automatic tuning device of electronic musical instrument
JP2011186261A (en) Apparatus for generating musical tone signal