JPH05232957A - Assignor for electronic musical instrument - Google Patents

Assignor for electronic musical instrument

Info

Publication number
JPH05232957A
JPH05232957A JP4212134A JP21213492A JPH05232957A JP H05232957 A JPH05232957 A JP H05232957A JP 4212134 A JP4212134 A JP 4212134A JP 21213492 A JP21213492 A JP 21213492A JP H05232957 A JPH05232957 A JP H05232957A
Authority
JP
Japan
Prior art keywords
channel
channels
note
free
assigned
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.)
Granted
Application number
JP4212134A
Other languages
Japanese (ja)
Other versions
JP2562261B2 (en
Inventor
Shunsuke Ishida
俊輔 石田
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
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 Roland Corp filed Critical Roland Corp
Priority to JP4212134A priority Critical patent/JP2562261B2/en
Publication of JPH05232957A publication Critical patent/JPH05232957A/en
Application granted granted Critical
Publication of JP2562261B2 publication Critical patent/JP2562261B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To shorten a selection time and to reduce the load of selection processing by providing a storage means for storing the number of musical sound generating channels held at a free state and thereby quickly selecting a musical tone generating channel to be assigned to inputted playing data. CONSTITUTION:At the time of receiving a new note ON (depressed key) signal from a playing data generator 1, a channel assignor 2 refers to a part table stored in a memory 3 and checkes the number of channels to be required for sounding the note of the part. When the number of free channels indicated by a free channel number register for a channel table is larger than the necessary number of channels, musical tone data are assigned to a column number in a note table with a table number indicated by a free note link register. When there is no free channel required for assigning the necessary number of channels or free channels to be required are lacking, a current channel generating sound is stopped based upon prescribed order and the stopped channel is assigned to a new note.

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】この発明は、それぞれ音色の異な
る複数のパートを同時に演奏できる電子楽器に係り、さ
らに詳しくは、押鍵などにより新たに入力された演奏デ
ータに割り当てる楽音発生チャンネルを選定する電子楽
器のアサイナに関するものである。 【0002】 【従来の技術】電子楽器は一般に複数の楽音発生チャン
ネル(以下、単にチャンネルとも称する)を有してお
り、新たな押鍵などによる楽音の発音に際しては、 そ
の新たに入力された演奏データに割り当てるべ きチャ
ンネルをその複数のチャンネルのうちから 選定してい
る。 【0003】このチャンネルの選定方法としては、種々
の方法があり、例えば、空いているチャンネルのうち
から選定する、最も早く発音を開始したチャンネル、
つまり最も早く押鍵した楽音に対応するチャンネルを選
定する、最も早く離鍵した楽音に対応するチャンネル
を選定する、最も発音量等の小さいチャンネルを選定
する、これらを組み合わせる、などがある。 【0004】また、電子楽器にはそれぞれ音色の異なる
複数のパートを同時に演奏できるいわゆるマルチティン
バ電子楽器があり、例えば自動演奏装置は複数のパート
の演奏情報を記憶し、これを順次に読み出して所定のテ
ンポで同時演奏を行う。 【0005】また、これらの電子楽器におけるその楽音
発生方式としては各種の方式が用いられており、特に近
年、楽音発生方式はディジタル化が進み、波形読出し方
式、周波数変調方式、位相歪方式などが実用化され、さ
らにはこれらの方式を組み合わせることによって、より
豊かな音色が得られるようになっており、そのために、
一つのノート(楽音)を発生するために複数のチャンネ
ルが使われるようになってきている。 【0006】 【発明が解決しようとする課題】従来、新たに入力され
た演奏データにチャンネルを割り当てるにあたっては、
通常、まず空き状態のチャネルがあるかを全チャネルに
ついて逐次に調べていき、必要数の空きチャンネルが見
つかったら、それを選定している。 【0007】しかしながら、このような選定の仕方は、
上述したように一つの演奏データに複数のチャネルを必
要とするような場合には、その必要数分の空きチャネル
を探すのに時間がかかり、また演奏データが入力される
毎にそのような処理を行っているのでハードウェア的ま
たはソフトウェア的な処理負担が多くなるといった問題
が生じる。 【0008】本発明は上記問題点を解決するためになさ
れたものであり、その目的とするところは、演奏データ
が入力されたときに、その演奏データに割り当てる楽音
発生チャネルを速やかに選定できるようにして、その選
定時間の短縮と選定の処理負担を軽減することにある。 【0009】 【課題を解決するための手段】上記問題点を解決するた
めに、本発明の電子楽器のアサイナは、複数のパートを
有する電子楽器において新たに入力されたノートの演奏
データに割り当てる楽音発生チャンネルを選定するアサ
イナであって、各パート毎に1演奏データあたりに必要
とする楽音発生チャンネルの数を記憶する第1の記憶手
段と、全楽音発生チャンネルのうち空き状態の楽音発生
チャンネル数を記憶する第2の記憶手段と、新たに入力
された演奏データに対応する第1の記憶手段に記憶され
た楽音発生チャンネル数と、第2の記憶手段に記憶され
た楽音発生チャンネル数とを比較する比較手段と、この
比較手段の比較結果に基づいて新たなノートの演奏デー
タに割り当てる楽音発生チャンネルの選定を行う選定手
段とを備えたものである。 【0010】また上記選定手段は、新たなノートの演奏
データに割り当てる楽音発生チャンネルの選定を、比較
手段の比較の結果、第2の記憶手段の楽音発生チャンネ
ル数が第1の記憶手段の楽音発生チャンネル数以上の場
合には空き状態の楽音発生チャネンネルから行い、未満
の場合にはその全部または不足分を使用中の楽音発生チ
ャネルから行うように構成することができる。 【0011】 【作用】新たに演奏データが入力されると、その演奏デ
ータが必要とする楽音発生チャンネル数を第1の記憶手
段から調べ、また現に空き状態の楽音発生チャンネル、
例えば発音に使用されていない楽音発生チャンネルなど
のような選定しても演奏表現上実質的に影響がないとい
える楽音発生チャンネル、を第2の記憶手段から調べ、
この両者を比較手段で比較する。選定手段はその比較結
果に基づいて選定を行うことにより、従来のように演奏
データが入力される毎に全楽音発生チャンネルを対象に
して空き状態の楽音発生チャンネルを探す必要がなくな
り、よって速やかな選定処理を実現できる。 【0012】 【実施例】図1は本発明の一実施例としてのアサイナを
備えた電子楽器を示すブロック図である。 【0013】演奏データ発生装置1はミュージックシー
ケンサとも呼ばれる装置であり、鍵盤やコンピュータを
用いて作成される各パート毎の演奏情報を記憶し、これ
を順次に読み出して演奏データを発生する。 【0014】演奏データ発生装置1から発生される演奏
データにはMIDI規格によるフォーマットが用いられ
る。このMIDI規格を用いる場合には、各パートに別
々のMIDIチャンネルを割り当てることにより、複数
のパートの演奏データを送受することができる。例え
ば、ピアノ音をMIDIチャンネル1、ストリングスを
MIDIチャンネル2というように割り当て、演奏デー
タはこのMIDIチャンネルにより識別されてそれぞれ
送受される。 【0015】チャンネルアサイナ2 はこのMIDI演奏
データを受信し、このMIDIチャンネルに対応するパ
ートに応じて、メモリ3を参照して、その演奏データに
割り当てる所要のチャンネルを選定し、その選定データ
および演奏データに基づいて楽音発生装置4を制御す
る。 【0016】楽音発生装置4は楽音発生用のチャンネル
を24チャンネル有する装置であり、その楽音発生方式
としては各種の方式を用いることができる。近年、楽音
発生回路はディジタル化が進み、波形読出し方式、周波
数変調方式、位相歪方式などが実用化され、さらにはこ
れらの方式を組み合わせることによって、より豊かな音
色が得られるようになっている。したがって、この実施
例の楽音発生装置4では一つの楽音を発生するために複
数のチャンネルが使われている。 【0017】メモリ3はチャンネルアサインなどの際に
必要な各種データを記憶・管理するための記憶領域であ
り、ここにはパートテーブル、ノートテーブル、チャン
ネルテーブル等が記憶されている。 【0018】パートテーブルは図2の(A)に示される
形態のものであり、各パート#1〜#8別に、各パート
のチャンネル数、音色ナンバー、リザーブチャンネル
数、使用チャンネル数、ノートリンク番号等を記憶す
る。 【0019】ここで、パートテーブル第2行のチャンネ
ル数は当該パートの一つのノート(あるいは楽音)に対
して使用されるチャンネルの数である。なお各パート毎
のパラメータは図示しない別のメモリ領域に記憶されて
おり、発音時にそのパートの楽音を発生するために必要
なチャンネルに送信される。 【0020】パートテーブル第3行目には当該パートに
割り当てられた音色番号が記憶されており、この音色番
号によって上記パラメータの記憶されている位置がアド
レスされる。 【0021】パートテーブル第4行は当該パートについ
てのチャンネルのリザーブチャンネル数である。このリ
ザーブチャンネル数は後に詳しく述べるが、当該パート
で現に発音中のチャンネルのうちから演奏データに割り
当てるチャンネルの選定を行う場合に、その発音中のチ
ャンネルのうち発音継続を保証するチャンネルの最少数
を定めるものである。 【0022】パートテーブル第5行は当該パートにおい
て現在使用中のチャンネル数である。パートテーブル第
6行目は、次に述べるノートテーブルとの関係(リン
ク)を示すノートリンク番号である。 【0023】ノートテーブルは図2の(B)に示される
形態のもの、チャンネルテーブルは同図(C)示される
形態のものであり、それぞれチャンネル数に等しい24
の列を設けている。またノートテーブルはフリーノート
リンクレジスタを有し、チャンネルテーブルはフリーチ
ャンネルリンクレジスタとフリーチャンネル数レジスタ
を有する。 【0024】ノートテーブル第1行目にはノートリンク
番号を記憶する。パートテーブルおよびノートテーブル
のノートリンク番号は、同一パートについてのノートオ
ン(押鍵信号)のリンク順を表すか、または使用されて
いないフリーノートのリンク状態を表わす。 【0025】例えば、電源を投入した直後のリセットさ
れた状態ではフリーノートリンクレジスタに番号「1」
が記入されており、ノートテーブルのノートリンク番号
欄は第1列には「2」、第2列には「3」、同様に第3
〜23列には各々その番号の列番号に1を加えた値が記
入され、第24列には“終り”という意味の記号「E」
が記入されている。 【0026】パート#1のノートオンが発生すると、そ
のノートを、フリーノートリンクレジスタの番号「1」
で指示されるノートテーブルの第1列に割り当て、パー
トテーブルのパート#1のノートリンク番号を「1」、
ノートテーブル第1行のノートリンク番号を「E」、フ
リーノートリンクレジスタの番号を「2」と書き替え
る。 【0027】次に同じくパート#1のノートオンが発生
すると、そのノートを、フリーノートリンクレジスタの
番号「2」で指示されるノートテーブルの第2列に割り
当て、パートテーブルのパート#1のノートリンク番号
を「2」とし、ノートテーブル第2列のノートリンク番
号を「1」、フリーノートリンクレジスタの番号を
「3」とする。 【0028】すなわち、パートテーブルのノートリンク
番号はそのパートで最新にノートオンしたノートを割り
当てたノートテーブルの列を表わす。ノートテーブルの
ノートリンク番号は同一パートであって、そのノートオ
ンの直前に発生したノートオンのノートを記入する列番
号を表わし、この列番号が「E」であれば同一パートで
直前に発生したノートオンはないことを表わす。 【0029】同様に現在使用されていないノートテーブ
ルの列のうち先頭のものがフリーノートリンクレジスタ
に記入されており、ノートテーブルにおけるそれぞれの
使用されていない列(空き列)には次の空き列の列番号
がノートリンク番号として記入される。 【0030】ノートテーブルにおける各列は単にノート
を管理するためのスペースにすぎないが、図2の(C)
に示すチャンネルテーブルの各列はそれぞれのチャンネ
ルに対応している。すなわち、第1列は第1チャンネル
であり、第2列は第2チャンネル、・・・以下同様であ
る。 【0031】チャンネルテーブルにおいても同様にフリ
ーチャンネルリンクレジスタが設けられており、使用さ
れていないチャンネルの先頭チャンネル番号が記入され
ている。さらにフリーチャンネル数レジスタが設けられ
ており、現在の空チャンネルの数を表わしている。した
がって、電源投入直後のフリーチャンネルリンク番号は
「1」であり、フリーチャンネル数は「24」である。
また、ノートテーブルの最下位行にはチャンネルリンク
番号が記入される。 【0032】ノートテーブルの第1列にパート#1のノ
ートが割り当てられると、パート#1のノートは、パー
トテーブルから明らかなように、3つのチャンネルを使
用するので、このノートに第1〜第3チャンネルの3つ
を割り当てる。このときノートテーブルの第1列のチャ
ンネルリンク番号は「1」とし、チャンネルテーブルの
チャンネルリンク番号欄は、第1チャンネルには「2」
を、第2チャンネルには「3」、第3チャンネルには
「E」を記入する。 【0033】同様にノートテーブルの第2列に、パート
#1において続いてノートオンしたノートを割り当てる
と、ノートテーブルのチャンネルリンク番号は「4」が
記入され、チャンネルテーブルの第4チャンネルのチャ
ンネルリンク番号は「5」、第5チャンネルのチャンネ
ルリンク番号は「6」、第6チャンネルのチャンネルリ
ンク番号は「E」がそれぞれ記入される。この変更に伴
い、フリーチャンネルリンクレジスタのフリーチャンネ
ルリンク番号を「7」に、フリーチャンネル数レジスタ
のフリーチャンネル数を「18」にそれぞれ更新する。 【0034】ノートテーブルの第2行は各列に割り当て
られたノートの番号、第3行にはノートベロシティーを
記憶する。 【0035】チャンネルテーブルの第2行以下には各チ
ャンネルの担当する音色番号やステータス、例えばエン
ベロープがどのような状態にあるか等を記入する。この
ステータスは音源方式により各種の方式があるのでここ
では詳述しない。 【0036】割り当て処理 チャンネルアサイナ2は、新たなノートオン(押鍵)信
号を受けると、図3の流れ図に示す手順に従ってチャン
ネルの割り当て処理を行う。まず、新たなノートオン信
号を受けると、その受信したノートオン信号のMIDI
チャンネルからそのノートオン信号がいずれのパートの
ものかを判定し、パートテーブルを参照してそのパート
のノートを発音するに必要なチャンネル数を調べる(ス
テップS1)。 【0037】次に、この必要チャンネル数をフリーチャ
ンネル数レジスタが示すフリーチャンネル数と比較する
(ステップS2)。このとき、フリーチャンネル数の方
が大きい場合には、楽音データをフリーノートリンクレ
ジスタの示す番号のノートテーブルの列に割り当てると
ともにそのフリーノートリンクレジスタの番号を更新す
る(ステップS3)。そして前述のとおり、パートテー
ブルの該当パートのノートリンク番号およびノートテー
ブルのノートリンク番号をそれぞれ更新する。 【0038】そして次に、フリーチャンネルリンクレジ
スタが示すチャンネル番号を先頭とする3つのチャンネ
ルを楽音データに割り当てると共に、フリーチャンネル
リンクレジスタの番号を更新する(ステップS4)。同
様に、フリーチャンネル数レジスタのフリーチャンネル
数、ノートテーブルおよびチャンネルテーブルのチャン
ネルリンク番号をそれぞれ更新する。 【0039】入力されたノートの必要チャンネル数を割
り当てる空チャンネルがない場合、または不足している
場合には、現に使用しているチャンネル、つまり現に発
音中のチャンネルを停止させるトランケート処理を行っ
て、その停止させたチャンネルを新たなノートに割り当
てる。この場合の停止させる順位は次のようになる。 【0040】各パートに優先順位を設け、優先順位の
低いパートから高いパートへと順に、各パートで使用中
のチャンネルのうちリザーブチャンネル数を超える数の
チャンネルを停止させる。 本実施例ではパート#1、#2・・・#8の順に優先順
位が低く設定されている。 【0041】パート毎にリザーブチャンネル数(最低
保証チャンネル数)を設ける。 図2の(A)のパートテーブルの第4行はこのリザーブ
チャンネル数で、例えばパート#2のリザーブチャンネ
ル数は「6」であるから、現在使用中の9つのチャンネ
ルのうち6つのチャンネルはトランケートされることは
ない。すなわち、現在使用中のチャンネルのうち最低6
つのチャンネルはパート#2が継続して使用できること
を保証するというものである。これにより各パートの中
で演奏表現上最低限必要と考えられる数のチャンネルが
トランケートされずに残るため、音楽的に好ましい演奏
が、限られたチャンネル数で可能となるものである。 【0042】すなわち、図3の流れ図のステップS2に
おいて空チャンネルが不足している場合には、まず最も
優先順位の低いパート#8が現に使用しているチャンネ
ル数をパートテーブルで調べ、その使用チャンネル数と
当該パート#8のリザーブチャンネル数「2」とを比較
する(ステップS11)。 【0043】このパート#8においてリザーブチャンネ
ル数「2」よりも多い数のチャンネルが使用されている
場合には、そのリザーブチャンネル数「2」を超える数
の使用中のチャンネルをトランケートする。また反対
に、このパート#8においてリザーブチャンネル数
「2」以下の数のチャンネルしか使用されていない場合
には、パート#8で使用中のチャンネルはトランケート
せず、次に優先度の低いパート#7のチャンネルの使用
状態を調べる(ステップS10)。 【0044】前述の使用チャンネル数がリザーブチャン
ネル数より多い場合にトランケートする使用中チャンネ
ルの選び方は、まずそのパートの1つのノートに対応す
る数のチャンネルをトランケートする。そしてそのパー
ト内で複数のノートが発音されている場合には、最も早
く離鍵されたノート、または最も減衰の進んでいるノー
トをトランケートするのが望ましい。また、離鍵されて
いない場合には高音の高いノート、もしくはレベルの大
きいノートを優先して残すようにするなどの方法が考え
られる。 【0045】ここでは、最も早く発音が開始されたノー
トをトランケートする。この時は、パートテーブルの該
当するパートのノートリンク番号からノートテーブルの
ノートテーブル番号を順にたどり、「E」が記入されて
いる列に記載されたノートおよびその列のチャンネルリ
ンク番号からチャンネルテーブルを順にたどり、該当す
るチャンネルの発音を強制的に停止させる。これに伴っ
てフリーノートリンク、フリーチャンネルリンク、フリ
ーチャンネル数をそれぞれ更新する(ステップS1
1)。そして再びステップS2に戻り、必要とするチャ
ンネル数とフリーチャンネル数を比較する。 【0046】なお、上記の実施例はリザーブチャンネル
数をそのパートの最低保証チャンネル数としたが、これ
は最低保証ノート数としてもよい。例えば図2のパート
テーブルにおいて、パート#1のチャンネル数は
「3」、リザーブチャンネル数は「6」であるから、最
低保証ノート数で管理する場合にはリザーブノート数は
「2」である。このように、リザーブ数はチャンネル数
で定義しても、あるいはノート数で定義してもよい。 【0047】 【発明の効果】以上に説明したように、本発明において
は、新たな演奏データの入力に対して、それに割り当て
る楽音発生チャンネルの選定を、現に空き状態の楽音発
生チャンネル数と比較して必要数が空いていればそれか
ら直ちに選定することにより、速やかに行うことができ
るようになり、よって入力される各演奏データが複数の
楽音発生チャンネルを必要とするような場合でも、その
選定処理に要する時間を短くでき、またそのハードウェ
ア的またはソフトウェア的な処理負担を軽減することが
できる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument capable of simultaneously playing a plurality of parts each having a different tone color, and more specifically, newly input by pressing a key or the like. The present invention relates to an assigner for an electronic musical instrument that selects a tone generation channel to be assigned to performance data. Electronic musical instruments generally have a plurality of musical tone generation channels (hereinafter, also simply referred to as channels), and when a musical tone is to be sounded by a new key depression or the like, the newly input musical performance is used. The channel to be assigned to the data is selected from the multiple channels. There are various methods for selecting this channel. For example, a channel that starts sounding the earliest is selected from among available channels,
That is, there is a method of selecting a channel corresponding to the musical tone which is pressed the earliest, a channel corresponding to the musical tone which is released the earliest, a channel having the smallest sound generation amount, a combination thereof and the like. Further, there is a so-called multi-timbre electronic musical instrument capable of simultaneously playing a plurality of parts each having a different tone color in the electronic musical instrument. For example, an automatic performance device stores the musical performance information of a plurality of parts and sequentially reads out the musical performance information of the plurality of parts. Perform at the same tempo. Further, various methods are used as the musical tone generating method in these electronic musical instruments, and in particular, in recent years, the musical tone generating method has been digitized, and a waveform reading method, a frequency modulation method, a phase distortion method, etc. It has been put to practical use, and by combining these methods, richer tones can be obtained, and for that reason,
Multiple channels are being used to generate one note (musical note). [0006] Conventionally, when assigning channels to newly input performance data,
Usually, first, all channels are sequentially checked for available channels, and when the required number of available channels is found, it is selected. However, such a selection method is
As described above, when one performance data requires a plurality of channels, it takes time to search for the required number of empty channels, and such processing is performed every time the performance data is input. However, there is a problem in that the processing load in terms of hardware or software increases. The present invention has been made to solve the above problems, and an object of the present invention is to, when performance data is input, enable prompt selection of a tone generation channel to be assigned to the performance data. The purpose is to shorten the selection time and reduce the selection processing load. In order to solve the above-mentioned problems, an assigner for an electronic musical instrument of the present invention uses a musical tone assigned to performance data of a newly input note in an electronic musical instrument having a plurality of parts. An assigner for selecting generation channels, which is a first storage means for storing the number of music generation channels required for one performance data for each part, and the number of idle music generation channels out of all the music generation channels The number of tone generation channels stored in the first storage means corresponding to the newly input performance data, and the number of tone generation channels stored in the second storage means. Comparing means for comparing, and selecting means for selecting a tone generation channel to be assigned to performance data of a new note based on the comparison result of the comparing means. It is equipped with. The selection means selects a tone generation channel to be assigned to performance data of a new note. As a result of comparison by the comparison means, the number of tone generation channels in the second storage means is equal to that of the first storage means. When the number of channels is equal to or more than the number of channels, the tone generation channel in the empty state is performed, and when the number is less than that, all or a shortage thereof can be performed from the tone generation channel in use. When new performance data is input, the number of tone generation channels required by the performance data is checked from the first storage means, and the tone generation channels which are actually empty,
For example, a musical tone generating channel which is not used for sounding and which can be said to have substantially no influence on performance expression even if selected is searched from the second storage means,
The both are compared by a comparison means. By selecting the selection means based on the comparison result, it is not necessary to search for all the tone generation channels every time the performance data is input, as in the conventional case, and it is not necessary to search for the tone generation channels in the empty state. A selection process can be realized. FIG. 1 is a block diagram showing an electronic musical instrument provided with an assigner as an embodiment of the present invention. The performance data generator 1 is a device also called a music sequencer, which stores performance information for each part created by using a keyboard or a computer, and sequentially reads this to generate performance data. A format according to the MIDI standard is used for performance data generated from the performance data generator 1. When this 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, a piano sound is assigned as MIDI channel 1 and strings are assigned as MIDI channel 2, and performance data is identified by this MIDI channel and transmitted / received. The channel assigner 2 receives this MIDI performance data, refers to the memory 3 according to the part corresponding to this MIDI channel, selects a required channel to be assigned to the performance data, 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 tone generating systems can be used. In recent years, musical tone generation circuits have been digitized, and waveform readout methods, frequency modulation methods, phase distortion methods, etc. have been put to practical use, and by combining these methods, richer tones can be obtained. .. Therefore, the tone generator 4 of this embodiment uses a plurality of channels 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 a part table, a note table, a channel table, etc. are stored therein. The part table has a form shown in FIG. 2A, and the number of channels, tone number, reserve channel, number of used channels, note link number of each part is # 1 to # 8. Etc. are memorized. Here, the number of channels in the second row of the part table is the number of channels used for one note (or tone) of the part. The parameters for each part are stored in another memory area (not shown), and are transmitted to the channels required to generate the musical sound of the part when the sound is generated. The tone color number assigned to the part is stored in the third line of the part table, and the position where the above parameters are stored is addressed by this tone color number. The fourth row of the part table is the number of reserved channels of the channel for the part. The number of reserved channels will be described in detail later, but when selecting the channel to be assigned to the performance data from the channels currently sounding in the part, the minimum number of channels that are sounding is guaranteed. It is determined. The fifth row of the part table is the number of channels currently in use in the part. The sixth line of the part table is a note link number indicating the 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.
There are rows of. 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 note link number is stored in the first line of the note table. The note link numbers of the part table and the note table represent the link order of note-on (key depression signal) for the same part, or represent the link state of free notes that are not used. For example, in the reset state immediately after the power is turned on, the free note link register has the number "1".
Is entered, the note link number column of the note table is "2" in the first column, "3" in the second column, and similarly in the third column.
The value obtained by adding 1 to the column number of that number is entered in each of columns ~ 23, and the symbol "E" meaning "end" is entered in the 24th column.
Is entered. When the note-on of part # 1 occurs, the note is assigned the note number "1" of the free note link register.
Assigned to the first column of the note table indicated by, and the note link number of part # 1 of the part table is "1",
Rewrite the note link number in the first row of the note table as "E" and the free note link register number as "2". Next, when the note-on of the part # 1 similarly occurs, the note is assigned to the second column of the note table designated by the number "2" of the free note link register, and the note of the 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 of the part table represents the column of the note table to which the note most recently note-on in the part is assigned. The note link number in the note table is the same part, and represents the column number for writing the note-on note that occurred immediately before that note-on. If this column number is "E", it occurred immediately before in the same part. Indicates that there is no note-on. Similarly, among the columns of the note table which are not currently used, the first one is written in the free note link register, and the unused column (empty column) in the note table is replaced by the next empty column. The column number of is written as the note link number. Each column in the note table is merely a space for managing notes, but FIG.
Each column of the channel table shown in (1) corresponds to each channel. That is, the first row is the first channel, the second row is the second channel, and so on. A free channel link register is also provided in the channel table, and the leading channel numbers of unused channels are entered. Further, a free channel number register is provided and represents the current number of empty channels. Therefore, the free channel link number immediately after power-on is "1" and the number of free channels is "24".
In addition, the channel link number is entered in the lowest row of the note table. When the note of part # 1 is assigned to the first column of the note table, the note of part # 1 uses three channels as apparent from the part table. Allocate 3 of 3 channels. 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.
Enter "3" in the second channel and "E" in the third channel. Similarly, when a note that is subsequently note-on in part # 1 is assigned to the second column of the note table, "4" is entered as the channel link number of the note table, and the channel link of the fourth channel of the channel table is entered. 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 in the free channel link register is updated to "7" and the free channel number in 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 of each channel, such as the state of the envelope, are entered. There are various methods for this status, depending on the sound source method, so a detailed description is not given here. Allocation Processing When the channel assigner 2 receives a new note-on (key-depression) signal, it performs channel allocation processing according to the procedure shown in the flowchart of FIG. First, when a new note-on signal is received, MIDI of the received note-on signal is received.
It is determined from the channel which part the note-on signal belongs to, and the part table is referred to check the number of channels required to generate the note of the part (step S1). Next, this required channel number is compared with the free channel number indicated by the free channel number register (step S2). At this time, when the number of free channels is larger, the musical tone data is assigned to the row of the note table having 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. Then, the three channels starting with the channel number indicated by the free channel link register are assigned to the musical sound data, and the number of the free channel link register is updated (step S4). Similarly, the free channel number of the free channel number register and the channel link numbers of the note table and the channel table are respectively updated. If there is no empty channel to allocate the required number of input notes, or if there is not enough channels, a truncation process is performed to stop the currently used channel, that is, the currently sounding channel, Assign the stopped channel to a new note. The order of stopping in this case is as follows. A priority is set for each part, and the number of channels in use in each part that exceeds the number of reserved channels is stopped in order from the part with the lowest priority to the part with high priority. In the present embodiment, the priorities are set low in the order of parts # 1, # 2 ... # 8. A reserve channel number (minimum guaranteed channel number) is set 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”, so six of the nine channels currently in use are truncated. It will not be done. That is, at least 6 of the channels currently in use
One channel guarantees that Part # 2 will continue to be available. As a result, since the minimum number of channels that are considered to be the minimum necessary for performance expression in each part remain without being truncated, a musically preferable performance can be performed with a limited number of channels. That is, when the number of empty channels is insufficient in step S2 of the flow chart of FIG. 3, first, the number of channels currently used by the lowest priority part # 8 is checked in the part table, and the used channels are checked. The number is compared with the reserved channel number "2" of the part # 8 (step S11). When a number of channels larger than the reserved channel number "2" is used in this part # 8, the number of used channels exceeding the reserved channel number "2" is truncated. On the other hand, if only the number of reserved channels equal to or less than “2” is used in this part # 8, the channel being used in the part # 8 will not be truncated and the part # 8 having the next lowest priority will be used. The usage status of channel 7 is checked (step S10). To select the in-use 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 more than one note is sounded in the part, it is desirable to truncate the note that was released the earliest or the note that was most attenuated. If the key is not released, a method of giving priority to a note having a high treble or a note having a high level may be considered. Here, the note whose pronunciation has started earliest is truncated. In this case, follow the note table number of the note table in order from the note link number of the corresponding part in the part table, and open the channel table from the note and the channel link number of the row described in the column marked "E". Follow the steps in order to forcibly stop the sound of the corresponding channel. Along with this, the free note link, the free channel link, and the number of free channels are updated (step S1).
1). Then, the process returns to step S2 again, and the number of required channels and the number of free channels are compared. Although the number of reserved channels is the minimum guaranteed channel number of the part in the above embodiment, this may be the minimum guaranteed note number. For example, in the part table of FIG. 2, the number of channels of the part # 1 is "3" and the number of reserved channels is "6". In this way, the reserve number may be defined by the number of channels or the number of notes. As described above, in the present invention, when new performance data is input, the selection of the musical tone generating channel to be assigned to it is compared with the number of musical tone generating channels which are actually empty. Therefore, if the required number is available, the selection can be performed immediately and the performance data can be promptly selected. Therefore, even when the input performance data requires a plurality of tone generation channels, the selection process can be performed. The time required for the processing can be shortened, and the hardware or software processing load can be reduced.

【図面の簡単な説明】 【図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 an embodiment of the present invention. FIG. 2 is a diagram showing various tables stored in a memory in the apparatus of the embodiment. FIG. 3 is a flowchart showing a procedure of channel assignment processing by a channel assigner in the apparatus of the embodiment. [Explanation of reference numerals] 1 performance data generator 2 channel assigner 3 memory 4 tone generator

Claims (1)

【特許請求の範囲】 (1)複数のパートを有する電子楽器において新たに入
力された演奏データに割り当てる楽音発生チャンネルを
選定するアサイナであって、 各パート毎に1演奏データあたりに必要とする楽音発生
チャンネルの数を記憶する第1の記憶手段と、 全楽音発生チャンネルのうち空き状態の楽音発生チャン
ネル数を記憶する第2の記憶手段と、 新たに入力されたノートの演奏データに対応する前記第
1の記憶手段に記憶された楽音発生チャンネル数と、前
記第2の記憶手段に記憶された楽音発生チャンネル数と
を比較する比較手段と、 前記比較手段の比較結果に基づいて新たな演奏データに
割り当てる楽音発生チャンネルの選定を行う選定手段と
を備えた電子楽器のアサイナ。 (2)前記選定手段は、新たな演奏データに割り当てる
楽音発生チャンネルの選定を、前記比較手段の比較の結
果、第2の記憶手段の楽音発生チャンネル数が第1の記
憶手段の楽音発生チャンネル数以上の場合には空き状態
の楽音発生チャネンネルから行い、未満の場合にはその
全部または不足分を使用中の楽音発生チャネルから行う
ように構成したものである特許請求の範囲第1項に記載
の電子楽器のアサイナ。
Claims: (1) An assigner for selecting a musical tone generation channel to be assigned to newly input musical performance data in an electronic musical instrument having a plurality of parts, wherein the musical tone required per musical performance data for each part First storage means for storing the number of generation channels, second storage means for storing the number of empty tone generation channels among all tone generation channels, and the above-mentioned corresponding to the performance data of newly input notes. Comparison means for comparing the number of tone generation channels stored in the first storage means with the number of tone generation channels stored in the second storage means, and new performance data based on the comparison result of the comparison means. An assigner for an electronic musical instrument having a selecting means for selecting a tone generation channel to be assigned to. (2) The selection means selects the tone generation channels to be assigned to new performance data, and the comparison result of the comparison means indicates that the number of tone generation channels of the second storage means is the number of tone generation channels of the first storage means. In the above case, it is configured such that the tone generation channel in the empty state is performed, and in the case of less than that, all or a shortage of the tone generation channel is configured to be performed from the tone generation channel in use. Electronic musical instrument assigner.
JP4212134A 1992-07-16 1992-07-16 Electronic musical instrument assigner Expired - Fee Related JP2562261B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4212134A JP2562261B2 (en) 1992-07-16 1992-07-16 Electronic musical instrument assigner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4212134A JP2562261B2 (en) 1992-07-16 1992-07-16 Electronic musical instrument assigner

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP62176813A Division JPH0719150B2 (en) 1987-07-14 1987-07-14 Electronic musical instrument assigner

Publications (2)

Publication Number Publication Date
JPH05232957A true JPH05232957A (en) 1993-09-10
JP2562261B2 JP2562261B2 (en) 1996-12-11

Family

ID=16617459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4212134A Expired - Fee Related JP2562261B2 (en) 1992-07-16 1992-07-16 Electronic musical instrument assigner

Country Status (1)

Country Link
JP (1) JP2562261B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012108295A (en) * 2010-11-17 2012-06-07 Yamaha Corp Musical sound generation apparatus and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS531514A (en) * 1977-02-09 1978-01-09 Nippon Gakki Seizo Kk Key assignor for electronic instrument
JPS55140893A (en) * 1979-04-21 1980-11-04 Kawai Musical Instr Mfg Co System for allocating keyboard switch information
JPS6211893A (en) * 1985-08-10 1987-01-20 ヤマハ株式会社 Electronic musical instrument
JPS63172196A (en) * 1987-01-09 1988-07-15 松下電器産業株式会社 Electronic musical instrument

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS531514A (en) * 1977-02-09 1978-01-09 Nippon Gakki Seizo Kk Key assignor for electronic instrument
JPS55140893A (en) * 1979-04-21 1980-11-04 Kawai Musical Instr Mfg Co System for allocating keyboard switch information
JPS6211893A (en) * 1985-08-10 1987-01-20 ヤマハ株式会社 Electronic musical instrument
JPS63172196A (en) * 1987-01-09 1988-07-15 松下電器産業株式会社 Electronic musical instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012108295A (en) * 2010-11-17 2012-06-07 Yamaha Corp Musical sound generation apparatus and program

Also Published As

Publication number Publication date
JP2562261B2 (en) 1996-12-11

Similar Documents

Publication Publication Date Title
JP3177374B2 (en) Automatic accompaniment information generator
US10474387B2 (en) Musical sound generation device, musical sound generation method, storage medium, and electronic musical instrument
JP2641605B2 (en) Electronic musical instrument channel assignment device and channel assignment method
JP2562260B2 (en) Electronic musical instrument assigner
JP3372124B2 (en) Electronic musical instrument
JP2562261B2 (en) Electronic musical instrument assigner
JPH0719150B2 (en) Electronic musical instrument assigner
JPS6231358B2 (en)
JPS6365496A (en) Key assigner system
JP2562260C (en)
US5380949A (en) Key assigner for an electronic musical instrument having multiple tone channels and priority level value data
JP2715795B2 (en) Musical sound synthesizer having pronunciation assigning means
JP3217772B2 (en) Apparatus and method for processing sound waveform data
US5371319A (en) Key assigner for an electronic musical instrument
JP2639604B2 (en) Sound device for electronic keyboard instruments
JP4097325B2 (en) Music information setting device
JP2001051681A (en) Automatic accompaniment information generator
JP5648791B2 (en) Music signal generator
JP5141012B2 (en) Arpeggio generator and program
JP3040583B2 (en) Apparatus and method for processing sound waveform data
JPS60149092A (en) Electronic musical instrument
JPS6289094A (en) Electronic musical apparatus
JPH07104753A (en) Automatic tuning device of electronic musical instrument
JPH07160260A (en) Device for generating musical sound
JPH07117834B2 (en) Musical sound generator

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees