JP2002023740A - Music data processor - Google Patents
Music data processorInfo
- Publication number
- JP2002023740A JP2002023740A JP2000211817A JP2000211817A JP2002023740A JP 2002023740 A JP2002023740 A JP 2002023740A JP 2000211817 A JP2000211817 A JP 2000211817A JP 2000211817 A JP2000211817 A JP 2000211817A JP 2002023740 A JP2002023740 A JP 2002023740A
- Authority
- JP
- Japan
- Prior art keywords
- event
- midi
- port
- processing
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 claims description 25
- 230000006870 function Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 21
- 230000003111 delayed effect Effects 0.000 description 3
- 210000000056 organ Anatomy 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、MIDIデータ等
の音楽データ処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for processing music data such as MIDI data.
【0002】[0002]
【従来の技術】電子ピアノ等の電子楽器においては、電
子楽器に内蔵される音源を用いて楽音を発生する他に、
外部機器との間でデータ通信を行う通信機能を備えたも
のが広く普及している。このように、電子楽器と外部機
器との間でデータ通信を行うための規格として、MID
I(Musical Instrument Digital Interface)規格
があり、このMIDI規格に対応する機器には、MID
Iインタフェースが搭載されている。このMIDIイン
タフェースには、MIDI規格設定当初から広く利用さ
れてきたシングルポートタイプ(例えば、1イン/1ア
ウトタイプ等)のMIDIインタフェースの他、複数の
入出力端子を備えた、いわゆるマルチポートタイプ(例
えば、8イン/8アウトタイプ等)のMIDIインタフ
ェースがある。このマルチポートタイプのMIDIイン
タフェースを備えた音源装置にキーボード、シンセサイ
ザー等の電子楽器、音源を複数接続することで、多くの
音源や電子楽器等を自由に使い分けることが可能となる
一方、これらの音源や電子楽器から入力されるMIDI
データに基づき、演奏を再現することも可能となる(図
13参照)。2. Description of the Related Art In an electronic musical instrument such as an electronic piano, in addition to generating a musical tone using a sound source built in the electronic musical instrument,
Devices provided with a communication function of performing data communication with external devices have become widespread. As described above, MID is a standard for performing data communication between an electronic musical instrument and an external device.
There is an I (Musical Instrument Digital Interface) standard, and a device corresponding to the MIDI standard includes an MID.
An I interface is mounted. The MIDI interface includes a single-port type (for example, a 1-in / 1-out type) MIDI interface that has been widely used since the beginning of the MIDI standard setting, and a so-called multi-port type having a plurality of input / output terminals. For example, there is an 8-in / 8-out type MIDI interface. By connecting a plurality of electronic musical instruments and sound sources such as a keyboard and a synthesizer to a sound source device having this multi-port type MIDI interface, it is possible to freely use many sound sources and electronic musical instruments, etc. And MIDI input from electronic musical instruments
The performance can be reproduced based on the data (see FIG. 13).
【0003】[0003]
【発明が解決しようとする課題】ところで、このマルチ
ポートタイプのMIDIインタフェースを備えた音源装
置(音楽データ処理装置)は、複数のポートを介してM
IDIデータを受信した場合にどのポートから入力され
るMIDIデータを優先的に処理するか(以下、単に優
先度という)が予め決定されている。図14は、従来の
音源装置がポート1を介して3イベント分のMIDIデ
ータを受信し、その間にポート2を介して1イベント分
のMIDIデータを受信した場合におけるデータ処理に
流れを示すものである。この図14に示すデータ処理の
流れは、音源装置のポート1の優先度がポート2の優先
度よりも高く設定されている場合を想定している。な
お、図14に示すイベント(音楽イベント)は、楽器演
奏や、操作等の処理を行うために必要な演奏情報であ
り、例えば発音を示すノートオン、音高を示すノートナ
ンバー、音の強さを示すベロシティ等のMIDIデータ
により構成された発音イベント等である。従来の音源装
置は、優先度に従ってイベント処理を行っていたため、
図14に示すように優先度の高いポート(ポート1)か
ら入力されるイベントがある限り、優先度の低いポート
(ポート2)から入力されるイベントが処理されること
はなかった。この結果、優先度の低いポートから入力さ
れるイベントの処理が遅延し、本来発音すべきタイミン
グから遅れて発音する等の問題が生じていた。本発明
は、以上説明した事情を鑑みてなされたものであり、複
数の入力ポートを介して入力されるイベントを均等に処
理することができる音楽データ処理装置を提供すること
を目的とする。By the way, a sound source device (music data processing device) provided with this multi-port type MIDI interface has an M interface through a plurality of ports.
It is determined in advance from which port to process the MIDI data input when the IDI data is received (hereinafter simply referred to as priority). FIG. 14 shows a flow of data processing in the case where the conventional sound source device receives MIDI data for three events via port 1 and receives MIDI data for one event via port 2 in the meantime. is there. The flow of data processing shown in FIG. 14 assumes that the priority of port 1 of the sound source device is set higher than the priority of port 2. The event (music event) shown in FIG. 14 is performance information required for performing a musical instrument performance or a process such as an operation, for example, a note-on indicating a sound, a note number indicating a pitch, and a sound intensity. Is a sounding event or the like constituted by MIDI data such as velocity indicating the sound generation event. Since conventional sound source devices performed event processing according to priority,
As shown in FIG. 14, as long as there is an event input from a high-priority port (port 1), an event input from a low-priority port (port 2) is not processed. As a result, processing of an event input from a port having a low priority is delayed, and there is a problem that a sound is generated later than a timing at which sound should be originally generated. The present invention has been made in view of the circumstances described above, and an object of the present invention is to provide a music data processing apparatus that can uniformly process events input through a plurality of input ports.
【0004】[0004]
【課題を解決するための手段】上述した問題を解決する
ため、請求項1に記載の音楽データ処理装置は、外部装
置と接続するための複数のポートと、ポートから音楽イ
ベントが入力された場合に、前回処理を行った音楽イベ
ントが入力されたポートと異なるポートから入力された
音楽イベントを優先的に処理するイベント処理手段とを
具備することを特徴とする。In order to solve the above-mentioned problem, the music data processing apparatus according to the first aspect of the present invention provides a plurality of ports for connecting to an external device and a case where a music event is input from the port. And an event processing means for preferentially processing a music event input from a port different from the port to which the music event processed last time is input.
【0005】また、請求項2に記載の音楽データ処理装
置は、請求項1に記載の構成において、前記イベント処
理手段は、1の音楽イベントに対して1または複数パー
トの処理を行い、ポートを介して入力された音楽イベン
トが、複数パートの処理を行う音楽イベントである場合
には、前記音楽イベントに対して1パート分の処理を行
った後、前記ポートとは異なるポートから入力された音
楽イベントがあるか否かを判断し、異なるポートから入
力された音楽イベントがあると判断した場合には、該音
楽イベントを優先的に処理することを特徴とする。According to a second aspect of the present invention, in the music data processing apparatus according to the first aspect, the event processing means performs processing of one or a plurality of parts for one music event, and sets a port. If the music event input through the music event is a music event for processing a plurality of parts, the music event is processed for one part, and then the music input from a port different from the port. It is characterized in that it is determined whether or not there is an event, and when it is determined that there is a music event input from a different port, the music event is preferentially processed.
【0006】[0006]
【発明の実施の形態】以下、本発明をさらに理解しやす
くするため、実施の形態について説明する。かかる実施
の形態は、本発明の一態様を示すものであり、この発明
を限定するものではなく、本発明の範囲で任意に変更可
能である。Embodiments of the present invention will be described below to make the present invention easier to understand. Such an embodiment shows one aspect of the present invention, and does not limit the present invention, and can be arbitrarily changed within the scope of the present invention.
【0007】A.第1の実施形態 (1)実施形態の構成 図1は、本実施形態に係る音源装置100の概略構成を
示すブロック図である。音源装置100は、装置各部の
制御を司るCPU200と、各種制御プログラム及び固
定データ等が格納されているROM300と、各種デー
タを格納する書き換え可能なRAM400と、マルチポ
ートタイプのMIDIインタフェース510を介してM
IDIデータが入力されるMIDI入力部500と、C
PU200による制御の下、楽音信号を生成する楽音生
成部600とを備えている。A. 1. First Embodiment (1) Configuration of Embodiment FIG. 1 is a block diagram showing a schematic configuration of a sound source device 100 according to the present embodiment. The sound source device 100 is connected via a CPU 200 that controls the components of the device, a ROM 300 that stores various control programs and fixed data, a rewritable RAM 400 that stores various data, and a multi-port type MIDI interface 510. M
A MIDI input unit 500 to which IDI data is input;
A tone generator 600 for generating a tone signal under the control of the PU 200 is provided.
【0008】a)音源装置100の機能構成 図2は、MIDIデータを受信する場合のCPU200
の制御機能を示す機能ブロック図である。CPU200
におけるMIDIデータ受信時の制御機能は、シリアル
データ受信手段210−k(k=1〜N)と、MIDI
イベント解釈手段220−k(k=1〜N)と、MID
Iイベント記憶手段230−k(k=1〜N)と、MI
DIデータマネージャ手段240とを具備している。同
図に示すように、シリアルデータ受信手段210−k
(k=1〜N)、MIDIイベント解釈手段220−k
(k=1〜N)及びMIDIイベント記憶手段230−
k(k=1〜N)は、MIDIインタフェース510の
各ポートk(k=1〜N)に対応して設けられている。A) Functional Configuration of Sound Source Device 100 FIG. 2 shows a CPU 200 for receiving MIDI data.
FIG. 3 is a functional block diagram illustrating the control function of FIG. CPU200
The control functions at the time of receiving the MIDI data in the first embodiment are the serial data receiving means 210-k (k = 1 to N),
Event interpretation means 220-k (k = 1 to N) and MID
I event storage means 230-k (k = 1 to N)
DI data manager means 240. As shown in FIG.
(K = 1 to N), MIDI event interpreting means 220-k
(K = 1 to N) and MIDI event storage means 230-
k (k = 1 to N) is provided corresponding to each port k (k = 1 to N) of the MIDI interface 510.
【0009】シリアルデータ受信手段210−kは、ポ
ートkを介して入力されるMIDIデータを受信し、受
信したMIDIデータを1バイトずつMIDIイベント
解釈手段220−kに出力する。MIDIイベント解釈
手段220−kは、MIDIデータ受信手段210−k
から1バイトずつMIDIデータを受け取り、受け取っ
た1バイト単位のMIDIデータを順次FIFO方式の
MIDIイベント記憶手段230−kに格納すると共
に、1イベント成立したか否かの判断を行う。このイベ
ント成立の判断方法については実施形態の動作において
説明するため省略する。The serial data receiving means 210-k receives the MIDI data input through the port k and outputs the received MIDI data to the MIDI event interpreting means 220-k one byte at a time. The MIDI event interpreter 220-k is a MIDI data receiver 210-k.
MIDI data is received one byte at a time, and the received MIDI data in byte units is sequentially stored in the MIDI event storage means 230-k of the FIFO system, and it is determined whether one event has been established. The method of determining whether the event has been established will be described in the operation of the embodiment, and will not be described.
【0010】MIDIデータマネージャ手段240は、
MIDIイベント解釈手段220−kからイベント成立
通知を受け取ると、対応するMIDIイベント記憶手段
230−kを参照し、イベント処理を行う。さらに詳述
すると、MIDIマネージャ手段240は、まずMID
Iイベント解釈手段220−kからMIDIデータを受
け取ることにより、どのポートにおいてイベントが成立
しているかを把握する。そして、MIDIデータマネー
ジャ手段240は、メモリ241を参照することによ
り、次に処理すべきイベントを決定する。このメモリ2
41は、書き換え可能な記憶手段であり、最後に処理し
たイベントの入力ポート番号が格納されている。MID
Iデータマネージャ手段240は、このメモリ241を
参照し、例えば同一ポートに入力されたイベントを連続
して処理しない等の判断基準に基づき、処理すべきイベ
ントを決定する。なお、具体的な決定方法については、
後に詳述するため省略する。次に、MIDIインタフェ
ースの複数のポートに、MIDIデータが入力された場
合の音源装置100の動作について説明する。The MIDI data manager means 240
When the event establishment notification is received from the MIDI event interpreting means 220-k, the event processing is performed with reference to the corresponding MIDI event storage means 230-k. More specifically, the MIDI manager means 240 first
By receiving the MIDI data from the I-event interpreting means 220-k, it is possible to grasp at which port the event is established. Then, the MIDI data manager 240 determines the next event to be processed by referring to the memory 241. This memory 2
Reference numeral 41 denotes a rewritable storage unit which stores the input port number of the last processed event. MID
The I data manager means 240 refers to the memory 241 and determines an event to be processed based on a criterion such as not continuously processing events input to the same port. In addition, about concrete decision method,
A detailed description will be omitted later. Next, the operation of the tone generator 100 when MIDI data is input to a plurality of ports of the MIDI interface will be described.
【0011】(2)実施形態の動作 図3は、MIDIインタフェース510のポート1及び
ポート2を介して各々1イベント分のMIDIデータが
入力される場合を例示した図である。同図に示すよう
に、音源装置100のポート1及びポート2には、MI
DIデータ送信側の装置a及び装置bがそれぞれ接続さ
れている。以下に、音源装置100が装置a及び装置b
からMIDIデータを受信した場合のイベント処理動作
について図2〜図7を参照して説明する。なお、図3に
示すイベントは、説明の便宜上、全て3バイト構成(M
IDIデータ3バイトで1イベント成立)とする。(2) Operation of the Embodiment FIG. 3 is a diagram exemplifying a case where MIDI data for one event is input via the ports 1 and 2 of the MIDI interface 510, respectively. As shown in FIG.
Devices a and b on the DI data transmission side are connected to each other. Hereinafter, the sound source device 100 is a device a and a device b.
The event processing operation when MIDI data is received from the MFP will be described with reference to FIGS. Note that all the events shown in FIG. 3 have a 3-byte configuration (M
One event is established with 3 bytes of IDI data).
【0012】a)イベント解釈手段220−kの動作 MIDIイベント解釈手段220−1及びMIDIイベ
ント解釈手段220−2は、シリアルデータ受信手段2
01−1及びシリアルデータ受信手段201−2から1
バイトずつMIDIデータを受信する。図4は、イベン
ト解釈手段220−kの動作を示すフローチャートであ
る。MIDIイベント解釈手段220−kは、ステップ
S1において、シリアルデータ受信手段210−kから
MIDIデータが供給されたか否かを判断する。MID
Iイベント解釈手段220−kはMIDIデータが供給
されると(ステップS1;YES)、ステップS2に進
み、1イベント分のMIDIデータが供給されたか、す
なわち1イベント成立したか否かの判断を行う。具体的
には、MIDIイベント解釈手段220−kは、まずM
IDIデータのフラグを参照し、ステータスバイトであ
るか、あるいはデータバイトであるかの判断を行う。A) Operation of the event interpreting means 220-k The MIDI event interpreting means 220-1 and the MIDI event interpreting means 220-2 are connected to the serial data receiving means 2
01-1 and serial data receiving means 201-2 to 1
MIDI data is received byte by byte. FIG. 4 is a flowchart showing the operation of the event interpreter 220-k. In step S1, the MIDI event interpreting means 220-k determines whether or not MIDI data has been supplied from the serial data receiving means 210-k. MID
When the MIDI data is supplied (step S1; YES), the I event interpreting means 220-k proceeds to step S2, and determines whether the MIDI data for one event has been supplied, that is, whether or not one event has been established. . Specifically, the MIDI event interpretation means 220-k first
With reference to the flag of the IDI data, it is determined whether it is a status byte or a data byte.
【0013】図5は、発音イベントを構成するMIDI
データを示す図である。同図に示す発音イベントは、1
つのステータスバイト(ノートオン)と2つのデータバ
イト(ノートナンバー及びベロシティ)により構成され
ている。このような構成の発音イベントは、まずステー
タスバイトがMIDIイベント解釈手段220−kに入
力され、次いでデータバイトがMIDIイベント解釈手
段220−kに入力される。ここで、ステータスバイト
には、フラグ“1”がセットされ、データバイトにはフ
ラグ“0”がセットされている。また、ステータスバイ
トには、後に続くデータバイトの数に関する情報が含ま
れている。従って、MIDIイベント解釈手段220−
kは、MIDIデータのフラグを参照することにより、
ステータスバイトであるか、データバイトであるかを判
断する一方、受け取ったMIDIデータがステータスバ
イトであれば、これに含まれる情報に基づき、後に続く
データバイト数を把握する。FIG. 5 is a diagram showing MIDI constituting a sound generation event.
It is a figure showing data. The pronunciation event shown in FIG.
It consists of one status byte (note on) and two data bytes (note number and velocity). In the sounding event having such a configuration, first, a status byte is input to the MIDI event interpreting means 220-k, and then a data byte is input to the MIDI event interpreting means 220-k. Here, the flag “1” is set in the status byte, and the flag “0” is set in the data byte. The status byte includes information on the number of data bytes that follow. Therefore, the MIDI event interpretation means 220-
k is obtained by referring to the MIDI data flag.
While it is determined whether the received MIDI data is a status byte or a data byte, if the received MIDI data is a status byte, the number of subsequent data bytes is grasped based on the information contained therein.
【0014】ここで、再びイベント解釈手段220−k
の動作説明に戻り、本実施形態に係るイベントは、全て
3バイト構成のイベントであるため、後に続くデータバ
イトの数が「2」である旨の情報がステータスバイトに
含まれている。MIDIイベント解釈手段220−k
は、受け取ったMIDIデータが1バイトであるのに対
し、1イベント成立するのに必要なMIDIデータは3
バイトであるため、イベントは成立しないと判断し(ス
テップS2;NO)、1バイト分のMIDIデータをM
IDIイベント記憶手段230−kに書き込んだ後、ス
テップS1へ戻り、上述した処理を繰り返し実行する。Here, the event interpreting means 220-k again
Returning to the description of the operation described above, since the events according to the present embodiment are all three-byte events, information indicating that the number of subsequent data bytes is "2" is included in the status byte. MIDI event interpreter 220-k
Indicates that the received MIDI data is 1 byte, while the MIDI data necessary to establish one event is 3 bytes.
Since it is a byte, it is determined that the event is not established (step S2; NO), and the MIDI data for one byte is
After writing in the IDI event storage means 230-k, the process returns to step S1, and the above-described processing is repeatedly executed.
【0015】その後、2バイト分のMIDIデータがM
IDIイベント解釈手段220−kに供給されたとす
る。2バイト分のMIDIデータが供給されることによ
り、MIDIイベント解釈手段220−kは、1イベン
ト成立したと判断し(ステップS2;YES)、1イベ
ントを構成する最後のMIDIデータをMIDIイベン
ト記憶手段230−kに書き込むと共に、MIDIデー
タマネージャ手段240に対して1イベント成立した旨
の通知を行う(ステップS3)。このような処理をMI
DIイベント解釈手段220−1及びMIDIイベント
解釈手段220−2が実行することにより、MIDIイ
ベント記憶手段230−1及びMIDIイベント記憶手
段230−2の各々に、1イベント分のMIDIデータ
が格納される。Then, the MIDI data of 2 bytes is M
It is assumed that the data is supplied to the IDI event interpreting means 220-k. When the 2-byte MIDI data is supplied, the MIDI event interpreting means 220-k determines that one event has been established (step S2; YES) and stores the last MIDI data constituting one event in the MIDI event storage means. In addition to writing to 230-k, a notification that one event has been established is sent to the MIDI data manager means 240 (step S3). Such processing is performed by MI
The execution of the DI event interpreting means 220-1 and the MIDI event interpreting means 220-2 causes the MIDI event storing means 230-1 and the MIDI event storing means 230-2 to store MIDI data for one event. .
【0016】次に、図6及び図7を参照して、MIDI
イベント解釈手段220−1及びMIDIイベント解釈
手段220−2からイベント成立通知を受けたMIDI
データマネージャ手段240の動作説明を行う。Next, referring to FIG. 6 and FIG.
MIDI receiving event establishment notification from event interpreting means 220-1 and MIDI event interpreting means 220-2
The operation of the data manager 240 will be described.
【0017】b)MIDIデータマネージャ手段240
の動作 図6は、MIDIデータマネージャ手段240の動作を
示すフローチャートであり、図7は、音源装置100に
入力されるイベントを模式的に示した図である。 MI
DIデータマネージャ手段240は、ステップSa1に
おいて、イベント成立通知の検出を行う。MIDIデー
タマネージャ手段240は、イベント成立通知を受け取
るまでの間、繰り返しステップSa1を実行する(図7
に示す、ステージ1)。B) MIDI data manager means 240
FIG. 6 is a flowchart showing the operation of the MIDI data manager 240, and FIG. 7 is a diagram schematically showing events input to the sound source device 100. MI
The DI data manager 240 detects an event establishment notification in step Sa1. The MIDI data manager 240 repeatedly executes the step Sa1 until receiving the event establishment notification (FIG. 7).
Stage 1).
【0018】その後、ポート1からイベント入力され、
イベント解釈手段220−1がMIDIデータマネージ
ャ手段240に対してイベント成立通知を行ったとする
(図7に示す、ステージ2)。MIDIデータマネージ
ャ手段240はイベント成立通知を受け取ると、ステッ
プSa2に進み、受け取ったイベント成立通知に対応す
るポートが、最後に処理したイベントに対応するポート
と同一であるか否かの判断を行う。前述したように、メ
モリ241には、最後に処理したイベントのポート番号
が書き込まれている。ここでは、前回処理したイベント
のポート番号が「N」であったとする。MIDIデータ
マネージャ手段240は、このメモリ241に格納され
たポート番号「N」が、今回入力されたイベントのポー
ト番号「1」と一致しないため、最後に処理したポート
と異なると判断し(ステップSa2;NO)、ステップ
Sa3に進む。ステップSa3において、MIDIデー
タマネージャ手段240は、処理すべきイベントが格納
されているMIDIイベント記憶手段230−1を参照
し、ポート1のイベント処理を開始する。ポート1のイ
ベント処理が終了すると、MIDIデータマネージャ手
段240は、メモリ241に書き込まれたポート番号を
「N」から「1」へ変更する。MIDIデータマネージ
ャ手段240は、最後に処理したイベントのポート番号
を書き換えが終了すると、ステップSa1に戻り、再び
イベントが成立しているポートがあるか否かの判断を行
う。Thereafter, an event is input from port 1 and
It is assumed that the event interpreting means 220-1 has notified the MIDI data manager means 240 of the event establishment (stage 2 shown in FIG. 7). Upon receiving the event establishment notification, the MIDI data manager 240 proceeds to step Sa2, and determines whether the port corresponding to the received event establishment notification is the same as the port corresponding to the last processed event. As described above, the port number of the last processed event is written in the memory 241. Here, it is assumed that the port number of the previously processed event is “N”. The MIDI data manager 240 determines that the port number “N” stored in the memory 241 does not match the port number “1” of the event input this time, and thus is different from the port processed last (step Sa2). NO), and proceeds to step Sa3. In step Sa3, the MIDI data manager means 240 refers to the MIDI event storage means 230-1 storing the event to be processed, and starts the event processing of the port 1. When the event processing of the port 1 is completed, the MIDI data manager 240 changes the port number written in the memory 241 from “N” to “1”. When the rewriting of the port number of the last processed event is completed, the MIDI data manager means 240 returns to step Sa1, and determines again whether or not there is a port for which the event has been established.
【0019】その後、再びポート1からイベント入力さ
れ、イベント解釈手段220−1がMIDIデータマネ
ージャ手段240に対してイベント成立通知を行ったと
する(図7に示す、ステージ3)。MIDIデータマネ
ージャ手段240はイベント成立通知を受け取ると、前
回と同様、受け取ったイベント成立通知に対応するポー
トが最後に処理したイベントに対応するポートと同一で
あるか否かの判断を行う。メモリ241には、最後に処
理したイベントのポート番号「1」が書き込まれてい
る。MIDIデータマネージャ手段240は、このメモ
リ241に格納されたポート番号「1」が、今回入力さ
れたイベントのポート番号「1」と一致するため、最後
に処理したポートと同一であると判断し(ステップSa
2;YES)、このポート1のイベント処理を行うこと
なく、ステップSa4に進む。ポート1のイベント処理
を行うことなくステップSa4に移行したMIDIデー
タマネージャ手段240は、他のポートにおいてイベン
トが成立しているか否かの判断を行う。ここで、MID
Iデータマネージャ手段240は、他のイベント解釈手
段220−kからイベント成立通知を受けていないた
め、他ポートにおいてイベントは成立していないと判断
し、ステップSa3に進む。結局、この場合もMIDI
データマネージャ手段240は、ポート1のイベント処
理を行うこととなるが、この動作については上述した場
合と同様であるため、説明を省略する。Thereafter, it is assumed that an event is again input from the port 1 and the event interpreting means 220-1 notifies the MIDI data manager means 240 of the event establishment (stage 3 shown in FIG. 7). Upon receiving the event establishment notification, the MIDI data manager 240 determines whether the port corresponding to the received event establishment notification is the same as the port corresponding to the last processed event, as before. The port number “1” of the last processed event is written in the memory 241. The MIDI data manager 240 determines that the port number “1” stored in the memory 241 matches the port number “1” of the event input this time, and thus is the same as the last processed port ( Step Sa
2; YES), the process proceeds to step Sa4 without performing the event processing of port 1. The MIDI data manager 240 that has proceeded to step Sa4 without performing the event processing of the port 1 determines whether or not the event has been established in another port. Where MID
Since the I data manager means 240 has not received the event establishment notification from the other event interpretation means 220-k, it determines that the event has not been established at the other port, and proceeds to step Sa3. After all, in this case MIDI
The data manager means 240 performs the event processing of the port 1, but the operation is the same as that described above, and the description is omitted.
【0020】その後、ポート1及びポート2からイベン
ト入力され、イベント解釈手段220−1及びイベント
解釈手段220−2がMIDIデータマネージャ手段2
40に対してイベント成立通知を行ったとする(図7に
示す、ステージ4)。ここで、MIDIデータマネージ
ャ手段240は、まずイベント解釈手段220−1から
のイベント成立通知を認識し、次いでイベント解釈手段
220−2からのイベント成立通知を認識したとする。
これにより、MIDIデータマネージャ手段240は、
前回と同様、メモリ241に格納されたポート番号
「1」が、今回入力されたイベントのポート番号「1」
と一致するため、最後に処理したポートと同一であると
判断し(ステップSa2;YES)、このポート1のイ
ベント処理を行うことなく、ステップSa4に進む。ポ
ート1のイベント処理を行うことなくステップSa4に
移行したMIDIデータマネージャ手段240は、他の
ポートにおいてイベントが成立しているか否かの判断を
行う。この判断時において、MIDIデータマネージャ
手段240は、イベント解釈手段220−2からイベン
ト成立通知を受け取っている。従って、MIDIデータ
マネージャ手段240は他のポート(ポート2)におい
てもイベントが成立していると判断し(ステップSa
4;YES)、ステップSa5に進む。Thereafter, an event is input from port 1 and port 2 and the event interpreting means 220-1 and 220-2
It is assumed that an event establishment notification has been sent to 40 (stage 4 shown in FIG. 7). Here, it is assumed that the MIDI data manager 240 first recognizes the event establishment notification from the event interpretation unit 220-1, and then recognizes the event establishment notification from the event interpretation unit 220-2.
Thereby, the MIDI data manager means 240
As in the previous case, the port number “1” stored in the memory 241 is replaced by the port number “1” of the currently input event.
Therefore, it is determined that the port is the same as the port processed last (step Sa2; YES), and the process proceeds to step Sa4 without performing the event processing of the port 1. The MIDI data manager 240 that has proceeded to step Sa4 without performing the event processing of the port 1 determines whether or not the event has been established in another port. At this time, the MIDI data manager 240 has received the event establishment notification from the event interpreter 220-2. Therefore, the MIDI data manager means 240 determines that the event has been established in another port (port 2) (step Sa).
4; YES), proceed to step Sa5.
【0021】このステップSa5において、MIDIデ
ータマネージャ手段240は、次に処理すべきイベント
を決定する。図7に示すステージ4は、ポート2に対応
するイベント解釈手段220−2からイベント成立通知
が行われる場合を想定しているが、もちろんポート3、
・・・、ポートN等多数のポートに対応するイベント解釈
手段からMIDIデータマネージャ手段240に対して
イベント成立通知が行われる場合もある。かかる場合に
は、いずれか1のイベントを選択する必要があるため、
MIDIデータマネージャ手段240は、このステップ
Sa5において次に処理すべきイベントを決定する。例
えば、複数のポートにおいてイベントが成立している場
合には、最後に処理したイベントのポート(ポート3と
仮定する)に最も近いポートのイベントを次に処理すべ
きイベントとして決定する。ただし、最も近いポートが
2ポートある場合(例えば上述したポート3に対して、
ポート2及びポート4等)には、ポート番号の小さい方
(ポート2)を選択し、このポートのイベントを次に処
理べきイベントとして決定する。その他にも様々な方法
が考えられるが、これ以上の説明は省略し、MIDIデ
ータマネージャ手段240の動作説明を続ける。In step Sa5, the MIDI data manager 240 determines the next event to be processed. The stage 4 shown in FIG. 7 assumes a case where an event establishment notification is made from the event interpreting means 220-2 corresponding to the port 2;
..., the event interpretation means corresponding to a large number of ports such as port N may notify the MIDI data manager means 240 of the event establishment. In such a case, it is necessary to select one of the events,
The MIDI data manager 240 determines an event to be processed next in this step Sa5. For example, when events are established in a plurality of ports, the event of the port closest to the port of the last processed event (assumed to be port 3) is determined as the event to be processed next. However, when there are two closest ports (for example, for port 3 described above,
For port 2 and port 4), the smaller port number (port 2) is selected, and the event of this port is determined as the event to be processed next. Although various other methods are conceivable, further description will be omitted, and the operation of the MIDI data manager means 240 will be continued.
【0022】ここで、MIDIデータマネージャ手段2
40は、ポート2に対応するイベント解釈手段230−
2からのみイベント成立通知を受けている。このため、
MIDIデータマネージャ手段240は、次に処理すべ
きイベントはポート2のイベントであると判断し、ステ
ップSa3に進む。ステップSa3において、MIDI
データマネージャ手段240は、判断結果に基づき、処
理すべきイベントが格納されているMIDIイベント記
憶手段230−2を参照し、ポート2のイベント処理を
開始するのであるが、この時、ポート1のイベントは未
だ処理されていない。すなわち、MIDIデータマネー
ジャ手段240は、最後に処理したイベントのポートと
は異なるポートのイベントを優先的に処理するのであ
る。Here, MIDI data manager means 2
40 is an event interpreter 230- corresponding to port 2
Event notification is received only from 2. For this reason,
The MIDI data manager 240 determines that the next event to be processed is the event of port 2, and proceeds to step Sa3. In step Sa3, MIDI
The data manager means 240 starts the event processing of the port 2 by referring to the MIDI event storage means 230-2 storing the event to be processed based on the judgment result. Has not been processed yet. In other words, the MIDI data manager means 240 preferentially processes an event of a port different from the port of the last processed event.
【0023】その後、ポート2のイベント処理が終了し
たとする。ポート2のイベント処理が終了すると、MI
DIデータマネージャ手段240は、メモリ241に書
き込まれたポート番号を「1」から「2」へ変更する。
MIDIデータマネージャ手段240は、最後に処理し
たイベントのポート番号の書き換えが終了すると、ステ
ップSa1に戻り、再びイベントが成立しているポート
があるか否かの判断を行う。その後、MIDIデータマ
ネージャ手段240は、ポート1のイベントを処理する
こととなるが、この場合の動作については、上述と同様
であるため、これ以上の説明は省略する。Thereafter, it is assumed that the event processing of the port 2 has been completed. When the event processing of port 2 ends, MI
The DI data manager 240 changes the port number written in the memory 241 from “1” to “2”.
When the rewriting of the port number of the last processed event is completed, the MIDI data manager means 240 returns to step Sa1, and determines again whether or not there is a port for which the event has been established. After that, the MIDI data manager means 240 processes the event of port 1, but the operation in this case is the same as that described above, and further description will be omitted.
【0024】以上の説明から明らかなように、本実施形
態に係る音源装置100は、発音が込み合った状態にお
いても、特定ポートのイベントのみを優先的に処理する
ことはない。すなわち、本実施形態に係る音源装置10
0は、複数のポートにおいてイベントが成立している場
合、各ポートのイベントを均等に処理していくため、イ
ベントの処理が遅延することを未然に防止することがで
きる。なお、本実施形態に係るメモリ241は、最後に
処理したイベントのポート番号を格納する構成であった
が、これに限定する趣旨ではなく、2以上(例えば、音
源装置100の総ポート数N等)のデータを格納する構
成としても良いのは勿論である。このような構成のメモ
リ241を使用することで、最後に処理したイベントの
ポート番号、及び最後の1つ前に処理したイベントのポ
ート番号のいずれにも一致しないポートから入力される
イベントを処理することができる。これにより、例えば
3つのポートにおいてイベントが成立しているにもかか
わらず、2つのポート間で繰り返しイベントが処理さ
れ、残り1ポートから入力されるイベントが処理されな
いといった問題を未然に防ぐことができる。As is clear from the above description, the tone generator 100 according to the present embodiment does not preferentially process only the event of a specific port even when the sound is crowded. That is, the sound source device 10 according to the present embodiment
When the event is established in a plurality of ports, the event of 0 is processed evenly for each port, so that it is possible to prevent the processing of the event from being delayed. The memory 241 according to the present embodiment is configured to store the port number of the last processed event. However, the present invention is not limited to this, and two or more (for example, the total number of ports N of the sound source device 100, etc.) Of course, a configuration for storing the data of (1) may be used. By using the memory 241 having such a configuration, an event input from a port that does not match any of the port number of the last processed event and the port number of the last processed event is processed. be able to. Thus, for example, it is possible to prevent a problem that an event is repeatedly processed between two ports and an event input from the remaining one port is not processed, even though the event is established at three ports. .
【0025】B.第2の実施形態 ところで、従来より広く普及している音源装置には、複
数の楽器を個別に演奏させることを目的とした「チャン
ネル」という概念が導入されている。具体的には、第1
チャンネルにはヴァイオリン、第2チャンネルにはピア
ノ、・・・等が設定され、各チャンネルに対応して用意さ
れた音源を使用することにより、複数の楽器の音を同時
に発音することができる構成となっている。従来は、こ
のようにチャンネルの数だけ音源が必要であったのだ
が、近年チャンネル別に複数の楽器の音を発音すること
ができるマルチ音源が開発され、これが主流となってい
る。さらに、マルチ音源の中でも、特にマルチパートと
呼ばれる音源(以下、マルチパート音源という)は、効
率の良い演奏が可能であることから盛んに研究・開発さ
れている。ここで、マルチパート音源とは、複数のパー
ト(例えば、ピアノ、ヴァイオリン等)を持ち、パート
毎の設定により受信チャンネル(以下、単にChと記す
場合もある)を指定することができる音源である。B. Second Embodiment By the way, the concept of "channel" for introducing a plurality of musical instruments individually has been introduced into a sound source device which has been widely used conventionally. Specifically, the first
A violin is set for the channel, a piano is set for the second channel, and so on. By using a sound source prepared for each channel, the sound of a plurality of instruments can be produced simultaneously. Has become. Conventionally, as many sound sources as the number of channels are required, but in recent years, a multi-sound source capable of generating sounds of a plurality of musical instruments for each channel has been developed, and this is becoming mainstream. Furthermore, among multi sound sources, a sound source called a multi-part sound source (hereinafter, referred to as a multi-part sound source) has been actively researched and developed since it can perform efficiently. Here, the multi-part sound source is a sound source having a plurality of parts (for example, piano, violin, etc.) and capable of specifying a reception channel (hereinafter sometimes simply referred to as Ch) by setting for each part. .
【0026】図8は、ポート、チャンネル及びパートの
関係を示す図であり、図9は、マルチパートの概念を説
明するための図である。図9についてさらに詳述する
と、図9(a)は、ユーザによってパート毎の受信チャ
ンネルが指定された場合を例示した図であり、図9
(b)は、音源装置側から見たチャンネルで処理すべき
パートテーブルを示す図である。なお、この図8に示す
MIDIチャンネル及びパートは、ポート1を想定した
ものであるが、このチャンネル及びパートの概念は、全
てのポート(図8に示す、ポート1〜ポートN)に共通
するため、その他のポートについては説明を省略する。FIG. 8 is a diagram showing the relationship among ports, channels, and parts, and FIG. 9 is a diagram for explaining the concept of a multi-part. 9 will be described in further detail. FIG. 9A is a diagram illustrating a case where a reception channel for each part is designated by the user.
(B) is a diagram showing a part table to be processed by a channel viewed from the sound source device side. Note that the MIDI channels and parts shown in FIG. 8 assume port 1, but the concept of the channels and parts is common to all ports (ports 1 to N shown in FIG. 8). The description of the other ports is omitted.
【0027】図9に示す設定がなされたマルチパート音
源において、パート1にはヴァイオリン、パート2には
ピアノ、パート3にはオルガンが設定されていたとす
る。このような設定のマルチパート音源に対して、チャ
ンネル1を指定したイベント及びチャンネル2を指定し
たイベントが入力され、かつ各チャンネルを指定したイ
ベントがいずれも「ド」の音を発音させる発音イベント
であったとする。マルチパート音源は、1ChのMID
Iイベントを受信した場合には、ヴァイオリンの音色で
「ド」の音を発音させるべく、図示せぬレジスタに対し
てパラメータ設定を行う。これに対し、2ChのMID
Iイベントを受信した場合、マルチパート音源はピアノ
とオルガンの音色で「ド」の音を発音させるべく、レジ
スタの所定領域に各種パラメータを設定する。このよう
にして、マルチパート音源は1つのチャンネルで複数の
音色を発音したり、音に厚みを持たせることができるの
である。In the multi-part sound source set as shown in FIG. 9, it is assumed that a violin is set in part 1, a piano is set in part 2, and an organ is set in part 3. For a multi-part sound source of such a setting, an event specifying channel 1 and an event specifying channel 2 are input, and both events specifying each channel are sounding events that generate a sound of “do”. Suppose there was. Multi-part sound source is 1Ch MID
When an I-event is received, a parameter is set in a register (not shown) so as to generate a sound of "do" with a violin tone. On the other hand, 2Ch MID
When the I-event is received, the multi-part sound source sets various parameters in a predetermined area of the register so as to produce the sound of "do" with the tone of the piano and the organ. In this way, the multi-part sound source can produce a plurality of timbres in one channel, or make the sound thicker.
【0028】しかしながら、従来のマルチパート音源に
は、次のような問題があった。例えば、前掲図9(b)
に示すパートテーブルを具備するマルチパート音源が、
ポート1を介して2Chのイベントを受信した後、ポー
ト1とは異なるポート、例えばポート2を介して1Ch
(処理すべきパート:パート1)のイベントを受信した
とする。従来のマルチパート音源は、図10に示すよう
に、まずポート1の2Chで処理すべきパート2及びパ
ート3を連続して処理し、次いでポート2の1Chで処
理すべきパート1を処理していた。このように、従来の
マルチパート音源においては、あるポートのイベントに
対応したパート処理(パート処理:マルチパート音源に
対して各種パラメータ設定を行うこと)が開始される
と、このイベントに対応した全てのパート処理が終了す
るまで、他のポートのイベントに対応したパート処理が
行われないという問題があった。However, the conventional multi-part sound source has the following problems. For example, FIG.
A multi-part sound source equipped with the part table shown in
After receiving an event of 2Ch via port 1, 1Ch via a port different from port 1, for example, port 2
It is assumed that the event of (part to be processed: part 1) is received. As shown in FIG. 10, the conventional multi-part sound source processes part 2 and part 3 to be processed at 2Ch of port 1 continuously, and then processes part 1 to be processed at 1Ch of port 2. Was. As described above, in the conventional multi-part sound source, when a part process (part process: setting various parameters for the multi-part sound source) corresponding to an event of a certain port is started, all of the events corresponding to the event are started. Until the end of the part process, there is a problem that the part process corresponding to the event of another port is not performed.
【0029】図11は、本実施形態に係るマルチパート
音源のMIDIデータマネージャ手段240の動作を示
すフローチャートであり、図12はこのフローを実行し
た場合のデータ処理の流れを模式的に示した図である。
図11及び以下に示すマルチパート音源の動作説明は、
上述した場合と同様、ポート1を介して2Chのイベン
トを受信し、ポート2を介して1Chのイベントを受信
した場合を想定している。また、ハードウェアの構成等
は、前述した図1及び図2と同様であるため、対応する
部分に同一符号を付し、その詳細な説明を省略する。FIG. 11 is a flowchart showing the operation of the MIDI data manager 240 of the multi-part sound source according to the present embodiment, and FIG. 12 is a diagram schematically showing the flow of data processing when this flow is executed. It is.
The description of the operation of the multi-part sound source shown in FIG.
As in the case described above, it is assumed that a 2Ch event is received via port 1 and a 1Ch event is received via port 2. Since the hardware configuration and the like are the same as those in FIGS. 1 and 2 described above, corresponding portions are denoted by the same reference numerals and detailed description thereof will be omitted.
【0030】MIDIデータマネージャ手段240は、
ステップSb1において、MIDIイベント解釈手段2
20からイベント成立通知があるか否かを検出してい
る。マルチパート音源がポート1を介してイベントを受
信すると、MIDIイベント解釈手段220−1は、M
IDIデータマネージャ手段240に対してイベント成
立通知を行う。これにより、MIDIデータマネージャ
手段240は、ポート1においてイベントが成立したと
判断し(ステップSb1;YES)、ステップSb2に
進む。ステップSb2に進むと、MIDIデータマネー
ジャ手段240は、MIDIイベント記憶手段230−
1を参照し、当該イベントのチャンネル番号を読み出
す。The MIDI data manager means 240
In step Sb1, MIDI event interpreting means 2
20 to detect whether there is an event establishment notification. When the multi-part sound source receives an event via the port 1, the MIDI event interpretation means 220-1
An event establishment notification is sent to the IDI data manager 240. Accordingly, the MIDI data manager 240 determines that the event has been established at the port 1 (step Sb1; YES), and proceeds to step Sb2. In step Sb2, the MIDI data manager 240 stores the MIDI event storage 230-
1 and read the channel number of the event.
【0031】MIDIデータマネージャ手段240は、
MIDIイベント記憶手段230−1に格納されている
イベントが2Chのイベントであると判断すると、RA
M400等に格納されたパートテーブル(図9(b)参
照)を参照し、この2Chで処理すべきパート(パート
2及びパート3)を把握する。MIDIデータマネージ
ャ手段240は、ステップSb2において1パート分の
処理を行うのであるが、2Chで処理すべきパートは複
数(パート2及びパート3)ある。このため、MIDI
データマネージャ手段240は、いずれのパートを先に
処理すべきか判断し、この判断結果に基づき1パート分
のパート処理を行う。いずれのパートを先に処理すべき
かの判断基準等については、本願発明の趣旨とは関係が
ないため、ここでは省略する。The MIDI data manager means 240
If it is determined that the event stored in the MIDI event storage unit 230-1 is a 2Ch event, the RA
With reference to the part table (see FIG. 9B) stored in the M400 or the like, the part (part 2 and part 3) to be processed in this 2Ch is grasped. The MIDI data manager 240 performs processing for one part in step Sb2, but there are a plurality of parts (part 2 and part 3) to be processed in 2Ch. For this reason, MIDI
The data manager 240 determines which part should be processed first, and performs one part processing based on the result of the determination. The criterion for determining which part should be processed first has no relation to the gist of the present invention, and thus is omitted here.
【0032】ここで、MIDIデータマネージャ手段2
40は、パート2を先に処理すべきであると判断したと
する(ステップSb2)。1パート分の処理が終了する
と、MIDIデータマネージャ手段240はパート2の
処理を終えると、このイベントに対応した全てのパート
処理を行うことなく、すなわちパート3の処理を行うこ
となく、他ポートでイベントが成立しているか否かの判
断を行う(ステップSb3)。ここで、MIDIデータ
マネージャ手段240は、ポート1のイベント処理を行
っている間に、MIDIイベント解釈手段220−2か
らポート2においてイベントが成立した旨の通知を受け
取っていたとする。Here, MIDI data manager means 2
40 determines that part 2 should be processed first (step Sb2). When the processing for one part is completed, the MIDI data manager means 240, after completing the processing for the part 2, does not perform the processing for all the parts corresponding to this event, that is, without performing the processing for the part 3, and performs processing on the other port. It is determined whether or not the event is established (step Sb3). Here, it is assumed that the MIDI data manager 240 has received a notification from the MIDI event interpreter 220-2 that the event has been established at the port 2 during the event processing of the port 1.
【0033】これにより、MIDIデータマネージャ手
段240は、他ポートでイベントが成立していると判断
し(ステップSb3;YES)、ステップSb5に進
む。ステップSb5において、MIDIデータマネージ
ャ手段240は、他ポートで成立しているイベントの処
理を行う。ただし、このステップSb5の処理は、図1
1に示す制御フローを継承する。すなわち、他ポートの
イベントにおいて処理すべきパートが複数ある場合であ
っても、1パート分の処理のみを行うのである(ステッ
プSb2参照)。ここで、他ポートにおいて成立してい
るイベントは、ポート2において成立している1Chの
イベントであり、処理すべきパートはパート1のみであ
る。MIDIデータマネージャ手段240は、ポート2
のイベントに対応したパート1の処理を行い、ステップ
Sb4に進む。Thus, the MIDI data manager 240 determines that the event has been established at another port (step Sb3; YES), and proceeds to step Sb5. In step Sb5, the MIDI data manager 240 processes an event established at another port. However, the processing in step Sb5 is the same as that in FIG.
1 is inherited. That is, even when there are a plurality of parts to be processed in the event of another port, only the processing for one part is performed (see step Sb2). Here, the event established at the other port is an event of 1Ch established at the port 2, and the part to be processed is only the part 1. MIDI data manager means 240
The processing of part 1 corresponding to the event is performed, and the process proceeds to step Sb4.
【0034】MIDIデータマネージャ手段240は、
このステップSb4において、前回処理したポート1の
イベントに関して次に処理すべきパートがあるか否かの
判断を行う。上述したように、MIDIデータマネージ
ャ手段240は、ポート1のイベントに関して1パート
分の処理、すなわちパート2の処理を行ったのみであ
り、パート3の処理は未だ行っていない。従って、MI
DIデータマネージャ手段240は、処理すべきパート
が残っていると判断して(ステップSb4;YES)ス
テップSb2に戻り、未処理であったパート3の処理を
行う。パート3の処理が終了すると、MIDIデータマ
ネージャ手段240はステップSb3に進む。ここで、
MIDIデータマネージャ手段240はステップSb2
の処理が終了するまでの間に、その他のポートからイベ
ント成立通知を受け取っていなかったとする。The MIDI data manager means 240
In this step Sb4, it is determined whether or not there is a next part to be processed with respect to the port 1 event processed last time. As described above, the MIDI data manager means 240 has only performed the processing of one part, that is, the processing of part 2 for the event of port 1, and has not performed the processing of part 3 yet. Therefore, MI
The DI data manager 240 determines that there is a part to be processed (step Sb4; YES), returns to step Sb2, and performs processing of part 3 which has not been processed. When the processing of Part 3 ends, the MIDI data manager 240 proceeds to Step Sb3. here,
The MIDI data manager means 240 determines in step Sb2
It is assumed that an event establishment notification has not been received from another port until the processing of (1) is completed.
【0035】これにより、MIDIデータマネージャ手
段240は、他のポートでイベントは成立していないと
判断し(ステップSb3;NO)、ステップSb4に進
む。MIDIデータマネージャ手段240は、このステ
ップSb4において、ポート1のイベントに関して処理
すべきパートが残っているかを判断する。ここでは、ポ
ート1のイベントに関する全てのパート処理が終了して
いる。MIDIデータマネージャ手段240は、ポート
1のイベントに関する全てのパート処理が終了したと判
断すると、ステップSb1に戻り、以上説明した処理を
繰り返し実行する。Accordingly, the MIDI data manager means 240 determines that the event has not been established at another port (step Sb3; NO), and proceeds to step Sb4. In step Sb4, the MIDI data manager 240 determines whether there is any remaining part to be processed for the event of port 1. Here, all the part processes related to the event of the port 1 have been completed. If the MIDI data manager 240 determines that all the part processes related to the event of the port 1 have been completed, the process returns to step Sb1 and repeats the above-described processes.
【0036】このように、本実施形態に係るマルチポー
ト音源は、1のポートにおいて成立しているイベントに
関して処理すべきパートが複数あるような場合であって
も、当該ポートの処理が集中して行われることはない
(図12参照)。従って、他のポートにおいて成立して
いるイベントの処理が遅延するといった問題を未然に防
ぐことができる。As described above, in the multi-port sound source according to the present embodiment, even when there are a plurality of parts to be processed with respect to an event established in one port, the processing of the port is concentrated. It is not performed (see FIG. 12). Therefore, it is possible to prevent a problem that the processing of the event established in another port is delayed.
【0037】[0037]
【発明の効果】以上説明したように、本発明によれば、
複数の入力ポートを介して入力されるイベントを均等に
処理することができる音楽データ処理装置を提供するこ
とができるという効果がある。As described above, according to the present invention,
There is an effect that it is possible to provide a music data processing device capable of uniformly processing events input through a plurality of input ports.
【図1】 本発明の第1の実施形態に係る音源装置10
0の概略構成を示すブロック図である。FIG. 1 shows a sound source device 10 according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a schematic configuration of a block 0.
【図2】 同実施形態におけるCPU200の制御機能
を示す機能ブロック図である。FIG. 2 is a functional block diagram illustrating a control function of a CPU 200 according to the embodiment.
【図3】 同実施形態における音源装置100にMID
Iデータが入力される場合を例示した図である。FIG. 3 shows an MID in the sound source device 100 according to the embodiment.
FIG. 3 is a diagram illustrating a case where I data is input.
【図4】 同実施形態におけるイベント解釈手段220
の動作を示すフローチャートである。FIG. 4 is an event interpretation unit 220 according to the embodiment.
6 is a flowchart showing the operation of the first embodiment.
【図5】 イベントを構成するMIDIデータを示す図
である。FIG. 5 is a diagram showing MIDI data constituting an event.
【図6】 同実施形態におけるMIDIデータマネージ
ャ手段240の動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of the MIDI data manager means 240 in the embodiment.
【図7】 同実施形態における音源装置100に入力さ
れるMIDIデータを模式的に示した図である。FIG. 7 is a diagram schematically showing MIDI data input to the sound source device 100 according to the embodiment.
【図8】 ポート、チャンネル及びパートの関係を示す
図である。FIG. 8 is a diagram showing a relationship among ports, channels, and parts.
【図9】 マルチパートの概念を説明するための図であ
る。FIG. 9 is a diagram for explaining the concept of a multi-part.
【図10】 同実施形態におけるデータ処理の流れを模
式的に示した図である。FIG. 10 is a diagram schematically showing a flow of data processing in the embodiment.
【図11】 第2の実施形態におけるMIDIデータマ
ネージャ手段240の動作を示すフローチャートであ
る。FIG. 11 is a flowchart showing an operation of a MIDI data manager means 240 in the second embodiment.
【図12】 同実施形態におけるデータ処理の流れを模
式的に示した図である。FIG. 12 is a diagram schematically showing a flow of data processing in the embodiment.
【図13】 従来の音源装置を説明するための図であ
る。FIG. 13 is a diagram for explaining a conventional sound source device.
【図14】 従来の音源装置におけるデータ処理の流れ
を模式的に示した図である。FIG. 14 is a diagram schematically showing a flow of data processing in a conventional sound source device.
210−k・・・シリアルデータ受信手段 220−k・・・MIDIイベント解釈手段 230−k・・・MIDIイベント記憶手段 240・・・MIDIデータマネージャ手段 100・・・音源装置 210-k: Serial data receiving means 220-k: MIDI event interpreting means 230-k: MIDI event storage means 240: MIDI data manager means 100: Sound source device
Claims (2)
と、 ポートから音楽イベントが入力された場合に、前回処理
を行った音楽イベントが入力されたポートと異なるポー
トから入力された音楽イベントを優先的に処理するイベ
ント処理手段とを具備することを特徴とする音楽データ
処理装置。When a music event is input from a plurality of ports for connecting to an external device and a music event is input from a port, the music event input from a port different from the port to which the music event processed last time is input is transmitted. A music data processing apparatus, comprising: an event processing unit that performs priority processing.
ントに対して1または複数パートの処理を行い、 ポートを介して入力された音楽イベントが、複数パート
の処理を行う音楽イベントである場合には、前記音楽イ
ベントに対して1パート分の処理を行った後、前記ポー
トとは異なるポートから入力された音楽イベントがある
か否かを判断し、 異なるポートから入力された音楽イベントがあると判断
した場合には、該音楽イベントを優先的に処理すること
を特徴とする請求項1に記載の音楽データ処理装置。2. The method according to claim 1, wherein the event processing means performs one or more parts processing on one music event, and executes the processing if the music event input through the port is a music event performing multiple parts processing. Determines whether there is a music event input from a port different from the port after performing one part of processing on the music event, and determines that there is a music event input from a different port. 2. The music data processing device according to claim 1, wherein when the judgment is made, the music event is preferentially processed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000211817A JP4240772B2 (en) | 2000-07-12 | 2000-07-12 | Music data processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000211817A JP4240772B2 (en) | 2000-07-12 | 2000-07-12 | Music data processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002023740A true JP2002023740A (en) | 2002-01-25 |
| JP4240772B2 JP4240772B2 (en) | 2009-03-18 |
Family
ID=18707852
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000211817A Expired - Fee Related JP4240772B2 (en) | 2000-07-12 | 2000-07-12 | Music data processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4240772B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8106570B2 (en) | 2009-05-05 | 2012-01-31 | General Electric Company | Isotope production system and cyclotron having reduced magnetic stray fields |
| US8106370B2 (en) | 2009-05-05 | 2012-01-31 | General Electric Company | Isotope production system and cyclotron having a magnet yoke with a pump acceptance cavity |
| US8153997B2 (en) | 2009-05-05 | 2012-04-10 | General Electric Company | Isotope production system and cyclotron |
| JP2013015643A (en) * | 2011-07-01 | 2013-01-24 | Yamaha Corp | Performance data transmitter and performance data receiver |
-
2000
- 2000-07-12 JP JP2000211817A patent/JP4240772B2/en not_active Expired - Fee Related
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8106570B2 (en) | 2009-05-05 | 2012-01-31 | General Electric Company | Isotope production system and cyclotron having reduced magnetic stray fields |
| US8106370B2 (en) | 2009-05-05 | 2012-01-31 | General Electric Company | Isotope production system and cyclotron having a magnet yoke with a pump acceptance cavity |
| US8153997B2 (en) | 2009-05-05 | 2012-04-10 | General Electric Company | Isotope production system and cyclotron |
| JP2013015643A (en) * | 2011-07-01 | 2013-01-24 | Yamaha Corp | Performance data transmitter and performance data receiver |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4240772B2 (en) | 2009-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3293434B2 (en) | Tone generation method | |
| EP3379527B1 (en) | Musical sound generation device, musical sound generation method and electronic instrument | |
| EP3379526B1 (en) | Musical sound generation device, musical sound generation method and electronic instrument | |
| JP2002023740A (en) | Music data processor | |
| JPH09258737A (en) | Sound source system using computer software | |
| CN1118764C (en) | Speech information processor | |
| US8373055B2 (en) | Apparatus, method and computer program for switching musical tone output | |
| JPH08314450A (en) | Music system and electronic musical instrument | |
| JP3334483B2 (en) | Waveform memory type tone generator that can input external waveform | |
| JP3230265B2 (en) | Sound channel assignment device for electronic musical instruments | |
| JP4206613B2 (en) | Music data transmitter | |
| JP3557647B2 (en) | Electronic musical instruments and network performance systems | |
| JP4238807B2 (en) | Sound source waveform data determination device | |
| JP3060920B2 (en) | Digital signal processor | |
| JP2715795B2 (en) | Musical sound synthesizer having pronunciation assigning means | |
| JP4306138B2 (en) | Musical sound generator and musical sound generation processing program | |
| JP7124370B2 (en) | Electronic musical instrument, method and program | |
| JP4353225B2 (en) | Music generator | |
| JP3190103B2 (en) | Music synthesizer | |
| JPH09244635A (en) | Electronic stringed instrument | |
| JP2019032566A (en) | Musical sound generating device, musical sound generating method, musical sound generating program, and electronic musical instrument | |
| JP2003216155A (en) | Sound source circuit | |
| Kahrs et al. | It's gnot signal processing. | |
| JPH11344974A (en) | Sound source device and karaoke (accompaniment to recorded music) device | |
| JPH11272278A (en) | Automatic accompaniment device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070604 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080826 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080916 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081112 |
|
| 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: 20081209 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20081222 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120109 Year of fee payment: 3 |
|
| R150 | Certificate of patent (=grant) or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130109 Year of fee payment: 4 |
|
| LAPS | Cancellation because of no payment of annual fees |