[go: up one dir, main page]

JPH04171492A - Musical interval converter - Google Patents

Musical interval converter

Info

Publication number
JPH04171492A
JPH04171492A JP2298115A JP29811590A JPH04171492A JP H04171492 A JPH04171492 A JP H04171492A JP 2298115 A JP2298115 A JP 2298115A JP 29811590 A JP29811590 A JP 29811590A JP H04171492 A JPH04171492 A JP H04171492A
Authority
JP
Japan
Prior art keywords
data
event data
channel
note
conversion
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.)
Pending
Application number
JP2298115A
Other languages
Japanese (ja)
Inventor
Hiroshi Nishikawa
浩 西川
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2298115A priority Critical patent/JPH04171492A/en
Publication of JPH04171492A publication Critical patent/JPH04171492A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、電子楽器の通信方式の一つであるMIDI等
の音程変換装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pitch conversion device such as MIDI, which is one of the communication systems for electronic musical instruments.

[従来技術] 従来、電子楽器の通信手順の統一規格であるMI D 
I  (Musical Instrument Di
gital Inter4ace)に対応する電子楽器
、例えばキーボードは、キーが操作されるとそのキー毎
の操作を表す操作用コードデータを含むイベントデータ
信号を出力するように構成されている。このイベントデ
ータ信号か他の楽器に受信されると、その楽器側ではイ
ベントデータ信号内の操作用コードデータに基づいてそ
のデータに表されている操作かその楽器にてなされたと
同じ発音をする。
[Prior art] Conventionally, MID, which is a unified standard for communication procedures for electronic musical instruments,
I (Musical Instrument Di
An electronic musical instrument, such as a keyboard, which is compatible with the Digital Inter4ace) is configured to output, when a key is operated, an event data signal including operation code data representing the operation of each key. When this event data signal is received by another musical instrument, that instrument produces the same sound as the operation represented by the data based on the operation code data contained in the event data signal.

このイベントデータには受信されたときに行う命令を識
別するコマンドデータが含まれており、数種類の命令の
イベントデータに識別することができる。このうち、音
程を識別するノートナンバーデータを含み、その音程の
音を発音又は消音する命令を行うものをノートイベント
データと言う。
This event data includes command data that identifies the command to be executed when received, and can be identified as event data of several types of commands. Among these, data that includes note number data that identifies a pitch and gives a command to produce or mute a note of that pitch is called note event data.

また、受は取ったイベントデータを出力するときに、こ
のイベントデータに含まれるノートナンバーデータに一
定の値を加算、減算して音程を変化させることにより、
曲のテンポなどを変化させることなく変調を行うことが
できる。
Also, when the receiver outputs the event data it has received, it adds or subtracts a certain value to the note number data included in this event data to change the pitch.
Modulation can be performed without changing the tempo of the song.

このイベントデータにはチャンネルを表す識別するチャ
ンネルデータが含まれている。このチャンネルデータは
個々のイベントデータがどの楽器のイベントデータなの
かを区別するものである。
This event data includes channel data that identifies the channel. This channel data distinguishes which instrument each event data belongs to.

従って、1本の信号ケーブルにて複数の楽器演奏のため
のイベントデータ信号が伝達されても、楽器側て自己が
発音するためのイベントデータか区別でき、各楽器に対
して同時に異なる演奏をさせることかできる。
Therefore, even if event data signals for the performance of multiple musical instruments are transmitted through a single signal cable, the musical instruments can distinguish whether the event data is for their own sound, and allow each instrument to perform different performances at the same time. I can do it.

このことは、キーボード側でチャンネルを切り換えつつ
、複数チャンネルの演奏情報を記録装置に重ねて記録し
、その後にそのデータを再生すれば、1台のキーボード
で多数の電子楽器を区別して同時に演奏させることが可
能となることを意味する。
This means that by switching channels on the keyboard, overlappingly recording multiple channels of performance information on a recording device, and then playing back that data, you can distinguish between multiple electronic musical instruments and play them simultaneously using one keyboard. It means that it is possible.

[発明か解決しようとする課題] しかしなから、ノートイベントデータのなかには、ノー
トナンバーに音程ではなく、例えばドラムデータのよう
にノートナンバーに異なった打楽器音を割りつけている
ものが存在する。このようなノートイベントデータのノ
ートナンバーを他のノートイベントデータと同じように
音程変換すると、打楽器音の割りつけかくずれ、全く意
味のないデータになってしまう。つまり、打楽器のデー
タを含む曲のイベントデータは変調できないという問題
があった。
[Problems to be Solved by the Invention] However, some note event data assign different percussion instrument sounds to note numbers, such as drum data, instead of assigning pitches to note numbers. If the note number of such note event data is pitch-converted in the same way as other note event data, the allocation of percussion instrument sounds will be distorted, resulting in completely meaningless data. In other words, there was a problem in that the event data of a song including percussion instrument data could not be modulated.

本発明は、上述した問題点を解決するためになされたも
のであり、受は取ったイベントデータ中のノートイベン
トデータのうち予め設定されたチャンネルのノートイベ
ントデータを音程変換しないようにすることにより、ノ
ートナンバーデータに音程以外の要素を割りつけられた
ノートイベントデータを含む曲のイベントデータても変
調を行うことができる音程変換装置を提供することを目
的とする。
The present invention has been made in order to solve the above-mentioned problems, and by preventing pitch conversion of the note event data of a preset channel among the note event data of the received event data. An object of the present invention is to provide a pitch conversion device capable of modulating event data of a song including note event data to which elements other than pitch are assigned to note number data.

[課題を解決するための手段] この目的を達成するために本発明の音程変換装置は、第
1図に例示するごとく、電子楽器制御に利用されるイベ
ントデータに変換処理を加えるデータ変換装置であって
、音程を識別するノートナンバーデータを含み、その音
程の音を発音又は消音する命令を行うためのノートイベ
ントデータと、チャンネルを識別するためのチャンネル
データと、楽器の操作のための操作データとを含むイベ
ントデータとを記憶する記憶手段と、データの変換を行
わないチャンネルを設定するための非変換チャンネル設
定手段と、前記ノートナンバーデータを音程変換するた
めの変調データ設定手段と、前記イベントデータの中か
らノートイベントデータを検出するノートイベントデー
タ検出手段と、前記イベントデータの中から前記チャン
ネルデータを識別し、前記非変換チャンネル設定手段で
設定されたチャンネルと異なるチャンネルのイベントデ
ータを検出するチャンネル検出手段と前記ノートイベン
トデータ検出手段と前記チャンネル検出手段で検出され
たノートイベントデータに含まれるノートナンバーデー
タを、前記変調データ設定手段で設定された変調データ
に基づいて変換する変換手段とを備えたことを特徴とす
る。
[Means for Solving the Problems] To achieve this object, the pitch conversion device of the present invention is a data conversion device that performs conversion processing on event data used for electronic musical instrument control, as illustrated in FIG. and includes note number data for identifying pitches, note event data for instructing to produce or mute notes of the pitches, channel data for identifying channels, and operation data for operating the musical instrument. a storage means for storing event data including; a non-conversion channel setting means for setting a channel in which data is not converted; a modulation data setting means for converting the pitch of the note number data; note event data detection means for detecting note event data from among the data; identifying the channel data from the event data and detecting event data of a channel different from the channel set by the non-conversion channel setting means; a channel detection means, the note event data detection means, and a conversion means for converting note number data included in the note event data detected by the channel detection means based on the modulation data set by the modulation data setting means. It is characterized by being equipped.

[作用コ 上記の構成を有する本発明の音程変換装置がイベントデ
ータを受信すると、そのイベントデータを記憶手段が一
旦記憶し、ノートイベントデータ検出手段がノートイベ
ントデータを検出する。そして、チャンネル検出手段が
、ノートイベント検出手段により検出されたノートイベ
ントデータの中からチャンネルを識別するためのチャン
ネルデータと非変換チャンネル設定手段で設定されたチ
ャンネルと異なるチャンネルのノートイベントデータを
検出する。そして、変換手段か、チャンネル検出手段で
検出されたノートイベントデータの中から変調データ設
定手段で設定された変調データに基づいてノートイベン
トデータに含まれるノートナンバーデータを変換する。
[Operation] When the pitch conversion device of the present invention having the above configuration receives event data, the storage means temporarily stores the event data, and the note event data detection means detects the note event data. Then, the channel detection means detects channel data for identifying the channel from among the note event data detected by the note event detection means and note event data of a channel different from the channel set by the non-conversion channel setting means. . Then, the note number data included in the note event data is converted based on the modulation data set by the modulation data setting means from among the note event data detected by the conversion means or the channel detection means.

尚、ます、チャンネル検出手段か受信したイベントデー
タの中から非変換チャンネル以外のチャンネルデータを
検出した後、ノートイベントデータ検出手段かその検出
したデータ中からノートイベントデータを検出するよう
にしても良い。
Additionally, after the channel detection means detects channel data other than non-converted channels from the received event data, the note event data detection means may detect note event data from the data detected by the note event data detection means. .

[実施例] 以下、本発明の第1実施例について図面を参照して説明
する。
[Example] Hereinafter, a first example of the present invention will be described with reference to the drawings.

第2図は実施例としてのMIDIシーケンサ1を示し、
このMIDIシーケンサ1はフロッピーディスクユニッ
ト3、液晶表示部(LCD)5、ファンクションキー7
及びシフトキー9を備えている。フロッピーディスクユ
ニット3は記録媒体としてのフロッピーディスクに、記
録の必要に応してイベントデータとその時刻データとを
含む演奏情報を記録して保存すると共に、更に記録され
ている演奏情報を再生する装置である。フロッピーディ
スクは挿入口3aから挿入することにより記憶再生可能
にセットされる。また、記憶・再生中を示すアクセスラ
ンプ3bやフロッピーディスク排出用のイジェクトボタ
ン3Cも備えられている。
FIG. 2 shows a MIDI sequencer 1 as an example,
This MIDI sequencer 1 includes a floppy disk unit 3, a liquid crystal display (LCD) 5, and function keys 7.
and a shift key 9. The floppy disk unit 3 is a device that records and stores performance information including event data and its time data on a floppy disk as a recording medium according to recording needs, and also plays back the recorded performance information. It is. A floppy disk is inserted into the insertion slot 3a to be set for storage and playback. It is also provided with an access lamp 3b indicating that storage/reproduction is in progress and an eject button 3C for ejecting the floppy disk.

このMIDIシーケンサ1は、キーボード11とMI 
D I信号ケーブル13.15にて接続されており、キ
ーボード11からのイベントデータを受信して自己がカ
ウントしている時刻と共に演奏情報として記憶する装置
であると共に、記憶した演奏情報に含まれるイベントデ
ータを、そのイベントデータとペアで記憶されている時
刻のタイミングで、キーボード11及び他の楽器に向け
て出力して同時に発音させる装置である。
This MIDI sequencer 1 has a keyboard 11 and MIDI
It is connected by a D I signal cable 13.15, and is a device that receives event data from the keyboard 11 and stores it as performance information together with the time it is counting, and also stores events included in the stored performance information. This is a device that outputs data to the keyboard 11 and other musical instruments at the timing of the time stored as a pair with the event data, and causes them to sound simultaneously.

尚、キーボード11は、MIDIシーケンサ1からのイ
ベントデータを一旦入力してからスルー端子TRを介し
て他の楽器にも分配している。勿論、MIDI信号ケー
ブル13.15は、延長して各々異なる他の楽器にも接
続することができる。
Note that the keyboard 11 once inputs event data from the MIDI sequencer 1 and then distributes it to other musical instruments via the through terminal TR. Of course, the MIDI signal cable 13.15 can be extended to connect to other musical instruments, each different.

従って、複数の楽器からイベントデータを得て時刻と共
に演奏情報として記録したり、他の複数の楽器に対して
時刻に応じてイベントデータを出力して発音させるよう
にしたりできる。
Therefore, it is possible to obtain event data from a plurality of musical instruments and record it together with time as performance information, or to output event data to a plurality of other musical instruments according to the time and cause them to produce sound.

尚、イベントデータは、第5図のごとく、3バイトを1
単位とするデータから構成されている。
As shown in Figure 5, the event data consists of 3 bytes per 1
It consists of data that is used as a unit.

また、第1バイトデータB1が連続して同一ならば第2
バイトデータB2と第3バイトデータB3との2バイト
を1単位とする場合もある。実際には、スタートビット
及びストップビットが各バイト毎に付加されているがこ
こでは省略して表している。
Also, if the first byte data B1 is the same continuously, the second byte data B1 is the same.
Two bytes of byte data B2 and third byte data B3 may be used as one unit. Actually, a start bit and a stop bit are added to each byte, but they are omitted here.

第1バイトデータB1は、最上位の第7ビツトB1−7
が「1」であることによりステータスバイトであること
を示しており、第2及び第3バイトデータB2.B3は
、第7ビツトB2−7.B5−7が「0」であることに
よりデータバイトB2、B3であることを示している。
The first byte data B1 is the most significant seventh bit B1-7
is "1", indicating that it is a status byte, and the second and third byte data B2. B3 is the seventh bit B2-7. B5-7 being "0" indicates data bytes B2 and B3.

ステータスバイトB1は、第6ビツトB1−6〜第4ビ
ット81−4の3ビツトによりステータスの種類を示し
、第3ビットB1−3〜第0ピツ)Bl−0の4ビツト
によりそのチャンネルを示している。即ち、ステータス
バイトB1から8種類のステータスを区別でき、16種
類のチャンネルを区別できる。ステータスとしては、r
oooJ(二進数)がノートオフを表し、roolJが
ノートオンを表す。その他ポリフォニックキープレッシ
ャ、コントロールチェンジ、プログラムチェンジ等がス
テータスとして用意される。またチャンネルとしてはr
o 000J〜rllllJ  (二進数)がチャンネ
ル「1」〜r16J  (十進数)を表している。
Status byte B1 indicates the type of status using 3 bits from 6th bit B1-6 to 4th bit 81-4, and indicates the channel using 4 bits from 3rd bit B1-3 to 0th bit Bl-0. ing. That is, eight types of status can be distinguished from status byte B1, and 16 types of channels can be distinguished. As for the status, r
oooJ (binary number) represents note-off, and roolJ represents note-on. Other statuses include polyphonic key pressure, control change, and program change. Also, the channel is r
o 000J~rllllJ (binary numbers) represent channels "1"~r16J (decimal numbers).

例えば、ステータスバイトB1のビットが「10010
000Jであれば、ステータスの種類は「ノートオン」
であり、そのチャンネルは「1」である。そしてその直
後のデータバイトB2は「ノートオン」における128
種類の音程の内の1つを示し、データバイトB3はその
128種類のベロシティ (音の強さ)の内の1つを示
す。
For example, the bit of status byte B1 is “10010
If it is 000J, the status type is "note on"
and its channel is "1". And the data byte B2 immediately after that is 128 in "note on"
Data byte B3 indicates one of its 128 types of velocity (intensity).

このハイドデータB1の第6ビツトB1−6〜第4ビッ
トB1−4がノートイベントデータかどうか識別するた
めのコマンドデータに該当し、ハイドデータB1の第3
ビットB]−3〜第OビットB1−0がチャンネルを識
別するためのチャンネルデータに該当し、バイトデータ
B2.B3の各々の下位7ビソト(第6ビツトB2−6
〜第OビットB2−0.第6ビツトB5−6〜第0ピノ
)B3−0)か楽器の操作のだめの操作データに該当す
る。また、ノートイベントデータとは、ステータスバイ
トB1の第6ビツトB1−6〜第4ビットB1−4がr
oooJ又はroolJの場合を言い、そのときのデー
タバイトB2がノートナンバーデータである。
The sixth bit B1-6 to the fourth bit B1-4 of this hide data B1 correspond to command data for identifying whether or not it is note event data, and the third bit B1-6 of this hide data B1 corresponds to command data for identifying whether it is note event data.
Bit B]-3 to Oth bit B1-0 correspond to channel data for identifying the channel, and byte data B2. The lower 7 bits of each of B3 (6th bit B2-6
~Oth bit B2-0. The 6th bit B5-6 to the 0th pin (B3-0) corresponds to operation data for operating the musical instrument. Note event data is data in which the sixth bit B1-6 to the fourth bit B1-4 of the status byte B1 are r.
In the case of oooJ or roolJ, data byte B2 at that time is note number data.

ここで、ノートナンバーデータは、前述ように7ビツト
で表現され、0から127までの128種類の音程を識
別できるようになっている。0か最も低い音程で数字か
1増えるに従って半音つつ音程か高くなり127か最も
高い音程を表す。1増すことに半音つつ音程か高くなる
ことから数字か12増えると6音高くなり、つまり1オ
クターブ音程か高くなることになる。逆に数字か12減
ると1オクターブ音程か低くなることになる。
Here, the note number data is expressed in 7 bits as described above, and 128 types of pitches from 0 to 127 can be identified. 0 is the lowest pitch, and as the number increases by 1, the pitch increases by a semitone, and 127 is the highest pitch. Increasing the number by 1 means raising the pitch by a semitone, so if the number increases by 12, the pitch will go up by 6 steps, which means the pitch will go up by 1 octave. Conversely, if the number is decreased by 12, the pitch will be one octave lower.

次に、本実施例の制御g置について第3図のイー号処理
系統のブロック図を参照して説明する。
Next, the control g position of this embodiment will be explained with reference to the block diagram of the No. E processing system shown in FIG.

MIDIシーケンサ1は、CPU1a、ROM1b、R
AM1c及びタイ?−1dを備えており、デジタル式コ
ンピュータとして構成されている。
The MIDI sequencer 1 includes a CPU 1a, a ROM 1b, and a R
AM1c and Thailand? -1d, and is configured as a digital computer.

更に、フロッピーディスクユニット3を駆動制御するフ
ロッピーディスクコントローラ1e及びLCD’5を駆
動制御するLCDコントローラ1fを備えている。まt
二、シーケンシャルなイベントデータか入出力可能なイ
ンターフェース1g及びキー7.9からの入出力インタ
ーフェイス1hも備えている。これらの間はハスライン
11によって各種の信号の伝達かなされている。
Furthermore, it is provided with a floppy disk controller 1e for driving and controlling the floppy disk unit 3, and an LCD controller 1f for driving and controlling the LCD'5. Yes
2. It also has an interface 1g that can input/output sequential event data and an input/output interface 1h from keys 7.9. Various signals are transmitted between these via a lotus line 11.

一方、キーボード1]も同様にCPLIコ]a、ROM
I 1bSRAMI 1 c及びタイマー116を備え
ており、デジタル式コンピュータとして構成されている
。また、デジタル型のイベントデータをアナログ型の音
響信号に変換する音源11e、その音声信号を増幅する
アンプllf及び発音させるためのスピーカl1gも備
えている。更に、キー11h用のインターフェイスll
i及びシーケンシャルなイベントデータが入出力可能な
インターフェイスlljも備えている。これらの間はパ
スラインllkによって各種の信号の伝達がなされてい
る。
On the other hand, keyboard 1] also has CPLI code] a, ROM
It is equipped with an I 1b SRAM I 1 c and a timer 116, and is configured as a digital computer. It also includes a sound source 11e that converts digital event data into an analog audio signal, an amplifier llf that amplifies the audio signal, and a speaker 11g that produces sound. Furthermore, an interface ll for key 11h
It also has an interface llj that can input and output i and sequential event data. Various signals are transmitted between these through a path line llk.

次に、前記MIDIシーケンサ1のCPU1aにて実施
される処理のうち、音程変換処理を第4図のフローチャ
ートに基づいて説明する。
Next, among the processes executed by the CPU 1a of the MIDI sequencer 1, the pitch conversion process will be explained based on the flowchart shown in FIG.

まず、MIDIシーケンサ1の処理が開始されると、現
在、変調データ設定モードか設定されているか否かが判
断される(Sll)。このとき、ファンクションキー7
及びシフトキー9による選択操作にて変調データ設定モ
ードが設定されているとすると、変調データの設定処理
が開始され(S12)、ファンクションキー7の操作に
より、変調データの選択か可能となる。例えば、「+1
2」と設定すれば、ノートイベントデータの中の音程を
識別するノートナンバーデータに12か加算され、音程
変換される。また、変調データか設定されていない場合
は全てのノートイベントデータは何の変換もされない。
First, when the processing of the MIDI sequencer 1 is started, it is determined whether the modulation data setting mode is currently set (Sll). At this time, function key 7
If the modulation data setting mode is set by the selection operation using the shift key 9, the modulation data setting process is started (S12), and the modulation data can be selected by operating the function key 7. For example, "+1
2", 12 is added to the note number data that identifies the pitch in the note event data, and the pitch is converted. Furthermore, if modulation data is not set, all note event data will not be converted in any way.

次に、Sllの判断結果がNoの場合には、非変換チャ
ンネル設定モードか否かか判定される(51 B)。こ
のとき、ファンクションキー7及びシフトキー9による
選択操作にて非変換チャンネル設定モードか設定されて
いるとすると、非変換チャンネルの設定処理が開始され
(S ] 4)、ファンクションキー7の操作により非
変換チャンネルの選択が可能となる。例えば、「16」
と設定すれば、イベントデータ内のチャンネルを識別す
るためのチャンネルデータか16のイベントデータはノ
ートイベントデータてあっても音程変換されない。また
、非変換チャンネルが設定されていない場合は全てのチ
ャンネルのノートデータが音程変換される。
Next, if the determination result of Sll is No, it is determined whether or not it is the non-conversion channel setting mode (51 B). At this time, if the non-conversion channel setting mode is set by the selection operation using the function key 7 and the shift key 9, the setting process for the non-conversion channel is started (S4), and the non-conversion channel setting mode is set by the selection operation using the function key 7. Channel selection becomes possible. For example, "16"
If this is set, the pitch of the channel data for identifying the channel in the event data or the 16 event data will not be converted in pitch even if the note event data is included. Furthermore, if no non-conversion channels are set, the note data of all channels will be pitch-converted.

512の判断結果かNoの場合には、RAMJC内のイ
ベントデータを送信するための再生モートか否かが判断
される(S 15)。このとき、ファンクションキー7
の操作により再生モードか設定されていると、次にデー
タの送信か終了かどうかか判断される(S 16)。つ
まり、ファンクションキー7の操作により再生モードの
中止が支持された場合(S15・No) 、あるいはデ
ータの送信か全て終了した場合(S16・YES)は、
517にてキー人力を待つ。そして、キー人力かなされ
ると、前記Sllに移行する。
If the determination result in step 512 is No, it is determined whether or not the playback mode is for transmitting event data in RAMJC (S15). At this time, function key 7
If the playback mode is set by the operation, it is then determined whether to send data or end (S16). In other words, if the cancellation of the playback mode is supported by the operation of the function key 7 (S15, No), or if all data transmission is completed (S16, YES),
Waiting for key personnel at 517. Then, when the key is manually operated, the process moves to the Sll.

また、516の判断結果かNoの場合には、送信するイ
ベントデータがノートイベントデータであるか否かを判
断する(318)。イベントデータかノートイベントデ
ータの場合には、音程変換か設定されているか否か、即
ち、前記512で変調データか設定しであるか否かを判
定する(S19)。音程変換か設定されていれば、送信
するイベントデータのチャネンルデータ(Bl−3〜B
1−0)と814で設定された非変換チャンネルとを比
較し、一致していなければ次のS2]に進む。また、非
変換チャンネルか設定されてい−い場合も同様に821
に進む。
Further, if the determination result at 516 is No, it is determined whether the event data to be transmitted is note event data (318). In the case of event data or note event data, it is determined whether pitch conversion has been set, that is, whether modulation data has been set in step 512 (S19). If pitch conversion is set, the channel data (Bl-3 to Bl-3) of the event data to be sent
1-0) and the non-converted channel set in step 814, and if they do not match, the process proceeds to the next step S2]. Also, if the non-conversion channel is not set, 821
Proceed to.

S21においては、ノートイベントデータのノートナン
バーデータ(B2−6〜B2−0)に812で設定され
た変調データを加算する。例えば、第5図のように変換
前のノートナンバーデータかr64J  (十進数)で
変調データかr+12」であれば、変換後のノートナン
バーデータは第6図のように「76」となり、変換前に
比べると1オクターブ音程の高い音のノートナンバーと
なる。
In S21, the modulation data set in 812 is added to the note number data (B2-6 to B2-0) of the note event data. For example, if the note number data before conversion is r64J (decimal) and the modulation data is r+12, as shown in Figure 5, the note number data after conversion will be ``76'' as shown in Figure 6, and before conversion. Compared to , the note number is one octave higher.

そして、変換した結果か0より小さくなる場合、又は1
27より大きくなる場合もそれぞれ0又は127になり
、必す0から127の間に収まるようになる。
If the converted result is less than 0, or 1
If the value is larger than 27, it becomes 0 or 127, respectively, and the value must fall between 0 and 127.

続いて、データをMIDI信号ケーブル]3を介してキ
ーボード11等に出力する(522)。
Subsequently, the data is output to the keyboard 11 etc. via the MIDI signal cable 3 (522).

そして、再び前記516に戻り、データの送信か終了し
ていなければ、同様に518〜S22を繰返し、データ
の送信か終了した場合(816・YES>には、前記5
17に戻る。
Then, the process returns to step 516 again, and if the data transmission has not been completed, steps 518 to S22 are repeated in the same way.
Return to 17.

尚、前記518.  S19の判断結果がNoの場合及
び前記S20の判断結果かYESの場合には、直ちにS
22に移行する。
In addition, the above 518. If the judgment result in S19 is No, or if the judgment result in S20 is YES, S
22.

このようにすれば、ノートナンバーデータに音程以外を
割りつけている楽器のチャンネルを非変換チャンネル設
定手段で設定しておくことにより、音程変換か不要なノ
ートイベントデータか混在している曲のイベントデータ
も自由に変調を行うことが可能となる。
In this way, by setting the channel of the instrument whose note number data is assigned a value other than pitch using the non-conversion channel setting means, you can set the channel of the instrument whose note number data is assigned to a value other than the pitch, and the event of a song that contains pitch conversion or unnecessary note event data. Data can also be freely modulated.

次に、他の実施例としての音程変換器21について第7
図を参照して説明する。
Next, the seventh section regarding the pitch converter 21 as another embodiment will be explained.
This will be explained with reference to the figures.

本音程変換器21と第1実施例のM I D Iシーケ
ンサ1との違いは、第2実施例は記憶する機能やフロッ
ピーディスクユニットか存在しないたけである。従って
液晶表示部(LCD23)を観察しながら、キー25を
操作することにより、変調データと非変換チャンネルと
か設定できる。このことにより、本変換器21を2つの
楽器の間のMIDI信号ケーブルに取り付ければ、入力
側のMIDI信号ケーブル27から入力して来る所定の
楽器のノートイベントデータのうち、非変換チャンネル
と異なるチャンネルのノートイベントデータのみか変調
データに基ついて変換され、直ちに出力側のMI D 
I信号ケーブル29から他の楽器に向けて出力できる。
The difference between the present pitch converter 21 and the MIDI sequencer 1 of the first embodiment is that the second embodiment does not have a storage function or a floppy disk unit. Therefore, by operating the keys 25 while observing the liquid crystal display section (LCD 23), the modulation data and non-conversion channels can be set. As a result, if this converter 21 is attached to a MIDI signal cable between two musical instruments, the note event data of a predetermined instrument input from the input side MIDI signal cable 27 can be transferred to a channel different from the non-converted channel. Note event data is converted based on only the modulation data, and the output side MID is immediately converted.
It can be output from the I signal cable 29 to other musical instruments.

従って、ノートイベントデータの中のノートナンバーデ
ータに音程以外の要素か割りつけられたイベントデータ
を含む曲のイベントデータも変調を行うことができる。
Therefore, event data of a song that includes event data in which an element other than pitch is assigned to note number data in the note event data can also be modulated.

ここで、CPUI a及びRAMI Cか非変換チャン
ネル設定手段、変調データ設定手段に該当し、RAMI
 C中に設定されたバッファか記憶手段に該当し、CP
U1a及びROM1bかノートイベントデータ検出手段
、チャンネル検出手段、変換手段に該当する。
Here, CPUI a and RAMI C correspond to non-conversion channel setting means and modulation data setting means, and RAMI C corresponds to non-conversion channel setting means and modulation data setting means.
It corresponds to the buffer or storage means set in C, and the CP
U1a and ROM1b correspond to note event data detection means, channel detection means, and conversion means.

ROM1bに記憶されたCPU]aか実行するS18の
処理かノートイベントデータ検出手段としての処理、5
20の処理かチャンネル検出手段としての処理、521
の処理か変換1段としての処理にそれぞれ該当する。
CPU stored in ROM 1b]a or the process of S18 or the process as a note event data detection means, 5
20 processing or processing as a channel detection means, 521
This corresponds to the processing of 1 or 1 stage of conversion, respectively.

[発明の効果] 以上詳述したことから明らかなように、本発明によれば
、イベントデータ内に含まれるノートイベントデータを
検出し、さらに検出されたノートイベントデータ内の含
まれるチャンネルを識別するためのチャンネルデータと
あらかじめ設定しておいた非変換チャンネルを比較して
非変換チャンネルと異なったチャンネルのノートイベン
トデータを検出し、そのノートイベントデータのみにあ
らかしめ設定しておいた変調データに基づいて音程変換
を行うようにしたのでドラムデータなどのノートナンバ
ーデータに音程以外の要素を割り付けたノートイベント
データが含まれる曲のイベントデータでも変調を行うこ
とができる。
[Effects of the Invention] As is clear from the detailed description above, according to the present invention, note event data included in event data is detected, and a channel included in the detected note event data is identified. Compare the channel data for the conversion with the non-conversion channel set in advance, detect note event data of a channel different from the non-conversion channel, and use the preset modulation data only for that note event data. Since pitch conversion is performed using the modulation method, it is possible to perform modulation even on event data of a song that includes note event data in which elements other than pitch are assigned to note number data such as drum data.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の基本的例示図、第2図は第1実施例の
MID1シーケンサの構成とキーボードその他の楽器と
の接続状態を示す概略構成図、第3図はそのブロック図
、第4図はMIDIシーケンサの実施する音程変換処理
のフローチャート、第5図はイベントデータの構成説明
図、第6図はその音程変換後のイベントデータの構成説
明図、第7図は第2実施例のチャンネル変換器の外観図
である。 図中、1はMIDIシーケンサ、1aはCPU。 ]bはROM、lcはRAM、11はキーホード、21
はチャンネル変換器、B1〜B3はバイトデータ(操作
用コードデータ及び識別用コードデータ)である。
FIG. 1 is a basic illustration of the present invention, FIG. 2 is a schematic configuration diagram showing the configuration of the MID1 sequencer of the first embodiment and the connection state with a keyboard and other musical instruments, FIG. 3 is a block diagram thereof, and FIG. The figure is a flowchart of the pitch conversion process performed by the MIDI sequencer, Figure 5 is a diagram explaining the structure of event data, Figure 6 is a diagram explaining the structure of event data after pitch conversion, and Figure 7 is the channel of the second embodiment. It is an external view of a converter. In the figure, 1 is a MIDI sequencer, and 1a is a CPU. ] b is ROM, lc is RAM, 11 is keyboard, 21
is a channel converter, and B1 to B3 are byte data (operation code data and identification code data).

Claims (1)

【特許請求の範囲】 1、電子楽器制御に利用されるイベントデータに変換処
理を加えるデータ変換装置であって、音程を識別するノ
ートナンバーデータを含み、その音程の音を発音又は消
音する命令を行うためのノートイベントデータと、チャ
ンネルを識別するためのチャンネルデータと、楽器の操
作のための操作データとを含むイベントデータとを記憶
する記憶手段と、 データの変換を行わないチャンネルを設定するための非
変換チャンネル設定手段と、 前記ノートナンバーデータを音程変換するための変調デ
ータ設定手段と、 前記イベントデータの中からノートイベントデータを検
出するノートイベントデータ検出手段と、前記イベント
データの中から前記チャンネルデータを識別し、前記非
変換チャンネル設定手段で設定されたチャンネルと異な
るチャンネルのイベントデータを検出するチャンネル検
出手段と前記ノートイベントデータ検出手段と前記チャ
ンネル検出手段で検出されたノートイベントデータに含
まれるノートナンバーデータを、前記変調データ設定手
段で設定された変調データに基づいて変換する変換手段
と、 を備えたことを特徴とする音程変換装置。
[Scope of Claims] 1. A data conversion device that performs conversion processing on event data used for controlling an electronic musical instrument, which includes note number data for identifying pitches, and includes instructions to produce or mute the notes of the pitches. storage means for storing event data including note event data for performing data conversion, channel data for identifying channels, and operation data for operating the instrument; and for setting channels for which data conversion is not performed. non-conversion channel setting means for converting the pitch of the note number data; modulation data setting means for converting the pitch of the note number data; note event data detection means for detecting note event data from the event data; channel detection means for identifying channel data and detecting event data of a channel different from the channel set by the non-conversion channel setting means, the note event data detection means and the note event data detected by the channel detection means; A pitch conversion device comprising: conversion means for converting note number data set by the modulation data setting means.
JP2298115A 1990-11-02 1990-11-02 Musical interval converter Pending JPH04171492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2298115A JPH04171492A (en) 1990-11-02 1990-11-02 Musical interval converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2298115A JPH04171492A (en) 1990-11-02 1990-11-02 Musical interval converter

Publications (1)

Publication Number Publication Date
JPH04171492A true JPH04171492A (en) 1992-06-18

Family

ID=17855367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2298115A Pending JPH04171492A (en) 1990-11-02 1990-11-02 Musical interval converter

Country Status (1)

Country Link
JP (1) JPH04171492A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009216772A (en) * 2008-03-07 2009-09-24 Yamaha Corp Automatic music playing device and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009216772A (en) * 2008-03-07 2009-09-24 Yamaha Corp Automatic music playing device and program

Similar Documents

Publication Publication Date Title
US5194682A (en) Musical accompaniment playing apparatus
EP0480760A2 (en) Apparatus for reproducing musical accompaniment information
EP1569199A1 (en) Musical composition data creation device and method
KR100252399B1 (en) Music information recording and reproducing methods and music information reproducing apparatus
US7186910B2 (en) Musical tone generating apparatus and musical tone generating computer program
JPH05188947A (en) Performance information interface
JP2901845B2 (en) Karaoke performance equipment
US7129406B2 (en) Automatic performance apparatus
US20050257667A1 (en) Apparatus and computer program for practicing musical instrument
JP3928529B2 (en) Electronic musical instruments
JPH04171492A (en) Musical interval converter
JPS59139093A (en) Automatic performer
US5131309A (en) Performance recording/reproducing apparatus enabling correction or modification of playing information
JP2707775B2 (en) Performance recording device
JP2780403B2 (en) Performance recording device
JPH03196191A (en) Performance information processing device
JPH02311897A (en) Channel converting device
JP3356452B2 (en) Electronic musical instrument
JPH0764553A (en) Electronic musical instrument
JP2707775C (en)
JP3533967B2 (en) Tone signal generating device, computer readable recording medium on which a tone signal generating program is recorded
JP2751772B2 (en) Data storage device
JPH04170592A (en) Electronic musical instrument
JPS5828791A (en) Electronic musical instrument
JPH05165476A (en) Electronic musical instrument