JP2007256375A - Musical sound generation system - Google Patents

Musical sound generation system Download PDF

Info

Publication number
JP2007256375A
JP2007256375A JP2006077533A JP2006077533A JP2007256375A JP 2007256375 A JP2007256375 A JP 2007256375A JP 2006077533 A JP2006077533 A JP 2006077533A JP 2006077533 A JP2006077533 A JP 2006077533A JP 2007256375 A JP2007256375 A JP 2007256375A
Authority
JP
Japan
Prior art keywords
processing
connection
data
processing device
network
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
JP2006077533A
Other languages
Japanese (ja)
Other versions
JP4207970B2 (en
Inventor
Shuzo Karakawa
周三 唐川
Hiroyuki Oba
弘行 大場
Eiichiro Aoki
栄一郎 青木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2006077533A priority Critical patent/JP4207970B2/en
Priority to US11/725,214 priority patent/US7592531B2/en
Publication of JP2007256375A publication Critical patent/JP2007256375A/en
Application granted granted Critical
Publication of JP4207970B2 publication Critical patent/JP4207970B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To generate a sound with a requested timbre as much as possible without requiring any recording medium. <P>SOLUTION: Hubs 10 to 40 are installed in rooms 1 to 4 to structure a star type LAN, and devices related to musical sound generation are connected to the hubs 10 to 40 respectively. On an internal network, a KE (keyboard) 14 is logically connected to an input side of a TG (sound source) 12, and an SP2 (speaker) 21 and an SP1 (speaker) 15 are logically connected to an output side of the TG (sound source) 12 to structure a musical sound generation system. Each device can acquire a requested voice file from another client through the internal network by referring to a device table as a correspondence table of identification information including voice file providing information. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、ネットワークに接続されている複数の処理装置を用いて構成される楽音発生システムに関する。   The present invention relates to a musical sound generating system configured using a plurality of processing devices connected to a network.

従来、複数の電子楽器を互いに接続して電子楽器ネットワークシステムを構成している、いわゆるMIDI(Musical Instrument Digital Interface)が知られている。このMIDIは、自動演奏データ等を伝送するための共通規格であり、ネットワーク上に分散した複数の楽器の内のあるものから他のものにキーコード等の演奏データを一方向に伝送することを可能としている。MIDIでは、MIDIメッセージがシリアルデータであると共に、電子楽器間を接続しているMIDIラインは各機器を直列に接続するようそれぞれ布線されているため、各機器間を接続したMIDIラインがかなりの占有場所を取るようになり、また、MIDIラインが誤って1か所でもはずれてしまうと、その先に信号が伝送されず発音が停止されてしまうようになる。さらには、一度接続をはずしてしまうと元に戻す配線作業が大変になってしまう。
そこで、ネットワークを用いる楽器システムとしてmLAN(music Local Area Network)が提唱されている。mLANは、IEEE1394を使ったデジタルオーディオ/MIDIデータの伝送技術であり、AV機器や電子楽器、コンピュータシステム間をIEEE1394インターフェイスで接続することにより、256チャンネル以上のデジタルオーディオデータやMIDIデータをやり取りすることができる。このmLANは、IEEE1394上でオーディオ/MIDIデータをやり取りするためのプロトコルである「IEC61833-6 Audio and Music Data Transmission Protocol」をベースにして、AV機器や電子楽器を制御したり、連携して動作するように制御するためのコマンドを定義している。このmLANにより、従来はアナログケーブルやMIDIケーブルなどを使って行われていた複雑な機器間の接続を、IEEE1394ケーブルのデイジーチェイン接続に置き換えることができ、機器間の接続を大幅に簡略化することができる。
Conventionally, a so-called MIDI (Musical Instrument Digital Interface) is known in which a plurality of electronic musical instruments are connected to each other to form an electronic musical instrument network system. This MIDI is a common standard for transmitting automatic performance data and the like, and transmitting performance data such as key codes in one direction from one of a plurality of musical instruments distributed on a network to another. It is possible. In MIDI, the MIDI message is serial data, and the MIDI lines connecting the electronic musical instruments are wired to connect the devices in series. Therefore, the MIDI lines connecting the devices are quite large. If an occupied area is taken, and even one MIDI line is mistakenly disconnected, the signal is not transmitted and sound generation is stopped. Furthermore, once the connection is removed, the wiring work to restore it becomes difficult.
Therefore, mLAN (music Local Area Network) has been proposed as a musical instrument system using a network. mLAN is a digital audio / MIDI data transmission technology using IEEE 1394, and exchanges digital audio data and MIDI data of 256 channels or more by connecting AV equipment, electronic musical instruments, and computer systems with an IEEE 1394 interface. Can do. This mLAN is based on "IEC61833-6 Audio and Music Data Transmission Protocol", which is a protocol for exchanging audio / MIDI data on IEEE1394, and controls AV equipment and electronic musical instruments or operates in cooperation with each other. Commands to control are defined. By using this mLAN, it is possible to replace the complicated connection between devices, which was conventionally done using analog cables, MIDI cables, etc., with the daisy chain connection of the IEEE1394 cable, greatly simplifying the connection between devices. Can do.

ところで、従来の電子楽器においては要求された音色(ボイスファイル)をもっていない場合は関連する他の音色で代用して発音するようにしている(特許文献2参照)。また、従来の電子楽器において音色を記録した記録媒体(CD−ROMやフロッピディスク)を電子楽器に挿入して新たな音色を追加することも知られている(特許文献3参照)。
特許第3271493号公報 特開昭59−197090号公報 特開平 8−76752号公報
By the way, in the case of a conventional electronic musical instrument that does not have a required tone color (voice file), another related tone color is sounded instead (see Patent Document 2). It is also known to add a new timbre by inserting a recording medium (CD-ROM or floppy disk) on which a timbre is recorded in a conventional electronic musical instrument into the electronic musical instrument (see Patent Document 3).
Japanese Patent No. 3271493 Japanese Patent Application Laid-Open No. 59-197090 Japanese Patent Laid-Open No. 8-76752

しかしながら、mLANはデイジーチェーン接続であるため、新たな機器を任意の箇所に物理的に接続して論理的な接続設定を行うことは困難な作業を伴うという問題点があった。また、各機器を直列に接続するようそれぞれ布線されているため、各機器間を接続したラインがかなりの占有場所を取るようになる。さらに、ラインが誤って1か所でもはずれてしまうと、その先に信号が伝送されず発音が停止されてしまうようになり、さらには、一度接続をはずしてしまうと元に戻す配線作業が大変であるという問題点があった。
また、新たな装置を任意の箇所に接続することのできるネットワークとしてLAN(Local Area Network)が知られている。LANは、企業内ネットワークなど比較的限られたエリア内のコンピュータ・ネットワークであり、最近では一般家庭においても構築されるようになってきている。しかしながら、LANに直接接続できる音源や各種の楽音発生関連装置が存在せず、LANのような一般的なネットワークを用いた楽器システムを構築することができない。さらに、要求された音色をもっていない場合に関連する他の音色で代用して発音すると、代用であることから正確な音色での発音はできないという問題点があった。この場合、使用したい音色に応じて挿入する記録媒体を入れ替えるようにすると、入れ替える作業が必要になると共に、どの記録媒体にどの音色が記録されているかを覚えておく必要があり、記録媒体を入れ替える作業が煩わしいという問題点があった。
However, since the mLAN is a daisy chain connection, there is a problem that it is difficult to physically connect a new device to an arbitrary location and perform a logical connection setting. Further, since the respective devices are wired so as to be connected in series, the line connecting the devices takes a considerable occupied space. In addition, if the line is accidentally disconnected at one location, the signal will not be transmitted beyond that point and the sound will stop. Furthermore, once the connection is disconnected, the wiring work to restore it will be difficult. There was a problem that.
A LAN (Local Area Network) is known as a network that can connect a new device to an arbitrary location. A LAN is a computer network in a relatively limited area such as an in-company network, and has recently been constructed in ordinary homes. However, there is no sound source that can be directly connected to the LAN and various musical sound generation-related devices, and a musical instrument system using a general network such as a LAN cannot be constructed. Furthermore, there is a problem in that if the timbre is replaced with another timbre that does not have the required timbre, the timbre cannot be sounded accurately because it is a substitute. In this case, if the recording medium to be inserted is replaced according to the tone color to be used, it is necessary to replace the recording medium, and it is necessary to remember which tone color is recorded on which recording medium. There was a problem that the work was troublesome.

そこで、本発明はLANのような一般的なネットワークを利用して、音源や各種の楽音発生関連の装置として機能する処理装置をネットワーク上の任意の箇所へ物理的に接続して論理的な接続設定を簡単に行うことができると共に、記録媒体を必要とすることなく要求された音色で極力発音することのできる楽音発生システムを提供することを目的としている。   Therefore, the present invention uses a general network such as a LAN to physically connect a processing device functioning as a sound source or various musical tone generation related devices to any location on the network. It is an object of the present invention to provide a musical tone generation system that can be easily set and can generate a desired tone color as much as possible without requiring a recording medium.

上記目的を達成するために、本発明の楽音発生システムは、スター型のネットワークに接続されている複数の処理装置を用いて構成され、処理装置は実行されるプログラムに応じた楽音発生に関連する処理要素として機能するようにされており、各処理装置は、コンテンツファイルを提供できるかの情報が登録されているテーブルを参照することにより、他のクライアントから要求されたコンテンツファイルを取得するようにしたことを最も主要な特徴としている。   In order to achieve the above object, the tone generation system of the present invention is configured using a plurality of processing devices connected to a star-type network, and the processing devices are related to tone generation according to a program to be executed. It is configured to function as a processing element, and each processing device acquires a content file requested from another client by referring to a table in which information indicating whether the content file can be provided is registered. This is the most important feature.

本発明によれば、スター型のネットワークに接続されている複数の処理装置を用いて構成され、処理装置は実行されるプログラムに応じた楽音発生に関連する処理要素として機能するようにされており、各処理装置は、コンテンツファイルを提供できるかの情報が登録されているテーブルを参照することにより、他のクライアントから要求されたコンテンツファイルを取得するようにしたことから、LANのような一般的なネットワークを利用して、ネットワーク上の他のクライアントから要求された音色のファイルを取得することができるため、非常に高い確率で、指定された音色を設定することができるようになる。さらに、ネットワークへ新しい音色をもつクライアントを接続するだけで簡単に新たな音色を利用できるようになると共に、自機のテーブルを利用して音色の提供できるクライアントを絞り込めるので、ネットワークに接続されるクライアントの数が増加しても、迅速に目的のクライアントへアクセスして音色を取り込むことができるようになる。   According to the present invention, it is configured using a plurality of processing devices connected to a star-type network, and the processing device functions as a processing element related to musical tone generation according to a program to be executed. Each processing device acquires a content file requested from another client by referring to a table in which information indicating whether the content file can be provided is registered. Since a timbre file requested by another client on the network can be acquired using a simple network, a specified timbre can be set with a very high probability. In addition, you can easily use new tones simply by connecting clients with new tones to the network, and you can narrow down the clients that can provide tones using your own table, so you can connect to the network. Even if the number of clients increases, it becomes possible to quickly access the target client and capture the timbre.

本発明の実施例の楽音発生システムの構成を示すブロック図を図1に示す。
本発明にかかる楽音発生システムは、図1に示すように外部ネットワークに接続可能な内部ネットワークを備えている。内部ネットワークはイーサネット等のLANとされ、この内部ネットワークはルータ2と、ルータ2の複数のLAN端子にLANケーブルを介してそれぞれ接続されているハブ10,ハブ20,ハブ30,ハブ40を備え、部屋1,部屋2,部屋3,部屋4の4つの部屋にまたがって構築されるスター型のネットワークとされている。ルータ2のWAN端子はインターネット1に接続されており、インターネット1には他のネットワークに接続されているルータ3,ルータ4が接続されている。これにより、内部ネットワークはルータ2およびインターネット1を介してルータ3に接続されている他のネットワークやルータ4に接続されている他のネットワークに接続可能とされる。
FIG. 1 is a block diagram showing the configuration of a musical tone generation system according to an embodiment of the present invention.
The musical sound generating system according to the present invention includes an internal network that can be connected to an external network as shown in FIG. The internal network is a LAN such as Ethernet. The internal network includes a router 2 and a hub 10, a hub 20, a hub 30, and a hub 40 that are connected to a plurality of LAN terminals of the router 2 via LAN cables. It is a star-type network constructed across four rooms: room 1, room 2, room 3, and room 4. The WAN terminal of the router 2 is connected to the Internet 1, and the router 3 and the router 4 connected to other networks are connected to the Internet 1. As a result, the internal network can be connected to another network connected to the router 3 or another network connected to the router 4 via the router 2 and the Internet 1.

部屋1には、SV(サーバ)11,TG1(音源)12,TG2(音源)13,KB(鍵盤)14,SP1(スピーカ)15の各装置が設置されており、これらの装置にはネットワークアダプタが設けられてLAN装置とされている。部屋1に設けられたハブ10の上流のLAN端子はLANケーブルを介してルータ2のLAN端子に接続されており、ハブ10の下流の複数のLAN端子とSV(サーバ)11,TG1(音源)12,TG2(音源)13,KB(鍵盤)14,SP1(スピーカ)15にそれぞれ設けられているネットワークアダプタのLAN端子との間が、それぞれLANケーブルを介して接続されている。
また、部屋2には、SP2(スピーカ)21,DU(DSPユニット)22,MX(ミキサ)23,CR(コンテンツレコーダ)24の各装置が設置されており、これらの装置にはネットワークアダプタが設けられてLAN装置とされている。部屋2に設けられたハブ20の上流のLAN端子はLANケーブルを介してルータ2のLAN端子に接続されており、ハブ20の下流の複数のLAN端子とSP2(スピーカ)21,DU(DSPユニット)22,MX(ミキサ)23,CR(コンテンツレコーダ)24にそれぞれ設けられているネットワークアダプタのLAN端子との間が、それぞれLANケーブルを介して接続されている。
In the room 1, there are installed SV (server) 11, TG1 (sound source) 12, TG2 (sound source) 13, KB (keyboard) 14, and SP1 (speaker) 15, and these devices have network adapters. Is provided as a LAN device. The LAN terminal upstream of the hub 10 provided in the room 1 is connected to the LAN terminal of the router 2 via a LAN cable, and a plurality of LAN terminals downstream of the hub 10 and SV (server) 11 and TG1 (sound source). 12, TG2 (sound source) 13, KB (keyboard) 14, and SP1 (speaker) 15 are respectively connected to LAN terminals of network adapters via LAN cables.
In the room 2, SP2 (speaker) 21, DU (DSP unit) 22, MX (mixer) 23, and CR (content recorder) 24 are installed, and a network adapter is provided for these devices. LAN device. The LAN terminal upstream of the hub 20 provided in the room 2 is connected to the LAN terminal of the router 2 via a LAN cable, and a plurality of LAN terminals downstream of the hub 20 and SP2 (speakers) 21, DU (DSP unit). ) 22, MX (mixer) 23, and CR (content recorder) 24 are respectively connected to LAN terminals of network adapters via LAN cables.

さらに、部屋3には、AA(自動伴奏)31,MR(MIDIレコーダ)32,ED(エディタ)33,EF(エフェクタ)34,AR(オーディオレコーダ)35,SY(音源、鍵盤)36の各装置が設置されており、これらの装置にはネットワークアダプタが設けられてLAN装置とされている。部屋3に設けられたハブ30の上流のLAN端子はLANケーブルを介してルータ2のLAN端子に接続されており、ハブ30の下流の複数のLAN端子とAA(自動伴奏)31,MR(MIDIレコーダ)32,ED(エディタ)33,EF(エフェクタ)34,AR(オーディオレコーダ)35,SY(音源、鍵盤)36にそれぞれ設けられているネットワークアダプタのLAN端子との間が、それぞれLANケーブルを介して接続されている。
さらにまた、部屋4には、MC(マイク)41,CD(CDプレーヤ)42の各装置が設置されており、これらの装置にはネットワークアダプタが設けられてLAN装置とされている。部屋4に設けられたハブ40の上流のLAN端子はLANケーブルを介してルータ2のLAN端子に接続されており、ハブ40の下流の複数のLAN端子とMC(マイク)41,CD(CDプレーヤ)42にそれぞれ設けられているネットワークアダプタのLAN端子との間が、それぞれLANケーブルを介して接続されている。
Further, in the room 3, there are AA (automatic accompaniment) 31, MR (MIDI recorder) 32, ED (editor) 33, EF (effector) 34, AR (audio recorder) 35, and SY (sound source, keyboard) 36. These devices are provided with network adapters to be LAN devices. The LAN terminal upstream of the hub 30 provided in the room 3 is connected to the LAN terminal of the router 2 via a LAN cable, and a plurality of LAN terminals downstream of the hub 30 and AA (auto accompaniment) 31, MR (MIDI). Recorder) 32, ED (editor) 33, EF (effector) 34, AR (audio recorder) 35, and SY (sound source, keyboard) 36 are connected to LAN terminals of network adapters respectively. Connected through.
Furthermore, the room 4 is provided with devices of MC (microphone) 41 and CD (CD player) 42, and these devices are provided with network adapters to serve as LAN devices. The LAN terminal upstream of the hub 40 provided in the room 4 is connected to the LAN terminal of the router 2 via a LAN cable, and a plurality of LAN terminals downstream of the hub 40, MC (microphone) 41, CD (CD player). ) 42 are respectively connected to the LAN terminals of the network adapters provided via the LAN cables.

本発明の楽音発生システムにおける内部ネットワークに接続されている、部屋1ないし部屋4に設置されている各装置はDU(DSPユニット)22を除いて、CPU(Central Processing Unit)、RAM(Random Access Memory )、ROM(Read Only Memory)を少なくとも備え、各装置に対応するハードウェアを備える構成とされている。そして、装置名に対応するプログラムが実行されることにより、装置名の機能で動作するようになされている。このように、本発明における各装置はDU(DSPユニット)22を除いて、種々のプログラムを実行することのできる処理装置(コンピュータ)とされており、以下の記載においてはこの処理装置がプログラムを実行することにより達成される機能を処理要素と定義している。すなわち、部屋1に設置されるSV(サーバ)11,TG1(音源)12,TG2(音源)13,KB(鍵盤)14,SP1(スピーカ)15、部屋2に設置されるSP2(スピーカ)21,MX(ミキサ)23,CR(コンテンツレコーダ)24、部屋3に設置されるAA(自動伴奏)31,MR(MIDIレコーダ)32,ED(エディタ)33,EF(エフェクタ)34,AR(オーディオレコーダ)35,SY(音源、鍵盤)36、部屋4に設置されるMC(マイク)41,CD(CDプレーヤ)42は、全て処理要素であり処理装置が対応するプログラムを実行することにより、その処理要素として機能している。
SV(サーバ)11はクライアントコンピュータに対し、自身の持っている機能やデータを提供するコンピュータであり、クライアントコンピュータは上記した処理要素が機能している処理装置である。また、DU(DSPユニット)22は多数のDSPを備える処理装置により構成され、DSPがマイクロプログラムを実行することにより、ミキサ、エディタやエフェクタ等の処理要素として機能するようになる。すなわち、DU(DSPユニット)22はマイクロプログラムを選択して実行させることにより、機能する処理要素を切り替えることができる。
With the exception of the DU (DSP unit) 22, each device connected to the internal network in the musical sound generating system of the present invention is a CPU (Central Processing Unit), RAM (Random Access Memory). ), ROM (Read Only Memory) at least, and hardware corresponding to each device. Then, by executing a program corresponding to the device name, the device name is operated. As described above, each apparatus in the present invention is a processing apparatus (computer) that can execute various programs except for the DU (DSP unit) 22. In the following description, this processing apparatus executes a program. The functions achieved by executing are defined as processing elements. That is, SV (server) 11 installed in the room 1, TG1 (sound source) 12, TG2 (sound source) 13, KB (keyboard) 14, SP1 (speaker) 15, SP2 (speaker) 21 installed in the room 2, MX (mixer) 23, CR (content recorder) 24, AA (automatic accompaniment) 31 installed in room 3, MR (MIDI recorder) 32, ED (editor) 33, EF (effector) 34, AR (audio recorder) 35, SY (sound source, keyboard) 36, MC (microphone) 41 and CD (CD player) 42 installed in the room 4 are all processing elements, and the processing elements are executed by executing the corresponding programs. Is functioning as
The SV (server) 11 is a computer that provides its own functions and data to a client computer, and the client computer is a processing device in which the above processing elements are functioning. The DU (DSP unit) 22 is constituted by a processing device including a large number of DSPs, and the DSP functions as processing elements such as a mixer, an editor, and an effector by executing a microprogram. That is, the DU (DSP unit) 22 can switch the functioning processing element by selecting and executing a microprogram.

処理要素について具体的に説明すると、TG1(音源)12およびTG2(音源)13は、処理装置が音源プログラムを実行することにより音源要素として機能している。KB(鍵盤)14は、ハードウェアとしての鍵盤を備える処理装置が鍵盤プログラムを実行することにより鍵盤要素として機能している。SP1(スピーカ)15およびSP2(スピーカ)21は、ハードウェアとしてのスピーカを備える処理装置がスピーカプログラムを実行することによりスピーカ要素として機能している。MX(ミキサ)23は、処理装置がミキサプログラムを実行することによりミキサ要素として機能している。CR(コンテンツレコーダ)24は、大容量の記憶装置を備える処理装置がレコーダプログラムを実行することによりコンテンツレコーダ要素として機能している。AA(自動伴奏)31は、処理装置が自動伴奏プログラムを実行することにより自動伴奏要素として機能している。MR(MIDIレコーダ)32は、大容量の記憶装置を備える処理装置がレコーダプログラムを実行することによりMIDIレコーダ要素として機能している。ED(エディタ)33は、処理装置がエディタプログラムを実行することによりエディタ要素として機能している。EF(エフェクタ)34は、処理装置がエフェクタプログラムを実行することによりエフェクタ要素として機能している。AR(オーディオレコーダ)35は、大容量の記憶装置を備える処理装置がレコーダプログラムを実行することによりオーディオレコーダ要素として機能している。SY(音源、鍵盤)36は、ハードウェアとしての鍵盤を備える処理装置が音源プログラムと鍵盤プログラムを実行することにより音源要素および鍵盤要素の2つで機能している。MC(マイク)41は、ハードウェアとしてのマイクを備える処理装置がマイクプログラムを実行することによりマイク要素として機能している。CD(CDプレーヤ)42は、ハードウェアとしてのCDドライブを備える処理装置がプレーヤプログラムを実行することによりCDプレーヤ要素として機能している。
なお、SV(サーバ)11とDU(DSPユニット)22や上記した処理要素との間や処理要素同士の間で通信を行ってデータの授受を行うことができるが、ここではSV(サーバ)11と上記した処理要素とはTCP/IP(Transmission Control Protocol/Internet Protocol)をサポートしており、TCP/IPプロトコルを用いてデータ授受の通信を行うようにしている。
The processing elements will be specifically described. The TG1 (sound source) 12 and the TG2 (sound source) 13 function as sound source elements when the processing device executes a sound source program. The KB (keyboard) 14 functions as a keyboard element when a processing device including a keyboard as hardware executes a keyboard program. The SP1 (speaker) 15 and the SP2 (speaker) 21 function as speaker elements when a processing device including a speaker as hardware executes a speaker program. The MX (mixer) 23 functions as a mixer element when the processing device executes a mixer program. The CR (content recorder) 24 functions as a content recorder element by a processing device having a large-capacity storage device executing a recorder program. The AA (automatic accompaniment) 31 functions as an automatic accompaniment element by the processing device executing an automatic accompaniment program. The MR (MIDI recorder) 32 functions as a MIDI recorder element by a processing device having a large-capacity storage device executing a recorder program. The ED (editor) 33 functions as an editor element when the processing device executes an editor program. The EF (effector) 34 functions as an effector element when the processing device executes an effector program. The AR (audio recorder) 35 functions as an audio recorder element when a processing device including a large-capacity storage device executes a recorder program. The SY (sound source, keyboard) 36 functions as a sound source element and a keyboard element by a processing device having a keyboard as hardware executing a sound source program and a keyboard program. The MC (microphone) 41 functions as a microphone element when a processing device including a microphone as hardware executes a microphone program. A CD (CD player) 42 functions as a CD player element when a processing device including a CD drive as hardware executes a player program.
Note that data can be exchanged by communicating between the SV (server) 11 and the DU (DSP unit) 22 or the above-described processing elements or between the processing elements. Here, the SV (server) 11 is used. The processing elements described above support TCP / IP (Transmission Control Protocol / Internet Protocol), and perform data exchange using the TCP / IP protocol.

内部ネットワークにおいて、LANケーブル上を流れる情報はすべてMACフレームと呼ばれる所定長のパケットに入れられる。MACフレームにはIPパケットがカプセル化されており、その先頭と最後にはそれぞれ受信部で信号の先頭を見つけるためのプリアンブルとMACフレームの内容の正当性を検査するためのチェックコードが付けられている。さらに、MACフレームのヘッダには送信先と送信元を表わすMACアドレス(Media Access Control Address)が含まれている。MACアドレスとは、すべてのネットワーク手段に一意に与えられている固有の番号であり、イーサネットの場合はMACアドレスは48ビットとされている。また、MACフレームの送信はCSMA/CD(Carrier Sense Multiple Access with Collision Detection )方式で行われ、各ノード(処理装置)ではケーブル上のMACフレームを監視していて、自分宛かブロードキャストであれば受信するようにしている。CSMA/CDとは「搬送波感知多重アクセス/衝突検出方式」であり、データを送信したいノード(処理装置)はケーブルの搬送波を検出することにより通信状況を監視し空いている場合は送信を開始する。このとき、もし複数のノード(処理装置)が同時に送信を開始するとケーブル内でデータが衝突して壊れるので、これを検出(Collision Detection)しランダムな時間待機して送信を再開している。   In the internal network, all information flowing on the LAN cable is put into a packet of a predetermined length called a MAC frame. An IP packet is encapsulated in a MAC frame, and a preamble for finding the beginning of the signal at the receiving unit and a check code for checking the validity of the contents of the MAC frame are attached to the beginning and end of the MAC frame, respectively. Yes. Further, the MAC frame header includes a MAC address (Media Access Control Address) indicating the transmission destination and the transmission source. The MAC address is a unique number uniquely assigned to all network means. In the case of Ethernet, the MAC address is 48 bits. Also, the transmission of the MAC frame is performed by CSMA / CD (Carrier Sense Multiple Access with Collision Detection) method, and each node (processing device) monitors the MAC frame on the cable and receives it if it is broadcast to itself. Like to do. CSMA / CD is a “carrier sense multiple access / collision detection method”, and a node (processing device) that wants to transmit data detects the carrier wave of the cable to monitor the communication status and starts transmission when it is free. . At this time, if a plurality of nodes (processing devices) start transmission at the same time, data collides in the cable and breaks. Therefore, this is detected (Collision Detection), and transmission is resumed after waiting for a random time.

また、TCP/IPは通信プロトコルのひとつでありOSI参照モデルではIPが第3層(ネットワーク層)、TCPが第4層(トランスポート層)に相当している。TCP層では、IP層によるデータグラム指向の通信機能を使って信頼性のある全二重のフロー制御つきの通信機能を上位の処理要素(アプリケーション)に対して提供している。これにより、データの抜けや重複あるいは誤りがなく、送信側で送ったデータがそのままの順序で正しく受信側へ届くようになる。すなわち、IP層やその下位の物理的な伝送媒体の特性により、送信側が送り出したパケットが消失したり、遅延によって順序が入れ替わって到着したり、再送によって重複して到着したりすることがあるが、それらの影響を排除して、処理要素にとって信頼性のある通信路をTCPにより確保している。TCPを使って送受信されるデータの各バイトには、シーケンス番号という連続する一連の番号が付けられており、シーケンス番号によりデータの抜けや重複がないかどうかを検査している。データを受け取った側では、ACK(ACKnowledgement)を送信元へ返すことによりどのシーケンス番号のデータまでを受け取ったかを通知しており、これにより、送信側ではデータが正しく相手に届いたことが確認できる。この場合、所定の時間が経過してもACKが返ってこなければ、途中でデータが消失したか、相手がパケットを受信できなかったと判断して再度パケットを送信する再送制御を行う。これにより、信頼性の高い通信を行うことができるようになる。なお、再送を開始するまでの待ち時間は固定とされておらず、通信路の遅延特性、ACKが返ってくるまでの時間や再送回数などの条件によって動的に変更され、効率よく通信が行なえるように高度に制御されている。   TCP / IP is one of the communication protocols. In the OSI reference model, IP corresponds to the third layer (network layer) and TCP corresponds to the fourth layer (transport layer). In the TCP layer, a reliable communication function with full-duplex flow control is provided to an upper processing element (application) using a datagram-oriented communication function of the IP layer. As a result, there is no data omission, duplication, or error, and the data sent on the transmission side reaches the reception side correctly in the same order. In other words, depending on the characteristics of the IP layer and the physical transmission medium below it, packets sent by the transmission side may be lost, may arrive out of order due to delay, or may arrive redundantly due to retransmission. In order to eliminate these effects, a reliable communication path for the processing element is secured by TCP. Each byte of data transmitted and received using TCP is assigned a series of consecutive numbers called sequence numbers, and it is inspected whether there are any missing or duplicated data by the sequence numbers. The data receiving side informs which sequence number of data has been received by returning an ACK (ACKnowledgement) to the transmission source, so that the transmitting side can confirm that the data has correctly arrived at the other party. . In this case, if no ACK is returned even after a predetermined time has elapsed, it is determined that data has been lost or the other party has not received the packet, and retransmission control is performed to transmit the packet again. As a result, highly reliable communication can be performed. Note that the waiting time before starting retransmission is not fixed, and it is dynamically changed according to conditions such as the delay characteristics of the communication path, the time until ACK is returned, and the number of retransmissions, enabling efficient communication. So that it is highly controlled.

本発明にかかる楽音発生システムは、図1に示す内部ネットワークに接続されている複数の処理装置において機能している処理要素を組み合わせることにより構成される。例えば、KB(鍵盤)14から出力される演奏データをTG1(音源)12に供給し、TG1(音源)12において演奏データに基づいて生成されて出力される楽音波形データをSP1(スピーカ)15に供給する楽音発生システムを構築する場合は、KB(鍵盤)14とTG1(音源)12、および、TG1(音源)12とSP1(スピーカ)15とを論理的に接続する設定を行うことにより、楽音発生システムが構築されるようになる。このような楽音発生システムは、内部ネットワークに接続されている複数の処理装置において機能している処理要素を組み合わせて構築することができる。すなわち、KB(鍵盤)14とSY(鍵盤,音源)36の音源機能とSP2(スピーカ)21との間を論理的に接続しても楽音発生システムが構築されるようになる。この場合、EF(エフェクタ)34やMX(ミキサ)23をさらに論理的に接続することにより、楽音波形データにエフェクトをかけたり複数の楽音波形データをミキシングすることができるようになる。   The musical tone generating system according to the present invention is configured by combining processing elements functioning in a plurality of processing devices connected to the internal network shown in FIG. For example, performance data output from the KB (keyboard) 14 is supplied to the TG1 (sound source) 12, and musical tone waveform data generated and output based on the performance data in the TG1 (sound source) 12 is supplied to the SP1 (speaker) 15. When constructing a musical tone generation system to be supplied, the musical tone is set by logically connecting KB (keyboard) 14 and TG1 (sound source) 12, and TG1 (sound source) 12 and SP1 (speaker) 15. The generation system will be constructed. Such a musical sound generation system can be constructed by combining processing elements functioning in a plurality of processing devices connected to an internal network. That is, even if the sound source function of KB (keyboard) 14 and SY (keyboard, sound source) 36 and SP2 (speaker) 21 are logically connected, a musical sound generating system can be constructed. In this case, by further logically connecting the EF (effector) 34 and the MX (mixer) 23, it is possible to apply effects to the musical sound waveform data and to mix a plurality of musical sound waveform data.

処理装置において機能している処理要素はLANにより物理的に接続されているが、論理的に接続されることにより処理装置において機能している処理要素間においてデータの受け渡しが可能となる。例えば、KB(鍵盤)14とTG1(音源)12とが論理的に接続された際には、処理要素であるKB(鍵盤)14から出力される演奏データを、処理要素であるTG1(音源)12に受け渡すことができるようになる。この場合、KB(鍵盤)14とTG1(音源)12とはTCP/IPを用いて通信を行うことにより、KB(鍵盤)14からパケット化されて出力された演奏データが、TG1(音源)12で受信されるようになる。この場合の送信元の処理要素において生成されてネットワーク上に出力されるMACフレームの生成過程の概要を図2に示す。   The processing elements functioning in the processing apparatus are physically connected by a LAN. However, data can be exchanged between the processing elements functioning in the processing apparatus by being logically connected. For example, when the KB (keyboard) 14 and the TG1 (sound source) 12 are logically connected, the performance data output from the processing element KB (keyboard) 14 is used as the processing element TG1 (sound source). 12 can be handed over. In this case, the KB (keyboard) 14 and the TG1 (sound source) 12 communicate with each other using TCP / IP, so that the performance data packetized from the KB (keyboard) 14 is output as TG1 (sound source) 12. Will be received. FIG. 2 shows an outline of the generation process of the MAC frame generated in the processing element of the transmission source and output on the network in this case.

図2に示すように、送信元の処理要素から出力されるデータは所定の長さの送信データに分割され、TCP層において所定長の送信データの先頭にTCPヘッダを付加してTCPセグメントが生成される。TCPヘッダには、シーケンス番号と送信元の処理要素のポート番号とあて先の処理要素のポート番号とが含まれている。IP層では、このTCPセグメントの先頭にIPヘッダを付加してIPパケットが生成される。IPヘッダには、送信元のIPアドレスとあて先のIPアドレスと、図示していないがパケット長やプロトコル番号等が含まれている。IPアドレスは、図1に示す内部ネットワークおよびインターネットを含む外部ネットワークに接続された処理装置の1台1台に割り振られた識別番号であり、IPv4では、8ビットずつ4つに区切られた32ビットの数値が使われており、「192.168.100.8」などのように、0から255までの10進数の数字を4つ並べて表現されている。そして、データリンク層および物理層においてこのIPパケットの先頭にMACヘッダを付加してMACフレームが生成される。MACヘッダには、送信元の処理装置に一意に与えられている送信元MACアドレスと、あて先の処理装置に一意に与えられているあて先MACアドレスとが含まれている。このようにして生成されたMACフレームが送信元の処理装置からLANケーブル上に送出され、MACフレームにおけるあて先MACアドレスが一致する処理装置がこのMACフレームを取り込み、IPアドレスとポート番号とで特定される処理要素に送信データが渡されるようになる。このように、ポート番号はIPアドレスの下のサブアドレスでありIPアドレスとポート番号との組み合わせにより処理要素を特定できることから、SY(音源、鍵盤)36のように1つの処理装置において機能している処理要素が複数とされていてもそれぞれの処理要素をIPアドレスとポート番号との組み合わせにより特定してMACフレームを渡すことができるようになる。   As shown in FIG. 2, the data output from the transmission source processing element is divided into transmission data of a predetermined length, and a TCP segment is generated by adding a TCP header to the head of the transmission data of a predetermined length in the TCP layer. Is done. The TCP header includes a sequence number, a port number of a source processing element, and a port number of a destination processing element. In the IP layer, an IP packet is generated by adding an IP header to the head of this TCP segment. The IP header includes a source IP address and a destination IP address, and a packet length and a protocol number (not shown). The IP address is an identification number assigned to each of the processing devices connected to the internal network and the external network including the Internet shown in FIG. 1, and in IPv4, 32 bits divided into four 8 bits each. This is expressed by arranging four decimal numbers from 0 to 255, such as “192.168.100.8”. Then, a MAC frame is generated by adding a MAC header to the head of the IP packet in the data link layer and the physical layer. The MAC header includes a transmission source MAC address uniquely given to the transmission source processing device and a destination MAC address uniquely given to the destination processing device. The MAC frame generated in this way is sent from the processing device of the transmission source to the LAN cable, and the processing device having the same destination MAC address in the MAC frame captures this MAC frame and is specified by the IP address and the port number. The transmitted data is passed to the processing element. In this way, the port number is a sub-address below the IP address, and the processing element can be specified by the combination of the IP address and the port number, so that it functions in one processing device such as SY (sound source, keyboard) 36. Even if there are a plurality of processing elements, each processing element can be specified by a combination of an IP address and a port number, and a MAC frame can be passed.

次に、図1に示す内部ネットワークにおけるすべての処理要素毎の識別情報の対応表である装置テーブルを図3に示す。この装置テーブルでは、ブロードキャストドメイン内に含まれる処理装置で機能している全ての処理要素が含まれている。この装置テーブルはSV(サーバ)11で作成されて、内部ネットワーク上の全ての処理装置に記録され、その内容は同一とされている。内部ネットワークに接続される処理装置に変更があった際の装置テーブルの内容はSV(サーバ)11が更新し、更新後の装置テーブルをSV(サーバ)11から全ての処理装置へ送信するようにしている。なお、内部ネットワークに接続された処理装置は、SV(サーバ)11から装置テーブルを取得して自機内の装置テーブルに記録する。
図3に示す装置テーブルにおいて、「論理装置ID」は処理要素のポート番号に相当し処理要素毎に異なるIDが割り当てられている。「IPアドレス」は、内部ネットワークおよびインターネットを含む外部ネットワークに接続された処理装置の1台1台に一意に割り振られた識別番号であり、処理装置がネットワークにログインした際に、DHCP(Dynamic Host Configuration Protocol)サーバが予め用意されたIPアドレスの1つをその処理装置に割り当てるようにしている。DHCPサーバにはルータ2がなることができるが、SV(サーバ)11や処理装置の一つがなることもできる。「物理装置ID」は、すべてのネットワーク装置に一意に与えられている固有の番号であり、MACアドレスに対応しており図3では内部ネットワークの処理装置に一意に与えられた固有番号とされている。「装置名」は、処理要素が機能している処理装置の略称とされている。
Next, FIG. 3 shows an apparatus table which is a correspondence table of identification information for all processing elements in the internal network shown in FIG. In this device table, all processing elements functioning in the processing devices included in the broadcast domain are included. This device table is created by the SV (server) 11 and recorded in all the processing devices on the internal network, and the contents thereof are the same. The contents of the device table when the processing device connected to the internal network is changed are updated by the SV (server) 11 and the updated device table is transmitted from the SV (server) 11 to all the processing devices. ing. The processing device connected to the internal network acquires the device table from the SV (server) 11 and records it in the device table in the own device.
In the device table shown in FIG. 3, “logical device ID” corresponds to a port number of a processing element, and a different ID is assigned to each processing element. The “IP address” is an identification number uniquely assigned to each processing apparatus connected to an internal network and an external network including the Internet. When the processing apparatus logs in to the network, DHCP (Dynamic Host The Configuration Protocol server allocates one of the IP addresses prepared in advance to the processing device. The DHCP server can be the router 2, but can also be the SV (server) 11 or one of the processing devices. The “physical device ID” is a unique number uniquely given to all network devices, corresponds to the MAC address, and is a unique number uniquely given to the processing device of the internal network in FIG. Yes. The “device name” is an abbreviation for the processing device in which the processing element functions.

「処理ID」は、処理要素のポート番号に相当し処理要素毎に異なる処理IDが割り当てられているが、論理装置IDがあることから省略しても良い。「処理要素名」は、処理要素が実現している楽音発生関連装置の名称とされている。なお、論理装置ID”No.7”の処理要素名「DSPユニット」においては、実行されるマイクロプログラムに応じた処理要素で機能することから、設定されている処理要素の処理IDと処理要素名とが装置テーブルに記録される。また、論理装置ID”No.15”の処理要素名「音源」と論理装置ID”No.16”の処理要素名「鍵盤」は1つの処理装置で機能している処理要素であることから、IPアドレスと物理装置IDは同一とされるものの、異なる論理装置ID(ポート番号)を与えてそれぞれ独立して扱えるようにしている。「ボイスファイル提供」は、外部にボイスファイルを提供するか否かの情報であり、提供できる場合は[○]を提供できない場合は[×]を記録している。この場合、ボイスファイルが記録されている処理装置であっても、そのボイスファイルを外部へ送出することが禁止されている処理装置は[×]となる。「負荷分散対象」は、負荷分散対象となるか否かの情報であり、負荷分散対象となる場合は[○]を、負荷分散対象とならない場合は[×]を記録する。この場合、負荷分散対象となるのは、処理を他の処理装置にまかせてもユーザの意図した処理を実行できる処理要素についてに限られる。なお、負荷とはソフト処理(CPUで実行)による処理装置においてCPUにかかる負荷のことを指しており、処理要素をソフトウェアで実現している処理装置は対象となるが、ハードウェアのみで処理要素を実現している処理装置は負荷分散対象とはならない。   “Process ID” corresponds to the port number of the process element, and a different process ID is assigned to each process element, but may be omitted because there is a logical device ID. The “processing element name” is the name of the musical sound generation related device realized by the processing element. Since the processing element name “DSP unit” of the logical device ID “No. 7” functions as a processing element corresponding to the microprogram to be executed, the processing ID and the processing element name of the set processing element are set. Are recorded in the device table. Since the processing element name “sound source” of the logical device ID “No. 15” and the processing element name “keyboard” of the logical device ID “No. 16” are processing elements functioning in one processing device, Although the IP address and physical device ID are the same, different logical device IDs (port numbers) are given so that they can be handled independently. “Voice file provision” is information on whether or not to provide a voice file to the outside, and [○] is recorded when it can be provided, and [×] is recorded when it cannot be provided. In this case, even if the processing device records a voice file, the processing device that is prohibited from sending the voice file to the outside is [x]. “Load distribution target” is information as to whether or not the load is to be distributed, and [◯] is recorded when the load is distributed and [×] is recorded when the load is not distributed. In this case, the load distribution target is limited to processing elements that can execute the process intended by the user even if the process is left to other processing apparatuses. Note that the load refers to the load applied to the CPU in the processing device by software processing (executed by the CPU), and the processing device in which the processing element is realized by software is a target, but the processing element is performed only by hardware. The processing device that realizes the above is not a load balancing target.

本発明の楽音発生システムにおいて、処理装置には上記した各種の処理要素として機能することができるように各種のプログラムが内蔵するハードディスク装置等の記憶手段に格納可能とされている。そして、記憶手段に記憶されているいずれかのプログラムを選択して実行することにより当該処理装置で機能する処理要素を切り替えることができる。この際に、同時に複数のプログラムを選択して実行することにより、1台の処理装置が複数の処理要素で機能するようになる。この場合、処理装置において機能させたい処理要素を選択した際には、処理要素に対応するプログラムが実行されるよう処理装置に設定されると共に、当該処理要素がSV(サーバ)11に登録されることにより論理装置ID(ポート番号)がその処理要素に設定される。そして、SV(サーバ)11で更新された装置テーブルが、内部ネットワーク上の全ての処理装置に送信されて記録されるようになる。   In the musical sound generating system of the present invention, the processing device can be stored in a storage means such as a hard disk device in which various programs are incorporated so as to function as the various processing elements described above. Then, by selecting and executing one of the programs stored in the storage means, it is possible to switch processing elements that function in the processing device. At this time, by selecting and executing a plurality of programs at the same time, one processing apparatus functions with a plurality of processing elements. In this case, when a processing element desired to function in the processing device is selected, the processing device is set to execute a program corresponding to the processing element, and the processing element is registered in the SV (server) 11. As a result, the logical device ID (port number) is set in the processing element. Then, the device table updated by the SV (server) 11 is transmitted and recorded to all the processing devices on the internal network.

本発明の楽音発生システムにおいて、処理要素間において通信するデータは、実体データと制御データの2種類に分類される。ここでは、再生する音楽の内容を直接表すデータであって、リアルタイムでの通信を必要として優先的に通信するデータを実体データと定義する。具体的にはMIDIデータやオーディオ(PCMやMP3)データが実体データとなる。また、実体データ以外のデータを制御データと定義する。制御データの送受信はSV(サーバ)11を含むすべての処理装置が実行することができる。
そこで、内部ネットワーク上の処理要素において、実体データの通信が可能な処理要素毎の入力側と出力側ごとに記録される接続テーブルを図4に示す。接続テーブルは、SV(サーバ)11で作成されて、内部ネットワーク上の全ての処理装置に記録され、その内容は同一とされている。この接続テーブルには、図1に示す内部ネットワークに接続可能な全処理装置において機能している処理要素毎についての情報が記録されている。内部ネットワークに接続された処理装置は、SV(サーバ)11から接続テーブルを取得して記録する。
In the musical sound generating system of the present invention, data communicated between processing elements is classified into two types: entity data and control data. Here, data that directly represents the content of music to be played back and that is preferentially communicated requiring real-time communication is defined as entity data. Specifically, MIDI data and audio (PCM and MP3) data are the actual data. Data other than the entity data is defined as control data. Transmission and reception of control data can be executed by all processing devices including the SV (server) 11.
Therefore, FIG. 4 shows a connection table recorded for each input side and each output side of each processing element capable of actual data communication in the processing elements on the internal network. The connection table is created by the SV (server) 11 and recorded in all the processing devices on the internal network, and the contents thereof are the same. In this connection table, information about each processing element functioning in all processing apparatuses connectable to the internal network shown in FIG. 1 is recorded. The processing device connected to the internal network acquires the connection table from the SV (server) 11 and records it.

図4に示す接続テーブルは図1に示す構成の内部ネットワークにおける一部の処理要素の接続テーブルであり、接続テーブル中の「×」は、接続できる処理要素がないことを表しており、処理IDが「AA」のサーバは実体データの送受信を行わないことを示している。このサーバは、図1に示すSV(サーバ)11である。処理IDが「AB」の音源要素は、実体データとしてMIDIデータ等の演奏データを送信する処理要素を入力接続することができ、実体データとしてオーディオデータを受信する処理要素を出力接続することができる。すなわち、入力接続できる処理要素は、処理IDが「AC」の鍵盤要素、処理IDが「AH」の自動伴奏要素、処理IDが「AI」のMIDIレコーダ要素、処理IDが「AJ」のエディタ要素となり、出力接続できる処理要素は、処理IDが「AD」のスピーカ、処理ID「AK」のエフェクタ要素、処理IDが「AL」のオーディオレコーダ要素となる。また、処理IDが「AC」の鍵盤は、実体データとしてMIDIデータ等の演奏データを受信する処理要素を出力接続することができ、その性質から入力接続できる処理要素はない。すなわち、出力接続できる処理要素は、処理IDが「AB」の音源要素、処理IDが「AI」のMIDIレコーダ要素、処理IDが「AJ」のエディタ要素となる。さらに、処理IDが「AD」のスピーカは、実体データとしてオーディオデータを送信する処理要素を入力接続することができ、その性質から出力接続できる処理要素はない。すなわち、入力接続できる処理要素は、処理IDが「AB」の音源要素、処理IDが「AF」のミキサ要素、処理IDが「AK」のエフェクタ要素、処理IDが「AL」のオーディオレコーダ要素、処理IDが「AM」のマイク要素、処理IDが「AN」のCDプレーヤ要素等となる。接続テーブルでは、このような入力接続できる処理要素や出力接続できる処理要素が処理要素毎に示されており、接続テーブルを参照することにより入力接続する処理要素や出力接続する処理要素を選択することができるようになる。   The connection table shown in FIG. 4 is a connection table of some processing elements in the internal network having the configuration shown in FIG. 1, and “x” in the connection table indicates that there is no processing element that can be connected, and the processing ID Indicates that the server with “AA” does not transmit or receive the entity data. This server is the SV (server) 11 shown in FIG. A sound source element having a process ID “AB” can be connected to a processing element that transmits performance data such as MIDI data as entity data, and can be output and connected to a processing element that receives audio data as entity data. . That is, the processing elements that can be connected to the input are the keyboard element with the process ID “AC”, the automatic accompaniment element with the process ID “AH”, the MIDI recorder element with the process ID “AI”, and the editor element with the process ID “AJ”. Thus, the processing elements that can be output-connected are the speaker with the process ID “AD”, the effector element with the process ID “AK”, and the audio recorder element with the process ID “AL”. Further, the keyboard with the process ID “AC” can output and connect a processing element that receives performance data such as MIDI data as entity data, and there is no processing element that can be input-connected due to its nature. In other words, the processing elements that can be output-connected are the sound source element whose processing ID is “AB”, the MIDI recorder element whose processing ID is “AI”, and the editor element whose processing ID is “AJ”. Furthermore, the speaker with the process ID “AD” can input and connect a processing element that transmits audio data as entity data, and there is no processing element that can be output connected due to its nature. That is, the processing elements that can be connected to the input are sound source elements whose processing ID is “AB”, mixer elements whose processing ID is “AF”, effector elements whose processing ID is “AK”, audio recorder elements whose processing ID is “AL”, A microphone element with a process ID “AM”, a CD player element with a process ID “AN”, and the like. In the connection table, the processing elements that can be connected to the input and the processing elements that can be connected to the output are shown for each processing element. By referring to the connection table, the processing element to be connected to input and the processing element to be connected to output can be selected Will be able to.

次に、内部ネットワークに新たに処理装置が接続(ログイン)された際に実行されるネットワーク接続処理のフローチャートを図6に示す。なお、クライアントはSV(サーバ)11に対するクライアントであり、内部ネットワークにおいてSV(サーバ)11以外の処理装置は全てクライアントとなる。なお、クライアントとSV(サーバ)11間で通信される制御データは、あて先の処理装置のIPアドレスと予め定められている制御データ用のポート番号とを用いて通信される。
ネットワーク接続処理が起動されると、ステップS10にて新たに接続された新クライアントが複数の処理要素を有しているか否かが判断される。ここで、新クライアントが図5の上段に示す処理装置NEWのように鍵盤プログラムおよび音源プログラムを実行することにより鍵盤要素KBと音源要素TGとして機能しており、鍵盤要素KBで発生したMIDIデータを音源要素TGへ入力できるように接続されていた場合はYESと判断されてステップS11に進み、図5の下段に示すように鍵盤要素KBと音源要素TGとの間の内部接続が切断される。これにより、複数の処理要素が機能している処理装置NEWにおいては、ログオンした際に自動的に処理要素間の接続が切断されることから、ログオンする前に予め切断しておく作業を省略することができるようになる。そして、ステップS10で複数の処理要素を持っていないと判断された場合と同様にステップS12に進み、自機情報と登録要求を含むデータ部を作成する。自機情報は、その処理装置における全ての処理要素の論理装置ID、IPアドレス(IPアドレスは内部ネットワークにログインした際にDHCPサーバから割り当てられている)、物理装置ID、全ての処理要素の処理IDと処理要素名の情報、ボイスファイル提供情報および負荷分散対象情報であり、登録要求とは、SV(サーバ)11にある装置テーブルへ自機情報を登録する要求とされる。次いで、ステップS13にて送信処理が行われる。送信処理では、ステップS12において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。MACフレームのMACヘッダにはあて先MACアドレスとしてSV(サーバ)11のMACアドレス(物理装置ID)が設定される。
Next, FIG. 6 shows a flowchart of network connection processing executed when a processing device is newly connected (logged in) to the internal network. The client is a client for the SV (server) 11 and all processing devices other than the SV (server) 11 in the internal network are clients. Control data communicated between the client and the SV (server) 11 is communicated using the IP address of the destination processing device and a predetermined port number for control data.
When the network connection process is activated, it is determined in step S10 whether or not the newly connected new client has a plurality of processing elements. Here, the new client functions as the keyboard element KB and the sound source element TG by executing the keyboard program and the sound source program as in the processing unit NEW shown in the upper part of FIG. 5, and the MIDI data generated in the keyboard element KB is used. If it is connected so that it can be input to the sound source element TG, YES is determined and the process proceeds to step S11, and the internal connection between the keyboard element KB and the sound source element TG is disconnected as shown in the lower part of FIG. Thereby, in the processing apparatus NEW in which a plurality of processing elements are functioning, since the connection between the processing elements is automatically disconnected when logging on, the work of disconnecting in advance before logging on is omitted. Will be able to. Then, the process proceeds to step S12 in the same manner as in the case where it is determined in step S10 that the plurality of processing elements are not included, and a data part including the own device information and the registration request is created. The own device information includes logical device IDs and IP addresses of all processing elements in the processing device (IP addresses are assigned by the DHCP server when logging into the internal network), physical device IDs, and processing of all processing elements. ID, processing element name information, voice file provision information, and load distribution target information. The registration request is a request for registering own device information in the device table in the SV (server) 11. Next, transmission processing is performed in step S13. In the transmission process, the data part created in step S12 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. 2 and transmitted on the internal network. In the MAC header of the MAC frame, the MAC address (physical device ID) of the SV (server) 11 is set as the destination MAC address.

新クライアントから送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS20)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。例えば、新クライアントがハブ30に物理的に接続された場合は、ハブ30は受信したMACフレームをルータ2に中継し、ルータ2は受信したMACフレームをハブ10に中継し、ハブ10は受信したMACフレームをSV(サーバ)11に中継する。これにより、新クライアントから送信されたMACフレームがあて先MACアドレスが一致するSV(サーバ)11で受信されて、受信処理が行われる(ステップS30)。受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。そして、取得されたデータ部を解釈して登録要求があることから登録要求処理を行うと判断する。次いで、ステップS31にてデータ部の自機情報を装置テーブルへ記録し、ステップS32にて変更後の装置テーブルと変更要求を含むデータ部を作成する。このデータ部は、ステップS33で送信処理が行われることにより内部ネットワーク上に送信される。この送信処理は、前述したステップS13の送信処理と同様の処理とされるが、あて先MACアドレスにはオール”1”のブロードキャストアドレス(FF-FF-FF-FF-FF-FF)が設定され、あて先IPアドレスもブロードキャストアドレスが設定される。この場合、図3に示す装置テーブルのように内部ネットワークのネットワークアドレスが”192.168.111.0”とされている場合は、IPアドレスのブロードキャストアドレスは”192.168.111.255”とされる。   Since the MAC frame transmitted from the new client is a star-type internal network, it is received by the hub, and a route determination process is performed (step S20). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. For example, when a new client is physically connected to the hub 30, the hub 30 relays the received MAC frame to the router 2, the router 2 relays the received MAC frame to the hub 10, and the hub 10 receives it. The MAC frame is relayed to the SV (server) 11. As a result, the MAC frame transmitted from the new client is received by the SV (server) 11 having the same destination MAC address, and reception processing is performed (step S30). In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. Then, it is determined that the registration request processing is to be performed because there is a registration request by interpreting the acquired data part. Next, in step S31, the device information of the data part is recorded in the device table, and in step S32, the changed device table and the data part including the change request are created. This data part is transmitted on the internal network by performing transmission processing in step S33. This transmission process is the same as the transmission process in step S13 described above, but the broadcast address (FF-FF-FF-FF-FF-FF) of all “1” is set as the destination MAC address, A broadcast address is also set as the destination IP address. In this case, when the network address of the internal network is “192.168.111.0” as in the device table shown in FIG. 3, the broadcast address of the IP address is “192.168.111.255”. Is done.

SV(サーバ)11からブロードキャストされたMACフレームは、ハブ10で受信され経路決定処理が行われる(ステップS20)。この経路決定処理では、ステップS20と同様の経路決定処理が行われるが、ブロードキャストアドレスのMACフレームとされていることからルータ2およびハブ10〜40により全ての処理装置にMACフレームが中継されるようになる。新クライアントは、ブロードキャストされたMACフレームが到来した際にブロードキャストアドレスとされていることからステップS30と同様のMACフレームを受信する受信処理を行う(ステップS14)。次いで、ステップS15にて受信されたMACフレームから取り出された装置テーブル情報を内部の記憶手段に記憶し、新クライアントにおけるネットワーク接続処理は終了する。また、他のクライアントにおいてはブロードキャストされたMACフレームが到来した際にブロードキャストアドレスとされていることからステップS30と同様のMACフレームを受信する受信処理を行う(ステップS40)。次いで、ステップS41にて受信されたMACフレームから取り出された装置テーブル情報で記憶されている装置テーブルを更新し、他のクライアントにおけるネットワーク接続処理は終了する。これにより、内部ネットワークに接続されている全てのクライアントにおいて更新された図3に示す装置テーブルを持つようになる。また、SV(サーバ)11は装置テーブルと共に接続テーブルを内部ネットワークに接続されている全てのクライアントにブロードキャストするようにしても良い。   The MAC frame broadcast from the SV (server) 11 is received by the hub 10 and a route determination process is performed (step S20). In this route determination process, the same route determination process as in step S20 is performed, but since the MAC frame is a broadcast address, the router 2 and the hubs 10 to 40 relay the MAC frame to all the processing devices. become. Since the new client uses the broadcast address when the broadcast MAC frame arrives, the new client performs reception processing for receiving the same MAC frame as in step S30 (step S14). Next, the device table information extracted from the MAC frame received in step S15 is stored in the internal storage means, and the network connection process in the new client is completed. In addition, since the broadcast address is used when the broadcasted MAC frame arrives at other clients, a reception process for receiving the same MAC frame as in step S30 is performed (step S40). Next, the device table stored with the device table information extracted from the MAC frame received in step S41 is updated, and the network connection process in the other client ends. As a result, all the clients connected to the internal network have the updated device table shown in FIG. The SV (server) 11 may broadcast the connection table together with the device table to all clients connected to the internal network.

次に、内部ネットワークに接続されている処理装置が切断(ログオフ)された際に実行されるネットワーク切断処理のフローチャートを図7に示す。
内部ネットワークに接続されている処理装置が切断(ログオフ)されると、ネットワーク切断処理が起動され、ステップS50にて切断された処理装置が複数の処理要素を有しており復帰すべき接続があるか否かが判断される。ここで、切断された処理装置が図8の上段に示す処理装置OLDのように複数の処理要素を有しており復帰すべき接続があると判断された場合は、ステップS51に進み複数の処理要素における復帰すべき全ての接続を復帰する。例えば、図8の上段に示すように鍵盤要素KBと音源要素TGとを有している処理装置OLDの場合は、鍵盤要素KBで発生したMIDIデータを音源要素TGへ入力できるように、鍵盤要素KBと音源要素TGとの間を図8の下段に示すように内部接続する。ステップS51の処理が終了した場合と、ステップS50にて復帰すべき接続がないと判断された場合は、ネットワーク切断処理は終了する。これにより、複数の処理要素が機能している処理装置OLDにおいては、ログオフした際に自動的に処理要素間の接続が復帰されてあらためて処理要素間の接続を行うことなく使用できるようになる。なお、処理要素間の接続はAPI(Application Program Interface)等を使用して内部接続されるが、各処理要素に割り当てられているポート番号を用いて論理的に接続する外部接続としてもよい。
Next, FIG. 7 shows a flowchart of a network disconnection process executed when a processing device connected to the internal network is disconnected (logged off).
When the processing device connected to the internal network is disconnected (logged off), the network disconnection processing is started, and the processing device disconnected in step S50 has a plurality of processing elements and there is a connection to be restored. It is determined whether or not. Here, when it is determined that the disconnected processing apparatus has a plurality of processing elements as in the processing apparatus OLD shown in the upper part of FIG. 8 and there is a connection to be restored, the process proceeds to step S51 and the plurality of processes are performed. Restore all connections that should be restored in the element. For example, in the case of a processing device OLD having a keyboard element KB and a sound source element TG as shown in the upper part of FIG. 8, the keyboard element so that MIDI data generated in the keyboard element KB can be input to the sound source element TG. The KB and the sound source element TG are internally connected as shown in the lower part of FIG. When the process of step S51 is completed and when it is determined in step S50 that there is no connection to be restored, the network disconnection process ends. Thereby, in the processing apparatus OLD in which a plurality of processing elements are functioning, the connection between the processing elements is automatically restored when the logoff is performed, and the processing apparatus OLD can be used without connecting again between the processing elements. In addition, although the connection between processing elements is internally connected using API (Application Program Interface) etc., it is good also as an external connection logically connected using the port number assigned to each processing element.

なお、SV(サーバ)11は、定期的に内部ネットワーク上のクライアントの存在を確認する処理を行っており、この処理により切断されたクライアントが検出された際に、当該クライアントの情報を装置テーブルから削除して、装置テーブルを更新する。そして、更新された装置テーブルを全クライアントへブロードキャスト送信する。ブロードキャストを受信した各クライアントでは、受信した装置テーブル情報により自機に記憶している装置テーブルが更新されるようになる。   The SV (server) 11 periodically performs processing for confirming the existence of a client on the internal network. When a client disconnected by this processing is detected, information on the client is obtained from the device table. Delete and update device table. Then, the updated device table is broadcasted to all clients. Each client that receives the broadcast updates the device table stored in its own device with the received device table information.

次に、処理要素と処理要素との接続を設定する接続選択処理を実行する際に表示される設定画面を図10および図11に示す。この設定画面は、内部ネットワークが図9に示す簡易な構成とされている際の設定画面とされている。
図9に示す内部ネットワークでは、複数の処理要素が機能している処理装置SY1がハブHBaにLANケーブルで接続されていると共に、複数の処理要素が機能している処理装置SY2がハブHBaにLANケーブルで接続されている。処理装置SY1では鍵盤要素KBaと、音源要素TGaと、スピーカ要素SPaとが機能しており、処理装置SY2では音源要素TBbと、スピーカ要素SPbとが機能している。処理装置SY1、SY2におけるこれらの処理要素は内部においてそれぞれ論理的に接続が分離されている。このように複数の処理要素が機能している処理装置SY1,SY2において、処理要素の接続選択は処理要素毎に行うことができる。ここでは、処理装置SY1の鍵盤要素KBaから接続選択の設定を行う場合を説明する。この場合は、処理装置SY1において接続選択処理を起動させる。すると、処理装置SY1の画面上に図10に示す画面A1が表示される。画面A1は、処理装置SY1において機能している鍵盤要素KBa、音源要素TGa、スピーカ要素SPaの3つの処理要素を表示して、接続を設定する処理要素としてそのうちの一つを選択する画面とされる。ここで、画面A1において鍵盤要素KBaを接続設定する処理要素として選択すると、処理装置SY1の画面上に図10に示す画面A2が表示される。
Next, FIG. 10 and FIG. 11 show setting screens displayed when executing the connection selection process for setting the connection between the processing elements. This setting screen is a setting screen when the internal network has the simple configuration shown in FIG.
In the internal network shown in FIG. 9, a processing device SY1 in which a plurality of processing elements are functioning is connected to the hub HBa by a LAN cable, and a processing device SY2 in which a plurality of processing elements are functioning is connected to the hub HBa in a LAN. Connected with a cable. In the processing device SY1, the keyboard element KBa, the sound source element TGa, and the speaker element SPa function, and in the processing device SY2, the sound source element TBb and the speaker element SPb function. These processing elements in the processing devices SY1 and SY2 are logically separated from each other inside. In the processing devices SY1 and SY2 in which a plurality of processing elements are functioning in this way, connection selection of processing elements can be performed for each processing element. Here, a case where connection selection is set from the keyboard element KBa of the processing device SY1 will be described. In this case, the connection selection process is started in the processing device SY1. Then, a screen A1 shown in FIG. 10 is displayed on the screen of the processing device SY1. The screen A1 is a screen that displays three processing elements, keyboard element KBa, sound source element TGa, and speaker element SPa that are functioning in the processing device SY1, and selects one of them as a processing element for setting a connection. The Here, when the keyboard element KBa is selected as a processing element for connection setting on the screen A1, a screen A2 shown in FIG. 10 is displayed on the screen of the processing device SY1.

画面A2は、図9に示す内部ネットワーク上にあって、選択された処理要素である鍵盤要素KBaに接続することのできる処理要素が表示され、そのうちの一つを選択する画面とされる。内部ネットワーク上にあって鍵盤要素に接続することのできる処理要素は、装置テーブルと接続テーブルを参照して表示する。この場合、装置テーブルには鍵盤要素KBa、音源要素TGa、スピーカSPaと、音源TBb、スピーカSPbとが記録されている。また、接続テーブルを参照すると鍵盤要素KBaには入力接続がないので出力接続可能な処理要素についてのみ記録されている。すると、鍵盤要素に出力接続できる内部ネットワーク上の処理要素は音源要素のみであることから画面A2には音源要素だけが表示される。画面A2において表示されている音源要素を選択すると、処理装置SY1の画面上に図10に示す画面A3が表示される。画面A3は、選択した処理要素である音源要素の先の接続を行うか(続行)、否か(終了)を選択させる画面とされる。ここで続行を選択すると、処理装置SY1の画面上に図10に示す画面A4が表示される。画面A4は、選択された処理要素である音源要素の先に接続することのできる処理要素であって図9に示す内部ネットワーク上にある処理要素が表示され、そのうちの一つを選択する画面とされる。   The screen A2 is on the internal network shown in FIG. 9 and displays processing elements that can be connected to the keyboard element KBa that is the selected processing element, and is a screen for selecting one of them. Processing elements that can be connected to the keyboard element on the internal network are displayed with reference to the device table and the connection table. In this case, a keyboard element KBa, a sound source element TGa, a speaker SPa, a sound source TBb, and a speaker SPb are recorded in the device table. Further, referring to the connection table, since there is no input connection in the keyboard element KBa, only the processing elements that can be output connected are recorded. Then, since the only processing element on the internal network that can be output-connected to the keyboard element is the sound source element, only the sound source element is displayed on the screen A2. When the sound source element displayed on the screen A2 is selected, a screen A3 shown in FIG. 10 is displayed on the screen of the processing device SY1. The screen A3 is a screen for selecting whether to connect the sound source element that is the selected processing element (continue) or not (end). If “continue” is selected here, a screen A4 shown in FIG. 10 is displayed on the screen of the processing device SY1. The screen A4 is a processing element that can be connected to the sound source element that is the selected processing element, and displays processing elements on the internal network shown in FIG. 9, and a screen for selecting one of them. Is done.

内部ネットワーク上にある接続可能な処理要素は、装置テーブルと接続テーブルを参照して検出され、この場合、装置テーブルには鍵盤要素KBa、音源要素TGa、スピーカSPaと、音源TBb、スピーカSPbとが記録されている。すると、音源要素の先に接続できる処理要素はスピーカ要素とされることから画面A4にはスピーカ要素だけが表示される。この画面A4において表示されているスピーカ要素を選択すると、処理装置SY1の画面上に図10に示す画面A6が表示される。画面A6では、スピーカ要素の出力接続はなくスピーカ要素の先に処理要素を接続することができないことから終了を選択する画面とされる。そこで、画面A6において終了を選択すると処理装置SY1の画面上に図10に示す画面A7が表示される。終了を選択したことにより、鍵盤要素−音源要素−スピーカ要素の順に論理接続する設定が行われたことになり、内部ネットワーク上に複数の同じ処理要素がある場合は、それぞれの処理要素についていずれかの処理要素を選択して設定することになる。そこで、まず画面A2で選択された音源要素が機能している処理装置を装置テーブルを参照することにより内部ネットワークから検出して、その処理装置の装置名を画面A7に表示し、音源要素が機能している表示された装置名のいずれかを接続先として選択させる。図9に示す内部ネットワークの場合は、処理装置SY1と処理装置SY2とが音源要素が機能している処理装置として検出され、その装置名SY1および装置名SY2のいずれかが音源要素として選択されるように画面A7に表示される。   Connectable processing elements on the internal network are detected with reference to the device table and the connection table. In this case, the device table includes a keyboard element KBa, a sound source element TGa, a speaker SPa, a sound source TBb, and a speaker SPb. It is recorded. Then, since the processing element that can be connected to the tip of the sound source element is the speaker element, only the speaker element is displayed on the screen A4. When the speaker element displayed on this screen A4 is selected, a screen A6 shown in FIG. 10 is displayed on the screen of the processing device SY1. The screen A6 is a screen for selecting the end because there is no output connection of the speaker element and the processing element cannot be connected to the tip of the speaker element. Therefore, when the end is selected on the screen A6, a screen A7 shown in FIG. 10 is displayed on the screen of the processing device SY1. By selecting “End”, the logical connection in the order of keyboard element, sound source element, and speaker element has been set. If there are multiple identical processing elements on the internal network, one of the respective processing elements is selected. This processing element is selected and set. Therefore, first, the processing device in which the sound source element selected on the screen A2 is functioning is detected from the internal network by referring to the device table, and the device name of the processing device is displayed on the screen A7. One of the displayed device names is selected as the connection destination. In the case of the internal network shown in FIG. 9, the processing device SY1 and the processing device SY2 are detected as processing devices with functioning sound source elements, and either the device name SY1 or the device name SY2 is selected as the sound source element. Is displayed on the screen A7.

ここで、装置名SY2(あるいは装置名SY1)の音源要素を選択すると、次に、画面A4で選択されたスピーカ要素が機能している処理装置を装置テーブルを参照することにより内部ネットワークから検出して、その処理装置の装置名を画面A8に表示し、スピーカ要素が機能している表示された装置名のいずれかを接続先として選択させる。画面A8で、装置名SY1(あるいは装置名SY2)のスピーカ要素を選択すると接続するそれぞれの処理要素が決定されて、鍵盤要素KBa−音源要素TGb−スピーカ要素SPaの順で論理接続を行う設定が終了し、処理要素間の接続を行う接続選択処理は終了する。なお、選択された処理要素が機能している処理装置が複数あればそれらすべてについて順番に装置名を選択させる画面が順次表示されるようになる。   Here, when the sound source element of the device name SY2 (or device name SY1) is selected, the processing device in which the speaker element selected on the screen A4 is functioning is detected from the internal network by referring to the device table. Then, the device name of the processing device is displayed on the screen A8, and one of the displayed device names on which the speaker element functions is selected as a connection destination. When a speaker element having the device name SY1 (or device name SY2) is selected on the screen A8, each processing element to be connected is determined, and settings for logical connection in the order of keyboard element KBa-sound source element TGb-speaker element SPa are made. The connection selection process for ending and connecting the processing elements ends. If there are a plurality of processing devices in which the selected processing element is functioning, screens for selecting device names in order for all of them are sequentially displayed.

また、画面A3において終了を選択すると処理装置SY1の画面上に図10に示す画面A5が表示される。終了を選択したことにより、鍵盤要素−音源要素の順で論理接続する設定が行われたことになり、次に、それぞれの処理要素について内部ネットワーク上に複数の同じ処理要素がある場合はいずれかの処理要素を選択することになる。そこで、選択された音源要素が機能している処理装置を装置テーブルを参照することにより内部ネットワークから検出して、その処理装置の装置名を画面A5に表示し、音源要素が機能している表示された装置名のいずれかを接続先として選択させる。すなわち、画面A7と同様の画面が画面A5に表示され、ここで、装置名SY2の音源要素を選択すると接続するそれぞれの処理要素が決定されて、鍵盤要素KBa−音源要素TGbの順で論理接続を行う設定が終了し、処理要素間の接続を行う接続選択処理は終了する。
なお、処理要素間の接続を行う接続選択処理が終了した際には、設定された接続情報が設定を行った処理装置の接続バッファに記録される。そして、後述する周期的に起動される接続確立処理が起動された際に、接続バッファの接続情報に基づいて接続確立処理が行われて論理接続が確立され、確立された接続情報がカレントバッファに記録されるようになる。
Further, when the end is selected on the screen A3, a screen A5 shown in FIG. 10 is displayed on the screen of the processing device SY1. By selecting "End", the logical connection in the order of keyboard element-sound source element has been set. Next, if there are multiple identical processing elements on the internal network for each processing element This processing element is selected. Therefore, the processing device in which the selected sound source element is functioning is detected from the internal network by referring to the device table, the device name of the processing device is displayed on the screen A5, and the sound source element is functioning. One of the registered device names is selected as a connection destination. That is, a screen similar to the screen A7 is displayed on the screen A5. When the sound source element of the device name SY2 is selected, each processing element to be connected is determined, and the logical connection is made in the order of the keyboard element KBa-the sound source element TGb. The setting for performing the connection is completed, and the connection selection process for connecting the processing elements is completed.
When the connection selection process for connecting the processing elements is completed, the set connection information is recorded in the connection buffer of the processing apparatus in which the setting has been made. Then, when a connection establishment process that is periodically started, which will be described later, is activated, a connection establishment process is performed based on the connection information in the connection buffer to establish a logical connection, and the established connection information is stored in the current buffer. It will be recorded.

次に、処理装置SY2の音源要素TGbから接続選択の設定をする際の説明を行う。ただし、この設定は図10に示す設定が行われて鍵盤要素KBa−音源要素TGb−スピーカ要素SPaの順で論理接続を行う設定が終了しているものとする。ここで、処理装置SY2において接続選択処理を起動させる。すると、処理装置SY2の画面上に図11に示す画面B1が表示される。画面B1は、処理装置SY2において機能している音源要素TGb、スピーカ要素SPbの2つの処理要素を表示して、接続を設定する処理要素としてそのうちの一つを選択する画面とされる。ここで、画面B1において音源要素TGbを接続を設定する処理要素として選択すると、処理装置SY2の画面上に図11に示す画面B2が表示される。
画面B2は、選択された処理要素である音源要素TGbに接続することのできる処理要素であって図9に示す内部ネットワーク上にある処理要素が表示され、そのうちの一つを選択する画面とされる。内部ネットワーク上にあって接続可能な処理要素は、装置テーブルと接続テーブルを参照して検出する。この場合、装置テーブルには鍵盤要素KBa、音源要素TGa、スピーカSPaと、音源TBb、スピーカSPbとが登録されている。接続テーブルを参照すると音源要素は入力接続および出力接続可能とされているので、まず入力接続を選択する画面B2が表示される。音源要素に入力接続できる処理要素は鍵盤要素のみとされることから、画面B2には鍵盤要素のみが表示されると共に、「入力接続」のタイトルも表示される。この画面B2において鍵盤要素を選択すると処理装置SY2の画面上に図11に示す画面B3が表示される。鍵盤要素が選択されると、その先に接続される処理要素を選択する処理が続けられるのであるが、鍵盤要素の先には処理要素を接続することができないことから、画面B3には入力接続に替えて出力接続を選択する画面が表示されるようになる。なお、処理要素が選択された際にその先に接続できる処理要素があれば、続行か出力接続かのいずれかを選択させる画面を表示して、続行であればその先に接続する処理要素を選択させるようにする。
Next, description will be made on setting connection selection from the sound source element TGb of the processing device SY2. However, in this setting, it is assumed that the setting shown in FIG. 10 is performed and the setting for logical connection in the order of keyboard element KBa-sound source element TGb-speaker element SPa has been completed. Here, the connection selection process is started in the processing device SY2. Then, a screen B1 shown in FIG. 11 is displayed on the screen of the processing device SY2. The screen B1 is a screen that displays two processing elements of the sound source element TGb and the speaker element SPb that are functioning in the processing device SY2, and selects one of them as a processing element for setting a connection. Here, when the sound source element TGb is selected as the processing element for setting the connection on the screen B1, the screen B2 shown in FIG. 11 is displayed on the screen of the processing device SY2.
The screen B2 is a processing element that can be connected to the sound source element TGb that is the selected processing element, and displays processing elements on the internal network shown in FIG. 9, and is a screen for selecting one of them. The Processing elements that can be connected on the internal network are detected by referring to the device table and the connection table. In this case, a keyboard element KBa, a sound source element TGa, a speaker SPa, a sound source TBb, and a speaker SPb are registered in the device table. With reference to the connection table, since the sound source element can be connected to the input and output, a screen B2 for selecting the input connection is displayed first. Since only the keyboard element is the processing element that can be input-connected to the sound source element, only the keyboard element is displayed on the screen B2, and the title of “input connection” is also displayed. When a keyboard element is selected on this screen B2, a screen B3 shown in FIG. 11 is displayed on the screen of the processing device SY2. When a keyboard element is selected, the process of selecting a processing element connected to the keyboard element is continued. However, since a processing element cannot be connected to the keyboard element, input connection to the screen B3 is possible. Instead, the screen for selecting the output connection is displayed. When a processing element is selected, if there is a processing element that can be connected to the destination, a screen for selecting either continuation or output connection is displayed. Let them be selected.

画面B3において、出力接続を選択すると処理装置SY2の画面上に図11に示す画面B4が表示される。画面B4では、音源要素に出力接続できる処理要素が「出力接続」のタイトルと共に表示される。内部ネットワーク上にある出力接続可能な処理要素は、装置テーブルと接続テーブルを参照して検出される。この場合は、音源要素に出力接続できる内部ネットワーク上の処理要素はスピーカ要素のみであることから画面B4にはスピーカ要素と、スピーカ要素を選択することなく設定を終了する「終了」とのいずれかを選択する画面が表示される。画面B4においてスピーカ要素を選択すると、処理装置SY2の画面上に図11に示す画面B5が表示される。スピーカ要素が選択されると、スピーカ要素の先に処理要素を接続することができないことから画面B5には、終了を選択する画面が「出力接続」のタイトルと共に表示される。そこで、画面B5において終了を選択すると処理装置SY2の画面上に図11に示す画面B7が表示される。終了を選択したことにより、鍵盤要素−音源要素−スピーカ要素の順に論理接続する設定が行われたことになり、次に、内部ネットワーク上に複数の同じ処理要素がある場合はそれぞれの処理要素についていずれかの処理要素を選択することになる。   When an output connection is selected on the screen B3, a screen B4 shown in FIG. 11 is displayed on the screen of the processing device SY2. On the screen B4, processing elements that can be output-connected to the sound source element are displayed together with the title “output connection”. Processing elements on the internal network that can be connected to the output are detected by referring to the device table and the connection table. In this case, since only the speaker element is the processing element on the internal network that can be connected to the sound source element, either the speaker element or “END” in which setting is terminated without selecting the speaker element is displayed on the screen B4. A screen for selecting is displayed. When the speaker element is selected on the screen B4, a screen B5 shown in FIG. 11 is displayed on the screen of the processing device SY2. When a speaker element is selected, a processing element cannot be connected to the tip of the speaker element, so that a screen for selecting termination is displayed on the screen B5 together with the title “output connection”. Therefore, when the end is selected on the screen B5, a screen B7 shown in FIG. 11 is displayed on the screen of the processing device SY2. By selecting the end, the logical connection in the order of keyboard element-sound source element-speaker element has been set. Next, if there are multiple identical processing elements on the internal network, each processing element One of the processing elements is selected.

そこで、画面B7では装置テーブルを参照して選択された音源要素が機能している処理装置を内部ネットワークから検出して、その処理装置の装置名を表示して、表示された装置名の音源要素のいずれかを接続先として選択させる画面とされる。この場合、音源要素TGbに論理接続することのできる鍵盤要素は処理装置SY1のみで機能していると検出されるから、その装置名SY1を選択する画面が画面B7に表示される。この場合、図10に示す設定が既に行われて鍵盤要素KBa−音源要素TGbの論理接続を行う設定が終了していることから鍵盤要素KBaが機能している装置名SY1には既に選択されていることを示すアンダーラインが付されて表示される。画面B7において鍵盤要素として装置名SY1を選択すると、音源要素に論理接続することのできるスピーカ要素が機能している処理装置を内部ネットワークから検出して、その処理装置の装置名を表示して、表示された装置名のスピーカ要素のいずれかを接続先として選択させる画面B8が表示される。この場合、図10に示す設定が行われて音源要素TGb−スピーカ要素SPaの論理接続を行う設定が終了していることからスピーカ要素SPaが機能している装置名SY1には既に選択されていることを示すアンダーラインが付されて表示される。画面B8において装置名SY2のスピーカ要素を選択すると、音源要素TGbはスピーカ要素SPaに加えてスピーカ要素SPbにも論理的に接続される設定が行われたことになる。これにより、図9に示す内部ネットワークにおいて論理接続するそれぞれの処理要素が決定されて、鍵盤要素KBaと音源要素TGbとを論理接続する設定と、音源要素TGbとスピーカ要素SPaおよびスピーカ要素SPbとを論理接続する設定が終了し、処理要素間の接続を行う接続選択処理は終了する。なお、選択された処理要素が機能している処理装置が複数あればそれらすべてについて順番に装置名を選択させる画面が順次表示されるようになる。   Therefore, on the screen B7, the processing device in which the sound source element selected with reference to the device table is functioning is detected from the internal network, the device name of the processing device is displayed, and the sound source element of the displayed device name is displayed. This is a screen for selecting one of the above as a connection destination. In this case, since it is detected that the keyboard element that can be logically connected to the tone generator element TGb is functioning only in the processing device SY1, a screen for selecting the device name SY1 is displayed on the screen B7. In this case, since the setting shown in FIG. 10 has already been performed and the setting for logical connection of keyboard element KBa-sound source element TGb has been completed, the device name SY1 in which the keyboard element KBa is functioning has already been selected. Is displayed with an underline. When the device name SY1 is selected as a keyboard element on the screen B7, the processing device in which the speaker element that can be logically connected to the sound source element is detected from the internal network, and the device name of the processing device is displayed. A screen B8 for selecting one of the speaker elements of the displayed device name as the connection destination is displayed. In this case, since the setting shown in FIG. 10 is performed and the setting for logical connection between the sound source element TGb and the speaker element SPa is completed, the device name SY1 in which the speaker element SPa is functioning is already selected. Is displayed with an underline. When the speaker element with the device name SY2 is selected on the screen B8, the sound source element TGb is set to be logically connected to the speaker element SPb in addition to the speaker element SPa. Thereby, each processing element logically connected in the internal network shown in FIG. 9 is determined, and the setting for logically connecting the keyboard element KBa and the sound source element TGb, the sound source element TGb, the speaker element SPa, and the speaker element SPb are set. The setting for logical connection ends, and the connection selection process for connecting the processing elements ends. If there are a plurality of processing devices in which the selected processing element is functioning, screens for selecting device names in order for all of them are sequentially displayed.

また、画面B4において終了を選択すると処理装置SY2の画面上に図11に示す画面B6が表示される。終了を選択したことにより、鍵盤要素−音源要素の順で論理接続する設定が行われたことになり、次に、それぞれの処理要素について内部ネットワーク上に複数の同じ処理要素がある場合はいずれかの処理要素を選択することになる。そこで、選択された鍵盤要素が機能している処理装置を装置テーブルを参照することにより内部ネットワークから検出して、その処理装置の装置名を画面B6に表示し、鍵盤要素が機能している表示された装置名のいずれかを接続先として選択させる。すなわち、画面B7とほぼ同様の画面が画面B6に表示され、ここで、装置名SY1の鍵盤要素を選択すると接続するそれぞれの処理要素が決定されて、鍵盤要素KBa−音源要素TGbの順で論理接続を行う設定が終了し、処理要素間の接続を行う接続選択処理は終了する。
なお、処理要素間の接続を行う接続選択処理が終了した際には、設定された接続情報が設定を行った処理装置の接続バッファに記録される。そして、後述する周期的に起動される接続確立処理が起動された際に、接続バッファの接続情報に基づいて接続確立処理が行われて論理接続が確立され、確立された接続情報がカレントバッファに記録されるようになる。
When the end is selected on the screen B4, a screen B6 shown in FIG. 11 is displayed on the screen of the processing device SY2. By selecting "End", the logical connection in the order of keyboard element-sound source element has been set. Next, if there are multiple identical processing elements on the internal network for each processing element This processing element is selected. Therefore, the processing device in which the selected keyboard element is functioning is detected from the internal network by referring to the device table, the device name of the processing device is displayed on the screen B6, and the display in which the keyboard element is functioning. One of the registered device names is selected as a connection destination. That is, a screen that is almost the same as the screen B7 is displayed on the screen B6. Here, when a keyboard element with the device name SY1 is selected, each processing element to be connected is determined, and the logic in the order of keyboard element KBa-sound source element TGb. The setting for connection ends, and the connection selection process for connecting the processing elements ends.
When the connection selection process for connecting the processing elements is completed, the set connection information is recorded in the connection buffer of the processing apparatus in which the setting has been made. Then, when a connection establishment process that is periodically started, which will be described later, is activated, a connection establishment process is performed based on the connection information in the connection buffer to establish a logical connection, and the established connection information is stored in the current buffer. It will be recorded.

図10および図11に示す設定画面により処理要素と処理要素との接続を設定する接続選択処理のフローチャートを図12に示す。
処理要素の接続を設定する処理装置において接続選択処理が起動されると、ステップS60にて図10の画面A1や図11の画面B1のように自機の全処理要素を画面に表示し、いずれかの処理要素の選択を受け付ける。ここで、いずれかの処理要素が選択されるとステップS61に進み、接続テーブルを参照して選択された処理要素が入力接続と出力接続とを持つか否かが判断される。ここで、選択された処理要素が入力接続と出力接続とを持たない場合はNOと判断されてステップS62に進み選択された処理要素に接続することのできる処理要素を表示し、表示された処理要素の選択を受け付ける画面を表示する。表示された処理要素のいずれかが選択されると、ステップS63にて選択された処理要素の先に続けて接続できる処理要素があれば、続けて接続するか終了するかのいずれかを選択させる画面を表示する。また、続けて接続できる処理要素がなければ、終了を選択させる画面を表示する。そして、処理要素の選択を終了する選択がされたか否かがステップS64にて判断される。ここで、「終了」を選択した場合はステップS65に進むが、続行すると選択した場合はステップS62に戻り、ステップS62ないしステップS64の処理が再度行われて前回選択された処理要素の先に続けて接続できる処理要素の選択処理が行われる。ステップS62ないしステップS64の処理は、先に続けて接続できる処理要素がなくなるまで、あるいは、終了が選択されるまで繰り返し実行される。
FIG. 12 shows a flowchart of connection selection processing for setting connection between processing elements on the setting screens shown in FIGS. 10 and 11.
When the connection selection process is started in the processing apparatus for setting the connection of the processing elements, all the processing elements of its own apparatus are displayed on the screen as shown in the screen A1 in FIG. 10 and the screen B1 in FIG. The selection of the processing element is accepted. If any processing element is selected, the process proceeds to step S61, and it is determined whether the selected processing element has an input connection and an output connection with reference to the connection table. Here, if the selected processing element does not have an input connection and an output connection, it is determined as NO, the process proceeds to step S62, and the processing elements that can be connected to the selected processing element are displayed, and the displayed process Displays a screen that accepts element selection. When one of the displayed processing elements is selected, if there is a processing element that can be connected subsequently to the processing element selected in step S63, either the connection or the termination is selected. Display the screen. If there is no processing element that can be connected subsequently, a screen for selecting the end is displayed. Then, in step S64, it is determined whether or not a selection to end the selection of the processing element has been made. Here, if “end” is selected, the process proceeds to step S65, but if it is selected to continue, the process returns to step S62, and the process from step S62 to step S64 is performed again to continue the processing element selected last time. The processing elements that can be connected are selected. The processes in steps S62 to S64 are repeatedly executed until there is no processing element that can be connected subsequently or until end is selected.

また、ステップS61にて選択された処理要素が入力接続と出力接続とを持つと検出された場合はステップS69に分岐して、まず、処理要素の入力に接続できる処理要素を表示して、表示された処理要素の選択を受け付ける画面を表示する。表示された処理要素のいずれかが選択されると、ステップS70にて選択された処理要素の先に続けて接続できる処理要素があれば、続けて接続するか終了するかのいずれかを選択させる画面を表示する。また、続けて接続できる処理要素がなければ、終了を選択させる画面を表示する。そして、処理要素の選択を終了する選択がされたか否かがステップS71にて判断される。ここで、終了すると選択した場合はステップS72に進むが、続行すると選択した場合はステップS69に戻り、ステップS69ないしステップS71の処理が再度行われて前回選択された処理要素の先に続けて接続できる処理要素の選択処理が行われる。ステップS69ないしステップS71の処理は、先に続けて接続できる処理要素がなくなるまで、あるいは、終了が選択されるまで繰り返し実行される。   If it is detected that the processing element selected in step S61 has an input connection and an output connection, the process branches to step S69. First, processing elements that can be connected to the input of the processing element are displayed and displayed. A screen for accepting selection of the processed element is displayed. When one of the displayed processing elements is selected, if there is a processing element that can be connected subsequently to the processing element selected in step S70, either the connection or the termination is selected. Display the screen. If there is no processing element that can be connected subsequently, a screen for selecting the end is displayed. Then, in step S71, it is determined whether or not a selection to end the selection of the processing element has been made. Here, if it is selected to end, the process proceeds to step S72. If it is selected to continue, the process returns to step S69, and the process from step S69 to step S71 is performed again to continue from the previously selected processing element. Processing element selection processing that can be performed is performed. The processing from step S69 to step S71 is repeatedly executed until there is no processing element that can be subsequently connected or until end is selected.

ステップS71にて終了が選択されたと判断されてステップS72に進むと、ステップS61にて選択された処理要素の出力に接続できる処理要素を表示して、表示された処理要素の選択を受け付ける画面を表示する。表示された処理要素のいずれかが選択されると、ステップS73にて選択された処理要素の先に続けて接続できる処理要素があれば、続けて接続するか終了するかのいずれかを選択させる画面を表示する。また、続けて接続できる処理要素がなければ、終了を選択させる画面を表示する。そして、処理要素の選択を終了する選択がされたか否かがステップS74にて判断される。ここで、終了すると選択した場合はステップS65に進むが、続行すると選択した場合はステップS72に戻り、ステップS72ないしステップS74の処理が再度行われて前回選択された処理要素の先に続けて接続できる処理要素の選択処理が行われる。ステップS72ないしステップS74の処理は、先に続けて接続できる処理要素がなくなるまで、あるいは、終了が選択されるまで繰り返し実行される。   When it is determined that the end is selected in step S71 and the process proceeds to step S72, a processing element that can be connected to the output of the processing element selected in step S61 is displayed, and a screen for accepting the selection of the displayed processing element is displayed. indicate. When one of the displayed processing elements is selected, if there is a processing element that can be connected subsequently to the processing element selected in step S73, it is selected whether to continue connection or end. Display the screen. If there is no processing element that can be connected subsequently, a screen for selecting the end is displayed. Then, in step S74, it is determined whether or not a selection to end the selection of the processing element has been made. Here, if it is selected to end, the process proceeds to step S65. If it is selected to continue, the process returns to step S72, and the process from step S72 to step S74 is performed again to continue from the previously selected processing element. Processing element selection processing that can be performed is performed. The processes in steps S72 to S74 are repeatedly executed until there is no processing element that can be connected subsequently or until end is selected.

ステップS64あるいはステップS74にて終了が選択されたと判断されてステップS65に進むと、装置テーブルを参照して選択された処理要素毎に該当する処理要素が機能している処理装置の装置名を表示して、表示された装置名のいずれかの選択を受け付ける画面を表示する。表示されたいずれかの装置名が選択されると、選択された装置名の処理装置で機能している処理要素が選択されるようになり、これにより設定された論理接続の接続情報を接続バッファにステップS66で記録する。この場合、連続して選択された論理接続は連続して通信を行うものとして対応付けて接続バッファに記録し、処理要素の入力と出力の接続が連続して選択されたときはそれらの間で通信が行われることを接続バッファに記録する。ステップS66の処理が終了すると、ステップS67にて自動フラグが「1」か否かが判定される。自動フラグは後述するデフォルトバッファの更新を行うか否かを示すフラグであり、自動フラグ「0」はデフォルトバッファの更新を行うことを示しており、自動フラグ「1」はデフォルトバッファの更新を行わないことを示している。各処理装置において電源オン時には、後述するようにデフォルトバッファに記録された接続を自動的に復元する処理が行われることから、ユーザが新たに接続を設定した場合は、その設定された接続を反映するようデフォルトバッファを更新するようにしている。そこで、ステップS67にて自動フラグが「1」と判定された場合はステップS68に分岐して、自動フラグを「0」にセットすることにより、接続選択処理において設定された接続が次回の電源オン時に自動的に復元されるようにしている。ステップS68の処理が終了すると、接続選択処理は終了する。また、ステップS67にて自動フラグが「1」でないと判定された場合は、自動フラグは「0」であることからそのまま接続選択処理は終了する。そして、後述する周期的に起動される接続確立処理が起動された際に、ステップS66において設定された接続情報が記録された接続バッファの接続情報に基づいて接続確立処理が行われて論理接続が確立され、確立された接続情報がカレントバッファに記録されるようになる。   When it is determined that the end has been selected in step S64 or step S74 and the process proceeds to step S65, the apparatus name of the processing apparatus in which the corresponding processing element is functioning is displayed for each processing element selected with reference to the apparatus table. Then, a screen for accepting selection of any of the displayed device names is displayed. When one of the displayed device names is selected, the processing element functioning in the processing device with the selected device name is selected, and the connection information of the logical connection thus set is displayed in the connection buffer. Is recorded in step S66. In this case, the logical connection selected in succession is recorded in the connection buffer in association with continuous communication, and when the input and output connections of the processing element are selected in succession, Record that communication is taking place in the connection buffer. When the process of step S66 ends, it is determined in step S67 whether or not the automatic flag is “1”. The automatic flag is a flag indicating whether or not to update the default buffer, which will be described later. The automatic flag “0” indicates that the default buffer is updated, and the automatic flag “1” updates the default buffer. It shows no. When the power is turned on in each processing device, the connection recorded in the default buffer is automatically restored as will be described later. Therefore, when the user newly sets a connection, the set connection is reflected. The default buffer is updated so that it does. Therefore, if the automatic flag is determined to be “1” in step S67, the process branches to step S68, and the automatic flag is set to “0”, so that the connection set in the connection selection process is turned on next time. Sometimes it is automatically restored. When the process of step S68 ends, the connection selection process ends. If it is determined in step S67 that the automatic flag is not “1”, the automatic flag is “0”, and the connection selection process is terminated. Then, when a connection establishment process that is periodically activated, which will be described later, is activated, the connection establishment process is performed based on the connection information stored in the connection buffer in which the connection information set in step S66 is recorded. The established connection information is recorded in the current buffer.

なお、図10および図11に示す接続選択処理が行われて処理要素の論理接続の設定が行われた場合に、接続バッファに記録される接続情報の例が図13に示されている。
図10に示す接続選択処理は処理装置SY1において、鍵盤要素KBaの接続から開始され、鍵盤要素KBaと処理装置SY2の音源要素TGbとの接続が設定されると共に、音源要素TGbと処理装置SY1のスピーカ要素SPaとの接続が設定されることから、図13に「●SY1鍵盤の例」として示すように、接続バッファには「出力1→SY2音源→SY1スピーカ」の接続情報が記録される。なお、「出力1」はSY1鍵盤の1番目の出力を意味している。
また、図11に示す接続選択処理は処理装置SY2において、音源要素TGbの接続から開始され、音源要素TGbの入力に処理装置SY1の鍵盤要素KBaを接続する設定と、音源要素TGbの出力に処理装置SY2のスピーカ要素SPbを接続する設定が行われることから、図13に「●SY2音源の例」として示すように、接続バッファには「入力1←SY1鍵盤」「入力1→出力1」「出力1→SY2スピーカ」の接続情報が記録される。ここで、「入力1←SY1鍵盤」「入力1→出力1」「出力1→SY2スピーカ」はSY1鍵盤から入力されたMIDIデータ(入力1)の、自機(SY2)の音源要素TGbでの処理結果(出力1)を、SY2スピーカへ出力する(対応付ける)ことを表わす接続情報である。
FIG. 13 shows an example of connection information recorded in the connection buffer when the connection selection process shown in FIGS. 10 and 11 is performed and the logical connection of the processing elements is set.
The connection selection process shown in FIG. 10 is started from the connection of the keyboard element KBa in the processing device SY1, the connection between the keyboard element KBa and the sound source element TGb of the processing device SY2 is set, and the connection between the sound source element TGb and the processing device SY1. Since the connection with the speaker element SPa is set, the connection information of “output 1 → SY2 sound source → SY1 speaker” is recorded in the connection buffer, as shown as “● SY1 keyboard example” in FIG. “Output 1” means the first output of the SY1 keyboard.
Further, the connection selection process shown in FIG. 11 is started from the connection of the sound source element TGb in the processing device SY2, and the setting for connecting the keyboard element KBa of the processing device SY1 to the input of the sound source element TGb and the processing of the output of the sound source element TGb are performed. Since the setting to connect the speaker element SPb of the device SY2 is performed, as shown in FIG. 13 as “● SY2 sound source example”, the connection buffer includes “input 1 ← SY1 keyboard”, “input 1 → output 1”, “ Connection information of “output 1 → SY2 speaker” is recorded. Here, “input 1 ← SY1 keyboard”, “input 1 → output 1”, and “output 1 → SY2 speaker” are MIDI data (input 1) input from the SY1 keyboard in the sound source element TGb of the own device (SY2). This is connection information indicating that the processing result (output 1) is output (associated) to the SY2 speaker.

次に、接続確立処理のフローチャートを図14に示す。接続確立処理は所定時間間隔で周期的に起動される。なお、接続確立処理において操作している処理装置と接続相手の処理装置間で通信される制御データは、あて先の処理装置のIPアドレスと予め定められている制御データ用のポート番号とを用いて通信される。
接続確立処理が起動されると、ステップS80にて接続バッファの記録内容から未処理の接続があるか否かが判定される。ここで、未処理の接続がないと判定された場合は接続確立処理はそのまま終了する。また、ステップS80にて未処理の接続があると判定された場合はステップS81に進み未処理の接続の一つを接続確立の対象とする。ここで確立する接続とは実体データの通信を行うためのポートの設定を意味している。次いで、ステップS82にてカレントバッファが参照され、対象とする接続が既に確立しているか否かを検出する。ここで、対象とする接続が既に確立されていると検出された場合は、新たな接続の確立を行わずステップS83に進む。ステップS83では、対象とする接続の先の接続があるか否かが検出され、先の接続がないと検出された場合は接続確立処理はそのまま終了する。また、ステップS83にて先の接続があると検出された場合はステップS84に進み接続指示を含むデータ部を作成する。この場合、対応付けがある場合は対応付けを指示する接続要求をデータ部に含める。接続指示は、接続相手に接続させる先の相手の指示とされ、接続相手の先に複数の接続が連続して設定されている場合にはそれらすべての情報を含めるようにする。
Next, a flowchart of the connection establishment process is shown in FIG. The connection establishment process is periodically started at predetermined time intervals. Note that the control data communicated between the processing device operated in the connection establishment process and the processing device of the connection partner uses the IP address of the destination processing device and a predetermined port number for control data. Communicated.
When the connection establishment process is activated, it is determined in step S80 whether or not there is an unprocessed connection from the recorded contents of the connection buffer. Here, if it is determined that there is no unprocessed connection, the connection establishment process ends as it is. If it is determined in step S80 that there is an unprocessed connection, the process proceeds to step S81, and one of the unprocessed connections is set as a connection establishment target. The connection established here means setting of a port for communicating actual data. Next, in step S82, the current buffer is referred to and it is detected whether or not the target connection has already been established. If it is detected that the target connection has already been established, the process proceeds to step S83 without establishing a new connection. In step S83, it is detected whether there is a destination connection that is the target connection. If it is detected that there is no destination connection, the connection establishment process ends as it is. If it is detected in step S83 that there is a previous connection, the process proceeds to step S84 to create a data portion including a connection instruction. In this case, if there is a correspondence, a connection request for instructing the correspondence is included in the data portion. The connection instruction is an instruction of the other party to be connected to the connection partner, and when a plurality of connections are continuously set at the connection partner, all the information is included.

また、ステップS82にてカレントバッファに対象とする接続の記録がされておらず、対象とする接続が未だ確立していないと検出された場合はステップS85に分岐し、接続要求と接続指示を含むデータ部を作成する。接続要求は、接続を確立する要求であり、対応付けがある場合は対応付けも指示する。接続指示は、接続相手に接続させる先の相手の指示とされ、接続相手の先に複数の接続が連続して設定されている場合にはそれらすべての情報を含めるようにする。ステップS84あるいはステップS85においてデータ部が作成されると、ステップS86にてデータ部を送信する送信処理が行われる。送信処理では、ステップS84あるいはステップS85において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、対象とする接続先の処理要素が機能している処理装置のMACアドレス(物理装置ID)が、MACフレームのMACヘッダにあて先MACアドレスとして設定される。   If it is detected in step S82 that the target connection is not recorded in the current buffer and the target connection is not yet established, the process branches to step S85, and includes a connection request and a connection instruction. Create a data division. The connection request is a request for establishing a connection, and when there is a correspondence, the association is also instructed. The connection instruction is an instruction of the other party to be connected to the connection partner, and when a plurality of connections are continuously set at the connection partner, all the information is included. When the data part is created in step S84 or step S85, transmission processing for transmitting the data part is performed in step S86. In the transmission process, the data part created in step S84 or step S85 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. 2 and transmitted over the internal network. The In this case, the MAC address (physical device ID) of the processing device in which the target processing element of the connection destination is functioning is set as the destination MAC address in the MAC header of the MAC frame.

接続確立の操作をしている処理装置からネットワーク上に送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS90)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。この結果、接続確立の操作をしている処理装置から送信されたMACフレームがあて先MACアドレスが一致する接続相手の処理要素が機能している処理装置で受信されて、受信処理が行われる(ステップS100)。受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。そして、ステップS101にて負荷分散処理が行われる。負荷分散処理は後述するが、要求された接続先のクライアントが新たな接続を確立できない状態にある場合に、要求された接続を同じ処理要素をもつ他のクライアントに変更することができる処理である。負荷分散処理が終了すると、ステップS102にて取得されたデータ部を解釈して要求された接続を確立する。また、対応付けの指示がある場合は対応付けも行われ、確立した接続の接続情報および対応付けがカレントバッファに記録される。接続確立では、装置テーブルを参照して対象とされる接続の接続相手の処理要素が機能している処理装置のIPアドレスと、当該処理要素の論理装置ID(ポート番号)が取得される。このIPアドレスとポート番号とにより処理装置における接続相手の処理要素を特定することができることから、IPアドレスとポート番号とを設定することにより対象とする接続を確立することができる。ステップS102の処理が終了するとステップS103に進み接続指示があるか否かが判定される。ここで、接続指示があると判定された場合は接続指示で指示された他の処理装置との接続を自己の接続バッファに記録してステップS105に進む。   The MAC frame transmitted to the network from the processing apparatus performing the connection establishment operation is received by the hub because it is a star-type internal network, and a route determination process is performed (step S90). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. As a result, the MAC frame transmitted from the processing device performing the connection establishment operation is received by the processing device in which the processing element of the connection partner whose destination MAC address matches is functioning, and the reception processing is performed (step). S100). In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. In step S101, load distribution processing is performed. As will be described later, the load balancing process is a process that can change the requested connection to another client having the same processing element when the requested connection destination client cannot establish a new connection. . When the load distribution process is completed, the requested connection is established by interpreting the data part acquired in step S102. When there is an instruction for association, association is also performed, and connection information and association of the established connection are recorded in the current buffer. In establishing a connection, an IP address of a processing device that is functioning as a processing element of a connection partner to be targeted is obtained by referring to the device table, and a logical device ID (port number) of the processing element is acquired. Since the processing element of the connection partner in the processing device can be specified by the IP address and the port number, the target connection can be established by setting the IP address and the port number. When the process of step S102 ends, the process proceeds to step S103 to determine whether there is a connection instruction. If it is determined that there is a connection instruction, the connection with the other processing apparatus instructed by the connection instruction is recorded in its own connection buffer, and the process proceeds to step S105.

また、ステップS103にてデータ部に接続指示があると検出されない場合は、ステップS105に分岐する。ステップS105では接続完了を含むデータ部が作成され、ステップS106にてデータ部を送信する送信処理が行われる。送信処理では、ステップS105において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、操作している処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。接続相手である処理装置からネットワーク上に送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS91)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。この結果、接続相手の処理装置から送信されたMACフレームがあて先MACアドレスが一致する接続確立処理が実行されている処理装置で受信されて、受信処理が行われる(ステップS87)。   If it is not detected in step S103 that there is a connection instruction in the data part, the process branches to step S105. In step S105, a data part including connection completion is created, and transmission processing for transmitting the data part is performed in step S106. In the transmission process, the data part created in step S105 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. 2 and transmitted on the internal network. In this case, the MAC address of the operating processing device is set as the destination MAC address in the MAC header of the MAC frame. Since the MAC frame transmitted from the processing apparatus as the connection partner to the network is a star-type internal network, the MAC frame is received by the hub, and a route determination process is performed (step S91). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. As a result, the MAC frame transmitted from the processing apparatus of the connection partner is received by the processing apparatus that is executing the connection establishment process with the matching destination MAC address, and the reception process is performed (step S87).

受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。そして、ステップS88にて取得されたデータ部を解釈して接続完了の返答(ACK)がされた接続を確立する。また、対応付けがある場合は対応付けも行われ、確立した接続の接続情報および対応付けがカレントバッファに記録される。接続確立では、装置テーブルを参照して対象とされる接続の接続相手の処理要素が機能している処理装置のIPアドレスと、当該処理要素の論理装置ID(ポート番号)が取得される。このIPアドレスとポート番号とにより処理装置における接続相手の処理要素を特定することができることから、IPアドレスとポート番号とを設定することにより対象とする接続を確立することができる。ステップS88の処理が終了すると接続確立処理は終了する。
なお、接続相手の処理装置の接続バッファに記録された接続情報に基づく接続確立は、接続相手の処理装置において接続確立処理が起動された際に、接続相手の処理装置が操作している処理装置となって、図14に示す接続確立処理が実行されることにより確立される。
In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. Then, the data part acquired in step S88 is interpreted to establish a connection with a connection completion response (ACK). If there is a correspondence, the correspondence is also performed, and the connection information and the correspondence of the established connection are recorded in the current buffer. In establishing a connection, an IP address of a processing device that is functioning as a processing element of a connection partner to be targeted is obtained by referring to the device table, and a logical device ID (port number) of the processing element is acquired. Since the processing element of the connection partner in the processing device can be specified by the IP address and the port number, the target connection can be established by setting the IP address and the port number. When the process of step S88 ends, the connection establishment process ends.
The connection establishment based on the connection information recorded in the connection buffer of the connection partner processing device is a processing device operated by the connection partner processing device when the connection establishment processing is started in the connection partner processing device. Thus, the connection establishment process shown in FIG. 14 is executed.

上述したように、接続確立処理が実行されることにより確立された接続の接続情報と対応付けがカレントバッファに記録される。そこで、カレントバッファに記録される接続情報と対応付けの例を図15に示す。この場合、カレントバッファには自処理装置において現在確立している実体データを通信するための接続が記録される。
図15に示す接続情報と対応付けは、図13に示すように記録された接続バッファの接続情報に基づいて接続確立処理を行った場合とされ、処理装置SY1のカレントバッファには処理装置SY1で機能している鍵盤要素KBa、音源要素TGaおよびスピーカ要素SPaのそれぞれの接続情報と対応付けが記録される。この場合、鍵盤要素KBaの接続情報と対応付けは「ポート1:出力→SY2音源」とされ、鍵盤要素KBaから出力されるMIDIデータを処理装置SY1のポート1からSY2音源へ出力する接続情報とされる。また、音源要素TGaは接続されていないことから接続情報と対応付けはなく、スピーカ要素SPaの接続情報と対応付けは「ポート2:入力←SY2音源」とされ、処理装置SY2の音源要素TGbから出力されるオーディオデータを処理装置SY1のポート2で受信することによりスピーカ要素SPaに入力される接続情報とされる。
As described above, the connection information and the association of the connection established by executing the connection establishment process are recorded in the current buffer. Therefore, FIG. 15 shows an example of association with connection information recorded in the current buffer. In this case, a connection for communicating entity data currently established in the own processing apparatus is recorded in the current buffer.
The connection information shown in FIG. 15 is associated with the case where the connection establishment process is performed based on the connection information recorded in the connection buffer as shown in FIG. 13, and the current buffer of the processing device SY1 is displayed in the processing device SY1. Connection information and association of each of the functioning keyboard element KBa, sound source element TGa, and speaker element SPa are recorded. In this case, the connection information of the keyboard element KBa is associated with “port 1: output → SY2 sound source”, and the MIDI data output from the keyboard element KBa is output from the port 1 of the processing device SY1 to the SY2 sound source. Is done. Further, since the sound source element TGa is not connected, there is no association with the connection information, and the connection information and association with the speaker element SPa is “port 2: input ← SY2 sound source”, and from the sound source element TGb of the processing device SY2. By receiving the output audio data at the port 2 of the processor SY1, the connection information is input to the speaker element SPa.

また、処理装置SY2のカレントバッファには処理装置SY2で機能している音源要素TGbとスピーカ要素SPbのそれぞれの接続情報と対応付けが記録される。この場合、音源要素TGbの接続情報と対応付けは「ポート1:入力←SY1鍵盤」、「ポート1→ポート2」、「ポート1→ポート3」、「ポート2:出力→SY1スピーカ」、「ポート3:出力→SY2スピーカ」とされている。「ポート1:入力←SY1鍵盤」は、処理装置SY1の鍵盤要素KBaから出力されるMIDIデータを処理装置SY2のポート1で受信することにより、音源要素TGbへ入力する接続情報である。「ポート1→ポート2」、「ポート1→ポート3」は、処理装置SY1の鍵盤要素KBaから入力されたMIDIデータの音源要素TGbでの処理結果であるオーディオデータをポート2およびポート3から出力する接続情報である。「ポート2:出力→SY1スピーカ」、「ポート3:出力→SY2スピーカ」は、音源要素TGbから出力されるオーディオデータをポート2から処理装置SY1のスピーカ要素SPaへ出力すること、および、音源要素TGbから出力されるオーディオデータをポート3から処理装置SY2のスピーカ要素SPbへ出力する接続情報である。スピーカ要素SPbの接続情報と対応付けは「ポート3:入力←SY2音源」とされ、処理装置SY2の音源要素TGbから出力されるオーディオデータをポート3で受信することによりスピーカ要素SPbに入力される接続情報と対応付けとされる。   Further, the connection information and the association between the sound source element TGb and the speaker element SPb functioning in the processing device SY2 are recorded in the current buffer of the processing device SY2. In this case, the connection information of the tone generator element TGb is associated with “port 1: input ← SY1 keyboard”, “port 1 → port 2”, “port 1 → port 3”, “port 2: output → SY1 speaker”, “ Port 3: Output → SY2 speaker ”. “Port 1: input ← SY1 keyboard” is connection information that is input to the sound source element TGb when MIDI data output from the keyboard element KBa of the processing device SY1 is received by the port 1 of the processing device SY2. “Port 1 → Port 2” and “Port 1 → Port 3” output from the port 2 and port 3 the audio data which is the processing result of the MIDI data input from the keyboard element KBa of the processing device SY1 in the sound source element TGb. Connection information. “Port 2: output → SY1 speaker” and “port 3: output → SY2 speaker” output audio data output from the sound source element TGb from the port 2 to the speaker element SPa of the processing device SY1, and the sound source element. This is connection information for outputting audio data output from the TGb from the port 3 to the speaker element SPb of the processing device SY2. The connection information and association of the speaker element SPb is “port 3: input ← SY2 sound source”, and the audio data output from the sound source element TGb of the processing device SY2 is received at the port 3 and input to the speaker element SPb. It is associated with connection information.

次に、図14に示す接続確立処理のステップS101において実行される負荷分散処理のフローチャートを図16および図17に示す。この場合、接続の確立を開始している(操作している)処理装置自身が負荷分散処理を行うことはなく、外部から接続相手としてアクセスされた接続相手の処理装置において負荷分散処理が行われる。なお、負荷分散処理において操作している処理装置と接続相手の処理装置間で通信される制御データは、あて先の処理装置のIPアドレスと予め定められている制御データ用のポート番号とを用いて通信される。
負荷分散処理が起動されると、ステップS200にて図3に示す装置テーブルにおける「負荷分散対象」の情報をみて負荷分散の実行を判断する必要があるか否かを判断する。すなわち、接続相手の処理装置における接続を確立する処理要素の「負荷分散対象」の欄に[○]が付されていれば負荷分散の実行を判断する必要があると判断してステップS201へ進み、[×]が付されていれば負荷分散の実行を判断する必要がないと判断して接続確立処理のステップS102にリターンされる。
Next, a flowchart of the load distribution process executed in step S101 of the connection establishment process shown in FIG. 14 is shown in FIGS. In this case, the processing device itself that has started (operating) establishment of connection does not perform load distribution processing, and load distribution processing is performed in the processing device of the connection partner accessed as the connection partner from the outside. . Note that the control data communicated between the processing device operated in the load balancing process and the processing device of the connection partner uses the IP address of the destination processing device and a predetermined port number for control data. Communicated.
When the load distribution process is activated, it is determined in step S200 whether or not it is necessary to determine the execution of load distribution by looking at the information of “load distribution target” in the device table shown in FIG. That is, if [○] is added to the “load distribution target” column of the processing element for establishing connection in the processing apparatus of the connection partner, it is determined that it is necessary to determine execution of load distribution, and the process proceeds to step S201. , [X] is attached, it is determined that it is not necessary to determine execution of load balancing, and the process returns to step S102 of the connection establishment process.

ステップS201では、自機の処理装置におけるCPU使用率が所定値を超えていると処理に時間遅れが生じるおそれがあることから負荷分散を行うと判断される。この場合、ソフトウェアではなくハードウェアで構成されている音源要素やミキサ要素やエフェクト要素は除外される。ここで、自機のCPU使用率が所定値を超えておらず負荷分散を行わないと判断された場合は、接続確立処理のステップS102にリターンされ、自機のCPU使用率が所定値を超えており負荷分散を行うと判断された場合はステップS202に進む。ステップS202では、図3に示す装置テーブルを参照して同じ処理要素が機能しているクライアント(処理装置)を全て抽出し、ステップS203にて抽出したクライアントを1つずつ順に対象とするよう抽出した内の1つの処理装置を対象とする。次いで、ステップS204にて対象とした処理装置に、新たな接続を追加することができるかを問い合わせるデータ部が作成され、ステップS205にてデータ部を送信する送信処理が行われる。送信処理では、ステップS204において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、対象の処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。接続相手の処理装置からネットワーク上に送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS210)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。この結果、接続相手の処理装置から送信されたMACフレームがあて先MACアドレスが一致する対象の処理装置で受信されて、受信処理が行われる(ステップS220)。   In step S201, when the CPU usage rate in the processing apparatus of the own machine exceeds a predetermined value, it is determined that load distribution is performed because there is a possibility that processing may be delayed. In this case, sound source elements, mixer elements, and effect elements configured by hardware instead of software are excluded. If it is determined that the CPU usage rate of the own device does not exceed the predetermined value and load distribution is not performed, the process returns to step S102 of the connection establishment process, and the CPU usage rate of the own device exceeds the predetermined value. If it is determined that load distribution is to be performed, the process proceeds to step S202. In step S202, all the clients (processing devices) in which the same processing elements are functioning are extracted with reference to the device table shown in FIG. 3, and the clients extracted in step S203 are extracted one by one in order. One of the processing devices is targeted. Next, in step S204, a data part for inquiring whether a new connection can be added to the target processing apparatus is created, and in step S205, transmission processing for transmitting the data part is performed. In the transmission process, the data part created in step S204 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated as shown in FIG. 2 is generated and transmitted on the internal network. In this case, the MAC address of the target processing device is set as the destination MAC address in the MAC header of the MAC frame. Since the MAC frame transmitted from the processing apparatus of the connection partner to the network is a star-type internal network, the MAC frame is received by the hub, and a route determination process is performed (step S210). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. As a result, the MAC frame transmitted from the processing apparatus of the connection partner is received by the target processing apparatus whose destination MAC address matches, and the reception process is performed (step S220).

受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。そして、ステップS221にて取得されたデータ部を解釈して新たな接続が追加できるかを判断する。ここで、対象とする処理装置においてCPUの使用率が高くなっており新たな接続を追加することができないと判断された場合は、ステップS223に進み新たな接続を追加できないことを示すデータ部が作成され、ステップS224にてデータ部を送信する送信処理が行われる。送信処理では、ステップS223において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、接続相手の処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、上記したと同様にして線路決定処理(S211)が行われて接続相手の処理装置においてMACフレームが受信されて受信処理(S206)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈されて新たな接続を追加できないことから、ステップS207にて他に問い合わせるクライアント(処理装置)があるか否かが判断される。ここで、ステップS202にて複数のクライアントが抽出されており、問い合わせていないクライアントがあると判断された場合は、ステップS203に戻りステップS203ないしステップS207の処理が問い合わせていないクライアントがなくなるまで繰り返し行われる。また、ステップS207にて問い合わせていないクライアントがないと判断された場合は図17に示すB以降の処理に移行する。   In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. Then, it is determined whether or not a new connection can be added by interpreting the data part acquired in step S221. Here, when it is determined that the CPU usage rate is high in the target processing apparatus and a new connection cannot be added, the process proceeds to step S223, and a data portion indicating that a new connection cannot be added is displayed. A transmission process is performed to transmit the data part in step S224. In the transmission process, the data part created in step S223 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated as shown in FIG. 2 is generated and transmitted on the internal network. In this case, the MAC address of the processing apparatus of the connection partner is set as the destination MAC address in the MAC header of the MAC frame. Then, the line determination process (S211) is performed in the same manner as described above, the MAC frame is received by the processing apparatus of the connection partner, and the reception process (S206) is performed. In the reception process, the data part is acquired from the MAC frame, and since the acquired data part is interpreted and a new connection cannot be added, it is determined whether there is another client (processing device) inquiring in step S207. Is done. If it is determined in step S202 that a plurality of clients have been extracted and there are clients that have not been inquired, the process returns to step S203, and the process of steps S203 to S207 is repeated until there are no clients that have not been inquired. Is called. If it is determined in step S207 that there is no client that has not inquired, the processing proceeds to the processing after B shown in FIG.

図17に示すB以降の処理に移行すると、ステップS230にて接続が確立不可能であることを示すデータ部が作成されて、ステップS231にてデータ部を送信する送信処理が行われる。送信処理では、ステップS230において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、操作している処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、上記したと同様にして線路決定処理(S240)が行われて操作している処理装置においてMACフレームが受信されて受信処理(S250)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈されて接続が確立不可能であることから、ステップS251にて接続が確立が不可能である旨の表示を行って負荷分散処理を終了させると共に接続確立処理を終了させる。   When the process proceeds to the process after B shown in FIG. 17, a data part indicating that a connection cannot be established is created in step S230, and a transmission process for transmitting the data part is performed in step S231. In the transmission process, the data part created in step S230 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated as shown in FIG. 2 is generated and transmitted on the internal network. In this case, the MAC address of the operating processing device is set as the destination MAC address in the MAC header of the MAC frame. Then, in the same manner as described above, the line determination process (S240) is performed and the processing device that is operating receives the MAC frame, and the reception process (S250) is performed. In the reception process, the data part is acquired from the MAC frame, and since the acquired data part is interpreted and the connection cannot be established, a display indicating that the connection cannot be established is displayed in step S251. The load distribution process is terminated and the connection establishment process is terminated.

また、ステップS222にて対象とする処理装置においてCPUの使用率が低くなっており新たな接続を追加できると判断された場合は、ステップS225に分岐し新たな接続を追加できることを示すデータ部が作成されて、ステップS226にてデータ部を送信する送信処理が行われる。送信処理では、ステップS225において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、接続相手の処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、上記したと同様にして線路決定処理(S212)が行われて接続相手の処理装置においてMACフレームが受信されて受信処理(S208)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈されて新たな接続を追加できるとされ、図17に示すA以降の処理に移行する。   If it is determined in step S222 that the CPU usage rate is low in the target processing device and a new connection can be added, a data portion is branched to step S225 to indicate that a new connection can be added. A transmission process is performed to transmit the data part in step S226. In the transmission process, the data part created in step S225 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. 2 and transmitted on the internal network. In this case, the MAC address of the processing apparatus of the connection partner is set as the destination MAC address in the MAC header of the MAC frame. Then, the line determination process (S212) is performed in the same manner as described above, the MAC frame is received by the processing apparatus at the connection partner, and the reception process (S208) is performed. In the reception process, the data part is acquired from the MAC frame, the acquired data part is interpreted and a new connection can be added, and the process proceeds to A and subsequent processes shown in FIG.

図17に示すA以降の処理に移行すると、ステップS232にて接続相手を、対象のクライアント(処理装置)へ変更することを示すデータ部が作成されて、ステップS233にてデータ部を送信する送信処理が行われる。送信処理では、ステップS232において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、操作している処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、上記したと同様にして線路決定処理(S241)が行われて操作している処理装置においてMACフレームが受信されて受信処理(S252)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈されて接続相手を対象のクライアントへ変更することから、ステップS253にて接続相手を対象のクライアントへ変更するよう接続バッファを書き換える。そして、負荷分散処理を終了させると共に接続確立処理を終了させる。書き換えられた接続バッファにおける接続相手を対象のクライアントへ変更する接続設定に基づく接続確立は、操作している処理装置において次回以降に接続確立処理が起動されて、その接続設定が接続の対象とされた際に確立する処理が実行される。
このように、負荷分散処理において負荷分散を行うと判断された場合は、負荷分散できる場合であってもできない場合であっても負荷分散処理が終了された際に、接続確立処理はステップS102以降の処理を行うことなく終了することになる。
When the process proceeds to A and after shown in FIG. 17, a data part indicating that the connection partner is changed to the target client (processing device) is created in step S232, and the data part is transmitted in step S233. Processing is performed. In the transmission process, the data part created in step S232 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated as shown in FIG. 2 is generated and transmitted on the internal network. In this case, the MAC address of the operating processing device is set as the destination MAC address in the MAC header of the MAC frame. Then, in the same way as described above, the line determination process (S241) is performed and the processing device that is operating receives the MAC frame, and the reception process (S252) is performed. In the reception process, the data part is acquired from the MAC frame, and the acquired data part is interpreted to change the connection partner to the target client. Therefore, in step S253, the connection buffer is changed to change the connection partner to the target client. Rewrite. Then, the load distribution process is terminated and the connection establishment process is terminated. In connection establishment based on the connection setting to change the connection partner in the rewritten connection buffer to the target client, the connection establishment process is started from the next time on the operating processing device, and the connection setting is targeted for connection. The process established at the time is executed.
As described above, when it is determined that the load distribution is performed in the load distribution process, the connection establishment process is performed after step S102 when the load distribution process is ended, regardless of whether the load distribution can be performed or not. The process ends without performing the process.

ところで、上記説明した接続選択処理はSV(サーバ)11において実行することもできる。SV(サーバ)11で実行される接続選択処理のフローチャートを図18に示す。なお、SV(サーバ)11と基点とされる処理装置間で通信される制御データは、あて先の処理装置のIPアドレスと予め定められている制御データ用のポート番号とを用いて通信される。
SV(サーバ)11において接続選択処理が起動されると、ステップS120にて装置テーブルを参照し、内部ネットワーク上の全処理装置を表示して、接続の基点とする処理装置の選択を受け付ける。ここで、接続の基点とする処理装置が選択されたことが検出されると、ステップS121にてSV(サーバ)11は選択された処理装置を基点とする接続の選択処理を実行し、接続の選択処理を行うことにより設定された内部ネットワーク上の全処理装置の接続内容をSV(サーバ)11に記憶する。次いで、ステップS122にて接続の選択処理を行うことにより設定された接続内容と、接続の基点とした処理装置へ接続内容の接続を確立することを指示する接続確立指示とを含むデータ部を作成する。
Incidentally, the connection selection process described above can also be executed in the SV (server) 11. A flowchart of the connection selection process executed by the SV (server) 11 is shown in FIG. Note that control data communicated between the SV (server) 11 and the processing device as the base point is communicated using the IP address of the destination processing device and a predetermined port number for control data.
When the connection selection process is started in the SV (server) 11, the apparatus table is referred to in step S120, all the processing apparatuses on the internal network are displayed, and the selection of the processing apparatus as the connection base point is accepted. Here, when it is detected that the processing device as the connection base point has been selected, in step S121, the SV (server) 11 executes connection selection processing using the selected processing device as the base point. The connection contents of all the processing apparatuses on the internal network set by performing the selection process are stored in the SV (server) 11. Next, a data part including a connection content set by performing a connection selection process in step S122 and a connection establishment instruction for instructing to establish a connection of the connection content to the processing device as a connection base point is created. To do.

次いで、ステップS123にて送信処理が行われる。送信処理では、ステップS122において作成されたデータ部が送信データとされて図2に示すように最終的にデータ部がカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。この場合、基点とされる処理装置のMACアドレス(物理装置ID)が、MACフレームのMACヘッダにあて先MACアドレスとして設定される。SV(サーバ)11からネットワーク上に送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS130)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。この結果、SV(サーバ)11から送信されたMACフレームがあて先MACアドレスが一致する基点として選択された処理装置で受信されて、受信処理が行われる(ステップS140)。受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。そして、ステップS141にて取得されたデータ部を解釈して接続確立指示された接続内容を接続バッファへ記録し、接続選択処理は終了する。
なお、基点の処理装置の接続バッファに記録された接続情報に基づく接続確立は、基点の処理装置において接続確立処理が起動された際に、基点の処理装置が操作している処理装置となって、図14に示す接続確立処理が実行されることにより確立される。
Next, transmission processing is performed in step S123. In the transmission process, the data part created in step S122 is used as transmission data, and finally a MAC frame in which the data part is encapsulated as shown in FIG. 2 is generated and transmitted on the internal network. In this case, the MAC address (physical device ID) of the processing device as the base point is set as the destination MAC address in the MAC header of the MAC frame. Since the MAC frame transmitted from the SV (server) 11 to the network is a star-type internal network, it is received by the hub, and a route determination process is performed (step S130). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. As a result, the MAC frame transmitted from the SV (server) 11 is received by the processing device selected as the base point having the same destination MAC address, and the reception process is performed (step S140). In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. Then, by interpreting the data part acquired in step S141, the connection contents instructed to establish connection are recorded in the connection buffer, and the connection selection process ends.
The connection establishment based on the connection information recorded in the connection buffer of the base processing device is a processing device that is operated by the base processing device when the connection establishment processing is started in the base processing device. It is established by executing the connection establishment process shown in FIG.

次に、音源要素において音色を変更する際に実行されるボイス変更処理のフローチャートを図19に示す。ボイス変更処理は、所定の間隔で周期的に起動される。ボイス変更処理は、要求されるボイスファイルが自機の処理装置にない場合に、ネットワーク上から要求されたボイスファイルを提供することができる処理である。
ボイス変更処理が起動されると、ステップS300にてボイス変更要求(プログラムチェンジ)が検出されたか否かが判断される。ここで、音色を変更する操作が行われたりネットワーク上からボイス変更の要求が行われてボイス変更要求が検出された場合はステップS301へ進み、ボイス変更要求が検出されない場合はそのままボイス変更処理は終了する。ステップS301では、要求されたボイスファイルがボイスメモリ内にあるか否かが判断される。この場合、ボイスメモリには複数のボイスファイルが記録されていて ボイスファイルごとに固有の識別情報が記録されている。ボイスファイルには音色データが記録されており、音色データは音色を合成できるPCM、FM、物理モデルなどの形式の音色データとされている。ステップS301ではボイスメモリ内の識別情報の中に要求されたボイスの識別情報と同じ識別情報があるか否かが判断される。ここで、要求されたボイスファイルがボイスメモリ内にあると判断された場合は、ステップS302に進んでボイスメモリから要求されたボイスファイルを取り出し、取り出したボイスファイルからステップS303にて音色データを取り出す。そして、取り出した音色データをステップS304にて操作している処理装置における音源要素に設定してボイス変更処理は終了する。設定とは、例えばMIDIデータを受信したときにPCMデータを生成できるように準備することである。
Next, FIG. 19 shows a flowchart of the voice change process executed when the tone color is changed in the sound source element. The voice change process is periodically started at predetermined intervals. The voice change process is a process capable of providing a requested voice file from the network when the requested voice file is not in the processing apparatus of the own device.
When the voice change process is activated, it is determined in step S300 whether a voice change request (program change) has been detected. Here, if an operation for changing the timbre is performed or a voice change request is detected from the network and a voice change request is detected, the process proceeds to step S301. If no voice change request is detected, the voice change process is continued. finish. In step S301, it is determined whether the requested voice file is in the voice memory. In this case, a plurality of voice files are recorded in the voice memory, and unique identification information is recorded for each voice file. The timbre data is recorded in the voice file, and the timbre data is timbre data in a format such as PCM, FM, or physical model that can synthesize the timbre. In step S301, it is determined whether or not the identification information in the voice memory includes the same identification information as the requested voice identification information. If it is determined that the requested voice file is in the voice memory, the process proceeds to step S302, where the requested voice file is extracted from the voice memory, and timbre data is extracted from the extracted voice file in step S303. . Then, the extracted timbre data is set as a sound source element in the processing apparatus operated in step S304, and the voice changing process is ended. For example, the setting is preparation so that PCM data can be generated when MIDI data is received.

また、ステップS301にて要求されたボイスファイルがボイスメモリ内にないと判断された場合は、ステップS305に分岐してネットワーク上に要求されたボイスファイルを提供できる処理装置があるか否かが判断される。ここでは、図3に示す装置テーブル中の論理装置IDごとに、「ボイスファイル提供」の欄を参照することによりボイスファイルを提供できる処理装置を検出する。あるいは、装置テーブルに音源の種類も登録しておき、ボイスファイルを提供できる処理装置を探す場合に、音源の種類まで含めて検索してい抽出するようにしてもよい。ここで、ネットワーク上に要求されたボイスファイルを提供できる処理装置があると判断された場合は、ステップS306に進み該当する処理装置を抽出して抽出した処理装置のリストを作成する。次いで、ステップS307にてリストの内の1つの処理装置を対象として、ステップS308にてボイスファイル要求と識別情報(プログラムチェンジ番号)とPCM、FM、物理モデルなどの音源の種類を含むデータ部を作成する。このデータ部はステップS309のネットワーク処理により問い合わせ相手の処理装置に送られるが、このネットワーク処理のフローチャートを図20に示す。   If it is determined in step S301 that the requested voice file is not in the voice memory, the process branches to step S305 to determine whether there is a processing device on the network that can provide the requested voice file. Is done. Here, for each logical device ID in the device table shown in FIG. 3, a processing device capable of providing a voice file is detected by referring to the “provide voice file” column. Alternatively, the type of sound source may be registered in the device table, and when searching for a processing device that can provide a voice file, the search may be performed including the type of sound source and extracted. If it is determined that there is a processing device that can provide the requested voice file on the network, the process proceeds to step S306 to extract the corresponding processing device and create a list of extracted processing devices. Next, in step S307, for one processing device in the list, in step S308, a data part including a voice file request, identification information (program change number), and a sound source type such as PCM, FM, physical model, etc. create. This data portion is sent to the processing device of the inquiry partner by the network processing in step S309. A flowchart of this network processing is shown in FIG.

図20に示すようにネットワーク処理では、ステップS308において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される送信処理がステップS320で行われる。この場合、問い合わせ相手の処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、線路決定処理(S330)が行われて問い合わせ相手の処理装置においてMACフレームが受信されて受信処理(S340)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈されて要求されたボイスファイルが自機の処理装置内にあるか否かが判断される。ここで、識別情報が一致すると共に音源の種類が一致するボイスファイルがあると判断された場合はそのボイスファイルをステップS342にてボイスメモリから取り出し、取り出したボイスファイルと要求されたボイスファイルがあったことを示すデータ部をステップS343で作成する。また、ステップS341にて要求されたボイスファイルがないと判断された場合は、ステップS344にて要求されたボイスファイルがなかったことを示すデータ部を作成する。そして、ステップS343で作成されたデータ部あるいはステップS344で作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される送信処理がステップS345で行われる。この場合、操作している処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、線路決定処理(S331)が行われて操作している処理装置においてMACフレームが受信されて受信処理(S321)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈される。以上がステップS309で実行されるネットワーク処理である。   As shown in FIG. 20, in the network processing, the data part created in step S308 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. The transmission process to be transmitted to is performed in step S320. In this case, the MAC address of the processing device of the inquiry partner is set as the destination MAC address in the MAC header of the MAC frame. Then, the line determination process (S330) is performed, the MAC frame is received by the processing apparatus of the inquiry partner, and the reception process (S340) is performed. In the reception process, the data part is acquired from the MAC frame, and the acquired data part is interpreted to determine whether or not the requested voice file exists in the processing apparatus of the own apparatus. If it is determined that there is a voice file with the same identification information and the same sound source type, the voice file is extracted from the voice memory at step S342, and the extracted voice file and the requested voice file are found. A data portion indicating this is created in step S343. If it is determined in step S341 that there is no requested voice file, a data portion indicating that there is no requested voice file is created in step S344. Then, the data part created in step S343 or the data part created in step S344 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. The transmission process transmitted above is performed in step S345. In this case, the MAC address of the operating processing device is set as the destination MAC address in the MAC header of the MAC frame. Then, the MAC frame is received by the processing apparatus that is operating by performing the line determination process (S331), and the reception process (S321) is performed. In the reception process, the data part is acquired from the MAC frame, and the acquired data part is interpreted. The above is the network processing executed in step S309.

ステップS309のネットワーク処理が終了すると、ステップS310にて解釈されたデータ部にボイスファイルがあるか否かが判断される。ここで、データ部において要求されたボイスファイルがあったことが示されており、要求されたボイスファイルがある場合は、ステップS313に分岐してボイスファイルが取り出されてステップS303、ステップS304の処理が行われ、ボイスファイルから音色データを取り出して、その音色データを音源に設定する処理が行われる。また、データ部において要求されたボイスファイルがなかったことが示されており、要求されたボイスファイルがない場合は、ステップS311に進み、まだ問い合わせていない処理装置があるか否かが判断される。ここで、問い合わせていない処理装置があると判断された場合は、ステップS307に戻りステップS307ないしステップS311の処理が再度行われて、要求されたボイスファイルを取得できるようにする。この処理はステップS306で抽出した処理装置の1つ1つについて順番に最後まで処理が実行される。そして、ステップS311にて問い合わせていない処理装置がないと判断された場合は、ステップS312に進んで要求されたボイスファイルがなかった旨のメッセージを表示部に表示してボイス変更処理は終了する。   When the network processing in step S309 ends, it is determined whether or not there is a voice file in the data portion interpreted in step S310. Here, it is indicated that there is a requested voice file in the data part, and when there is a requested voice file, the process branches to step S313 to extract the voice file, and the processes of steps S303 and S304 are performed. The timbre data is extracted from the voice file, and the timbre data is set as the sound source. If the requested voice file is not found in the data section, and if there is no requested voice file, the process proceeds to step S311 to determine whether there is a processing device that has not yet been inquired. . Here, if it is determined that there is a processing device that has not been inquired, the process returns to step S307, and the processing of steps S307 to S311 is performed again so that the requested voice file can be acquired. This process is executed in order for each of the processing devices extracted in step S306. If it is determined in step S311 that there is no processing apparatus that has not inquired, the process proceeds to step S312 to display a message indicating that there is no requested voice file on the display unit, and the voice changing process ends.

ところで、本発明にかかる楽音発生システムにおいては、各処理装置上で行われる各種の設定を不揮発性のデフォルトバッファへ順次記録しておいて、次回の電源オン時には、記録されている設定(前回の電源オフ前の最新の設定)を読み出して自動的に復元するようにしている。そこで、電源オン時に実行される自動設定処理のフローチャートを図21に示す。
内部ネットワークに接続されている処理装置の電源が投入され新たに処理装置が接続(ログイン)されると、前記したように図6に示すネットワーク接続処理が実行される。そして、ネットワーク接続処理が終了すると引き続いて自動設定処理が起動される。自動設定処理が起動されると、ステップS350にて新クライアントとなった処理装置のデフォルトバッファから接続対象とされている処理要素の一つが読み出される。次いで、読み出された処理要素がネットワーク上にあるか否かがステップS351にて判断される。ここで、ネットワーク接続処理においてSV(サーバ)11から取得した装置テーブルを参照して読み出された処理要素がネットワーク上にあると判断された場合は、ステップS352に進んで当該処理要素が利用できるかを問い合わせるデータ部を作成する。問い合わせは、当該処理要素の入力側と出力側の必要なすべてに対して行う。
By the way, in the musical tone generating system according to the present invention, various settings performed on each processing device are sequentially recorded in a non-volatile default buffer. The latest setting before power off) is read and restored automatically. FIG. 21 shows a flowchart of the automatic setting process executed when the power is turned on.
When the processing device connected to the internal network is turned on and a processing device is newly connected (logged in), the network connection processing shown in FIG. 6 is executed as described above. When the network connection process is completed, the automatic setting process is subsequently started. When the automatic setting process is activated, one of the processing elements to be connected is read from the default buffer of the processing apparatus that has become the new client in step S350. Next, it is determined in step S351 whether or not the read processing element is on the network. Here, when it is determined that the processing element read by referring to the device table acquired from the SV (server) 11 in the network connection process is on the network, the process proceeds to step S352 and the processing element can be used. Create a data part to inquire about. Inquiries are made to all necessary inputs and outputs of the processing element.

そして、ステップS352で作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成され、内部ネットワーク上に送信される送信処理がステップS353で行われる。この場合、接続対象の処理要素が機能している処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、線路決定処理(S370)が行われて接続対象の処理要素が機能している処理装置においてMACフレームが受信され、接続対象の処理要素において受信処理(S380)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が処理要素が利用できるかの問い合わせであると解釈される。そこで、ステップS381にて処理要素が利用できるか否かが判断される。ここで、利用できるかの問い合わせがされた処理要素において、入力側と出力側の問い合わせのすべてについて利用できるかを判断する。ここで、カレントバッファの記録内容を参照して問い合わせのあった処理要素の入力側と出力側における接続を検出し、未だ他の処理要素と接続されていないと検出された場合は問い合わせのあった処理要素が利用できると判断されてステップS382に進む。ステップS382では、問い合わせのあった処理要素が利用できることを示すデータ部を作成する。また、既に他の処理要素と接続されていると検出された場合は、ステップS381にて問い合わせのあった処理要素が利用できないと判断されてステップS383に分岐する。ステップS383では、問い合わせのあった処理要素が利用できないことを示すデータ部を作成する。   Then, the data part created in step S352 is set as transmission data, and a MAC frame in which the transmission data is finally encapsulated as shown in FIG. 2 is generated, and the transmission process is transmitted to the internal network in step S353. Done in In this case, the MAC address of the processing device in which the processing element to be connected is functioning is set as the destination MAC address in the MAC header of the MAC frame. Then, the line determination process (S370) is performed, and the MAC frame is received in the processing device in which the connection target processing element functions, and the reception process (S380) is performed in the connection target processing element. In the reception process, the data part is acquired from the MAC frame, and the acquired data part is interpreted as an inquiry as to whether the processing element can be used. Therefore, in step S381, it is determined whether the processing element can be used. Here, in the processing element inquired whether it can be used, it is determined whether it can be used for all of the inquiries on the input side and the output side. Here, referring to the recorded contents of the current buffer, the connection on the input side and the output side of the processing element that was inquired is detected, and if it is detected that it is not yet connected to another processing element, there was an inquiry It is determined that the processing element can be used, and the process proceeds to step S382. In step S382, a data portion indicating that the processing element for which the inquiry has been made can be used is created. If it is detected that the processing element is already connected to another processing element, it is determined that the processing element inquired in step S381 cannot be used, and the process branches to step S383. In step S383, a data part indicating that the inquired processing element cannot be used is created.

そして、ステップS382で作成されたデータ部あるいはステップS383で作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成され、内部ネットワーク上に送信される送信処理がステップS384で行われる。この場合、新クライアントである処理装置のMACアドレスが、MACフレームのMACヘッダにあて先MACアドレスとして設定される。そして、線路決定処理(S371)が行われて新クライアントの処理装置においてMACフレームが受信され、接続対象の処理要素において受信処理(S354)が行われる。受信処理では、MACフレームからデータ部が取得され、取得されたデータ部が解釈される。次いで、ステップS355にて問い合わせた処理要素が利用できるか否かが判断されるが、受信されたデータ部を解釈してデータ部が利用できることを示すデータ部であった場合は、利用できると判断されてステップS357へ進む。ステップS357ではデフォルトバッファから読み出していない接続対象の処理要素があるか否かが判断される。   Then, the data part created in step S382 or the data part created in step S383 is set as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. The transmission process to be transmitted to is performed in step S384. In this case, the MAC address of the processing device as the new client is set as the destination MAC address in the MAC header of the MAC frame. Then, the line determination process (S371) is performed, the MAC frame is received by the processing device of the new client, and the reception process (S354) is performed by the processing element to be connected. In the reception process, the data part is acquired from the MAC frame, and the acquired data part is interpreted. Next, it is determined whether or not the processing element inquired in step S355 can be used. If the received data part is a data part indicating that the data part can be used, it is determined that it can be used. Then, the process proceeds to step S357. In step S357, it is determined whether there is a processing element to be connected that has not been read from the default buffer.

ところで、前記したステップS351にて装置テーブルを参照して読み出された処理要素がネットワーク上にないと判断された場合は、ステップS356に分岐してデフォルトの接続はしなかった旨の表示を表示部に行い、自動設定処理は終了する。この場合、処理要素が装置テーブルに登録されていない場合は、「登録されていません」とのメッセージを表示しても良い。また、ステップS355にて受信されたデータ部を解釈してデータ部が利用できないことを示すデータ部であった場合は、利用できないと判断されてステップS356に分岐しデフォルトの接続はしなかった旨の表示を表示部に行い、自動設定処理は終了する。この場合、処理要素が他に接続されている場合は、「他に利用されております」とのメッセージを表示しても良い。   If it is determined in step S351 that the processing element read with reference to the device table is not on the network, the process branches to step S356 to display a display indicating that the default connection has not been made. The automatic setting process ends. In this case, if the processing element is not registered in the device table, a message “not registered” may be displayed. If the data part received in step S355 is a data part indicating that the data part cannot be used, it is determined that the data part cannot be used and the process branches to step S356 and the default connection is not established. Is displayed on the display unit, and the automatic setting process ends. In this case, if the processing element is connected to another, a message “used elsewhere” may be displayed.

ステップS357では、デフォルトバッファから読み出していない接続対象の処理要素が残っていると判断された場合は、ステップS350へ戻りステップS350ないしステップS357の上記した処理が、読み出していない接続対象の処理要素がなくなったとステップS357で判断されるまで繰り返し行われる。そして、ステップS357において読み出していない接続対象の処理要素がなくなったと判断されると、ステップS358へ進んで利用できるとされた処理要素の接続の情報を接続バッファに書き込み、ステップS359へ進む。ステップS359では自動フラグが「1」にセットされて自動設定処理は終了する。自動フラグ「1」は、前述したようにデフォルトバッファの更新を行なわないことを示すフラグであるが、上記したようにデフォルトバッファに記録されている接続を復元することを示すフラグでもある。また、自動設定処理においてはデフォルトバッファの接続が一つでもできない場合は、デフォルトバッファの全ての接続を行わないように、デフォルトバッファの接続の情報を接続バッファに書き込まないようにしている。この場合、自動フラグは「0」の状態を維持するようになり、自動フラグ「0」はデフォルトバッファに記録されている接続を行わないことを示すフラグでもある。
なお、ネットワーク接続時にデフォルトバッファに基づく接続を行うか否かを、ユーザが選択できるようにしてもよい。
In step S357, if it is determined that there remains a connection target processing element that has not been read from the default buffer, the process returns to step S350, and the above-described processing in steps S350 to S357 determines that the connection target processing element that has not been read. The process is repeated until it is determined in step S357 that there is no more. If it is determined in step S357 that there are no connection target processing elements that have not been read, the process proceeds to step S358 to write connection information of processing elements that can be used to the connection buffer, and the process proceeds to step S359. In step S359, the automatic flag is set to “1” and the automatic setting process ends. The automatic flag “1” is a flag indicating that the default buffer is not updated as described above, but is also a flag indicating that the connection recorded in the default buffer is restored as described above. In addition, in the automatic setting process, if even one default buffer cannot be connected, the default buffer connection information is not written to the connection buffer so that all connections of the default buffer are not performed. In this case, the automatic flag maintains the state of “0”, and the automatic flag “0” is also a flag indicating that the connection recorded in the default buffer is not performed.
Note that the user may be able to select whether or not to make a connection based on the default buffer when connecting to the network.

そして、上述した周期的に起動される図14に示す接続確立処理が実行されて終了した際に、引き続いて実行されるフラグ処理のフローチャートを図22に示す。
フラグ処理が起動されると、ステップS390にて自動フラグが「0」か否かが判断される。ここで、デフォルトバッファの接続が更新されなかった場合および接続選択処理が行われた場合は自動フラグが「0」になっていると判断され、ステップS391に進んでカレントバッファに接続情報が記録されているか否かが判断される。ここで、デフォルトバッファの接続が復元されておらず、手動で設定された接続や外部から要求されて設定された接続もなされていない場合は、カレントバッファに接続情報が記録されておらずカレントバッファが空と判断されてそのままフラグ処理は終了する。また、手動で設定された接続や外部から要求されて設定された接続があり、カレントバッファに接続情報が記録されている場合は、ステップS392にてカレントバッファに記録されている接続情報をデフォルトバッファに記録してフラグ処理は終了する。これにより、手動で設定された接続や外部から要求されて設定された接続の接続情報が反映されているカレントバッファの接続情報で、デフォルトバッファが更新されるようになる。また、デフォルトバッファの接続が復元されるだけで、手動で設定された接続や外部から要求されて設定された接続がなされていない場合は、ステップS390において自動フラグが「1」と判断され、デフォルトバッファの更新を行うことなくそのままフラグ処理は終了する。
これにより、新クライアントが内部ネットワークに接続された際に接続対象の処理要素の全てが利用できる場合は、前回の電源オフ前の完全な接続状態に復元されることになる。また、接続対象の処理要素の少なくとも一部を利用することができず、前回の電源オフ前の接続状態が復元されない場合にログオフしても、その不完全な接続状態はデフォルトバッファに記録されないことから、次回ログオン時に不完全な接続状態が復元されることを防止することができるようになる。
FIG. 22 shows a flowchart of flag processing that is subsequently executed when the above-described periodically started connection establishment processing shown in FIG. 14 is executed and terminated.
When the flag process is activated, it is determined in step S390 whether or not the automatic flag is “0”. Here, when the connection of the default buffer is not updated or when the connection selection process is performed, it is determined that the automatic flag is “0”, and the process proceeds to step S391 and the connection information is recorded in the current buffer. It is determined whether or not. If the default buffer connection has not been restored, and there is no connection set manually or requested from outside, connection information is not recorded in the current buffer. Is determined to be empty, and the flag processing ends as it is. If there is a manually set connection or a connection set by request from the outside, and connection information is recorded in the current buffer, the connection information recorded in the current buffer is changed to the default buffer in step S392. And flag processing ends. As a result, the default buffer is updated with the connection information of the current buffer in which the connection information of the connection set manually and the connection requested and set from the outside is reflected. If the connection of the default buffer is only restored and the connection set manually or not requested from the outside is set, the automatic flag is determined to be “1” in step S390, and the default buffer is restored. The flag process ends without updating the buffer.
As a result, when all of the connection target processing elements are available when the new client is connected to the internal network, the connection state is restored to the complete connection state before the previous power-off. In addition, at least a part of the processing elements to be connected cannot be used, and even if you log off when the connection state before the previous power-off is not restored, the incomplete connection state is not recorded in the default buffer. Therefore, it is possible to prevent an incomplete connection state from being restored at the next logon.

ところで、図6に示すネットワーク接続処理、図7に示すネットワーク切断処理、図10ないし図12に示す接続選択処理、図14ないし図16に示す接続確立処理と負荷分散処理、図18に示すSV(サーバ)11において実行される接続選択処理、図19および図20に示すボイス変更処理、図21に示す自動設定処理、図22に示すフラグ処理を、これらの処理を行う処理装置においてブラウザソフトウェアを立ち上げてブラウザを利用して実行することができる。ブラウザでは、HTTP(HyperText Transfer Protocol)よるファイル転送を行え、HTML(Hyper Text Markup Language)で記述されたハイパーテキストを解読し表示することができる。この場合、ブラウザに必要とする設定画面や選択画面を表示させて、ユーザが画面上で設定や選択を行えるようになる。そして、制御データの通信はHTTPに用意されているファイル要求を行える”GET”、任意のデータを送る”POST”やファイルの更新を行える”PUT”等のリクエスト・メソッドを用いて行うことができる。なお、HTTPで使用されるポート番号は一般に80番とされるが、これに限るものではない。   6, the network disconnection process shown in FIG. 7, the connection selection process shown in FIGS. 10 to 12, the connection establishment process and the load distribution process shown in FIGS. 14 to 16, and the SV ( The connection selection process executed in the server 11, the voice change process shown in FIGS. 19 and 20, the automatic setting process shown in FIG. 21, and the flag process shown in FIG. Can be executed using a browser. The browser can perform file transfer using HTTP (HyperText Transfer Protocol), and can decode and display hypertext described in HTML (Hyper Text Markup Language). In this case, a setting screen and a selection screen necessary for the browser are displayed, and the user can perform setting and selection on the screen. Communication of control data can be performed using a request method such as “GET” that can make a file request prepared in HTTP, “POST” that sends arbitrary data, and “PUT” that can update a file. . Note that the port number used in HTTP is generally 80, but is not limited thereto.

次に、各処理要素の説明を行う。まず、音源要素の機能ブロック図を図23に示す。図示するように音源要素TGは、受信ポートからMIDIデータを受信して処理順に記録する受信バッファ100と、音源要素TGの内臓MIDIクロックのタイミングにあわせて、受信バッファ100から処理すべきMIDIデータを順次に読み出して、そのMIDIデータを楽音合成部102に供給する読出部101と、供給されたMIDIデータのノートデータで音高を決定すると共に、プログラムチェンジデータで音色を決定し、さらに、コントロールチェンジデータで音量やエフェクト量などの制御量を決定して、決定された情報でPCMデータの楽音を生成する楽音合成部102と、楽音合成部102で生成されたPCMデータを発生順に記録する送信バッファ103から構成されている。受信バッファ100は音源要素の受信ポートから実体データ(MIDIデータ)を受信し、送信バッファ103は音源要素の送信ポートから実体データ(PCMデータ)を送信する。なお、受信ポートのポート番号は図3に示される装置テーブルに記録されている該当する音源要素の論理装置IDであり、送信ポートは送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。また、送信バッファ103から送信されるPCMデータはMP3データとして圧縮して送信するようにしてもよい。   Next, each processing element will be described. First, a functional block diagram of the sound source element is shown in FIG. As shown in the figure, the sound source element TG receives the MIDI data from the reception port and records the received MIDI data to be processed from the reception buffer 100 in accordance with the timing of the built-in MIDI clock of the sound source element TG. The reading unit 101 that sequentially reads out the MIDI data to the tone synthesizing unit 102, the pitch is determined by the note data of the supplied MIDI data, the tone is determined by the program change data, and the control change A sound synthesis unit 102 that determines a control amount such as a volume and an effect amount from data and generates a musical tone of PCM data with the determined information, and a transmission buffer that records the PCM data generated by the musical tone synthesis unit 102 in the order of generation 103. The reception buffer 100 receives entity data (MIDI data) from the reception port of the sound source element, and the transmission buffer 103 transmits entity data (PCM data) from the transmission port of the sound source element. The port number of the reception port is the logical device ID of the corresponding sound source element recorded in the device table shown in FIG. 3, and a random port number is assigned to the transmission port when transmitting, but a fixed port It is good also as a number. Further, the PCM data transmitted from the transmission buffer 103 may be compressed and transmitted as MP3 data.

次に、鍵盤要素の機能ブロック図を図24に示す。図示するように鍵盤要素KBは、ハードウェアの操作子111と、操作子111の操作を検出して、発生されたMIDIデータのタイミングデータを内蔵MIDIクロックに基づいて発生する操作検出部112と、操作検出部112からのMIDIデータとタイミングデータを組にして発生順に記録する送信バッファ113とから構成されている。送信バッファ113は鍵盤要素の送信ポートからMIDIデータである実体データを送信する。なお、送信ポートは送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。
次に、スピーカ要素の機能ブロック図を図25に示す。図示するようにスピーカ要素SPは、受信ポートから受信したPCMデータを処理順に記録する受信バッファ121と、サンプリング周波数fsのタイミングにあわせてPCMデータを1サンプルずつ受信バッファ121から取り出してDA変換部123へ供給する読出部122と、読出部122から供給されたPCMデータをアナログのオーディオ信号に変換するDA変換部123と、DA変換部123からのオーディオ信号を増幅して放音するスピーカを備える出力部124とから構成されている。受信バッファ121はスピーカ要素の受信ポートから実体データ(PCMデータ)を受信する。なお、受信ポートのポート番号は図3に示される装置テーブルに記録されている該当するスピーカ要素の論理装置IDである。
Next, a functional block diagram of the keyboard elements is shown in FIG. As shown in the figure, the keyboard element KB includes a hardware operator 111, an operation detection unit 112 that detects the operation of the operator 111, and generates timing data of generated MIDI data based on a built-in MIDI clock. The transmission buffer 113 is configured to record MIDI data and timing data from the operation detection unit 112 in pairs in the order of occurrence. The transmission buffer 113 transmits entity data which is MIDI data from the transmission port of the keyboard element. The transmission port is assigned a random port number when transmitting, but may be a fixed port number.
Next, a functional block diagram of the speaker element is shown in FIG. As shown in the figure, the speaker element SP includes a reception buffer 121 that records PCM data received from the reception port in the order of processing, and extracts the PCM data from the reception buffer 121 sample by sample in accordance with the timing of the sampling frequency fs. An output provided with a reading unit 122 to be supplied to, a DA conversion unit 123 that converts the PCM data supplied from the reading unit 122 into an analog audio signal, and a speaker that amplifies and emits the audio signal from the DA conversion unit 123 Part 124. The reception buffer 121 receives entity data (PCM data) from the reception port of the speaker element. The port number of the reception port is the logical device ID of the corresponding speaker element recorded in the device table shown in FIG.

次に、DSPユニットの機能ブロック図を図26に示す。DSPユニットDUは処理装置であり機能している処理要素を切り替えられるようにされている。DSPユニットDUは、処理要素を実現するためのDSPが実行する処理要素毎のマイクロプログラムとパラメータが記録されている処理装置記憶部133と、切替指示を検出して切替部131へ設定すべき処理要素の情報を含む切り替えを指示する切替検出部132と、切替指示で指示された処理要素のマイクロプログラムとパラメータを処理装置記憶部133から読み出して複数のDSPを有する信号処理部134へ設定する切替部131と、設定されたマイクロプログラムとパラメータに基づいて信号処理を行う信号処理部134とから構成されている。信号処理部134が信号処理を行うことにより、DSPユニットDUはマイクロプログラムに対応する処理要素として機能するようになる。すなわち、DSPユニットDUは、図23ないし図25に示す機能ブロックの処理要素のいずれかとしてとして機能することができる。なお、処理要素が切り替えられた際には、カレントバッファから変更前の処理要素の接続を切断するようにかかる接続の情報を削除する。   Next, a functional block diagram of the DSP unit is shown in FIG. The DSP unit DU is a processing device and is configured to switch functioning processing elements. The DSP unit DU includes a processing device storage unit 133 in which a microprogram and parameters for each processing element executed by the DSP for realizing the processing element are recorded, and a process to be set in the switching unit 131 by detecting a switching instruction. Switching detector 132 for instructing switching including element information, and switching for reading the processing element microprogram and parameters instructed by the switching instruction from the processing device storage unit 133 and setting them in the signal processing unit 134 having a plurality of DSPs Section 131 and a signal processing section 134 that performs signal processing based on the set microprogram and parameters. When the signal processing unit 134 performs signal processing, the DSP unit DU functions as a processing element corresponding to the microprogram. That is, the DSP unit DU can function as any of the processing elements of the functional blocks shown in FIGS. When the processing element is switched, the connection information is deleted from the current buffer so as to disconnect the connection of the processing element before the change.

DSPユニットDUにおいて処理要素が切り替えられた際に、切り替えられたことを通知する通知処理のフローチャートを図27に示す。
DSPユニットDUにおいて処理要素を切り替える切替指示が検出されると通知処理が起動される(ステップS150)。次いで、ステップS151にて切替指示されたマイクロプログラムとパラメータを設定して処理要素を機能させる。さらに、ステップS152にて自機情報と変更要求を含むデータ部を作成する。この場合の自機情報は、論理装置ID、IPアドレス(IPアドレスは内部ネットワークにログインした際にDHCPサーバから割り当てられている)、物理装置ID、装置名、信号処理部134に設定した処理要素名とその処理IDの情報であり、変更要求とは、SV(サーバ)11にある装置テーブルのデータを添付した自機情報で書き換える要求とされる。次いで、ステップS153にて送信処理が行われる。送信処理では、ステップS152において作成されたデータ部が送信データとされて図2に示すように最終的にMACフレームが生成されて、内部ネットワーク上に送信される。MACフレームのMACヘッダにはあて先MACアドレスとしてSV(サーバ)11のMACアドレス(物理装置ID)が設定される。
FIG. 27 shows a flowchart of notification processing for notifying that the processing element has been switched when the processing element is switched in the DSP unit DU.
When a switching instruction to switch processing elements is detected in the DSP unit DU, notification processing is activated (step S150). Next, the microprogram and parameter instructed to switch in step S151 are set to cause the processing element to function. Further, in step S152, a data part including own device information and a change request is created. In this case, the own device information includes logical device ID, IP address (IP address is assigned by the DHCP server when logging in to the internal network), physical device ID, device name, and processing element set in the signal processing unit 134. The change request is a request to rewrite the device table data in the SV (server) 11 with the own device information attached thereto. Next, transmission processing is performed in step S153. In the transmission process, the data part created in step S152 is used as transmission data, and finally a MAC frame is generated as shown in FIG. 2 and transmitted on the internal network. In the MAC header of the MAC frame, the MAC address (physical device ID) of the SV (server) 11 is set as the destination MAC address.

DSPユニットDUから送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS161)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。これにより、DSPユニットDUから送信されたMACフレームがあて先MACアドレスが一致するSV(サーバ)11で受信されて、受信処理が行われる(ステップS170)。受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。そして、取得されたデータ部を解釈して変更要求があることから変更要求処理を行うと判断する。次いで、ステップS171にてデータ部におけるDSPユニットDUの自機情報で装置テーブルを書き換えて、ステップS172にて変更後の装置テーブルと変更要求を含むデータ部を作成する。このデータ部は、ステップS173で送信処理が行われることにより内部ネットワーク上に送信される。この送信処理は、前述したステップS153の送信処理と同様の処理とされるが、あて先MACアドレスにはオール”1”のブロードキャストアドレス(FF-FF-FF-FF-FF-FF)が設定され、あて先IPアドレスもブロードキャストアドレスが設定される。この場合、図3に示す装置テーブルのように内部ネットワークのネットワークアドレスが”192.168.111.0”とされている場合は、IPアドレスのブロードキャストアドレスは”192.168.111.255”とされる。   Since the MAC frame transmitted from the DSP unit DU is a star-type internal network, it is received by the hub, and a route determination process is performed (step S161). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. As a result, the MAC frame transmitted from the DSP unit DU is received by the SV (server) 11 having the same destination MAC address, and reception processing is performed (step S170). In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. Then, it is determined that the change request process is performed because there is a change request by interpreting the acquired data part. Next, in step S171, the device table is rewritten with the own unit information of the DSP unit DU in the data portion, and in step S172, the changed device table and the data portion including the change request are created. This data part is transmitted on the internal network by performing transmission processing in step S173. This transmission process is the same as the transmission process in step S153 described above, but the broadcast address (FF-FF-FF-FF-FF-FF) of all “1” is set as the destination MAC address, A broadcast address is also set as the destination IP address. In this case, when the network address of the internal network is “192.168.111.0” as in the device table shown in FIG. 3, the broadcast address of the IP address is “192.168.111.255”. Is done.

SV(サーバ)11からブロードキャストされたMACフレームは、ハブで受信され経路決定処理が行われる(ステップS161)。この経路決定処理では、ステップS160と同様の経路決定処理が行われるが、ブロードキャストアドレスのMACフレームとされていることから全ての処理装置にMACフレームが中継されるようになる。DSPユニットDUは、ブロードキャストされたMACフレームが到来した際にブロードキャストアドレスとされていることからステップS170と同様のMACフレームを受信する受信処理を行う(ステップS154)。次いで、ステップS155にて受信されたMACフレームから取り出された装置テーブル情報を内部の記憶手段に記憶することにより装置テーブルを更新し、DSPユニットにおけるネットワーク接続処理は終了する。また、他のクライアントにおいてはブロードキャストされたMACフレームが到来した際にブロードキャストアドレスとされていることからステップS170と同様のMACフレームを受信する受信処理を行う(ステップS180)。次いで、ステップS181にて受信されたMACフレームから取り出された装置テーブル情報で記憶されている装置テーブルを更新し、他のクライアントにおけるネットワーク接続処理は終了する。   The MAC frame broadcast from the SV (server) 11 is received by the hub and route determination processing is performed (step S161). In this route determination process, the same route determination process as in step S160 is performed, but since the MAC frame is a broadcast address, the MAC frame is relayed to all the processing devices. The DSP unit DU performs reception processing for receiving the MAC frame similar to that in step S170 because the broadcast address is set when the broadcast MAC frame arrives (step S154). Next, the device table is updated by storing the device table information extracted from the MAC frame received in step S155 in the internal storage means, and the network connection process in the DSP unit is completed. In addition, since the broadcast address is set when the broadcast MAC frame arrives at the other client, a reception process for receiving the MAC frame similar to step S170 is performed (step S180). Next, the device table stored with the device table information extracted from the MAC frame received in step S181 is updated, and the network connection process in the other client ends.

次に、ミキサ要素の機能ブロック図を図28に示す。図示するようにミキサ要素MXは、受信ポートからPCMデータを受信して処理順に記録する受信チャンネル毎に用意されている受信バッファ141と、受信バッファ141からサンプリング周波数fsのタイミングにあわせてPCMデータを1サンプルずつ取り出してミックス部143へ供給する読出部142と、操作子144から入力された各種のパラメータの設定にあわせて、受信バッファ141から入力されたPCMデータをミキシング(信号処理)するミックス部143と、各種パラメータの設定を行う操作子144と、ミックス部143から出力されるPCMデータを発生順に記録する送信チャンネル毎に用意されている送信バッファ145から構成されている。受信バッファ141はミキサ要素の受信ポートから実体データ(PCMデータ)を受信し、送信バッファ145はミキサ要素の送信ポートから実体データ(PCMデータ)を送信する。なお、受信ポートのポート番号は図3に示される装置テーブルに記録されている該当する音源要素の論理装置IDであり、送信ポートは送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。   Next, a functional block diagram of the mixer element is shown in FIG. As shown in the figure, the mixer element MX receives the PCM data from the reception port and records the PCM data from the reception buffer 141 in accordance with the timing of the sampling frequency fs. A reading unit 142 that extracts one sample at a time and supplies it to the mixing unit 143, and a mixing unit that mixes (signal processes) the PCM data input from the reception buffer 141 in accordance with the settings of various parameters input from the operation unit 144. 143, an operator 144 for setting various parameters, and a transmission buffer 145 prepared for each transmission channel for recording the PCM data output from the mixing unit 143 in the order of generation. The reception buffer 141 receives entity data (PCM data) from the reception port of the mixer element, and the transmission buffer 145 transmits entity data (PCM data) from the transmission port of the mixer element. The port number of the reception port is the logical device ID of the corresponding sound source element recorded in the device table shown in FIG. 3, and a random port number is assigned to the transmission port when transmitting, but a fixed port It is good also as a number.

次に、コンテンツレコーダ要素の機能ブロック図を図29に示す。コンテンツレコーダ要素CRにおいて通信するデータは、実体データではなく制御データとされ、他の処理要素と通信を行うときは実体データの通信に使うポートではなく制御データ通信用のポートを使用して通信を行う。この場合、コンテンツを要求する処理要素(処理装置)にコンテンツの取得に必要とする画面を表示させて、ユーザが画面上でコンテンツの選択を行えるようにしてもよい。そして、制御データの通信はHTTPに用意されているファイル要求を行う”GET”のリクエスト・メソッドを用いて行うことができる。
コンテンツレコーダ要素CRにコンテンツを要求する処理要素(処理装置)は、コンテンツ要求とコンテンツデータの識別情報を送信する制御データのデータ部に入れて送信する。コンテンツとは特定の処理要素で使用されるファイル、ソングやスタイルやボイスなどのファイルである。コンテンツレコーダ要素CRは、受信ポートからコンテンツ要求を検出(受信)して、コンテンツ要求とコンテンツデータの識別情報を読出部151へ供給する要求検出部152と、識別情報に該当するコンテンツデータをコンテンツ記憶部153から読み出してコンテンツ送信部154へわたす読出部151と、複数のコンテンツデータを識別情報と共に記憶しているコンテンツ記憶部153と、コンテンツ要求を送信した処理要素(処理装置)へ、読み出したコンテンツデータを送信ポートから送信するコンテンツ送信部154から構成されている。なお、受信ポートのポート番号は図3に示される装置テーブルに記録されている該当するコンテンツレコーダ要素CRの論理装置IDであり、送信ポートは送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。
Next, a functional block diagram of the content recorder element is shown in FIG. Data communicated in the content recorder element CR is not actual data but control data. When communicating with other processing elements, communication is performed using a control data communication port instead of a port used for actual data communication. Do. In this case, a screen required for acquiring the content may be displayed on a processing element (processing device) that requests the content so that the user can select the content on the screen. The communication of control data can be performed using a “GET” request method for making a file request prepared in HTTP.
The processing element (processing device) that requests content from the content recorder element CR transmits the content request and the identification information of the content data in the data portion of the control data to be transmitted. Content is a file used by a specific processing element, such as a song, style, or voice. The content recorder element CR detects (receives) a content request from the reception port, supplies a request for content request and content data identification information to the reading unit 151, and stores content data corresponding to the identification information as content. The content read out from the unit 153 to the content transmission unit 154, the content storage unit 153 storing a plurality of content data together with the identification information, and the processing element (processing device) that transmitted the content request The content transmission unit 154 transmits data from a transmission port. Note that the port number of the reception port is the logical device ID of the corresponding content recorder element CR recorded in the device table shown in FIG. 3, and the transmission port is assigned a random port number when transmitting, but is fixed. The port number may be used.

次に、自動伴奏要素の機能ブロック図を図30に示す。自動伴奏要素AAは、他の処理要素からの伴奏データの要求に応じて、指示された伴奏データを演奏データに基づいて編集し、伴奏データを処理要素に送るようにしている。そして、自動伴奏の要求データは実体データの通信に使うポートではなく制御データ通信用のポートを使用して通信を行う。この場合、伴奏データを要求する処理要素が機能している処理装置において自動伴奏の要求に必要とする画面を表示させて、ユーザが画面上で自動伴奏の選択や伴奏データの送り先の選択を行うようにしてもよい。そして、伴奏データの要求および取得の通信をHTTPにより行うようにしてもよい。
自動伴奏要素AAは、受信ポート1からMIDIデータ(演奏データ)を受信して処理順に記録する受信バッファ161と、自動伴奏要素AAの内臓MIDIクロックのタイミングにあわせて、処理すべきMIDIデータ(演奏データ)を受信バッファ161から取り出す読出部162と、読出部162で取り出したMIDIデータ(演奏データ)のうちのノートオンイベントとノートオフイベントを使用して演奏データにおける和音を検出する和音検出部163を備えている。
Next, FIG. 30 shows a functional block diagram of the automatic accompaniment element. The automatic accompaniment element AA edits the instructed accompaniment data based on the performance data in response to a request for accompaniment data from another processing element, and sends the accompaniment data to the processing element. The automatic accompaniment request data is communicated using a control data communication port, not a port used for actual data communication. In this case, a screen required for automatic accompaniment is displayed on a processing device in which a processing element for requesting accompaniment data is functioning, and the user selects automatic accompaniment or a destination of accompaniment data on the screen. You may do it. The accompaniment data request and acquisition communication may be performed by HTTP.
The automatic accompaniment element AA receives MIDI data (performance data) from the receiving port 1 and records it in the order of processing, and MIDI data (performance data) to be processed in accordance with the timing of the built-in MIDI clock of the automatic accompaniment element AA. Data) from the reception buffer 161, and a chord detection unit 163 that detects chords in the performance data using note-on and note-off events of the MIDI data (performance data) extracted by the reading unit 162. It has.

また、自動伴奏要素AAに自動伴奏を要求する処理要素(処理装置)は、伴奏データ要求と伴奏データの識別情報を送信する制御データのデータ部に入れて送信する。そして、自動伴奏要素AAは、受信ポート2から伴奏データ要求を検出(受信)した際に、受信された伴奏データ要求と自動伴奏の識別情報を読出部164へわたす要求検出部165と、識別情報に該当する伴奏データを伴奏データ記憶部166から読み出して伴奏データバッファ167へわたす読出部164と、複数の伴奏データを識別情報と共に記憶している伴奏データ記憶部166と、伴奏データ記憶部166から読み出した伴奏データを記録する伴奏データバッファ167を備えている。なお、伴奏データとは伴奏を再生するためのMIDIデータを処理順に記録したファイルとされている。   Further, the processing element (processing device) that requests automatic accompaniment from the automatic accompaniment element AA transmits the accompaniment data request and the accompaniment data identification information in the data portion of the control data. When the automatic accompaniment element AA detects (receives) an accompaniment data request from the receiving port 2, the request detection unit 165 passes the received accompaniment data request and automatic accompaniment identification information to the reading unit 164, and the identification information Is read from the accompaniment data storage unit 166 and passed to the accompaniment data buffer 167, the accompaniment data storage unit 166 stores a plurality of accompaniment data together with identification information, and the accompaniment data storage unit 166 An accompaniment data buffer 167 is provided for recording the read accompaniment data. The accompaniment data is a file in which MIDI data for reproducing accompaniment is recorded in the order of processing.

和音検出部163は検出した和音データと供給されたMIDIデータ(演奏データ)とを自動伴奏部168にわたし、伴奏データバッファ167はMIDIデータ(伴奏データ)を自動伴奏部168に渡す。自動伴奏部168は、自動伴奏要素AAの内臓MIDIクロックのタイミングにあわせて、処理すべきMIDIデータ(伴奏データ)を伴奏データバッファ167から順に取り出す。そして、取り出したMIDIデータ(伴奏データ)がノートオンであれば和音検出部163から渡されたその時点の和音データでノートナンバを変更し、変更後もしくは取り出したMIDIデータ(伴奏データ)と和音検出部163より受け取ったMIDIデータ(演奏データ)を、各データの処理タイミングを表すタイミングデータとともに、送信バッファ169へわたしている。送信バッファ169では、自動伴奏部168から送られたMIDIデータとタイミングデータを処理順に記録し、伴奏データ要求に含まれているあて先のIPアドレスとポート番号で特定される処理要素に送信ポートから送信している。なお、受信ポート1は実体データ(MIDIデータ)の受信ポートであり、受信ポート1のポート番号は図3に示される装置テーブルに記録されている該当する自動伴奏要素AAの論理装置IDとされ、受信ポート2のポート番号は制御データ用に予め割り当てられたポート番号(HTTPの場合は一般に80番とされるが、これに限られない)とされ、送信ポートは実体データ(MIDIデータ)の送信ポートであり送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。   The chord detection unit 163 passes the detected chord data and the supplied MIDI data (performance data) to the automatic accompaniment unit 168, and the accompaniment data buffer 167 passes the MIDI data (accompaniment data) to the automatic accompaniment unit 168. The automatic accompaniment unit 168 sequentially extracts MIDI data (accompaniment data) to be processed from the accompaniment data buffer 167 in accordance with the timing of the built-in MIDI clock of the automatic accompaniment element AA. If the extracted MIDI data (accompaniment data) is note-on, the note number is changed with the current chord data passed from the chord detection unit 163, and the changed MIDI data (accompaniment data) and the chord detection are changed. The MIDI data (performance data) received from the unit 163 is sent to the transmission buffer 169 together with timing data indicating the processing timing of each data. The transmission buffer 169 records the MIDI data and timing data sent from the automatic accompaniment unit 168 in the order of processing, and transmits from the transmission port to the processing element specified by the destination IP address and port number included in the accompaniment data request. is doing. The reception port 1 is a reception port for entity data (MIDI data), and the port number of the reception port 1 is the logical device ID of the corresponding automatic accompaniment element AA recorded in the device table shown in FIG. The port number of the reception port 2 is a port number assigned in advance for control data (generally, the number is not limited to 80 in the case of HTTP, but is not limited thereto), and the transmission port is a transmission of entity data (MIDI data). A random port number is assigned when transmitting a port, but it may be a fixed port number.

次に、MIDIレコーダ要素の機能ブロック図を図31に示す。MIDIレコーダ要素MRは、受信したMIDIデータを記録することができ、読出要求に応じて記録されたMIDIデータをあて先の処理要素(処理装置)に送信するようにしている。
MIDIレコーダ要素MRは、受信ポート1からMIDIデータを受信して処理順に記録する受信バッファ171と、受信バッファ171からMIDIデータを取り出して、MIDIのイベントデータとその処理タイミングを表すタイミングデータの組を処理順にMIDI記録部173に書き込む書込部172と、書込部172によりMIDIデータからなる演奏データがMIDIファイルとして記録されるMIDI記録部173を備えている。また、MIDIレコーダ要素MRにMIDIデータ(演奏データ)を要求する処理要素(処理装置)は、読出要求とMIDIファイルの識別情報を制御データのデータ部に入れて送信する。この場合、読出要求する処理要素が機能している処理装置において読出要求に必要とする画面を表示させて、ユーザが画面上でMIDIファイルの選択やMIDIデータの送り先の選択を行うようにしてもよいし、読出要求およびMIDIデータの取得の通信をHTTPにより行うようにしてもよい。
Next, FIG. 31 shows a functional block diagram of the MIDI recorder element. The MIDI recorder element MR can record the received MIDI data, and transmits the recorded MIDI data to the destination processing element (processing device) in response to the read request.
The MIDI recorder element MR receives the MIDI data from the receiving port 1 and records it in the order of processing. The MIDI recorder element MR takes out the MIDI data from the receiving buffer 171, and sets a set of MIDI event data and timing data representing the processing timing. A writing unit 172 for writing to the MIDI recording unit 173 in the order of processing and a MIDI recording unit 173 for recording performance data composed of MIDI data by the writing unit 172 as a MIDI file are provided. Further, the processing element (processing device) that requests MIDI data (performance data) from the MIDI recorder element MR transmits the read request and the identification information of the MIDI file in the data portion of the control data. In this case, a screen required for the read request is displayed on the processing device in which the processing element that requests read is displayed, and the user may select a MIDI file or a destination of MIDI data on the screen. Alternatively, communication for reading request and acquisition of MIDI data may be performed by HTTP.

そして、MIDIレコーダ要素MRは、受信ポート2から読出要求を検出(受信)した際に、受信された読出要求とMIDIファイルの識別情報を読出部174へわたす要求検出部176と、識別情報に対応するMIDIファイルから、MIDIレコーダ要素MRの内臓MIDIクロックのタイミングにあわせて、処理すべきMIDIデータをMIDI記録部173から読み出して送信バッファ175へわたす読出部174と、読出部174から送られたMIDIデータとタイミングデータを処理順に記録する送信バッファ175とを備えている。送信バッファ175は、バッファに記録されたMIDIデータとタイミングデータを、読出要求に含まれているあて先のIPアドレスとポート番号で特定される処理要素に送信ポートから送信している。なお、受信ポート1は実体データ(MIDIデータ)の受信ポートであり、受信ポート1のポート番号は図3に示される装置テーブルに記録されている該当するMIDIレコーダ要素MRの論理装置IDとされ、受信ポート2のポート番号は制御データ用に予め割り当てられたポート番号(HTTPの場合は一般に80番とされるが、これに限られない)とされ、送信ポートは実体データ(MIDIデータ)の送信ポートであり送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。   When the MIDI recorder element MR detects (receives) a read request from the reception port 2, the MIDI recorder element MR corresponds to the request detection unit 176 that passes the received read request and the identification information of the MIDI file to the reading unit 174 and the identification information. In accordance with the timing of the built-in MIDI clock of the MIDI recorder element MR from the MIDI file to be read, the reading unit 174 reads out the MIDI data to be processed from the MIDI recording unit 173 and passes it to the transmission buffer 175, and the MIDI sent from the reading unit 174 A transmission buffer 175 for recording data and timing data in the order of processing is provided. The transmission buffer 175 transmits the MIDI data and timing data recorded in the buffer from the transmission port to the processing element specified by the destination IP address and port number included in the read request. The reception port 1 is a reception port for entity data (MIDI data), and the port number of the reception port 1 is the logical device ID of the corresponding MIDI recorder element MR recorded in the device table shown in FIG. The port number of the reception port 2 is a port number assigned in advance for control data (generally, the number is not limited to 80 in the case of HTTP, but is not limited thereto), and the transmission port is a transmission of entity data (MIDI data). A random port number is assigned when transmitting a port, but it may be a fixed port number.

次に、エディタ要素の機能ブロック図を図32に示す。エディタ要素EDは、受信したMIDIデータを設定要求に応じてエディットしてあて先の処理要素(処理装置)に送信するようにしている。
エディタ要素EDは、MIDIデータを受信ポート1から受信して処理順に記録する受信バッファ181と、受信バッファ181からエディタ要素EDの内臓MIDIクロックのタイミングにあわせて処理すべきMIDIデータを読み出してエディット部183へ渡す読出部182とを備えている。また、エディタ要素EDにエディットの設定を要求する処理要素(処理装置)は、設定要求とエディット情報を制御データのデータ部に入れて送信する。この場合、設定要求する処理要素が機能している処理装置において設定要求に必要とする画面を表示させて、ユーザが画面上でエディットする内容の設定を行うようにしてもよいし、設定要求の通信をHTTPにより行うようにしてもよい。なお、エディット情報はエディット内容を表す情報である。
Next, a functional block diagram of the editor element is shown in FIG. The editor element ED edits the received MIDI data in response to the setting request and transmits it to the destination processing element (processing device).
The editor element ED receives the MIDI data from the reception port 1 and records it in the processing order, and reads out the MIDI data to be processed in accordance with the timing of the built-in MIDI clock of the editor element ED from the reception buffer 181 and edits the data. A reading unit 182 to be transferred to H.183. Also, the processing element (processing device) that requests the editor element ED to set the edit transmits the setting request and edit information in the data portion of the control data. In this case, a screen required for the setting request may be displayed on the processing device in which the processing element that requests the setting is functioning, and the content to be edited on the screen may be set by the user. Communication may be performed by HTTP. The edit information is information representing the edit contents.

そして、エディタ要素EDは、受信ポート2から設定要求を検出(受信)した際に、受信された設定要求とエディット情報をエディット部183へわたす要求検出部185と、読出部182から渡されたMIDIデータに要求検出部185からのエディット情報に基づいてエディットを行い、エディットされたMIDIデータを送信バッファ184に渡すエディット部183と、エディット部183から送られたMIDIデータとタイミングデータを処理順に記録する送信バッファ184を備えている。エディット部183では、自動作曲の場合、読み出したMIDIデータ(フレーズ)から1曲分の楽曲を表すMIDIデータをエディット情報に基づいて作成し、作成したMIDIデータを送信バッファ184へわたしている。また、自動編曲の場合、読み出したMIDIデータ(メロディ)をエディット情報に基づいて編曲してオーケストラ曲を表すMIDIデータを作成し、作成したMIDIデータを送信バッファ184へわたしている。送信バッファ184は、バッファに記録されたMIDIデータとタイミングデータを、設定要求に含まれているあて先のIPアドレスとポート番号で特定される処理要素に送信ポートから送信している。なお、受信ポート1は実体データ(MIDIデータ)の受信ポートであり、受信ポート1のポート番号は図3に示される装置テーブルに記録されている該当するエディタ要素EDの論理装置IDとされ、受信ポート2のポート番号は制御データ用に予め割り当てられたポート番号(HTTPの場合は一般に80番とされるが、これに限られない)とされ、送信ポートは実体データ(MIDIデータ)の送信ポートであり送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。     Then, when the editor element ED detects (receives) a setting request from the receiving port 2, the editor element ED sends the received setting request and editing information to the editing unit 183 and the MIDI passed from the reading unit 182. The data is edited based on the editing information from the request detection unit 185, the editing unit 183 that passes the edited MIDI data to the transmission buffer 184, and the MIDI data and timing data sent from the editing unit 183 are recorded in the order of processing. A transmission buffer 184 is provided. In the case of an automatic music piece, the edit unit 183 creates MIDI data representing a piece of music from the read MIDI data (phrase) based on the edit information, and sends the created MIDI data to the transmission buffer 184. In the case of automatic arrangement, the read MIDI data (melody) is arranged based on the edit information to create MIDI data representing the orchestra music, and the created MIDI data is transferred to the transmission buffer 184. The transmission buffer 184 transmits the MIDI data and timing data recorded in the buffer from the transmission port to the processing element specified by the destination IP address and port number included in the setting request. The reception port 1 is a reception port for entity data (MIDI data), and the port number of the reception port 1 is the logical device ID of the corresponding editor element ED recorded in the device table shown in FIG. The port number of port 2 is a port number assigned in advance for control data (generally, it is 80, but not limited to this in the case of HTTP), and the transmission port is a transmission port of entity data (MIDI data) A random port number is assigned when transmitting, but it may be a fixed port number.

次に、エフェクタ要素の機能ブロック図を図33に示す。エフェクタ要素EFは、受信したPCMデータに設定要求に応じたエフェクトを施してあて先の処理要素(処理装置)に送信するようにしている。
エフェクタ要素EFは、PCMデータを受信ポート1から受信して処理順に記録する図示していないが受信チャンネル(入力チャンネル)毎に設けられた受信バッファ191と、受信バッファ191からサンプリング周波数fsのタイミングにあわせてPCMデータを1サンプルずつ取り出してエフェクト部193へ送る読出部192とを備えている。また、エフェクタ要素EFにエフェクトの設定を要求する処理要素(処理装置)は、設定要求とエフェクト情報を制御データのデータ部に入れて送信する。この場合、設定要求する処理要素が機能している処理装置において設定要求に必要とする画面を表示させて、ユーザが画面上でエフェクト内容の設定を行うようにしてもよいし、設定要求の通信をHTTPにより行うようにしてもよい。なお、エフェクト情報はエフェクトの設定内容を表す情報である。
Next, FIG. 33 shows a functional block diagram of the effector element. The effector element EF applies an effect corresponding to the setting request to the received PCM data and transmits it to the destination processing element (processing device).
The effector element EF receives PCM data from the reception port 1 and records the data in the order of processing (not shown), but includes a reception buffer 191 provided for each reception channel (input channel) and a timing of the sampling frequency fs from the reception buffer 191. In addition, a reading unit 192 for taking out PCM data sample by sample and sending it to the effect unit 193 is provided. Further, the processing element (processing device) that requests the effector element EF to set the effect transmits the setting request and the effect information in the data portion of the control data. In this case, the processing device in which the processing element for which setting is requested functions may display a screen necessary for the setting request, and the user may set the effect content on the screen, or communication of the setting request. May be performed by HTTP. The effect information is information representing the setting contents of the effect.

そして、エフェクタ要素EFは、受信ポート2から設定要求を検出(受信)した際に、受信された設定要求とエフェクト情報をエフェクト部193へわたす要求検出部195と、読出部192から読み出されたPCMデータにエフェクトを施して新たなPCMデータを作成し、作成後のPCMデータを送信バッファ194へわたすエフェクト部193と、エフェクト部193から送られたPCMデータとタイミングデータを処理順に記録する図示していないが送信チャンネル毎に設けられた送信バッファ194を備えている。エフェクト部193でのエフェクトは、エフェクト情報に基づいて設定(決定)され、リバーブやコーラスなどのエフェクトがPCMデータに施される。送信バッファ194は、バッファに記録されたPCMデータを、設定要求に含まれているあて先のIPアドレスとポート番号で特定される処理要素に送信ポートから送信している。なお、受信ポート1は実体データ(PCMデータ)の受信ポートであり、受信ポート1のポート番号は図3に示される装置テーブルに記録されている該当するエフェクタ要素EFの論理装置IDとされ、受信ポート2のポート番号は制御データ用に予め割り当てられたポート番号(HTTPの場合は一般に80番とされるが、これに限られない)とされ、送信ポートは実体データ(PCMデータ)の送信ポートであり送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。     When the effector element EF detects (receives) a setting request from the receiving port 2, the effector element EF is read from the request detecting unit 195 that passes the received setting request and effect information to the effect unit 193 and the reading unit 192. An illustration of creating new PCM data by applying an effect to the PCM data, passing the created PCM data to the transmission buffer 194, and recording the PCM data and timing data sent from the effect unit 193 in the order of processing. Although not provided, a transmission buffer 194 is provided for each transmission channel. Effects in the effect unit 193 are set (determined) based on the effect information, and effects such as reverb and chorus are applied to the PCM data. The transmission buffer 194 transmits the PCM data recorded in the buffer from the transmission port to the processing element specified by the destination IP address and port number included in the setting request. The reception port 1 is a reception port for entity data (PCM data), and the port number of the reception port 1 is the logical device ID of the corresponding effector element EF recorded in the device table shown in FIG. The port number of port 2 is a port number assigned in advance for control data (generally 80, but not limited to this in the case of HTTP), and the transmission port is a transmission port of entity data (PCM data) A random port number is assigned when transmitting, but it may be a fixed port number.

次に、オーディオレコーダ要素の機能ブロック図を図34に示す。オーディオレコーダ要素ARは、受信したPCMデータを記録することができ、読出要求に応じて記録されたPCMデータをあて先の処理要素(処理装置)に送信するようにしている。
オーディオレコーダ要素ARは、受信ポート1からPCMデータを受信して処理順に記録する受信バッファ201と、受信バッファ201からPCMデータを取り出してPCM記録部203に書き込む書込部202と、書込部202によりPCMデータがPCMファイルとして記録されるPCM記録部203を備えている。また、オーディオレコーダ要素ARにPCMデータを要求する処理要素(処理装置)は、読出要求とPCMファイルの識別情報を制御データのデータ部に入れて送信する。この場合、読出要求する処理要素が機能している処理装置において読出要求に必要とする画面を表示させて、ユーザが画面上でPCMファイルの選択やPCMデータの送り先の選択を行うようにしてもよいし、読出要求およびPCMデータの取得の通信をHTTPにより行うようにしてもよい。
Next, a functional block diagram of the audio recorder element is shown in FIG. The audio recorder element AR can record the received PCM data, and transmits the PCM data recorded in response to the read request to a destination processing element (processing device).
The audio recorder element AR includes a reception buffer 201 that receives PCM data from the reception port 1 and records the data in the order of processing, a writing unit 202 that extracts the PCM data from the reception buffer 201 and writes the PCM data in the PCM recording unit 203, and the writing unit 202. Is provided with a PCM recording unit 203 for recording PCM data as a PCM file. Further, the processing element (processing device) that requests PCM data from the audio recorder element AR transmits the read request and identification information of the PCM file in the data portion of the control data. In this case, a screen necessary for the read request is displayed on the processing device in which the processing element that requests read is displayed, and the user may select a PCM file or a PCM data destination on the screen. Alternatively, communication for reading request and acquisition of PCM data may be performed by HTTP.

そして、オーディオレコーダ要素ARは、受信ポート2から読出要求を検出(受信)した際に、受信された読出要求とPCMファイルの識別情報を読出部204へわたす要求検出部206と、識別情報に対応するPCMファイルからサンプリング周波数fsのタイミングにあわせて、PCMデータをPCM記録部203から読み出して送信バッファ205へわたす読出部204と、読出部204から送られたPCMデータを処理順に記録する送信バッファ205とを備えている。送信バッファ205は、バッファに記録されたPCMデータを、読出要求に含まれているあて先のIPアドレスとポート番号で特定される処理要素に送信ポートから送信している。なお、受信ポート1は実体データ(PCMデータ)の受信ポートであり、受信ポート1のポート番号は図3に示される装置テーブルに記録されている該当するオーディオレコーダ要素ARの論理装置IDとされ、受信ポート2のポート番号は制御データ用に予め割り当てられたポート番号(HTTPの場合は一般に80番とされるが、これに限られない)とされ、送信ポートは実体データ(PCMデータ)の送信ポートであり送信する際にランダムなポート番号が割り当てられるが、固定のポート番号としても良い。   When the audio recorder element AR detects (receives) a read request from the reception port 2, the request detector 206 passes the received read request and the PCM file identification information to the reading unit 204, and corresponds to the identification information. A reading unit 204 that reads PCM data from the PCM recording unit 203 and passes it to the transmission buffer 205 in accordance with the timing of the sampling frequency fs from the PCM file to be transmitted, and a transmission buffer 205 that records the PCM data sent from the reading unit 204 in the order of processing. And. The transmission buffer 205 transmits the PCM data recorded in the buffer from the transmission port to the processing element specified by the destination IP address and port number included in the read request. The reception port 1 is a reception port for entity data (PCM data), and the port number of the reception port 1 is the logical device ID of the corresponding audio recorder element AR recorded in the device table shown in FIG. The port number of the reception port 2 is a port number assigned in advance for control data (generally, the number is not limited to 80 in the case of HTTP, but is not limited thereto), and the transmission port is a transmission of entity data (PCM data). A random port number is assigned when transmitting a port, but it may be a fixed port number.

次に、実体データの通信を行う際に実行される通信処理のフローチャートを図35に示す。
実体データの通信を行う際には、実体データを送信する処理装置において通信処理が起動され、ステップS190にて送信バッファからデータを取り出してデータ部が作成される。次いで、ステップS191にて送信処理が行われる。送信処理では、ステップS190において作成されたデータ部が送信データとされて図2に示すように最終的に送信データがカプセル化されたMACフレームが生成されて、内部ネットワーク上に送信される。MACフレームのMACヘッダにはあて先MACアドレスとして実体データを受信するあて先の処理装置のMACアドレス(物理装置ID)が設定される。
送信されたMACフレームは、スター型の内部ネットワークとされていることからハブで受信され、経路決定処理が行われる(ステップS200)。経路決定処理では、ハブは受信されたMACフレームのあて先MACアドレスを見て送信経路を決定し、MACフレームを中継する。これにより、送信する処理装置から送信されたMACフレームがあて先MACアドレスが一致する受信する処理装置で受信されて、受信処理が行われる(ステップS210)。受信処理では、MACフレームからIPパケットが取り出され、IPパケットからTCPセグメントが取り出され、さらに、TCPセグメントからデータ部が取得される。次いで、ステップS211で取得されたデータ部が受信バッファに記録される。なお、通信には実態データを送信するために確立されたカレントバッファに記録されているポートが使用される。
Next, FIG. 35 shows a flowchart of communication processing executed when entity data is communicated.
When communicating entity data, communication processing is started in the processing device that transmits entity data, and data is extracted from the transmission buffer in step S190 to create a data portion. Next, transmission processing is performed in step S191. In the transmission process, the data part created in step S190 is used as transmission data, and finally a MAC frame in which the transmission data is encapsulated is generated as shown in FIG. 2 and transmitted on the internal network. In the MAC header of the MAC frame, the MAC address (physical device ID) of the destination processing device that receives the entity data is set as the destination MAC address.
The transmitted MAC frame is received by the hub because it is a star-type internal network, and a route determination process is performed (step S200). In the route determination process, the hub determines the transmission route by looking at the destination MAC address of the received MAC frame, and relays the MAC frame. Accordingly, the MAC frame transmitted from the transmitting processing device is received by the receiving processing device having the same destination MAC address, and the receiving process is performed (step S210). In the reception process, an IP packet is extracted from the MAC frame, a TCP segment is extracted from the IP packet, and a data part is acquired from the TCP segment. Next, the data part acquired in step S211 is recorded in the reception buffer. For communication, a port recorded in a current buffer established for transmitting actual data is used.

以上の説明では、内部ネットワークをイーサネットのLANとしたが本発明はこれに限るものではなく、他のネットワーク媒体としても良い。また、通信プロトコルとしてTCPとしたが、本発明はこれに限るものではなく、リアルタイムを重んずる場合は信頼性は低いが転送速度が高いUDP(User Datagram Protocol)を用いても良いし、TCP/IPに替えてIPX/SPX(Internetwork Packet Exchange/Sequenced Packet Exchange)を用いるようにしても良い。
また、エディタ要素のエディット情報やエフェクタ要素のエフェクト情報を他の処理要素で設定して送ることができるようにすると、他の部屋にあるエディタ要素やエフェクト要素をスピーカ要素のある部屋から操作することができるようになり、あたかもその部屋にエディタ要素やエフェクト要素があるものとして操作することができることから操作性を向上することができる。
さらに、一つの処理装置内の複数の処理要素間の接続解除はネットワーク接続時にかぎるものではなく、ネットワーク接続後の任意のタイミングで解除を可能とすることができる。この場合、ネットワーク接続時には接続の解除を行わず、ネットワーク接続後に接続解除の指示を確認する処理を周期的に起動するようにしておき、接続解除の指示を検出したときに処理装置内の処理要素間の接続を解除するようにすればよい。また、接続解除の指示はそれを指示する特別なスイッチを設けてそのスイッチにより指示してもよい。このような接続解除の指示は自処理装置に限らず、ネットワーク上の他の処理装置から行うこともできる。
In the above description, the internal network is an Ethernet LAN, but the present invention is not limited to this and may be another network medium. Although TCP is used as the communication protocol, the present invention is not limited to this, and in the case of emphasizing real time, UDP (User Datagram Protocol) with low reliability but high transfer speed may be used, or TCP / IP Instead of this, IPX / SPX (Internetwork Packet Exchange / Sequenced Packet Exchange) may be used.
In addition, when editing information of editor elements and effect information of effector elements can be set and sent by other processing elements, editor elements and effect elements in other rooms can be operated from the room with speaker elements. Since it can be operated as if there is an editor element or an effect element in the room, the operability can be improved.
Furthermore, the connection release between a plurality of processing elements in one processing apparatus is not limited to when the network is connected, and can be released at an arbitrary timing after the network connection. In this case, the connection is not canceled at the time of network connection, and the process for confirming the connection release instruction is periodically started after the network connection, and the processing element in the processing device is detected when the connection release instruction is detected. The connection between them may be canceled. In addition, a connection release instruction may be provided by providing a special switch for instructing the connection release. Such a connection release instruction is not limited to the processing apparatus itself, but can be issued from another processing apparatus on the network.

本発明の実施例の楽音発生システムの構成を示すブロック図である。It is a block diagram which shows the structure of the musical tone generation system of the Example of this invention. 本発明にかかる楽音発生システムにおいてネットワーク上に送出されるMACフレームの生成過程の概要を示す図である。It is a figure which shows the outline | summary of the production | generation process of the MAC frame transmitted on a network in the musical tone generation system concerning this invention. 本発明にかかる楽音発生システムの内部ネットワークにおけるすべての処理要素毎の識別情報の対応表である装置テーブルである。It is an apparatus table which is a correspondence table of identification information for every processing element in the internal network of the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムの内部ネットワーク上の処理要素において、実体データの通信が可能な処理要素毎の入力側と出力側の接続テーブルである。5 is a connection table on the input side and output side for each processing element capable of communicating entity data in the processing elements on the internal network of the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、ネットワーク接続処理の一部の処理の態様を示す図である。It is a figure which shows the one aspect | mode of the process of a network connection process in the musical tone generation system concerning this invention. 本発明にかかる楽音発生システムにおいて、内部ネットワークに新たに処理装置が接続(ログイン)された際に実行されるネットワーク接続処理のフローチャートである。5 is a flowchart of network connection processing executed when a processing device is newly connected (logged in) to an internal network in the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、内部ネットワークに接続されている処理装置が切断(ログオフ)された際に実行されるネットワーク切断処理のフローチャートである。6 is a flowchart of network disconnection processing executed when a processing device connected to an internal network is disconnected (logged off) in the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、ネットワーク切断処理の一部の処理の態様を示す図である。It is a figure which shows the one aspect | mode of the process of a network cutting | disconnection process in the musical tone generation system concerning this invention. 本発明にかかる楽音発生システムにおける内部ネットワークの構成の例を示す図である。It is a figure which shows the example of a structure of the internal network in the musical tone generation system concerning this invention. 本発明にかかる楽音発生システムにおいて、処理要素間の接続を行う接続処理時に表示される設定画面の例を示す図である。It is a figure which shows the example of the setting screen displayed at the time of the connection process which connects between process elements in the musical sound generation system concerning this invention. 本発明にかかる楽音発生システムにおいて、処理要素間の接続を行う接続処理時に表示される設定画面の他の例を示す図である。In the musical tone generating system according to the present invention, it is a diagram showing another example of a setting screen displayed at the time of connection processing for connecting between processing elements. 本発明にかかる楽音発生システムにおいて、処理要素と処理要素との接続を設定する際に実行される接続選択処理のフローチャートである。6 is a flowchart of a connection selection process executed when setting a connection between processing elements in the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、接続選択処理が行われて処理要素の論理接続の設定が行われた場合に、接続バッファに記録される接続情報の例を示す図である。FIG. 6 is a diagram showing an example of connection information recorded in a connection buffer when connection selection processing is performed and logical connection of processing elements is set in the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、接続選択処理に続けて実行される接続確立処理のフローチャートである。6 is a flowchart of a connection establishment process executed subsequent to the connection selection process in the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、カレントバッファに記録される接続情報と対応付けの例を示す図である。It is a figure which shows the example of matching with the connection information recorded on a current buffer in the musical sound generation system concerning this invention. 本発明にかかる楽音発生システムにおいて、接続確立処理において実行される負荷分散処理のフローチャートである。It is a flowchart of the load distribution process performed in a connection establishment process in the tone generation system concerning this invention. 本発明にかかる楽音発生システムにおいて、接続確立処理において実行される負荷分散処理のフローチャートの続きである。In the musical sound generating system according to the present invention, it is a continuation of the flowchart of the load distribution process executed in the connection establishment process. 本発明にかかる楽音発生システムにおいて、SV(サーバ)で実行される接続選択処理のフローチャートである。5 is a flowchart of connection selection processing executed by an SV (server) in the musical sound generation system according to the present invention. 本発明にかかる楽音発生システムにおいて、音源要素において音色を変更する際に実行されるボイス変更処理のフローチャートである。6 is a flowchart of a voice change process executed when a tone color is changed in a sound source element in the tone generation system according to the present invention. 本発明にかかる楽音発生システムにおいて、ボイス変更処理で実行されるネットワーク処理のフローチャートである。It is a flowchart of the network process performed by the voice change process in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、処理装置の電源オン時に実行される自動設定処理のフローチャートである。6 is a flowchart of automatic setting processing executed when the processing apparatus is powered on in the musical sound generating system according to the present invention. 本発明にかかる楽音発生システムにおいて、周期的に実行されるフラグ処理のフローチャートである。4 is a flowchart of flag processing that is periodically executed in the tone generation system according to the present invention. 本発明にかかる楽音発生システムにおける音源要素の機能ブロック図である。It is a functional block diagram of the sound source element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおける鍵盤要素の機能ブロック図である。It is a functional block diagram of the keyboard element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおけるスピーカ要素の機能ブロック図である。It is a functional block diagram of the speaker element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおけるDSPユニットの機能ブロック図である。It is a functional block diagram of a DSP unit in the tone generation system according to the present invention. 本発明にかかる楽音発生システムにおいて、DSPユニットにおいて処理要素が切り替えられた際に、切り替えられたことを通知する通知処理のフローチャートである。In the musical tone generating system according to the present invention, when a processing element is switched in a DSP unit, it is a flowchart of a notification process for notifying that switching has been performed. 本発明にかかる楽音発生システムにおけるミキサ要素の機能ブロック図である。It is a functional block diagram of the mixer element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおけるコンテンツレコーダ要素の機能ブロック図である。It is a functional block diagram of the content recorder element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおける自動伴奏要素の機能ブロック図である。It is a functional block diagram of the automatic accompaniment element in the musical tone generation system concerning this invention. 本発明にかかる楽音発生システムにおけるMIDIレコーダ要素の機能ブロック図である。It is a functional block diagram of a MIDI recorder element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおけるエディタ要素の機能ブロック図である。It is a functional block diagram of the editor element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおけるエフェクタ要素の機能ブロック図である。It is a functional block diagram of the effector element in the tone generation system concerning the present invention. 本発明にかかる楽音発生システムにおけるオーディオレコーダ要素の機能ブロック図である。It is a functional block diagram of the audio recorder element in the musical tone generating system according to the present invention. 本発明にかかる楽音発生システムにおける実体データの通信を行う際に実行される通信処理のフローチャートである。It is a flowchart of the communication process performed when communicating the substantial data in the musical tone generating system concerning this invention.

符号の説明Explanation of symbols

1 インターネット、2 ルータ、3 ルータ、4 ルータ、10 ハブ、11 SV(サーバ)、12 TG1(音源)、13 TG2(音源)、14 KB(鍵盤)、15 SP1(スピーカ)、20 ハブ、21 SP2(スピーカ)、22 DU(DSPユニット)、23 MX(ミキサ)、24 CR(コンテンツレコーダ)、30 ハブ、31 AA(自動伴奏)、32 MR(MIDIレコーダ)、33 ED(エディタ)、34 EF(エフェクタ)、35 AR(オーディオレコーダ)、36 SY(音源、鍵盤)40 ハブ、41 MC(マイク)、42 CD(CDプレーヤ)、100 受信バッファ、101 読出部、102 楽音合成部、103 送信バッファ、111 操作子、112 操作検出部、113 送信バッファ、121 受信バッファ、122 読出部、123 DA変換部、124 出力部、131 切替部、132 切替検出部、133 処理装置記憶部、134 信号処理部、141 受信バッファ、142 読出部、143 ミックス部、144 操作子、145 送信バッファ、151 読出部、152 要求検出部、153 コンテンツ記憶部、154 コンテンツ送信部、161 受信バッファ、162 読出部、163 和音検出部、164 読出部、165 要求検出部、166 伴奏データ記憶部、167 伴奏データバッファ、168 自動伴奏部、169 送信バッファ、171 受信バッファ、172 書込部、173 記録部、174 読出部、175 送信バッファ、176 要求検出部、181 受信バッファ、182 読出部、183 エディット部、184 送信バッファ、185 要求検出部、191 受信バッファ、192 読出部、193 エフェクト部、194 送信バッファ、195 要求検出部、201 受信バッファ、202 書込部、203 記録部、204 読出部、205 送信バッファ、206 要求検出部 1 Internet, 2 router, 3 router, 4 router, 10 hub, 11 SV (server), 12 TG1 (sound source), 13 TG2 (sound source), 14 KB (keyboard), 15 SP1 (speaker), 20 hub, 21 SP2 (Speaker), 22 DU (DSP unit), 23 MX (mixer), 24 CR (content recorder), 30 hub, 31 AA (automatic accompaniment), 32 MR (MIDI recorder), 33 ED (editor), 34 EF ( Effector), 35 AR (audio recorder), 36 SY (sound source, keyboard) 40 hub, 41 MC (microphone), 42 CD (CD player), 100 reception buffer, 101 reading unit, 102 musical sound synthesis unit, 103 transmission buffer, 111 operation unit, 112 operation detection unit, 113 transmission buffer, 121 Signal buffer, 122 reading unit, 123 DA conversion unit, 124 output unit, 131 switching unit, 132 switching detection unit, 133 processing device storage unit, 134 signal processing unit, 141 reception buffer, 142 reading unit, 143 mixing unit, 144 operation Child, 145 transmission buffer, 151 reading unit, 152 request detection unit, 153 content storage unit, 154 content transmission unit, 161 reception buffer, 162 reading unit, 163 chord detection unit, 164 reading unit, 165 request detection unit, 166 accompaniment data Storage unit, 167 Accompaniment data buffer, 168 Automatic accompaniment unit, 169 Transmission buffer, 171 Reception buffer, 172 Writing unit, 173 Recording unit, 174 Reading unit, 175 Transmission buffer, 176 Request detection unit, 181 Reception buffer, 182 Reading unit 183 Edit , 184 transmission buffer, 185 request detection unit, 191 reception buffer, 192 reading unit, 193 effect unit, 194 transmission buffer, 195 request detection unit, 201 reception buffer, 202 writing unit, 203 recording unit, 204 reading unit, 205 transmission Buffer, 206 Request detector

Claims (1)

スター型のネットワークに接続されている複数の処理装置を用いて構成される楽音発生システムであって、前記処理装置は実行されるプログラムに応じた処理要素として機能するようにされており、
発生した演奏情報と、送信元の処理要素およびあて先の処理要素の識別情報とを含むフレームを生成してネットワークに送り出す演奏情報を発生する処理要素として機能する処理装置と、
自処理装置において機能している処理要素の識別情報と一致するフレームをネットワークから受信し、受信したフレームから取り出した演奏情報から楽音信号を合成すると共に、合成した楽音信号と、送信元の処理要素およびあて先の処理要素の識別情報とを含むフレームを生成してネットワークに送り出す音源用の処理要素として機能する処理装置と、
自処理装置において機能している処理要素の識別情報と一致するフレームをネットワークから受信し、受信したフレームから取り出した楽音信号のサウンド処理を行うサウンド用の処理要素として機能する処理装置とを少なくとも備え、
前記処理装置は、前記ネットワークへの接続時にコンテンツファイルを提供できるかの情報をテーブルへ登録し、コンテンツファイルの選択要求を受けたときに要求されたコンテンツファイルを有しているかを判定して、有していなければ当該コンテンツファイルを提供できる他のクライアントを前記テーブルから抽出し、抽出した他のクライアントへそのコンテンツファイルを前記ネットワークを介して要求することにより、前記他のクライアントから前記コンテンツファイルを取得するようにしたことを特徴とする楽音発生システム。
A musical sound generating system configured using a plurality of processing devices connected to a star-type network, wherein the processing device functions as a processing element according to a program to be executed,
A processing device that functions as a processing element that generates performance information that is generated and sent to the network by generating a frame that includes the generated performance information and identification information of the transmission source processing element and the destination processing element;
Receives a frame that matches the identification information of the processing element functioning in its own processing device from the network, synthesizes the musical tone signal from the performance information extracted from the received frame, and combines the musical tone signal and the processing element of the transmission source And a processing device that functions as a processing element for a sound source that generates a frame including identification information of a destination processing element and sends it to a network;
A processing device functioning as a processing element for sound that receives a frame matching the identification information of the processing element functioning in the processing device from the network and performs sound processing of the musical sound signal extracted from the received frame; ,
The processing device registers information on whether or not a content file can be provided when connected to the network in a table, determines whether or not the requested content file is received when receiving a content file selection request, If not, another client that can provide the content file is extracted from the table, and the content file is obtained from the other client by requesting the extracted other client via the network. A musical sound generation system characterized by being acquired.
JP2006077533A 2006-03-20 2006-03-20 Processing device in musical tone generation system Expired - Fee Related JP4207970B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2006077533A JP4207970B2 (en) 2006-03-20 2006-03-20 Processing device in musical tone generation system
US11/725,214 US7592531B2 (en) 2006-03-20 2007-03-15 Tone generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006077533A JP4207970B2 (en) 2006-03-20 2006-03-20 Processing device in musical tone generation system

Publications (2)

Publication Number Publication Date
JP2007256375A true JP2007256375A (en) 2007-10-04
JP4207970B2 JP4207970B2 (en) 2009-01-14

Family

ID=38630709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006077533A Expired - Fee Related JP4207970B2 (en) 2006-03-20 2006-03-20 Processing device in musical tone generation system

Country Status (1)

Country Link
JP (1) JP4207970B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111276123A (en) * 2018-11-16 2020-06-12 阿拉的(深圳)人工智能有限公司 Method and device for voice broadcasting message, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111276123A (en) * 2018-11-16 2020-06-12 阿拉的(深圳)人工智能有限公司 Method and device for voice broadcasting message, computer equipment and storage medium

Also Published As

Publication number Publication date
JP4207970B2 (en) 2009-01-14

Similar Documents

Publication Publication Date Title
JP4432814B2 (en) Performance data communication management system and performance data communication management device
JP4211750B2 (en) Electronic music equipment
US7977559B2 (en) Tone generation system controlling the music system
US6627807B2 (en) Communications apparatus for tone generator setting information
JP4207970B2 (en) Processing device in musical tone generation system
JP4207972B2 (en) Processing device in musical tone generation system
JP4207971B2 (en) Processing device in musical tone generation system
JP2000181447A (en) Transmitting device, receiving device, and transmitting and receiving device for music information, and storage medium
JP4200996B2 (en) Processing device in musical tone generation system
US7592531B2 (en) Tone generation system
JP4200998B2 (en) Processing device in musical tone generation system
JP4200997B2 (en) Music generation system
JP4155295B2 (en) Music generation system
JP4096734B2 (en) Music activity support system and program
JP5066975B2 (en) NETWORK CONNECTION ENVIRONMENT SETTING CLIENT DEVICE, NETWORK CONNECTION ENVIRONMENT SETTING SYSTEM, AND PROGRAM
JP3271572B2 (en) Communication method of musical information, communication device, and medium recording program
JP7456215B2 (en) Audio interface equipment and recording system
JP4318013B2 (en) Content editing apparatus, content editing method, program storage medium, and content editing system
JP2004093975A (en) Communication terminal and program
JP5998987B2 (en) Communication system, information processing apparatus, and program
JP2002073039A (en) Information processor, method for processing information, program storing medium, and information processing system
JPH10282977A (en) Device and system for reproducing musical sound
JP2003022081A (en) Device and program for music information distribution
JPH0962273A (en) Communication type music reproducing system and center device
JP2004101584A (en) Centrally controlled karaoke sing along system by local area network connection and program used for the system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080715

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080822

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080930

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131031

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees