JP4766575B2 - Electronic musical instrument communication device - Google Patents
Electronic musical instrument communication device Download PDFInfo
- Publication number
- JP4766575B2 JP4766575B2 JP2009004517A JP2009004517A JP4766575B2 JP 4766575 B2 JP4766575 B2 JP 4766575B2 JP 2009004517 A JP2009004517 A JP 2009004517A JP 2009004517 A JP2009004517 A JP 2009004517A JP 4766575 B2 JP4766575 B2 JP 4766575B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- sound source
- sound
- module
- serial communication
- 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
Links
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
この発明は電子楽器の通信装置に関し、特に電子楽器で使用される各種データや各種信号のシリアル通信速度、あるいは転送レートを可変とした電子楽器の通信装置に関する。 The present invention relates to a communication device for an electronic musical instrument, and more particularly to a communication device for an electronic musical instrument in which the serial communication speed or transfer rate of various data and signals used in the electronic musical instrument is variable.
図12に、従来の電子楽器の通信装置の一例を示す。該電子楽器の通信装置は、ホストモジュール10、複数個の音源モジュール30、50、および発音モジュール70から構成されている。
FIG. 12 shows an example of a communication apparatus for a conventional electronic musical instrument. The electronic musical instrument communication apparatus includes a
ホストモジュール10は、システムバス11に接続された鍵盤スキャナ部12、RAM13、CPUプログラム等を格納されたROM14、ホストモジュール10の全体の動作を制御するホストCPU15、FD(フロッピー(登録商標)ディスク)ドライバ16、パネルSW/表示部17、非同期シリアル通信部A18、および非同期シリアル通信部B19から構成されている。鍵盤スキャナ部12は、電子楽器本体1の鍵盤スイッチの状態を調べ、その鍵盤番号、オンまたはオフ情報を出力すると共に、そのオン/オフを示す信号から、鍵盤タッチの強さを示すタッチデータを生成する。また、FDドライバ16は、FD駆動装置2を制御し、FDから演奏データ等を読み出す動作をする。また、非同期シリアル通信部A18は、外部MIDIとの間でデータの送受信を非同期で行う。
The
次に、音源モジュール30、50は同構成であるので音源モジュール30を代表にあげてその構成を説明すると、音源モジュール30は、システムバス31に接続された非同期シリアル通信部B32、モジュールNO.設定部33、音源CPU34、第1のROM35、第1のRAM36、第2のROM37、楽音発生回路38、DSP(Digital signal processor)39(エフェクト回路と呼ぶこともある)、第2のRAM40、およびDAC(Digital analog converter)41から構成されている。
Next, since the
前記非同期シリアル通信部B19と32は、両者間で、演奏データなどのデータを非同期シリアル通信する。前記モジュールNO.設定部33には、例えばディップスイッチ等で、音源モジュールの番号が付けられる。前記第1のROM35には、CPUプログラム、DSPプログラム、各種パラメータ等が格納される。また、第2のROM37は波形メモリとしての働きをする。前記DSP39はエフェクト回路として働き、前記第2のRAM40は、プログラムメモリおよび係数メモリとしての働きをする。
The asynchronous serial communication units B19 and 32 perform asynchronous serial communication of data such as performance data between them. The module NO. The
さらに、発音モジュール70は、前記音源モジュール30、50のDAC41から出力されたアナログの楽音信号を混合するアナログミキサ71、増幅器72、および左右のスピーカ73L、73Rから構成されている。
Further, the
なお、マスタCPUより各ボイスユニットに制御プログラムや波形データ等を転送すると共にキーオン/オフ信号等の操作に伴う発生楽音の制御データ等のシリアル制御データを供給する楽音信号発生装置は、下記の特許文献1に示されている。
前記非同期シリアル通信部B19と32は演奏データやMIDIデータ等を非同期シリアル通信するが、その通信速度は一定であった。 The asynchronous serial communication units B19 and 32 perform asynchronous serial communication of performance data, MIDI data, etc., but the communication speed is constant.
例えば、前記非同期シリアル通信Aは外部とのMIDI通信であるため、MIDI規格から、その転送レートは31.25Kボーであり、前記非同期シリアル通信Bは内部通信のためもう少し高速であり250Kボー程度であった。 For example, since the asynchronous serial communication A is MIDI communication with the outside, the transfer rate is 31.25K baud according to the MIDI standard, and the asynchronous serial communication B is a little faster and is about 250K baud for internal communication. there were.
この内部通信速度の250Kボーという転送速度は、演奏データをリアルタイムで転送するには十分な速度である。つまり、1つのキーオン情報は25ビット程度からなるので250Kボーで転送すれば25/250K(秒)=0.1ミリ秒程度で送信可能である。同時に10鍵弾いても1ミリ秒で送信できる。 This internal communication speed of 250K baud is a sufficient speed for transferring performance data in real time. That is, since one key-on information consists of about 25 bits, if it is transferred at 250K baud, it can be transmitted in about 25 / 250K (seconds) = 0.1 milliseconds. Even if you play 10 keys at the same time, you can send in 1 millisecond.
しかし、多量の楽音データを送信する場合、例えば低域のピアノ音のPCM波形データ等は1波形だけでも2400Kビット(12ビット×200Kワード)程度であり、これを上記250Kボーで転送すると9.6秒かかってしまう。 However, when a large amount of musical sound data is transmitted, for example, the PCM waveform data of a low-frequency piano sound is about 2400 Kbits (12 bits × 200 Kwords) even if only one waveform is used. It takes 6 seconds.
PCM波形で製作したピアノ音は、1オクターブ内に4波形程度が必要なことを考慮すると(高域は波形容量が少なくて済むことを考慮しても)、そのデータ転送に数分かかることは明らかである。 A piano sound produced with a PCM waveform can take several minutes to transfer its data, considering that about four waveforms are required within one octave (even if the high frequency requires less waveform capacity). it is obvious.
つまり、従来の内部転送速度は演奏情報を転送するのには十分であったが、波形データ等を転送するには不十分な速度であった。 In other words, the conventional internal transfer speed is sufficient for transferring performance information, but is insufficient for transferring waveform data and the like.
ただ、それならば常に最高速度で転送すれば良いかというと、そうではない。なぜならば、転送を司る各CPUの負荷が転送速度を上げることで極端に重くなり、例えば1Mボーで転送を行うと約0.01ミリ秒毎に割込みが発生することになり、通常の処理がこなせない。 However, if that's the case, it's not always the case that you should always transfer at the highest speed. This is because the load on each CPU that controls the transfer becomes extremely heavy by increasing the transfer speed. For example, if the transfer is performed at 1M baud, an interrupt is generated every about 0.01 millisecond, and the normal processing is performed. I can't do it.
よって、各CPUが通常の処理をこなしながら、転送を行なう上での最高の速度は250Kボー程度であり、1Mボーという転送の場合は通常の処理を行なわず、データダンプに専念することになる。 Therefore, the maximum speed for performing transfer while each CPU performs normal processing is about 250K baud, and in the case of transfer at 1M baud, normal processing is not performed and the data dump is concentrated. .
ところで、波形データ等を転送する場合は、その楽器(又は楽音発生装置)が編集モードにあり、演奏を一次停止することが許される状況である。 By the way, when transferring waveform data or the like, the instrument (or musical tone generator) is in the edit mode, and it is allowed to temporarily stop the performance.
また、各音源モジュール30、50は、DSP39でエフェクトされたデータを、各DAC41でアナログ楽音に変えた後、発音モジュール70のアナログミキサ71に送信するようにしているため、楽音信号のミキシング結果に、トータルエフェクトをかけることが困難であるという問題があった。すなわち、トータルエフェクトをかけるには、デジタル楽音でないと、任意のエフェクトがかけられないため、従来装置でエフェクトをかけようとすると、前記アナログミキサ71の後段にA/D変換器を入れて一旦デジタル信号に変換しなければならず、S/Nが悪くなるばかりか、コストアップになるという問題があった。
In addition, since each
本発明は、前記した従来技術に鑑みてなされたものであり、その目的は転送すべき演奏内容(演奏データ、楽音データ、エフェクトプログラム、またはエフェクト係数データ)に最適な通信速度を自動的に選択可能としたことにある。 The present invention has been made in view of the above-described prior art, and its purpose is to automatically select the optimum communication speed for the performance content (performance data, musical tone data, effect program, or effect coefficient data) to be transferred. It is possible.
また、本発明はトータルエフェクトを少ない配線数で、かつ安価にかけることのできる電子楽器の送信装置を提供することにある。 It is another object of the present invention to provide an electronic musical instrument transmitting apparatus that can apply the total effect with a small number of wires and at a low cost.
本発明は、音源モジュールを単体で使用する場合と、複数接続して使用する場合とで、該音源モジュールのエフェクト回路が出力するデジタル楽音信号の転送レートを切替えるようにした点に特徴がある。この特徴によれば、共通の出力ラインを使用することができるようになり、出力ラインの配線数を低減できると共に、厚みのある音を再生できるようになる。 The present invention is characterized in that the transfer rate of the digital musical tone signal output by the effect circuit of the tone generator module is switched between when the tone generator module is used alone and when a plurality of tone generator modules are connected. According to this feature, a common output line can be used, the number of output lines can be reduced, and a thick sound can be reproduced.
本発明によれば、音源モジュールを単体で使用する場合と、複数接続して使用する場合とで、該音源モジュールのエフェクト回路が出力するデジタル楽音信号の転送レートを切替えるようにしたので、共通の出力ラインを使用することができるようになり、出力ラインの本数を低減できると共に、厚みのある音を再生できるようになる。 According to the present invention, the transfer rate of the digital musical tone signal output by the effect circuit of the tone generator module is switched between the case where the tone generator module is used alone and the case where a plurality of tone generator modules are connected. Output lines can be used, the number of output lines can be reduced, and a thick sound can be reproduced.
以下に、図面を参照して、本発明を詳細に説明する。図1は、本発明の一実施形態の構成を示すブロック図である。なお、このブロック図において、図12と同一の符号は、同一または同等物を示すので、説明を省略する。 Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention. In this block diagram, the same reference numerals as those in FIG.
図1において、ホストモジュール10aは、インピーダンスコンバータとしての働きをするアナログSW20(例えば、マルチプレクサ)、非同期シリアル通信部C21、バッファA22、バッファB23、バッファC24、およびバッファS25を有している。また、非同期シリアル通信部A18は、受信レジスタ18a、送信レジスタ18bを有し、非同期シリアル通信部Bは、受信レジスタ19a、送信レジスタ19bを有している。また、CDRドライバ26は、CDR駆動装置3の動作を制御する。ここに、該CDR駆動装置3は、CDに記憶されている演奏データ、波形データ、DSPプログラム、DSP係数などの高速転送データをCDから読み出して出力する。
In FIG. 1, the host module 10a includes an analog SW 20 (for example, a multiplexer), an asynchronous serial communication unit C21, a buffer A22, a buffer B23, a buffer C24, and a buffer S25 that function as an impedance converter. The asynchronous serial communication unit A18 includes a reception register 18a and a
該ホストモジュール10aに対して、音源モジュール30a,50aは最大4個(0〜3)接続できるが、図示では2個接続した例が示されている。これらの4個の音源モジュールは同一構成であるので、音源モジュール30aを代表に挙げて構成を説明すると、該音源モジュール30aは、波形メモリとしてRAM42を用いると共に、各DSP39からの出力線を共通線にして、発音モジュール70aに接続する点を除いて、図12の音源モジュール30と同一または同等である。
Up to four (0 to 3)
次に、発音モジュール70aは、例えば4音源時分割のデジタルミキサ81と、トータルエフェクトをかけるDSP82と、DAC(D/A変換器)83とを有し、該DAC83の出力はアンプ72で増幅されて、左右のスピーカ73L,73Rから放音される。前記DSP82は、プログラムメモリ84に蓄積されたDSPプログラムおよびホストモジュール10aから前記非同期シリアル通信部C21を経て送られてきて係数メモリ85に蓄積されるDSP係数を用いて、デジタルミキサ81の出力信号に、EQ(エコー)、リバーブなどの、トータルエフェクトをかける。
Next, the
次に、本実施形態の動作を、図2〜図4のフローチャートを参照して説明する。このフローチャートは、ホストCPU15のメインフローを示すものであり、主に、データの転送速度の制御を中心とする処理を示す。
Next, the operation of this embodiment will be described with reference to the flowcharts of FIGS. This flowchart shows the main flow of the
パワーオンされてホストCPU15の処理がスタートすると、ステップS1では、ホストCPU15、RAM13等のワークエリアがイニシャライズ(初期化)される。ステップS2では、非同期シリアル通信部A18における非同期シリアル通信Aの転送速度をMIDIレベル(すなわち、31.25Kボー)に設定し、通信A用割込みを許可する。これによって、ホストモジュール10aと外部MIDIとの割込み通信が可能になるが、該通信A用割込み処理の詳細は、図5を参照して後述する。ステップS3では、非同期シリアル通信部B19における非同期シリアル通信Bの転送速度をMIDIレベル(すなわち、31.25Kボー)に設定し、通信B用割込みを許可する。これによって、ホストモジュール10aと音源モジュール30a,50aあるいは発音モジュール70a間の割込み通信が可能になるが、該通信B用割込み処理の詳細は、図6を参照して後述する。
When the power is turned on and the processing of the
次に、ステップS4では、非同期シリアル通信B用のインピーダンスを最大(すなわち、MIDI×1倍用)に設定する。この設定は、非同期シリアル通信Bに使用されるデジタル信号は一般的に矩形波が使用されるために、回路のインピーダンス(CR時定数)を該デジタル信号の周期に適合する値にして、矩形波の角を丸くし、できるだけ不要な電磁波が放出されないようにするためであるが、詳細は、図7を参照して後述する。 Next, in step S4, the impedance for asynchronous serial communication B is set to the maximum (that is, for MIDI × 1). In this setting, since a rectangular wave is generally used for the digital signal used for the asynchronous serial communication B, the impedance (CR time constant) of the circuit is set to a value suitable for the period of the digital signal, and the rectangular wave is used. In order to prevent unnecessary electromagnetic waves from being emitted as much as possible, details will be described later with reference to FIG.
ステップS5では、音源モジュール0、1、2、3に対して、非同期シリアル通信Bの転送速度を、MIDI×8倍レベル(250Kボー)に変更する命令を送る。この命令は、前記MIDIレベルの最も遅い転送速度で送られる。続いて、ステップS6では、ホストCPU15は、非同期シリアル通信B用割込みを禁止した後、例えば10m秒遅延する。これは、音源モジュール0、1、2、3が、受信速度の切り替えに要する時間を確保するためであり、10m秒としたのは一例に過ぎない。ステップS6の遅延時間が経過すると、ステップS7に進み、非同期シリアル通信Bの転送速度を、MIDI×8倍レベル(250Kボー)に設定する。ステップS8では、非同期シリアル通信B用のインピーダンスを中の大きさ(すなわち、MIDI×8倍用)に設定する。このようにインピーダンスを中の大きさに設定する理由も、回路のCR時定数を矩形波の転送速度と適合させて、できるだけ不要な電磁波が発生しないようにするためであるが、詳細は、図7を参照して後述する。ステップS9では、図6で後述する通信B用割込みを許可する。以上で、ホストCPU15の初期化ルーチンは終わり、次に図3、図4のメインルーチンに進む。
In step S5, a command for changing the transfer rate of the asynchronous serial communication B to MIDI × 8 times level (250K baud) is sent to the
図3のステップS10では、ホストCPU15は、パネルSW/表示部17に対して、パネルSWのスキャン検出と、それに対応した表示処理を行う。次いで、ステップS11では、鍵盤スキャナ部12に対して電子楽器本体1の鍵盤をスキャンする指令を出力する。ステップS12では、キーイベントがあったか否かの判断を行い、キーイベントがあった場合にはステップS13に進んで該キーイベントをバッファA22に入れ、ステップS14では該キーイベントをバッファB23に入れる。前記キーイベントがなかった場合、あるいは前記キーイベントをバッファA,Bに入れた後に、ステップS15に進んで、前記CDRドライバ26にて、CDに記憶されている演奏データ、波形データ、DSPプログラム、DSP係数等のデータを読み出す。ステップS16では、該CDから読み出したデータがあるかないかの判断を行い、該判断が肯定の時にはステップ17に進んで、ステップS15で読み出したデータが、波形データ、DSPプログラム、DSP係数等の高速転送データであるか否かの判断がなされる。そして、高速転送データである場合には、ステップS18に進む。一方、前記ステップS16の判断が否定の時には、図4のステップS33に進み、ステップS17の判断が否定の時には、ステップS32に進む。
In step S10 of FIG. 3, the
前記ステップS18では、前記バッファB23が空になるまで待機する。ステップS19では、音源モジュール0、1、2、3に対して、非同期シリアル通信Bの転送速度を、MIDI×32倍レベル(1Mボー)に変更する命令を送る。この命令は、前記MIDI×8レベルの中速の転送速度で送られる。続いて、ステップS20では、ホストCPU15は、非同期シリアル通信B用割込みを禁止した後、例えば10m秒遅延する。ステップS21では、非同期シリアル通信Bの転送速度を、MIDI×32倍レベル(1Mボー)に設定する。ステップS22では、非同期シリアル通信B用のインピーダンスを最小の大きさ(すなわち、MIDI×32倍用)に設定する。次いで、ステップS23に進み通信B用割込みを許可する。
In step S18, the process waits until the buffer B23 becomes empty. In step S19, a command to change the transfer rate of the asynchronous serial communication B to MIDI × 32 times level (1M baud) is sent to the
次に、図4のステップS24に進んで、高速転送データを指定の音源モジュールに、前記1Mボーで高速転送する。例えば、波形データは波形メモリ42に、DSPプログラムはDSP用プログラムメモリ40aまたは84へ、またDSP係数は係数メモリ40bまたは85に転送される。例えば、エコー、リザーブに関するDSP係数は係数メモリ85に転送され、これら以外の残響、コーラス、アンサンブル等のDSP係数は係数メモリ40bに転送される。なお、ここでは、ホストCPU15は、バッファBは使わないで、データ転送に専念する。ステップS25では、全データの転送が終了したか否かの判断がなされ、この判断が否定の時には、ステップS24に戻って、その動作を繰り返す。
Next, the process proceeds to step S24 in FIG. 4, and the high-speed transfer data is transferred at high speed to the designated sound source module at the 1M baud. For example, the waveform data is transferred to the
高速転送データの転送が終了すると、通常の中速の転送速度に戻るために、ステップS26の処理を行う。ステップS26では、音源モジュール0、1、2、3に対し、非同期シリアル通信Bの転送速度をMIDI×8倍レベル(250Kボー)に変更する命令を、各音源モジュールに送る。ステップS27では、通信B用割込みを禁止した後、例えば10m秒遅延する。ステップS28では、再度非同期シリアル通信Bの転送速度を、MIDI×8倍レベル(250Kボー)に設定する。ステップS30では、非同期シリアル通信B用のインピーダンスを中の大きさ(すなわち、MIDI×8倍用)に設定する。その後、ステップS30で、通信B用割込みを許可する。
When the transfer of the high-speed transfer data is completed, the process of step S26 is performed in order to return to the normal medium transfer speed. In step S26, an instruction to change the transfer rate of the asynchronous serial communication B to MIDI × 8 times level (250K baud) is sent to the
次に、前記ステップS17の判断が否定の時には、ステップS32に進んで、中速転送データ、例えば自動演奏データ(ソングファイル)をバッファS25へ記憶する。また、前記ステップS16の判断が否定の時、またはステップS30またはS32の処理の後に、ステップS33に進んで、自動演奏中であるか否かの判断がなされる。この判断が肯定の時には、ステップS34に進んで、読み出すべきタイミングの演奏データであるか否かの判断がなされる。この判断が肯定の時には、ステップS35に進み、キーイベント、音色イベント、音量イベントなどの演奏データがバッファS25から読み出され、バッファB23に入れられる。バッファB23に入れられたデータは、通信B用割込みにより非同期シリアル通信部B19から、音源モジュールに転送される。その後、図3のステップS10に戻って、該ステップS10以降の処理が繰り返される。 Next, when the determination in step S17 is negative, the process proceeds to step S32, and medium speed transfer data, for example, automatic performance data (song file) is stored in the buffer S25. When the determination at step S16 is negative, or after the processing at step S30 or S32, the process proceeds to step S33 to determine whether or not automatic performance is being performed. When this determination is affirmative, the process proceeds to step S34 to determine whether or not the performance data is to be read out. If the determination is affirmative, the process proceeds to step S35, and performance data such as a key event, a tone color event, and a volume event is read from the buffer S25 and stored in the buffer B23. The data stored in the buffer B23 is transferred from the asynchronous serial communication unit B19 to the tone generator module by the communication B interrupt. Then, it returns to step S10 of FIG. 3, and the process after this step S10 is repeated.
次に、前記通信A用割込み処理の一例を、図5のフローチャートを参照して説明する。ステップS51では、受信データがあるか否かの判断がなされ、この判断が肯定の場合には、ステップS52に進んで、非同期シリアル通信Aの受信レジスタ18aの内容が、バッファB23に格納される。ステップS53では、バッファAに未転送のデータがあるか否かの判断がなされ、この判断が肯定の時には、ステップS54に進んで、未転送のデータを1つ読み出し、非同期シリアル通信Aの送信レジスタ18bに書込む。その後、リターンする。この動作により、非同期シリアル通信部A18と外部MIDIとの間で、データの送受信が行われる。 Next, an example of the communication A interrupt process will be described with reference to the flowchart of FIG. In step S51, it is determined whether or not there is reception data. If the determination is affirmative, the process proceeds to step S52, and the contents of the reception register 18a of the asynchronous serial communication A are stored in the buffer B23. In step S53, it is determined whether or not there is untransferred data in the buffer A. If this determination is affirmative, the process proceeds to step S54, where one untransferred data is read and the transmission register of the asynchronous serial communication A is read. Write to 18b. Then return. With this operation, data is transmitted and received between the asynchronous serial communication unit A18 and the external MIDI.
次に、前記通信B用割込み処理の一例を、図6のフローチャートを参照して説明する。ステップS61では、受信データがあるか否かの判断がなされる。この判断が肯定の場合には、ステップS62に進んで、非同期シリアル通信Bの受信レジスタ19aの内容が、バッファC24に格納される。ステップS63では、バッファBに未転送のデータがあるか否かの判断がなされ、この判断が肯定の時には、ステップS64に進んで、未転送のデータを1つ読み出し、非同期シリアル通信Bの送信レジスタ19bに書込む。その後、リターンする。この動作により、ホストモジュール10aの非同期シリアル通信部B19と音源モジュール30a、50aの非同期シリアル通信部B32との間で、データの送受信が行われる。また、前記バッファBに格納されているデータが、非同期シリアル通信部A18と外部MIDIとの間の通信で受信された外部MIDIのデータであった場合には、この通信B用割込み処理により、外部MIDIデータが、音源モジュール30a、50aへ送信されることになる。
Next, an example of the communication B interrupt process will be described with reference to the flowchart of FIG. In step S61, it is determined whether there is received data. If this determination is affirmative, the process proceeds to step S62, and the contents of the reception register 19a of the asynchronous serial communication B are stored in the buffer C24. In step S63, it is determined whether or not there is untransferred data in the buffer B. If this determination is affirmative, the process proceeds to step S64, where one untransferred data is read and the asynchronous serial communication B transmission register is read. Write to 19b. Then return. With this operation, data is transmitted and received between the asynchronous serial communication unit B19 of the host module 10a and the asynchronous serial communication unit B32 of the
次に、図7を参照して、前記ステップS4、S8、S22において、それぞれ、非同期シリアル通信B用のインピーダンスを最大、中、最小に設定する理由を説明する。 Next, with reference to FIG. 7, the reason why the impedance for the asynchronous serial communication B is set to the maximum, middle, and minimum in the steps S4, S8, and S22, respectively, will be described.
電子楽器に電源投入直後、または音源モジュールを単体で利用している時には、同図(a) に示されているように、非同期シリアル通信Bの転送速度は、31.25Kボー(Kビット/秒)であり、矩形波信号の一周期は大きい。そこで、前記アナログSW20でインピーダンスを最大(MIDI×1倍用)にする。そうすると、CR時定数1が大きくなり、矩形波信号の角の丸みが大きくなる。
As soon as the electronic musical instrument is turned on, or when the sound module is used alone, the transfer rate of asynchronous serial communication B is 31.25 Kbaud (Kbit / sec) as shown in FIG. ) And one period of the rectangular wave signal is large. Therefore, the
次に、電子楽器の通常動作時には、演奏者が遅れを感じないレベルの転送速度、すなわち非同期シリアル通信Bの転送速度は、250Kボー(Kビット/秒)とされる。これは、ホストCPU15が、外部MIDIからの情報の他に、鍵盤からの操作情報(キーオン、オフデータ)も、音源モジュール30a、50aに送る必要があるためである。この時、矩形波信号の一周期は中程度の大きさになるので、前記アナログSW20でインピーダンスを中(MIDI×8倍用)にする。そうすると、CR時定数2が中程度の大きさになり、矩形波信号の角が丸くなって、ホストモジュール10aと音源モジュール間の通信線26等から不要な電磁波が放出されるのが抑制される。
Next, during the normal operation of the electronic musical instrument, the transfer speed at which the performer does not feel a delay, that is, the transfer speed of the asynchronous serial communication B is set to 250 Kbaud (K bits / second). This is because the
次に、高速データ転送時には、非同期シリアル通信Bの転送速度は、1Mボー(Mビット/秒)にされる。これは、ホストCPUから、多量の波形データを音源モジュールの波形メモリ42に転送する時、あるいはホストCPU15からエフェクト回路を構成するDSP39に対して効果プログラムや係数データを素早く転送したい時にのみ、該高速転送速度にされる。この高速転送により、演奏者の待ち時間が短くなる。また、前記アナログSW20でインピーダンスを最大(MIDI×32倍用)にすることにより、CR時定数3が最大の大きさになり、電磁波の発生を最小限に抑えることができるようになる。
Next, at the time of high-speed data transfer, the transfer rate of the asynchronous serial communication B is set to 1M baud (M bits / second). This is only when the large amount of waveform data is transferred from the host CPU to the
以上のように、本実施形態によれば、イニシャライズ時はデータの転送速度を低速のMIDIレベル(すなわち、31.25Kボー)に、またインピーダンスを最小のMIDI×1倍用に設定し、演奏データ等のデータの転送時には中速のMIDI×8倍レベル(250Kボー)に、またインピーダンスを中の大きさ(すなわち、MIDI×8倍用)に設定し、波形データ、DSPプログラム等の転送時には高速のMIDI×32倍レベル(1Mボー)に、またインピーダンスを最大の大きさ(すなわち、MIDI×32倍用)に設定するようにしたので、低速および中速の転送速度で利用する一般ユーザは勿論、高速の転送速度をも使用するプロまたはプロに近いユーザにも十分に使用されることのできる電子楽器を提供できるようになる。 As described above, according to the present embodiment, at the time of initialization, the data transfer speed is set to a low MIDI level (that is, 31.25K baud), the impedance is set to the minimum MIDI × 1 time, and the performance data is set. When transferring data such as medium speed MIDI × 8 times level (250K baud) and impedance is set to medium size (ie for MIDI × 8 times), high speed when transferring waveform data, DSP programs, etc. MIDI × 32 times level (1M baud) and the maximum impedance (that is, for MIDI × 32 times) is set, so of course general users who use low and medium transfer rates Therefore, it is possible to provide an electronic musical instrument that can be used sufficiently even by a professional or a near-professional user who also uses a high transfer rate.
次に、前記音源モジュール30a、50a等の音源CPU34の機能を、図8のフローチャートを参照して説明する。該音源モジュールに電源が投入されてパワーオンになると、ステップS81に進んで、音源CPUのワークエリアがイニシャライズされる。ステップS82では、楽音発生回路38をクリアし、非発音状態とされる。ステップS83では、自ボードの音源モジュール番号、すなわちモジュールNo.設定部33に設定されている番号(=TG.NO)を取込む。ステップS84では、TG.NO=111B であるか否かの判断がされる。ここにBはバイナリ(二進数)を表す。また111B は、単独で使用される音源モジュール(シングル音源モード)を表し、TG.NO=000B 〜011B の場合は、複数で使用される音源モジュール(マルチ音源モード)を表す。
Next, functions of the
そこで、前記ステップS84の判断が肯定になるとステップS85に進んで、自ボードのエフェクト回路39の出力をシングル音源モードとする。一方、該判断が否定のときには、ステップS86に進んで、自ボードのエフェクト回路39の出力をマルチ音源モードとし、自ボード用のタイムスロットを設定する。なお、該自ボード用のタイムスロットを設定する処理の詳細は、図11にて後述する。 ステップS87では、前記番号TG.NOが000B であるか否かの判断がなされる。番号TG.NOが000B の音源モジュールは、マルチ音源モードの場合、他の音源モジュールの基準となるCLKを発生するから、ステップS88に進んで、自ボードからLRCKおよびCK(クロック)を出力し、それと合わせてDAT(データ)を出力できるようにする。一方、ステップS87の判断が否定の場合、すなわちTG.NO=001B 〜011B の場合には、ステップS89に進む。ステップS89では、これらのTG.NOの音源モジュールは、TG.NO=000B のボードから、LRCK、CKを入力し、それに合わせてDAT(データ)を出力可能にする。
Therefore, if the determination in step S84 becomes affirmative, the process proceeds to step S85, and the output of the
ステップS90では、非同期シリアル通信Bの転送速度をMIDIレベル(31.25ボー)に設定し、通信B用割込みを許可する。該通信B用割込みの詳細は、図10を参照して後述する。次いで、ステップS91に進み、通信B用転送レートレジスタ(以下、TGRATEと記す)を1にセット、すなわちイニシャライズする。以上が、音源CPUのイニシャラズ処理であり、以後メインルーチンに入る。 In step S90, the transfer rate of the asynchronous serial communication B is set to the MIDI level (31.25 baud), and the communication B interrupt is permitted. Details of the communication B interrupt will be described later with reference to FIG. In step S91, the communication B transfer rate register (hereinafter referred to as TGRATE) is set to 1, that is, initialized. The above is the initialization processing of the sound source CPU, and the main routine is entered thereafter.
ステップS92では、TG.NO=111B であるか否かの判断がなされ、この判断が肯定の場合、すなわちシングル音源モードの場合には、ステップS93に進んで、パネルSW43のスキャン検出、およびそれに対応した表示処理を行う。なお、音源モジュールのパネルSW/表示部43から、音色設定や音量調節が可能である。次に、ステップS94で、TGRATE=3であるか否かの判断がなされ、この判断が肯定であれば、ステップS95に進んで、高速転送処理に移る。TGRATE=3の意味については、図10で後述する。そして、あるバッファTGから読み出した内容を、波形メモリ42あるいはDSPプログフラム40a、DSP係数メモリ40bの書込みポインタの示すアドレスに転送して書込む。なお、この高速転送処理の間は、発音モジュール70aにおける発音を停止する。
In step S92, TG. It is determined whether or not NO = 111B. If this determination is affirmative, that is, in the single sound source mode, the process proceeds to step S93 to perform scan detection of the panel SW43 and display processing corresponding thereto. Note that tone color setting and volume adjustment are possible from the panel SW /
一方、ステップS94の判断が否定の時、すなわちTGRATE=1または2の時には、図9のステップS96に進んで、前記バッファTGから1個の内容(制御データ)を読み出す。次いで、ステップS97では、該制御データがキーオンデータであるか否かの判断がなされ、この判断が肯定の場合にはステップS98に進んで、キーアサイナにより発音するチャネルchを決定し、このチャネルchを用いて発音を開始する。 On the other hand, when the determination in step S94 is negative, that is, when TGRATE = 1 or 2, the process proceeds to step S96 in FIG. 9, and one content (control data) is read from the buffer TG. Next, in step S97, it is determined whether or not the control data is key-on data. If this determination is affirmative, the process proceeds to step S98 to determine a channel ch to be generated by the key assigner, Use to start pronunciation.
ステップS97でキーオンデータと判断されなかった場合には、ステップS99に進んでキーオフデータであるか否かの判断がなされ、この判断が肯定の時にはステップS100に進んで、キーオフされた発音chを検索し、そのchを消音(リリース状態に)する。 If the key-on data is not determined in step S97, the process proceeds to step S99 to determine whether the data is key-off data. If the determination is affirmative, the process proceeds to step S100 to search for a key-off pronunciation channel. And mute the channel (release state).
キーオフデータでもなかった場合(ステップS99の判断が否定)には、ステップS101に進んで、その他の楽音発生回路用のデータ(例えば、ボリューム、音色データ等)であるか否かの判断がなされる。この判断が肯定の時には、ステップS102に進んで、該データを楽音発生回路38に書込む。ステップS101の判断がさらに否定の時には、ステップS103に進んで、DSP用のデータ(リバーブ、残響等の係数)であるか否かの判断がなされる。この判断が肯定の時には、ステップS104に進んで、該データをエフェクト回路39の係数メモリへ書込む。一方、該ステップS103の判断が否定の時には、ステップS105に進んで、その他の処理が行われる。前記ステップS104またはS105の処理が終わると、ステップS92に戻り、該ステップS92以下の処理が繰り返される。
If it is not key-off data (determination in step S99 is negative), the process proceeds to step S101, where it is determined whether the data is for other musical tone generation circuits (for example, volume, tone color data, etc.). . When this determination is affirmative, the process proceeds to step S102, and the data is written into the
次に、図10のフローチャートを参照して、音源CPU34の通信B用割込み処理を説明する。
Next, the communication B interrupt process of the
ステップS110では、受信データがあるか否かの判断がなされ、受信データがあった場合にはステップS111に進んで、非同期シリアル通信Bの転送速度が変更されたか否かの判断がなされる。この判断が肯定になった場合には、ステップS112に進んで、前記バッファTGに残っている内容を処理して、空にする。ステップS113では、前記転送速度の変更が、「MIDI×16」命令であるか否かの判断をする。この判断が肯定の時には、ステップS114に進んで、楽音発生回路38をクリアし、強制的に非発音状態とする。すなわち、発音中であっても、非発音状態にする。ステップS115では、非同期シリアル通信Bの転送速度を、MIDI×32(=1Mボー)に変更する。続いて、ステップS116に進み、通信B用転送レートレジスタ(TGRATE)に“3”をセットする。
In step S110, it is determined whether there is received data. If there is received data, the process proceeds to step S111, where it is determined whether the transfer rate of the asynchronous serial communication B has been changed. If this determination is affirmative, the process proceeds to step S112, where the contents remaining in the buffer TG are processed and emptied. In step S113, it is determined whether or not the transfer rate change is a “MIDI × 16” command. When this determination is affirmative, the routine proceeds to step S114, where the musical
一方、前記ステップS113の判断が否定の時には、ステップS117に進んで、「MIDI×8」命令であるか否かの判断をする。この判断が肯定の時には、ステップS118に進んで、非同期シリアル通信Bの転送速度を、MIDI×8(=250Kボー)に変更する。続いて、ステップS119に進み、通信B用転送レートレジスタ(TGRATE)に“2”をセットする。 On the other hand, if the determination in step S113 is negative, the process proceeds to step S117 to determine whether the instruction is a “MIDI × 8” instruction. When this determination is affirmative, the process proceeds to step S118, and the transfer rate of the asynchronous serial communication B is changed to MIDI × 8 (= 250K baud). In step S119, “2” is set in the transfer rate register for communication B (TGRATE).
さらに、前記ステップS117の判断が否定の時には、ステップS120に進んで、非同期シリアル通信Bの転送速度を、MIDI×1(=31.25Kボー)に変更する。続いて、ステップS121に進み、通信B用転送レートレジスタ(TGRATE)に“1”をセットする。 Further, when the determination in step S117 is negative, the process proceeds to step S120, and the transfer rate of the asynchronous serial communication B is changed to MIDI × 1 (= 31.25K baud). In step S121, “1” is set in the communication B transfer rate register (TGRATE).
前記ステップS116、S119、またはS121の後は、ステップS122に進んで、各転送レートで受信したデータを、バッファTGに格納する。ステップS123では、割込み許可を行い、リターンする。 After step S116, S119, or S121, the process proceeds to step S122, and the data received at each transfer rate is stored in the buffer TG. In step S123, an interrupt is permitted and the process returns.
図11は、音源モジュールのエフェクト回路39の出力信号速度を示すタイミングチャートであり、同図(a) はシングル音源モード(1音源時分割)時の出力信号速度、同図(b) はマルチ音源モード(4音源時分割)時の出力信号速度を示す。
FIG. 11 is a timing chart showing the output signal speed of the
同図(a) に示されているように、シングル音源モードでは、LRCK(クロック)は44.1KHzであり、LおよびR用データ転送タイミングのそれぞれの間に、24ビットのL用データ(DAT)およびR用データが転送される。したがって、該シングル音源モードにおけるデータ転送CKは、1.06MHzになる。 As shown in FIG. 9A, in the single sound source mode, LRCK (clock) is 44.1 KHz, and 24-bit L data (DAT) is used between the L and R data transfer timings. ) And R data are transferred. Therefore, the data transfer CK in the single sound source mode is 1.06 MHz.
一方、マルチ音源モード(4音源時分割)では、同図(b) に示されているように、前記LおよびR用データ転送タイミングのそれぞれの間に、4音源の24ビットのL用データ(DAT)およびR用データが転送される。このため、該マルチ音源モード(4音源時分割)におけるデータ転送CKは、4.23MHz、すなわちシングル音源モードの時の4倍になる。このため、楽音データの転送速度も、シングル音源モードの時の4倍になる。なお、該マルチ音源モード(4音源時分割)では、前記ステップS86〜S89に示したように、TG.NO=000B のボードがLRCK、CKを生成し、他のボード(TG.NO=001B 〜011B )は該000B のボードが生成したLRCK、CKを入力するから、各ボードから出力されるデータ(DAT)は同一のクロックと同期して出力されることになる。 On the other hand, in the multi-sound source mode (4 sound source time division), as shown in FIG. 4B, during each of the L and R data transfer timings, 24-bit L data (4 bits of 4 sound sources) DAT) and R data are transferred. For this reason, the data transfer CK in the multi sound source mode (four sound source time division) is 4.23 MHz, that is, four times that in the single sound source mode. For this reason, the transfer speed of the musical sound data is also four times that in the single sound source mode. In the multi-sound source mode (four sound source time division), as shown in steps S86 to S89, TG. Since the board of NO = 000B generates LRCK and CK, and the other boards (TG.NO = 001B to 011B) input the LRCK and CK generated by the board of 000B, the data (DAT) output from each board ) Is output in synchronization with the same clock.
したがって、本実施形態によれば、マルチ音源モード(4音源時分割)には、4個の音源モジュールから出力されるCLKとDATは、シングル音源モード時の4倍の転送速度で、かつ共通の出力ラインを経て、発音モジュール70a(図1参照)のデジタルミキサー81のCLK端子とDAT端子に転送され、該4個の音源モジュールから出力されたデータは1つにミキシングされる。該ミキシングされたデータは、DSP82でエフェクトをかけられ、DAC83に出力される。このように、4個の音源モジュールから出力された楽音データをミキシングすることにより、厚みのある音を再生できるようになる。また、TG.NOが001B 〜011B のボードのクロックCLKをTG.NOが000B のボードで生成されたものを使用し、シングル音源モード時の4倍の転送速度で転送するようにしたので、各音源モジュールのエフェクト回路39と発音モジュール70aのデジタルミキサー81とを結ぶ出力ラインの本数が図1のように削減され、またデジタルミキサー81の入力端子はCLKとDATの2個でよくなる。なお、前記の説明では、4個の音源モジュールを対象としたが、本発明はこれに限定されず、2個または3個の音源モジュールであってもよい。
Therefore, according to the present embodiment, in the multi sound source mode (four sound source time division), CLK and DAT output from the four sound source modules have a transfer rate four times that in the single sound source mode and are common. Via the output line, the data is transferred to the CLK terminal and the DAT terminal of the
1…電子楽器本体、3…CDR駆動装置、10a…ホストモジュール、15…ホストCPU、18…非同期シリアル通信部A、19…非同期シリアル通信部B、30a…音源モジュール、32…非同期シリアル通信部B、34…音源CPU、38…楽音発生回路、39…DSP(エフェクト回路)、70a…発音モジュール、81…デジタルミキサー、82…DSP(トータルエフェクト回路)。
DESCRIPTION OF
Claims (2)
前記デジタルのシリアルデータの1サンプル時間をN分割する分割手段と、
前記分割されたサンプル時間のいずれかに前記音楽モジュールのデジタルのシリアルデータを送出する送出手段とを備え、
前記音源モジュールを単体で使用するシングル音源モードの場合と、複数接続して使用するマルチ音源モードの場合とで、該音源モジュールが前記発音モジュールに対して出力するデジタル楽音信号の転送レートを切り替えるようにしたことを特徴とする電子楽器の通信装置。 1 or N (N is an integer of 2 or more) sound source modules that receive control data, synthesize the corresponding musical sounds, and send the musical sounds as digital serial data ; and the musical sounds from the 1 or N sound source modules In an electronic musical instrument communication device comprising at least a sound generation module that receives digital serial data and mixes and synthesizes each of the sound source modules when the sound source module is N ,
Dividing means for dividing one sample time of the digital serial data into N;
Sending means for sending digital serial data of the music module at any of the divided sample times;
The transmission rate of the digital musical sound signal that the sound module outputs to the sound module is switched between the single sound source mode in which the sound module is used alone and the multi sound source mode in which a plurality of the sound modules are connected. An electronic musical instrument communication device characterized by the above.
前記マルチ音源モードの場合、前記音源モジュールから出力されたデジタル楽音信号をミキシング合成する合成手段と、
該合成手段から出力されたデジタル楽音信号にエフェクトをかける手段とを具備したことを特徴とする請求項1に記載の電子楽器の通信装置。 The pronunciation module is
In the case of the multi-sound source mode, a synthesis unit that mixes and synthesizes the digital musical sound signal output from the sound source module;
2. The electronic musical instrument communication apparatus according to claim 1, further comprising means for applying an effect to the digital musical tone signal output from the synthesizing means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009004517A JP4766575B2 (en) | 2009-01-13 | 2009-01-13 | Electronic musical instrument communication device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009004517A JP4766575B2 (en) | 2009-01-13 | 2009-01-13 | Electronic musical instrument communication device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000307144A Division JP2002116756A (en) | 2000-10-06 | 2000-10-06 | Communication equipment of electronic instrument |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009086689A JP2009086689A (en) | 2009-04-23 |
JP4766575B2 true JP4766575B2 (en) | 2011-09-07 |
Family
ID=40660098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009004517A Expired - Fee Related JP4766575B2 (en) | 2009-01-13 | 2009-01-13 | Electronic musical instrument communication device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4766575B2 (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62222298A (en) * | 1987-02-23 | 1987-09-30 | ヤマハ株式会社 | Musical sound signal generator |
JP3444947B2 (en) * | 1993-12-27 | 2003-09-08 | ヤマハ株式会社 | Music signal generator |
JP3075186B2 (en) * | 1996-07-29 | 2000-08-07 | 日本電気株式会社 | Extended MIDI system |
JPH10224577A (en) * | 1997-02-05 | 1998-08-21 | Fuji Xerox Co Ltd | Picture processor |
JP3384290B2 (en) * | 1997-07-25 | 2003-03-10 | ヤマハ株式会社 | Sound source device |
JPH11284588A (en) * | 1998-03-27 | 1999-10-15 | Yamaha Corp | Communication device, communication method and recording medium program with program recorded therein |
JP3679933B2 (en) * | 1998-09-21 | 2005-08-03 | 株式会社東芝 | Communication terminal device and communication speed switching method thereof |
-
2009
- 2009-01-13 JP JP2009004517A patent/JP4766575B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009086689A (en) | 2009-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0747878B1 (en) | Music system, tone generator and musical tone-synthesizing method | |
JP6388048B1 (en) | Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument | |
JPH05188946A (en) | Sound source device | |
CN108630178B (en) | Musical tone generating apparatus, musical tone generating method, recording medium, and electronic musical instrument | |
JP4141646B2 (en) | Audio system, volume setting method and program | |
JP3707300B2 (en) | Expansion board for musical sound generator | |
US8373055B2 (en) | Apparatus, method and computer program for switching musical tone output | |
JP4766575B2 (en) | Electronic musical instrument communication device | |
JP3223756B2 (en) | Music systems and electronic musical instruments | |
JPH11296167A (en) | Sound reproducing device and recording medium | |
JP2002116756A (en) | Communication equipment of electronic instrument | |
JP3152156B2 (en) | Music sound generation system, music sound generation apparatus and music sound generation method | |
JP7130185B2 (en) | Electronic musical instrument, electronic musical instrument control method and control program | |
JP7159583B2 (en) | Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument | |
JP2764989B2 (en) | Panning control device | |
US6414232B2 (en) | Tone generation method and apparatus based on software | |
JP3141789B2 (en) | Sound source system using computer software | |
JP6851578B2 (en) | Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument | |
JP3442232B2 (en) | Electronic musical instrument | |
JP2002023740A (en) | Music data processor | |
JP3687317B2 (en) | Music generator | |
JP2940322B2 (en) | Electronic musical instrument | |
JPH0934455A (en) | Electronic musical instrument | |
JP3313050B2 (en) | Karaoke apparatus and karaoke reproducing method | |
JP3309928B2 (en) | Karaoke device and communication karaoke system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090113 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091203 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100721 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100916 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110608 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110609 |
|
R150 | Certificate of patent (=grant) or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140624 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |