JP5891620B2 - Performance data transmitting apparatus and performance data receiving apparatus - Google Patents

Performance data transmitting apparatus and performance data receiving apparatus Download PDF

Info

Publication number
JP5891620B2
JP5891620B2 JP2011147700A JP2011147700A JP5891620B2 JP 5891620 B2 JP5891620 B2 JP 5891620B2 JP 2011147700 A JP2011147700 A JP 2011147700A JP 2011147700 A JP2011147700 A JP 2011147700A JP 5891620 B2 JP5891620 B2 JP 5891620B2
Authority
JP
Japan
Prior art keywords
data
performance data
midi
performance
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011147700A
Other languages
Japanese (ja)
Other versions
JP2013015643A (en
Inventor
西谷 善樹
善樹 西谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2011147700A priority Critical patent/JP5891620B2/en
Publication of JP2013015643A publication Critical patent/JP2013015643A/en
Application granted granted Critical
Publication of JP5891620B2 publication Critical patent/JP5891620B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、楽器の演奏内容を表す演奏データを無線通信によって送受信する技術に関する。   The present invention relates to a technique for transmitting and receiving performance data representing performance contents of a musical instrument by wireless communication.

演奏操作等に従って演奏データを生成する装置と、その演奏データに基づく発音を行う装置との間で、有線又は無線の通信により演奏データを送受信できるようにし、演奏データの生成と発音とを別々の装置に行わせるようにすることが行われている。このような技術としては、例えば特許文献1に、MIDI(Musical Instruments Digital Interface)形式のデータ(以下「MIDIデータ」という)を無線送信する場合において、生成したMIDIデータを生成順に送信バッファに記録し、そのデータを1バイト毎にパケット化して送信する技術が記載されている。   Performance data can be transmitted and received by wired or wireless communication between a device that generates performance data according to a performance operation and the like and a device that generates sound based on the performance data. It is done to let the device do. As such a technique, for example, in Patent Document 1, when MIDI (Musical Instruments Digital Interface) format data (hereinafter referred to as “MIDI data”) is wirelessly transmitted, the generated MIDI data is recorded in a transmission buffer in the generation order. A technique is described in which the data is packetized for each byte and transmitted.

特開2007−25410号公報JP 2007-25410 A

ところで、送信先の装置に対し、送信した演奏データに基づく発音を行わせることを考える場合、演奏データの送受信には高いリアルタイム性が要求される。しかしながら、上記の特許文献1に記載のものを含め、従来の方式では、リアルタイム性が十分でないという問題があった。
本発明は上述した背景に鑑みてなされたものであり、演奏データを、低遅延でかつ安定して無線通信によって送受信することのできる技術を提供することを目的とする。
By the way, when considering that the transmission destination device generates a sound based on the transmitted performance data, a high real-time property is required for transmission / reception of the performance data. However, the conventional methods including those described in Patent Document 1 have a problem that the real-time property is not sufficient.
The present invention has been made in view of the above-described background, and an object of the present invention is to provide a technique capable of stably transmitting and receiving performance data with low delay and wireless communication.

上述した課題を解決するため、本発明は、楽器の演奏内容を表すイベントデータが時系列に並んで構成された演奏データが、シリアル通信によって入力される入力手段と、演奏データ受信装置との間で無線通信のペアリングを行うペアリング手段と、前記ペアリング手段によってペアリングされた演奏データ受信装置へ、前記入力手段に入力された演奏データをイベントデータ単位で送信する演奏データ送信手段と、前記演奏データ送信手段によって送信されるイベントデータの応答として前記ペアリングされた演奏データ受信装置から送信されてくる応答データを受信する応答データ受信手段と、前記演奏データ送信手段によってひとつの前記イベントデータを送信する毎に、前記応答データの受信を予め定められた第1の待機時間だけ待機し、該第1の待機時間内に前記応答データが受信された場合には、次のイベントデータを送信する一方、該第1の待機時間内に前記応答データが受信されなかった場合には、直前に送信されたイベントデータを再送し、かつ、該第1の待機時間よりも長い第2の待機時間だけ待機しても前記応答データが受信されなかった場合には次のイベントデータを送信する送信制御手段とを具備することを特徴とする演奏データ送信装置を提供する。 In order to solve the above-described problems, the present invention provides a performance data receiving apparatus between an input means for inputting performance data in which event data representing the performance contents of a musical instrument are arranged in time series and serial communication. pairing means for performing pairing of the wireless communication in, the performance data receiving apparatus which has been paired by the pairing means, and performance data sending means for sending the performance data inputted to the input means in the event data units Response data receiving means for receiving response data transmitted from the paired performance data receiving device as a response to event data transmitted by the performance data transmitting means, and one event by the performance data transmitting means Each time data is transmitted, reception of the response data is waited for a predetermined first waiting time. When the response data is received within the first waiting time, the next event data is transmitted, while when the response data is not received within the first waiting time, The event data transmitted immediately before is retransmitted, and the next event data is transmitted if the response data is not received even after waiting for a second waiting time longer than the first waiting time. A performance data transmitting apparatus comprising a transmission control means is provided.

本発明の好適な態様において、前記入力手段は、演奏データが出力される出力端子のジャックに差込可能なプラグを有し、前記ペアリング手段、前記演奏データ送信手段、前記応答データ受信手段及び前記送信制御手段を内蔵する筐体を有してもよい。 In a preferred aspect of the present invention, the input means includes a plug that can be inserted into a jack of an output terminal from which performance data is output, and the pairing means, the performance data transmission means, the response data reception means, You may have the housing | casing which incorporates the said transmission control means.

また、本発明は、楽器の演奏内容を表すイベントデータが時系列に並んで構成された演奏データを送信する演奏データ送信装置との間で、無線通信のペアリングを行うペアリング手段と、前記ペアリング手段によってペアリングされた演奏データ送信装置から、イベントデータ単位で送信されてくる演奏データを前記イベントデータ単位で受信するイベントデータ受信手段と、前記イベントデータ受信手段によって前記イベントデータが受信される毎に、当該イベントデータを受信した旨を示す応答データを前記ペアリングされた演奏データ送信装置へ送信する応答データ送信手段と、前記応答データ送信手段によって前記応答データを送信する毎に、次のイベントデータの受信を予め定められた待機時間だけ待機し、当該待機時間内に当該次のイベントデータが受信されなかった場合には前記応答データを再送する応答データ再送手段であって、当該待機処理及び当該再送処理を予め定められた回数だけ繰り返し実行する応答データ再送手段と、前記イベントデータ受信手段によって前記イベントデータを受信する毎に、当該受信したイベントデータを、シリアル通信によって出力する出力手段とを具備することを特徴とする演奏データ受信装置を提供する。 Further, the present invention provides a pairing means for performing wireless communication pairing with a performance data transmitting apparatus that transmits performance data in which event data representing the performance contents of a musical instrument are arranged in time series, from the performance data transmitting apparatus which is paired by the pairing means, the event data receiving means for receiving performance data sent by the event data unit in the event data unit, wherein the event data is received by the event data receiving means Each time the response data indicating that the event data has been received is transmitted to the paired performance data transmitter, and each time the response data is transmitted by the response data transmitter, Wait for a predetermined waiting time to receive the next event data, and within the waiting time Response data retransmission means for retransmitting the response data when the event data is not received, the response data retransmission means for repeatedly executing the standby process and the retransmission process a predetermined number of times, and the event There is provided a performance data receiving apparatus comprising output means for outputting the received event data by serial communication each time the event data is received by the data receiving means.

本発明の好適な態様において、前記出力手段は、演奏データが入力される入力端子のジャックに接続可能なプラグを有し、前記ペアリング手段、前記イベントデータ受信手段、前記応答データ送信手段及び前記応答データ再送手段を内蔵する筐体を有してもよい。 In a preferred aspect of the present invention, the output means has a plug connectable to a jack of an input terminal to which performance data is input, the pairing means, the event data receiving means, the response data transmitting means, and the You may have a housing | casing which contains a response data resending means.

本発明の更に好適な態様において、前記応答データ再送手段は、イベントデータが受信されなくなってから予め定められた時間が経過した場合において、直前に受信されたイベントデータが発音開始を示すイベントデータである場合には、発音終了を示すイベントデータを生成し、生成したイベントデータを前記シリアル通信によって出力してもよい。 In a further preferred aspect of the present invention, the response data retransmission means is the event data indicating the start of sound generation when the predetermined time has elapsed after the event data is no longer received. In some cases, event data indicating the end of sound generation may be generated, and the generated event data may be output by the serial communication.

本発明によれば、演奏データを低遅延でかつ安定して無線通信によって送受信することができる。   According to the present invention, performance data can be transmitted and received stably by wireless communication with low delay.

本発明の一実施形態に係るシステムの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the system which concerns on one Embodiment of this invention. 演奏データ送信装置と演奏データ受信装置の外観の一例を示す図である。It is a figure which shows an example of the external appearance of a performance data transmitter and a performance data receiver. 楽器と演奏データ送信装置のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of a musical instrument and a performance data transmission apparatus. 演奏データ受信装置と音源のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of a performance data receiver and a sound source. 演奏データ送信装置と演奏データ受信装置の機能的構成の一例を示すブロック図である。It is a block diagram which shows an example of a functional structure of a performance data transmitter and a performance data receiver. データの内容の一例を示す図である。It is a figure which shows an example of the content of data. データの内容の一例を示す図である。It is a figure which shows an example of the content of data. システムの処理の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of a process of a system. 演奏データ送信装置が行う処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which a performance data transmission apparatus performs. 演奏データ受信装置が行う処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which a performance data receiver performs. システムの処理の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of a process of a system. 遅延時間の計測結果の一例を示す図である。It is a figure which shows an example of the measurement result of delay time. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの構成を概略的に示す図である。It is a figure which shows schematically the structure of the system which concerns on the modification of this invention. 本発明の変形例に係るシステムの動作例を示す図である。It is a figure which shows the operation example of the system which concerns on the modification of this invention.

図1は、本発明の一実施形態に係るシステムの構成を示すブロック図である。MIDI機器1は、例えばシンセサイザやキーボード、電子ピアノ、電子MIDIギターなどの楽器であり、演奏者の演奏操作に応じてMIDI形式で記述されたデータ(以下「MIDIデータ」)を生成する。MIDI機器1は、MIDIデータを出力するためのMIDI出力端子のジャックを備えており、このジャックに接続された外部機器に対して生成したMIDIデータを出力する。この実施形態では、MIDI機器1のジャックには演奏データ送信装置2のプラグが接続される。演奏データ送信装置2は、例えば楽器などで構成されるMIDI機器1から出力されるMIDIデータを無線通信によって演奏データ受信装置3に送信する。演奏データ受信装置3は、演奏データ送信装置2から送信されてくるMIDIデータを受信し、受信したMIDIデータを例えば楽器などで構成される音源を有するMIDI機器4に出力する。音源を有するMIDI機器4は、MIDIデータが入力されるMIDI入力端子のジャックを備えており、このMIDI入力端子に入力されたMIDIデータに応じて放音する。この実施形態では、音源を有するMIDI機器4のジャックには演奏データ受信装置3のプラグが接続される。   FIG. 1 is a block diagram showing the configuration of a system according to an embodiment of the present invention. The MIDI device 1 is a musical instrument such as a synthesizer, a keyboard, an electronic piano, or an electronic MIDI guitar, for example, and generates data described in the MIDI format (hereinafter referred to as “MIDI data”) according to the performance operation of the performer. The MIDI device 1 includes a MIDI output terminal jack for outputting MIDI data, and outputs the generated MIDI data to an external device connected to the jack. In this embodiment, the plug of the performance data transmitting device 2 is connected to the jack of the MIDI device 1. The performance data transmitting device 2 transmits MIDI data output from the MIDI device 1 composed of a musical instrument or the like to the performance data receiving device 3 by wireless communication. The performance data receiving device 3 receives the MIDI data transmitted from the performance data transmitting device 2 and outputs the received MIDI data to a MIDI device 4 having a sound source composed of, for example, a musical instrument. The MIDI device 4 having a sound source includes a jack of a MIDI input terminal to which MIDI data is input, and emits sound according to the MIDI data input to the MIDI input terminal. In this embodiment, the plug of the performance data receiving device 3 is connected to the jack of the MIDI device 4 having a sound source.

図2は、演奏データ送信装置2及び演奏データ受信装置3の形状の一例を示す図である。図示のように、演奏データ送信装置2は、プラグ20aと、小型の筐体20bとを有している。プラグ20aはMIDIケーブルコネクタのプラグと同様であり、MIDIインタフェースを備える装置のMIDI出力端子のジャックに差込可能となっている。この実施形態では、上述したように、演奏データ送信装置2のプラグ20aはMIDI機器1のMIDI出力端子のジャックに差し込んで用いられる。また、演奏データ受信装置3は、プラグ30aと、小型の筐体30bとを有している。プラグ30aはMIDIケーブルコネクタのプラグと同様であり、MIDIインタフェースを備える装置のMIDI入力端子のジャックに差込可能となっている。この実施形態では、上述したように、演奏データ受信装置3のプラグ30aは音源を有するMIDI機器4のMIDI入力端子のジャックに差し込んで用いられる。また、図2に示す例では、演奏データ送信装置2及び演奏データ受信装置3は、筐体20b,筐体30bのそれぞれの中に装置の各部に電力を供給する電源部20c,30cが含まれてMIDI通信回路基板が組み込まれている。   FIG. 2 is a diagram illustrating an example of the shapes of the performance data transmitting device 2 and the performance data receiving device 3. As shown in the figure, the performance data transmitting apparatus 2 includes a plug 20a and a small casing 20b. The plug 20a is the same as the plug of the MIDI cable connector, and can be plugged into the jack of the MIDI output terminal of a device having a MIDI interface. In this embodiment, as described above, the plug 20a of the performance data transmitting apparatus 2 is used by being inserted into the MIDI output terminal jack of the MIDI device 1. The performance data receiving device 3 includes a plug 30a and a small casing 30b. The plug 30a is similar to the plug of the MIDI cable connector, and can be plugged into the jack of the MIDI input terminal of a device having a MIDI interface. In this embodiment, as described above, the plug 30a of the performance data receiving device 3 is used by being inserted into the jack of the MIDI input terminal of the MIDI device 4 having a sound source. In the example shown in FIG. 2, the performance data transmitting device 2 and the performance data receiving device 3 include power supply units 20c and 30c for supplying power to each unit of the device in the housing 20b and the housing 30b. A MIDI communication circuit board is incorporated.

図3は、MIDI機器1と演奏データ送信装置2のハードウェア構成の一例を示す図である。図において、CPU(Central Processing Unit)11は、ROM(Read Only Memory)12に記憶されているコンピュータプログラムを読み出してRAM(Random Access Memory)13にロードし、これを実行することにより、MIDI機器1の各部を制御する。記憶部14は、ハードディスクや光ディスク等の大容量の記憶手段である。操作部15は、MIDI機器1に対する操作を受け付けるためのものであり、各種の設定を行うためのキーやボタンの他、利用者が演奏操作を行うための操作子を備える。より具体的には、例えば、MIDI機器1が鍵盤楽器である場合には、操作部15は鍵盤やフットペダルを備え、MIDI機器1が弦楽器である場合には弦を備える。また、MIDI機器1が吹奏楽器である場合にはマウスピースを備える。操作部15は、利用者の演奏内容に応じた信号を出力し、CPU11は、操作部15からの出力信号に応じてMIDIデータを生成する。MIDII/F16は、MIDI出力端子のジャックを備え、CPU11によって生成されたMIDIデータを、ジャックに接続されたケーブルや外部装置に出力する。MIDII/F16から出力されるMIDIデータは、MIDIイベントを表すイベントデータが時系列に並んで構成されたデータである。   FIG. 3 is a diagram illustrating an example of a hardware configuration of the MIDI device 1 and the performance data transmitting apparatus 2. In the figure, a CPU (Central Processing Unit) 11 reads a computer program stored in a ROM (Read Only Memory) 12, loads it into a RAM (Random Access Memory) 13, and executes it to execute the MIDI device 1. Control each part. The storage unit 14 is a large-capacity storage unit such as a hard disk or an optical disk. The operation unit 15 is for accepting operations on the MIDI device 1 and includes an operator for a user to perform performance operations in addition to keys and buttons for performing various settings. More specifically, for example, when the MIDI device 1 is a keyboard instrument, the operation unit 15 includes a keyboard and a foot pedal, and when the MIDI device 1 is a stringed instrument, it includes a string. When the MIDI device 1 is a wind instrument, a mouthpiece is provided. The operation unit 15 outputs a signal corresponding to the performance content of the user, and the CPU 11 generates MIDI data according to the output signal from the operation unit 15. The MID II / F 16 includes a MIDI output terminal jack, and outputs the MIDI data generated by the CPU 11 to a cable or an external device connected to the jack. The MIDI data output from the MID II / F 16 is data in which event data representing MIDI events are arranged in time series.

次に、演奏データ送信装置2のハードウェア構成について説明する。CPU21は、ROM22に記憶されているコンピュータプログラムを読み出してRAM23にロードし、これを実行することにより、演奏データ送信装置2の各部を制御する。MIDII/F26は、MIDI出力端子のジャックに差込可能なプラグ20aを備え、MIDI機器1から出力されるMIDIデータがシリアル通信によって入力される。無線通信部24は、無線により他の装置と通信を行うインタフェースである。   Next, the hardware configuration of the performance data transmitting apparatus 2 will be described. The CPU 21 reads out a computer program stored in the ROM 22, loads it into the RAM 23, and executes it to control each part of the performance data transmitting apparatus 2. The MID II / F 26 includes a plug 20a that can be plugged into a jack of a MIDI output terminal, and MIDI data output from the MIDI device 1 is input by serial communication. The wireless communication unit 24 is an interface that communicates with other devices wirelessly.

図4は、演奏データ受信装置3と音源を有するMIDI機器4のハードウェア構成の一例を示す図である。図において、CPU31は、ROM32に記憶されているコンピュータプログラムを読み出してRAM33にロードし、これを実行することにより、演奏データ受信装置3の各部を制御する。無線通信部34は、無線により他の装置と通信を行うインタフェースである。MIDII/F36は、MIDI入力端子のジャックに差込可能なプラグ30aを備え、MIDIデータをシリアル通信によって出力する。   FIG. 4 is a diagram illustrating an example of a hardware configuration of the performance data receiving device 3 and the MIDI device 4 having a sound source. In the figure, a CPU 31 reads out a computer program stored in a ROM 32, loads it into a RAM 33, and executes it to control each part of the performance data receiving apparatus 3. The wireless communication unit 34 is an interface that communicates with other devices wirelessly. The MIDII / F 36 includes a plug 30a that can be plugged into a jack of a MIDI input terminal, and outputs MIDI data by serial communication.

次に、音源を有するMIDI機器4のハードウェア構成について説明する。CPU41は、ROM42に記憶されているコンピュータプログラムを読み出してRAM43にロードし、これを実行することにより、音源を有するMIDI機器4の各部を制御する。MIDII/F46は、MIDI入力端子のジャックを備え、このジャックに接続された演奏データ受信装置3からMIDIデータが入力される。音源部44は、MIDII/F46に入力されたMIDIデータを基に、デジタル音響信号である波形データを生成する音源手段である。また、音源部44は、生成した波形データをスピーカ45に供給し、その波形データに基づく発音を行わせる。さらに、生成した波形データに対してミキシングやイコライジング等の処理を行う手段を設けてもよい。   Next, a hardware configuration of the MIDI device 4 having a sound source will be described. The CPU 41 reads out a computer program stored in the ROM 42, loads it into the RAM 43, and executes it to control each part of the MIDI device 4 having a sound source. The MID II / F 46 includes a MIDI input terminal jack, and MIDI data is input from the performance data receiving apparatus 3 connected to the jack. The sound source unit 44 is a sound source unit that generates waveform data that is a digital sound signal based on MIDI data input to the MID II / F 46. In addition, the sound source unit 44 supplies the generated waveform data to the speaker 45, and performs sound generation based on the waveform data. Furthermore, a means for performing processing such as mixing and equalizing on the generated waveform data may be provided.

次に、演奏データ送信装置2と演奏データ受信装置3の機能的構成について図5を参照しつつ説明する。図において、UART(Universal Asynchronous Receiver Transmitter)211は、調歩同期方式によるシリアル信号をパラレル信号に変換したり、その逆方向の変換を行うための集積回路である。UART211は、MIDI機器1からのUART割り込み(すなわちMIDIデータの入力)を監視し、割り込みが発生すると、UART211のデータバッファのバッファリングを行う。また、UART211は、RF(Radio Frequency)通信を開始するため、タイマ212を起動する。   Next, functional configurations of the performance data transmitting device 2 and the performance data receiving device 3 will be described with reference to FIG. In the figure, a UART (Universal Asynchronous Receiver Transmitter) 211 is an integrated circuit for converting a serial signal based on an asynchronous process into a parallel signal or converting in the opposite direction. The UART 211 monitors a UART interrupt (that is, input of MIDI data) from the MIDI device 1 and performs buffering of the data buffer of the UART 211 when an interrupt occurs. Further, the UART 211 starts the timer 212 in order to start RF (Radio Frequency) communication.

タイマ212は、UART211によって起動されてから640us後にタイマ割り込みを発生させて、RF通信を開始する。バッファ213は、UART211のデータバッファのバッファリングを行う。通信制御部214は、演奏データ受信装置3との間で無線通信のペアリングを行うとともに、ペアリングされた演奏データ受信装置3へ、MIDIデータをイベント単位で送信する。通信制御部214は、RF通信エラーが発生した場合に、再送を行うためのタイマ215を起動する。通信制御部214は、送信用バッファ(図示略)を参照して送信用のイベントデータを生成する。この実施形態では、通信制御部214の送信パケットサイズは4バイトとしており、それ以上のデータが送信用バッファにたまっている場合は、複数に分けて送信される。   The timer 212 generates a timer interrupt 640us after being activated by the UART 211, and starts RF communication. The buffer 213 performs buffering of the data buffer of the UART 211. The communication control unit 214 performs wireless communication pairing with the performance data receiving device 3 and transmits MIDI data to the paired performance data receiving device 3 in units of events. The communication control unit 214 starts a timer 215 for performing retransmission when an RF communication error occurs. The communication control unit 214 refers to a transmission buffer (not shown) and generates event data for transmission. In this embodiment, the transmission packet size of the communication control unit 214 is 4 bytes, and when more data is accumulated in the transmission buffer, it is divided into a plurality of pieces and transmitted.

また、通信制御部214は、送信したイベントデータの応答として演奏データ受信装置3から送信されてくる応答データ(ACKデータ)を受信する。応答データは、動作の完了を知らせる信号であり、特に、データを転送する際に、送信側からの転送要求に対して、受信側が転送を許可する意味で送信側に発する信号のことを示す。タイマ215は、通信制御部214によってタイマが起動されてから960us後にタイマ割り込みを発生させる。通信制御部214は、イベントデータを送信してから960us以内に応答データが受信されなかった場合、直前に送信したイベントデータを再送する。タイマ215のタイマ割り込みが発生する前に応答データを受信した場合は、通信制御部214は再送処理を行わない。   Further, the communication control unit 214 receives response data (ACK data) transmitted from the performance data receiving device 3 as a response to the transmitted event data. The response data is a signal that informs the completion of the operation, and particularly indicates a signal that is transmitted to the transmission side in the sense that the reception side permits the transfer in response to a transfer request from the transmission side when the data is transferred. The timer 215 generates a timer interrupt 960 us after the communication control unit 214 starts the timer. If the response data is not received within 960 us after transmitting the event data, the communication control unit 214 retransmits the event data transmitted immediately before. If the response data is received before the timer interrupt of the timer 215 occurs, the communication control unit 214 does not perform retransmission processing.

次に、演奏データ受信装置3の機能的構成について説明する。通信制御部313は、演奏データ送信装置2との間で、無線通信のペアリングを行うとともに、ペアリングされた演奏データ送信装置2から、MIDIイベントを表すイベントデータ単位で送信されてくるMIDIデータをイベントデータ単位で受信する。通信制御部313は、MIDI形式のイベントデータや、ペアリングダミーデータを受信する毎に、受信したデータをUART311へ出力する。また、通信制御部313は、イベントデータを受信する毎に、イベントデータを受信した旨を示す応答データを、ペアリングされた演奏データ送信装置2へ送信する。UART311は、受信されたイベントデータを音源を有するMIDI機器4へ出力する。このとき、受信されたイベントデータをバッファ312にバッファリングし、バッファリング後、バッファ312にたまっているデータを出力するようにしてもよい。   Next, the functional configuration of the performance data receiving device 3 will be described. The communication control unit 313 performs wireless communication pairing with the performance data transmitting apparatus 2 and transmits MIDI data transmitted in units of event data representing MIDI events from the paired performance data transmitting apparatus 2. Is received in event data units. The communication control unit 313 outputs the received data to the UART 311 each time it receives MIDI format event data or pairing dummy data. In addition, every time event data is received, the communication control unit 313 transmits response data indicating that the event data has been received to the paired performance data transmitting device 2. The UART 311 outputs the received event data to the MIDI device 4 having a sound source. At this time, the received event data may be buffered in the buffer 312, and the data accumulated in the buffer 312 may be output after the buffering.

通信制御部313はMIDIフォーマットのチェックを行わず、受信したMIDIのイベントデータをそのままUART311へ出力する。これは、演奏データ受信装置3はMIDIデータの受信のみを想定しており、無線通信が正常であれば、フォーマットチェックは必要ないと言えるためである。このように演奏データ受信装置3でフォーマットチェック処理を行わないことにより、データを受信してから音が出力されるまでの処理時間が短縮され、遅延が軽減される。   The communication control unit 313 does not check the MIDI format and outputs the received MIDI event data to the UART 311 as it is. This is because the performance data receiving apparatus 3 assumes only the reception of MIDI data, and if the wireless communication is normal, it can be said that the format check is not necessary. By not performing the format check process in the performance data receiving apparatus 3 in this way, the processing time from when data is received until the sound is output is shortened, and the delay is reduced.

通信制御部313は、応答データを送信する毎に、次のイベントデータの受信を予め定められた待機時間T0だけ待機し、待機時間T0内に次のイベントデータが受信されなかった場合には応答データを再送する。通信制御部313は、この待機処理及び再送処理を予め定められた回数(例えば3回)だけ繰り返し実行する。このように繰り返し応答データを再送することにより、エラーが発生している場合であっても、再送処理がスムーズに行われる。   Each time the response control data is transmitted, the communication control unit 313 waits for reception of the next event data for a predetermined waiting time T0, and responds when the next event data is not received within the waiting time T0. Resend data. The communication control unit 313 repeatedly executes the standby process and the retransmission process a predetermined number of times (for example, three times). By repeatedly retransmitting the response data in this way, even if an error has occurred, the retransmission process is performed smoothly.

また、この実施形態では、演奏データ受信装置3は、MIDIデータをイベント単位で受信するから、受信したイベントデータを再構築する必要がなく、そのまま音源を有するMIDI機器4へ出力することができる。すなわち、受信したイベントデータをバッファリングする必要がなく、そのまま音源を有するMIDI機器4へ供給することができ、これにより遅延の発生を少なくすることができる。   In this embodiment, the performance data receiving device 3 receives the MIDI data in units of events, so that it is not necessary to reconstruct the received event data and can be output to the MIDI device 4 having a sound source as it is. That is, the received event data does not need to be buffered and can be supplied as it is to the MIDI device 4 having the sound source, thereby reducing the occurrence of delay.

次に、演奏データ送信装置2が送信するイベントデータと、演奏データ受信装置3が送信する応答データの内容の一例について、図面を参照しつつ説明する。演奏データ送信装置2は、操作部15により受け付けた操作内容に従って、ノートオンやノートオフを始めとする演奏内容に係るMIDIデータを生成し、演奏データ受信装置3へ無線で送信する。図6は、演奏データ送信装置2が送信するイベントデータの内容の一例を示す図である。図示のように、イベントデータは、「Data No」と「NET No」と「DataSize」と「Data1」と「Data2」と「Data3」とのデータを含んでいる。これらのデータはそれぞれ1バイトである。「Data No」の項目には、ペアリングによって確立された無線通信を識別するIDが格納され、誤再送の判断に使用され、正常に通信ができたときにこの項目が更新される。「NET No」の項目には、演奏データ送信装置2を識別するIDが格納される。これは、複数のMIDI機器1と複数の演奏データ送信装置2が用いられる場合(例えば、複数のMIDI機器1を用いてセッションを行う場合、等)において、各演奏データ送信装置2を識別するための情報である。「DataSize」の項目には、このイベントデータのデータサイズを示す情報が格納される。「Data1」、「Data2」、「Data3」の項目には、例えばキーナンバーや、ノートオン/オフ、ベロシティ等、MIDIイベントの内容を表すデータが格納される。この「Data1」、「Data2」、「Data3」などの「Data(数字)」の数は、上記例の3つに限定されず、制御する音数等に応じて所望の数を付すことができる。その際に、「DataSize」がそれに合わせた値を示すものとなる。   Next, an example of contents of event data transmitted by the performance data transmitting apparatus 2 and response data transmitted by the performance data receiving apparatus 3 will be described with reference to the drawings. The performance data transmitting device 2 generates MIDI data related to the performance content including note-on and note-off according to the operation content received by the operation unit 15 and transmits the MIDI data to the performance data receiving device 3 wirelessly. FIG. 6 is a diagram showing an example of the contents of event data transmitted by the performance data transmitting apparatus 2. As illustrated, the event data includes data of “Data No”, “NET No”, “Data Size”, “Data 1”, “Data 2”, and “Data 3”. Each of these data is 1 byte. In the item “Data No”, an ID for identifying the wireless communication established by pairing is stored and used for determination of erroneous retransmission, and this item is updated when communication is normally performed. In the item “NET No”, an ID for identifying the performance data transmitting apparatus 2 is stored. This is to identify each performance data transmitting device 2 when a plurality of MIDI devices 1 and a plurality of performance data transmitting devices 2 are used (for example, when a session is performed using a plurality of MIDI devices 1). Information. In the item “DataSize”, information indicating the data size of the event data is stored. In the items “Data 1”, “Data 2”, and “Data 3”, data representing the contents of the MIDI event such as a key number, note on / off, velocity, and the like are stored. The number of “Data (numbers)” such as “Data1”, “Data2”, “Data3” is not limited to three in the above example, and a desired number can be given according to the number of sounds to be controlled. . At that time, “DataSize” indicates a value corresponding to the “DataSize”.

次に、演奏データ受信装置3が演奏データ送信装置2に送信する応答データの構成の一例について、図7を参照しつつ説明する。図7は、演奏データ受信装置3が送信する応答データの内容の一例を示す図である。図示のように、応答データは、「NetNo」と「Command」と「Data1」と「Data2」と「Data3」と「NodeMax」とのデータを含んでいる。これらのデータはそれぞれ1バイトである。「NetNo」の項目には、ペアリングによって確立された無線通信を識別するIDが格納される。「Command」の項目には、コマンドの内容を表すデータ(ここでは、ACKである旨を示すデータ)が格納される。「Data1」と「Data2」と「Data3」の項目には、コマンドの種類によって必要となるパラメータが格納される。応答データである場合には、「Data1」、「Data2」、「Data3」の各項目にはNULLが設定される。「NodeMax」の項目には、ペアリング可能な装置の最大台数を示す情報が格納される。この「Data1」、「Data2」、「Data3」などの「Data(数字)」の数は、演奏データ受信装置3が受信したイベントデータに応じたものとなる。   Next, an example of the structure of response data transmitted from the performance data receiving device 3 to the performance data transmitting device 2 will be described with reference to FIG. FIG. 7 is a diagram showing an example of the content of response data transmitted by the performance data receiving device 3. As illustrated, the response data includes data of “NetNo”, “Command”, “Data1”, “Data2”, “Data3”, and “NodeMax”. Each of these data is 1 byte. The item “NetNo” stores an ID for identifying wireless communication established by pairing. In the item “Command”, data representing the content of the command (in this case, data indicating ACK) is stored. In the items “Data 1”, “Data 2”, and “Data 3”, parameters necessary depending on the type of command are stored. In the case of response data, NULL is set in each item of “Data 1”, “Data 2”, and “Data 3”. In the item “NodeMax”, information indicating the maximum number of devices that can be paired is stored. The number of “Data (numbers)” such as “Data 1”, “Data 2”, “Data 3”, etc. corresponds to the event data received by the performance data receiving device 3.

次いで、本実施形態の動作について、図8に示すシーケンス図を参照しつつ説明する。図8は、通常時の処理の流れを示すシーケンス図である。上述したように、MIDI機器1と演奏データ送信装置2との間はMIDIケーブル通信によってデータの授受が行われ、演奏データ送信装置2と演奏データ受信装置3との間は無線通信によってデータの授受が行われる。また、演奏データ受信装置3と音源を有するMIDI機器4との間はMIDIケーブル通信によってデータの授受が行われる。図8において、まず、データの授受を行うに先立って、演奏データ送信装置2と演奏データ受信装置3はペアリングを行う。具体的には、まず、演奏データ受信装置3の通信制御部313がRFチャンネルをサーチする信号を送信し(ステップS1)、演奏データ送信装置2の通信制御部214は、演奏データ受信装置3から出力される信号を受信すると、受信した信号に基づいて演奏データ受信装置3との間でペアリングを確立する(ステップS2)。   Next, the operation of the present embodiment will be described with reference to the sequence diagram shown in FIG. FIG. 8 is a sequence diagram showing a normal process flow. As described above, data is exchanged between the MIDI device 1 and the performance data transmitting apparatus 2 by MIDI cable communication, and data is exchanged between the performance data transmitting apparatus 2 and the performance data receiving apparatus 3 by wireless communication. Is done. Data is exchanged between the performance data receiving apparatus 3 and the MIDI device 4 having a sound source by MIDI cable communication. In FIG. 8, first, the performance data transmitting apparatus 2 and the performance data receiving apparatus 3 perform pairing prior to data exchange. Specifically, first, the communication control unit 313 of the performance data receiving device 3 transmits a signal for searching for the RF channel (step S1), and the communication control unit 214 of the performance data transmitting device 2 receives the signal from the performance data receiving device 3. When the output signal is received, pairing is established with the performance data receiving device 3 based on the received signal (step S2).

ここで、演奏データ送信装置2と演奏データ受信装置3が行うペアリング処理の流れについて、図9及び図10を参照しつつより具体的に説明する。図9は、演奏データ送信装置2が行うペアリング処理の流れの一例を示すフローチャートであり、図10は、演奏データ受信装置3が行うペアリング処理の流れの一例を示すフローチャートである。演奏データ送信装置2の通信制御部214は、装置の電源がONされることによって図9に示す処理を開始する。装置の電源がONされると、演奏データ送信装置2の通信制御部214は、各種の初期処理を行い(ステップS110)、ペアリングを行うためのダミーデータを演奏データ受信装置3へ送信する(ステップS111)。次いで、通信制御部214は、送信したダミーデータに対して演奏データ受信装置3から応答データ(ACK)が返答された場合には(ステップS112;YES)、ペアリングを確立して通信可能状態とする(ステップS113)一方、演奏データ受信装置3から予め定められた期間(例えば、75ms)待機しても応答データが受信されなかった場合には(ステップS112;NO)、ステップS111の処理に戻り、ダミーデータの再送を行う(ステップS111)。ここまでの処理は図8のステップS1,S2に対応するものである。更に、通信制御部214は、データの再送を予め定められた回数(例えば、100回)以上失敗するまで待機し(ステップS114;NO)、データの再送を予め定められた回数以上失敗した場合には(ステップS114;YES)、ペアリングを解除し、ステップS111に戻ってペアリング処理を再度実行する。   Here, the flow of the pairing process performed by the performance data transmitting device 2 and the performance data receiving device 3 will be described more specifically with reference to FIGS. 9 and 10. FIG. 9 is a flowchart showing an example of the flow of pairing processing performed by the performance data transmitting apparatus 2, and FIG. 10 is a flowchart showing an example of the flow of pairing processing performed by the performance data receiving apparatus 3. The communication control unit 214 of the performance data transmitting apparatus 2 starts the process shown in FIG. 9 when the apparatus is turned on. When the apparatus is turned on, the communication control unit 214 of the performance data transmitting apparatus 2 performs various initial processes (step S110), and transmits dummy data for pairing to the performance data receiving apparatus 3 ( Step S111). Next, when response data (ACK) is returned from the performance data receiving device 3 to the transmitted dummy data (step S112; YES), the communication control unit 214 establishes pairing and sets the communication ready state. On the other hand, if no response data is received after waiting for a predetermined period (for example, 75 ms) from the performance data receiving device 3 (step S112; NO), the process returns to the process of step S111. Then, the dummy data is retransmitted (step S111). The processing so far corresponds to steps S1 and S2 in FIG. Further, the communication control unit 214 waits until retransmission of data fails for a predetermined number of times (for example, 100 times) (step S114; NO), and when retransmission of data fails for a predetermined number of times. (Step S114; YES) cancels the pairing, returns to Step S111, and executes the pairing process again.

また、演奏データ受信装置3の電源がONされると、演奏データ受信装置3の通信制御部313は、図10に示す処理を開始する。電源がONされると、通信制御部313は、各種の初期処理を行った後(ステップS210)、RFチャンネルをサーチする信号を送信する(ステップS211)。サーチしたRFチャンネルが未使用であると判定された場合は(ステップS212;YES)、通信制御部313は、演奏データ送信装置2からペアリング用のダミーデータを受信し(ステップS213)、ペアリングを確立して通信可能状態とする(ステップS214)。一方、ステップS212においてサーチしたRFチャンネルが使用中であると判断された場合は(ステップS212;NO)、通信制御部313は、別のRFチャンネルをサーチするための信号を送信し(ステップS211)、未使用のRFチャンネルがサーチされるまで、ステップS211〜ステップS212の処理を繰り返す。   When the performance data receiving device 3 is turned on, the communication control unit 313 of the performance data receiving device 3 starts the process shown in FIG. When the power is turned on, the communication control unit 313 performs various initial processes (step S210), and then transmits a signal for searching for an RF channel (step S211). If it is determined that the searched RF channel is unused (step S212; YES), the communication control unit 313 receives pairing dummy data from the performance data transmitting apparatus 2 (step S213), and performs pairing. Is established to enable communication (step S214). On the other hand, if it is determined in step S212 that the searched RF channel is in use (step S212; NO), the communication control unit 313 transmits a signal for searching for another RF channel (step S211). Until the unused RF channel is searched, the processes in steps S211 to S212 are repeated.

図8の説明に戻る。ペアリングが行われると、演奏データ送信装置2と演奏データ受信装置3はデータの授受を待機する。利用者は、MIDI機器1の操作部15を用いてMIDI機器1を演奏する。利用者によって演奏が行われると、操作部15は、演奏内容に応じた信号を出力し、CPU11は、操作部15から出力される信号に応じてMIDIイベントを表すイベントデータM1を生成する。イベントデータM1を生成すると、MIDI機器1は、生成したイベントデータM1を演奏データ送信装置2に出力する(ステップS3)。演奏データ送信装置2の通信制御部214は、MIDI機器1からイベントデータM1が出力されると、予め定められた待機時間T3(例えば、640us)だけ待機した後、入力されたイベントデータM1を演奏データ受信装置3に送信する(ステップS4)。なお、本実施形態での無線転送レートは、2Mbpsを想定しているが、転送レートはこれに限定されるものではなく、他のレートであってもよい。なお、MIDI規格の通信レートはそれほど速くないため、2Mbpsの無線通信レートであっても遅延が発生することはないと言える。   Returning to the description of FIG. When pairing is performed, the performance data transmitting device 2 and the performance data receiving device 3 wait for data exchange. The user plays the MIDI device 1 using the operation unit 15 of the MIDI device 1. When a performance is performed by the user, the operation unit 15 outputs a signal corresponding to the performance content, and the CPU 11 generates event data M1 representing a MIDI event according to the signal output from the operation unit 15. When the event data M1 is generated, the MIDI device 1 outputs the generated event data M1 to the performance data transmitting device 2 (step S3). When the event data M1 is output from the MIDI device 1, the communication control unit 214 of the performance data transmitting apparatus 2 waits for a predetermined waiting time T3 (for example, 640 us) and then plays the input event data M1. It transmits to the data receiver 3 (step S4). Although the wireless transfer rate in this embodiment is assumed to be 2 Mbps, the transfer rate is not limited to this and may be other rates. Note that since the communication rate of the MIDI standard is not so fast, it can be said that no delay occurs even at a wireless communication rate of 2 Mbps.

この実施形態では、演奏データ送信装置2はMIDIデータを1イベント毎に送信する。このように、複数のイベントをまとめて送信するのではなくイベント単位でこまめに送信することによって、無線通信においてやりとりするパケットサイズを小さくしている。   In this embodiment, the performance data transmitting device 2 transmits MIDI data for each event. In this way, the packet size exchanged in wireless communication is reduced by frequently transmitting a plurality of events instead of transmitting them in units of events.

一方、演奏データ受信装置3の通信制御部313は、演奏データ送信装置2からイベントデータM1を受信すると、受信したイベントデータM1を、音源を有するMIDI機器4へ出力する(ステップS5)とともに、受信したイベントデータM1の応答として、演奏データ送信装置2へ応答データを送信する(ステップS6)。このとき、上述したように、通信制御部313は受信したイベントデータをほとんどバッファリングすることなく直ぐ処理する。なお、演奏データ受信装置3でバッファリングを行ってもよいが、バッファリングを行わない場合に最も遅延時間が短くなるため、好適であると言える。   On the other hand, when the communication control unit 313 of the performance data receiving device 3 receives the event data M1 from the performance data transmitting device 2, it outputs the received event data M1 to the MIDI device 4 having a sound source (step S5). Response data is transmitted to the performance data transmitting apparatus 2 as a response to the event data M1 (step S6). At this time, as described above, the communication control unit 313 processes the received event data immediately with little buffering. Although the performance data receiving device 3 may perform buffering, it can be said that it is preferable because the delay time becomes the shortest when buffering is not performed.

通信制御部313は、ひとつのイベントデータを受信する毎に応答データを演奏データ送信装置2へ送信する。このとき、通信制御部313は、応答データを送信する必要があるため、通信モードを送信モードに切り替える処理を行う。応答データの送信を終えるとまた受信モードに戻る、といったように、受信モードと送信モードとを短い時間間隔で切り替えている。   The communication control unit 313 transmits response data to the performance data transmitting device 2 every time one event data is received. At this time, since the communication control unit 313 needs to transmit response data, the communication control unit 313 performs processing for switching the communication mode to the transmission mode. The reception mode and the transmission mode are switched at a short time interval, such as returning to the reception mode when the transmission of the response data is completed.

演奏データ送信装置2の通信制御部214は、ひとつのイベントデータを送信する毎に、応答データの受信を予め定められた待機時間T1(この実施形態では、960us)だけ待機する。なお、待機時間T1のあいだに次に送信するイベントデータのエラーチェック処理を行うようにしてもよい。通信制御部214は、待機時間T1内に応答データが受信された場合には、次のイベントデータを送信する一方、待機時間T1内に応答データが受信されなかった場合は、直前に送信したイベントデータを再送する。また、このとき、通信制御部214は、待機時間T1よりも長い待機時間T2(例えば、1.92ms)だけ待機しても応答データが受信されなかった場合には、次のイベントデータを送信する。   The communication control unit 214 of the performance data transmitting apparatus 2 waits for reception of response data for a predetermined waiting time T1 (in this embodiment, 960 us) every time one event data is transmitted. Note that error check processing of event data to be transmitted next may be performed during the waiting time T1. When response data is received within the waiting time T1, the communication control unit 214 transmits the next event data. When response data is not received within the waiting time T1, the communication control unit 214 transmits the event transmitted immediately before. Resend data. At this time, if no response data is received even after waiting for a waiting time T2 (eg, 1.92 ms) longer than the waiting time T1, the communication control unit 214 transmits the next event data. .

次に、MIDI機器1からMIDIイベントデータが複数連続して出力された場合の動作について説明する。MIDI機器1から待機時間T3以内の間隔でイベントデータM2,M3,M4,M5が複数連続して出力されると(ステップS7,S8,S9,S10)、演奏データ送信装置2の通信制御部214は、出力されたイベントデータM2,M3,M4,M5をまとめたイベントデータM20を生成し、生成したイベントデータM20を演奏データ受信装置3へ送信する(ステップS11)。演奏データ受信装置3は、演奏データ送信装置2からイベントデータM20を受信すると、受信したイベントデータM20を音源へ出力する(ステップS12)とともに、受信の応答として演奏データ送信装置2へ応答データを送信する(ステップS13)。   Next, an operation when a plurality of MIDI event data is continuously output from the MIDI device 1 will be described. When a plurality of event data M2, M3, M4, and M5 are continuously output from the MIDI device 1 at intervals within the waiting time T3 (steps S7, S8, S9, and S10), the communication control unit 214 of the performance data transmitting apparatus 2 is output. Generates event data M20 in which the output event data M2, M3, M4, and M5 are combined, and transmits the generated event data M20 to the performance data receiving device 3 (step S11). When the performance data receiving apparatus 3 receives the event data M20 from the performance data transmitting apparatus 2, the performance data receiving apparatus 3 outputs the received event data M20 to the sound source (step S12) and transmits response data to the performance data transmitting apparatus 2 as a reception response. (Step S13).

次いで、図11を参照しつつ、エラーが発生した場合の動作の流れについて説明する。図11は、エラーが発生した場合の処理の流れの一例を示すシーケンス図である。なお、図11において、図8と同様の処理については同じ符号を付して適宜その説明を省略する。図11において、通信制御部214は、イベントデータM1を送信(ステップS4)してから待機時間T1だけ待機しても演奏データ受信装置3から応答データが受信されなかった場合には、イベントデータM1を再送する(ステップS21)。このように、MIDI受信装置2の通信制御部214は、待機時間T1内に応答データが受信されなかった場合は直前に送信したイベントデータを再送する。このとき、通信制御部214は、待機時間T1よりも長い待機時間T2だけ待機しても応答データが受信されなかった場合には、次のイベントデータを送信する。このように、待機時間T1だけ待機しても応答データが受信されなかった場合には直前のイベントデータを再生し、かつ、待機時間T2だけ待機しても応答データが受信されなかった場合には次のイベントデータを送信することによって、遅延を必要最小限に抑えつつ、安定したデータ通信を行うことができる。この再送処理は、複数のイベントデータをまとめたイベントデータを送信する場合も同様であり、通信制御部214は、イベントデータM20を送信(ステップS11)してから待機時間T1だけ待機しても応答データが受信されなかった場合に、イベントデータM20を再送する(ステップS22)。   Next, an operation flow when an error occurs will be described with reference to FIG. FIG. 11 is a sequence diagram illustrating an example of a process flow when an error occurs. In FIG. 11, the same processes as those in FIG. 8 are denoted by the same reference numerals, and the description thereof is omitted as appropriate. In FIG. 11, the communication control unit 214 transmits the event data M1 (step S4) and waits for the waiting time T1, and if no response data is received from the performance data receiving device 3, the event data M1 is received. Is retransmitted (step S21). As described above, the communication control unit 214 of the MIDI receiving device 2 retransmits the event data transmitted immediately before when the response data is not received within the waiting time T1. At this time, if no response data is received even after waiting for a waiting time T2 longer than the waiting time T1, the communication control unit 214 transmits the next event data. As described above, when response data is not received even after waiting for the waiting time T1, the immediately preceding event data is reproduced, and when response data is not received even after waiting for the waiting time T2. By transmitting the next event data, stable data communication can be performed while minimizing the delay. This resending process is the same in the case of transmitting event data in which a plurality of event data is collected, and the communication control unit 214 responds even after waiting for the waiting time T1 after transmitting the event data M20 (step S11). If no data is received, the event data M20 is retransmitted (step S22).

次いで、通信制御部214が応答データを待機している最中にMIDI機器1から次のイベントデータを受信した場合の動作について、ステップS23乃至ステップS31を参照しつつ説明する。MIDI機器1がイベントデータM6を出力し(ステップS23)、演奏データ送信装置2の通信制御部214がイベントデータM6を演奏データ受信装置3へ送信(ステップS24)してから待機時間T1だけ待機している間において、演奏データ送信装置2がMIDI機器1からイベントデータM7を受信する場合がある(ステップS25)。この場合、通信制御部214は、新たに受信したイベントデータM7をバッファリングしておき、応答データの受信の待機を継続する。イベントデータM6を送信してから待機時間T1だけ待機しても応答データが受信されなかった場合には、通信制御部214はイベントデータM6を再送する(ステップS26)。演奏データ受信装置3の通信制御部313は、イベントデータM6を受信すると、受信したイベントデータM6を音源を有するMIDI機器4へ出力する(ステップS27)とともに、応答データを演奏データ送信装置2へ送信する(ステップS28)。   Next, the operation when the next event data is received from the MIDI device 1 while the communication control unit 214 is waiting for the response data will be described with reference to steps S23 to S31. The MIDI device 1 outputs the event data M6 (step S23), and the communication control unit 214 of the performance data transmitting apparatus 2 transmits the event data M6 to the performance data receiving apparatus 3 (step S24), and waits for a waiting time T1. During this time, the performance data transmitting apparatus 2 may receive the event data M7 from the MIDI device 1 (step S25). In this case, the communication control unit 214 buffers the newly received event data M7 and continues to wait for reception of response data. If the response data is not received even after waiting for the waiting time T1 after transmitting the event data M6, the communication control unit 214 retransmits the event data M6 (step S26). When receiving the event data M6, the communication control unit 313 of the performance data receiving device 3 outputs the received event data M6 to the MIDI device 4 having a sound source (step S27) and transmits response data to the performance data transmitting device 2. (Step S28).

次いで、通信制御部214は、イベントデータM7を受信してから待機時間T3だけ待機した後にイベントデータM7を演奏データ受信装置3へ送信する(ステップS29)。演奏データ受信装置3の通信制御部313は、イベントデータM7を受信すると、受信したイベントデータM7を、音源を有するMIDI機器4に出力する(ステップS30)とともに、応答データを演奏データ送信装置2へ送信する(ステップS31)。本実施形態では、以上のような処理を行って、MIDIデータを無線通信によって送受信する。   Next, the communication control unit 214 waits for the waiting time T3 after receiving the event data M7, and then transmits the event data M7 to the performance data receiving device 3 (step S29). Upon receiving the event data M7, the communication control unit 313 of the performance data receiving device 3 outputs the received event data M7 to the MIDI device 4 having a sound source (step S30), and response data to the performance data transmitting device 2. Transmit (step S31). In the present embodiment, the processing as described above is performed, and MIDI data is transmitted and received by wireless communication.

図12は、本実施形態に係るデータの送受信処理において発生する遅延時間の計測結果の一例を示す図である。図12の(a)は、演奏データ送信装置2と演奏データ受信装置3との間で発生する遅延時間の音数(ノート数)毎の計測結果R1と、既存のC社製品において発生する遅延時間の音数毎の計測結果R2とをグラフで示した図である。また、図12の(b)は、両者の計測結果を数値で示した図である。図12の(a)において、横軸の「音数」は、送信されるイベントデータに含まれるノートの数(音数)を示し、縦軸は、発生する遅延時間を示す。図示のように、本実施形態において発生する遅延時間は、音数が増えてもそれに左右されず1.8msから2.0msの間で安定しており、また、既存のC社製品の遅延時間よりも小さい値となっている。   FIG. 12 is a diagram illustrating an example of a measurement result of a delay time generated in the data transmission / reception processing according to the present embodiment. FIG. 12A shows a measurement result R1 for each number of notes (number of notes) of a delay time generated between the performance data transmitting device 2 and the performance data receiving device 3, and a delay generated in an existing C company product. It is the figure which showed the measurement result R2 for every sound number of time with the graph. Moreover, (b) of FIG. 12 is the figure which showed both the measurement results numerically. In FIG. 12A, the “sound number” on the horizontal axis indicates the number of notes (sound number) included in the transmitted event data, and the vertical axis indicates the delay time to be generated. As shown in the figure, the delay time generated in this embodiment is not affected by the increase in the number of sounds and is stable between 1.8 ms and 2.0 ms. The value is smaller than that.

ところで、一般的に、人間の聴覚において音の遅延時間の許容範囲は5ms程度と言われており、音の遅延が3ms以上であれば聴覚的に違和感を覚える人もいると言われている。すなわち、音の遅延が2ms以内であれば聴覚的には問題ないことが知られている。例えば、同時に演奏すべき和音の構成音が同時に演奏されなくても、その遅延が2ms以内であれば、聴感上は同時に演奏された音として聞こえることが知られている。本実施形態では、2ms以内の待機時間を設けており、それ以上の遅延が発生することはないため、本実施形態で発生し得る遅延時間は聴覚的に問題ないものであると考えられる。また、上記の図12のグラフで説明しているように、演奏データ送信装置2と演奏データ受信装置3との間で発生する遅延時間は、音数が増えてもそれに左右されず1.8msから2.0msの間で安定しており、その点からも聴覚的に問題を生じない。   By the way, in general, it is said that the allowable range of sound delay time is about 5 ms in human hearing, and it is said that some people feel uncomfortable when the sound delay is 3 ms or more. That is, it is known that there is no auditory problem if the sound delay is within 2 ms. For example, it is known that even if the constituent sounds of chords to be played simultaneously are not played simultaneously, if the delay is within 2 ms, the sound can be heard as a sound played simultaneously. In this embodiment, a standby time of 2 ms or less is provided, and no further delay occurs, and therefore the delay time that can occur in this embodiment is considered to be an audible problem. Further, as described in the graph of FIG. 12 above, the delay time generated between the performance data transmitting device 2 and the performance data receiving device 3 is not affected by the increase in the number of sounds but is 1.8 ms. From this point, there is no audible problem.

本来、デジタル通信は、データをある程度バッファリングして、大きなデータを一度にまとめて送信することが一般的に行われており、このように大きなデータを一度にまとめて送信するほうが安定性があると言える。しかしながら、大きなデータを一度に送信する場合は、トータルの遅延量が、バッファ容量やCPUのパフォーマンスによっては大きくなってしまうことがある。また、通信エラーが発生した場合はエラーの影響の範囲が大きくなってしまう。それに対し本実施形態では、無線通信においてとりこぼしがある場合を想定して、送信するデータ量の単位を小さくしている。送信するデータの単位量が小さければ、エラーが発生してもデータを受信する装置における影響が小さくてすむためである。このように、通信のパケットサイズを小さくし、かつ、受信側でバッファリングをほとんど行うことなく、小さいデータをこまめに送信するため、パケットサイズが大きいデータを送信する場合よりも遅延が少ない。   Originally, digital communication is generally performed by buffering data to some extent and transmitting large amounts of data all at once. Thus, it is more stable to transmit large amounts of data all at once. It can be said. However, when large data is transmitted at a time, the total delay amount may increase depending on the buffer capacity and the performance of the CPU. In addition, when a communication error occurs, the range of influence of the error becomes large. On the other hand, in the present embodiment, the unit of the amount of data to be transmitted is reduced assuming that there is a loss in wireless communication. This is because, if the unit amount of data to be transmitted is small, even if an error occurs, the influence on the data receiving device can be small. As described above, since the communication packet size is reduced and small data is frequently transmitted with little buffering on the receiving side, there is less delay than when data with a large packet size is transmitted.

このとき、逆にバッファサイズを1バイト単位にしてしまうと、1イベント分のデータが溜まってからでないとイベントを構成できないため、1イベント分のデータがバッファリングされるまで待機する必要があり、受信したデータをすぐに処理することができず、遅延が発生してしまう場合がある。それに対し本実施形態では、データをイベント単位で送信するため、ひとつのデータを受信する毎に、ひとつのイベントを構成する他のデータの受信を待機したりイベントデータを再構築したりすることなく、受信したデータをそのまま音源を有するMIDI機器4に出力することができる。このように、MIDIのイベントデータを再構築する必要がないため、演奏データ受信装置3で受信されるデータのバッファリングを行う必要がなく、遅延時間を少なくすることができる。   At this time, conversely, if the buffer size is set to 1 byte unit, an event cannot be configured unless data for one event is accumulated, so it is necessary to wait until data for one event is buffered. The received data cannot be processed immediately, and a delay may occur. On the other hand, in this embodiment, since data is transmitted in units of events, each time one data is received, there is no need to wait for reception of other data constituting one event or to reconstruct event data. The received data can be output as it is to the MIDI device 4 having the sound source. Thus, since it is not necessary to reconstruct the MIDI event data, it is not necessary to buffer the data received by the performance data receiving device 3, and the delay time can be reduced.

また、本実施形態によれば、演奏データ受信装置3が、応答データを予め定められた回数だけ連続して送信するから、これにより、応答データの送信エラーが発生した場合であっても応答データが正常に受信される確率が高まり、演奏データ送信装置2が応答データの受信を待機する時間が短縮される。   Further, according to the present embodiment, the performance data receiving device 3 continuously transmits the response data for a predetermined number of times, so that even if a response data transmission error occurs, the response data Is likely to be received normally, and the time for the performance data transmitting apparatus 2 to wait for reception of response data is shortened.

また、本実施形態では、MIDI機器1と音源を有するMIDI機器4とを有線接続する必要がないから、MIDI機器1と音源を有するMIDI機器4との配置を自由に設定することができる。また、本実施形態のMIDI機器1を用いて、音源を有するMIDI機器4と有線接続された楽器とセッションを行うことも可能である。   In this embodiment, since there is no need to wire-connect the MIDI device 1 and the MIDI device 4 having a sound source, the arrangement of the MIDI device 1 and the MIDI device 4 having a sound source can be freely set. In addition, it is possible to perform a session with a musical instrument connected by wire to the MIDI device 4 having a sound source by using the MIDI device 1 of the present embodiment.

また、本実施形態では、演奏データ送信装置2及び演奏データ受信装置3のそれぞれの筐体の中に電源部を含めてMIDI通信回路基板を組み込んでいる。この構成により、MIDI通信回路基板を組み込んだコネクタをMIDI楽器や音源に接続するだけで簡単にワイヤレス演奏を行うことができる。
また、送信側のMIDI機器を複数用意し、それぞれを個別に操作しながら発音制御を行えばアンサンブルも簡単に行うことができる。
In the present embodiment, the MIDI communication circuit board including the power supply unit is incorporated in the respective housings of the performance data transmitting device 2 and the performance data receiving device 3. With this configuration, it is possible to easily perform a wireless performance simply by connecting a connector incorporating a MIDI communication circuit board to a MIDI musical instrument or sound source.
An ensemble can also be easily performed by preparing a plurality of transmitting-side MIDI devices and performing sound generation control while operating each device individually.

このように本実施形態では、送信パケットのデータサイズと応答データの受け取り確認期間を適切に設定することにより、発音遅延を2ms程度以内にすることができ、聴感上遅延を感じ無い範囲とすることができる。これにより、ワイヤレスで簡単にアンサンブル編成を組むことができる。また、その中にワイヤード接続されたMIDI機器が混在していても発音遅延の問題は生じない。具体的には、例えば、有線によるMIDIデータ通信と無線によるMIDIデータ通信とが混在しても、遅延の問題が発生しないから、有線によってMIDIデータ通信を行う楽器と無線によってMIDIデータ通信を行う楽器とが混在する場合であっても、違和感なくセッションを行うことができる。   As described above, in this embodiment, by appropriately setting the data size of the transmission packet and the reception confirmation period of the response data, the sound generation delay can be reduced to about 2 ms, and the delay is not perceived in terms of hearing. Can do. Thereby, the ensemble organization can be easily assembled wirelessly. Further, even if wired-connected MIDI devices are mixed, the problem of sound generation delay does not occur. Specifically, for example, even if wired MIDI data communication and wireless MIDI data communication are mixed, a delay problem does not occur. Therefore, a musical instrument that performs MIDI data communication by wire and a musical instrument that performs MIDI data communication by wireless. Even if both are mixed, a session can be performed without a sense of incongruity.

<変形例>
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限定されることなく、他の様々な形態で実施可能である。以下にその一例を示す。なお、以下の各態様を適宜に組み合わせてもよい。
(1)上述の実施形態では、シンセサイザやキーボード、電子ピアノ、電子MIDIギターなどの楽器をMIDI機器1として用いたが、演奏データ送信装置2と接続する装置はこれに限らず、例えば、スマートフォン等の携帯通信端末や、パーソナルコンピュータ等の装置をMIDI機器1として用いてもよい。この場合は、例えば、利用者がスマートフォンやパーソナルコンピュータにインストールされた楽器アプリケーションを用いて演奏を行うようにしてもよい。なお、MIDI機器1がスマートフォンである場合にはタッチパネルやテンキーが操作部15に相当し、MIDI機器1がパーソナルコンピュータである場合には、キーボードやマウスが操作部15に相当する。また、上述の実施形態では、音源を有するMIDI機器4に演奏データ受信装置3を接続する構成としたが、演奏データ受信装置3と接続する装置はこれに限らず、例えば、パーソナルコンピュータ等の装置に接続して用いてもよい。要は、演奏データ送信装置2及び演奏データ受信装置3が接続される装置は、MIDI端子でなくても、USBあるいはUART等を用いてMIDIデータ等の演奏データが発信また受信できる演奏データの入出力端子を備える装置であればどのようなものであってもよい。
<Modification>
As mentioned above, although embodiment of this invention was described, this invention is not limited to embodiment mentioned above, It can implement with another various form. An example is shown below. In addition, you may combine each following aspect suitably.
(1) In the above-described embodiment, a musical instrument such as a synthesizer, a keyboard, an electronic piano, or an electronic MIDI guitar is used as the MIDI device 1, but the apparatus connected to the performance data transmitting apparatus 2 is not limited to this, and for example, a smartphone or the like. A device such as a portable communication terminal or a personal computer may be used as the MIDI device 1. In this case, for example, the user may perform using a musical instrument application installed on a smartphone or a personal computer. When the MIDI device 1 is a smartphone, the touch panel and the numeric keypad correspond to the operation unit 15, and when the MIDI device 1 is a personal computer, the keyboard and the mouse correspond to the operation unit 15. In the above-described embodiment, the performance data receiving device 3 is connected to the MIDI device 4 having a sound source. However, the device connected to the performance data receiving device 3 is not limited to this, for example, a device such as a personal computer. You may connect and use. The point is that the device to which the performance data transmitting device 2 and the performance data receiving device 3 are connected is not a MIDI terminal, but it can input performance data that can transmit and receive performance data such as MIDI data using USB or UART. Any device having an output terminal may be used.

また、上述の実施形態では、MIDI機器1と演奏データ送信装置2とがそれぞれ別体として構成されていたが、演奏データを生成する装置と演奏データを送信する装置とが一体の装置として構成されていてもよい。また、上述の実施形態では、演奏データ受信装置3と音源を有するMIDI機器4とが別体として構成されていたが、演奏データを受信する装置と音源とが一体の装置として構成されていてもよい。   In the above-described embodiment, the MIDI device 1 and the performance data transmitting device 2 are configured as separate bodies, but the device that generates the performance data and the device that transmits the performance data are configured as an integrated device. It may be. In the above-described embodiment, the performance data receiving device 3 and the MIDI device 4 having a sound source are configured as separate units, but the device that receives the performance data and the sound source may be configured as an integrated device. Good.

ここで、本発明に係るシステムの他の構成例について、図面を参照しつつ説明する。図13は、本発明に係るシステムの他の構成例を概略的に示す図である。なお、以下の説明においては、上述した実施形態と同様の構成要素については同じ符号を付して適宜その説明を省略する。図示のように、このシステムは、複数の演奏データ送信装置2b−1,2b−2,2b−3,2b−4と、演奏データ受信装置3と、複数の楽器4b−1,4b−2,4b−3,4b−4とを備えている。演奏データ送信装置2b−1,2b−2,2b−3,2b−4は、演奏データを生成して送信する装置であり、上述した実施形態においてMIDI機器1と演奏データ送信装置2とが一体となって構成された装置である。演奏データ受信装置3は、上述した実施形態で示したものと同様であり、MIDI入力端子のジャックに差込可能なプラグ30aを備えている。楽器4b−1,4b−2,4b−3,4b−4はそれぞれ、キーボードや電子ピアノ等の楽器であり、MIDI入力端子のジャック40aを備えている。なお、図13においては、図面が煩雑になるのを防ぐため、ひとつのジャック40aのみを図示している。このシステムでは、演奏データ受信装置3のプラグ30aが電子楽器4b−1,4b−2,4b−3,4b−4のMIDI入力端子のジャック40aに差し込まれて用いられる。なお、以下の説明では、演奏データ送信装置2b−1,2b−2,2b−3,2b−4を各々区別する必要がない場合には、これらを「演奏データ送信装置2b」と称して説明する。   Here, another configuration example of the system according to the present invention will be described with reference to the drawings. FIG. 13 is a diagram schematically showing another configuration example of the system according to the present invention. In the following description, the same components as those in the above-described embodiment are denoted by the same reference numerals, and the description thereof is omitted as appropriate. As shown, this system includes a plurality of performance data transmitting devices 2b-1, 2b-2, 2b-3, 2b-4, a performance data receiving device 3, and a plurality of musical instruments 4b-1, 4b-2, 4b-3, 4b-4. The performance data transmitting devices 2b-1, 2b-2, 2b-3, and 2b-4 are devices that generate and transmit performance data. In the above-described embodiment, the MIDI device 1 and the performance data transmitting device 2 are integrated. It is a device constituted as follows. The performance data receiving apparatus 3 is the same as that shown in the above-described embodiment, and includes a plug 30a that can be inserted into a jack of a MIDI input terminal. The musical instruments 4b-1, 4b-2, 4b-3, and 4b-4 are musical instruments such as a keyboard and an electronic piano, respectively, and include a MIDI input terminal jack 40a. In FIG. 13, only one jack 40a is shown in order to prevent the drawing from becoming complicated. In this system, the plug 30a of the performance data receiving apparatus 3 is used by being inserted into the MIDI input terminal jack 40a of the electronic musical instruments 4b-1, 4b-2, 4b-3, 4b-4. In the following description, when it is not necessary to distinguish the performance data transmitting apparatuses 2b-1, 2b-2, 2b-3, and 2b-4, they are referred to as “performance data transmitting apparatus 2b”. To do.

図14は、演奏データ送信装置2bの構成を概略的に示す図である。演奏データ送信装置2bは、利用者によって把持される形状の装置であり、利用者が演奏データ操作装置2bを把持して振る等の動作を行うことによって演奏される。図において、センサモジュール201は、加速度センサ、地磁気センサ、ジャイロセンサ等の複数のセンサを備え、各センサから信号を出力する。具体的には、例えば、加速度センサによって重力方向に対する傾斜を検出したり、また、地磁気センサやジャイロセンサによって方角や回転動作を検出してもよい。MIDIイベント生成部202は、センサモジュール201から出力される信号に応じてMIDIデータを生成する。具体的には、例えば、MIDIイベント生成部202は、センサの出力信号から検出される利用者の動作に応じたMIDIデータ(例えば、装置が振られると音を出す、等)を生成する。送信制御部203は、MIDIイベント生成部202が生成したMIDIイベントを、イベント単位で無線通信によって演奏データ受信装置3へ送信する。このような演奏データ送信装置2によれば、利用者の動きを捉えた、MIDIメッセージを表現することができる。   FIG. 14 is a diagram schematically showing the configuration of the performance data transmitting apparatus 2b. The performance data transmitting device 2b is a device that is shaped to be gripped by the user, and is played when the user performs an operation such as gripping and shaking the performance data operating device 2b. In the figure, a sensor module 201 includes a plurality of sensors such as an acceleration sensor, a geomagnetic sensor, and a gyro sensor, and outputs a signal from each sensor. Specifically, for example, an inclination with respect to the direction of gravity may be detected by an acceleration sensor, or a direction or a rotation operation may be detected by a geomagnetic sensor or a gyro sensor. The MIDI event generation unit 202 generates MIDI data according to a signal output from the sensor module 201. Specifically, for example, the MIDI event generation unit 202 generates MIDI data (for example, makes a sound when the apparatus is shaken) corresponding to the user's operation detected from the output signal of the sensor. The transmission control unit 203 transmits the MIDI event generated by the MIDI event generation unit 202 to the performance data receiving device 3 by wireless communication in units of events. According to such a performance data transmitting apparatus 2, it is possible to express a MIDI message that captures the movement of the user.

また、演奏データ受信装置2bにMIDIデータを予め記憶させておく構成とし、MIDIイベント生成部202が、センサモジュール201から出力される信号に応じてMIDIデータを加工するようにしてもよい。具体的には、例えば、センサモジュール201から出力される信号に基づいて、利用者の動作に合わせてMIDIデータのテンポを変更したり、センサモジュール201から出力される信号に基づいてエフェクト(リバーブ、エコー、等)を自由にかけられたり、また、音声合成音源を利用して好きなタイミングでコーラスをかけたり、音声変換を行ったりするようにしてもよい。   Further, the performance data receiving device 2b may be configured to store MIDI data in advance, and the MIDI event generation unit 202 may process the MIDI data in accordance with a signal output from the sensor module 201. Specifically, for example, based on the signal output from the sensor module 201, the tempo of the MIDI data is changed in accordance with the user's operation, or the effect (reverb, Echo, etc.) can be applied freely, or a voice synthesis sound source can be used to apply chorus or perform voice conversion at a desired timing.

次いで、本発明に係るシステムの他の構成例について、図15を参照しつつ説明する。図において、演奏データ送信装置2b−1,2b−2,2b−3,2b−4は、上述した図13において示したものと同様であり、ここではその説明を省略する。演奏データ受信装置3cは、USB−MIDI端子のプラグ30cを備えており、パーソナルコンピュータ4cは、USB−MIDI端子のジャック40cを備えている。このシステムでは、演奏データ受信装置3cのプラグ30cがパーソナルコンピュータ4cのジャック40cに差し込まれて用いられる。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. In the figure, the performance data transmitting devices 2b-1, 2b-2, 2b-3, and 2b-4 are the same as those shown in FIG. 13 described above, and the description thereof is omitted here. The performance data receiving device 3c has a USB-MIDI terminal plug 30c, and the personal computer 4c has a USB-MIDI terminal jack 40c. In this system, the plug 30c of the performance data receiving device 3c is used by being inserted into the jack 40c of the personal computer 4c.

次いで、本発明に係るシステムの他の構成例について、図16を参照しつつ説明する。図16において、演奏データ受信装置3dは、USB−SERIAL端子のプラグ30dを備えており、パーソナルコンピュータ4dは、USB−SERIAL入力端子のジャック40dを備えている。演奏データ受信装置3dは、パーソナルコンピュータ3dのジャック40dに差し込まれて用いられる。パーソナルコンピュータ4dは、USB−SERIAL端子から入力されるMIDIデータに基づいて楽音を出力する。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. In FIG. 16, the performance data receiving device 3d includes a USB-SERIAL terminal plug 30d, and the personal computer 4d includes a USB-SERIAL input terminal jack 40d. The performance data receiving device 3d is used by being inserted into the jack 40d of the personal computer 3d. The personal computer 4d outputs a musical sound based on MIDI data input from the USB-SERIAL terminal.

次いで、本発明に係るシステムの他の構成例について、図17を参照しつつ説明する。図17において、演奏データ受信装置3eは、MIDI入力端子とUSB−MIDI入力端子のプラグ30eを備えている。また、楽器4e−1,4e−2,4e−3,4e−4はそれぞれMIDI入力端子のジャック40eを備えており、また、パーソナルコンピュータ4e−5は、USB−MIDI入力端子のジャック41eを備えている。このシステムでは、演奏データ受信装置3eは、楽器4e−1,4e−2,4e−3,4e−4のいずれかのMIDI入力端子のジャック40eに差し込まれたり、パーソナルコンピュータ4e−5のUSB−MIDI入力端子のジャック41eに差し込まれたりすることによって用いられる。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. In FIG. 17, the performance data receiving device 3e includes a plug 30e of a MIDI input terminal and a USB-MIDI input terminal. The musical instruments 4e-1, 4e-2, 4e-3, and 4e-4 are each provided with a MIDI input terminal jack 40e, and the personal computer 4e-5 is provided with a USB-MIDI input terminal jack 41e. ing. In this system, the performance data receiving device 3e is inserted into the jack 40e of any of the MIDI input terminals of the musical instruments 4e-1, 4e-2, 4e-3, 4e-4, or the USB- of the personal computer 4e-5. It is used by being inserted into the jack 41e of the MIDI input terminal.

次いで、本発明に係るシステムの他の構成例について、図18を参照しつつ説明する。図18において、演奏データ送受信装置3f−1,3f−2,3f−3(各々区別する必要がない場合は「演奏データ送受信装置3f」と称する)は、MIDI入力端子のプラグ30f及び出力端子のプラグ31fを有しており、MIDIデータを無線通信によって受信してMIDI端子から出力するとともに、MIDI端子に入力されたMIDIデータを無線通信によって他の装置へ送信する機能を有する。演奏データ送受信装置3f−1,3f−2,3f−3はそれぞれ、図18(b)に示すように、楽器4f−1,4f−2,4f−3に差し込まれて用いられる。複数の利用者がそれぞれ楽器4f−1,4f−2,4f−3を演奏すると、それぞれの演奏操作に応じたMIDIデータが生成されて演奏データ送受信装置3fによって無線送信され、また、演奏データ送受信装置3fは他の装置から送信されてくるMIDIデータを、接続された楽器4fに出力する。楽器4fは、自身が生成したMIDIデータの表す楽音を出力するとともに、無線通信によって他の装置から受信されたMIDIデータに基づく楽音を出力する。このように、複数の楽器のそれぞれに演奏データ送受信装置3fを装着して用いることで、複数の楽器間で無線通信を用いたセッションを行うことができる。また、楽器4fを用いるに代えて、MIDI端子を備えたテレビ等の表示装置5fを用いてもよい。表示装置5fは、装置に記録された映像や装置に配信されてくる映像を表示する機能を備えるとともに、MIDI端子を備え、MIDI端子から入力されるMIDIデータに応じた楽音を出力する。表示装置5fのMIDI端子には上述した実施形態の演奏データ受信装置3が装着されている。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. In FIG. 18, performance data transmission / reception devices 3f-1, 3f-2, 3f-3 (referred to as "performance data transmission / reception device 3f" when there is no need to distinguish between them) are a MIDI input terminal plug 30f and an output terminal. The plug 31f has a function of receiving MIDI data by wireless communication and outputting it from the MIDI terminal, and transmitting MIDI data input to the MIDI terminal to another device by wireless communication. The performance data transmitting / receiving devices 3f-1, 3f-2, 3f-3 are respectively used by being inserted into the musical instruments 4f-1, 4f-2, 4f-3 as shown in FIG. When a plurality of users play the musical instruments 4f-1, 4f-2, and 4f-3, MIDI data corresponding to each performance operation is generated and wirelessly transmitted by the performance data transmission / reception device 3f, and performance data transmission / reception is performed. The device 3f outputs MIDI data transmitted from another device to the connected musical instrument 4f. The musical instrument 4f outputs a musical sound represented by the MIDI data generated by itself, and outputs a musical sound based on the MIDI data received from another device by wireless communication. In this way, a session using wireless communication can be performed between a plurality of musical instruments by using the performance data transmitting / receiving device 3f attached to each of the plurality of musical instruments. Further, instead of using the musical instrument 4f, a display device 5f such as a television provided with a MIDI terminal may be used. The display device 5f has a function of displaying a video recorded in the device and a video delivered to the device, a MIDI terminal, and outputs musical sounds according to MIDI data input from the MIDI terminal. The performance data receiving device 3 of the above-described embodiment is attached to the MIDI terminal of the display device 5f.

次いで、本発明に係るシステムの他の構成例について、図19を参照しつつ説明する。図19において、スマートフォン2g−1,2g−2は、通信機能を備えるとともに、上述した実施形態に係る演奏データ送信装置2の機能を備える装置である。スマートフォン2g−1,2g−2にはそれぞれ、MIDIデータを生成するとともに、生成したMIDIデータを1イベントずつ送信する機能を実現するアプリケーションプログラムが記憶されている。スマートフォン2g−1,2g−2の制御部は、記憶されたアプリケーションプログラムを実行することによって、MIDIデータの生成及び送信を行う。パーソナルコンピュータ3g−1,3g−2はそれぞれ、上述した実施形態に係る演奏データ受信装置2の機能を備えるとともに、受信された演奏データに応じた楽音を出力する機能を備えた装置である。スマートフォン2g−1,2g−2と、パーソナルコンピュータ3g−1,3g−2はそれぞれ、Bluetooth(登録商標)等の無線通信によってMIDIデータの送受信を行う。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. In FIG. 19, smartphones 2g-1 and 2g-2 are devices having a communication function and the function of the performance data transmitting device 2 according to the embodiment described above. Each of the smartphones 2g-1 and 2g-2 stores an application program that realizes a function of generating MIDI data and transmitting the generated MIDI data one event at a time. The control units of the smartphones 2g-1 and 2g-2 generate and transmit MIDI data by executing the stored application program. Each of the personal computers 3g-1 and 3g-2 is a device having the function of the performance data receiving device 2 according to the above-described embodiment and the function of outputting a musical sound corresponding to the received performance data. The smartphones 2g-1 and 2g-2 and the personal computers 3g-1 and 3g-2 respectively transmit and receive MIDI data by wireless communication such as Bluetooth (registered trademark).

また、図19に示す例において、スマートフォン2g−1,2g−2は、内蔵センサのセンシング、タップ、UI操作をMIDIメッセージに割り当て、利用者の操作に応じたMIDIデータを生成するようにしてもよい。このとき、スマートフォン2f−1,2f−2で音楽データ(mp3等)を再生しながら、MIDIデータを生成するようにしてもよい。また、パーソナルコンピュータ3g−1,3g−2に代えて表示装置5fを用いるようにしてもよい。   In the example shown in FIG. 19, the smartphones 2g-1 and 2g-2 assign the sensing, tap, and UI operations of the built-in sensor to the MIDI message, and generate MIDI data according to the user's operation. Good. At this time, MIDI data may be generated while music data (mp3 or the like) is reproduced by the smartphones 2f-1 and 2f-2. Further, the display device 5f may be used instead of the personal computers 3g-1 and 3g-2.

次いで、本発明に係るシステムの他の構成例について、図20を参照しつつ説明する。図20の(a)において、スマートフォン2h−1,2h−2と、パーソナルコンピュータ3h−1,3h−2は、Wi−Fi等の無線通信によってMIDIデータの送受信を行う。このとき、Wi−Fiのインフラストラクチャーモード接続を行う場合、同ネットワーク内のパーソナルコンピュータ3h−1,3h−2のいずれかをサーバとし、MIDIデータをスマートフォン2h−1,2h−2に送信するようにしてもよい。必要なMIDIチャンネルのデータのみを送信することにより、演奏アンサンブルや、マスタ同期を実現することができる。また、図20の(b)に示すように、クラウドサーバ6h上でコンテンツを作成し、接続した複数台の端末2h−1,2h−2,…にコンテンツ(曲の配信と、設定情報)を配信してもよい。また、スマートフォン2h−1,2h−2に代えて表示装置5fを用いてもよい。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. In FIG. 20A, the smartphones 2h-1 and 2h-2 and the personal computers 3h-1 and 3h-2 transmit and receive MIDI data by wireless communication such as Wi-Fi. At this time, when performing Wi-Fi infrastructure mode connection, one of the personal computers 3h-1 and 3h-2 in the network is used as a server, and MIDI data is transmitted to the smartphones 2h-1 and 2h-2. It may be. By transmitting only necessary MIDI channel data, performance ensemble and master synchronization can be realized. Also, as shown in FIG. 20 (b), contents are created on the cloud server 6h, and contents (song distribution and setting information) are sent to a plurality of connected terminals 2h-1, 2h-2,. You may distribute. Further, the display device 5f may be used instead of the smartphones 2h-1 and 2h-2.

次いで、本発明に係るシステムの他の構成例について、図21を参照しつつ説明する。このシステムは、図示のように、パーソナルコンピュータ1i−1と、複数のMIDI機器1i−2,MIDI機器1i−3,MIDI楽器4i−1,MIDI楽器4i−2,MIDI楽器4i−3,MIDI楽器4i−4と、表示装置5iとを有している。MIDI機器1i−3は、図15で示した演奏データ送信装置2bと同様である。パーソナルコンピュータ1i−1と楽器2i−2は、MIDIまたはUSB−MIDIの出力端子のジャックを備えており、それぞれ上述した実施形態における演奏データ送信装置2が装着されている。また、楽器4i−1〜4i−4はそれぞれ、MIDIまたはUSB−MIDI入力端子のジャックを備えており、それぞれ上述した実施形態における演奏データ受信装置3が装着されている。図21に示す例では、例えば、パーソナルコンピュータ1i−1で生成したMIDIデータをMIDI楽器4i−1や表示装置5fで出力したり、MIDI機器1i−2の演奏によって生成されるMIDIデータを、他の電子楽器4i−3で出力したり、また、MIDI機器1i−3で生成したMIDIデータを楽器4i−2で出力したり、といったように、様々な楽器や装置で生成される演奏データを、他の装置の音源から出力することができる。   Next, another configuration example of the system according to the present invention will be described with reference to FIG. As shown, this system includes a personal computer 1i-1, a plurality of MIDI devices 1i-2, a MIDI device 1i-3, a MIDI musical instrument 4i-1, a MIDI musical instrument 4i-2, a MIDI musical instrument 4i-3, a MIDI musical instrument. 4i-4 and a display device 5i. The MIDI device 1i-3 is the same as the performance data transmitting apparatus 2b shown in FIG. The personal computer 1 i-1 and the musical instrument 2 i-2 are provided with a MIDI or USB-MIDI output terminal jack, and the performance data transmitting apparatus 2 in the above-described embodiment is mounted on each of them. Each of the musical instruments 4i-1 to 4i-4 is provided with a MIDI or USB-MIDI input terminal jack, and each of the musical performance data receiving devices 3 in the above-described embodiment is mounted. In the example shown in FIG. 21, for example, the MIDI data generated by the personal computer 1i-1 is output by the MIDI musical instrument 4i-1 or the display device 5f, or the MIDI data generated by the performance of the MIDI device 1i-2, Performance data generated by various musical instruments and devices, such as output by the electronic musical instrument 4i-3, or output MIDI data generated by the MIDI device 1i-3 by the musical instrument 4i-2. It can be output from the sound source of another device.

図22は、本発明に係る他のシステムの構成例を示す図である。このシステムは、図示のように、MIDI機器1j−1と、パーソナルコンピュータ1j−2と、マイクロホン2j−3と、表示装置5j−1〜5j−6と、スマートフォン3j−2とを有している。パーソナルコンピュータ1j−1及びMIDI機器1j−2は、MIDIまたはUSB−MIDIの出力端子のジャックを備えており、上述した実施形態の演奏データ送信装置2が装着されている。また、表示装置5j−1〜5j−5はそれぞれ、MIDIまたはUSB−MIDI入力端子のジャックを備えており、それぞれ上述した実施形態の演奏データ受信装置3が装着されている。マイクロホン2j−3は、利用者の音声を収音して音声信号を出力する機能を有するとともに、加速度センサや地磁気センサ等のセンサによって利用者の動作を検出し、検出結果に応じてMIDIデータを加工する機能を有する。このMIDIデータの加工処理の内容については、上述した図14に示した演奏データ送信装置2bが行う処理と同様であり、ここではその詳細な説明を省略する。マイクロホン2j−3は、加速度センサや地磁気センサ、ジャイロセンサ等のセンサから出力される信号に応じて、例えば、MIDIデータに対してエフェクト(リバーブ、エコー等)を付加したり、また、所定のタイミングでコーラス音声を付加したり、音声データに対して音声変換処理を施したりといった各種の処理を行う。表示装置5j−1〜5j−5は、装置に記録された映像や装置に配信されてくる映像を表示する機能を備えるとともに、MIDI入力端子を備え、MIDI端子から入力されるMIDIデータに応じた楽音を出力する。   FIG. 22 is a diagram showing a configuration example of another system according to the present invention. As shown in the figure, this system has a MIDI device 1j-1, a personal computer 1j-2, a microphone 2j-3, display devices 5j-1 to 5j-6, and a smartphone 3j-2. . The personal computer 1j-1 and the MIDI device 1j-2 are provided with a jack of a MIDI or USB-MIDI output terminal, and the performance data transmitting device 2 of the above-described embodiment is mounted. Each of the display devices 5j-1 to 5j-5 includes a MIDI or USB-MIDI input terminal jack, and the performance data receiving device 3 according to the above-described embodiment is mounted on each of the display devices 5j-1 to 5j-5. The microphone 2j-3 has a function of picking up a user's voice and outputting a voice signal. The microphone 2j-3 detects a user's operation by a sensor such as an acceleration sensor or a geomagnetic sensor, and outputs MIDI data according to the detection result. Has the function of processing. The content of the MIDI data processing is the same as the processing performed by the performance data transmitting apparatus 2b shown in FIG. 14, and detailed description thereof is omitted here. The microphone 2j-3 adds, for example, an effect (reverb, echo, etc.) to MIDI data according to a signal output from a sensor such as an acceleration sensor, a geomagnetic sensor, or a gyro sensor, or has a predetermined timing. Various processes such as adding a chorus voice and performing voice conversion processing on voice data are performed. The display devices 5j-1 to 5j-5 have a function of displaying the video recorded in the device and the video delivered to the device, a MIDI input terminal, and according to MIDI data input from the MIDI terminal Output music.

図23は、上述した変形例に係るシステムの動作の一例を説明するための図である。図示のように、表示装置5fをリビングに設置し、家族のそれぞれが演奏データ送信装置2bを把持して演奏データ送信装置2bを振る等して演奏する。このようにすることによって、家族で演奏に参加することができ、娯楽性を高めることができる。また、図23に例示した動作例以外にも、例えば、インターネットを介して複数の拠点で演奏データを送受信することによって、本実施形態に係る演奏データ送信装置2や演奏データ送信装置3を用いた楽器教室や、カラオケサービス等を行う、といった利用形態も想定される。   FIG. 23 is a diagram for explaining an example of the operation of the system according to the modification described above. As shown in the figure, the display device 5f is installed in the living room, and each family member performs the performance by holding the performance data transmission device 2b and shaking the performance data transmission device 2b. By doing in this way, it can participate in a performance with a family and can improve entertainment. In addition to the operation example illustrated in FIG. 23, for example, the performance data transmitting apparatus 2 and the performance data transmitting apparatus 3 according to the present embodiment are used by transmitting and receiving performance data at a plurality of bases via the Internet. Usage forms such as musical instrument classes and karaoke services are also assumed.

(2)上述の実施形態では、演奏データ送信装置2と演奏データ受信装置3がそれぞれ、装置の各部に電力を供給する電源部20c,30cを内蔵する構成とし、プラグ20a,30a部分には電源供給能力がないものを用いる構成であったが、これに限らず、演奏データ送信装置2と演奏データ受信装置3が電源部を内蔵せず、プラグ20a,30aから電力が供給される構成であってもよい。
また、上述の実施形態では、演奏データ送信装置2と演奏データ受信装置3の形状が、MIDIケーブル端子コネクタのプラグの形状である場合について説明したが、演奏データ送信装置2と演奏データ受信装置3の形状は上述したものに限らず、例えば、USB−MIDIケーブル端子コネクタのプラグの形状であってもよく、また、これらに限らず、演奏データ送信装置2と演奏データ受信装置3の形状はどのような形状であってもよい。
(2) In the above-described embodiment, the performance data transmitting device 2 and the performance data receiving device 3 are each configured to include the power supply units 20c and 30c for supplying power to each unit of the device, and the plugs 20a and 30a have a power source. However, the present invention is not limited to this, and the performance data transmitting device 2 and the performance data receiving device 3 do not have a built-in power supply, and power is supplied from the plugs 20a and 30a. May be.
In the above embodiment, the performance data transmitting device 2 and the performance data receiving device 3 have been described as being in the shape of a plug of a MIDI cable terminal connector. However, the performance data transmitting device 2 and the performance data receiving device 3 have been described. The shape of the performance data transmission device 2 and the performance data reception device 3 is not limited to those described above, and may be, for example, the shape of a USB-MIDI cable terminal connector plug. Such a shape may be used.

(3)上述の実施形態において、演奏データ受信装置3の通信制御部313が、イベントデータが受信されなくなってから予め定められた時間が経過した場合に、強制的にノートオフイベントを発生させるようにしてもよい。すなわち、演奏データ受信装置3の通信制御部313が、イベントデータが受信されなくなってから予め定められた時間が経過した場合において、直前に受信されたイベントデータがノートオン(発音開始)を示すイベントデータである場合には、ノートオフ(発音終了)を示すイベントデータを生成し、生成したイベントデータをシリアル通信によって出力するようにしてもよい。このようにすることによって、通信が途切れた場合等に音が鳴りっぱなしになるというエラーを回避することができる。
また、例えば、ある音のノートオフイベントが通信エラーによって欠落する等によってノートオンから一定期間、対応する音のノートオフが受信されなかった場合に、強制的にその音をノートオフするようにしてもよい。すなわち、演奏データ受信装置3の通信制御部313が、発音開始(ノートオン)を示すイベントデータを受信してから、予め定められた時間が経過してもそのイベントデータに対応する発音終了(ノートオフ)を示すイベントデータが受信されなかった場合に、発音終了を示すイベントデータを生成し、生成したイベントデータをシリアル通信によって出力するようにしてもよい。このようにすることで、ある音のノートオフだけが欠落し、別のイベントを受信していく場合(通信は続いている場合)であっても、音が鳴りっぱなしになるというエラーを回避することができる。
(3) In the above-described embodiment, the communication control unit 313 of the performance data receiving device 3 forcibly generates a note-off event when a predetermined time elapses after event data is no longer received. It may be. In other words, when the predetermined time has elapsed after the communication control unit 313 of the performance data receiving device 3 has stopped receiving event data, the event data received immediately before the event indicates note-on (sounding start). If it is data, event data indicating note-off (sounding end) may be generated, and the generated event data may be output by serial communication. By doing so, it is possible to avoid an error that a sound is continuously generated when communication is interrupted.
In addition, for example, when a note-off event of a corresponding sound is not received for a certain period of time after the note-on due to a missing note-off event due to a communication error, for example, the sound is forcibly turned off. Also good. That is, after the communication control unit 313 of the performance data receiving device 3 receives the event data indicating the start of sound generation (note-on), the end of sound generation corresponding to the event data (note If event data indicating OFF is not received, event data indicating the end of sound generation may be generated, and the generated event data may be output by serial communication. By doing this, even when note-off of one sound is missing and another event is received (when communication continues), an error that the sound continues to sound is avoided. can do.

(4)上述の実施形態では、楽器の演奏内容を表すイベントデータが時系列に並んで構成された演奏データとして、MIDI形式のデータを用いたが、演奏データはMIDIデータに限定されるものではなく、楽器の演奏内容を表すイベントデータが時系列に並んで構成されたデータであればどのような形式のデータであってもよい。 (4) In the above-described embodiment, MIDI format data is used as performance data in which event data representing musical instrument performance contents are arranged in time series. However, the performance data is not limited to MIDI data. The data may be any format as long as the event data representing the musical performance of the musical instrument is arranged in time series.

(5)上述の実施形態におけるMIDI機器1のCPU11、演奏データ送信装置2のCPU21、演奏データ受信装置3のCPU31、音源を有するMIDI機器4のCPU41によって実行されるプログラムは、磁気記録媒体(磁気テープ、磁気ディスクなど)、光記録媒体(光ディスクなど)、光磁気記録媒体、半導体メモリなどの、コンピュータが読取可能な記録媒体に記録した状態で提供し得る。また、インターネットのようなネットワーク経由で各装置にダウンロードさせることも可能である。 (5) The program executed by the CPU 11 of the MIDI device 1, the CPU 21 of the performance data transmitting device 2, the CPU 31 of the performance data receiving device 3, and the CPU 41 of the MIDI device 4 having a sound source in the above embodiment is a magnetic recording medium (magnetic (Tape, magnetic disk, etc.), optical recording medium (optical disk, etc.), magneto-optical recording medium, semiconductor memory, and the like. It is also possible to download to each device via a network such as the Internet.

1…MIDI機器、2…演奏データ送信装置、3…演奏データ受信装置、4…MIDI機器、11,21,31,41…CPU、12,22,32,42…ROM、13,23,33,43…RAM、14…記憶部、15…操作部、16,26,36,46…MIDII/F、24,34…無線通信部、44…音源部、214,313…通信制御部 DESCRIPTION OF SYMBOLS 1 ... MIDI apparatus, 2 ... Performance data transmitter, 3 ... Performance data receiver, 4 ... MIDI apparatus 11, 21, 31, 41 ... CPU, 12, 22, 32, 42 ... ROM, 13, 23, 33, 43: RAM, 14: storage unit, 15: operation unit, 16, 26, 36, 46 ... MIDII / F, 24, 34 ... wireless communication unit, 44 ... sound source unit, 214, 313 ... communication control unit

Claims (5)

楽器の演奏内容を表すイベントデータが時系列に並んで構成された演奏データが、シリアル通信によって入力される入力手段と、
演奏データ受信装置との間で無線通信のペアリングを行うペアリング手段と、
前記ペアリング手段によってペアリングされた演奏データ受信装置へ、前記入力手段に入力された演奏データをイベントデータ単位で送信する演奏データ送信手段と、
前記演奏データ送信手段によって送信されるイベントデータの応答として前記ペアリングされた演奏データ受信装置から送信されてくる応答データを受信する応答データ受信手段と、
前記演奏データ送信手段によってひとつの前記イベントデータを送信する毎に、前記応答データの受信を予め定められた第1の待機時間だけ待機し、該第1の待機時間内に前記応答データが受信された場合には、次のイベントデータを送信する一方、該第1の待機時間内に前記応答データが受信されなかった場合には、直前に送信されたイベントデータを再送し、かつ、該第1の待機時間よりも長い第2の待機時間だけ待機しても前記応答データが受信されなかった場合には次のイベントデータを送信する送信制御手段と
を具備することを特徴とする演奏データ送信装置。
Performance data composed of event data representing the performance content of the musical instrument arranged in chronological order is input means through which serial communication is input,
Pairing means for performing wireless communication pairing with the performance data receiving device;
And performance data sending means for sending the performance data receiving apparatus which is paired, the performance data inputted to the input means in the event data unit by said pairing means,
Response data receiving means for receiving response data transmitted from the paired performance data receiving device as a response to event data transmitted by the performance data transmitting means;
Each time one piece of the event data is transmitted by the performance data transmitting means, the reception of the response data waits for a predetermined first waiting time, and the response data is received within the first waiting time. If the response data is not received within the first waiting time, the event data transmitted immediately before is retransmitted, and the first event data is transmitted. A performance data transmitting apparatus comprising: transmission control means for transmitting the next event data when the response data is not received even after waiting for a second waiting time longer than the waiting time of .
前記入力手段は、演奏データが出力される出力端子のジャックに差込可能なプラグを有し、
前記ペアリング手段、前記演奏データ送信手段、前記応答データ受信手段及び前記送信制御手段を内蔵する筐体を有する
ことを特徴とする請求項1に記載の演奏データ送信装置。
The input means has a plug that can be plugged into a jack of an output terminal from which performance data is output,
The performance data transmitting apparatus according to claim 1, further comprising a housing that houses the pairing unit, the performance data transmitting unit, the response data receiving unit, and the transmission control unit.
楽器の演奏内容を表すイベントデータが時系列に並んで構成された演奏データを送信する演奏データ送信装置との間で、無線通信のペアリングを行うペアリング手段と、
前記ペアリング手段によってペアリングされた演奏データ送信装置から、イベントデータ単位で送信されてくる演奏データを前記イベントデータ単位で受信するイベントデータ受信手段と、
前記イベントデータ受信手段によって前記イベントデータが受信される毎に、当該イベントデータを受信した旨を示す応答データを前記ペアリングされた演奏データ送信装置へ送信する応答データ送信手段と、
前記応答データ送信手段によって前記応答データを送信する毎に、次のイベントデータの受信を予め定められた待機時間だけ待機し、当該待機時間内に当該次のイベントデータが受信されなかった場合には前記応答データを再送する応答データ再送手段であって、当該待機処理及び当該再送処理を予め定められた回数だけ繰り返し実行する応答データ再送手段と、
前記イベントデータ受信手段によって前記イベントデータを受信する毎に、当該受信したイベントデータを、シリアル通信によって出力する出力手段と
を具備することを特徴とする演奏データ受信装置。
Pairing means for performing wireless communication pairing with a performance data transmitting device that transmits performance data in which event data representing performance contents of a musical instrument are arranged in time series,
And event data receiving means for receiving from the performance data transmitting apparatus which is paired, the performance data transmitted in event data unit in the event data unit by said pairing means,
Response data transmitting means for transmitting response data indicating that the event data has been received to the paired performance data transmitting device each time the event data is received by the event data receiving means;
Each time the response data is transmitted by the response data transmission means, it waits for the reception of the next event data for a predetermined waiting time, and when the next event data is not received within the waiting time. Response data retransmission means for retransmitting the response data, the response data retransmission means for repeatedly executing the standby process and the retransmission process a predetermined number of times;
An performance data receiving apparatus comprising: output means for outputting the received event data by serial communication each time the event data is received by the event data receiving means.
前記出力手段は、演奏データが入力される入力端子のジャックに接続可能なプラグを有し、
前記ペアリング手段、前記イベントデータ受信手段、前記応答データ送信手段及び前記応答データ再送手段を内蔵する筐体を有する
ことを特徴とする請求項3に記載の演奏データ受信装置。
The output means has a plug connectable to a jack of an input terminal to which performance data is input,
The performance data receiving apparatus according to claim 3, further comprising a housing that houses the pairing unit, the event data receiving unit, the response data transmitting unit, and the response data retransmission unit.
前記応答データ再送手段は、イベントデータが受信されなくなってから予め定められた時間が経過した場合において、直前に受信されたイベントデータが発音開始を示すイベントデータである場合には、発音終了を示すイベントデータを生成し、生成したイベントデータを前記シリアル通信によって出力する
ことを特徴とする請求項3又は4に記載の演奏データ受信装置。
The response data retransmission means indicates the end of sound generation when the predetermined time has elapsed since the event data is no longer received and the event data received immediately before is the event data indicating the start of sound generation. The performance data receiving apparatus according to claim 3 or 4, wherein event data is generated, and the generated event data is output by the serial communication.
JP2011147700A 2011-07-01 2011-07-01 Performance data transmitting apparatus and performance data receiving apparatus Expired - Fee Related JP5891620B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011147700A JP5891620B2 (en) 2011-07-01 2011-07-01 Performance data transmitting apparatus and performance data receiving apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011147700A JP5891620B2 (en) 2011-07-01 2011-07-01 Performance data transmitting apparatus and performance data receiving apparatus

Publications (2)

Publication Number Publication Date
JP2013015643A JP2013015643A (en) 2013-01-24
JP5891620B2 true JP5891620B2 (en) 2016-03-23

Family

ID=47688385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011147700A Expired - Fee Related JP5891620B2 (en) 2011-07-01 2011-07-01 Performance data transmitting apparatus and performance data receiving apparatus

Country Status (1)

Country Link
JP (1) JP5891620B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8844057B2 (en) * 2012-10-01 2014-09-23 Dexcom, Inc. Analyte data retriever
JP6325296B2 (en) * 2014-03-19 2018-05-16 Quicco Sound株式会社 Dongle device for acoustic music equipment
CN105023560B (en) * 2015-07-08 2019-08-09 武汉时代华声科技有限公司 MIDI adapter and MIDI communication system
KR101683051B1 (en) * 2015-07-16 2016-12-07 (주)엔텔스 BLOCK CIPHERING METHOD USING SYMMETRIC KEY IN IoT NETWORK AND DATA TRANSFERRING METHOD FROM CLIENT APPARATUS TO SERVER IN IoT NETWORK
US11830464B2 (en) 2019-12-27 2023-11-28 Roland Corporation Wireless communication device and wireless communication method
JP7259833B2 (en) * 2020-12-17 2023-04-18 カシオ計算機株式会社 Electronic musical instrument communication device, electronic musical instrument system, method and program
JP2023154288A (en) * 2022-04-06 2023-10-19 ヤマハ株式会社 Control device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07261752A (en) * 1994-03-17 1995-10-13 Kawai Musical Instr Mfg Co Ltd Transmitter and receiver for midi signals
JP3671666B2 (en) * 1997-09-01 2005-07-13 カシオ計算機株式会社 Music information reception processing method, music information reception processing device, and storage medium
JP2000089755A (en) * 1998-09-07 2000-03-31 Casio Comput Co Ltd Playing information processor and playing information communication system
JP4240772B2 (en) * 2000-07-12 2009-03-18 ヤマハ株式会社 Music data processing device
JP4096734B2 (en) * 2002-12-27 2008-06-04 カシオ計算機株式会社 Music activity support system and program
JP2004274237A (en) * 2003-03-06 2004-09-30 Sony Corp Information processor and method therefor, recording medium, and program
KR100635012B1 (en) * 2003-12-29 2006-10-16 한국전자통신연구원 Method for creating feedback message for ARQ in mobile communication system
JP2006352199A (en) * 2005-06-13 2006-12-28 Hitachi Kokusai Electric Inc Wireless transceiver
JP2010233249A (en) * 2010-06-16 2010-10-14 Fujitsu Ltd Data retransmission processing method for wireless communication and wireless communication apparatus employing the same

Also Published As

Publication number Publication date
JP2013015643A (en) 2013-01-24

Similar Documents

Publication Publication Date Title
JP5891620B2 (en) Performance data transmitting apparatus and performance data receiving apparatus
US8111241B2 (en) Gestural generation, sequencing and recording of music on mobile devices
JP5630155B2 (en) Storage system and storage device
JP5370432B2 (en) Management device, karaoke system and management method
US20110239847A1 (en) Electronic drumsticks system
JP6733781B2 (en) Audio equipment
KR101238368B1 (en) Multi media reproducing apparatus capable of outputting plural audio signals and operation method thereof
CN102394860A (en) Signal transmission system, method, computer program product and computer readable storage media
US20210125594A1 (en) Wireless midi headset
JP5014927B2 (en) Karaoke system on request
JP4585473B2 (en) Electronic sampler
CN108777138B (en) Audio information acquisition method and singing device
JP3870843B2 (en) Music generation system and sound module
JP4373321B2 (en) Music player
JP2004279718A (en) Game machine and karaoke machine
JP3102772U (en) Audio signal playback device with infrared transmission function
JP4626429B2 (en) MIDI data transmitting apparatus and program
JP2001215977A (en) Karaoke system
KR100687693B1 (en) Mobile having dual function of playing music
TWI312989B (en) Song selection system and method used in a portable electronic device
KR20070063395A (en) The portable karaoke apparatus and thereof fixed supporting apparatus
JP2021148848A (en) Audio interface device and recording system
JP6643168B2 (en) Karaoke device and program
JP4364145B2 (en) Karaoke system
JP2010128402A (en) Repeating musical piece selection registration system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150630

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150806

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160208

R151 Written notification of patent or utility model registration

Ref document number: 5891620

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees