JP2002014674A - Sequence data processing method and sequencer, and electronic musical instrument - Google Patents

Sequence data processing method and sequencer, and electronic musical instrument

Info

Publication number
JP2002014674A
JP2002014674A JP2000197197A JP2000197197A JP2002014674A JP 2002014674 A JP2002014674 A JP 2002014674A JP 2000197197 A JP2000197197 A JP 2000197197A JP 2000197197 A JP2000197197 A JP 2000197197A JP 2002014674 A JP2002014674 A JP 2002014674A
Authority
JP
Japan
Prior art keywords
time
relative
event
execution
absolute
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
JP2000197197A
Other languages
Japanese (ja)
Inventor
Masahiro Muramatsu
政弘 村松
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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co 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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2000197197A priority Critical patent/JP2002014674A/en
Publication of JP2002014674A publication Critical patent/JP2002014674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a sequence data processing method and a sequencer, and an electronic musical instrument capable of dealing with the change in tempo or the like and outputting a relative time system and an absolute time system making them correspond to each other while taking an advantage of the relative time system that is sensuously easy to grasp. SOLUTION: This invention is characterized in storing sequence data containing execution times in a relative time system and plural event data of the events to be executed a the times, storing an accumulated relative time, an accumulated absolute time, and each initial value of executing tempos as prescribed start time values, reading the event data in order of execution time, deciding a relative time difference that is a difference between the execution time presented thereby and the accumulated relative time, deciding an absolute time difference based on the executing tempo at that point of time and the relative time difference, updating the relative time difference by accumulating it on the accumulated relative time, updating the absolute time difference by accumulating it on the accumulated absolute time, making the accumulated relative time correspond to the accumulated absolute time using the former as the relative timing information and using the latter as the absolute timing information, to output them, and executing the events.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、シーケンスデータ
処理方法およびシーケンサ並びに電子楽器に関する。
The present invention relates to a sequence data processing method, a sequencer, and an electronic musical instrument.

【0002】[0002]

【従来の技術】近年の電子ピアノや電子オルガンあるい
はシンセサイザ等の電子楽器では、種々の楽器音による
自動演奏(自動伴奏、オートプレイ)のための機能(シ
ーケンサ)を備えることが一般化しつつある。この種の
シーケンサでは、自動演奏のためのSMF(スタンダー
ドMIDIファイル)形式等のシーケンスデータを記憶
し、そのシーケンスデータに基づいて演奏を行う。この
ため、シーケンスデータは、基本的に、演奏情報とその
情報をいつ実行するかという時間情報を含んでいる。そ
して、この場合の時間管理の方法には、大別して、絶対
時間(時刻)系と相対時間系の2つがある。この点、楽
譜は、演奏テンポによって同じ4分音符でも実際の演奏
時間が違うように、相対時間系の表記であるため、相対
時間系の方が感覚的にマッチしている。このため、基本
的には相対時間系を用いることが多い。
2. Description of the Related Art In recent years, electronic musical instruments such as an electronic piano, an electronic organ, and a synthesizer are increasingly equipped with a function (sequencer) for automatic performance (automatic accompaniment, autoplay) using various instrument sounds. In this type of sequencer, sequence data in an SMF (Standard MIDI File) format or the like for automatic performance is stored, and a performance is performed based on the sequence data. For this reason, the sequence data basically includes performance information and time information indicating when the information is to be executed. The time management methods in this case are roughly classified into two types: an absolute time (time) system and a relative time system. In this regard, since the musical score is expressed in a relative time system so that the actual performance time differs even for the same quarter note depending on the performance tempo, the relative time system is more intuitively matched. For this reason, basically, a relative time system is often used.

【0003】また、この種のシーケンサとして、自動演
奏中の音(音符)が、演奏予定の曲の何番目(例えば2
曲目)の何小節目(例えば3小節目)の何拍目(例えば
4拍目)なのかを、パネル上のディスプレイに「曲−小
節−拍」(例えば「02−03−04」)などの形式
で、表示できるものも知られている。この場合の「曲−
小節−拍」等も基本的に相対時間系の表示である。これ
により、ユーザは、好みの曲や好みのフレーズ等が全体
のうちのどこに位置するのかなどを、「曲−小節−拍」
の単位で把握でき、次回、同様の表示をさせながら、早
送り(FF)や巻戻し(REW)によって頭出しして、
聞くことができる。また、シーケンスデータの編集等を
行うユーザにとっては、編集の際の参考にできる。
[0003] As a sequencer of this type, the number of notes (notes) that are being played automatically (eg, 2
The number of bars (for example, the fourth beat) of what bar (for example, the third bar) of the (tune) is displayed on the display on the panel, such as "Song-bar-beat" (for example, "02-03-04"). Some are known in a form that can be displayed. In this case, "Song-
"Measure-beat" is basically a display of a relative time system. Thereby, the user can determine where the favorite song or favorite phrase is located in the entirety by “song-measure-beat”.
The next time, the same display is displayed, and the beginning is found by fast forward (FF) or rewind (REW).
Can hear. Further, a user who edits sequence data or the like can refer to it when editing.

【0004】[0004]

【発明が解決しようとする課題】ところで、元来、時/
分/秒/フレームの構成を有して絶対時刻(番地、アド
レス)情報による時間管理(絶対時刻系の時間管理)の
下で、VTRの同期信号として広く使われていたSMP
TE(Society of Motion Picture and Television Eng
ineer )タイムコード(以下、適宜「SMPTE」と略
す)が、近年、プロモーションビデオや音楽ビデオ作成
など、映像と音楽とのリンクの必要性等から、その有効
性が理解され、必然的にレコーディングにも利用され、
普及してきた。上記のSMF形式のメタイベントにも採
用されている。また、MTRとシーケンサの同期など、
スタジオワークにSMPTEが普及したことから、MI
DIの同期もSMPTE同様に絶対時刻で管理したいと
いうニーズが高まり、これに応じて、SMPTEと同様
に時/分/秒/フレームの構成を有して絶対時刻系の時
間管理に適したMIDIタイムコードの規格が追加され
た。
By the way, originally, time /
SMP which has a structure of minute / second / frame and is widely used as a VTR synchronization signal under time management based on absolute time (address, address) information (time management of an absolute time system)
TE (Society of Motion Picture and Television Eng
ineer) In recent years, the validity of time code (hereinafter abbreviated as “SMPTE”) has been understood due to the necessity of linking video and music, such as creating promotional videos and music videos. Is also used,
Has become popular. It is also used in the SMF format meta-events described above. Also, such as synchronization of MTR and sequencer
With the spread of SMPTE in studio work, MI
There is a growing need to manage DI synchronization with absolute time, similar to SMPTE, and accordingly, MIDI time suitable for absolute time-based time management with a time / minute / second / frame configuration similar to SMPTE. Code standards were added.

【0005】一方、音源等の充実、シンセサイザのオー
ルインワン化やワークステーション化により、音源から
シーケンサ機能まで1台完結でデータ制作の全てができ
るようになり、少なくともアマチュアの世界では、同期
の必要性が低減している。また、MIDI規格にも、相
対時間系のまま、ある程度の自由度を持って、曲の途中
等からでも同期が可能なメッセージが用意された。ま
た、相対時間系の時間管理によるシーケンサでは、自動
演奏開始時に演奏のテンポを調整(指定・変更)でき、
さらに、自動演奏中でも、操作者(ユーザ)がその場の
いわゆる「ノリ」に合わせて、演奏のテンポを調整(変
更)できるものも知られている。
On the other hand, the enhancement of sound sources and the like, the all-in-one synthesizer, and the use of workstations make it possible to perform all data production from a sound source to a sequencer function by one unit. At least in the amateur world, synchronization is necessary. Has been reduced. Also, in the MIDI standard, a message that can be synchronized from the middle of a song or the like with a certain degree of freedom in a relative time system is prepared. Also, with a sequencer that uses time management in a relative time system, the tempo of the performance can be adjusted (designated / changed) at the start of the automatic performance,
Further, there is also known an automatic performance in which an operator (user) can adjust (change) the tempo of the performance in accordance with a so-called "slip" on the spot.

【0006】すなわち、相対時間系の時間管理によるも
のと絶対時間系の時間管理によるものとに2分化してい
て、これらの相互間の対応付けについては、あまり考慮
がされていない。このため、いずれか一方の系の時間管
理に基づいて作成されたシーケンスデータを他方のため
に編集し直したり、あるいは双方の系のシーケンサと同
期演奏をしようにも、時刻情報を対応させにくいという
問題がある。
[0006] That is, the time management is divided into a time management based on a relative time system and a time management based on an absolute time system, and little consideration is given to the correspondence between them. For this reason, it is difficult to correspond the time information even if the sequence data created based on the time management of one of the systems is re-edited for the other, or the synchronized performance is performed with the sequencers of both the systems. There's a problem.

【0007】そこで、本発明は、テンポ変更等にも対応
でき、楽譜等から感覚的に把握しやすい相対時間系の利
点を生かしつつ、相対時間系と絶対時間系の時刻を対応
づけて出力でき、絶対時間系と同調する場合の参考とな
る時刻対応情報を提供できるシーケンスデータ処理方法
およびシーケンサ並びに電子楽器を提供することを目的
とする。
Therefore, the present invention can cope with a change in tempo, etc., and can output the relative time system and the absolute time system in association with each other while taking advantage of the relative time system which can be intuitively grasped from a musical score or the like. It is another object of the present invention to provide a sequence data processing method, a sequencer, and an electronic musical instrument that can provide time-corresponding information that can be used as reference when synchronizing with an absolute time system.

【0008】[0008]

【課題を解決するための手段】本発明の請求項1のシー
ケンスデータ処理方法は、相対時間系の時間単位で示す
実行時刻とその実行時刻に行うイベントとを指示するイ
ベントデータを複数有するシーケンスデータを記憶する
シーケンスデータ記憶工程と、所定の開始時刻の値とし
て累積相対時刻の初期値を記憶する初期相対時刻記憶工
程と、前記所定の開始時刻の値として累積絶対時刻の初
期値を記憶する初期絶対時刻記憶工程と、前記所定の開
始時刻の値として実行テンポの初期値を記憶する初期実
行テンポ記憶工程と、前記複数のイベントデータを前記
実行時刻順に読み出すイベントデータ読出工程と、前記
読み出されたイベントデータが示す実行時刻とその時点
の前記累積相対時刻との差である相対時刻差を決定する
相対時刻差決定工程と、前記イベントデータが読み出さ
れた時点の実行テンポと前記相対時刻差に基づいて、前
記相対時刻差に相当する絶対時刻差を決定する絶対時刻
差決定工程と、前記相対時刻差をその時点の前記累積相
対時刻に累積して更新する累積相対時刻更新工程と、前
記絶対時刻差をその時点の前記累積絶対時刻に累積して
更新する累積絶対時刻更新工程と、前記累積相対時刻を
相対計時情報として出力するとともに、前記累積絶対時
刻を絶対計時情報として前記相対計時情報と対応させて
出力する計時情報出力工程と、前記読み出されたイベン
トデータが示すイベントを実行するイベント実行工程
と、を備えたことを特徴とする。
According to a first aspect of the present invention, there is provided a sequence data processing method comprising: a sequence data having a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event to be performed at the execution time; A sequence data storing step of storing an initial value of an accumulated relative time as a value of a predetermined start time, and an initial step of storing an initial value of an accumulated absolute time as a value of the predetermined start time. An absolute time storage step, an initial execution tempo storage step of storing an initial value of an execution tempo as the value of the predetermined start time, an event data reading step of reading the plurality of event data in the order of the execution time, A relative time difference determining unit that determines a relative time difference that is a difference between the execution time indicated by the event data and the accumulated relative time at that time. An absolute time difference determining step of determining an absolute time difference corresponding to the relative time difference based on the execution tempo at the time when the event data is read and the relative time difference; A cumulative relative time updating step of accumulating and updating the cumulative relative time, an accumulative absolute time updating step of accumulating and updating the absolute time difference with the cumulative absolute time at that time, and a relative clocking of the accumulated relative time. A time information output step of outputting the accumulated absolute time as the absolute time information in association with the relative time information, and an event execution step of executing the event indicated by the read event data. It is characterized by having.

【0009】また、請求項9のシーケンサは、相対時間
系の時間単位で示す実行時刻とその実行時刻に行うイベ
ントとを指示するイベントデータを複数有するシーケン
スデータを記憶するシーケンスデータ記憶手段と、所定
の開始時刻の値として累積相対時刻の初期値を記憶する
初期相対時刻記憶手段と、前記所定の開始時刻の値とし
て累積絶対時刻の初期値を記憶する初期絶対時刻記憶手
段と、前記所定の開始時刻の値として実行テンポの初期
値を記憶する初期実行テンポ記憶手段と、前記複数のイ
ベントデータを前記実行時刻順に読み出すイベントデー
タ読出手段と、前記読み出されたイベントデータが示す
実行時刻とその時点の前記累積相対時刻との差である相
対時刻差を決定する相対時刻差決定手段と、前記イベン
トデータが読み出された時点の実行テンポと前記相対時
刻差に基づいて、前記相対時刻差に相当する絶対時刻差
を決定する絶対時刻差決定手段と、前記相対時刻差をそ
の時点の前記累積相対時刻に累積して更新する累積相対
時刻更新手段と、前記絶対時刻差をその時点の前記累積
絶対時刻に累積して更新する累積絶対時刻更新手段と、
前記累積相対時刻を相対計時情報として出力するととも
に、前記累積絶対時刻を絶対計時情報として前記相対計
時情報と対応させて出力する計時情報出力手段と、前記
読み出されたイベントデータが示すイベントを実行する
イベント実行手段と、を備えたことを特徴とする。
According to a ninth aspect of the present invention, there is provided a sequencer comprising: sequence data storage means for storing sequence data having a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event to be performed at the execution time; Initial relative time storage means for storing an initial value of the cumulative relative time as a start time value, initial absolute time storage means for storing an initial value of the cumulative absolute time as the predetermined start time value, Initial execution tempo storage means for storing an initial value of the execution tempo as a time value, event data reading means for reading the plurality of event data in the order of the execution time, execution time indicated by the read event data, and its time Relative time difference determining means for determining a relative time difference that is a difference from the cumulative relative time of the event data; Absolute time difference determining means for determining an absolute time difference corresponding to the relative time difference based on the execution tempo at the selected time and the relative time difference, and accumulating the relative time difference to the cumulative relative time at that time. Cumulative absolute time updating means for updating the absolute time difference, accumulative absolute time updating means for accumulating and updating the absolute time difference to the cumulative absolute time at that time,
A time information output unit that outputs the accumulated relative time as relative time information and outputs the accumulated absolute time as absolute time information in association with the relative time information; and executes an event indicated by the read event data. And an event execution unit that performs the operation.

【0010】このシーケンスデータ処理方法およびシー
ケンサでは、相対時間系の時間単位で示す実行時刻とそ
の実行時刻に行うイベントとを指示するイベントデータ
を複数有するシーケンスデータを記憶し、所定の開始時
刻の値として、累積相対時刻の初期値を記憶し、累積絶
対時刻の初期値を記憶し、実行テンポの初期値を記憶す
る。この状態から、複数のイベントデータを実行時刻順
に読み出し、読み出されたイベントデータが示すイベン
トを実行する。このため、シーケンスデータとして定め
たシーケンス(実行順序)で各イベントを実行する。一
方、読み出されたイベントデータが示す実行時刻とその
時点の累積相対時刻との差である相対時刻差を決定し、
イベントデータが読み出された時点の実行テンポと相対
時刻差に基づいて、相対時刻差に相当する絶対時刻差を
決定し、相対時刻差をその時点の累積相対時刻に累積・
更新して、絶対時刻差をその時点の累積絶対時刻に累積
・更新する。すなわち、相対時間系の時刻を示す累積相
対時刻に対応して絶対時間系の時刻を示す累積絶対時刻
が更新される。
In the sequence data processing method and the sequencer, sequence data having a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event to be performed at the execution time is stored, and a value of a predetermined start time is stored. , The initial value of the cumulative relative time is stored, the initial value of the cumulative absolute time is stored, and the initial value of the execution tempo is stored. From this state, a plurality of event data are read out in the order of execution time, and the event indicated by the read out event data is executed. Therefore, each event is executed in a sequence (execution order) defined as sequence data. On the other hand, a relative time difference that is a difference between the execution time indicated by the read event data and the accumulated relative time at that time is determined,
The absolute time difference corresponding to the relative time difference is determined based on the execution tempo and the relative time difference at the time when the event data is read out, and the relative time difference is accumulated / accumulated to the accumulated relative time at that time.
After updating, the absolute time difference is accumulated and updated to the accumulated absolute time at that time. That is, the cumulative absolute time indicating the time in the absolute time system is updated corresponding to the cumulative relative time indicating the time in the relative time system.

【0011】そして、累積相対時刻を相対計時情報とし
て出力するとともに、累積絶対時刻を絶対計時情報とし
て相対計時情報と対応させて出力する。ここで、相対時
間系の時刻は、たとえシーケンスの実行の途中で実行テ
ンポを外部から強制的に変更されても、相対時間系で実
行する限り、問題なく実行できる。したがって、感覚的
に把握しやすい相対時間系の利点を生かして、シーケン
スを実行でき、かつ、その途中にテンポ変更があって
も、相対時間系の時刻と絶対時間系の時刻とを対応づけ
て出力(処理)できる。逆に言えば、相対時間系と絶対
時間系とを対応づけたまま、シーケンスの実行中にテン
ポを強制変更できる。また、このため、実行テンポを変
更するイベントを指示するイベントデータを含めても何
ら問題なく、相対時間系と絶対時間系とを対応づけて出
力(処理)できる。また、これにより、絶対時間系の時
刻管理によるシーケンスデータに編集したり、絶対時間
系の時刻管理によるシーケンサと同期演奏したりする場
合など、絶対時間系と同調する場合の参考となる時刻対
応情報を提供できる。
The accumulated relative time is output as relative timekeeping information, and the accumulated absolute time is output as absolute timekeeping information in association with the relative timekeeping information. Here, the relative time system time can be executed without any problem even if the execution tempo is forcibly changed from the outside during the execution of the sequence as long as the execution is performed in the relative time system. Therefore, by taking advantage of the relative time system that is easy to grasp intuitively, the sequence can be executed, and even if there is a tempo change in the middle, the relative time system time and the absolute time system time are linked. Can be output (processed). Conversely, the tempo can be forcibly changed during execution of the sequence while the relative time system and the absolute time system are associated with each other. For this reason, the relative time system and the absolute time system can be output (processed) in association with each other without any problem even if event data indicating an event for changing the execution tempo is included. In addition, this enables time-corresponding information to be used when synchronizing with the absolute time system, such as when editing into sequence data based on absolute time system time management, or when performing synchronized performance with a sequencer using absolute time system time management. Can be provided.

【0012】また、請求項2のシーケンスデータ処理方
法は、実行テンポ変更のイベントを含む1種以上の所定
イベントが定められ、相対時間系の時間単位で示す実行
時刻とその実行時刻に行うイベントとを指示するイベン
トデータを複数有するシーケンスデータを記憶するシー
ケンスデータ記憶工程と、シーケンス上の目的位置を相
対時間系の時間単位で示す目的時刻を決定する目的時刻
決定工程と、所定の開始時刻の値として累積相対時刻の
初期値を記憶する初期相対時刻記憶工程と、前記所定の
開始時刻の値として累積絶対時刻の初期値を記憶する初
期絶対時刻記憶工程と、前記所定の開始時刻の値として
実行テンポの初期値を記憶する初期実行テンポ記憶工程
と、前記複数のイベントデータを前記実行時刻順に前記
目的時刻まで読み出すイベントデータ読出工程と、前記
読み出されたイベントデータが示すイベントが前記複数
種類の所定イベントのうちの1である場合、そのイベン
トデータが示す実行時刻とその時点の前記累積相対時刻
との差である相対時刻差を決定する相対時刻差決定工程
と、前記所定イベントのうちの1である場合、その時点
の前記実行テンポと前記相対時刻差に基づいて、前記相
対時刻差に相当する絶対時刻差を決定する絶対時刻差決
定工程と、前記所定イベントのうちの1である場合、前
記相対時刻差をその時点の前記累積相対時刻に累積して
更新する累積相対時刻更新工程と、前記所定イベントの
うちの1である場合、前記絶対時刻差をその時点の前記
累積絶対時刻に累積して更新する累積絶対時刻更新工程
と、前記読み出されたイベントデータが示すイベントが
前記実行テンポ変更のイベントの場合、テンポ変更によ
り実行テンポを更新する実行テンポ更新工程と、前記読
み出されたイベントデータが示す実行時刻が前記目的時
刻の場合、前記累積相対時刻を相対計時情報として出力
するとともに、前記累積絶対時刻を絶対計時情報として
前記相対計時情報と対応させて出力する計時情報出力工
程と、を備えたことを特徴とする。
According to a second aspect of the present invention, there is provided the sequence data processing method, wherein one or more kinds of predetermined events including an event of an execution tempo change are determined, and an execution time indicated in a relative time system time unit and an event executed at the execution time are defined. A sequence data storing step of storing sequence data having a plurality of event data indicating a target time, a target time determining step of determining a target time indicating a target position on the sequence in a time unit of a relative time system, and a value of a predetermined start time An initial relative time storing step of storing an initial value of the cumulative relative time, an initial absolute time storing step of storing an initial value of the cumulative absolute time as the value of the predetermined start time, and executing as the value of the predetermined start time. An initial execution tempo storage step of storing an initial value of tempo, and reading the plurality of event data in the execution time order up to the target time. An event data reading step, and when an event indicated by the read event data is one of the plurality of types of predetermined events, a difference between an execution time indicated by the event data and the accumulated relative time at that time. A relative time difference determining step of determining a relative time difference, and, if the event is one of the predetermined events, an absolute time corresponding to the relative time difference based on the execution tempo and the relative time difference at that time. An absolute time difference determining step of determining a difference, and, if the event is one of the predetermined events, an accumulated relative time updating step of accumulating and updating the relative time difference to the accumulated relative time at that time; A cumulative absolute time updating step of accumulating and updating the absolute time difference with the cumulative absolute time at that time; If the event indicated by is the event of the execution tempo change, the execution tempo update step of updating the execution tempo by changing the tempo, and if the execution time indicated by the read event data is the target time, the accumulated relative time A time information output step of outputting the accumulated absolute time as absolute time information in association with the relative time information and outputting the accumulated time as relative time information.

【0013】また、請求項10のシーケンサは、実行テ
ンポ変更のイベントを含む1種以上の所定イベントが定
められ、相対時間系の時間単位で示す実行時刻とその実
行時刻に行うイベントとを指示するイベントデータを複
数有するシーケンスデータを記憶するシーケンスデータ
記憶手段と、シーケンス上の目的位置を相対時間系の時
間単位で示す目的時刻を決定する目的時刻決定手段と、
所定の開始時刻の値として累積相対時刻の初期値を記憶
する初期相対時刻記憶手段と、前記所定の開始時刻の値
として累積絶対時刻の初期値を記憶する初期絶対時刻記
憶手段と、前記所定の開始時刻の値として実行テンポの
初期値を記憶する初期実行テンポ記憶手段と、前記複数
のイベントデータを前記実行時刻順に前記目的時刻まで
読み出すイベントデータ読出手段と、前記読み出された
イベントデータが示すイベントが前記複数種類の所定イ
ベントのうちの1である場合、そのイベントデータが示
す実行時刻とその時点の前記累積相対時刻との差である
相対時刻差を決定する相対時刻差決定手段と、前記所定
イベントのうちの1である場合、その時点の前記実行テ
ンポと前記相対時刻差に基づいて、前記相対時刻差に相
当する絶対時刻差を決定する絶対時刻差決定手段と、前
記所定イベントのうちの1である場合、前記相対時刻差
をその時点の前記累積相対時刻に累積して更新する累積
相対時刻更新手段と、前記所定イベントのうちの1であ
る場合、前記絶対時刻差をその時点の前記累積絶対時刻
に累積して更新する累積絶対時刻更新手段と、前記読み
出されたイベントデータが示すイベントが前記実行テン
ポ変更のイベントの場合、テンポ変更により実行テンポ
を更新する実行テンポ更新手段と、前記読み出されたイ
ベントデータが示す実行時刻が前記目的時刻の場合、前
記累積相対時刻を相対計時情報として出力するととも
に、前記累積絶対時刻を絶対計時情報として前記相対計
時情報と対応させて出力する計時情報出力手段と、を備
えたことを特徴とする。
In the sequencer according to the present invention, at least one kind of predetermined event including an event of a change in execution tempo is defined, and an execution time indicated by a relative time system time unit and an event to be executed at the execution time are indicated. Sequence data storage means for storing sequence data having a plurality of event data, target time determination means for determining a target time indicating a target position on the sequence in time units of a relative time system,
An initial relative time storage unit that stores an initial value of the cumulative relative time as a value of the predetermined start time; an initial absolute time storage unit that stores an initial value of the cumulative absolute time as the value of the predetermined start time; The initial execution tempo storage means for storing the initial value of the execution tempo as the value of the start time, the event data reading means for reading the plurality of event data in the execution time order to the target time, and the read event data indicate When the event is one of the plurality of types of predetermined events, a relative time difference determining means for determining a relative time difference that is a difference between the execution time indicated by the event data and the cumulative relative time at that time; If the event is one of the predetermined events, the absolute time difference corresponding to the relative time difference is determined based on the execution tempo and the relative time difference at that time. An absolute time difference determining means for determining, if one of the predetermined events, the relative time difference is cumulatively updated to the cumulative relative time at that time to update the relative time difference; When the absolute time difference is accumulated to the accumulated absolute time at that time, the accumulated absolute time updating means, and when the event indicated by the read event data is the event of the execution tempo change An execution tempo updating means for updating the execution tempo by changing the tempo; and when the execution time indicated by the read event data is the target time, outputting the accumulated relative time as relative timekeeping information; And timing information output means for outputting the absolute time information as the absolute time information in association with the relative time information.

【0014】このシーケンスデータ処理方法およびシー
ケンサでは、実行テンポ変更のイベントを含む1種以上
の所定イベントが定められ、相対時間系の時間単位で示
す実行時刻とその実行時刻に行うイベントとを指示する
イベントデータを複数有するシーケンスデータを記憶
し、所定の開始時刻の値として、累積相対時刻の初期値
を記憶し、累積絶対時刻の初期値を記憶し、実行テンポ
の初期値を記憶する。ここで、シーケンス上の目的位置
を相対時間系の時間単位で示す目的時刻を決定し、複数
のイベントデータを実行時刻順に目的時刻まで読み出
す。すなわち、この場合、所定の開始時刻から目的時刻
までを実行時刻とするイベントデータのみを対象とす
る。また、実行テンポ変更のイベントを含む1種以上の
所定イベントが定められていて、所定イベントのみを処
理対象とする。すなわち、目的時刻までの所定イベント
以外については、何も処理する必要がないので、処理開
始から処理終了までを短縮できる。
In this sequence data processing method and sequencer, at least one type of predetermined event including an event of an execution tempo change is determined, and an execution time indicated by a relative time system time unit and an event to be executed at the execution time are specified. Sequence data having a plurality of event data is stored, an initial value of an accumulated relative time is stored as a value of a predetermined start time, an initial value of an accumulated absolute time is stored, and an initial value of an execution tempo is stored. Here, a target time indicating a target position on the sequence in time units of a relative time system is determined, and a plurality of event data are read out in order of execution time until the target time. That is, in this case, only the event data whose execution time is from the predetermined start time to the target time is targeted. In addition, one or more types of predetermined events including an event for changing the execution tempo are defined, and only the predetermined events are processed. In other words, since there is no need to process anything other than the predetermined event up to the target time, the time from the start of the process to the end of the process can be shortened.

【0015】一方、読み出されたイベントデータが示す
イベントが複数種類の所定イベントのうちの1である場
合、そのイベントデータが示す実行時刻とその時点の累
積相対時刻との差である相対時刻差を決定し、その時点
の実行テンポと相対時刻差に基づいて、相対時刻差に相
当する絶対時刻差を決定し、相対時刻差をその時点の累
積相対時刻に累積して更新し、絶対時刻差をその時点の
累積絶対時刻に累積して更新する。これにより、所定イ
ベントのみを処理対象としていても、相対時間系の時刻
を示す累積相対時刻に対応して絶対時間系の時刻を示す
累積絶対時刻が更新される。また、読み出されたイベン
トデータが示すイベントが実行テンポ変更のイベントの
場合、テンポ変更により実行テンポを更新するので、実
行テンポを変更するイベントを指示するイベントデータ
を含めても何ら問題なく、相対時間系と絶対時間系とを
対応づけて処理できる。
On the other hand, when the event indicated by the read event data is one of a plurality of types of predetermined events, a relative time difference which is a difference between the execution time indicated by the event data and the accumulated relative time at that time. The absolute time difference corresponding to the relative time difference is determined based on the execution tempo and the relative time difference at that time, and the relative time difference is accumulated and updated to the cumulative relative time at that time, and the absolute time difference is updated. Is accumulated and updated to the accumulated absolute time at that time. Thus, even if only a predetermined event is to be processed, the accumulated absolute time indicating the time in the absolute time system is updated in correspondence with the accumulated relative time indicating the time in the relative time system. In addition, when the event indicated by the read event data is the event of the execution tempo change, the execution tempo is updated by the tempo change. The time system and the absolute time system can be processed in association with each other.

【0016】そして、読み出されたイベントデータが示
す実行時刻が目的時刻の場合、累積相対時刻を相対計時
情報として出力するとともに、累積絶対時刻を絶対計時
情報として前記相対計時情報と対応させて出力する。し
たがって、感覚的に把握しやすい相対時間系の利点を生
かし、所定イベント以外の処理を不要として、処理を短
縮しつつ、かつ、その途中にテンポ変更イベントがあっ
ても、何ら問題なく、目的時刻の相対時間系の時刻と絶
対時間系の時刻とを対応づけて出力(処理)できる。ま
た、これにより、絶対時間系の時刻管理によるシーケン
スデータに編集したり、絶対時間系の時刻管理によるシ
ーケンサと同期演奏したりする場合など、絶対時間系と
同調する場合の参考となる時刻対応情報を提供できる。
When the execution time indicated by the read event data is the target time, the accumulated relative time is output as relative time information, and the accumulated absolute time is output as absolute time information in association with the relative time information. I do. Therefore, taking advantage of the relative time system that is easy to grasp intuitively, processing other than the predetermined event is unnecessary, shortening the processing, and even if there is a tempo change event in the middle, there is no problem at all. The relative time system time and the absolute time system time can be output (processed) in association with each other. In addition, this enables time-corresponding information to be used when synchronizing with the absolute time system, such as when editing into sequence data based on absolute time system time management, or when performing synchronized performance with a sequencer using absolute time system time management. Can be provided.

【0017】また、請求項2のシーケンスデータ処理方
法において、前記目的時刻指定工程は、前記目的時刻を
示す数値を直接入力する目的時刻数値入力工程を有する
ことが好ましい。
Preferably, in the sequence data processing method according to the second aspect, the target time designation step includes a target time numerical value input step of directly inputting a numerical value indicating the target time.

【0018】また、請求項10のシーケンサにおいて、
前記目的時刻指定手段は、前記目的時刻を示す数値を直
接入力する目的時刻数値入力手段を有することが好まし
い。
Further, in the sequencer according to the present invention,
It is preferable that the target time designating means has target time numerical value inputting means for directly inputting a numerical value indicating the target time.

【0019】このシーケンスデータ処理方法およびシー
ケンサでは、目的時刻を示す数値を直接入力できるの
で、相対時間系の目的時刻を入力するだけで、絶対時間
系の時刻を迅速に出力できる。
In this sequence data processing method and sequencer, since a numerical value indicating the target time can be directly input, the absolute time system time can be quickly output only by inputting the relative time system target time.

【0020】また、請求項2または3のシーケンスデー
タ処理方法において、前記目的時刻指定工程は、任意の
実行時刻を初期値としてその値を変化させて前記目的時
刻に合わせることにより前記目的時刻を入力する目的時
刻変更入力工程を有することが好ましい。
Further, in the sequence data processing method according to claim 2 or 3, the target time specifying step inputs the target time by changing an arbitrary execution time as an initial value and adjusting the value to the target time. It is preferable to have a target time change inputting step.

【0021】また、請求項10または11のシーケンサ
において、前記目的時刻指定手段は、任意の実行時刻を
初期値としてその値を変化させて前記目的時刻に合わせ
ることにより前記目的時刻を入力する目的時刻変更入力
手段を有することが好ましい。
12. The sequencer according to claim 10, wherein the target time specifying means inputs the target time by changing an arbitrary execution time as an initial value and adjusting the value to the target time. It is preferable to have a change input means.

【0022】このシーケンスデータ処理方法およびシー
ケンサでは、任意の実行時刻を初期値としてその値を変
化させて目的時刻に合わせることにより目的時刻を入力
できるので、目的時刻が明確でない場合に、概略で入力
しておいて、少しづつ調整しながら所望の目的時刻に合
わせる場合等に適した目的時刻の入力ができる。
In this sequence data processing method and sequencer, the target time can be input by changing an arbitrary execution time as an initial value and adjusting the value to the target time. Therefore, when the target time is not clear, the input is performed roughly. Then, the user can input a target time suitable for, for example, adjusting to a desired target time while adjusting little by little.

【0023】また、請求項1ないし4のいずれかのシー
ケンスデータ処理方法において、前記シーケンスデータ
には、所定の楽譜に対応して演奏を行うためのイベント
を指示するイベントデータが含まれることが好ましい。
Further, in the sequence data processing method according to any one of claims 1 to 4, it is preferable that the sequence data includes event data indicating an event for performing a performance corresponding to a predetermined score. .

【0024】また、請求項9ないし12のいずれかのシ
ーケンサにおいて、前記シーケンスデータには、所定の
楽譜に対応して演奏を行うためのイベントを指示するイ
ベントデータが含まれることが好ましい。
In the sequencer according to any one of the ninth to twelfth aspects, it is preferable that the sequence data includes event data indicating an event for performing a performance corresponding to a predetermined score.

【0025】このシーケンスデータ処理方法およびシー
ケンサでは、シーケンスデータには、所定の楽譜に対応
して演奏を行うためのイベントを指示するイベントデー
タが含まれるので、自動演奏方法および自動演奏装置に
適用できる。
In this sequence data processing method and sequencer, since the sequence data includes event data indicating an event for performing a performance corresponding to a predetermined score, the sequence data can be applied to an automatic performance method and an automatic performance device. .

【0026】また、請求項5のシーケンスデータ処理方
法において、前記相対計時情報には、楽譜上の位置に対
応する楽譜情報が含まれることが好ましい。
Further, in the sequence data processing method according to the fifth aspect, it is preferable that the relative timing information includes score information corresponding to a position on the score.

【0027】また、請求項13のシーケンサにおいて、
前記相対計時情報には、楽譜上の位置に対応する楽譜情
報が含まれることが好ましい。
Further, in the sequencer according to the thirteenth aspect,
It is preferable that the relative timing information includes score information corresponding to a position on the score.

【0028】このシーケンスデータ処理方法およびシー
ケンサでは、相対計時情報は、楽譜上の位置に対応する
楽譜情報が含まれるので、演奏を行うためのイベントを
実行したときなどには、その演奏の楽譜上の位置に対応
する楽譜情報を出力できる。
In this sequence data processing method and sequencer, the relative timing information includes the musical score information corresponding to the position on the musical score. Can output the score information corresponding to the position.

【0029】また、請求項6のシーケンスデータ処理方
法において、前記楽譜情報には、その時点の小節情報お
よび拍情報の少なくとも1が含まれることが好ましい。
Further, in the sequence data processing method according to claim 6, it is preferable that the score information includes at least one of bar information and beat information at that time.

【0030】また、請求項14のシーケンサにおいて、
前記楽譜情報には、その時点の小節情報および拍情報の
少なくとも1が含まれることが好ましい。
Further, in the sequencer according to claim 14,
It is preferable that the score information includes at least one of bar information and beat information at that time.

【0031】このシーケンスデータ処理方法およびシー
ケンサでは、その時点の小節情報および拍情報の少なく
とも1が含まれるので、楽譜上の位置との対応関係が把
握しやすい。
In the sequence data processing method and the sequencer, since at least one of the bar information and the beat information at that time is included, it is easy to grasp the correspondence with the position on the score.

【0032】また、請求項1ないし7のいずれかのシー
ケンスデータ処理方法において、前記計時情報出力工程
は、前記相対計時情報と絶対計時情報とを対応させて表
示する計時情報表示工程を有することが好ましい。
Further, in the sequence data processing method according to any one of claims 1 to 7, the time information output step may include a time information display step of displaying the relative time information and the absolute time information in association with each other. preferable.

【0033】また、請求項9ないし15のいずれかのシ
ーケンサにおいて、前記計時情報出力手段は、前記相対
計時情報と絶対計時情報とを対応させて表示する計時情
報表示手段を有することが好ましい。
In the sequencer according to any one of claims 9 to 15, it is preferable that the time information output means includes time information display means for displaying the relative time information and the absolute time information in association with each other.

【0034】このシーケンスデータ処理方法およびシー
ケンサでは、相対計時情報と絶対計時情報とを対応させ
て表示するので、相対時間系の時刻と絶対時間系の時刻
とを対応づけて容易に把握できる。
In this sequence data processing method and sequencer, the relative time information and the absolute time information are displayed in association with each other, so that the relative time and the absolute time can be easily associated with each other.

【0035】また、請求項17の電子楽器は、請求項9
ないし16のいずれかに記載のシーケンサを備えたこと
を特徴とする。
Further, the electronic musical instrument according to claim 17 is based on claim 9.
Or a sequencer according to any one of (1) to (16).

【0036】この電子楽器では、請求項9ないし16の
いずれかのシーケンサを備えているので、上述の種々の
利点を備えて、相対時間系の時刻と絶対時間系の時刻と
を対応づけて処理できる電子楽器となる。
This electronic musical instrument is provided with the sequencer according to any one of claims 9 to 16, so that the relative time system time and the absolute time system time are processed in association with the various advantages described above. An electronic musical instrument that can be used.

【0037】[0037]

【発明の実施の形態】以下、本発明の一実施形態に係る
シーケンスデータ処理方法およびシーケンサ並びに電子
楽器を適用した電子オルガンタイプの電子楽器につい
て、添付図面を参照しながら詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A sequence data processing method and a sequencer according to an embodiment of the present invention and an electronic organ type electronic musical instrument to which the electronic musical instrument is applied will be described in detail with reference to the accompanying drawings.

【0038】図1および図2に示すように、この電子楽
器1は、楽器であるとともに電子機器であり、ユーザと
のマンマシンインタフェースを行う操作部20と、その
操作部20を含めて電子楽器1内の各部を制御する制御
部10と、各部に電力を供給する電源部30とを備えて
いる。このため、電子楽器1のケースの内部には、図外
の回路基板が収納され、この回路基板には、電源部30
の電源ユニットの他、制御部20の各回路などが搭載さ
れ、図外のAC電源等にプラグ等を介して接続されてい
る。
As shown in FIGS. 1 and 2, the electronic musical instrument 1 is an electronic instrument as well as a musical instrument. The electronic musical instrument 1 includes a man-machine interface with a user. 1 includes a control unit 10 that controls each unit, and a power supply unit 30 that supplies power to each unit. For this reason, a circuit board (not shown) is housed inside the case of the electronic musical instrument 1, and the power supply unit 30
In addition to the power supply unit described above, each circuit of the control unit 20 and the like are mounted, and connected to an AC power supply (not shown) via a plug or the like.

【0039】操作部20は、楽器としての主操作部とな
りいわゆる手鍵盤となるキーボード3と、足鍵盤となる
ペダル群や演奏効果のための各種ペダル(オルガン系を
模擬するためのエクスプレッションペダル(リズムスト
ップスイッチ、グランドスイッチ、フィルインスイッチ
等が付属)、ピアノ系を模擬するためのラウドペダル
(ダンパペダル、サスティンペダル)、ソフトペダル、
ソステヌートペダル(マフラーペダル)等)を有するペ
ダル群6と、キーボード3の周囲に配置され電子機器と
しての主操作部となるパネル5と、外部記憶(ES)と
のインタフェース部となる外部記憶インタフェース(E
SI)7と、いわゆる発音回路やサウンドシステムのう
ちのスピーカ82近傍の回路(例えばアンプ等)81を
含む発音部8と、を備えている。
The operation unit 20 is a main operation unit as a musical instrument, a keyboard 3 as a so-called hand keyboard, a pedal group as a foot keyboard and various pedals for performance effects (expression pedals (rhythms for simulating an organ system). A stop switch, ground switch, fill-in switch, etc. are included), a loud pedal (damper pedal, sustain pedal) for simulating a piano system, a soft pedal,
A pedal group 6 having a sostenuto pedal (muffler pedal, etc.), a panel 5 disposed around the keyboard 3 and serving as a main operation unit as an electronic device, and an external storage interface (interface) with an external storage (ES) E
SI) 7 and a sound generator 8 including a circuit (for example, an amplifier) 81 near a speaker 82 of a so-called sound circuit or sound system.

【0040】なお、ここでは、後述の音源部160と発
音部8とを後述のD/Aコンバータ162の出力部分で
区切って図示しているが、これらをまとめて、より大き
な意味での音源部(または発音部)となるので、音源部
160と発音部8との概念的な(ブロック図的な)区切
りはどこでも良い。
Although the sound source 160 and the sound generator 8 described later are separated by an output portion of a D / A converter 162 described later, the sound generator 160 and the sound generator 8 are collectively described. (Or a sound generating unit), so the conceptual (block diagram) division between the sound source unit 160 and the sound generating unit 8 may be anywhere.

【0041】また、本実施形態では、外部記憶(ES)
としてフロッピー(登録商標)ディスク(FD)を用い
るので、ESI7は具体的にはFDドライブ(FDD)
の機構部となるが、FDの他、コンパクトディスク(C
D(CD−ROM、書込可能なCD−R、再書込可能な
CD−R/W等))、レーザディスク(LD)、光磁気
(MO)ディスク、ミニディスク(MD)、外付けのハ
ードディスク(HD:リムーバルハードディスク(RH
D)を含む)、ZIPなど、光や磁気等を用いた任意の
外部記憶(ES)を使用でき、これらの場合、それぞれ
のドライブを操作部20に備えれば良く、後述の外部記
憶コントローラ(ESC)140もこれらと対応するも
のを備えれば良い。
In this embodiment, the external storage (ES)
Since a floppy (registered trademark) disk (FD) is used as the ESI7, the ESI7 is specifically an FD drive (FDD).
FD, compact disk (C
D (CD-ROM, writable CD-R, rewritable CD-R / W, etc.)), laser disk (LD), magneto-optical (MO) disk, mini disk (MD), external Hard Disk (HD: Removable Hard Disk (RH
D)), ZIP, etc., any external storage (ES) using light or magnetism can be used. In these cases, each drive may be provided in the operation unit 20, and an external storage controller (to be described later) may be used. The ESC 140 may be provided with those corresponding to these.

【0042】キーボード3は、図1では簡略化して図示
しているが、電子楽器1では、図2に示すように、上鍵
盤(アッパーマニュアル)、中鍵盤(ミドルマニュア
ル)および下鍵盤(ロアーマニュアル)から成る3段構
成のキーボード3(いわゆるコンソールタイプ)を備え
ている。
Although the keyboard 3 is simplified in FIG. 1, the electronic musical instrument 1 has an upper keyboard (upper manual), a middle keyboard (middle manual) and a lower keyboard (lower manual) as shown in FIG. ) Is provided with a three-stage keyboard 3 (so-called console type).

【0043】また、両図に示すように、電子楽器1で
は、キーボード3の周囲に、各種のプッシュ式、プル
式、スライド式、ダイヤル式等のキー、ボタン、スイッ
チ等(以下、キーボード3の「キー」と区別しやすいよ
うに、任意の一つを呼ぶときは「パネルスイッチ」とい
う。)51と、ボリュームインジケータ等の例えばLE
D等から成る各種のインジケータ52と、液晶等から成
る表示画面41を有するディスプレイ4と、を備えたパ
ネル5が設けられている。なお、パネル5の各部(パネ
ルスイッチ等について)の詳細は、必要に応じて後述す
る。また、ディスプレイ4をタッチパネルで構成し、パ
ネルスイッチ51の一部を表示されたタッチキーにより
構成して、パネルスイッチ数の削減やパネル部5の小型
化等を図ることもできる。
As shown in both figures, in the electronic musical instrument 1, various push-type, pull-type, slide-type, dial-type keys, buttons, switches, etc. (hereinafter referred to as keyboard 3) are provided around the keyboard 3. An arbitrary one is called a "panel switch" so that it can be easily distinguished from a "key."
A panel 5 including various indicators 52 made of D or the like and the display 4 having a display screen 41 made of a liquid crystal or the like is provided. The details of each part of the panel 5 (for panel switches and the like) will be described later as necessary. In addition, the display 4 may be configured with a touch panel, and a part of the panel switch 51 may be configured with displayed touch keys, so that the number of panel switches and the size of the panel unit 5 can be reduced.

【0044】制御部10は、図1に示すように、CPU
11、ROM12、RAM13、周辺制御回路(周辺制
御コントローラ:PCN)100を備え、互いに内部バ
ス15により接続されている。また、水晶発振子を有し
て基本クロックを発生するとともに、基本クロックを分
周した各種のクロックを発生するクロック回路(CL
K)16を備え、各部に分配している。
As shown in FIG. 1, the control unit 10 has a CPU
11, a ROM 12, a RAM 13, and a peripheral control circuit (peripheral controller: PCN) 100, which are connected to each other by an internal bus 15. A clock circuit (CL) that has a crystal oscillator and generates a basic clock and generates various clocks obtained by dividing the basic clock
K) 16 and distributed to each part.

【0045】ROM12は、CPU11で処理する制御
プログラムを記憶する制御プログラム領域12aの他、
ディスプレイ4の表示や各種演奏効果(音色や残響など
のエフェクト)に関する各部仕様に基づく制御データや
標準(デフォルト)の各部設定データなどの各種制御デ
ータを記憶している制御データ領域12bを有してい
る。なお、制御データの詳細は、必要に応じて後述す
る。
The ROM 12 has a control program area 12a for storing a control program to be processed by the CPU 11,
It has a control data area 12b for storing various control data such as control data based on specifications of each part relating to the display on the display 4 and various performance effects (effects such as tone and reverberation) and standard (default) part setting data. I have. The details of the control data will be described later as necessary.

【0046】RAM13は、電源がオフにされても記憶
したデータを保持しておくように、電源部30のバック
アップ回路により電源のバックアップを受けており、各
種のレジスタやバッファなどの領域を有する他、ユーザ
が設定した各種設定データ(例えば音色、エフェクト、
リズムなどの設定や、その他、自動演奏用のセッティン
グなど:レジストレーションデータ)を記憶し、制御処
理のための作業領域として使用される。
The RAM 13 is backed up by a backup circuit of the power supply 30 so as to retain the stored data even when the power is turned off, and has an area such as various registers and buffers. , Various setting data set by the user (for example, tone, effect,
The rhythm setting and other settings for automatic performance: registration data) are stored and used as a work area for control processing.

【0047】PCN100には、CPU11の機能を補
うとともに周辺回路とのインタフェース信号を取り扱う
ための各種の回路が組み込まれている。PCN100を
機能的に分けると、検出部110と、駆動部120と、
MIDIインタフェース130と、外部記憶コントロー
ラ(ESC)140と、カウンタ部150と、音源部1
60と、を備えている。
The PCN 100 incorporates various circuits for supplementing the function of the CPU 11 and for handling interface signals with peripheral circuits. When the PCN 100 is functionally divided, a detecting unit 110, a driving unit 120,
MIDI interface 130, external storage controller (ESC) 140, counter unit 150, sound source unit 1
60.

【0048】検出部110は、ユーザによりパネル5の
各種のパネルスイッチ51が操作されたときに、その動
作を検出するパネルスイッチ操作検出回路(パネルスイ
ッチ操作検出センサ)111と、キーボード3の各鍵盤
(キー)の動作を検出するボードキー検出回路(ボード
キー操作検出センサ)112と、ペダル群6の各ペダル
61の動作を検出するペダル操作検出回路(ペダル操作
検出センサ)113と、を備え、各検出結果を内部バス
15(あるいは専用接続線でも可)を介してCPU11
に報告する。なお、これらの検出結果は、後述の割込イ
ベントとなるので、各検出回路の他、各割込イベントを
その発生タイミングや優先順位等により整理・調整する
割込制御回路を設けることもできる。
The detection unit 110 includes a panel switch operation detection circuit (panel switch operation detection sensor) 111 that detects the operation of various panel switches 51 of the panel 5 when the user operates the panel switches 51, and each keyboard of the keyboard 3. A board key detection circuit (board key operation detection sensor) 112 for detecting the operation of the (key), and a pedal operation detection circuit (pedal operation detection sensor) 113 for detecting the operation of each pedal 61 of the pedal group 6. Each detection result is sent to the CPU 11 via the internal bus 15 (or a dedicated connection line is also possible).
Report to Since these detection results are interrupt events to be described later, it is also possible to provide an interrupt control circuit for organizing and adjusting each interrupt event according to its occurrence timing and priority in addition to each detection circuit.

【0049】駆動部120は、パネル5のディスプレイ
4を駆動するディスプレイドライバ121と、パネル5
上の各種インジケータ52を駆動するインジケータドラ
イバ122と、自動演奏の場合にその演出としてキーボ
ード3の各キー31やペダル群6の各ペダル61をソレ
ノイド等により駆動する演奏ドライバ123と、を備
え、(内部バス15あるいは専用接続線を介した)CP
U11からの指令に従って、操作部20の各部を駆動す
る。
The driving section 120 includes a display driver 121 for driving the display 4 of the panel 5,
An indicator driver 122 for driving the various indicators 52 above, and a performance driver 123 for driving each key 31 of the keyboard 3 and each pedal 61 of the pedal group 6 by a solenoid or the like as an effect in the case of automatic performance, CP via internal bus 15 or dedicated connection line)
Each unit of the operation unit 20 is driven according to a command from U11.

【0050】MIDIインタフェース130は、MID
I送信回路(トランスミッタ)131と、MIDI受信
回路(レシーバ)132と、を備え、MIDIコネクタ
135を介して、他のMIDI楽器(シンセサイザ、シ
ーケンサを含む)やMIDI情報(MIDIデータ)を
扱えるコンピュータ等の外部装置と、MIDIケーブル
(5ピンDINケーブル)により接続され、CPU11
と連動して、それらの外部装置との間でMIDIデータ
を送受信を行う。
The MIDI interface 130 has an MID
A computer or the like that includes an I transmitting circuit (transmitter) 131 and a MIDI receiving circuit (receiver) 132 and can handle other MIDI musical instruments (including a synthesizer and a sequencer) and MIDI information (MIDI data) via a MIDI connector 135. Is connected to an external device through a MIDI cable (5-pin DIN cable).
MIDI data is transmitted and received to and from these external devices in conjunction with.

【0051】もちろん、THRU端子を用いてカスケー
ド(チェーン)接続したり、パラボックス(THRUボ
ックス)を用いて複数の外部装置と接続することもでき
る。また、パソコン等と接続する場合、パソコンのシリ
アルポート(RS−232C等)によるシリアルインタ
フェースとMIDIインタフェースとをコンバートする
コンバータも市販されているので、それを利用すること
もできる。なお、近年のオペレーティングシステム(O
S)により標準サポートされているUSB(Universal
Serial Bus)や、IEEE1394(ファイアワイア)
を利用できるようにしても良い。
Of course, cascade (chain) connection using THRU terminals and connection to a plurality of external devices using a parabox (THRU box) are also possible. When connecting to a personal computer or the like, a converter for converting a serial interface using a serial port (RS-232C or the like) of the personal computer and a MIDI interface is commercially available, so that it can be used. Note that recent operating systems (O
USB (Universal) standard supported by S)
Serial Bus), IEEE1394 (FireWire)
May be made available.

【0052】ESC140は、外部記憶(ES:ここで
はFD)のコントローラであるとともに、内蔵のハード
ディスク(HD)141のコントローラであり、HD1
41や外部記憶(ES)を介したシーケンサとしての機
能を兼ね備えていて、CPU11と連動して、HD14
1やFD(ES)71に対して、ユーザが自分の演奏を
録音したり、記憶してある例えば先生のお手本の演奏を
再生することができるようになっている。また、SMF
(スタンダードMIDIファイル)形式等の演奏データ
の録音・再生や、ユーザが設定した各種設定データ(例
えば音色、エフェクト、リズム等やレジストレーション
データ等)を記憶することもできる。また、例えばパー
ト毎に(例えばSMF等に対応させて記録するトラック
を選択することにより)録音を重ねることもできる。
The ESC 140 is a controller for an external storage (ES: here FD) and a controller for a built-in hard disk (HD) 141.
41 and a function as a sequencer via an external storage (ES).
1 and the FD (ES) 71, the user can record his / her own performance or play back the stored performance of, for example, a teacher's model. Also, SMF
It is also possible to record and play back performance data in a (standard MIDI file) format and to store various setting data (for example, timbre, effect, rhythm, registration data, etc.) set by the user. Further, for example, recording can be repeated for each part (for example, by selecting a track to be recorded corresponding to SMF or the like).

【0053】カウンタ部150は、絶対時間(時刻)系
で実時間(絶対時刻)を計測(カウント)する実時間タ
イマ(TIM)151と、相対時刻系で一拍(4分音
符)の長さ等の単位となるティック(ticks )を計測す
る第1ティックタイマ(T1T)152と、基本的には
ティックを計測するが、テンポ変更時の値を任意設定可
能な第2ティックタイマ(T2T)153と、各種の汎
用カウンタ154と、を備えている。第1ティックタイ
マ(T1T)152と第2ティックタイマ(T2T)1
53については、さらに後述する。
The counter section 150 has a real-time timer (TIM) 151 for measuring (counting) real time (absolute time) in an absolute time (time) system, and a length of one beat (quarter note) in a relative time system. A first tick timer (T1T) 152 for measuring a tick (ticks) as a unit, and a second tick timer (T2T) 153 for basically measuring a tick but arbitrarily setting a value when a tempo is changed. And various general-purpose counters 154. First tick timer (T1T) 152 and second tick timer (T2T) 1
53 will be further described later.

【0054】実時間タイマ(TIM)151は、例えば
MIDIタイムコード(MTC)やSMPTE(Societ
y of Motion Picture and Television Engineer )タイ
ムコードと同じ形式で実時間を計測するものである。こ
の計測により、電子楽器1では、時/分/秒/フレーム
(さらにフレーム下の単位としてビット(1フレーム=
80ビット)まで計測しても良い)の絶対時刻情報を得
ることができ、MIDIデータの送受信において、マル
チトラックレコーダ(MTR)等と絶対時間系での同期
を取りやすくなっている。また、各汎用カウンタ154
は、それぞれカウント値を保持するレジスタ部と、イン
クリメント/ディクリメント/セット/リセット/ホー
ルド用の論理回路と、を有して、カウンタとして機能す
る回路であり、CPU11からの指令に従って、タイマ
機能を含む各種のカウントが可能に構成されている。
The real time timer (TIM) 151 is, for example, a MIDI time code (MTC) or an SMPTE (Societ
y of Motion Picture and Television Engineer) Measures real time in the same format as time code. By this measurement, in the electronic musical instrument 1, the hour / minute / second / frame (and the bit (1 frame =
(Measurement up to 80 bits) can be obtained, and it is easy to synchronize with a multi-track recorder (MTR) in an absolute time system in transmitting and receiving MIDI data. In addition, each general-purpose counter 154
Is a circuit that has a register unit for holding a count value and a logic circuit for increment / decrement / set / reset / hold, and functions as a counter, and has a timer function in accordance with a command from the CPU 11. Various types of counting are possible.

【0055】なお、一般に、所定のメモリ(例えばRA
M13)内にカウント値記憶用の領域を設け、CPU1
1によって所定のタイミングでその値をインクリメント
等すれば、性能上の問題やメモリ容量等の問題がない限
り、各種カウンタを代用できるので、上記のTIM15
1、T1T152、T2T153と、各種の汎用カウン
タ154の一部あるいは全部を省略して、RAM13内
の領域を各種カウンタ領域としても良い。また、任意の
汎用カウンタ151を、逆に特定のカウンタ機能(例え
ばステップカウンタやゲートタイムカウンタ等)に特化
して、専用カウンタとすることもできる。ただし、本実
施形態の電子楽器1では、比較的性能上の制約が厳しい
TIM151、T1T152、T2T153のみをハー
ドウェア(論理回路)によるカウンタとして、他の各種
カウンタ(各種タイマ)はソフトウェア(プログラム処
理)によるカウンタとする。
Generally, a predetermined memory (for example, RA
M13), an area for storing the count value is provided, and the CPU 1
If the value is incremented at a predetermined timing by 1 or the like, various counters can be used as long as there is no problem in performance or memory capacity.
1, T1T152, T2T153, and some or all of various general-purpose counters 154 may be omitted, and the area in the RAM 13 may be various counter areas. In addition, an arbitrary general-purpose counter 151 may be a dedicated counter specialized for a specific counter function (for example, a step counter or a gate time counter). However, in the electronic musical instrument 1 of the present embodiment, only the TIM 151, T1T152, and T2T153, whose performance is relatively strictly restricted, are hardware (logic circuit) counters, and other various counters (various timers) are software (program processing). The counter is defined as

【0056】音源部160は、CPU11からの指令に
従って、各種の音色に関するディジタルデータ(ウェー
ブテーブル方式等)を出力可能なトーンジェネレータ
(TG)161と、その出力をD/A変換するD/Aコ
ンバータ162と、を備えている。この音源部160
は、前述のように、発音部8とともに、より大きな意味
での音源部となっていて、GM(General MIDI)モード
においては、GMの音源仕様に準拠した音源(GM音
源:GM Instrument )として機能するほか、所定の特定
モードにおいては、GM音源としての機能を内包した上
位仕様の音源として機能する。このため、GMモードの
場合でも、メロディ用(MIDIの16チャンネルのう
ちのチャンネル10以外の全チャンネルに対応)の12
8音色およびリズム用の47音色(チャンネル10に対
応:音源としてはチャンネル10のノートナンバに対応
してリズム用に最大128音色を設定可能)の発音がで
きる。
The tone generator 160 includes a tone generator (TG) 161 capable of outputting digital data (wavetable system or the like) relating to various timbres in accordance with a command from the CPU 11, and a D / A converter for D / A converting the output. 162. This sound source section 160
Is a sound source section in a larger sense, together with the sound generation section 8 as described above, and functions as a sound source (GM sound source: GM Instrument) conforming to the GM sound source specification in the GM (General MIDI) mode. In addition, in a predetermined specific mode, it functions as a higher-level specification sound source including a function as a GM sound source. Therefore, even in the GM mode, 12 melody (corresponding to all channels other than channel 10 out of 16 MIDI channels) are used.
Eight tones and 47 tones for rhythm (corresponding to channel 10: as a sound source, up to 128 tones for rhythm can be set corresponding to the note number of channel 10) can be generated.

【0057】なお、本実施形態の電子楽器1では、DT
M(Desk Top Music)等でも主流となっているPCM
(Pulse Code Modulatin)音源を使用するが、加算(ま
たは減算)合成方式、FM音源方式、非線形合成方式
等、あるいはこれらにPCM方式やアナログ方式を加え
た基本的な音源方式の単独型、または複数組み合わせた
複合型、さらには、これらの音色(波形)をミックス比
を変えて作るいわゆるベクトルシンセサイザ型など、種
々の方式の音源を使用することができる。
In the electronic musical instrument 1 of this embodiment, the DT
PCM which is also mainstream in M (Desk Top Music)
(Pulse Code Modulatin) A sound source is used, but a single or multiple basic sound source methods, such as an addition (or subtraction) synthesis method, an FM sound source method, a non-linear synthesis method, or a PCM method or an analog method. Various types of sound sources such as a combined type and a so-called vector synthesizer type in which these tones (waveforms) are formed by changing the mix ratio can be used.

【0058】上述のように、PCN100には、CPU
11の機能を補うとともに周辺回路とのインタフェース
信号を取り扱うための各種回路が組み込まれている。こ
のため、各回路は、市販のセンサ、回路素子、IC等の
他、FPGAを含む各種ゲートアレイやカスタムLSI
あるいは複数種のベアチップ等を搭載したマルチチップ
モジュールなどにより、回路毎に個別構成することもで
きるし、複数の機能や回路を、アナログ/ディジタル混
在の専用のASICやパッケージ等としてまとめて構成
することもできる。
As described above, the PCN 100 includes the CPU
Various circuits for supplementing the functions of the eleventh and handling interface signals with peripheral circuits are incorporated. Therefore, each circuit is not limited to commercially available sensors, circuit elements, ICs, etc., but also various gate arrays including FPGAs and custom LSIs.
Alternatively, it is possible to individually configure each circuit using a multi-chip module equipped with a plurality of types of bare chips or the like, and to configure a plurality of functions and circuits collectively as an ASIC or package dedicated to analog / digital mixed operation You can also.

【0059】また、PCN100は、操作部20の各部
と接続され、操作部20からの各種指令や入力データあ
るいはそれらからの検出結果を、そのままあるいは加工
して内部バス15に取り込むとともに、CPU11と連
動して、CPU11等から内部バス15に出力されたデ
ータや制御信号を、そのままあるいは加工して操作部2
0に出力する。
The PCN 100 is connected to each section of the operation section 20, and receives various commands and input data from the operation section 20 or detection results therefrom as they are or processes them, and loads them into the internal bus 15, and interlocks with the CPU 11. Then, data and control signals output from the CPU 11 or the like to the internal bus 15 are processed as they are or
Output to 0.

【0060】そして、CPU11は、上記の構成によ
り、ROM12内の制御プログラムに従って、PCN1
00を介して各種検出信号、各種指令、各種データ等を
入力し、RAM13内の各種データ等を処理し、PCN
100を介して操作部20に制御信号を出力することに
より、電子楽器1を使用したユーザによる演奏あるいは
各種の演奏データに基づく自動演奏など、電子楽器1全
体を制御している。
With the above configuration, the CPU 11 operates the PCN 1 in accordance with the control program in the ROM 12.
00, input various detection signals, various commands, various data, etc., process various data in the RAM 13,
By outputting a control signal to the operation unit 20 via 100, the entire electronic musical instrument 1 is controlled, such as a performance by a user using the electronic musical instrument 1 or an automatic performance based on various performance data.

【0061】次に、電子楽器1の制御全体の処理フロー
について、図3を参照して説明する。電源キー51sの
オン操作(電源オン)等により処理が開始すると、同図
に示すように、まず、電子楽器1を、前回の電源キー5
1sのオフ操作(電源オフ)時の状態に戻すために、退
避していた各制御フラグを復旧するなどの初期設定を行
い(S1)、次に、基準(デフォルト)の操作案内を表
示画面41に初期画面として表示する(S2)。なお、
予め所定の設定をしておくことによって、前回の電源オ
フ時(操作終了時)の表示画面を初期画面として表示さ
せることもできるし、(例えばMIDIファイル編集用
のエディタ画面)などの所定の画面を初期画面として設
定(カスタマイズ)しておくこともできる。
Next, the overall control flow of the electronic musical instrument 1 will be described with reference to FIG. When the process is started by turning on the power key 51s (power on) or the like, first, as shown in FIG.
In order to return to the state at the time of the 1s off operation (power off), initial settings such as restoring the saved control flags are performed (S1), and the reference (default) operation guide is displayed on the display screen 41. Is displayed as an initial screen (S2). In addition,
By performing a predetermined setting in advance, the display screen at the time of the previous power-off (when the operation is completed) can be displayed as an initial screen, or a predetermined screen such as an editor screen for editing a MIDI file can be displayed. Can be set (customized) as an initial screen.

【0062】初期画面表示が終了すると(S2)、次
に、予め定めてある種類の(所定の)割込を許可する
(S3)。すなわち、所定の割込(初期許可割込)の割
込許可フラグをセットする。なお、この初期画面表示の
状態で認める割込の種類もカスタマイズが可能である。
When the initial screen display is completed (S2), a predetermined (predetermined) type of interruption is permitted (S3). That is, an interrupt permission flag of a predetermined interrupt (initial permission interrupt) is set. Note that the type of interrupt allowed in the initial screen display state can also be customized.

【0063】図3のその後の処理、すなわち割込イベン
ト有りか否かの判断分岐(S4)および各種割込処理
(S5)は、概念的に示した処理である。電子楽器1で
は、初期画面表示(S2)が終了すると、初期許可割込
を許可するので(S3)、何らかの初期許可割込(次回
からはその時点で許可された割込)が発生するまでは、
そのままの状態を維持し(S4:No)、何らかの初期
許可割込(許可された割込)が発生すると(S4:Ye
s)、それぞれの割込処理に移行し(S5)、その割込
処理が終了すると、再度、割込イベント待機状態(S
4:No)となる。
The subsequent processing in FIG. 3, that is, the branch for determining whether or not there is an interrupt event (S4) and the various types of interrupt processing (S5) are processing conceptually shown. In the electronic musical instrument 1, when the initial screen display (S2) is completed, the initial permission interrupt is permitted (S3). Therefore, until some initial permission interrupt (the next time, the permission permitted at that time) occurs. ,
The state is maintained as it is (S4: No), and when some initial permission interruption (permitted interruption) occurs (S4: Ye)
s), the process shifts to each interrupt process (S5), and when the interrupt process ends, the interrupt event standby state (S5)
4: No).

【0064】なお、この各種割込処理(S5)には、そ
の時点では許可されていない割込を許可したり、その時
点では許可されている割込を禁止(例えば割込許可フラ
グをリセット)する処理も含まれるので、全体として
は、種々の処理に必要な割込処理を次々とつないだ処理
が行われる。また、初期許可割込の種類を選択するため
処理(カスタマイズの処理)に入るための割込処理は、
初期許可割込として自動的に許可されるので、仮にユー
ザがカスタマイズに失敗して(間違って)、所望の処理
(割込処理)ができなくなっても、カスタマイズをやり
直すこと(またはやり直し後に再度電源を入れ直すこ
と)ができるようになっている。
In the various kinds of interrupt processing (S5), interrupts that are not permitted at that time are permitted or interrupts that are permitted at that time are prohibited (for example, an interrupt permission flag is reset). Therefore, as a whole, a process in which interrupt processes necessary for various processes are connected one after another is performed. Also, the interrupt processing for entering the processing for selecting the type of the initial permission interrupt (customization processing)
Since the initial permission interruption is automatically permitted, even if the user fails to customize (erroneously) and cannot perform the desired processing (interruption processing), the customization can be redone (or the power supply is turned on again after the redo). Can be replaced).

【0065】以下では、説明を簡単にするため、例えば
キーボード3の各キー31の全ての操作、パネル5のパ
ネルスイッチ51の全ての操作、ペダル群6のペダル6
1の全ての操作、ESI(ここではFDD)7に対する
FDの挿入など、操作部20に対するユーザの操作(割
込イベント)により発生する割込処理の全てを、初期か
ら許可している(初期許可割込としている)ものとして
説明する。
In the following, for simplicity of explanation, for example, all operations of each key 31 of the keyboard 3, all operations of the panel switch 51 of the panel 5, the pedals 6 of the pedal group 6,
All of the interrupt processing generated by the user's operation (interrupt event) on the operation unit 20, such as insertion of the FD into the ESI (here, the FDD) 7 and the like, are all permitted from the beginning (initial permission). (It is interrupted).

【0066】次に、電子楽器1において、制御プログラ
ムに従って行うシーケンス機能(以下、単に「シーケン
サ」と略す)における時間管理と、そのシーケンサで扱
う演奏データ(シーケンスデータ)のフォーマットにつ
いて説明する。
Next, a description will be given of time management in a sequence function (hereinafter simply referred to as “sequencer”) performed in accordance with the control program in the electronic musical instrument 1 and a format of performance data (sequence data) handled by the sequencer.

【0067】まず、MIDI規格に従って演奏動作を表
現したMIDIメッセージは、大きく2つに分類でき
る。すなわち、MIDIシステムに含まれる個々の楽器
に対して別々の演奏情報を伝えるチャンネルメッセージ
と、MIDIシステムに接続された全ての機器に対する
システムメッセージに分類される。チャンネルメッセー
ジは、さらに、一般的な楽器の演奏情報を表現するボイ
スメッセージと、モノフォニックやポリフォニック等の
楽器の基本となる受信状態等を表現するモードメッセー
ジに分類される。一方、システムメッセージは、さらに
エクスクルーシブメッセージ、コモンメッセージ、リア
ルタイムメッセージの3つに大別される。
First, MIDI messages expressing performance operations according to the MIDI standard can be roughly classified into two types. That is, it is classified into a channel message for transmitting different performance information to each musical instrument included in the MIDI system, and a system message for all devices connected to the MIDI system. The channel messages are further classified into voice messages expressing performance information of general musical instruments and mode messages expressing basic receiving conditions of the musical instruments such as monophonic and polyphonic. On the other hand, system messages are further roughly classified into three types: exclusive messages, common messages, and real-time messages.

【0068】そして、ボイスメッセージの代表的なもの
が、例えばキーボード3の各キー(各ノート)に対する
押鍵(ノートオン)を表現するノートオンメッセージ
と、各キー(各ノート)からの離鍵(ノートオフ)を表
現するノートオフメッセージである。ノートオンメッセ
ージやノートオフメッセージは、ノートオンを示すステ
ータスバイト(9nH:以下「H」は16進(ヘキサ)
を示す。また、nは任意のチャンネル番号を示す。)や
ノートオフを示すステータスバイト(8nH)に続く2
バイトのデータバイトの計3バイトで構成される。この
場合の最初のデータバイトは、例えばキーボード3の各
キー31に数値を割り当てたノート番号(ノートナン
バ:note no.)を示し、次のデータバイトは、どのくら
いの早さで押鍵(ノートオン)または離鍵(ノートオ
フ)したか(すなわち間接的にその音量)を数値で表現
するベロシティ:velocity)を示している。
Representative voice messages include, for example, a note-on message expressing a key press (note-on) for each key (each note) of the keyboard 3 and a key release (a note) from each key (each note). Note-off message. The note-on message and the note-off message include a status byte indicating a note-on (9 nH; hereinafter, "H" indicates hexadecimal (hex)).
Is shown. N indicates an arbitrary channel number. 2) following the status byte (8nH) indicating note-off
It is composed of a total of three bytes of data bytes. In this case, the first data byte indicates, for example, a note number (note number: note no.) In which a numerical value is assigned to each key 31 of the keyboard 3, and the next data byte indicates how fast the key is pressed (note on). ) Or a key release (note off) (that is, indirectly, the volume) is represented by a numerical value.

【0069】一般的なシーケンサと同様に、電子楽器1
のシーケンサにおいても、音の長さを管理しているのが
ゲートタイム(あるいはデュレーション)と呼ばれるパ
ラメータであり、ノートオンからノートオフまでの時間
を示している。ここで、楽器音の時間経過に伴う変化
を、音の立ち上がり時間や減衰時間等のパラメータでモ
デル化した楽器音のエンベロープにおいて、基本となる
パラメータは、アタックタイム(A)、ディケイタイム
(D)、サスティンレベル(S)、リリースタイム
(R)のいわゆるADSRの4パラメータであるが、上
記のノートオフは、人が演奏するときの離鍵のタイミン
グと同様に、音のリリースタイムの開始タイミングを示
す。
As with a general sequencer, the electronic musical instrument 1
In this sequencer, the length of the sound is managed by a parameter called gate time (or duration), which indicates the time from note-on to note-off. Here, in the envelope of a musical instrument sound in which changes over time of the musical instrument sound are modeled by parameters such as a rise time and a decay time of the sound, basic parameters are an attack time (A) and a decay time (D). , Sustain level (S), and release time (R), which are the so-called ADSR parameters. Note that the note-off described above sets the start time of the sound release time in the same manner as the key release timing when a person plays. Show.

【0070】このため、人が演奏するときに音のリリー
スを考慮して早めに離鍵するのと同様に、ゲートタイム
は、通常、音符の長さより短く設定される。ただし、ゲ
ートタイムを音符の長さの何%程度にすべきかは、音色
にもよるし、曲の流れや雰囲気、テンポによっても変化
し、また、ゲートタイムを短めにして、リバーブ等のエ
フェクトでリリースを補うことにより、同時発音数を稼
ぐこともできる。
For this reason, the gate time is usually set to be shorter than the length of a note, similarly to the case where a key is released earlier in consideration of sound release when a person plays. However, what percentage of the note length the gate time should be depends on the tone, the flow of the song, the mood, and the tempo. By supplementing the release, you can earn more polyphony.

【0071】ところで、MIDI用のシーケンサは、演
奏情報をシーケンシャル(順番)に送信するものであ
る。このため、シーケンスデータは、演奏情報とその情
報をいつ実行するかという時間情報を含んでいる。そし
て、その時間管理の方法には、大別して、絶対時間(時
刻)系と相対時間系の2つの方法がある。楽譜は、演奏
テンポによって同じ4分音符でも実際の演奏時間が違う
ように、相対時間系の表記であるため、演奏にはテンポ
変化による表現を行うなど、相対時間系の方が感覚的に
マッチしている。このため、電子楽器1においても、基
本的には、相対時間系を用いている。
The MIDI sequencer transmits performance information sequentially (in order). For this reason, the sequence data includes performance information and time information indicating when the information is to be executed. The time management methods are roughly classified into two methods: an absolute time (time) system and a relative time system. The musical score is expressed in relative time system so that the actual performance time differs even for the same quarter note depending on the performance tempo. are doing. For this reason, the electronic musical instrument 1 basically uses a relative time system.

【0072】相対時間系のシーケンサにおける時間管理
では、音符の位置(ロケーション)やゲートタイムを示
すために、1拍(4分音符)の長さを細かな単位で表現
する。この最小単位を、一般にクロック(clock )やテ
ィック(ticks )等と呼び、シーケンサの精度を表す分
解能(タイムベース)は、1拍(4分音符)の長さに相
当するクロック数(ティック数)により表される(図4
参照)。なお、情報処理の分野では、上記とは異なる意
味で「クロック」という語を使用し、図1で前述の説明
においても、それと同じ意味で(すなわち「基準クロッ
ク」等と)使用しているので、本実施形態では、タイム
ベースの単位には「ティック」の語を用いて、「クロッ
ク」の語と区別して用いる。
In time management in a relative time sequencer, the length of one beat (quarter note) is expressed in fine units in order to indicate the note position (location) and gate time. The minimum unit is generally called a clock or a tick, and the resolution (time base) representing the accuracy of the sequencer is the number of clocks (the number of ticks) corresponding to the length of one beat (quarter note). (FIG. 4)
reference). In the field of information processing, the word “clock” is used in a different meaning from the above, and in the above description of FIG. 1, the same meaning (ie, “reference clock” and the like) is used. In the present embodiment, the word “tick” is used as a time base unit to distinguish it from the word “clock”.

【0073】電子楽器1では、タイムベース=384の
精度でゲートタイムを管理するため、前述のように、第
1ティックタイマ(T1T)152と、第2ティックタ
イマ(T2T)153と、を備えている。T1T152
は、タイムベース=384のティック信号(第1ティッ
ク信号)を発生する下位側のカウンタと、その桁上がり
信号(すなわち第1ティック信号)により、第1ティッ
ク信号を8回までカウント(3ビット)して、その桁上
がり信号を第1ステップ信号として発生させ、さらに、
MIDI通信時の同期信号(以下「MIDIクロッ
ク」:タイムベース=24のティックに相当するタイミ
ングクロック(F8H)を示すリアルタイムメッセー
ジ)を発生させる(1ビット)上位側のカウンタ(計4
ビット)と、を有している。このため、第1ステップ信
号は、いわば分解能(タイムベース)=48の場合のテ
ィック信号に相当する(図4参照)。また、MIDI規
格のタイムベースは24となっている。
The electronic musical instrument 1 has the first tick timer (T1T) 152 and the second tick timer (T2T) 153 as described above in order to manage the gate time with an accuracy of time base = 384. I have. T1T152
Counts the first tick signal up to eight times (3 bits) by a lower counter that generates a tick signal (first tick signal) of time base = 384 and a carry signal (that is, the first tick signal). Then, the carry signal is generated as a first step signal.
Upper counter (1 bit) that generates a synchronization signal (hereinafter “MIDI clock”: a real-time message indicating a timing clock (F8H) corresponding to 24 ticks of time base) during MIDI communication (4 bits in total)
Bit). Therefore, the first step signal corresponds to a tick signal in a case where the resolution (time base) is 48 (see FIG. 4). The time base of the MIDI standard is 24.

【0074】この第1ステップ信号は、音符ロケーショ
ン等の管理をし易いように設けられたものであり、演奏
開始時等にRAM13内に領域を確保したステップカウ
ンタ(STPC:図9(b)参照:もちろんハードウェ
アで構成することもできる)156のカウントアップ信
号として用いる。このカウント値が、演奏開始等からそ
の時点までのステップ数(図9(b)では「current st
ep」と表記:以下、「ステップタイム」という。)を示
し、このステップタイムが、音符ロケーション等の管理
のための単位となる。
The first step signal is provided so as to facilitate the management of the note location and the like. A step counter (STPC: see FIG. 9B) which secures an area in the RAM 13 at the start of a performance or the like. : Of course, it can be configured by hardware). This count value is equal to the number of steps from the start of the performance to the time (in FIG. 9B, “current st
Notation "ep": Hereinafter, "step time". ), And this step time is a unit for managing note locations and the like.

【0075】例えば、拍子が4/4の1小節で、最初の
4分音符の位置がステップタイム=0の場合、2番目の
4分音符の位置はステップタイム=48、3番目の位置
はステップタイム=96、4番目の位置はステップタイ
ム=144として、表現できる。すなわち、ステップカ
ウンタ(STPC)156をリセットしてから演奏を開
始し、そのカウント値(ステップタイム)=0、48、
96、144のタイミングで、それぞれ1番目、2番
目、3番目、4番目の4分音符に対応するノートオンを
行うことになる。
For example, if the time signature is one bar of 4/4 and the position of the first quarter note is step time = 0, the position of the second quarter note is step time = 48, and the third position is step time. Time = 96, the fourth position can be expressed as step time = 144. That is, the performance is started after the step counter (STPC) 156 is reset, and the count value (step time) = 0, 48,
At timings 96 and 144, note-on corresponding to the first, second, third, and fourth quarter notes, respectively, is performed.

【0076】ここで、前述のように、ティックは相対時
間系の単位なので、演奏のテンポにより、1ティックに
要する時間(絶対時間)が変化する。例えば図5に示す
ように、テンポ=120の場合、タイムベース=384
の第1ティック信号の周期は60(秒)/(120×3
94)から約1.30msであり、第1ステップ(タイ
ムベース=48のティック相当)信号の周期はその8倍
の約10.4msとなる。これに対し、テンポ=60の
場合、第1ティック信号の周期は約2.60ms、第1
ステップ信号の周期は約20.8ms、テンポ=180
の場合、第1ティック信号の周期は約0.87ms、第
1ステップ信号の周期は約7.0ms、などのように、
変化する。
Here, as described above, the tick is a unit of a relative time system, so that the time required for one tick (absolute time) changes according to the performance tempo. For example, as shown in FIG. 5, when tempo = 120, time base = 384
Of the first tick signal is 60 (seconds) / (120 × 3
94), it is about 1.30 ms, and the cycle of the first step (time base = equivalent to 48 ticks) signal is about 10.4 ms, which is eight times as long. On the other hand, when tempo = 60, the cycle of the first tick signal is about 2.60 ms,
The cycle of the step signal is about 20.8 ms, tempo = 180
, The period of the first tick signal is about 0.87 ms, the period of the first step signal is about 7.0 ms, and so on.
Change.

【0077】上記のテンポを変化させた場合のティック
信号の周期(変化)を求めるには、図5で上述のよう
に、テーブルとして用意しておいてそれを参照しても良
いし、上記の60(秒)/(120×394)のよう
に、60/(テンポ×タイムベース)と同様の関係式を
用意しその式から求めても良い。また、テンポの関数や
配列等で規定しても良い。あるいは例えばテンポ=40
〜60のときには2.6ms、80〜140では1.3
ms、160以上は1.0ms等のように、所定範囲の
複数のグループに分けて定めることもできる。
In order to determine the cycle (change) of the tick signal when the tempo is changed, a table may be prepared and referred to as described above with reference to FIG. A relational expression similar to 60 / (tempo × timebase), such as 60 (seconds) / (120 × 394), may be prepared and determined from the expression. Also, it may be defined by a tempo function or an array. Or, for example, tempo = 40
2.6ms for ~ 60, 1.3 for 80 ~ 140
ms and 160 or more may be determined in a plurality of groups within a predetermined range, such as 1.0 ms.

【0078】そこで、電子楽器1では、テンポとティッ
クの周期との関係において、第1ティック信号について
は、従来と同様(テンポに反比例)とし、第2ティック
信号として、ユーザあるいは電子楽器1の設計者が自由
(任意)に周期を設定できるようにしている。
Therefore, in the electronic musical instrument 1, the first tick signal is the same as the conventional one (inversely proportional to the tempo) and the user or the electronic musical instrument 1 is designed as the second tick signal in relation to the tempo and the cycle of the tick. Can set the cycle freely (arbitrarily).

【0079】この場合、例えば図5の第2ティック信号
の周期の欄のに示すように、テンポ≦60では、一律
2.5ms、テンポ≧160では、一律1.00msの
ように、テンポの変化に対する第2ティック信号の周期
の上限値や下限値を定めることができる。また、第1テ
ィック信号の周期に所定の比率を乗じて、テンポの変化
に対する第2ティック信号の周期の変化を小さくしたり
(参照)、逆に大きくしたり(参照)、全テンポに
対して一律としたり(参照)、などの種々の設定がで
きる。
In this case, for example, as shown in the column of the cycle of the second tick signal in FIG. 5, when the tempo ≦ 60, the tempo changes uniformly, such as 2.5 ms, and when the tempo ≧ 160, the tempo changes uniformly, such as 1.00 ms. , The upper limit value and the lower limit value of the cycle of the second tick signal can be determined. Further, the cycle of the first tick signal is multiplied by a predetermined ratio to reduce (see) the change in the cycle of the second tick signal with respect to the change in the tempo, or to increase (see) the reverse. Various settings such as uniform (reference) can be made.

【0080】上述のように、電子楽器1では、設定され
たテンポに対する周期を任意設定可能な第2ティックタ
イマ(T2T)153を備えている。T2T153は、
任意に設定された周期の第2ティック信号を発生する下
位側のカウンタと、その桁上がり信号(すなわち第2テ
ィック信号)により、第2ティック信号を8回までカウ
ントして、その桁上がり信号を第2ステップ信号(+対
応するMIDIクロック)として発生する上位側(3+
1=4ビット)のカウンタと、を有している。この第2
ステップ信号は、例えばゲートタイムの管理をも、ティ
ックの単位でなく、ステップの単位で管理する場合等に
利用できる。
As described above, the electronic musical instrument 1 is provided with the second tick timer (T2T) 153 capable of arbitrarily setting the cycle with respect to the set tempo. T2T153 is
The second tick signal is counted up to eight times by the lower counter that generates the second tick signal of an arbitrarily set period and the carry signal (ie, the second tick signal), and the carry signal is counted. Upper side (3+) generated as a second step signal (+ corresponding MIDI clock)
1 = 4 bits). This second
The step signal can be used, for example, when managing the gate time not in units of ticks but in units of steps.

【0081】ここで、前述のように、実時間タイマ(T
IM)151は、MTCやSMPTEのタイムコードと
同様に、時/分/秒/フレームの形式で計時ができる。
また、この場合のフレームは、例えば1/25(秒:
s)、すなわち40msとしている。電子楽器1では、
CLK16において、基準クロックを分周して1μs周
期の分周クロック信号を生成して、カウンタ部150に
分配している。TIM151の最下位側のカウンタ(1
6ビットで可)は、それを4万回カウント(分周)し
て、フレームカウントトリガ信号(フレームトリガ信
号)として発生する。もちろん、1μsよりもっと長い
周期(例えば10μs)の分周クロック信号等に基づい
ても同様のことはできる。
Here, as described above, the real time timer (T
The IM) 151 can measure time in the format of hour / minute / second / frame, similarly to the time code of MTC or SMPTE.
The frame in this case is, for example, 1/25 (second:
s), that is, 40 ms. In electronic musical instrument 1,
At CLK 16, the reference clock is frequency-divided to generate a frequency-divided clock signal having a period of 1 μs, which is distributed to the counter unit 150. The lowest counter of the TIM 151 (1
6 bits) are counted (divided) 40,000 times and generated as a frame count trigger signal (frame trigger signal). Of course, the same can be done based on a frequency-divided clock signal having a period longer than 1 μs (for example, 10 μs).

【0082】そして、このフレームトリガ信号を桁上が
り(キャリ)信号として入力して、TIM151のうち
のフレームカウント担当のカウンタ部(フレームカウン
タ)によりフレーム数をカウントし、25フレームまで
カウントしたときの桁上がり(キャリ)信号を、秒カウ
ントトリガ信号(秒トリガ信号)として発生する。この
秒トリガ信号を、TIM151のうちの秒カウント担当
部(秒カウンタ)に入力し、60秒までカウントしたキ
ャリ信号を、分カウントトリガ信号(分トリガ信号)と
して発生する。同様に、この分トリガ信号により分カウ
ント担当部(分カウンタ)で60分までカウントし、時
トリガ信号を生成し、これにより、時カウント担当部
(時カウンタ)で24時までカウントすることにより、
時/分/秒/フレームの全ての情報を生成できる。
The frame trigger signal is input as a carry signal, and the number of frames is counted by the counter section (frame counter) of the TIM 151 which is in charge of frame counting. A rising (carry) signal is generated as a second count trigger signal (second trigger signal). The second trigger signal is input to a second counting section (second counter) of the TIM 151, and a carry signal counted up to 60 seconds is generated as a minute count trigger signal (minute trigger signal). Similarly, by the minute trigger signal, the minute counting section (minute counter) counts up to 60 minutes to generate an hour trigger signal, and the hour counting section (hour counter) counts up to 24:00.
All information of hour / minute / second / frame can be generated.

【0083】また、テンポ120の場合、例えばT1T
152に10進の「1302」に相当する値をセットし
て、上記の1μsの分周クロック信号によりカウントし
て、1302μs(約1.30ms)に1回の第1ティ
ック信号を生成するようにすれば良い。図5で前述の他
のテンポの場合の第1ティック信号についても同様であ
る。また、T2T153についても同様にすれば、各種
の任意設定値の第2ティック信号を生成できる。
In the case of the tempo 120, for example, T1T
A value corresponding to decimal “1302” is set in 152 and counted by the above-mentioned 1 μs frequency-divided clock signal to generate a first tick signal once every 1302 μs (about 1.30 ms). Just do it. The same applies to the first tick signal in the case of the other tempo described above with reference to FIG. Further, the same applies to T2T153, whereby a second tick signal having various arbitrary set values can be generated.

【0084】前述のように、電子楽器1では基本的には
相対時間系を用いているので、音符ロケーションやゲー
トタイム等については、ステップ数やティック数に基づ
いて管理する。この場合、実際に演奏(play)等をする
ときには、それと並行してTIM151により絶対時刻
を計測して、ディスプレイ4に表示すれば、例えば連続
する曲と曲の区切りや、曲の途中の好みの部分の時刻を
知ることができる。ただし、次回、早送り(FF)や巻
戻し(REW)によって、何曲目の何小節目の何拍目等
でなく、絶対時間系を参考に所望の部分の頭出しをする
ためには、相対時間系と関連づけて時刻の表示等を行う
必要がある。
As described above, since the electronic musical instrument 1 basically uses a relative time system, note locations, gate times, and the like are managed based on the number of steps and the number of ticks. In this case, when actually performing a play or the like, the absolute time is measured by the TIM 151 in parallel with the play and displayed on the display 4. You can know the time of the part. However, in order to find the beginning of a desired portion by referring to the absolute time system, not the number of the song, the measure, the beat, etc., by the fast forward (FF) or rewind (REW) next time, the relative time is required. It is necessary to display the time in association with the system.

【0085】このため、電子楽器1では、相対時間系の
ステップ数等から逆算して絶対時間系の時刻を得られる
ようにしている。前述のように、電子楽器1のタイムベ
ース=384は、4分音符を第1ティック信号のティッ
ク数で示したものであり、テンポは、1分間の4分音符
の数で表されているので、第1ティック信号の周期×タ
イムベース×テンポ=1分となる。このため、1秒=
(タイムベース/60)×テンポ×(第1ティック信号
の周期)=(((4分音符のステップ数)×8)/6
0)×テンポ×(第1ティック信号の周期)=((4分
音符のステップ数)/60)×テンポ×(8×(第1テ
ィック信号の周期))=((4分音符のステップ数)/
60)×テンポ×(第1ステップ信号の周期)となる。
For this reason, in the electronic musical instrument 1, the time in the absolute time system can be obtained by performing an inverse calculation from the number of steps in the relative time system. As described above, the time base = 384 of the electronic musical instrument 1 indicates a quarter note by the number of ticks of the first tick signal, and the tempo is represented by the number of quarter notes in one minute. , The period of the first tick signal × time base × tempo = 1 minute. Therefore, 1 second =
(Time base / 60) × tempo × (cycle of first tick signal) = (((number of quarter note steps) × 8) / 6
0) × tempo × (cycle of first tick signal) = ((number of quarter note steps) / 60) × tempo × (8 × (cycle of first tick signal)) = ((number of steps of quarter note) ) /
60) × tempo × (cycle of first step signal).

【0086】このうち、第1ティック信号の周期や第1
ステップ信号の周期は、図5で前述のように、テンポに
応じて定めることができる。また、タイムベース/60
=384/60=6.4や、(4分音符のステップ数)
/60=48/60=0.8は、固定値なので、1秒=
6.4×テンポ×(第1ティック信号の周期)=0.8
×テンポ×(第1ステップ信号の周期)となる。このた
め、例えば図6に示すように、1秒相当の第1ティック
数や第1ステップ数(ここでは、1秒相当の第1ステッ
プ数とし、以下「SEC」と略す。)を、各テンポに応
じて定めることができる。したがって、所望の部分が、
何曲目の何小節目の何拍目かなどの相対時間系(ステッ
プタイム)で求められれば、それに基づいて、対応する
絶対時間系の秒数等を求めることができる。
Of these, the period of the first tick signal and the first tick signal
The cycle of the step signal can be determined according to the tempo, as described above with reference to FIG. Time base / 60
= 384/60 = 6.4 or (number of quarter note steps)
Since /60=48/60=0.8 is a fixed value, 1 second =
6.4 × tempo × (cycle of first tick signal) = 0.8
X tempo x (cycle of first step signal). For this reason, as shown in FIG. 6, for example, the first tick number and the first step number corresponding to one second (here, the first step number corresponding to one second, hereinafter abbreviated as “SEC”) are set to each tempo. Can be determined according to Therefore, the desired part is
If it is obtained in a relative time system (step time) such as the number of the song, the bar of the song, and the number of the beat, the number of seconds in the corresponding absolute time system can be obtained based on the obtained time.

【0087】なお、このため、TIM151の秒カウン
タとフレームカウンタには、ソフト的にプログラムから
アクセス(セット/リセット/カウントの指示等)でき
るように構成されている。また、図6に示すように、フ
レームについても定めることができるので、シーケンサ
やコンピュータ等が、プログラム等に従って絶対時間に
基づいて自動頭出しを行う場合等でも対応できるが、人
間が表示により確認して頭出しを行うには、通常、秒単
位程度までで十分なので、以下では、秒単位までとして
説明する。
For this reason, the second counter and the frame counter of the TIM 151 are configured so that they can be accessed from a software program (eg, set / reset / count instructions). Also, as shown in FIG. 6, since the frame can be determined, it is possible to cope with a case where a sequencer or a computer performs automatic cueing based on an absolute time according to a program or the like. In order to perform the cueing, it is usually sufficient that the time is on the order of seconds.

【0088】電子楽器1では、例えば図7に示すよう
に、通常の演奏(play)の場合か、早送り(FF)や巻
戻し(REW)の場合か、に拘わらず、途中のテンポ変
更を検出したときには、テンポ変更割込を発生させて、
テンポ(Tempo )変更処理(S10)を起動する。この
処理(S10)では、まず、第1ティック信号の周期
(T1T152のカウント値)を更新し(S11)、続
いて、第2ティック信号の周期(T2T152のカウン
ト値)を更新し(S12)、秒相当のステップ数(SE
C)を更新して、終了する(S13)。これにより、変
更後のテンポに応じて、新たに設定(更新)された周期
で、第1ティック信号、第1ステップ信号、第2ティッ
ク信号、第2ステップ信号等を発生する。また、秒相当
のステップ数(SEC)を更新して、時刻算出処理の準
備がされる。
In the electronic musical instrument 1, for example, as shown in FIG. 7, a tempo change in the middle is detected irrespective of a normal play (play), fast forward (FF) or rewind (REW). A tempo change interrupt is generated,
The tempo change processing (S10) is started. In this process (S10), first, the cycle (count value of T1T152) of the first tick signal is updated (S11), and subsequently, the cycle (count value of T2T152) of the second tick signal is updated (S12). Number of steps equivalent to seconds (SE
C) is updated, and the process ends (S13). As a result, the first tick signal, the first step signal, the second tick signal, the second step signal, and the like are generated at the newly set (updated) cycle according to the changed tempo. In addition, the number of steps (SEC) equivalent to seconds is updated, and the time calculation process is prepared.

【0089】例えば図8に示すように、サブルーチン等
としてステップ加算処理(S20)が起動されると、ま
ず、前回の時刻表示時の値(MTCC(下記)の値)か
らのステップ数の加算分(加算ステップ)を変数ADC
に代入し(S21)、その分(ADC)をステップカウ
ンタ(STPC)156に加算し(S22)、フレーム
カウンタに加算し(S23)、その値が秒相当のステッ
プ数(SEC)以上か否かを判別する(S24)。フレ
ームカウンタの値がSEC以上のときには(S24:Y
es)、秒カウンタをインクリメント(1だけ加算:以
下、インクリメント(+1)を「++」と示す。)し
(S25)、フレームカウンタの値からSEC分減算し
(S26)、再度、フレームカウンタの値がSEC以上
か否かを判別する(S24)。フレームカウンタの値が
SEC未満になると(S24:No)、その時点の時刻
(時/分/秒)を、例えば現在の小節や拍とともに、デ
ィスプレイ4に表示して(S27)、処理(S20)を
終了する(S28)。
For example, as shown in FIG. 8, when the step addition process (S20) is started as a subroutine or the like, first, an addition of the number of steps from the previous time display value (MTCC (described below)) is performed. (Addition step) with variable ADC
(S21), add the corresponding (ADC) to the step counter (STPC) 156 (S22), add it to the frame counter (S23), and determine whether the value is equal to or greater than the number of steps corresponding to seconds (SEC). Is determined (S24). When the value of the frame counter is equal to or more than SEC (S24: Y
es), the second counter is incremented (added by 1; hereinafter, the increment (+1) is indicated as "++") (S25), the SEC is subtracted from the value of the frame counter (S26), and the value of the frame counter is again calculated. Is greater than or equal to SEC (S24). When the value of the frame counter becomes less than SEC (S24: No), the time (hour / minute / second) at that time is displayed on the display 4 together with, for example, the current bar and beat (S27), and the process (S20) Is completed (S28).

【0090】なお、ディスプレイ4に表示した時刻は、
前回の時刻表示時の値として、RAM13内にMIDI
タイムコードカウンタ(MTCC:図9(b)参照)1
57用の領域を確保してそこに格納(記憶)し、次回の
上記処理(S20)等で使用される。また、本実施形態
では、秒単位以上の分や時間等のカウントは、前述のT
IM151で実行されるので、ここでは、秒カウンタへ
の桁上がり(キャリ)信号の入力のみ操作すればよい。
もちろん、プログラムにおいて、上記のフローに加え
て、秒が60以上になったか否かを判別して分カウンタ
に桁上がりをさせたり、さらに分カウンタが60以上か
否かを判別して時カウンタに桁上がりをさせたり、同様
のことを行っても良い。また、前述の説明では、通常の
演奏(play)では、ハード(論理回路)として用意した
TIM151を使用して絶対時間系の時刻を測定できる
としたが、通常の演奏(play)の場合にも、上記の処理
(S20)を利用するようにしても良い。
The time displayed on the display 4 is
MIDI value is stored in RAM 13 as the value at the time of the previous time display.
Time code counter (MTCC: see FIG. 9B) 1
An area for 57 is secured and stored (stored) there, and used in the next process (S20) and the like. Further, in the present embodiment, the count of minutes, hours, and the like in units of seconds or more is performed by the aforementioned T
Since it is executed by the IM 151, here, it is sufficient to operate only the input of a carry signal to the second counter.
Of course, in the program, in addition to the above flow, it is determined whether or not the second has reached 60 or more, and the minute counter carries a carry. The carry may be carried out or the same may be performed. In the above description, in the normal play, the time in the absolute time system can be measured using the TIM 151 prepared as hardware (logic circuit). However, in the case of the normal play, too. Alternatively, the above processing (S20) may be used.

【0091】次に、電子楽器1のシーケンサで扱う演奏
データ、すなわちシーケンスデータは、タイミング信号
+MIDIメッセージの情報を示すデータと同等のもの
である。一方、スタンダードMIDIファイル(SM
F)形式のシーケンスデータは、基本的にはデルタタイ
ム(タイミング信号)+MIDIメッセージの情報を示
すデータなので、以下で説明する電子楽器1のシーケン
スデータとSMF形式のシーケンスデータとは、容易に
相互変換ができる。
Next, performance data handled by the sequencer of the electronic musical instrument 1, that is, sequence data, is equivalent to data indicating information of a timing signal + MIDI message. On the other hand, a standard MIDI file (SM
Since the sequence data in the F) format is basically data indicating delta time (timing signal) + MIDI message information, the sequence data of the electronic musical instrument 1 described below and the sequence data in the SMF format can be easily converted to each other. Can be.

【0092】MIDIメッセージのステータスバイト
は、8nH〜FFHの1バイトであり、このうちのF8
H〜FFHがリアルタイムメッセージを示す。リアルタ
イムメッセージのうちのFFHは、MIDI規格上はシ
ステムリセットであるが、種々の問題があって、実際に
は使われていない。このため、SMF形式においては、
演奏情報以外のメタイベントとして使用され、電子楽器
1においても、SMF形式に対応できるようにしてい
る。
The status byte of the MIDI message is one byte of 8nH to FFH.
H to FFH indicate real-time messages. The FFH of the real-time message is a system reset according to the MIDI standard, but is not actually used due to various problems. Therefore, in the SMF format,
It is used as a meta event other than the performance information, and the electronic musical instrument 1 can also support the SMF format.

【0093】SMF形式のメタイベントのうち一般的に
使用頻度の高いのは、セットテンポ(イベントタイプ:
51H)である。電子楽器1では、パネル5のテンポ調
整ダイヤル(テンポ変更スイッチ)51a(図2参照)
を使用することにより、演奏前後ばかりでなく、演奏中
においてもテンポを増減できるようになっている。この
ため、図7で前述のテンポ変更割込の要因には、上記の
セットテンポのメタイベントと、テンポ変更スイッチ5
1aの操作によるものが含まれる。また、この他、SM
F形式のメタイベントでは、主に表示用に、調(59
H)や拍子(58H)が入れられる。また、コピーライ
ト表示(02H)、トラック名(03H)、楽器名(0
4H)、歌詞(05H)などは、表示用のテキストを入
れる場合等に使用される。
Among the SMF-format meta-events, the one that is generally used frequently is the set tempo (event type:
51H). In the electronic musical instrument 1, the tempo adjustment dial (tempo change switch) 51a of the panel 5 (see FIG. 2)
By using, the tempo can be increased or decreased not only before and after the performance but also during the performance. Therefore, the causes of the tempo change interrupt described above with reference to FIG.
1a is included. In addition, SM
In the meta-event of the F format, the key (59) is mainly used for display.
H) and time signature (58H). In addition, copyright display (02H), track name (03H), instrument name (0H)
4H), lyrics (05H), and the like are used when text for display is inserted.

【0094】MIDIのリアルタイムメッセージのうち
のFEHは、アクティブセンシングであり、MIDI通
信時に、ノートオン後のMIDIケーブルの断線等によ
りノートオフ不可となることを回避するために、電子楽
器1でも、採用している。また、各発音データ(ノート
データ:note data )は、図9(a)に示すように、M
IDI規格(MIDIメッセージ)に合わせてノートオ
ンの対象を示すノートナンバ(note no.)と、ベロシテ
ィ(velocity)を含む他、相対時間系の時間管理のため
にノートオンのタイミングを示すステップタイム(step
time )と、ゲートタイム(gate time )を含んでい
る。
The FEH in the MIDI real-time message is active sensing, and is also used in the electronic musical instrument 1 in order to avoid a situation where note-off cannot be made due to disconnection of the MIDI cable after note-on during MIDI communication. are doing. As shown in FIG. 9A, each sound data (note data) is M
In addition to the note number (note no.) Indicating the target of note-on according to the IDI standard (MIDI message) and the velocity (velocity), the step time (note time) indicating the note-on timing for time management in a relative time system step
time) and a gate time.

【0095】図9(a)のスタートバー(start bar
)、コンティニューバー(continue bar)、エンドバ
ー(end bar )は、それぞれ、MIDIのリアルタイム
メッセージのスタート(FAH)、コンティニュー(F
BH)、ストップ(FCH)に相当するシーケンスデー
タである。
The start bar (start bar) shown in FIG.
), A continuation bar (continue bar), and an end bar (end bar) are a start (FAH) and a continuation (FH) of a MIDI real-time message, respectively.
BH) and stop (FCH).

【0096】例えば電子楽器1がMIDI通信のマスタ
ー側で、図示の+が演奏データの場合に、ユーザに
より演奏(play)ボタン(スタートスイッチ)51b
(図2参照)が押され、演奏の途中で一時停止(pause)
ボタン(ポーズスイッチ)51cが押されて、一時停止
となり、再度、ポーズスイッチ51cが押されて、一時
停止時点から演奏が再開され、最後に終了(stop)ボタ
ン(ストップスイッチ)51dが押され、あるいは曲の
最後を検出して、演奏を終了したときの、シーケンスデ
ータに相当する。または、逆に電子楽器1がMIDI通
信のスレーブ側で、マスター側の機器で上記と同様の動
作をしたときに、電子楽器1にて受信して認識するシー
ケンスデータに相当する。または、上記のいずれかにお
ける演奏動作を、再現可能なように記録しておいた場合
の、その記録されたシーケンスデータに相当する。
For example, when the electronic musical instrument 1 is a master side of the MIDI communication and + in the figure is performance data, a user operates a play button (start switch) 51b.
(See Figure 2) is pressed and paused during the performance (pause)
The button (pause switch) 51c is pressed to pause, the pause switch 51c is pressed again, the performance is resumed from the time of the pause, and finally the stop button (stop switch) 51d is pressed, Or, it corresponds to the sequence data when the end of the music is detected and the performance is ended. Conversely, when the electronic musical instrument 1 performs the same operation as described above on the master side device on the slave side of the MIDI communication, the electronic musical instrument 1 corresponds to the sequence data received and recognized. Alternatively, when the performance operation in any of the above is recorded so as to be reproducible, it corresponds to the recorded sequence data.

【0097】電子楽器1がマスター側の場合、通信開始
時点から(例えばT1T152側の)MIDIクロック
(リアルタイムメッセージのタイミングクロック(F8
H))を定期的に出力し、自己における動作を図9
(a)のようにシーケンスデータとして記録するととも
に、スタートスイッチ51bの操作に従って、スタート
バー(start bar )に対応してスタートメッセージ(F
AH)を出力し、続いて、の演奏データ(ノートデー
タ群)に対応するノートオン(8nH)/ノートオフ
(9nH)を順次出力する。続いて、ポーズスイッチ5
1cの操作に従って、コンティニューバーを記録すると
ともに、一旦、ストップメッセージ(FCH)を出力す
る。
When the electronic musical instrument 1 is on the master side, a MIDI clock (for example, on the T1T152 side) (a timing clock (F8
H)) is output periodically, and its own operation is shown in FIG.
As shown in (a), the data is recorded as sequence data, and a start message (F) corresponding to a start bar (start bar) is operated according to the operation of the start switch 51b.
AH), and successively outputs note-on (8 nH) / note-off (9 nH) corresponding to the performance data (note data group). Next, pause switch 5
According to the operation of 1c, the continuation bar is recorded and a stop message (FCH) is output once.

【0098】次に、再度、ポーズスイッチ51cの操作
があったときには、まず、コモンメッセージのソングポ
ジションポインタ(F2H)により、再開する演奏のス
タートポイントを出力してから、コンティニューメッセ
ージ(FBH)を出力する。
Next, when the pause switch 51c is operated again, first, the start point of the performance to be resumed is output by the song position pointer (F2H) of the common message, and then the continuation message (FBH) is output. I do.

【0099】電子楽器1では、前述のように、音符ロケ
ーションをタイムベース=48に相当する第1ステップ
信号のステップ数により、ステップタイムとして管理し
ている。この場合、ソングポジションポインタのMID
Iビートを表す式、すなわち、24(MIDIのタイム
ベース)×((1小節当たりの拍数)×(対象小節前の
小節数)+対象小節内の対象拍までの拍数)/6(MI
DIの16分音符の長さ:ティック数)のうちの、24
(MIDIのタイムベース)/6(MIDIの16分音
符の長さ)=4の項は、電子楽器1の48(ステップタ
イムのタイムベース)/12(16分音符のステップ
数)=4と一致する。このため、再開するロケーション
(図9(a)のの最初)のステップタイムを12(1
6分音符のステップ数)で割り(乗余はでないように1
6分音符の長さ単位の同期を取る)、その商をMIDI
ビートとして出力すれば良い。
In the electronic musical instrument 1, as described above, the note location is managed as the step time by the number of steps of the first step signal corresponding to the time base = 48. In this case, the MID of the song position pointer
An expression representing the I beat, ie, 24 (MIDI time base) × ((number of beats per measure) × (number of measures before target measure) + number of beats to target beat in target measure) / 6 (MI
Of the 16th note of DI: number of ticks)
The term of (MIDI time base) / 6 (MIDI 16th note length) = 4 matches 48 (step time base) / 12 (number of 16th note steps) = 4 of electronic musical instrument 1 I do. Therefore, the step time of the location to be restarted (the beginning of FIG. 9A) is set to 12 (1
Divide by the number of sixth note steps (1 so that there is no remainder)
Synchronize the length of a 6th note)
Output as beats.

【0100】次に、の演奏データ(ノートデータ群)
に対応するノートオン(8nH)/ノートオフ(9n
H)を順次出力する。続いて、ストップスイッチ51d
の操作に従って、エンドバーを記録するとともに、スト
ップメッセージ(FCH)を出力する。
Next, the performance data (note data group)
Note on (8nH) / Note off (9nH)
H) are sequentially output. Then, the stop switch 51d
The end bar is recorded and a stop message (FCH) is output in accordance with the operation of (1).

【0101】次に、電子楽器1がスレーブ側の場合、マ
スター側からMIDIクロック(F8H)を定期的に入
力し、入力されたMIDIメッセージを図9(a)のシ
ーケンスデータに変換して記録するとともに、入力され
たMIDIクロックに同期させてそのシーケンスデータ
に従って演奏する。
Next, when the electronic musical instrument 1 is on the slave side, a MIDI clock (F8H) is periodically inputted from the master side, and the inputted MIDI message is converted into the sequence data shown in FIG. 9A and recorded. At the same time, it performs in accordance with the sequence data in synchronization with the input MIDI clock.

【0102】まず、スタートメッセージ(FAH)を入
力すると、スタートバーを記録するとともに、次のMI
DIクロック(F8H)の入力を待ち、そのMIDIク
ロックの入力に同期させて演奏を開始する。ノートオン
(8nH)/ノートオフ(9nH)を順次入力して、
の演奏データ(ノートデータ群)に変換して記録し、M
IDIクロックに同期させて、そのシーケンスデータ
(のノートデータ群)に従って演奏する。ストップメ
ッセージ(FCH)を入力すると、エンドバーを記録す
るとともに、次のMIDIクロックの入力に同期させて
演奏を終了する。
First, when a start message (FAH) is input, the start bar is recorded and the next MI is recorded.
Waiting for the input of the DI clock (F8H), the performance is started in synchronization with the input of the MIDI clock. Note On (8nH) / Note Off (9nH) are sequentially input,
Is converted into performance data (note data group) and recorded.
In synchronization with the IDI clock, the performance is performed in accordance with the sequence data (note data group thereof). When the stop message (FCH) is input, the end bar is recorded, and the performance is ended in synchronization with the input of the next MIDI clock.

【0103】次に、コモンメッセージのソングポジショ
ンポインタ(F2H)を入力すると、スタートのステッ
プタイムをソングポジションポインタのMIDIビート
から求め、次のメッセージを待つ。次のメッセージがス
タートメッセージの場合には、スタートバーを記録し
て、上記のの場合と同様に、演奏データをシーケンス
データとして記録する。
Next, when the song position pointer (F2H) of the common message is input, the start step time is obtained from the MIDI beat of the song position pointer, and the next message is awaited. If the next message is a start message, the start bar is recorded, and the performance data is recorded as sequence data, as in the case described above.

【0104】一方、次のメッセージがコンティニューメ
ッセージの場合には、コンティニューバーを記録する
が、その前に、ソングポジションポインタのMIDIビ
ートから得られたステップタイムが、前回終了時と同じ
ときには、前回最後のエンドバーを削除してから、コン
ティニューバーを記録し、次のMIDIクロックの入力
を待ち、そのMIDIクロックの入力に同期させて演奏
を開始する。ノートオン(8nH)/ノートオフ(9n
H)を順次入力して、の演奏データ(ノートデータ
群)に変換して記録し、MIDIクロックに同期させ
て、そのシーケンスデータ(のノートデータ群)に従
って演奏する。ストップメッセージ(FCH)を入力す
ると、エンドバーを記録するとともに、次のMIDIク
ロックの入力に同期させて演奏を終了する。
On the other hand, if the next message is a continuation message, a continuation bar is recorded. Before that, if the step time obtained from the MIDI beat of the song position pointer is the same as that at the end of the previous time, the last time is recorded. After the end bar is deleted, the continuation bar is recorded, the input of the next MIDI clock is waited, and the performance is started in synchronization with the input of the MIDI clock. Note On (8nH) / Note Off (9n
H) are sequentially input, converted into performance data (note data group), recorded, and played in accordance with the sequence data (note data group) in synchronization with the MIDI clock. When the stop message (FCH) is input, the end bar is recorded, and the performance is ended in synchronization with the input of the next MIDI clock.

【0105】次に、上記のいずれかにおける演奏動作を
再現する場合、そのシーケンスデータ、すなわち図9
(a)のシーケンスデータの最大ステップタイム(曲の
最後等に該当)を検索して、RAM13内に確保した変
数(MXSP)の領域に記憶する、この場合、FD等に
SMF形式で記録されていたシーケンスデータを変換し
て、図9(a)のように展開したものでも良い。また、
変換・展開の処理と並行して(すなわちシーケンスデー
タとして記録(変換・展開)するのと並行して)、演奏
を行うようにしても良い。また、シーケンスデータとし
て展開後に、電子楽器1をスレーブ側として、マスター
側からMIDIクロック(F8H)のみを定期的に入力
し、入力されたMIDIクロックに同期させて、そのシ
ーケンスデータに従って演奏させるようにもできる。
Next, when the performance operation in any of the above is reproduced, its sequence data, that is, FIG.
The maximum step time (corresponding to the end of a song, etc.) of the sequence data of (a) is searched and stored in the variable (MXSP) area secured in the RAM 13. The sequence data may be converted and expanded as shown in FIG. Also,
The performance may be performed in parallel with the conversion / development process (that is, in parallel with recording (conversion / development) as sequence data). After being developed as sequence data, the electronic musical instrument 1 is set as a slave side, and only the MIDI clock (F8H) is periodically input from the master side, synchronized with the input MIDI clock, and played according to the sequence data. Can also.

【0106】なお、電子楽器1のシーケンサでは、一般
のシーケンサと同様に、複数の曲を記憶でき、1つの曲
をソングとして管理しているので、上記のソングポジシ
ョンポインタ+コンティニュー以外に、コモンメッセー
ジのソングセレクト(F3H)により、曲を選択して、
スタートメッセージにより選択した曲の演奏を開始する
こともできる。また、上記の例では、スタートスイッチ
51bとストップスイッチ51d以外にポーズスイッチ
51cを設けたが、演奏を停止させるときのポーズスイ
ッチ51cの機能はストップスイッチ51dにて兼用
し、演奏を再開させるときのポーズスイッチ51cの機
能はスタートスイッチ51bにて兼用して、ポーズスイ
ッチ51c自体またはそのコンティニュー機能を削減す
ることもできるが、本実施形態では、理解を容易にする
ため、ポーズスイッチ51cにて上記のコンティニュー
の機能を行う。
In the sequencer of the electronic musical instrument 1, a plurality of songs can be stored and one song is managed as a song, like a general sequencer. Therefore, in addition to the above-mentioned song position pointer + continue, a common message Song selection (F3H), select a song,
The performance of the selected song can be started by the start message. In the above example, the pause switch 51c is provided in addition to the start switch 51b and the stop switch 51d. However, the function of the pause switch 51c for stopping the performance is shared by the stop switch 51d, and the function for restarting the performance. The function of the pause switch 51c can be shared by the start switch 51b to reduce the pause switch 51c itself or its continuation function. However, in the present embodiment, in order to facilitate understanding, the above-described pause switch 51c is used by the pause switch 51c. Perform the continue function.

【0107】また、電子楽器1では、上述したMIDI
メッセージ以外にも、例えばコモンメッセージのクオー
ターフレーム(F1H:MIDIタイムコード(MT
C))も、SMPTEと同様に絶対時間系との同期のた
めに使用している。また、コモンメッセージのうちのチ
ェーンリクエスト(F6H)は、アナログシンセサイザ
のチューニングを命ずるメッセージではあるが、現在で
は使用されていないので、電子楽器1内部の仕様として
ステータスバイト(F6H)+タイミング信号(ステッ
プタイム)+データとして、ユーザや設計者(デフォル
ト)が設定したレジストレーションデータ(音色、エフ
ェクト、リズムその他、自動演奏用のセッティングな
ど)を指定するシーケンスデータとして使用している。
In the electronic musical instrument 1, the MIDI
In addition to the message, for example, a common message quarter frame (F1H: MIDI time code (MT
C)) is used for synchronizing with the absolute time system similarly to SMPTE. The chain request (F6H) of the common message is a message for instructing tuning of the analog synthesizer, but is not used at present. Therefore, the status byte (F6H) + timing signal (step Time) + data is used as sequence data for specifying registration data (tone, effect, rhythm, etc., settings for automatic performance, etc.) set by a user or a designer (default).

【0108】このデータもタイミング信号を含むので、
図9(a)で前述のノートデータ群の任意のノートデー
タ間に挿入してノートデータとともに利用可能である。
なお、このレジストレーションデータの変更指示(以下
「レジスト切換指示」)データは、実行するとテンポ変
更を伴う可能性があるので、図7で前述のテンポ変更割
込の要因となる。
Since this data also includes a timing signal,
In FIG. 9A, the data can be inserted between arbitrary note data in the above-mentioned note data group and used together with the note data.
The registration data change instruction (hereinafter referred to as “registration switching instruction”) data may cause a tempo change when executed, and thus causes the tempo change interrupt described above with reference to FIG.

【0109】また、システムエクスクルーシブメッセー
ジ(F0HおよびF7H)も、タイミング信号(ステッ
プタイム)を付加して、メーカー専用エクスクルーシブ
メッセージの他、ユニバーサルエクスクルーシブにも対
応できるようにしている。また、前述のように、システ
ムリセット(FFH)も実際には使用されていないの
で、上記のレジスト切換指示(F6H)と同様に、かつ
SMF形式に合わせて、タイミング信号(ステップタイ
ム)を付加して(SMF互換の)メタイベントメッセー
ジとして使用している。これらのデータもタイミング信
号を含むので、ノートデータとともに、シーケンスデー
タとして利用できる。
The system exclusive messages (F0H and F7H) are also provided with a timing signal (step time) so as to be compatible with a universal exclusive message in addition to a manufacturer exclusive message. Further, as described above, since the system reset (FFH) is not actually used, a timing signal (step time) is added in the same manner as the above-described registration switching instruction (F6H) and according to the SMF format. (SMF compatible) as a meta event message. Since these data also include the timing signal, they can be used as sequence data together with the note data.

【0110】また、上述の例では、ボイスメッセージと
してノートオン(8nH)およびノートオフ(9nH)
から変換したノートデータについて説明したが、他のボ
イスメッセージについては、単にタイミング信号(ステ
ップタイム)を付加して、シーケンスデータとして利用
している。すなわち、ポリフォニックキープレッシャー
(AnH)、コントロールチェンジ&モードメッセージ
(BnH)、プログラムチェンジ(CnH)、チャンネ
ルプレッシャー(DnH)、ピッチベンドチェンジ(E
nH)も、タイミング信号(ステップタイム)を付加し
た形態で、シーケンスデータの一部にノートデータとと
もに利用できる。
In the above example, note-on (8 nH) and note-off (9 nH) are used as voice messages.
Although the description has been made of the note data converted from the above, other voice messages are simply used as sequence data by adding a timing signal (step time). That is, polyphonic key pressure (AnH), control change & mode message (BnH), program change (CnH), channel pressure (DnH), pitch bend change (E
nH) can be used as part of the sequence data together with the note data in a form to which a timing signal (step time) is added.

【0111】次に、シーケンスデータが記憶されている
状態で、電子楽器1がスレーブ側として設定されている
場合、マスターからのMIDIクロックによりシーケン
スデータに従った処理が開始される。その先頭アドレス
がスタートバーやコンティニューバーであれば、演奏開
始となる。この場合、MIDIクロック入力が演奏開始
のトリガとなる。また、シーケンスデータが記憶されて
いる状態で、電子楽器1がスレーブでなく、単独あるい
はマスター側の場合、スタートスイッチ51bまたは一
時停止後のポーズスイッチ51cの操作が、演奏開始の
トリガとなる。
Next, when the electronic musical instrument 1 is set as the slave side in a state where the sequence data is stored, the processing according to the sequence data is started by the MIDI clock from the master. If the start address is the start bar or the continuation bar, the performance starts. In this case, the MIDI clock input triggers the start of the performance. When the electronic musical instrument 1 is not a slave but is alone or on the master side in a state where the sequence data is stored, the operation of the start switch 51b or the pause switch 51c after the pause is used as a trigger for starting the performance.

【0112】これらの演奏開始のトリガにより演奏開始
割込が発生すると、例えば図10に示すように、演算開
始処理(S30)を起動する。この処理(S30)で
は、まず、(最大ステップタイム(MXSP)はセット
済みなので)CPU11が参照するアドレスカウンタ1
59に先頭アドレスをセットし(S31)、続いて、ス
テップカウンタ(STPC)156(および必要ならM
IDIタイムコードカウンタ(MTCC)157)をリ
セットし(S32)、次に、バーデータ処理を行って
(S33(S40))、処理(S30)を終了する(S
34)。
When a performance start interrupt is generated by these performance start triggers, a calculation start process (S30) is started, for example, as shown in FIG. In this processing (S30), first, since the maximum step time (MXSP) has been set, the address counter 1
The start address is set to 59 (S31), and then the step counter (STPC) 156 (and M if necessary)
The IDI time code counter (MTCC) 157) is reset (S32), bar data processing is performed (S33 (S40)), and the processing (S30) ends (S30).
34).

【0113】バーデータ処理(S40)では、図11に
示すように、まず、エンドバーか否かを判別して(S4
1)、エンドバーのときには(S41:Yes)、次回
演奏に備えて先頭アドレスをセットし(S42)、処理
(S40)を終了する(S47)。しかし、ここでは、
演奏開始直後であり、エンドバーではないので(S4
1:No)、次に、スタートバーか否かおよびコンティ
ニューバーか否かを判別し(S43、S44)、いずれ
かであれば(S43またはS44:Yes)、アドレス
をインクリメント(+1)して(S45)、処理(S4
0)を終了する(S47)。
In the bar data processing (S40), as shown in FIG. 11, first, it is determined whether or not the bar is an end bar (S4).
1) In the case of the end bar (S41: Yes), the start address is set in preparation for the next performance (S42), and the process (S40) ends (S47). But here,
Since it is just after the start of the performance and not the end bar (S4
1: No) Then, it is determined whether or not it is a start bar or a continuation bar (S43, S44). If it is either (S43 or S44: Yes), the address is incremented (+1) (S43, S44: Yes). S45), processing (S4)
0) is ended (S47).

【0114】なお、ここでは、バーデータとしてスター
トバー、コンティニューバー、エンドバーのみを規定し
ているので、いずれでもないときには(S44:N
o)、エラーとして例えばエラー表示等を行う(S4
6)。もちろん、他のバーデータがあり得るときには、
そのバーデータか否かの判別およびそれに応じた処理を
行うことになる。
Here, since only the start bar, the continuation bar, and the end bar are defined as the bar data, when none of them is specified (S44: N
o) For example, an error is displayed as an error (S4).
6). Of course, when other bar data is possible,
It is determined whether or not the bar data is present, and processing corresponding to the determination is performed.

【0115】次に、前述のT1T152から第1ステッ
プ信号が発生すると、電子楽器1では、第1ステップ信
号をステップ数による時間管理の基準としているので、
ステップ割込を発生する。ステップ割込が発生すると、
例えば図12に示すように、ステップ処理(S50)を
起動する。この処理(S50)では、まず、演奏中か否
かを判別して(S51)、演奏中でなければ(S51:
No)、そのまま処理(S50)を終了する(S5
8)。すなわち、これにより、演奏中以外では、単に待
機することになる。一方、演奏中のときには(S51:
Yes)、次に、その時点で行うイベントがあるか否か
を判別する(S52)。
Next, when the first step signal is generated from T1T152, the electronic musical instrument 1 uses the first step signal as a reference for time management based on the number of steps.
Generate a step interrupt. When a step interrupt occurs,
For example, as shown in FIG. 12, the step processing (S50) is started. In this process (S50), it is first determined whether or not a performance is being performed (S51).
No), the process (S50) ends as it is (S5).
8). In other words, this means that the user simply stands by except during the performance. On the other hand, when a performance is being performed (S51:
Yes) Next, it is determined whether or not there is an event to be performed at that time (S52).

【0116】電子楽器1では、前述のように、ノートデ
ータばかりでなく、バーデータ以外の全てのシーケンス
データに、ステップタイムによるタイミング指定が含ま
れている。このため、ここでのイベントの有無の判別
は、その時点のステップカウンタ(STPC)156の
値、すなわちその時点のステップタイム(カレントステ
ップ(current step))を処理開始タイミング(のステ
ップタイム)として指定するシーケンスデータがあるか
否かを判別する(S52)。なお、上述の各種のメッセ
ージデータは、シーケンスを進める上での所定のタイミ
ング(ステップタイム)に実行するイベントを示してい
るので、以下、ステップタイム指定を伴う各シーケンス
データ(メッセージデータ)を適宜「イベントデータ」
といい、その指定されたタイミングで実行される機能を
「イベント」という。
In the electronic musical instrument 1, as described above, not only the note data but also all the sequence data other than the bar data include the timing designation by the step time. For this reason, the presence or absence of an event is determined by specifying the value of the step counter (STPC) 156 at that time, that is, the current step time (current step) as (the step time of) the processing start timing. It is determined whether there is sequence data to be performed (S52). Since the above-described various message data indicate an event to be executed at a predetermined timing (step time) in advancing the sequence, each sequence data (message data) accompanied with the step time designation will be appropriately referred to as “message data”. Event Data "
The function executed at the specified timing is called an "event".

【0117】次に、その時点で行うイベントがあれば
(S52:Yes)、それらのイベント処理の全てを行
い(S53)、イベントがないときには(S52:N
o)、そのまま、次に、ステップカウンタ(STPC)
156のインクリメントを行う(S54)。なお、図1
0で前述のS32の処理でMTCCのリセットをしてお
くことにより、ここで(加算ステップ=1の状態で)、
図8のステップ加算処理(S20)を使用しても良い。
これにより、演奏中の絶対時間系(時/分/秒)の表示
ができる。
Next, if there is an event to be performed at that time (S52: Yes), all of those event processes are performed (S53), and if there is no event (S52: N).
o) As it is, then, a step counter (STPC)
156 is incremented (S54). FIG.
By resetting the MTCC at 0 in the above-described processing of S32, here (in the state of the addition step = 1),
The step addition processing (S20) of FIG. 8 may be used.
Thus, an absolute time system (hour / minute / second) during the performance can be displayed.

【0118】ステップカウンタ(STPC)156のイ
ンクリメントが終了すると(S54)、次に、マックス
ステップ(MXSP)か否か(すなわちSTPC=MX
SPか否か)を判別し(S55)、マックスステップで
なければ(S55:No)、そのまま処理(S50)を
終了する(S58)。一方、マックスステップのときに
は(S55:Yes)、予定のシーケンスを全て終了し
たことになるので、次回演奏のために、ステップカウン
タ(STPC)156をリセットし(S56)、バーデ
ータ処理を行う(S57)。
When the increment of the step counter (STPC) 156 is completed (S54), next, it is determined whether or not it is the maximum step (MXSP) (ie, STPC = MX).
(S55), and if it is not the max step (S55: No), the process (S50) is terminated (S58). On the other hand, in the case of the maximum step (S55: Yes), all the planned sequences have been completed, so that the step counter (STPC) 156 is reset (S56) and the bar data processing is performed for the next performance (S57). ).

【0119】この場合、図9(a)のシーケンスデータ
と同様に、一連のシーケンスデータの最後にはエンドバ
ーがあるので、図11に示すように、エンドバーである
ことを判別し(S41:Yes)、次回演奏にそなえて
先頭アドレスをセットし(S42)、バーデータ処理
(S40)を終了し(S47→S57)、図12に示す
ように、続いてステップ処理(S50)を終了する(S
58)。
In this case, similar to the sequence data of FIG. 9A, there is an end bar at the end of the series of sequence data, so that it is determined that the sequence is the end bar as shown in FIG. 11 (S41: Yes). The head address is set in preparation for the next performance (S42), and the bar data processing (S40) ends (S47 → S57). Then, as shown in FIG. 12, the step processing (S50) ends (S50).
58).

【0120】イベント処理(S60)では、図13に示
すように、ステップタイムが一致する全てのイベントを
行う。まず、イベントデータがノートデータか否かを判
別し(S61)、ノートデータのときには(S61:Y
es)、発音処理(ノートオン処理)を行う(S6
2)。ノートデータでないときには(S61:No)、
そのイベントデータに応じたイベント処理を行い(S6
3)、次に、同一のステップタイムの他のイベントの有
無を判別し(S64)、他のイベントがあるときには
(S64:Yes)、同様にして、そのイベントを行
い、全てを終了して、そのステップタイムにおけるイベ
ントがなくなったときに(S64:No)、処理(S6
0)を終了する(S65)。
In the event processing (S60), as shown in FIG. 13, all events having the same step times are performed. First, it is determined whether or not the event data is note data (S61). If the event data is note data (S61: Y)
es), and performs sound generation processing (note-on processing) (S6).
2). If it is not note data (S61: No),
Event processing according to the event data is performed (S6
3) Next, it is determined whether there is another event having the same step time (S64). If there is another event (S64: Yes), the event is performed in the same manner, and all the processes are terminated. When there is no event at that step time (S64: No), the process (S6)
0) is ended (S65).

【0121】ここで、絶対時間系の時間管理と相対時間
系の時間管理について、少し触れておく。前述のSMP
TE(Society of Motion Picture and Television Eng
ineer )は、もともと団体名であるが、SMPTEタイ
ムコードは、SMPTEの規格のうち最もポピュラーな
ものなので、一般にSMPTEタイムコードの意味でS
MPTEということが多い。そこで、本実施形態でもS
MPTE=SMPTEタイムコードとして記述してい
る。SMPTEは、もともとVTRの同期信号として広
く使われていたが、近年、プロモーションビデオや音楽
ビデオ作成など、映像と音楽とのリンクが必要となり、
時/分/秒/フレームの構成を有して絶対時刻(番地、
アドレス)情報による時間管理(絶対時刻系の時間管
理)に適したSMPTEが、必然的にレコーディングに
も利用され、その有効性が理解され、普及してきた。前
述のSMF形式のメタイベントにも採用されている。
Here, the time management of the absolute time system and the time management of the relative time system will be briefly described. The aforementioned SMP
TE (Society of Motion Picture and Television Eng
ineer) is originally an organization name, but since SMPTE time code is the most popular SMPTE standard, SMPTE time code is generally SMPTE time code.
It is often called MPTE. Therefore, in the present embodiment, S
MPTE = SMPTE described as time code. Originally, SMPTE was widely used as a VTR synchronization signal, but in recent years, links between video and music have been required, such as for creating promotional videos and music videos.
It has the structure of hour / minute / second / frame and absolute time (address,
SMPTE suitable for time management based on (address) information (time management in an absolute time system) is inevitably used for recording, and its effectiveness has been understood and spread. It is also used in the SMF format meta-event described above.

【0122】まず、ミュージシャンのスケジュールの調
整、スタジオスペースの広さ、音量や音色のバランスの
調整、等の点で、複数パートの演奏を一度に録音する同
時録音より、パート毎に順番に録音する多重録音(マル
チトラックレコーディング)の方が効率面や経済面で有
利なので、ポピュラー系音楽のレコーディングの多く
に、多重録音が使用されている。この多重録音のための
専用テープレコーダは、MTR(マルチトラックレコー
ダー)と呼ばれている。
First, in order to adjust the musician's schedule, adjust the space of the studio space, adjust the balance of volume and tone, etc., record the performance of a plurality of parts at once, instead of recording simultaneously. Since multi-track recording (multi-track recording) is more efficient and economical, multi-recording is used in many popular music recordings. This dedicated tape recorder for multiplex recording is called an MTR (multi-track recorder).

【0123】従来、シーケンサのトラック数が少なく、
シンセサイザがアナログでモノフォニックかつ高価であ
った頃には、和音演奏を作るにも、1音毎に順番に演奏
して音を合成する必要があり、MTRとシーケンサを同
期演奏させ、多重録音することによって、シンセサイザ
のオーケストラ演奏を可能としていたため、MTRとシ
ーケンサとの同期演奏が不可欠であった。MIDIの登
場によって、機器の接続が容易になると、上記のトラッ
ク数の不足やシーケンサ同士の互換性の不足等の理由も
あり、シーケンサとシーケンサとの同期、シーケンサと
リズムマシンとの同期が頻繁に行われた。
Conventionally, the number of tracks of the sequencer is small,
When synthesizers were analog, monophonic, and expensive, to produce chords, it was necessary to play the notes one by one in order to synthesize the sound. As a result, the orchestra performance of the synthesizer was made possible, so that the synchronized performance of the MTR and the sequencer was indispensable. With the advent of MIDI, if the connection of devices becomes easy, there is a shortage of the number of tracks and the compatibility of the sequencers, etc. It was conducted.

【0124】従来と比べれば、現在では、シーケンサの
トラック数が十分にあり、シンセサイザの同時発音数も
多くなっているが、一般のポピュラー系音楽はシンセサ
イザだけで作られるわけではなく、アコースティック楽
器やボーカルなどが加わるため、現在でも、MTRとシ
ーケンサとの同期によって、1パート毎に録音していく
多重録音が一般的なレコーディング方法である。
Compared with the related art, at present, the number of tracks of the sequencer is sufficient, and the number of simultaneous sounds of the synthesizer is also large. Since vocals and the like are added, even today, multiple recording in which recording is performed for each part in synchronization with the MTR and the sequencer is a general recording method.

【0125】そして、上述のような背景があり、近年の
映像と音楽のリンクの必要性も加わって、MTRとシー
ケンサの同期など、スタジオワークにSMPTEが普及
したことから、MIDIの同期もSMPTE同様に絶対
時刻で管理したいというニーズが高まり、これに応じ
て、SMPTEと同様に時/分/秒/フレームの構成を
有して絶対時刻(番地、アドレス)情報による時間管理
(絶対時刻系の時間管理)に適したMIDIタイムコー
ドの規格が追加され、ステータスバイト(F1)のクオ
ーターフレームメッセージその他のメッセージが定義さ
れた。
With the above-mentioned background, the need for a link between video and music in recent years has been added, and SMPTE has become widespread in studio work, such as synchronization between MTR and sequencer. In response to this, there is an increasing need to manage the time based on absolute time, and accordingly, the time management based on the absolute time (address, address) having the configuration of hour / minute / second / frame like the SMPTE (time in the absolute time system) The standard of the MIDI time code suitable for the management) has been added, and a quarter frame message and other messages of the status byte (F1) have been defined.

【0126】一方、上述のように、現在では、シーケン
サのトラック数が十分になり、シンセサイザの同時発音
数も多くなり、多くの音源モジュールにドラム系音色も
用意されるようになり、リズム専用入力がシーケンサに
用意されるなど、リズムマシン等の機能がシーケンサに
組み込まれてきた、さらにシンセサイザのオールインワ
ン化やワークステーション化により、音源からシーケン
サ機能まで1台完結でデータ制作の全てができるように
なり、少なくともアマチュアの世界では、同期の必要性
が低減している。
On the other hand, as described above, at present, the number of tracks in the sequencer is sufficient, the number of simultaneous sounds in the synthesizer is also large, and drum-based timbres are prepared in many sound source modules. The rhythm machine and other functions have been incorporated into the sequencer, such as being provided in a sequencer.In addition, the all-in-one and workstation configuration of the synthesizer has made it possible to perform all data production from a sound source to the sequencer function with a single unit. The need for synchronization has been reduced, at least in the amateur world.

【0127】また、ソングポジションポインタ(F2
H)やソングセレクト(F3H)など、MIDI規格に
も、相対時間系のまま、ある程度の自由度を持って、曲
の途中等からでも同期が可能なメッセージが用意され
た。また、相対時間系の時間管理によるシーケンサで
は、自動演奏開始時に演奏のテンポを調整(指定・変
更)でき、さらに、自動演奏中でも、操作者(ユーザ)
がその場のいわゆる「ノリ」に合わせて、演奏のテンポ
を調整(変更)できるものも知られている。電子楽器1
におけるテンポ調整ダイヤル(テンポ変更スイッチ)5
1aも、この種のテンポ変更のためのものである。そし
て、楽譜は、演奏テンポによって同じ4分音符でも実際
の演奏時間が違うように、相対時間系の表記であるた
め、相対時間系の方が感覚的にマッチしている。
The song position pointer (F2
H) and song select (F3H), the MIDI standard also provides a message that can be synchronized from the middle of a song or the like with a certain degree of freedom while maintaining a relative time system. In a sequencer using time management in a relative time system, the tempo of performance can be adjusted (designated / changed) at the start of automatic performance.
It is also known that the tempo of the performance can be adjusted (changed) in accordance with the so-called "slip" on the spot. Electronic musical instrument 1
Tempo adjustment dial (tempo change switch) 5
1a is also for this kind of tempo change. The musical score is expressed in a relative time system so that the actual performance time differs even for the same quarter note depending on the performance tempo, so that the relative time system is more intuitively matched.

【0128】すなわち、相対時間系の時間管理によるシ
ーケンサと絶対時間系の時間管理によるシーケンサとに
2分化している。そして、これらの相互間の対応付けに
ついては、従来、あまり考慮がされていない。このた
め、いずれか一方の系の時間管理に基づいて作成された
シーケンスデータを他方のために編集し直したり、ある
いは双方の系のシーケンサにより同期演奏をしように
も、時刻情報を対応させ難くなっている。
That is, it is divided into a sequencer based on time management in a relative time system and a sequencer based on time management in an absolute time system. Conventionally, little consideration has been given to the correspondence between these. For this reason, it is difficult to make the time information correspond even if the sequence data created based on the time management of one of the systems is re-edited for the other, or the sequencer of both systems is to perform synchronized performance. ing.

【0129】そこで、電子楽器1では、基本的には相対
時間系の時間管理により、テンポ変更等にも対応でき、
楽譜等から感覚的に把握しやすい相対時間系の利点を生
かしつつ、相対時間系の時刻と絶対時間系の時刻とを対
応づけて出力(処理)できるようにし、具体的には、相
対時間系の時刻と絶対時間系の時刻とを対応づけて表示
できるようにして、他方の時間系、すなわち絶対時間系
の時刻管理によるシーケンスデータに編集したり、絶対
時間系の時刻管理によるシーケンサと同期演奏したりす
る場合など、絶対時間系と同調する場合の参考となる時
刻対応情報を提供できるようにしている。以下、この点
について、詳述する。
Therefore, the electronic musical instrument 1 can respond to a tempo change or the like by basically managing time in a relative time system.
The relative time system time and the absolute time system time can be output (processed) in association with each other while taking advantage of the relative time system that can be easily intuitively understood from a musical score. Time and the time of the absolute time system can be displayed in association with each other, so that the other time system, that is, the sequence data is managed by the time management of the absolute time system, or the performance is synchronized with the sequencer by the time management of the absolute time system In such a case, it is possible to provide time-corresponding information that is helpful when synchronizing with the absolute time system. Hereinafter, this point will be described in detail.

【0130】電子楽器1では、ステップタイム(相対時
間系の時間単位で示す実行時刻)とそのステップタイム
(実行時刻)に行うイベントとを指示するイベントデー
タを複数有するシーケンスデータを記憶し、図10で前
述のように、演奏開始時に(所定の開始時刻の値とし
て)、ステップカウンタ(STPC)をリセット(累積
相対時刻の初期値を記憶)し、MIDIタイムコードカ
ウンタ(MTCC)をリセット(累積絶対時刻の初期値
を記憶)し、この時点では、図3で前述の初期設定やあ
るいは事前に図7で前述のテンポ変更があったときには
そのテンポに設定されている(実行テンポの初期値が記
憶されている)。
The electronic musical instrument 1 stores sequence data having a plurality of event data indicating a step time (execution time indicated by a time unit of a relative time system) and an event to be performed at the step time (execution time). As described above, at the start of the performance (as the value of the predetermined start time), the step counter (STPC) is reset (the initial value of the accumulated relative time is stored), and the MIDI time code counter (MTCC) is reset (the accumulated absolute time). The initial value of the time is stored), and at this point, the initial setting described above with reference to FIG. 3 or the tempo when the aforementioned tempo is changed in advance in FIG. 7 is set (the initial value of the execution tempo is stored). Has been).

【0131】この状態で、ステップ割込が発生すると、
図12で前述のように、ステップタイムの指定がそのと
きのステップタイムに一致したイベント、すなわちステ
ップタイム(実行時刻)の順番でイベントデータにより
指定されるイベントを実行する(S52〜S53)。こ
のため、シーケンスデータとして定めたシーケンス(実
行順序)で各イベントを実行する。
In this state, if a step interrupt occurs,
As described above with reference to FIG. 12, the event whose step time is specified matches the step time at that time, that is, the event specified by the event data in the order of the step time (execution time) is executed (S52 to S53). Therefore, each event is executed in a sequence (execution order) defined as sequence data.

【0132】ここで、前述のように、ステップカウンタ
(STPC)156のインクリメント(S54)におい
て、例えばモード切替等(例えば絶対時刻表示モードの
セット等)により、図8で前述のステップ加算処理(S
20)を利用する(S54s)。この場合、加算ステッ
プ=1として(S59)、ステップ加算処理(S20)
を行うと、図8に示すように、加算ステップ(=1)を
変数ADCに代入(相対時刻差を決定)し(S21)、
その時点のテンポと相対時刻差(ADC)に基づいて、
絶対時刻差((ADC/SEC)秒:図6参照)を決定
し、絶対時刻差((ADC/SEC)秒)をその時点の
累積絶対時刻(TIM151の時カウンタ+分カウンタ
+秒カウンタの値)に累積して更新する(S23〜S2
6)。
Here, as described above, in the increment (S54) of the step counter (STPC) 156, the step addition processing (S) described in FIG.
20) is used (S54s). In this case, the addition step = 1 is set (S59), and the step addition processing (S20).
Then, as shown in FIG. 8, the addition step (= 1) is substituted for the variable ADC (determining the relative time difference) (S21),
Based on the current tempo and the relative time difference (ADC),
The absolute time difference ((ADC / SEC) seconds: see FIG. 6) is determined, and the absolute time difference ((ADC / SEC) seconds) is calculated as the accumulated absolute time (time counter of TIM 151 + minute counter + second counter). ) And updated (S23 to S2)
6).

【0133】すなわち、相対時間系の時刻を示す累積相
対時刻(STPC156の値)に対応して絶対時間系の
時刻を示す累積絶対時刻(TIM151の値)が更新さ
れる。そして、累積相対時刻(STPC156の値)を
相対計時情報として(例えば「曲−小節−拍」等の形式
により)出力するとともに、累積絶対時刻(TIM15
1の値)を絶対計時情報として(例えば「時/分/秒」
等の形式により)相対計時情報と対応させて(例えば
「曲−小節−拍(時/分/秒)」等の形式により)出力
(表示)する(S27)。出力(表示)した値は、その
元に成る形式、すなわちSTPC156の値(相対計時
情報)とTIM151の値(絶対計時情報)を並べて対
応させた「STPC:TIM」の形式で、MTCC15
7に格納(記憶)される。
That is, the accumulated absolute time (the value of the TIM 151) indicating the time of the absolute time system is updated corresponding to the accumulated relative time (the value of the STPC 156) indicating the time of the relative time system. Then, the cumulative relative time (the value of the STPC 156) is output as relative timing information (for example, in a format such as “song-measure-beat”), and the cumulative absolute time (TIM15) is output.
(Value of 1) as absolute timing information (for example, "hour / minute / second")
Is output (displayed) in association with the relative timing information (for example, in a format such as "song-measure-beat (hour / minute / second)") (S27). The output (displayed) value is a format based on the MTCC 15, that is, “STPC: TIM” in which the value of the STPC 156 (relative timing information) and the value of the TIM 151 (absolute timing information) are aligned and corresponded.
7 is stored (stored).

【0134】ここで、相対時間系の時刻(STPC15
6の値:ステップタイム)は、たとえシーケンスの実行
の途中で、例えばテンポ変更スイッチ51aの操作によ
り、実行テンポを外部から強制的に変更されても、相対
時間系で実行する限り、問題なく実行できる。したがっ
て、感覚的に把握しやすい相対時間系の利点を生かし
て、シーケンスを実行でき、かつ、その途中にテンポ変
更があっても、相対時間系の時刻と絶対時間系の時刻と
を対応づけて出力(処理)できる。逆に言えば、相対時
間系と絶対時間系とを対応づけたまま、シーケンスの実
行中にテンポを強制変更できる。また、このため、テン
ポを変更するイベントを指示するイベントデータを含め
ても何ら問題なく、相対時間系と絶対時間系とを対応づ
けて出力(処理)できる。また、これにより、絶対時間
系の時刻管理によるシーケンスデータに編集したり、絶
対時間系の時刻管理によるシーケンサと同期演奏したり
する場合など、絶対時間系と同調する場合の参考となる
時刻対応情報を提供できる。
Here, the relative time system time (STPC15
The value of 6: step time) can be executed without any problem during execution of the sequence, even if the execution tempo is forcibly changed externally, for example, by operating the tempo change switch 51a, as long as the execution is performed in the relative time system. it can. Therefore, by taking advantage of the relative time system that is easy to grasp intuitively, the sequence can be executed, and even if there is a tempo change in the middle, the relative time system time and the absolute time system time are linked. Can be output (processed). Conversely, the tempo can be forcibly changed during execution of the sequence while the relative time system and the absolute time system are associated with each other. For this reason, the relative time system and the absolute time system can be output (processed) in association with each other without any problem even if event data indicating an event for changing the tempo is included. In addition, this enables time-corresponding information to be used when synchronizing with the absolute time system, such as when editing into sequence data based on absolute time system time management, or when performing synchronized performance with a sequencer using absolute time system time management. Can be provided.

【0135】図12で前述のイベント処理(S53)の
イベントとしてあり得るのは、前述のように、ノートオ
ン/オフ(ノートデータ)、レジスト切換指示(F6
H)、システムエクスクルーシブメッセージ(F0Hお
よびF7H)、メタイベント(FFH)、ポリフォニッ
クキープレッシャー(AnH)、コントロールチェンジ
&モードメッセージ(BnH)、プログラムチェンジ
(CnH)、チャンネルプレッシャー(DnH)、ピッ
チベンドチェンジ(EnH)等である。
In FIG. 12, the events of the above-described event processing (S53) may be the note on / off (note data) and the registration switching instruction (F6) as described above.
H), system exclusive message (F0H and F7H), meta event (FFH), polyphonic key pressure (AnH), control change & mode message (BnH), program change (CnH), channel pressure (DnH), pitch bend change (EnH) ).

【0136】これらのうち、例えばポリフォニックキー
プレッシャー(AnH)やチャンネルプレッシャー(D
nH)ではアフタータッチを、プログラムチェンジ(C
nH)では音色等を、ピッチベンドチェンジ(EnH)
では音程を、コントロールチェンジ&モードメッセージ
(BnH)では、ボリューム系、ペダル系、各種音響エ
フェクト等を、指定して変更できる。また、レジスト切
換指示(F6H)は、それらを工夫した結果の音色、エ
フェクト、リズムその他、自動演奏用のセッティングを
変更でき、システムエクスクルーシブメッセージ(F0
HおよびF7H)でも同様のことが可能である。また、
メタイベントでは、拍等の変更ができる。また、これら
において指定できる内容にはテンポも含まれる。
Among them, for example, polyphonic key pressure (AnH) and channel pressure (D
nH), aftertouch and program change (C
nH), pitch tone change (EnH)
With the control change & mode message (BnH), the volume can be changed by designating the volume system, the pedal system, various sound effects, and the like. In addition, the register switching instruction (F6H) can change the tone, effect, rhythm, and other settings for automatic performance as a result of devising them, and provide a system exclusive message (F0H).
H and F7H). Also,
In the meta event, the beat and the like can be changed. In addition, the contents that can be specified in these include the tempo.

【0137】また、前述のように、電子楽器1で扱うシ
ーケンスデータでは、SMF形式のメタイベントと同様
に、表示用のテキスト(データ)を扱えるので、上記の
表示に利用するため、楽譜上の小節の区切り(何小節目
か)をコメントするイベント(以下「小節マーク」)お
よび拍子が変わるときに変化後の拍子(何分の何拍子
(例えば4/4等))をコメントするイベント(以下
「拍子マーク」)を指示するイベントデータを含ませる
ことができる。
As described above, the sequence data handled by the electronic musical instrument 1 can handle display text (data) in the same manner as the SMF-format meta-event, so that it can be used for the display described above. An event (hereinafter referred to as a “bar mark”) for commenting the bar break (how many bars) and an event for commenting the time signature after the change (how many minutes (for example, 4/4) etc.) when the time signature changes Event data indicating "time signature") can be included.

【0138】なお、前述のように、電子楽器1では、ソ
ングオプションポインタ(F2H)やソングセレクト
(F3H)のコモンメッセージにも対応できるように、
複数曲の中の各曲(各ソング)の番号等も管理してい
る。また、ステップタイムは、そもそも1拍の長さに対
応する(タイムベースに応じた)相対時間系の時間単位
なので、曲の先頭(ステップタイム=0あるいはステッ
プタイムの曲番によるオフセット値)からの拍数等は、
その時点のステップタイム(STPCの値)から直接求
めることができる。
As described above, in the electronic musical instrument 1, the common message of the song option pointer (F2H) and the song select (F3H) can be handled.
The number of each song (each song) among a plurality of songs is also managed. Also, the step time is a relative time system time unit (corresponding to the time base) corresponding to the length of one beat in the first place, so that the step time from the beginning of the music (step time = 0 or offset value by the music number of the step time) The number of beats
It can be obtained directly from the step time (STPC value) at that time.

【0139】ただし、電子楽器1では、上記の表示のた
め、およびシーケンスの実行中の表示のための処理を省
略(節約)するため、上記の「小節マーク」に対して
は、曲番(何曲目か)および小節番号(何小節目か)を
並べた「曲−小節」のデータとそのステップタイム(す
なわちその小節の先頭に対応するステップタイム)を記
憶しておき、上記の「拍子マーク」に対してはその値
(拍子:4/4等)とそれに続く小節の先頭のステップ
タイムを記憶しておき、その後の任意のステップタイム
に基づいて、できる限り迅速に、「曲−小節−拍」を求
められるようにしている。すなわち、前述したMTCC
157に格納する「STPC:TIM」の値を求めた直
後に、例えば「曲−小節−拍(時/分/秒)」等の形式
により、出力(表示)できるようにしている。
However, in the electronic musical instrument 1, in order to omit (conserve) the processing for the above display and the display during the execution of the sequence, the music number (what The data of "song-measure" in which the song number and the bar number (how many bars) are arranged and the step time thereof (that is, the step time corresponding to the beginning of the bar) are stored, and the "time signature" , The value (time signature: 4/4, etc.) and the step time at the beginning of the bar following it are stored, and based on an arbitrary step time thereafter, “song-measure-beat” "Is required. That is, the aforementioned MTCC
Immediately after the value of “STPC: TIM” stored in 157 is obtained, it can be output (displayed) in a format such as “song-measure-beat (hour / minute / second)”.

【0140】次に、上述のような自動演奏を一度聴いた
後に、例えば好みの曲(曲番)の好みの部分(例えば所
定のフレーズや好みの小節等)を聴きたい場合、ディス
プレイ4の表示画面41において、上記の「曲−小節−
拍」の形式で、例えば2番目の曲の3番目の小節の4拍
目から聴きたいときには「02−03−04」等の形式
で、その部分を数値で直接指定して、いわゆる頭出しが
できる。この場合、電子楽器1では、目的の位置が入力
されると、その目的位置を示す相対計時情報(例えば
「曲−小節−拍」)を出力(表示)するとともに、その
位置に対応する絶対計時情報を(例えば「時/分/秒」
等の形式により)、相対計時情報に対応させて(例えば
「曲−小節−拍(時/分/秒)」等の形式により)出力
(表示)する(S27)。
Next, after listening to the above-mentioned automatic performance once, for example, when the user wants to listen to a favorite part (for example, a predetermined phrase or a favorite bar) of a favorite music (tune number), the display 4 is displayed. On the screen 41, the above-mentioned “tune-measure-
For example, if you want to listen to the fourth beat of the third bar of the second song in the form of "beat", you can directly specify that part with a numerical value in the form of "02-03-04", etc. it can. In this case, when the target position is input, the electronic musical instrument 1 outputs (displays) relative timing information (for example, “song-measure-beat”) indicating the target position, and also outputs the absolute timing corresponding to the position. Information (eg "hour / minute / second"
, Etc.) (corresponding to relative timing information) (for example, in a format such as "song-measure-beat (hour / minute / second)") (S27).

【0141】また、直接指定ばかりでなく、任意の相対
計時情報(例えば「曲−小節−拍」等)が表示された状
態から、例えば早送り(FF)ボタン(早送りスイッチ)
51eまたは巻戻し(REW )ボタン(巻戻しスイッチ)
51fが操作されて(押されて)離されると、離された
タイミングにより目的の位置を決定し、その位置を示す
相対計時情報(例えば「曲−小節−拍」等)とそれに対
応する絶対計時情報(例えば「時/分/秒」等)とを、
対応させて(例えば「曲−小節−拍(時/分/秒)」等
の形式により)出力(表示)する(S27)。なお、こ
こでは、説明を簡単にするため、早送りスイッチ51e
または巻戻しスイッチ51fを押したときに(第1操作
で)検索開始、離したときに(第2操作で)検索終了と
するが、最初に押したときを第1操作、次に押したとき
を第2操作とするなど、第1操作と第2操作の種類は、
実状に合わせて適宜決めれば良い。
In addition to direct designation, from the state in which arbitrary relative time information (for example, “song-measure-beat”) is displayed, for example, a fast-forward (FF) button (fast-forward switch)
51e or rewind (REW) button (rewind switch)
When 51f is operated (pressed) and released, a target position is determined based on the release timing, relative timing information (for example, "song-measure-beat") indicating the position and an absolute timing corresponding thereto. Information (e.g., "hour / minute / second")
It is output (displayed) in correspondence (for example, in a format such as "song-measure-beat (hour / minute / second)") (S27). Here, for the sake of simplicity, the fast-forward switch 51e
Alternatively, the search is started when the rewind switch 51f is pressed (in the first operation), and the search is ended when the release switch 51f is released (in the second operation). And the type of the first operation and the second operation are as follows.
What is necessary is just to determine suitably according to an actual condition.

【0142】これらの場合、早送りスイッチ51e若し
くは巻戻し(REW )ボタン(巻戻しスイッチ)51が押
されたこと(第1操作)、または目的の位置が数値入力
されたこと、を検出して、目的位置時刻検索割込を発生
し、例えば図14に示すように、目的位置時刻検索処理
(S70)を起動する。この処理(S70)では、ま
ず、ステップカウンタ(STPC)156にオフセット
値をセット(または曲全体の相対時間系がその曲の先頭
からの相対時刻(ステップタイム)で管理されるときに
は、STPC156のリセット)や、MTCC157に
オフセット値をセット(あるいはSTPCに対応してM
TCCリセット)などのイニシャライズを行う(S7
1)。
In these cases, it is detected that the fast-forward switch 51e or the rewind (REW) button (rewind switch) 51 has been pressed (first operation), or that the target position has been numerically input. A target position time search interrupt is generated, and a target position time search process (S70) is started, for example, as shown in FIG. In this process (S70), first, an offset value is set in the step counter (STPC) 156 (or, when the relative time system of the entire music is managed by the relative time (step time) from the beginning of the music, the STPC 156 is reset). ) Or set an offset value in the MTCC 157 (or M
Initialize such as TCC reset (S7)
1).

【0143】次に、曲先頭のテンポを取得する(S7
2)。演奏のシーケンスデータの場合、前の曲に影響さ
れないように、通常、テンポ情報や拍子情報を設定する
イベントデータが最初にあるので、その設定テンポを取
得する。電子楽器1の場合、ここには、通常、ユーザが
セッティングしたレジストレーションデータを設定する
レジスト切換指示(F6H)のイベントデータを配置す
るが、SMF形式のセットテンポ対応のイベントデータ
でも良い。仮に曲の先頭イベントとしてない場合、自動
演奏するときには、それ以前にテンポ変更があればその
変更後のテンポ、シーケンスデータ上に全くないときに
は、デフォルト値(電子楽器1ではテンポ=120とし
ている)となるので、本処理では、自動演奏時と合わせ
るため、シーケンスデータをさかのぼって検索して取得
する(ただし、この検索の必要があるケースはほとんど
考えられない。仮にシーケンスデータ作成ミスによりそ
うなった場合、本処理により絶対時刻が表示されれば、
その点に気づくと考えられるので、その意味ではデバッ
グにも有効)。
Next, the tempo at the beginning of the music is obtained (S7).
2). In the case of performance sequence data, there is usually event data for setting tempo information and time signature information first so as not to be affected by the previous song, so the set tempo is obtained. In the case of the electronic musical instrument 1, the event data of the registration switching instruction (F6H) for setting the registration data set by the user is usually arranged here, but the event data corresponding to the set tempo in the SMF format may be used. If it is not the first event of the song, the tempo after the tempo has been changed if there is a previous tempo change when performing automatically, and the default value (tempo = 120 in the electronic musical instrument 1) if there is no change in the sequence data. Therefore, in this process, the sequence data is searched backward and acquired in order to match with the time of the automatic performance. (However, there is almost no case where this search is necessary. If the absolute time is displayed by this process,
You may notice that, so in that sense it is also useful for debugging).

【0144】曲頭テンポを取得すると(S72)、次
に、テンポと同様に、曲頭の拍子情報を取得し(S7
3)、続いて、曲頭のテンポにより図7で前述のテンポ
変更処理(S10)を行う(S74)。これにより、秒
相当ステップ数(SEC)が更新される。次に、この処
理(S70)のための所定ポインタ(SPINT)の指
示アドレスを曲頭に移動させる。このSPINTは、自
動演奏の場合のステップカウンタ(SPTC)156に
代わるものであり、基本的にはステップタイムの指定用
のポインタ(カウンタ)であるが、この処理(S70)
では、各ステップの逐次処理を飛ばしてジャンプするの
で、SPTC156の代わりにSPINTを用いる。こ
のSPINTはRAM13上に格納する変数と考えても
良いし、あるいは汎用カウンタ154等を利用しても良
い。
When the tempo of the tune is acquired (S72), the time signature information of the beginning of the tune is acquired similarly to the tempo (S7).
3) Subsequently, the tempo change processing (S10) described above with reference to FIG. 7 is performed based on the tempo of the beginning of the music (S74). As a result, the number of steps equivalent to seconds (SEC) is updated. Next, the designated address of the predetermined pointer (SPINT) for this processing (S70) is moved to the beginning of the music piece. This SPINT replaces the step counter (SPTC) 156 in the case of automatic performance, and is basically a pointer (counter) for specifying a step time. This processing (S70)
In this case, since the jump is performed by skipping the sequential processing of each step, SPINT is used instead of SPTC 156. This SPINT may be considered as a variable stored in the RAM 13, or a general-purpose counter 154 or the like may be used.

【0145】電子楽器1では、本処理(S70)におい
ても、図12等で前述の自動演奏の場合と同様に、ステ
ップタイム(相対時間系の時間単位で示す実行時刻)と
そのステップタイム(実行時刻)に行うイベントとを指
示するイベントデータを複数有するシーケンスデータを
記憶した状態から、処理対象の曲頭(所定の開始時刻)
の値として、ステップカウンタ(STPC:累積相対時
刻)の初期値をセット(記憶)し、MIDIタイムコー
ドカウンタ(MTCC:TIMの領域の値=累積絶対時
刻)の初期値をセット(記憶)し、前述のテンポ変更が
あったときにはそのテンポに設定されている(実行テン
ポの初期値が記憶されている)。
In the electronic musical instrument 1, also in this processing (S70), as in the case of the automatic performance described above with reference to FIG. From the state where the sequence data having a plurality of event data indicating the event to be performed at (time) is stored, the beginning of the song to be processed (the predetermined start time)
, An initial value of a step counter (STPC: cumulative relative time) is set (stored), and an initial value of a MIDI time code counter (MTCC: TIM area value = cumulative absolute time) is set (stored). When the tempo is changed, the tempo is set (the initial value of the execution tempo is stored).

【0146】次に、目的位置か否かを判別する(S7
6)。前述の数値による直接指定により上記の「曲−小
節−拍」(例えば「02−03−04」等)が指定され
ている場合には、SPINTが指すステップタイムが、
指定されている「曲−小節−拍」に適合するか否かを判
別する(S76)。適合すれば(S76:Yes)、目
的位置なので、図8で前述の時刻表示処理(S27)と
同様の時刻表示処理を行って(S77)、処理(S7
0)を終了する(S78)。すなわち相対計時情報と絶
対計時情報とを対応させて、例えば「曲−小節−拍(時
/分/秒)」等の形式により、出力(表示)して(S7
7)、終了する(S78)。
Next, it is determined whether or not it is the target position (S7).
6). When the above-mentioned “song-measure-beat” (for example, “02-03-04” or the like) is specified by the direct specification using the above numerical values, the step time indicated by SPINT is
It is determined whether or not the specified "song-measure-beat" matches (S76). If it matches (S76: Yes), it is the target position, so a time display process similar to the above-described time display process (S27) in FIG. 8 is performed (S77), and the process (S7)
0) is completed (S78). That is, the relative time information and the absolute time information are made to correspond to each other and output (displayed) in a format such as "song-measure-beat (hour / minute / second)" (S7).
7), end (S78).

【0147】また、早送りスイッチ51e若しくは巻戻
しスイッチ51fが押されたことによる起動の場合に
は、その操作(押下)がまだ続いているか否か(すなわ
ち離されていないか)を判別し(S76)、離れていれ
ば(S76:Yes)、目的位置なので、上記と同様
に、相対計時情報と絶対計時情報とを対応させて、出力
(表示)して(S77)、終了する(S78)。
In the case of activation by pressing the fast-forward switch 51e or the rewind switch 51f, it is determined whether or not the operation (pressing) is still continued (that is, whether or not the operation has been released) (S76). ), If it is separated (S76: Yes), it is the target position, so that the relative time information and the absolute time information are made to correspond to each other and output (displayed) (S77), and the process ends (S78).

【0148】一方、目的位置でなければ(S76:N
o)、次に、イベントチェックを行う(S80)。この
処理は、図12で前述のイベント有りか否かの判別(S
52)に相当するが、ここでは、SPINTが示すステ
ップタイムとイベントデータのが指定するステップタイ
ムが一致しても、すなわち「イベント有り」に相当して
も、所定イベントに含まれるイベントを指示するもので
なければ、何も実行しない。
On the other hand, if it is not the target position (S76: N
o) Then, an event check is performed (S80). This processing is performed by judging whether or not there is an event described above with reference to FIG.
52), but here, even if the step time indicated by SPINT matches the step time specified by the event data, that is, even if it corresponds to “event present”, an event included in the predetermined event is indicated. If not, do nothing.

【0149】この場合の所定イベントには、小節マー
ク、拍子マークの他、テンポ変更を指示するイベン
ト、あるいはテンポ変更を含む種々の変更を指示する
イベントが含まれる。これらのうち、はセットテンポ
のイベントで代表され、はレジスト切換以外にも例え
ばシステムエクスクルーシブ等でも可能であるが、ここ
では、代表的なレジスト切換のみとして説明する。な
お、この所定イベントに、少なくともテンポ変更に関す
るイベントが含まれていれば、他のイベントを含めても
特に支障はない。ただし、所定イベントを絞ることによ
り、本処理(S70)を短縮化できる。
The predetermined events in this case include, in addition to the bar mark and the beat mark, an event instructing a tempo change or an event instructing various changes including a tempo change. Of these, is represented by a set tempo event, and can be performed by, for example, a system exclusive or the like in addition to registration switching. However, here, only a typical registration switching will be described. It should be noted that as long as the predetermined event includes at least an event relating to a tempo change, there is no particular problem even if other events are included. However, the processing (S70) can be shortened by narrowing down the predetermined events.

【0150】上述のように、本処理(S70)の場合、
図12で前述の自動演奏の場合とは異なり、楽譜上の所
定位置に対応する目的位置(シーケンス上の目的位置を
相対時間系の時間単位で示す目的時刻)を決定し、複数
のイベントデータを実行時刻順に目的時刻まで読み出
す。すなわち、この場合、所定の開始時刻から目的時刻
までを実行時刻とするイベントデータのみを対象とす
る。また、(実行)テンポ変更のイベントを含む1種以
上の所定イベントが定められていて、所定イベントのみ
を処理対象とする。すなわち、目的時刻までの所定イベ
ント以外については、何も処理する必要がないので、処
理時間を短縮できる。
As described above, in the case of this processing (S70),
Unlike in the case of the automatic performance described above with reference to FIG. 12, a target position corresponding to a predetermined position on a musical score (a target time indicating a target position on a sequence in time units of a relative time system) is determined, and a plurality of event data are determined. Read out to the target time in the order of execution time. That is, in this case, only the event data whose execution time is from the predetermined start time to the target time is targeted. Also, (executed) one or more types of predetermined events including a tempo change event are defined, and only predetermined events are processed. That is, there is no need to process anything other than the predetermined event until the target time, so that the processing time can be reduced.

【0151】具体的に、SPINTで指示するステップ
タイムと一致するイベントが所定イベント以外の場合、
すなわち、この時点のステップタイムを指定するイベン
トがないか、あるいはイベントはあるが所定イベントで
ないときには、単にポインタ移動(SPINT++)を
して(S89)、再度、目的位置か否かを判別する(S
76)。
Specifically, when the event that matches the step time specified by SPINT is other than the predetermined event,
That is, if there is no event specifying the step time at this time, or if there is an event but it is not a predetermined event, the pointer is simply moved (SPINT ++) (S89), and it is determined again whether or not it is the target position (S89).
76).

【0152】一方、例えばSPINTで指示するステッ
プタイムと一致するイベントが小節マークのイベント
の場合(所定イベントのうちの1である場合)、前回の
時刻表示時の値(MTCC157の値)からのステップ
数の加算分(加算ステップ)を算出し(S81)、図8
で前述のステップ加算処理(S20)を行う(S8
2)。
On the other hand, for example, when the event that coincides with the step time specified by SPINT is a bar mark event (when it is one of the predetermined events), the step from the previous time display value (the value of MTCC 157) is performed. The sum of the numbers (addition step) is calculated (S81), and FIG.
Performs the above-described step addition processing (S20) (S8).
2).

【0153】ステップ加算処理(S20)では、図8に
示すように、加算ステップを変数ADCに代入(相対時
刻差を決定)し(S21)、その時点の実行テンポと相
対時刻差(ADC)に基づいて、絶対時刻差((ADC
/SEC)秒:図6参照)を決定し、累積相対時刻差
(STPCの値)を更新し(S22)、絶対時刻差
((ADC/SEC)秒)をその時点の累積絶対時刻
(TIM151の時カウンタ+分カウンタ+秒カウンタ
の値)に累積して更新する(S23〜S26)。
In the step addition processing (S20), as shown in FIG. 8, the addition step is assigned to the variable ADC (determining the relative time difference) (S21), and the execution tempo and the relative time difference (ADC) at that time are substituted. Based on the absolute time difference ((ADC
/ SEC) second: refer to FIG. 6), update the accumulated relative time difference (STPC value) (S22), and change the absolute time difference ((ADC / SEC) second) to the accumulated absolute time (TIM 151 The value is accumulated and updated to (hour counter + minute counter + second counter value) (S23 to S26).

【0154】また、次に、更新された累積相対時刻(S
TPC156の値)を相対計時情報として、更新された
累積絶対時刻(TIM151の値)を絶対計時情報とし
て、対応させて(例えば「曲−小節−拍(時/分/
秒)」等の形式により)出力(表示)して(S27)、
処理(S20)を終了する(S28)。また、STPC
156の値とTIM151の値を並べた「STPC、T
IM」の形式で、MTCC157に格納(記憶)され、
次回の「前回の時刻表示時の値」として利用される。そ
して、次に、前述のように、できる限り迅速に、「曲−
小節−拍」を求められるように、「曲−小節」のデータ
とそのステップタイム(すなわちその小節の先頭に対応
するステップタイム)を記憶しておき(S83)、続い
て、拍子情報を取得し(S84)、ポインタ移動(SP
INT++)をして(S89)、目的位置か否かを判別
する(S76)。
Next, the updated cumulative relative time (S
TPC 156) as relative timekeeping information, and the updated accumulated absolute time (TIM151 value) as absolute timekeeping information in association with each other (for example, “tune-measure-beat (hour / minute /
Second)) and output (display) (S27),
The process (S20) ends (S28). STPC
“STPC, T” in which the values of 156 and TIM 151 are arranged.
IM ”format, stored (stored) in the MTCC 157,
It is used as the next “value at the time of the previous time display”. Then, as described above, as soon as possible, "Song-
In order to obtain "measure-beat", the data of "song-measure" and its step time (that is, the step time corresponding to the beginning of the measure) are stored (S83), and the time signature information is obtained. (S84), move the pointer (SP
(INT ++) (S89), and it is determined whether or not it is the target position (S76).

【0155】また、例えばSPINTのステップタイム
と一致するイベントが拍子マークのイベントの場合
(所定イベントのうちの1である場合)、前回の時刻表
示時の値(MTCC157の値)からのステップ数の加
算分(加算ステップ)を算出し(S85)、同様に、図
8のステップ加算処理(S20)を行うことにより(S
86)、相対時刻差を決定し、累積相対時刻差(STP
Cの値)を更新し、絶対時刻差を決定し、その時点の累
積絶対時刻(TIMの値)に累積して更新し、それぞれ
相対計時情報および絶対計時情報として、対応させて出
力(表示)し、続いて、迅速に「曲−小節−拍」を求め
るためにその値(拍子:4/4等)と小節の先頭のステ
ップタイムを記憶しておき(S87)、ポインタ移動
(SPINT++)をして(S89)、目的位置か否か
を判別する(S76)。
For example, when the event that coincides with the SPINT step time is a beat mark event (when it is one of the predetermined events), the number of steps from the previous time display value (the value of the MTCC 157) is calculated. The addition (addition step) is calculated (S85), and similarly, the step addition processing (S20) in FIG.
86), the relative time difference is determined, and the accumulated relative time difference (STP
C value) is determined, the absolute time difference is determined, and the accumulated absolute time (TIM value) at that time is updated and accumulated, and output (display) as relative time information and absolute time information respectively. Subsequently, the value (time signature: 4/4, etc.) and the step time at the beginning of the bar are stored to quickly obtain the "song-bar-beat" (S87), and the pointer movement (SPINT ++) is performed. Then, it is determined whether or not it is the target position (S76).

【0156】また、例えばステップタイムと一致するイ
ベントがテンポ変更を指示するイベント(所定イベン
トのうちの1であり、かつテンポ変更イベントの場
合)、前回の時刻表示時の値からのステップ数の加算分
(加算ステップ)を算出し(S91)、ステップ加算処
理(S20)を行うことにより(S92)、相対時刻差
を決定し、累積相対時刻差(STPCの値)に累積して
更新し、絶対時刻差を決定し、その時点の累積絶対時刻
(TIMの値)に累積して更新し、それぞれ相対計時情
報および絶対計時情報として、対応させて出力(表示)
する。続いて、図7で前述のテンポ変更処理(S10)
を行って(S93)、ポインタ移動(SPINT++)
をして(S89)、目的位置か否かを判別する(S7
6)。
Also, for example, an event that coincides with the step time is an event instructing a tempo change (in the case of one of the predetermined events and a tempo change event), and the addition of the number of steps from the previous time display value The minute (addition step) is calculated (S91), and the step addition processing (S20) is performed (S92) to determine the relative time difference, and the relative time difference is accumulated and updated to the accumulated relative time difference (STPC value). The time difference is determined, accumulated and updated to the accumulated absolute time (TIM value) at that time, and output (displayed) as relative time information and absolute time information, respectively.
I do. Subsequently, the tempo change processing described above with reference to FIG. 7 (S10)
(S93), and move the pointer (SPINT ++)
(S89), and it is determined whether or not it is the target position (S7).
6).

【0157】また、例えばステップタイムと一致するイ
ベントがテンポ変更を含む種々の変更を指示するイベ
ントの場合(ここでは「レジスト切換指示」:所定イベ
ントのうちの1であり、かつテンポ変更イベントの場
合)、基本的にはの場合と同様に、前回の時刻表示時
の値からのステップ数の加算分(加算ステップ)を算出
し(S95)、ステップ加算処理(S20)を行うこと
により(S96)、相対時刻差を決定し、累積相対時刻
差(STPCの値)を累積して更新し、絶対時刻差を決
定し、その時点の累積絶対時刻(TIMの値)に累積し
て更新し、それぞれ相対計時情報および絶対計時情報と
して、対応させて出力(表示)する。続いて、レジスト
切換なので、新しいレジストからテンポを取得し(S9
7)、そのテンポに変更するために、テンポ変更処理
(S10)を行って(S98)、ポインタ移動(SPI
NT++)をして(S89)、目的位置か否かを判別す
る(S76)。
For example, when the event coincident with the step time is an event instructing various changes including a tempo change (here, “registration switching instruction”: one of predetermined events and a tempo change event) Basically, as in the case of, the addition of the number of steps (addition step) from the value at the time of the previous time display is calculated (S95), and the step addition processing (S20) is performed (S96). , The relative time difference is determined, the cumulative relative time difference (STPC value) is accumulated and updated, the absolute time difference is determined, and the accumulated absolute time (TIM value) at that time is accumulated and updated, and Output (display) the relative timing information and the absolute timing information in association with each other. Subsequently, since the registration is switched, the tempo is acquired from the new registration (S9).
7) To change the tempo, a tempo change process (S10) is performed (S98), and the pointer is moved (SPI).
NT ++) (S89), and it is determined whether or not it is the target position (S76).

【0158】上述のように、本処理(S70)の場合、
SPINTのステップタイムと一致するイベントが所定
イベントのうちの1である場合、そのイベントデータが
示すステップタイム(実行時刻)とその時点の累積相対
時刻との差である相対時刻差を決定し、その時点の実行
テンポと相対時刻差に基づいて、相対時刻差に相当する
絶対時刻差を決定し、相対時刻差をその時点の累積相対
時刻に累積して更新し、絶対時刻差をその時点の累積絶
対時刻に累積して更新する。これにより、所定イベント
のみを処理対象としていても、相対時間系の時刻を示す
累積相対時刻に対応して絶対時間系の時刻を示す累積絶
対時刻が更新される。
As described above, in the case of this processing (S70),
If the event matching the SPINT step time is one of the predetermined events, a relative time difference that is a difference between the step time (execution time) indicated by the event data and the accumulated relative time at that time is determined. The absolute time difference corresponding to the relative time difference is determined based on the execution tempo and the relative time difference at the time, the relative time difference is accumulated and updated to the accumulated relative time at that time, and the absolute time difference is accumulated at the time. Updates cumulatively to the absolute time. Thus, even if only a predetermined event is to be processed, the accumulated absolute time indicating the time in the absolute time system is updated in correspondence with the accumulated relative time indicating the time in the relative time system.

【0159】また、テンポ変更のイベントの場合、テン
ポ変更により実行テンポを更新するので、実行テンポを
変更するイベントを指示するイベントデータを含めても
何ら問題なく、相対時間系と絶対時間系とを対応づけて
出力(処理)できる。また、これにより、絶対時間系の
時刻管理によるシーケンスデータに編集したり、絶対時
間系の時刻管理によるシーケンサと同期演奏したりする
場合など、絶対時間系と同調する場合の参考となる時刻
対応情報を提供できる。
In the case of a tempo change event, the execution tempo is updated by the tempo change. Therefore, there is no problem even if event data indicating an event for which the execution tempo is changed is included in the relative time system and the absolute time system. It can be output (processed) in association with it. In addition, this enables time-corresponding information to be used when synchronizing with the absolute time system, such as when editing into sequence data based on absolute time system time management, or when performing synchronized performance with a sequencer using absolute time system time management. Can be provided.

【0160】また、目的位置を数値による直接指定によ
り指定できるので、相対時間系の目的時刻を入力するだ
けで、絶対時間系の時刻を迅速に出力できる。また、早
送りスイッチ51e若しくは巻戻しスイッチ51fが押
されたことによる起動の場合には、任意の実行時刻を初
期値としてその値を変化させて目的時刻に合わせること
により目的時刻を入力できるので、目的時刻が明確でな
い場合に、概略で入力しておいて、例えばその位置から
少し演奏してみて、それより前、または後ろなどと、少
しづつ調整しながら所望の目的時刻に合わせる場合等に
適した目的時刻の入力ができる。
Further, since the target position can be specified by directly specifying the numerical value, the time in the absolute time system can be quickly output only by inputting the target time in the relative time system. Further, in the case of activation by pressing the fast forward switch 51e or the rewind switch 51f, the target time can be input by changing the value to an arbitrary execution time as an initial value and adjusting the value to the target time. If the time is not clear, enter it roughly, for example, try playing a bit from that position, and adjust it to the desired target time while adjusting it little by little before or after it. You can enter the desired time.

【0161】なお、図8で前述のステップ加算処理(S
20)では、ステップ数の加算分として加算ステップを
求めて、相対時間系の時刻を示す累積相対時刻(STP
Cの値)やそれに対応する絶対時間系の時刻を示す累積
絶対時刻(TIMの値)を更新したが、相対時間系を基
本として、ステップタイムを基準に処理するのに、ステ
ップカウンタ(STPC)のインクリメントは必須とな
ることから、例えば図15に示すように、STPCのイ
ンクリメント(STPC++)の処理(S101)の直
後に、絶対時刻系の時刻を求める処理(S102〜S2
4〜S26)を加えて、このステップ加算処理(S10
0)の全体を、インクリメントの度に相対時刻系および
絶対時刻系の時刻表示を行うステップカウンタ(STP
C)のインクリメント用の処理としても良い。
It should be noted that the step addition processing (S
20), an addition step is obtained as an addition of the number of steps, and the cumulative relative time (STP
C value) and the cumulative absolute time (TIM value) indicating the time of the absolute time system corresponding thereto have been updated. However, on the basis of the relative time system, the processing is performed on the basis of the step time. Since the increment of (STPC ++) is indispensable, for example, as shown in FIG. 15, immediately after the process of incrementing the STPC (STPC ++) (S101), the process of obtaining the absolute time system time (S102 to S2)
4 to S26) to add this step addition processing (S10
Step counter (STP) that displays the time of the relative time system and the absolute time system at every increment of the whole of 0)
The processing for the increment of C) may be performed.

【0162】また、上記のステップ加算処理(S10
0)を用意した場合、図12で前述の演奏時のステップ
処理では、ステップカウンタ(STPC)のインクリメ
ント(STPC++)の代わりに、図16に示すよう
に、ステップ加算処理(S100)を実行する(S11
1)ようにすれば良い。同様に、図14で前述の目的位
置時刻検索処理では、ポインタをSPINTでなく、本
来のステップカウンタ(STPC)とし、ポインタ(S
PINT)移動の処理(S89)の代わりに、図17に
示すように、ステップ加算処理(S100)を実行する
(S121)ようにすれば良い。
The above step addition processing (S10
0) is prepared, in the above-described step processing at the time of the performance in FIG. 12, instead of incrementing the step counter (STPC) (STPC ++), a step addition processing (S100) is executed as shown in FIG. 16 (S100). S11
1) It is sufficient. Similarly, in the target position time search process described above with reference to FIG. 14, the pointer is not the SPINT, but the original step counter (STPC), and the pointer (S
Instead of the (PINT) movement process (S89), a step addition process (S100) may be executed (S121) as shown in FIG.

【0163】また、図7におけるテンポ変更の処理にお
いて、T1T152のカウント値を設定して第1ティッ
ク信号の周期を変化させ、T2T153のカウント値を
設定して第3ティック信号の周期を変化させるのと同様
に、フレームカウンタから秒カウンタへの桁上がり(キ
ャリ)信号の周期を、そのカウント値(SECと同じ
値)により設定可能に構成し、秒相当ステップ数(SE
C)の代わりに、そのカウント値を更新するようにもで
きる。これにより、上記の図15の絶対時刻系の時刻を
求める処理(S102〜S24〜S26)は、フレーム
カウンタ(すなわちTIM151)のインクリメント
(S102)のみで済み、上位への桁上がりの処理(S
24〜S26)は、省略できる(TIM151で自動的
に実行できる)。また、図17等で全てのステップにス
テップ加算処理(S100)を行う場合、ハードウェア
(TIM151)で実行することにより、カウンタとし
ての高速化が図れるので、好ましい。
In the tempo change processing in FIG. 7, the period of the first tick signal is changed by setting the count value of T1T152, and the period of the third tick signal is changed by setting the count value of T2T153. Similarly to the above, the period of the carry signal from the frame counter to the second counter can be set by the count value (the same value as SEC), and the number of steps equivalent to seconds (SE) can be set.
Instead of C), the count value can be updated. As a result, the processing for obtaining the time in the absolute time system (S102 to S24 to S26) in FIG.
24 to S26) can be omitted (can be automatically executed by the TIM 151). In addition, in the case where the step addition processing (S100) is performed on all the steps in FIG. 17 and the like, it is preferable to execute the processing by hardware (TIM 151) because the counter can be speeded up.

【0164】また、図8、図14、図15、図17等に
おける時刻表示処理では、「曲−小節−拍(時/分/
秒)」等の形式で表示としたが、他の形式でも良いし、
より単純な形式としても良い。例えば、絶対時間系の時
刻の表示では、全曲合わせても1時間に満たないような
場合、あるいは「分」表示までで十分な場合には、
「時」を省略しても良い。また、相対単位系の時刻の表
示では、「曲−小節−拍」でなく、小節単位までの「曲
−小節」でも良いし、1曲だけなら「小節−拍」でも十
分であるし、「曲−拍」でも良い。また、シーケンスデ
ータのデバッグのために、ステップタイム(相対時間系
の時刻単位)を付加しても良いし、小節や拍も不要であ
れば、「曲−ステップタイム」あるいはさらに「ステッ
プタイム」のみの表示とすることもできる。
In the time display processing shown in FIGS. 8, 14, 15, 17, etc., "music-measure-beat (hour / minute / beat)
Seconds) "and other formats, but other formats may be used,
A simpler form may be used. For example, in the case of displaying the time in the absolute time system, if it is less than one hour even if all songs are combined, or if it is enough to display “minutes”,
"Time" may be omitted. Also, in the display of the time in the relative unit system, instead of "song-measure-beat", "song-measure" up to a measure unit may be used. "Song-beat". For debugging the sequence data, a step time (relative time system time unit) may be added. If measures or beats are not required, only "song-step time" or even "step time" May be displayed.

【0165】なお、上述の実施形態では、時刻情報の出
力形態として表示のみを説明したが、表示するのと同様
の形態で、例えばMIDI通信その他により、他の機器
(シーケンサ等)に相対時刻情報と絶対時刻情報とを対
応させて出力することもできる。また、電子オルガンタ
イプの電子楽器の例を挙げたが、本発明のシーケンスデ
ータ処理方法およびシーケンサ並びに電子楽器は、シー
ケンサ機能を有して自動演奏可能な電子楽器であれば、
他のタイプ(例えば電子ピアノタイプ)にも適用でき
る。また、時刻情報を得るまでの処理であれば、それ自
体に音源を有しなくても、シーケンスデータをエディッ
ト(編集・修正等)可能な他の装置(例えばパソコン等
のいわゆるコンピュータ等)にも適用できる。また、こ
れらに利用する場合に、本発明の要旨を逸脱しない範囲
で、適宜変更も可能である。
In the above-described embodiment, only the display is described as the output form of the time information. However, in the same form as the display, the relative time information is output to another device (sequencer or the like) by, for example, MIDI communication or the like. And the absolute time information can be output in association with each other. In addition, although the example of the electronic musical instrument of the electronic organ type is given, the sequence data processing method, the sequencer, and the electronic musical instrument of the present invention may be any electronic musical instrument having a sequencer function and capable of performing automatically.
It can be applied to other types (for example, electronic piano type). In addition, as long as the process is performed until time information is obtained, the sequence data can be edited (edited, modified, etc.) even if it does not have a sound source itself (for example, a computer such as a personal computer). Applicable. In addition, when used for these, modifications can be made as appropriate without departing from the gist of the present invention.

【0166】[0166]

【発明の効果】上述のように、本発明のシーケンスデー
タ処理方法およびシーケンサ並びに電子楽器によれば、
テンポ変更等にも対応でき、楽譜等から感覚的に把握し
やすい相対時間系の利点を生かしつつ、相対時間系と絶
対時間系の時刻を対応づけて出力でき、絶対時間系と同
調する場合の参考となる時刻対応情報を提供できる、な
どの効果がある。
As described above, according to the sequence data processing method, sequencer and electronic musical instrument of the present invention,
It can also respond to tempo changes, etc., while taking advantage of the relative time system that can be intuitively grasped from the musical score etc., it can output the relative time system and the absolute time system in association with each other, and can synchronize with the absolute time system There is an effect that reference time correspondence information can be provided.

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

【図1】本発明の一実施形態に係るシーケンスデータ処
理方法およびシーケンサ並びに電子楽器を適用した電子
楽器のブロック図である。
FIG. 1 is a block diagram of an electronic musical instrument to which a sequence data processing method, a sequencer, and an electronic musical instrument according to an embodiment of the present invention are applied.

【図2】図1の電子楽器の主操作部となるキーボードお
よびパネルの概略外観を示す説明図である。
FIG. 2 is an explanatory diagram showing a schematic appearance of a keyboard and a panel which are main operation units of the electronic musical instrument of FIG.

【図3】図1の電子楽器の制御全体の概念的処理を示す
フローチャートである。
FIG. 3 is a flowchart showing a conceptual process of overall control of the electronic musical instrument of FIG. 1;

【図4】タイムベースと各音符に対するティック数との
関係を示す説明図である。
FIG. 4 is an explanatory diagram showing a relationship between a time base and the number of ticks for each note.

【図5】タイムベース=384の場合の演奏のテンポに
対する基本的な時間単位信号の設定例を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing an example of setting a basic time unit signal for a performance tempo when time base = 384.

【図6】タイムベース=384の場合の演奏のテンポに
対する絶対時間系と相対時間系の関連を示す相関図であ
る。
FIG. 6 is a correlation diagram showing the relationship between the absolute time system and the relative time system with respect to the performance tempo when the time base = 384.

【図7】テンポ変更処理の一例を示すフローチャートで
ある。
FIG. 7 is a flowchart illustrating an example of a tempo change process.

【図8】ステップ加算処理の一例を示すフローチャート
である。
FIG. 8 is a flowchart illustrating an example of a step addition process.

【図9】演奏データ(シーケンスデータ)の一例を示す
説明図である。
FIG. 9 is an explanatory diagram showing an example of performance data (sequence data).

【図10】演奏開始処理の一例を示すフローチャートで
ある。
FIG. 10 is a flowchart illustrating an example of a performance start process.

【図11】バーデータ処理の一例を示すフローチャート
である。
FIG. 11 is a flowchart illustrating an example of bar data processing.

【図12】ステップ処理の一例を示すフローチャートで
ある。
FIG. 12 is a flowchart illustrating an example of step processing.

【図13】イベント処理の一例を示すフローチャートで
ある。
FIG. 13 is a flowchart illustrating an example of an event process.

【図14】目的位置時刻検索処理の一例を示すフローチ
ャートである。
FIG. 14 is a flowchart illustrating an example of a target position time search process.

【図15】別の一例を示す、図8と同様のフローチャー
トである。
FIG. 15 is a flowchart similar to FIG. 8, showing another example.

【図16】別の一例を示す、図12と同様のフローチャ
ートである。
FIG. 16 is a flowchart similar to FIG. 12, showing another example.

【図17】別の一例を示す、図14と同様のフローチャ
ートである。
FIG. 17 is a flowchart similar to FIG. 14, showing another example.

【符号の説明】[Explanation of symbols]

1 電子楽器 3 キーボード 4 ディスプレイ 5 パネル 6 ペダル 7 外部記憶インタフェース(ESI) 8 発音部 10 制御部 11 CPU 12 ROM 12a 制御プログラム領域 12b 制御データ領域 13 RAM 15 内部バス 16 クロック回路(CLK) 20 操作部 30 電源部 31 キー(鍵) 41 表示画面 51 パネルスイッチ 51a テンポ調整ダイヤル(テンポ変更スイッチ) 51b 演奏(play)ボタン(スタートスイッチ) 51c 一時停止(pause)ボタン(ポーズスイッチ) 51d 終了(stop)ボタン(ストップスイッチ) 51e 早送り(FF)ボタン(早送りスイッチ) 51f 巻戻し(REW )ボタン(巻戻しスイッチ) 51s 電源キー 52 インジケータ 61 ペダル 71 FD(ES) 81 スピーカ近傍の回路(アンプ等) 82 スピーカ 100 周辺制御回路(周辺制御コントローラ:PC
N)100 110 検出部 111 パネルスイッチ操作検出回路(パネルスイッチ
操作検出センサ) 112 ボードキー検出回路(ボードキー操作検出セン
サ) 113 ペダル操作検出回路(ペダル操作検出センサ) 120 駆動部 121 ディスプレイドライバ 122 インジケータドライバ 123 演奏ドライバ 130 MIDIインタフェース 131 MIDI送信回路(トランスミッタ) 132 MIDI受信回路(レシーバ) 135 MIDIコネクタ 140 外部記憶コントローラ(ESC) 141 ハードディスク(HD) 150 カウンタ部 151 実時間タイマ(TIM) 152 第1ティックタイマ(T1T) 153 第2ティックタイマ(T2T) 154 汎用カウンタ 156 ステップカウンタ(STPC) 157 MIDIタイムコードカウンタ(MTCC) 160 音源部 161 トーンジェネレータ(TG) 162 D/Aコンバータ
Reference Signs List 1 electronic musical instrument 3 keyboard 4 display 5 panel 6 pedal 7 external storage interface (ESI) 8 sound generator 10 control unit 11 CPU 12 ROM 12a control program area 12b control data area 13 RAM 15 internal bus 16 clock circuit (CLK) 20 operation unit Reference Signs List 30 power supply unit 31 key (key) 41 display screen 51 panel switch 51a tempo adjustment dial (tempo change switch) 51b play button (start switch) 51c pause button (pause switch) 51d stop button (Stop switch) 51e Fast forward (FF) button (fast forward switch) 51f Rewind (REW) button (rewind switch) 51s Power key 52 Indicator 61 Pedal 71 FD (ES) 81 Circuit near speaker (amplifier) ) 82 speaker 100 peripheral control circuits (peripheral controller: PC
N) 100 110 Detection section 111 Panel switch operation detection circuit (panel switch operation detection sensor) 112 Board key detection circuit (board key operation detection sensor) 113 Pedal operation detection circuit (pedal operation detection sensor) 120 Drive section 121 Display driver 122 Indicator Driver 123 Performance driver 130 MIDI interface 131 MIDI transmission circuit (transmitter) 132 MIDI reception circuit (receiver) 135 MIDI connector 140 External storage controller (ESC) 141 Hard disk (HD) 150 Counter unit 151 Real time timer (TIM) 152 First tick Timer (T1T) 153 Second tick timer (T2T) 154 General-purpose counter 156 Step counter (STPC) 157 MIDI type Code counter (MTCC) 160 tone 161 tone generator (TG) 162 D / A converter

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 相対時間系の時間単位で示す実行時刻と
その実行時刻に行うイベントとを指示するイベントデー
タを複数有するシーケンスデータを記憶するシーケンス
データ記憶工程と、 所定の開始時刻の値として累積相対時刻の初期値を記憶
する初期相対時刻記憶工程と、 前記所定の開始時刻の値として累積絶対時刻の初期値を
記憶する初期絶対時刻記憶工程と、 前記所定の開始時刻の値として実行テンポの初期値を記
憶する初期実行テンポ記憶工程と、 前記複数のイベントデータを前記実行時刻順に読み出す
イベントデータ読出工程と、 前記読み出されたイベントデータが示す実行時刻とその
時点の前記累積相対時刻との差である相対時刻差を決定
する相対時刻差決定工程と、 前記イベントデータが読み出された時点の実行テンポと
前記相対時刻差に基づいて、前記相対時刻差に相当する
絶対時刻差を決定する絶対時刻差決定工程と、 前記相対時刻差をその時点の前記累積相対時刻に累積し
て更新する累積相対時刻更新工程と、 前記絶対時刻差をその時点の前記累積絶対時刻に累積し
て更新する累積絶対時刻更新工程と、 前記累積相対時刻を相対計時情報として出力するととも
に、前記累積絶対時刻を絶対計時情報として前記相対計
時情報と対応させて出力する計時情報出力工程と、 前記読み出されたイベントデータが示すイベントを実行
するイベント実行工程と、 を備えたことを特徴とするシーケンスデータ処理方法。
1. A sequence data storing step of storing sequence data having a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event performed at the execution time, and accumulating the sequence data as a value of a predetermined start time An initial relative time storing step of storing an initial value of a relative time; an initial absolute time storing step of storing an initial value of an accumulated absolute time as the value of the predetermined start time; and an execution tempo as the value of the predetermined start time. An initial execution tempo storage step of storing an initial value; an event data reading step of reading the plurality of event data in the order of the execution time; and an execution time indicated by the read event data and the accumulated relative time at that time. A relative time difference determining step of determining a relative time difference that is a difference, and an execution tempo at the time when the event data is read out and a previous time. An absolute time difference determining step of determining an absolute time difference corresponding to the relative time difference based on the relative time difference; and a cumulative relative time update for accumulating and updating the relative time difference to the cumulative relative time at that time. And an accumulated absolute time updating step of accumulating and updating the absolute time difference to the accumulated absolute time at that time, and outputting the accumulated relative time as relative time information, and using the accumulated absolute time as absolute time information. A sequence data processing method comprising: a timing information output step of outputting the timing information in association with the relative timing information; and an event execution step of executing an event indicated by the read event data.
【請求項2】 実行テンポ変更のイベントを含む1種以
上の所定イベントが定められ、相対時間系の時間単位で
示す実行時刻とその実行時刻に行うイベントとを指示す
るイベントデータを複数有するシーケンスデータを記憶
するシーケンスデータ記憶工程と、 シーケンス上の目的位置を相対時間系の時間単位で示す
目的時刻を決定する目的時刻決定工程と、 所定の開始時刻の値として累積相対時刻の初期値を記憶
する初期相対時刻記憶工程と、 前記所定の開始時刻の値として累積絶対時刻の初期値を
記憶する初期絶対時刻記憶工程と、 前記所定の開始時刻の値として実行テンポの初期値を記
憶する初期実行テンポ記憶工程と、 前記複数のイベントデータを前記実行時刻順に前記目的
時刻まで読み出すイベントデータ読出工程と、 前記読み出されたイベントデータが示すイベントが前記
複数種類の所定イベントのうちの1である場合、そのイ
ベントデータが示す実行時刻とその時点の前記累積相対
時刻との差である相対時刻差を決定する相対時刻差決定
工程と、 前記所定イベントのうちの1である場合、その時点の前
記実行テンポと前記相対時刻差に基づいて、前記相対時
刻差に相当する絶対時刻差を決定する絶対時刻差決定工
程と、 前記所定イベントのうちの1である場合、前記相対時刻
差をその時点の前記累積相対時刻に累積して更新する累
積相対時刻更新工程と、 前記所定イベントのうちの1である場合、前記絶対時刻
差をその時点の前記累積絶対時刻に累積して更新する累
積絶対時刻更新工程と、 前記読み出されたイベントデータが示すイベントが前記
実行テンポ変更のイベントの場合、テンポ変更により実
行テンポを更新する実行テンポ更新工程と、 前記読み出されたイベントデータが示す実行時刻が前記
目的時刻の場合、前記累積相対時刻を相対計時情報とし
て出力するとともに、前記累積絶対時刻を絶対計時情報
として前記相対計時情報と対応させて出力する計時情報
出力工程と、を備えたことを特徴とするシーケンスデー
タ処理方法。
2. Sequence data having one or more types of predetermined events including an event of a change in execution tempo, and having a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event to be performed at the execution time. A target time determining step of determining a target time indicating a target position on the sequence in time units of a relative time system; and storing an initial value of the accumulated relative time as a value of a predetermined start time. An initial relative time storing step, an initial absolute time storing step of storing an initial value of an accumulated absolute time as the value of the predetermined start time, and an initial execution tempo storing an initial value of an execution tempo as the value of the predetermined start time A storage step; an event data reading step of reading the plurality of event data in order of the execution time until the target time; When the event indicated by the given event data is one of the plurality of types of predetermined events, a relative time for determining a relative time difference that is a difference between the execution time indicated by the event data and the cumulative relative time at that time A difference determination step, and when the event is one of the predetermined events, an absolute time difference determination step of determining an absolute time difference corresponding to the relative time difference based on the execution tempo and the relative time difference at that time. An accumulated relative time update step of accumulating and updating the relative time difference to the accumulated relative time at that time when the event is one of the predetermined events; An accumulative absolute time updating step of accumulating and updating a time difference to the accumulative absolute time at that time; and an event indicated by the read event data indicates that the execution tempo change In the case of an event, an execution tempo updating step of updating the execution tempo by changing the tempo; and, when the execution time indicated by the read event data is the target time, outputting the accumulated relative time as relative timekeeping information, A time information output step of outputting the accumulated absolute time as absolute time information in association with the relative time information.
【請求項3】 前記目的時刻指定工程は、前記目的時刻
を示す数値を直接入力する目的時刻数値入力工程を有す
ることを特徴とする、請求項2に記載のシーケンスデー
タ処理方法。
3. The sequence data processing method according to claim 2, wherein the target time specifying step includes a target time numerical value inputting step of directly inputting a numerical value indicating the target time.
【請求項4】 前記目的時刻指定工程は、任意の実行時
刻を初期値としてその値を変化させて前記目的時刻に合
わせることにより前記目的時刻を入力する目的時刻変更
入力工程を有することを特徴とする、請求項2または3
に記載のシーケンスデータ処理方法。
4. The target time specifying step includes a target time change inputting step of inputting the target time by changing an arbitrary execution time as an initial value and adjusting the value to match the target time. Claim 2 or 3
3. The sequence data processing method according to item 1.
【請求項5】 前記シーケンスデータには、所定の楽譜
に対応して演奏を行うためのイベントを指示するイベン
トデータが含まれることを特徴とする、請求項1ないし
4のいずれかに記載のシーケンスデータ処理方法。
5. The sequence according to claim 1, wherein the sequence data includes event data indicating an event for performing a performance corresponding to a predetermined score. Data processing method.
【請求項6】 前記相対計時情報には、楽譜上の位置に
対応する楽譜情報が含まれることを特徴とする、請求項
5に記載のシーケンスデータ処理方法。
6. The sequence data processing method according to claim 5, wherein the relative timing information includes musical score information corresponding to a position on the musical score.
【請求項7】 前記楽譜情報には、その時点の小節情報
および拍情報の少なくとも1が含まれることを特徴とす
る、請求項6に記載のシーケンスデータ処理方法。
7. The sequence data processing method according to claim 6, wherein the musical score information includes at least one of bar information and beat information at that time.
【請求項8】 前記計時情報出力工程は、前記相対計時
情報と絶対計時情報とを対応させて表示する計時情報表
示工程を有することを特徴とする、請求項1ないし7の
いずれかに記載のシーケンスデータ処理方法。
8. The timekeeping information output step includes a timekeeping information display step of displaying the relative timekeeping information and the absolute timekeeping information in association with each other. Sequence data processing method.
【請求項9】 相対時間系の時間単位で示す実行時刻と
その実行時刻に行うイベントとを指示するイベントデー
タを複数有するシーケンスデータを記憶するシーケンス
データ記憶手段と、 所定の開始時刻の値として累積相対時刻の初期値を記憶
する初期相対時刻記憶手段と、 前記所定の開始時刻の値として累積絶対時刻の初期値を
記憶する初期絶対時刻記憶手段と、 前記所定の開始時刻の値として実行テンポの初期値を記
憶する初期実行テンポ記憶手段と、 前記複数のイベントデータを前記実行時刻順に読み出す
イベントデータ読出手段と、 前記読み出されたイベントデータが示す実行時刻とその
時点の前記累積相対時刻との差である相対時刻差を決定
する相対時刻差決定手段と、 前記イベントデータが読み出された時点の実行テンポと
前記相対時刻差に基づいて、前記相対時刻差に相当する
絶対時刻差を決定する絶対時刻差決定手段と、 前記相対時刻差をその時点の前記累積相対時刻に累積し
て更新する累積相対時刻更新手段と、 前記絶対時刻差をその時点の前記累積絶対時刻に累積し
て更新する累積絶対時刻更新手段と、 前記累積相対時刻を相対計時情報として出力するととも
に、前記累積絶対時刻を絶対計時情報として前記相対計
時情報と対応させて出力する計時情報出力手段と、 前記読み出されたイベントデータが示すイベントを実行
するイベント実行手段と、を備えたことを特徴とするシ
ーケンサ。
9. A sequence data storage means for storing sequence data having a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event to be executed at the execution time, and accumulating the sequence data as a value of a predetermined start time. Initial relative time storage means for storing an initial value of relative time; initial absolute time storage means for storing an initial value of cumulative absolute time as the value of the predetermined start time; and execution tempo as the value of the predetermined start time. An initial execution tempo storage unit that stores an initial value; an event data reading unit that reads the plurality of event data in the order of the execution time; and an execution time indicated by the read event data and the accumulated relative time at that time. A relative time difference determining means for determining a relative time difference that is a difference, and an execution tempo at the time when the event data is read and An absolute time difference determining unit that determines an absolute time difference corresponding to the relative time difference based on the relative time difference; and a cumulative relative time update that accumulates and updates the relative time difference to the cumulative relative time at that time. Means, an accumulative absolute time updating means for accumulating and updating the absolute time difference to the accumulative absolute time at that time, and outputting the accumulative relative time as relative time information, and using the accumulative absolute time as absolute time information. A sequencer comprising: timing information output means for outputting the time information in association with the relative time information; and event executing means for executing an event indicated by the read event data.
【請求項10】 実行テンポ変更のイベントを含む1種
以上の所定イベントが定められ、相対時間系の時間単位
で示す実行時刻とその実行時刻に行うイベントとを指示
するイベントデータを複数有するシーケンスデータを記
憶するシーケンスデータ記憶手段と、 シーケンス上の目的位置を相対時間系の時間単位で示す
目的時刻を決定する目的時刻決定手段と、 所定の開始時刻の値として累積相対時刻の初期値を記憶
する初期相対時刻記憶手段と、 前記所定の開始時刻の値として累積絶対時刻の初期値を
記憶する初期絶対時刻記憶手段と、 前記所定の開始時刻の値として実行テンポの初期値を記
憶する初期実行テンポ記憶手段と、 前記複数のイベントデータを前記実行時刻順に前記目的
時刻まで読み出すイベントデータ読出手段と、 前記読み出されたイベントデータが示すイベントが前記
複数種類の所定イベントのうちの1である場合、そのイ
ベントデータが示す実行時刻とその時点の前記累積相対
時刻との差である相対時刻差を決定する相対時刻差決定
手段と、 前記所定イベントのうちの1である場合、その時点の前
記実行テンポと前記相対時刻差に基づいて、前記相対時
刻差に相当する絶対時刻差を決定する絶対時刻差決定手
段と、 前記所定イベントのうちの1である場合、前記相対時刻
差をその時点の前記累積相対時刻に累積して更新する累
積相対時刻更新手段と、 前記所定イベントのうちの1である場合、前記絶対時刻
差をその時点の前記累積絶対時刻に累積して更新する累
積絶対時刻更新手段と、 前記読み出されたイベントデータが示すイベントが前記
実行テンポ変更のイベントの場合、テンポ変更により実
行テンポを更新する実行テンポ更新手段と、 前記読み出されたイベントデータが示す実行時刻が前記
目的時刻の場合、前記累積相対時刻を相対計時情報とし
て出力するとともに、前記累積絶対時刻を絶対計時情報
として前記相対計時情報と対応させて出力する計時情報
出力手段と、を備えたことを特徴とするシーケンサ。
10. Sequence data in which at least one type of predetermined event including an event of an execution tempo change is defined, and a plurality of event data indicating an execution time indicated by a time unit of a relative time system and an event to be performed at the execution time are set. Sequence data storage means for storing a target time on a sequence, a target time determination means for determining a target time indicating a target position in a relative time system, and an initial value of the accumulated relative time as a value of a predetermined start time. Initial relative time storage means, initial absolute time storage means for storing an initial value of the accumulated absolute time as the value of the predetermined start time, and initial execution tempo for storing an initial value of the execution tempo as the value of the predetermined start time Storage means; event data reading means for reading the plurality of event data in order of the execution time up to the target time; When the event indicated by the issued event data is one of the plurality of types of predetermined events, a relative time difference that determines a relative time difference between the execution time indicated by the event data and the accumulated relative time at that time. Time difference determining means; and if the event is one of the predetermined events, an absolute time difference determining means for determining an absolute time difference corresponding to the relative time difference based on the execution tempo and the relative time difference at that time. An accumulated relative time updating means for accumulating and updating the relative time difference to the accumulated relative time at that time when the event is one of the predetermined events; and Cumulative absolute time updating means for accumulating and updating an absolute time difference with the cumulative absolute time at that time; and an event indicated by the read event data is used for changing the execution tempo. In the case of the event, the execution tempo updating means for updating the execution tempo by changing the tempo, and when the execution time indicated by the read event data is the target time, the accumulated relative time is output as relative timing information, Timing information output means for outputting the accumulated absolute time as absolute time information in association with the relative time information.
【請求項11】 前記目的時刻指定手段は、前記目的時
刻を示す数値を直接入力する目的時刻数値入力手段を有
することを特徴とする、請求項10に記載のシーケン
サ。
11. The sequencer according to claim 10, wherein the target time designation means has target time value input means for directly inputting a numerical value indicating the target time.
【請求項12】 前記目的時刻指定手段は、任意の実行
時刻を初期値としてその値を変化させて前記目的時刻に
合わせることにより前記目的時刻を入力する目的時刻変
更入力手段を有することを特徴とする、請求項10また
は11に記載のシーケンサ。
12. The target time specifying means includes target time change input means for inputting the target time by changing an arbitrary execution time as an initial value and adjusting the value to the target time. The sequencer according to claim 10, wherein
【請求項13】 前記シーケンスデータには、所定の楽
譜に対応して演奏を行うためのイベントを指示するイベ
ントデータが含まれることを特徴とする、請求項9ない
し12のいずれかに記載のシーケンサ。
13. The sequencer according to claim 9, wherein the sequence data includes event data indicating an event for performing a performance corresponding to a predetermined score. .
【請求項14】 前記相対計時情報には、楽譜上の位置
に対応する楽譜情報が含まれることを特徴とする、請求
項13に記載のシーケンサ。
14. The sequencer according to claim 13, wherein the relative timing information includes musical score information corresponding to a position on the musical score.
【請求項15】 前記楽譜情報には、その時点の小節情
報および拍情報の少なくとも1が含まれることを特徴と
する、請求項14に記載のシーケンサ。
15. The sequencer according to claim 14, wherein the musical score information includes at least one of bar information and beat information at that time.
【請求項16】 前記計時情報出力手段は、前記相対計
時情報と絶対計時情報とを対応させて表示する計時情報
表示手段を有することを特徴とする、請求項9ないし1
5のいずれかに記載のシーケンサ。
16. The time information output means includes time information display means for displaying the relative time information and the absolute time information in association with each other.
5. The sequencer according to any one of 5.
【請求項17】 請求項9ないし16のいずれかに記載
のシーケンサを備えたことを特徴とする電子楽器。
An electronic musical instrument comprising the sequencer according to any one of claims 9 to 16.
JP2000197197A 2000-06-29 2000-06-29 Sequence data processing method and sequencer, and electronic musical instrument Pending JP2002014674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000197197A JP2002014674A (en) 2000-06-29 2000-06-29 Sequence data processing method and sequencer, and electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000197197A JP2002014674A (en) 2000-06-29 2000-06-29 Sequence data processing method and sequencer, and electronic musical instrument

Publications (1)

Publication Number Publication Date
JP2002014674A true JP2002014674A (en) 2002-01-18

Family

ID=18695557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000197197A Pending JP2002014674A (en) 2000-06-29 2000-06-29 Sequence data processing method and sequencer, and electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2002014674A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183609A (en) * 2003-11-14 2010-08-19 Nokia Corp Wireless multi-recorder system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183609A (en) * 2003-11-14 2010-08-19 Nokia Corp Wireless multi-recorder system

Similar Documents

Publication Publication Date Title
JPH1074093A (en) Karaoke machine
US7915513B2 (en) Automatic accompaniment generating apparatus and method
JP3551087B2 (en) Automatic music playback device and recording medium storing continuous music information creation and playback program
JPH11109980A (en) Karaoke sing-along machine
JPH11284680A (en) Electronic device, method for modifying circuit configuration of the electronic device and karaoke sing along device
JPH1031495A (en) Karaoke device
JP2002014674A (en) Sequence data processing method and sequencer, and electronic musical instrument
JP3504296B2 (en) Automatic performance device
JP3214623B2 (en) Electronic music playback device
JP2002014673A (en) Method and device for processing performance data of electronic musical instrument, and method and device for automatic performance
JP2743808B2 (en) Automatic performance device
JP2862062B2 (en) Karaoke equipment
JP3407563B2 (en) Automatic performance device and automatic performance method
JP2002304175A (en) Waveform-generating method, performance data processing method and waveform-selecting device
JPH10116070A (en) Musical playing device
JP3166670B2 (en) Karaoke device and automatic performance device
US7663050B2 (en) Automatic accompaniment apparatus, method of controlling the same, and program for implementing the method
JP5200368B2 (en) Arpeggio generating apparatus and program for realizing arpeggio generating method
JP3767418B2 (en) Automatic performance device and automatic performance control program
JPH07104745A (en) Automatic playing device
JP3166671B2 (en) Karaoke device and automatic performance device
JP2017015957A (en) Musical performance recording device and program
JP2007178890A (en) Automatic playing musical device
JPH11288282A (en) Performance information converting device
JP2002108336A (en) Sequence control method for electronic equipment, sequencer, and electronic musical instrument