JP2008250016A - Device for reproducing musical performance data, data structure of musical performance data and program - Google Patents

Device for reproducing musical performance data, data structure of musical performance data and program Download PDF

Info

Publication number
JP2008250016A
JP2008250016A JP2007091530A JP2007091530A JP2008250016A JP 2008250016 A JP2008250016 A JP 2008250016A JP 2007091530 A JP2007091530 A JP 2007091530A JP 2007091530 A JP2007091530 A JP 2007091530A JP 2008250016 A JP2008250016 A JP 2008250016A
Authority
JP
Japan
Prior art keywords
data
line position
bar line
loop
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007091530A
Other languages
Japanese (ja)
Inventor
Sei Hasebe
聖 長谷部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2007091530A priority Critical patent/JP2008250016A/en
Publication of JP2008250016A publication Critical patent/JP2008250016A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the following problem: "measure line data" indicative of delimitations of measures in terms of musical grammar are sometimes included in musical performance data so as to display or print the musical performance data in musical score form, and the position of the "measure line data" however slightly shifts in timing from measure line positions calculated from a tempo etc., so as to avoid events associated with "beforebeat" and "afterbeat" playing styles and when some or a plurality of measures of the musical performance data are specified and loop-reproduced as background music of a game etc., the game and music gradually shift in timing. <P>SOLUTION: Differences Δts between effective measure line positions (event time parts 42-ka of respective measure line data) and calculated measure line positions are recorded in the measure line data (measure line data 42-1, 42-6, 42-15, etc.). When the musical performance data are loop-reproduced based upon measures as units, a loop section is determined based upon intervals of the calculated measure line positions. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像等と同期して演奏データをループ再生する場合に用いて好適な演奏データ再生装置、演奏データのデータ構造およびプログラムに関する。   The present invention relates to a performance data reproducing apparatus, a performance data structure, and a program suitable for use in reproducing performance data in a loop in synchronization with an image or the like.

演奏データを楽譜の形式で表示または印刷できるように、小節の区切りである「小節線データ」を演奏データ内に含めておく技術が特許文献1に開示されている。ここで、演奏データの時間軸内における小節線データの位置を決定する方法として、テンポや拍子に基づいて単純に決定する方法が考えられる。例えば、テンポが「120」であって「4/4拍子」の楽曲においては、「1」小節の長さが「2秒」になるため、演奏開始タイミングから「2秒」毎に小節線位置を定めることも考えられる。   Japanese Patent Application Laid-Open No. 2004-151561 discloses a technique for including “bar line data”, which is a measure delimiter, in performance data so that the performance data can be displayed or printed in the form of a score. Here, as a method for determining the position of the bar line data within the time axis of the performance data, a method of simply determining based on the tempo and the time signature can be considered. For example, in a song with a tempo of “120” and a “4/4 time signature”, the bar length of “1” is “2 seconds”, so the bar line position is changed every 2 seconds from the performance start timing. It is also possible to determine

しかし、実際の演奏は必ずしも正確なタイミングで行われるわけではなく、例えば、楽譜上のタイミングよりも早いタイミングで演奏する「前ノリ」や、楽譜上のタイミングよりも遅いタイミングで演奏する「後ノリ」などの奏法が適宜採られるため、単純に所定時間ごとに小節線位置を定めると、楽譜上では不適切な位置に小節線が表示されることになる。そこで、特許文献2においては、演奏データを解析しながら適切な小節線位置を自動的に決定してゆく技術が開示されている。また、自動的に決定された小節線位置が不適切である場合には、演奏データの作成者のマニュアル操作によって小節線位置を適宜修正することも可能である。何れにしても、このようにして決定された小節線位置は、テンポや拍子に基づいて計算上で求まるタイミングよりも若干ずれたものになり、上述した例(テンポ「120」、「4/4拍子」)においては、各小節の長さは正確に「2秒」にはならない場合が生じる。   However, the actual performance is not always performed at an accurate timing. For example, “previous” playing at a timing earlier than the timing on the score or “rear past” playing at a timing later than the timing on the score. , Etc. are appropriately adopted. If the bar line position is simply determined every predetermined time, the bar line is displayed at an inappropriate position on the score. Therefore, Patent Document 2 discloses a technique for automatically determining an appropriate bar line position while analyzing performance data. Further, when the automatically determined bar line position is inappropriate, the bar line position can be appropriately corrected by manual operation of the creator of the performance data. In any case, the bar line position determined in this way is slightly deviated from the timing calculated in the calculation based on the tempo and time signature, and the above example (tempo “120”, “4/4”). In “time signature”), the length of each measure may not be exactly “2 seconds”.

また、特許文献3には、演奏データを再生しつつ、該演奏データに同期した画面をディスプレイに表示し、再生される演奏データおよび画面に応じた正しいタイミングでユーザがボタンを押下すると、ユーザに得点が加算されてゆくゲームに関する技術が開示されている。   Further, in Patent Document 3, while playing performance data, a screen synchronized with the performance data is displayed on the display, and when the user presses a button at the right timing according to the played performance data and the screen, the user is prompted. A technique relating to a game in which scores are added is disclosed.

特開平9−16169号公報JP-A-9-16169 特開平7−129158号公報JP 7-129158 A 特開2002−229574号公報JP 2002-229574 A

ところで、演奏データは単独で再生されるのみならず、演奏データのうち一部の小節のみがアニメーションやゲーム等の背景音楽としてループ再生される場合がある。ここで、演奏データがテンポ「120」、「4/4拍子」であるとし、アニメーション等がこれに同期して表示されるようにしておき、演奏データのうち任意の一または複数の小節をループ再生すると、演奏データの各小節の長さが正確に「2秒」にならないことから、誤差が徐々に累積し、アニメーションやゲーム等の表示のタイミングと演奏データの再生タイミングとの間に「ずれ」が生じるようになる。
この発明は上述した事情に鑑みてなされたものであり、ループ区間の先頭に前ノリの音符がある場合でもそれを欠く事なく、テンポに対応した正確な周期で演奏データを確実にループ再生することができる演奏データ再生装置、演奏データのデータ構造およびプログラムを提供することを目的としている。
By the way, the performance data is not only reproduced alone, but only a part of the performance data may be reproduced in a loop as background music such as an animation or a game. Here, it is assumed that the performance data has a tempo of “120” and “4/4 time signature”, animations and the like are displayed in synchronization therewith, and one or more bars in the performance data are looped. Since the length of each measure of the performance data does not accurately become “2 seconds” during playback, errors gradually accumulate, and there is a “lag” between the display timing of the animation or game and the playback timing of the performance data. "Comes to occur.
The present invention has been made in view of the above-described circumstances, and even if there is a previous note at the beginning of the loop section, the performance data is reliably loop-reproduced at an accurate cycle corresponding to the tempo without missing it. An object of the present invention is to provide a performance data reproducing apparatus, a data structure of performance data, and a program.

上記課題を解決するため本発明にあっては、下記構成を具備することを特徴とする。なお、括弧内は例示である。
請求項1記載の演奏データ再生装置にあっては、楽音の発音および消音を指示するノートイベントデータを記録し、(a)不均等な小節線位置である実効小節線位置と、(b)楽曲のテンポおよび拍子に基づいて計算上で求まる均等な計算上小節線位置とを特定可能な演奏データに基づいて、該演奏データのうち繰り返し再生される区間であるループ区間を決定し該演奏データをループ再生する演奏データ再生装置であって、ループ開始小節(A)とループ終了小節(B)との指定を受信すると、前記ループ開始小節(A)の開始タイミングに係る第1の実効小節線位置に対応する第1の計算上小節線位置(tsa)と前記ループ終了小節(B)の終了タイミングに係る第2の実効小節線位置に対応する第2の計算上小節線位置(teb)とを認識する計算上小節線位置認識手段(SP4,SP10)と、前記第1の計算上小節線位置(tsa)から前記第2の計算上小節線位置(teb)までの間隔に等しい間隔を有するループ区間であって、前記第1の実効小節線位置以降に最初に生じるノートオンイベントと同時または該ノートオンイベント以前に再生開始タイミング(t0)を有し、前記第2の実効小節線位置以前に最後に終了するノートオフイベントと同時または該ノートオフイベント以降に再生終了タイミング(tend)を有するループ区間を決定するループ区間決定手段(SP8,SP14)とを有することを特徴とする。
さらに、請求項2記載の構成にあっては、請求項1記載の演奏データ再生装置において、前記演奏データは、前記実効小節線位置を指定するイベントデータである小節線データを含むものであり、前記各小節線データは、当該小節線データのイベントタイミング(イベント時刻部42−ka)と、該イベントタイミングと対応する計算上小節線位置との差分(Δts)とを有することを特徴とする。
さらに、請求項3記載の構成にあっては、請求項1または2記載の演奏データ再生装置において、前記再生開始タイミング(t0)から前記再生終了タイミング(tend)までの範囲で時刻データ(t)を繰り返しループさせる時刻データ発生手段(SP16,SP30,クロック回路5)と、前記ノートイベントデータのうちイベントタイミングが前記時刻データ(t)に一致するノートイベントデータを、該ノートイベントデータが前記ループ区間に属することを条件として再生する再生手段(SP19,SP28)とをさらに有することを特徴とする。
また、請求項4記載の演奏データ再生装置にあっては、不均等な小節線位置である実効小節線位置を指定する小節線データと楽音の発音または消音を指定するノートイベントデータとを含む演奏データと、該演奏データに適用される時間軸上に定められたループ区間の再生開始タイミング(t0)と、前記時間軸上に定められた前記ループ区間の再生終了タイミング(tend)と、前記ループ区間の再生対象となる一または複数のループ対象小節であって前記実効小節線位置によって区切られるループ対象小節とに基づいて前記演奏データをループ再生するループ再生方法であって、前記再生開始タイミング(t0)と前記再生終了タイミング(tend)との間の区間で時刻データ(t)を繰り返しループさせる時刻データ発生手段(SP16,SP30,クロック回路5)と、前記ノートイベントデータのうちイベントタイミングが前記時刻データ(t)に一致するノートイベントデータを、該ノートイベントデータが前記ループ対象小節に属することを条件として再生する再生手段(SP19,SP28)とを有することを特徴とする。
また、請求項5記載の演奏データ再生装置にあっては、音楽データを再生し、前記音楽データに対応する演奏データに従って該演奏データに含まれるイベントデータの内容を表示装置に表示する演奏データ再生装置であって、前記演奏データは、不均等な小節線位置である実効小節線位置を指定する小節線データを含み、該実効小節線位置によって区切られる区間を更新単位として、前記表示装置の表示内容を更新する更新手段(SP58)を有することを特徴とする。
また、請求項6記載の演奏データのデータ構造にあっては、不均等な小節線位置である実効小節線位置を指定する小節線データを含む演奏データのデータ構造であって、前記演奏データに係る楽曲のテンポおよび拍子に基づいて計算上で求まる計算上小節線位置、または前記小節線データにおいて指定される実効小節線位置と該計算上小節線位置との差分(Δts)を記録したことを特徴とする。
また、請求項7記載のプログラムにあっては、(a)不均等な小節線位置である実効小節線位置と、(b)楽曲のテンポおよび拍子に基づいて計算上で求まる計算上小節線位置とを特定可能な演奏データに基づいて、処理装置(6)を用いて該演奏データのうち繰り返し再生される区間であるループ区間を決定するプログラムであって、ループ開始小節(A)とループ終了小節(B)との指定を受信すると、前記ループ開始小節(A)の開始タイミングに係る第1の実効小節線位置に対応する第1の計算上小節線位置(tsa)と前記ループ終了小節(B)の終了タイミングに係る第2の実効小節線位置に対応する第2の計算上小節線位置(teb)とを認識する計算上小節線位置認識過程(SP4,SP10)と、前記第1の計算上小節線位置(tsa)から前記第2の計算上小節線位置(teb)までの間隔に等しい間隔を有するループ区間であって、前記第1の実効小節線位置以降に最初に生じるノートオンイベントと同時または該ノートオンイベント以前に再生開始タイミング(t0)を有し、前記第2の実効小節線位置以前に最後に終了するノートオフイベントと同時または該ノートオフイベント以降に再生終了タイミング(tend)を有するループ区間を決定するループ区間決定過程(SP8,SP14)とを前記処理装置(6)に実行させることを特徴とする。
また、請求項8記載のプログラムにあっては、不均等な小節線位置である実効小節線位置を指定する小節線データと楽音の発音または消音を指定するノートイベントデータとを含む演奏データと、該演奏データに適用される時間軸上に定められたループ区間の再生開始タイミング(t0)と、前記時間軸上に定められた前記ループ区間の再生終了タイミング(tend)と、前記ループ区間の再生対象となる一または複数のループ対象小節であって前記実効小節線位置によって区切られるループ対象小節とに基づいて、処理装置(6)を用いて前記演奏データをループ再生するプログラムであって、前記再生開始タイミング(t0)と前記再生終了タイミング(tend)との間の区間で時刻データ(t)を繰り返しループさせる時刻データ発生過程(SP16,SP30)と、前記ノートイベントデータのうちイベントタイミングが前記時刻データ(t)に一致するノートイベントデータを、該ノートイベントデータが前記ループ対象小節に属することを条件として再生する再生過程(SP19,SP28)とを前記処理装置(6)に実行させることを特徴とする。
また、請求項9記載のプログラムにあっては、音楽データを再生し、前記音楽データに対応する演奏データであって不均等な小節線位置である実効小節線位置を指定する小節線データを含む演奏データに含まれるイベントデータの内容を処理装置(6)を用いて表示装置(2)に表示するプログラムであって、該実効小節線位置によって区切られる区間を更新単位として、前記表示装置の表示内容を更新する更新過程(SP58)を前記処理装置(6)に実行させることを特徴とする。
In order to solve the above problems, the present invention is characterized by having the following configuration. The parentheses are examples.
In the performance data reproducing apparatus according to claim 1, note event data for instructing the sound generation and mute is recorded, (a) an effective bar line position which is an uneven bar line position, and (b) a music piece. On the basis of performance data that can specify an equivalent calculated bar line position calculated based on the tempo and time signature, a loop section, which is a section that is repeatedly reproduced, is determined from the performance data. A performance data reproducing apparatus for performing loop reproduction, when receiving a designation of a loop start measure (A) and a loop end measure (B), a first effective measure line position relating to a start timing of the loop start measure (A) And the second calculated bar line position (teb) corresponding to the second effective bar line position corresponding to the end timing of the loop end bar (B). Recognized calculations Upper bar line position recognition means (SP4, SP10) and a loop section having an interval equal to an interval from the first calculated upper bar line position (tsa) to the second calculated upper bar line position (teb). And the playback start timing (t0) at the same time as the first note-on event occurring after the first effective bar line position or before the note-on event, and finally ending before the second effective bar line position Loop section determining means (SP8, SP14) for determining a loop section having a reproduction end timing (tend) at the same time as or after the note-off event.
Furthermore, in the configuration according to claim 2, in the performance data reproducing device according to claim 1, the performance data includes bar line data which is event data for designating the effective bar line position, Each bar line data has an event timing (event time part 42-ka) of the bar line data and a difference (Δts) between the event timing and a calculated bar line position corresponding to the event timing.
Furthermore, in the configuration according to claim 3, in the performance data reproducing device according to claim 1 or 2, time data (t) in a range from the reproduction start timing (t0) to the reproduction end timing (tend). Time data generating means (SP16, SP30, clock circuit 5) for repeatedly looping, and note event data whose event timing matches the time data (t) among the note event data, the note event data is the loop interval And reproducing means (SP19, SP28) for reproducing on the condition of belonging to
The performance data reproducing apparatus according to claim 4, wherein the performance data includes bar line data for specifying an effective bar line position, which is an unequal bar line position, and note event data for specifying sound generation or muting. Data, a reproduction start timing (t0) of a loop section defined on the time axis applied to the performance data, a reproduction end timing (tend) of the loop section defined on the time axis, and the loop A loop playback method for loop-playing the performance data based on one or a plurality of loop target bars to be played back in a section and loop target bars separated by the effective bar line position, wherein the playback start timing ( time data generating means (SP16, S) for repeatedly looping time data (t) in a section between t0) and the reproduction end timing (tend). 30 and a clock circuit 5) and reproduction means for reproducing the note event data whose event timing matches the time data (t) in the note event data on condition that the note event data belongs to the loop target measure. (SP19, SP28).
6. The performance data reproducing apparatus according to claim 5, wherein music data is reproduced, and contents of event data included in the performance data are displayed on a display device in accordance with the performance data corresponding to the music data. The performance data includes bar line data that specifies an effective bar line position that is an unequal bar line position, and the display unit displays a section divided by the effective bar line position as an update unit. It has the update means (SP58) which updates the content, It is characterized by the above-mentioned.
The data structure of performance data according to claim 6 is a data structure of performance data including bar line data for designating an effective bar line position which is an unequal bar line position. That the calculated bar line position calculated in the calculation based on the tempo and time signature of the music or the difference (Δts) between the effective bar line position specified in the bar line data and the calculated bar line position is recorded. Features.
Further, in the program according to claim 7, (a) an effective bar line position which is an unequal bar line position, and (b) a calculated bar line position which is calculated based on the tempo and time signature of the music. Is a program for determining a loop section, which is a section to be repeatedly reproduced in the performance data, using the processing device (6) based on the performance data that can specify the loop start measure (A) and the loop end. When the designation of the bar (B) is received, the first calculated bar line position (tsa) corresponding to the first effective bar line position related to the start timing of the loop start bar (A) and the loop end bar ( B) a calculation bar position recognition process (SP4, SP10) for recognizing a second calculation bar position (teb) corresponding to the second effective bar position corresponding to the end timing of B), Calculated bar line position (tsa) A loop section having an interval equal to the interval up to the second calculated bar line position (teb), and at the same time as or before the note-on event that occurs first after the first effective bar line position A loop section having a reproduction start timing (t0) and having a reproduction end timing (tend) at the same time as or after the note-off event last ended before the second effective bar line position is determined. The processing section (6) is caused to execute a loop section determination process (SP8, SP14).
Further, in the program according to claim 8, performance data including bar line data for specifying an effective bar line position which is an unequal bar line position and note event data for specifying sound generation or muting, Playback start timing (t0) of the loop section defined on the time axis applied to the performance data, playback end timing (tend) of the loop section defined on the time axis, and playback of the loop section A program for loop-reproducing the performance data using a processing device (6) based on one or a plurality of loop target bars to be processed and a loop target bar delimited by the effective bar line position, Time data generation process in which time data (t) is repeatedly looped in a section between the reproduction start timing (t0) and the reproduction end timing (tend) ( P16, SP30) and a reproduction process (SP19) of reproducing the note event data whose event timing matches the time data (t) in the note event data on condition that the note event data belongs to the loop target measure. , SP28) are executed by the processing device (6).
According to a ninth aspect of the present invention, the music data is reproduced, and the performance data corresponding to the music data includes bar line data for designating an effective bar line position that is an uneven bar line position. A program for displaying the contents of event data included in performance data on the display device (2) using the processing device (6), wherein the display unit displays the interval delimited by the effective bar line position as an update unit. An update process (SP58) for updating the contents is executed by the processing device (6).

このように、本発明によれば、実効小節線位置にかかわらず、第1および第2の計算上小節線位置の間隔に等しい間隔を有するループ区間を決定できるから、ループ区間の先頭に前ノリの音符がある場合でもそれを欠く事なく、テンポに対応した正確な周期で演奏データを確実にループ再生することができる。   Thus, according to the present invention, a loop section having an interval equal to the interval between the first and second calculated bar line positions can be determined regardless of the effective bar line position. Even if there is a note, it is possible to reliably reproduce the performance data in a loop with an accurate cycle corresponding to the tempo.

1.実施例の構成
次に、本発明の一実施例の音楽プレーヤの構成を図1を参照し説明する。音楽プレーヤ1において2はLCD(液晶表示装置)、4は該LCD2を制御するLCDインタフェースである。6はCPUであり、ROM14に記憶されたプログラムに基づいて、システムバス10を介して各部を制御する。5はクロック回路であり、音楽データの再生の基準タイミングとなる時刻データtを出力するとともに、CPU6に対してタイマ割込みを発生させる。20は楽音再生部であり、演奏データに基づいてデジタル音声信号(楽音信号)を生成する音源部22と、AAC形式またはMP3形式等の圧縮音声データを非圧縮のデジタル音声信号に変換するデコーダ24と、音源部22またはデコーダ24から出力されたデジタル音声信号にエフェクトを付与するDSP(Digital Signal Processor)26等とから構成されている。8はDAコンバータであり、楽音再生部20から出力されたデジタル音声信号をアナログ音声信号に変換する。変換されたアナログ音声信号はサウンドシステム9を介して発音される。12はRAMであり、CPU6のワークメモリとして使用される。また、RAM12は不揮発性のRAMであり、後述する音楽データ等もRAM12に記憶される。16は通信モジュールであり、外部機器との間で、音楽データのダウンロード等の処理を行う。18は操作部であり、ユーザによって操作される各種ボタン等から構成される。
1. Configuration of Embodiment Next, the configuration of a music player according to an embodiment of the present invention will be described with reference to FIG. In the music player 1, 2 is an LCD (Liquid Crystal Display), and 4 is an LCD interface for controlling the LCD 2. A CPU 6 controls each unit via the system bus 10 based on a program stored in the ROM 14. Reference numeral 5 denotes a clock circuit that outputs time data t serving as a reference timing for reproduction of music data and causes the CPU 6 to generate a timer interrupt. A tone reproduction unit 20 generates a digital audio signal (musical sound signal) based on performance data, and a decoder 24 that converts compressed audio data such as AAC format or MP3 format into an uncompressed digital audio signal. And a DSP (Digital Signal Processor) 26 for applying an effect to the digital audio signal output from the sound source unit 22 or the decoder 24. A DA converter 8 converts the digital audio signal output from the musical sound reproducing unit 20 into an analog audio signal. The converted analog audio signal is sounded through the sound system 9. A RAM 12 is used as a work memory for the CPU 6. The RAM 12 is a non-volatile RAM, and music data described later is also stored in the RAM 12. Reference numeral 16 denotes a communication module, which performs processing such as downloading music data with an external device. Reference numeral 18 denotes an operation unit, which includes various buttons operated by the user.

次に、本実施例の音楽プレーヤの操作パネルの構成を図3を参照し説明する。図3において81,82はゲーム用のボタンである。83はメニューボタンであり、LCD2に各種のメニューを表示させるために設けられている。84,85は選曲ボタンであり、音楽プレーヤにおいて再生する音楽データを選択する。86は再生・停止ボタンであり、音楽データの再生および停止を指示するものである。この音楽プレーヤにおいては、メニューボタン83等を操作することにより、単に音楽データを再生する「再生モード」、または音楽データを用いてゲームを行う「ゲームモード」のうち何れかの動作モードを選択することができる。そして、図3に示すLCD2の表示画面はゲームモードで動作している場合の表示例を示すものである。この表示画面において112,114は小節線であり、再生中の音楽データの小節の区切りを示す。91〜94は上側操作指示マークであり、ユーザが上側のボタン81を押下すべきタイミングを表すものである。同様に、101〜106は下側操作指示マークであり、ユーザが下側のボタン82を押下すべきタイミングを表すものである。110は再生位置カーソルであり、音楽データの現在の再生位置を表す。そして、図示のように、「2」小節分の操作指示マーク91〜94,101〜106が、小節線112から画面右端部116までの範囲内でLCD2に表示されることになる。   Next, the configuration of the operation panel of the music player of this embodiment will be described with reference to FIG. In FIG. 3, reference numerals 81 and 82 denote game buttons. A menu button 83 is provided to display various menus on the LCD 2. 84 and 85 are music selection buttons for selecting music data to be reproduced in the music player. Reference numeral 86 denotes a play / stop button for instructing to play and stop music data. In this music player, by operating the menu button 83 or the like, one of the “playback mode” for simply playing music data or the “game mode” for playing a game using the music data is selected. be able to. The display screen of the LCD 2 shown in FIG. 3 shows a display example when operating in the game mode. In this display screen, reference numerals 112 and 114 denote bar lines, which indicate the breaks of the bars of the music data being reproduced. Reference numerals 91 to 94 denote upper operation instruction marks, which represent the timing at which the user should press the upper button 81. Similarly, 101 to 106 are lower operation instruction marks, which represent the timing at which the user should press the lower button 82. Reference numeral 110 denotes a playback position cursor, which represents the current playback position of music data. Then, as shown in the figure, the operation instruction marks 91 to 94 and 101 to 106 for “2” bars are displayed on the LCD 2 within the range from the bar line 112 to the right end portion 116 of the screen.

詳細は後述するが、これら操作指示マーク91〜94,101〜106の表示位置を特定するデータをゲーム制御データという。図3においては、ゲーム制御データの連続する「2」小節、例えば第1小節と第2小節とが表示される。再生位置カーソル110は、左端の小節線112の位置から右方向に移動することで現在の再生位置を表示する。そして、再生位置カーソル110が小節線114の位置に到達すると、小節線112から小節線114の間の第1小節の表示が消去され、代わりに第3小節がその位置に表示される。そして、再生位置カーソル110が右端に到達すると、小節線114から右端までの第2小節が消去され、代わりに第4小節がその位置に表示され、さらに再生位置カーソル110は左端(第3小節の始まり)に移動して、右方向への移動を継続する。このような動作を繰り返すことにより、LCD2の表示画面はゲーム制御データの表示を切り替えながら、ユーザに現在の再生位置を示す。ここで、再生位置カーソル110が操作指示マーク91〜94,101〜106の位置に達したタイミングにボタン81,82のうち対応する側を正確に押下することが、ゲームの目的になる。120は得点欄であり、ユーザが現在獲得している得点を表示する。   Although details will be described later, data specifying the display positions of these operation instruction marks 91 to 94 and 101 to 106 is referred to as game control data. In FIG. 3, “2” bars of the game control data, for example, a first bar and a second bar are displayed. The playback position cursor 110 displays the current playback position by moving rightward from the position of the bar line 112 at the left end. When the playback position cursor 110 reaches the position of the bar line 114, the display of the first bar between the bar line 112 and the bar line 114 is deleted, and the third bar is displayed at that position instead. When the playback position cursor 110 reaches the right end, the second bar from the bar line 114 to the right end is deleted, the fourth bar is displayed instead, and the playback position cursor 110 is displayed at the left end (the third bar). To the beginning) and continue moving to the right. By repeating such an operation, the display screen of the LCD 2 shows the current reproduction position to the user while switching the display of the game control data. Here, it is an object of the game to accurately press the corresponding side of the buttons 81 and 82 at the timing when the playback position cursor 110 reaches the positions of the operation instruction marks 91 to 94 and 101 to 106. Reference numeral 120 denotes a score column, which displays the score that the user is currently acquiring.

2.実施例のデータ構成
2.1.音楽データ
次に、本実施例において用いられる各種データについて説明する。本実施例の音楽プレーヤは、音楽データを再生することによって音声信号を出力するものであるが、ここに音楽データには「圧縮音声データ」および「演奏データ」の二種類がある。「圧縮音声データ」とは、例えばAAC形式またはMP3形式等のデータであり、アナログ信号をサンプリングして得られた非圧縮のPCMデータを所定の方式で圧縮することにより得られるデータである。また、「演奏データ」は、ノートオン、ノートオフ等のイベントと、これらイベントのタイミングを規定するデータとから構成される。ここで、楽音再生部20における音楽データの再生アルゴリズムを図2を参照し説明する。図2において圧縮音声データ30および演奏データ32は、RAM12内に記憶されているものである。圧縮音声データ30および演奏データ32は、各々デコーダ24および音源部22に供給されることにより、これらに対応する非圧縮のPCMデータがデコーダ24および音源部22から出力される。
2. Example data structure
2.1. Music Data Next, various data used in this embodiment will be described. The music player of this embodiment outputs audio signals by reproducing music data, and there are two types of music data, “compressed audio data” and “performance data”. “Compressed audio data” is data in the AAC format or MP3 format, for example, and is data obtained by compressing uncompressed PCM data obtained by sampling an analog signal by a predetermined method. “Performance data” is composed of events such as note-on and note-off, and data defining the timing of these events. Here, a music data reproduction algorithm in the musical sound reproduction unit 20 will be described with reference to FIG. In FIG. 2, compressed audio data 30 and performance data 32 are stored in the RAM 12. The compressed audio data 30 and the performance data 32 are supplied to the decoder 24 and the sound source unit 22, respectively, so that uncompressed PCM data corresponding to them is output from the decoder 24 and the sound source unit 22.

26a,26bは効果付与部であり、これらPCMデータに対してエフェクト処理を施す。これらエフェクト処理の施された音声信号は、加算部26cにおいて加算され、DAコンバータ8に出力される。なお、効果付与部26a,26bおよび加算部26cは、DSP26において実行されるマイクロプログラムによって実現される。また、音楽データが演奏データである場合には、該演奏データには、小節線イベントが含まれている。これは、楽音を発生させる際には特に用いられるものではないが、演奏データをループ再生する際に、ループ区間を指定するために用いられる。この小節線イベントのイベント時刻は、楽典上の小節線位置に対応するものになる。   Reference numerals 26a and 26b denote effect applying units, which perform effect processing on the PCM data. The audio signals that have been subjected to the effect processing are added by the adding unit 26 c and output to the DA converter 8. The effect imparting units 26a and 26b and the adding unit 26c are realized by a microprogram executed in the DSP 26. When the music data is performance data, the performance data includes a bar line event. This is not particularly used when generating a musical sound, but is used for designating a loop section when looping performance data. The event time of this bar line event corresponds to the bar line position on the music.

ここで、音楽データである演奏データの構造を図4を参照し説明する。図4において40はヘッダ部であり、曲名、アーティスト名等のテキストデータが記憶される。42はイベントデータ部であり、複数のイベントデータ42−1〜42−nによって構成されている。ここで、各イベントデータ42−k(k=1〜n)は、イベント時刻部42−kaとイベント部42−kbとから成る。なお、図4においてはイベントデータ42−1についてのみ、イベント時刻部42−1aとイベント部42−1bとの符号を付している。イベント時刻部42−kaとは、イベント部42−kbを実行すべきタイミングであるイベント時刻を、当該演奏データの再生開始タイミングを基準とする時間軸において、ミリセカンド単位で表したものである。また、イベント部42−kbは、楽音の発音を指定するノートオンイベント、楽音の消音を指定するノートオフイベント、および上述した小節線イベント等を指定するものである。   Here, the structure of performance data, which is music data, will be described with reference to FIG. In FIG. 4, reference numeral 40 denotes a header portion, which stores text data such as a song title and artist name. Reference numeral 42 denotes an event data section, which is composed of a plurality of event data 42-1 to 42-n. Here, each event data 42-k (k = 1 to n) includes an event time part 42-ka and an event part 42-kb. In FIG. 4, only the event data 42-1 is labeled with the event time part 42-1a and the event part 42-1b. The event time part 42-ka represents the event time, which is the timing at which the event part 42-kb is to be executed, in units of milliseconds on the time axis based on the reproduction start timing of the performance data. The event section 42-kb designates a note-on event for designating the tone of a musical tone, a note-off event for designating the muting of a musical tone, the above-described bar line event, and the like.

ここで、音楽データに含まれる小節線イベントで表された小節線位置、すなわち楽典上で正しい位置に設定された小節線位置を「実効小節線位置」と呼ぶ。また、対象となるテンポおよび拍子に応じて、計算上で求まる小節線位置というものも考えられる。例えば、テンポ「120」、「4/4拍子」を対象として作成されたゲーム制御データにおいては、計算上では「2000msec」間隔で小節線位置が存在すると考えることができる。このように、テンポおよび拍子等に基づいて計算上で求まる小節線位置を「計算上小節線位置」と呼ぶ。   Here, the bar line position represented by the bar line event included in the music data, that is, the bar line position set to the correct position on the music is referred to as an “effective bar line position”. In addition, a bar line position calculated in accordance with the target tempo and time signature may be considered. For example, in the game control data created for the tempo “120” and “4/4 time signature”, it can be considered that the bar line positions exist at intervals of “2000 msec” in the calculation. A bar line position calculated in this way based on the tempo, time signature, and the like is referred to as a “calculated bar line position”.

実効小節線位置は、前ノリや後ノリのイベントタイミングを回避しつつ、楽典上で正しい位置に設定されるため、小節線イベントのイベント時刻部42−kaは、計算上小節線位置から前後にずれる場合がある。小節線データのイベント部42−kbは、該小節線データの識別IDを表す識別ID部42−kcと、該小節線データに対応する小節の小節番号を示す小節番号部42−kdと、該小節線データのイベントタイミング(実効小節線位置)と対応する計算上小節線位置との差分Δtsを示す差分表示部42−keとから成る。ここで、小節番号部42−kdと、楽曲上の小節との関係を図7に示す。図示のように、各小節には「1」から始まる昇順の小節番号が付与されることとし、各小節線データの小節番号部42−kdに記録される「小節番号」は、当該小節線データの直後から始まる小節の小節番号である。   Since the effective bar line position is set to the correct position in the music while avoiding the event timing of the front and rear paths, the event time part 42-ka of the bar line event is calculated forward and backward from the bar line position in the calculation. There may be deviation. The bar line data event part 42-kb includes an identification ID part 42-kc indicating the identification ID of the bar line data, a bar number part 42-kd indicating the bar number of the bar corresponding to the bar line data, It comprises a difference display section 42-ke indicating a difference Δts between the event timing (effective bar line position) of the bar line data and the corresponding calculated bar line position. Here, the relationship between the bar number part 42-kd and the bar on the music is shown in FIG. As shown in the figure, each bar is given an ascending bar number starting from “1”, and the “bar number” recorded in the bar number part 42-kd of each bar line data is the bar line data. This is the measure number of the measure that starts immediately after.

2.2.ゲーム制御データ
ゲーム制御データは、LCD2に操作指示マーク91〜94,101〜106および小節線112,114を表示するとともに、ボタン81,82が適切に操作されたか否かを判定するために用いられる。ゲーム制御データは、直接的には「発音」や「エフェクト」等を指示するデータではないが、音楽データである演奏データと同様の形式によってRAM12に記憶される。すなわち、ゲーム制御データにおいては、ボタン81,82の何れを押下べきかが「ノートオンイベント」の種類によって表される。これらノートオンイベントのタイミングによって押下すべきタイミングが表される。
2.2. Game Control Data The game control data is used to display operation instruction marks 91 to 94, 101 to 106 and bar lines 112 and 114 on the LCD 2 and to determine whether or not the buttons 81 and 82 have been appropriately operated. . The game control data is not data that directly designates “pronunciation” or “effect”, but is stored in the RAM 12 in the same format as the performance data that is music data. That is, in the game control data, which of the buttons 81 and 82 should be pressed is represented by the type of “note on event”. The timing to be pressed is represented by the timing of these note-on events.

但し、上述したLCD2に表示される小節線112,114は、「計算上小節線位置」に基づいて表示される。従って、例えばある小節において前ノリのノートオンイベントがあった場合は、そのノートオンイベントに対応する操作指示マークは、当該小節に係る小節線112,114よりも手前の位置に表示されることになる。これにより、LCD2上での再生位置カーソル110の移動速度を一定にしつつ、前ノリおよび後ノリのイベントデータを確実に表示させることができる。なお、ゲーム制御データのヘッダ部40には、許容誤差ΔTが記憶される。ここで、許容誤差ΔTとは、ボタン81,82の実際の押下タイミングがゲーム制御データによって指定された押下タイミング(ノートオンイベントタイミング)に対して取りうる誤差の範囲であり、この誤差の範囲であれば、該押下タイミングは「適切である」と判断されることになる。   However, the bar lines 112 and 114 displayed on the LCD 2 are displayed based on “calculated bar line position”. Therefore, for example, when there is a previous note-on event in a bar, the operation instruction mark corresponding to the note-on event is displayed at a position before the bar lines 112 and 114 related to the bar. Become. As a result, it is possible to reliably display the event data of the front and rear paths while keeping the moving speed of the reproduction position cursor 110 on the LCD 2 constant. Note that the tolerance error ΔT is stored in the header 40 of the game control data. Here, the allowable error ΔT is a range of errors that the actual pressing timing of the buttons 81 and 82 can take with respect to the pressing timing (note-on event timing) designated by the game control data. If there is, the pressing timing is determined to be “appropriate”.

3.実施例の動作
次に、本実施例の動作を説明する。なお、この動作はCPU6の制御の下に実行される。まず、ユーザによって、ゲーム制御データと、ゲームの背景音楽となる音楽データとが選択され、さらにゲーム制御データおよび音楽データにおいてループ再生する最初の小節番号であるループ開始小節番号Aと、最後の小節番号であるループ終了小節番号Bと、ループ回数LCmaxとが指定されたとする。なお、ループ再生する小節が一小節のみであれば、小節番号A,Bとして同一の値が指定されることになる。かかる指定が終了した後に、ユーザが所定の再生開始操作を行うと、図5,図6に示すメインルーチンが開始される。
3. Next, the operation of this embodiment will be described. This operation is executed under the control of the CPU 6. First, the user selects game control data and music data that is the background music of the game, and further, loop start measure number A, which is the first measure number to be loop-reproduced in the game control data and music data, and the last measure. Assume that a loop end measure number B, which is a number, and a loop count LCmax are designated. If there is only one measure for loop playback, the same value is specified as the measure numbers A and B. When the user performs a predetermined reproduction start operation after the designation is completed, the main routine shown in FIGS. 5 and 6 is started.

図5において処理がステップSP2に進むと、指定された音楽データの中から、ループ開始小節番号Aを有する小節線データが検索される。次に、処理がステップSP4に進むと、該小節線データのイベント時刻部42−kaと、差分表示部42−keに含まれる差分Δtsとに基づいて、該小節線データに対応する計算上小節線位置tsaが計算される。次に、処理がステップSP6に進むと、小節番号Aから小節番号Bまでの全ての小節における最終ノートオフイベントタイミングが検索され、RAM12に記憶される。次に、処理がステップSP8に進むと、小節番号Bの小節内に存在するノートオフイベントタイミングのうち、最終のノートオフイベントタイミングが検索される。そして、この検索されたタイミングが、ループ区間の再生終了タイミングtendに設定される。   When the process proceeds to step SP2 in FIG. 5, measure line data having loop start measure number A is searched from the designated music data. Next, when the process proceeds to step SP4, the calculated bar corresponding to the bar line data is based on the event time part 42-ka of the bar line data and the difference Δts included in the difference display part 42-ke. The line position tsa is calculated. Next, when the process proceeds to step SP6, the last note-off event timings in all the bars from the bar number A to the bar number B are retrieved and stored in the RAM 12. Next, when the process proceeds to step SP8, the last note-off event timing is retrieved from the note-off event timings existing in the measure with the measure number B. The retrieved timing is set as the reproduction end timing tend of the loop section.

次に、処理がステップSP10に進むと、小節番号(B+1)の小節線データが検索され、該小節線データのイベント時刻部42−kaと、差分表示部42−keとに基づいて、対応する計算上小節線位置tebが計算される。次に、処理がステップSP12に進むと、計算上小節線位置tebから再生終了タイミングtendを減算した値が終端差分Δtとして計算される。次に、処理がステップSP14に進むと、計算上小節線位置tsaから該終端差分Δtが減算され、その値が再生開始タイミングt0として求められる。   Next, when the process proceeds to step SP10, bar line data of the bar number (B + 1) is retrieved, and the corresponding action is performed based on the event time part 42-ka and the difference display part 42-ke of the bar line data. In calculation, the bar line position teb is calculated. Next, when the process proceeds to step SP12, a value obtained by subtracting the reproduction end timing tend from the calculated bar line position teb is calculated as the end difference Δt. Next, when the process proceeds to step SP14, the end difference Δt is subtracted from the calculated bar line position tsa, and the value is obtained as the reproduction start timing t0.

ここで、図4に示した演奏データを用いて、上記ステップSP2〜SP14の処理の具体例を説明する。まず、音楽データ内の小節番号Aに係る小節線データとして、図示の小節線データ42−6が検索されたとする。このイベント時刻部42−6aは「1980msec」であり、差分Δtsは「20msec」であるから、小節番号Aの計算上小節線位置tsaは「2000msec」になる。また、ループ終了小節番号Bとしてループ開始小節番号Aと同一の値が指定されたとすると、小節番号Bに係る小節線データとして、小節線データ42−6が再び検索される。ここで、小節線データ42−6以降、次の小節線データ42−15が現れるまでの区間のうち最終のノートオフイベントは、イベントデータ42−14において指定されている。このイベントタイミングが再生終了タイミングtendに設定されるため、再生終了タイミングtendは「3690msec」である。   Here, a specific example of the processing of steps SP2 to SP14 will be described using the performance data shown in FIG. First, it is assumed that illustrated bar line data 42-6 is retrieved as bar line data related to bar number A in the music data. Since the event time portion 42-6a is “1980 msec” and the difference Δts is “20 msec”, the bar line position tsa in the calculation of the bar number A is “2000 msec”. If the same value as the loop start measure number A is designated as the loop end measure number B, the measure line data 42-6 is retrieved again as the measure line data related to the measure number B. Here, the last note-off event in the section from the bar line data 42-6 to the next bar line data 42-15 appears is specified in the event data 42-14. Since this event timing is set to the reproduction end timing tend, the reproduction end timing tend is “3690 msec”.

次に、小節番号(B+1)に係る小節線データは、小節線データ42−15である。そのイベント時刻部42−15aは「3975msec」であり、差分Δtsは「25msec」であるから、小節番号(B+1)の計算上小節線位置tebは「4000msec」である。従って、終端差分Δt(=teb−tend)は「310msec」になり、再生開始タイミングt0(=tsa−Δt)は、「1690msec」になる。以上の演算により、再生開始タイミングt0および再生終了タイミングtendの差は正確に「2000msec」になる。上述した例では、小節番号A,Bを同一小節としたが、ループ区間として複数の小節が指定された場合には、再生開始タイミングt0および再生終了タイミングtendの差は正確に「2000msec×小節数」になる。   Next, bar line data relating to bar number (B + 1) is bar line data 42-15. Since the event time part 42-15a is “3975 msec” and the difference Δts is “25 msec”, the bar line position teb in the calculation of the bar number (B + 1) is “4000 msec”. Accordingly, the terminal difference Δt (= teb−tend) is “310 msec”, and the reproduction start timing t0 (= tsa−Δt) is “1690 msec”. By the above calculation, the difference between the reproduction start timing t0 and the reproduction end timing tend is accurately “2000 msec”. In the above example, the bar numbers A and B are the same bar. However, when a plurality of bars are specified as the loop section, the difference between the playback start timing t0 and the playback end timing tend is exactly “2000 msec × number of bars. "become.

図4の例においては、再生対象として指定された小節内の全てのイベントデータ42−7〜42−14のイベントタイミングは、再生開始タイミングt0および再生終了タイミングtendの間に含まれている。しかし、前ノリや後ノリのイベントデータが存在していた場合には、再生対象として指定された小節内の先頭部分のイベントデータが、再生開始タイミングt0よりも前になる場合がある。例えば、イベントデータ42−14および小節線データ42−15のイベント時刻部において仮に「3990msec」が指定されていたとすると、再生開始タイミングt0は「1990msec」になり、再生開始タイミングt0がイベントデータ42−7のイベントタイミング(1980msec)よりも遅くなる。かかる場合には、例えば再生開始タイミングt0をイベントデータ42−7のイベントタイミングすなわち「1980msec」に修正し、イベントデータ42−14のイベント処理を「3980msec」で切り上げるようにしてもよい。当該イベントデータ42−7のイベント時刻は、再生開始タイミングt0すなわち「1990msec」に等しくなるように修正される。   In the example of FIG. 4, the event timings of all the event data 42-7 to 42-14 in the measure designated as the reproduction target are included between the reproduction start timing t0 and the reproduction end timing tend. However, if there is pre-event or post-event data, the event data at the beginning of the measure specified as the reproduction target may be before the reproduction start timing t0. For example, if “3990 msec” is specified in the event time part of the event data 42-14 and the bar line data 42-15, the reproduction start timing t0 is “1990 msec”, and the reproduction start timing t0 is the event data 42−. 7 later than the event timing (1980 msec). In such a case, for example, the reproduction start timing t0 may be corrected to the event timing of the event data 42-7, that is, “1980 msec”, and the event processing of the event data 42-14 may be rounded up to “3980 msec”. The event time of the event data 42-7 is corrected to be equal to the reproduction start timing t0, that is, “1990 msec”.

ここで、本実施例において、差分Δtsを小節線データに記録しておく意義について説明しておく。図4に示した例は単純な例であるため、計算上小節線位置は常に「2000msec」の倍数になるから、小節番号部42−kdの値を用いれば、特に差分Δtsを記録せずとも計算上小節線位置を求めることができる。しかし、実際の楽曲においては、曲の途中でテンポが変動し、あるいは不完全小節が存在する等の事情が生じるため、単純な計算では計算上小節線位置を求めることが困難になる。そのために、各小節線データに差分Δtsを記録しておくことが望ましいのである。   Here, in this embodiment, the significance of recording the difference Δts in the bar line data will be described. Since the example shown in FIG. 4 is a simple example, the bar line position is always a multiple of “2000 msec” in the calculation. Therefore, if the value of the bar number part 42-kd is used, the difference Δts is not particularly recorded. The bar line position can be calculated. However, in actual music, the tempo changes in the middle of the music, or there are situations such as the presence of an incomplete measure. Therefore, it is difficult to calculate the bar line position by calculation with a simple calculation. Therefore, it is desirable to record the difference Δts in each bar line data.

次に、処理が図6のステップSP16に進むと、クロック回路5において、ゲーム制御データおよび音楽データの再生の基準タイミングとなる時刻データtに再生開始タイミングt0がセットされ、ループカウント(変数)LCに「0」がセットされ、時刻データtのカウントが開始される。次に、処理がステップSP17に進むと、小節番号Aと小節番号A+1について、各小節の最終ノートオフイベントまでの操作指示マークと、小節線112,114とがLCD2に表示される。   Next, when the processing proceeds to step SP16 in FIG. 6, the clock circuit 5 sets the reproduction start timing t0 to the time data t that is the reference timing for reproducing the game control data and the music data, and the loop count (variable) LC. Is set to “0”, and counting of the time data t is started. Next, when the process proceeds to step SP17, the operation instruction mark up to the final note-off event of each measure and the measure lines 112 and 114 are displayed on the LCD 2 for the measure number A and measure number A + 1.

次に、処理がステップSP18に進むと、図8に示すゲーム関係処理サブルーチンが呼び出される。図8において処理がステップSP52に進むと、現在の得点等が計算され、得点欄120、ミス評価値欄122およびミス総数欄124の表示が更新される。次に、処理がステップSP54に進むと、再生位置カーソル110の位置が時刻データtに対応する位置に移動される。次に、処理がステップSP56に進むと、時刻データtは小節内の最終ノートオフタイミングに達したか否かが判定される。ここで「YES」と判定されると、処理はステップSP58に進み、当該小節の表示内容が更新される。例えば、LCD2にゲーム制御データの第1小節と第2小節とが表示されており、再生位置カーソル110が第1小節内の最終ノートオフタイミングに達すると、第1小節内のノートオンイベントに対応する操作指示マークが消去され、代わりに第3小節に対応した操作指示マークが表示されることになる。   Next, when the process proceeds to step SP18, a game related process subroutine shown in FIG. 8 is called. When the process proceeds to step SP52 in FIG. 8, the current score and the like are calculated, and the display of the score column 120, the miss evaluation value column 122, and the total number of misses column 124 is updated. Next, when the process proceeds to step SP54, the position of the reproduction position cursor 110 is moved to a position corresponding to the time data t. Next, when the process proceeds to step SP56, it is determined whether or not the time data t has reached the final note-off timing within the measure. If “YES” is determined here, the process proceeds to step SP58, and the display content of the measure is updated. For example, the first bar and the second bar of the game control data are displayed on the LCD 2, and when the playback position cursor 110 reaches the final note-off timing in the first bar, it corresponds to the note-on event in the first bar. The operation instruction mark to be deleted is deleted, and an operation instruction mark corresponding to the third measure is displayed instead.

ここで、上記第1小節〜第3小節等、ステップSP58において更新される単位となる「小節」とは、実効小節線位置で区切られた小節である。一方、LCD2内の小節線112,114は、計算上小節線位置に対応している。このため、第3小節に対応した操作指示マークは、必ずしも小節線112と小節線114との間に表示されるとは限らない。例えば、第3小節内に前ノリのノートオンイベントが存在し、そのイベントタイミングが計算上の第3小節線位置よりも若干前に位置していた場合には、画面右端部116より若干左の位置に、対応する操作指示マークが表示されることになる。以上のステップが終了すると、処理はメインルーチン(図6)に戻る。   Here, the “bars” that are units updated in step SP58, such as the first bar to the third bar, are bars that are delimited by the effective bar line positions. On the other hand, the bar lines 112 and 114 in the LCD 2 correspond to the bar line positions in the calculation. For this reason, the operation instruction mark corresponding to the third bar is not necessarily displayed between the bar line 112 and the bar line 114. For example, if there is a previous note-on event in the third measure and the event timing is located slightly before the calculated third measure line position, it is slightly to the left of the right edge 116 of the screen. A corresponding operation instruction mark is displayed at the position. When the above steps are completed, the process returns to the main routine (FIG. 6).

次に、処理がステップSP19に進むと、現在の時刻データtは、イベント有効タイミングtxa以上であるか否かが判定される。ここで、イベント有効タイミングtxaとは、ループ開始小節番号Aの小節線データのイベント時刻部42−kaの値(図4の例では1980msec)であり、このタイミングよりも早いタイミングのイベントは無視する必要がある。ここで「YES」と判定されると処理はステップSP20に進み、現在の時刻データtは、音楽データの何れかのノートイベント(ノートオンまたはノートオフ)のタイミングに一致しているか否かが判定される。ここで「YES」と判定されると、処理はステップSP28に進み、該ノートイベントが音源部22に送信され、対応する楽音信号が発生または消音される。   Next, when the process proceeds to step SP19, it is determined whether or not the current time data t is the event valid timing txa or more. Here, the event valid timing txa is the value of the event time part 42-ka (1980 msec in the example of FIG. 4) of the measure line data of the loop start measure number A, and an event earlier than this timing is ignored. There is a need. If "YES" is determined here, the process proceeds to step SP20, and it is determined whether or not the current time data t matches the timing of any note event (note on or note off) of the music data. Is done. If "YES" is determined here, the process proceeds to step SP28, the note event is transmitted to the sound source unit 22, and the corresponding musical sound signal is generated or muted.

次に、処理がステップSP22に進むと、時刻データtは再生終了タイミングtend以上であるか否かが判定される。ここで「NO」と判定されると、処理はステップSP18に戻り、ステップSP18〜SP22の処理が繰り返される。その後、時刻データtが再生終了タイミングtend以上になると、処理はステップSP24に進み、ループカウントLCが「1」だけインクリメントされる。次に、処理がステップSP26に進むと、ループカウントLCがループ回数LCmax以上であるか否かが判定される。ここで「NO」と判定されると処理はステップSP30に進み、クロック回路5においてカウントされている時刻データtが再生開始タイミングt0に戻され、処理はステップSP18に戻る。このように、再生開始タイミングt0から再生終了タイミングtendに至るまでのノートイベントが繰り返し再生され、ループカウントLCがループ回数LCmaxになると、ステップSP26において「YES」と判定され本ルーチンの処理が終了する。   Next, when the process proceeds to step SP22, it is determined whether or not the time data t is greater than or equal to the reproduction end timing tend. If "NO" is determined here, the process returns to step SP18, and the processes of steps SP18 to SP22 are repeated. Thereafter, when the time data t becomes equal to or greater than the reproduction end timing tend, the process proceeds to step SP24, and the loop count LC is incremented by “1”. Next, when the process proceeds to step SP26, it is determined whether or not the loop count LC is equal to or greater than the loop count LCmax. If "NO" is determined here, the process proceeds to step SP30, the time data t counted in the clock circuit 5 is returned to the reproduction start timing t0, and the process returns to step SP18. As described above, when the note event from the reproduction start timing t0 to the reproduction end timing tend is repeatedly reproduced and the loop count LC reaches the loop count LCmax, “YES” is determined in step SP26, and the processing of this routine is terminated. .

4.変形例
本発明は上述した実施例に限定されるものではなく、例えば以下のように種々の変形が可能である。
(1)上記実施例においては、小節番号(B+1)の実効小節線位置の直前に位置するノートオフイベントのイベントタイミングをループ区間の再生終了タイミングtendに設定し、この再生終了タイミングtendを基準としてループ区間の再生開始タイミングt0を求めたが、再生開始タイミングt0および再生終了タイミングtendの決定方法は上述したものに限られない。すなわち、再生開始タイミングt0は、ループ開始小節番号A内の最初のノートオンイベントと同一かそれより早いタイミングでよければよく、再生終了タイミングtendは、ループ終了小節番号B内の最後のノートオフイベントと同一かそれより遅いタイミングであればよい。かかる条件を満たす限り、再生終了タイミングtendと再生開始タイミングt0との差が計算上の小節長の倍数になるように、これらタイミングt0,tendを自由に設定してもよい。
Four. Modifications The present invention is not limited to the above-described embodiments, and various modifications can be made as follows, for example.
(1) In the above embodiment, the event timing of the note-off event located immediately before the effective bar line position of the bar number (B + 1) is set as the playback end timing tend of the loop section, and this playback end timing tend is used as a reference. Although the reproduction start timing t0 of the loop section is obtained, the method for determining the reproduction start timing t0 and the reproduction end timing tend is not limited to the above. That is, the playback start timing t0 may be the same as or earlier than the first note-on event in the loop start measure number A, and the playback end timing tend is the last note-off event in the loop end measure number B. The timing may be the same as or later than that. As long as this condition is satisfied, the timings t0 and tend may be set freely so that the difference between the reproduction end timing tend and the reproduction start timing t0 is a multiple of the calculated bar length.

(2)また、上記実施例のステップSP19においては、時刻データtがイベント有効タイミングtxaより早い区間に存在するイベントデータの再生を防止したが、上述したようにタイミングt0,tendを上記実施例以外の方法で設定した場合には、ループ開始小節番号A内の最初のノートオンイベント以前のイベントデータと、ループ終了小節番号B内の最後のノートオフイベント以降のイベントデータとが共に再生されないように、ステップSP19の条件を設定するとよい。 (2) In step SP19 of the above embodiment, the reproduction of the event data existing in the section where the time data t is earlier than the event valid timing txa is prevented. However, as described above, the timings t0 and tend are set to other than the above embodiment. In this way, the event data before the first note-on event in the loop start measure number A and the event data after the last note-off event in the loop end measure number B are not reproduced together. The condition of step SP19 may be set.

(3)上記実施例においては、小節線データ内に該小節線データのイベントタイミング(実効小節線位置)と計算上小節線位置との差分Δtsを記録したが、計算上小節線位置との差は必ずしも小節線データ内に記録しておく必要はなく、演奏データ内の他のデータとして記録してもよい。要するに、CPU6においてタイミングt0,tendを決定する際に参照できる態様で記録するのであれば、どのような態様で記録してもよい。また、差分Δtsに代えて、対応する「計算上小節線位置そのもの」を演奏データ内に記録しておいてもよい。すなわち、CPU6によって計算上小節線位置が認識できる態様で、対応するデータを記録しておけばよい。 (3) In the above embodiment, the difference Δts between the event timing (effective bar line position) of the bar line data and the calculated bar line position is recorded in the bar line data. Is not necessarily recorded in the bar data, but may be recorded as other data in the performance data. In short, as long as the recording is performed in a manner that can be referred to when the CPU 6 determines the timings t0 and tend, it may be recorded in any manner. Instead of the difference Δts, the corresponding “calculated bar line position itself” may be recorded in the performance data. That is, the corresponding data may be recorded in such a way that the CPU 6 can recognize the bar line position for calculation.

(4)上記実施例においては、音楽プレーヤ上で動作するプログラムによってループ区間の決定処理やループ再生処理等を実行したが、このプログラムのみをCD−ROM、メモリカード等の記録媒体に格納して頒布し、あるいは伝送路を通じて頒布することもできる。 (4) In the above embodiment, loop section determination processing and loop playback processing are executed by a program operating on the music player, but only this program is stored in a recording medium such as a CD-ROM or a memory card. It can be distributed or distributed through a transmission line.

本発明の一実施例の音楽プレーヤのハードウエアブロック図である。It is a hardware block diagram of the music player of one Example of this invention. 楽音再生部20におけるアルゴリズムのブロック図である。FIG. 6 is a block diagram of an algorithm in the music sound reproduction unit 20. 音楽プレーヤの操作パネルの平面図である。It is a top view of the operation panel of a music player. 演奏データのデータ構造図である。It is a data structure figure of performance data. 演奏データ再生ルーチンのフローチャート(1/2)である。It is a flowchart (1/2) of a performance data reproduction routine. 演奏データ再生ルーチンのフローチャート(2/2)である。It is a flowchart (2/2) of a performance data reproduction routine. 小節と小節番号との関係を示す図である。It is a figure which shows the relationship between a bar and bar number. ゲーム関係処理サブルーチンのフローチャートである。It is a flowchart of a game related process subroutine.

符号の説明Explanation of symbols

1:音楽プレーヤ、2:LCD、4:LCDインタフェース、5:クロック回路、6:CPU(処理装置)、8:DAコンバータ、9:サウンドシステム、10:システムバス、12:RAM、14:ROM、16:通信モジュール、18:操作部、20:楽音再生部、22:音源部、24:デコーダ、26:DSP、26a,26b:効果付与部、26c:加算部、30:圧縮音声データ、32:演奏データ、40:ヘッダ部、42:イベントデータ部、42−1〜42−n:イベントデータ、42−1a:イベント時刻部、42−1b:イベント部、42−1c:識別ID部、42−1d:小節番号部、42−1e:差分表示部、81,82:ゲーム用ボタン、83:メニューボタン、84,85:選曲ボタン、86:再生・停止ボタン、91〜94:上側操作指示マーク、101〜106:下側操作指示マーク、110:再生位置カーソル、112,114:小節線、116:画面右端部、120:得点欄、122:ミス評価値欄、124:ミス総数欄。   1: music player, 2: LCD, 4: LCD interface, 5: clock circuit, 6: CPU (processing device), 8: DA converter, 9: sound system, 10: system bus, 12: RAM, 14: ROM, 16: Communication module, 18: Operation unit, 20: Music sound reproduction unit, 22: Sound source unit, 24: Decoder, 26: DSP, 26a, 26b: Effect application unit, 26c: Addition unit, 30: Compressed audio data, 32: Performance data, 40: header part, 42: event data part, 42-1 to 42-n: event data, 42-1a: event time part, 42-1b: event part, 42-1c: identification ID part, 42- 1d: Bar number part, 42-1e: Difference display part, 81, 82: Game button, 83: Menu button, 84, 85: Song selection button, 86: Play / stop button 91-94: Upper operation instruction mark, 101-106: Lower operation instruction mark, 110: Playback position cursor, 112, 114: Bar line, 116: Right edge of screen, 120: Score column, 122: Miss evaluation value column, 124: Miss total column.

Claims (9)

楽音の発音および消音を指示するノートイベントデータを記録し、(a)不均等な小節線位置である実効小節線位置と、(b)楽曲のテンポおよび拍子に基づいて計算上で求まる均等な計算上小節線位置とを特定可能な演奏データに基づいて、該演奏データのうち繰り返し再生される区間であるループ区間を決定し該演奏データをループ再生する演奏データ再生装置であって、
ループ開始小節とループ終了小節との指定を受信すると、前記ループ開始小節の開始タイミングに係る第1の実効小節線位置に対応する第1の計算上小節線位置と前記ループ終了小節の終了タイミングに係る第2の実効小節線位置に対応する第2の計算上小節線位置とを認識する計算上小節線位置認識手段と、
前記第1の計算上小節線位置から前記第2の計算上小節線位置までの間隔に等しい間隔を有するループ区間であって、前記第1の実効小節線位置以降に最初に生じるノートオンイベントと同時または該ノートオンイベント以前に再生開始タイミングを有し、前記第2の実効小節線位置以前に最後に終了するノートオフイベントと同時または該ノートオフイベント以降に再生終了タイミングを有するループ区間を決定するループ区間決定手段と
を有することを特徴とする演奏データ再生装置。
Record note event data instructing the sound generation and mute, and (a) an effective measure line position that is an uneven measure line position, and (b) an equal calculation that is calculated based on the tempo and time signature of the song. A performance data reproducing device for determining a loop section which is a section to be repeatedly reproduced from the performance data based on performance data capable of specifying an upper bar line position, and reproducing the performance data in a loop,
When the designation of the loop start bar and the loop end bar is received, the first calculated bar line position corresponding to the first effective bar line position related to the start timing of the loop start bar and the end timing of the loop end bar are set. A calculation bar line position recognition means for recognizing a second calculation bar line position corresponding to the second effective bar line position;
A loop interval having an interval equal to an interval from the first calculated bar line position to the second calculated bar line position, and a note-on event that occurs first after the first effective bar line position; A loop section having a playback start timing at the same time or before the note-on event and having a playback end timing at the same time as the note-off event last ended before the second effective bar line position or after the note-off event is determined. A performance data reproducing apparatus comprising: a loop section determining means for performing
前記演奏データは、前記実効小節線位置を指定するイベントデータである小節線データを含むものであり、
前記各小節線データは、当該小節線データのイベントタイミングと、該イベントタイミングと対応する計算上小節線位置との差分とを有することを特徴とする請求項1記載の演奏データ再生装置。
The performance data includes bar line data which is event data for designating the effective bar line position,
2. The performance data reproducing apparatus according to claim 1, wherein each bar line data has an event timing of the bar line data and a difference between a calculated bar line position corresponding to the event timing.
前記再生開始タイミングから前記再生終了タイミングまでの範囲で時刻データを繰り返しループさせる時刻データ発生手段と、
前記ノートイベントデータのうちイベントタイミングが前記時刻データに一致するノートイベントデータを、該ノートイベントデータが前記ループ区間に属することを条件として再生する再生手段と
をさらに有することを特徴とする請求項1または2記載の演奏データ再生装置。
Time data generating means for repeatedly looping time data in a range from the reproduction start timing to the reproduction end timing;
2. Reproducing means for reproducing note event data whose event timing matches the time data in the note event data on condition that the note event data belongs to the loop section. Or the performance data reproducing apparatus of 2.
不均等な小節線位置である実効小節線位置を指定する小節線データと楽音の発音または消音を指定するノートイベントデータとを含む演奏データと、該演奏データに適用される時間軸上に定められたループ区間の再生開始タイミングと、前記時間軸上に定められた前記ループ区間の再生終了タイミングと、前記ループ区間の再生対象となる一または複数のループ対象小節であって前記実効小節線位置によって区切られるループ対象小節とに基づいて前記演奏データをループ再生するループ再生方法であって、
前記再生開始タイミングと前記再生終了タイミングとの間の区間で時刻データを繰り返しループさせる時刻データ発生手段と、
前記ノートイベントデータのうちイベントタイミングが前記時刻データに一致するノートイベントデータを、該ノートイベントデータが前記ループ対象小節に属することを条件として再生する再生手段と
を有することを特徴とする演奏データ再生装置。
Performance data including measure line data that specifies the effective measure line position, which is an unequal measure line position, and note event data that specifies the sound production or mute, and the time axis applied to the performance data. The playback start timing of the loop section, the playback end timing of the loop section defined on the time axis, and one or a plurality of loop target bars to be played back of the loop section, depending on the effective bar line position A loop playback method for loop-playing the performance data based on a loop target measure to be divided,
Time data generation means for repeatedly looping time data in a section between the reproduction start timing and the reproduction end timing;
Reproduction means for reproducing note event data whose event timing coincides with the time data in the note event data, on condition that the note event data belongs to the loop target measure apparatus.
音楽データを再生し、前記音楽データに対応する演奏データに従って該演奏データに含まれるイベントデータの内容を表示装置に表示する演奏データ再生装置であって、
前記演奏データは、不均等な小節線位置である実効小節線位置を指定する小節線データを含み、
該実効小節線位置によって区切られる区間を更新単位として、前記表示装置の表示内容を更新する更新手段
を有することを特徴とする演奏データ再生装置。
A performance data reproducing device for reproducing music data and displaying the contents of event data included in the performance data on a display device according to the performance data corresponding to the music data,
The performance data includes bar line data specifying an effective bar line position that is an uneven bar line position,
An apparatus for reproducing performance data, comprising: updating means for updating the display content of the display device with an interval delimited by the effective bar line position as an update unit.
不均等な小節線位置である実効小節線位置を指定する小節線データを含む演奏データのデータ構造であって、
前記演奏データに係る楽曲のテンポおよび拍子に基づいて計算上で求まる計算上小節線位置、または前記小節線データにおいて指定される実効小節線位置と該計算上小節線位置との差分を記録したことを特徴とする演奏データのデータ構造。
A data structure of performance data including bar line data that specifies an effective bar line position that is an uneven bar line position,
The calculated bar line position calculated in the calculation based on the tempo and time signature of the musical piece related to the performance data, or the difference between the calculated bar line position specified in the bar line data and the calculated bar line position is recorded. A data structure of performance data characterized by
(a)不均等な小節線位置である実効小節線位置と、(b)楽曲のテンポおよび拍子に基づいて計算上で求まる計算上小節線位置とを特定可能な演奏データに基づいて、処理装置を用いて該演奏データのうち繰り返し再生される区間であるループ区間を決定するプログラムであって、
ループ開始小節とループ終了小節との指定を受信すると、前記ループ開始小節の開始タイミングに係る第1の実効小節線位置に対応する第1の計算上小節線位置と前記ループ終了小節の終了タイミングに係る第2の実効小節線位置に対応する第2の計算上小節線位置とを認識する計算上小節線位置認識過程と、
前記第1の計算上小節線位置から前記第2の計算上小節線位置までの間隔に等しい間隔を有するループ区間であって、前記第1の実効小節線位置以降に最初に生じるノートオンイベントと同時または該ノートオンイベント以前に再生開始タイミングを有し、前記第2の実効小節線位置以前に最後に終了するノートオフイベントと同時または該ノートオフイベント以降に再生終了タイミングを有するループ区間を決定するループ区間決定過程と
を前記処理装置に実行させることを特徴とするプログラム。
Based on performance data that can identify (a) an effective bar line position that is an uneven bar line position and (b) a calculated bar line position that is calculated based on the tempo and time signature of the music. A program that determines a loop section that is a section that is repeatedly played out of the performance data using
When the designation of the loop start bar and the loop end bar is received, the first calculated bar line position corresponding to the first effective bar line position related to the start timing of the loop start bar and the end timing of the loop end bar are set. A computational bar line position recognition process for recognizing a second calculated bar line position corresponding to the second effective bar line position;
A loop interval having an interval equal to an interval from the first calculated bar line position to the second calculated bar line position, and a note-on event that occurs first after the first effective bar line position; A loop section having a playback start timing at the same time or before the note-on event and having a playback end timing at the same time as the note-off event last ended before the second effective bar line position or after the note-off event is determined. A program for causing the processing device to execute a loop section determination process to be performed.
不均等な小節線位置である実効小節線位置を指定する小節線データと楽音の発音または消音を指定するノートイベントデータとを含む演奏データと、該演奏データに適用される時間軸上に定められたループ区間の再生開始タイミングと、前記時間軸上に定められた前記ループ区間の再生終了タイミングと、前記ループ区間の再生対象となる一または複数のループ対象小節であって前記実効小節線位置によって区切られるループ対象小節とに基づいて、処理装置を用いて前記演奏データをループ再生するプログラムであって、
前記再生開始タイミングと前記再生終了タイミングとの間の区間で時刻データを繰り返しループさせる時刻データ発生過程と、
前記ノートイベントデータのうちイベントタイミングが前記時刻データに一致するノートイベントデータを、該ノートイベントデータが前記ループ対象小節に属することを条件として再生する再生過程と
を前記処理装置に実行させることを特徴とするプログラム。
Performance data including measure line data that specifies the effective measure line position, which is an unequal measure line position, and note event data that specifies the sound production or mute, and the time axis applied to the performance data. The playback start timing of the loop section, the playback end timing of the loop section defined on the time axis, and one or a plurality of loop target bars to be played back of the loop section, depending on the effective bar line position A program for playing back the performance data in a loop using a processing device based on a section to be divided into loops,
A time data generation process in which time data is repeatedly looped in a section between the reproduction start timing and the reproduction end timing;
Playing back the note event data whose event timing matches the time data among the note event data, on the condition that the note event data belongs to the measure to be looped. Program.
音楽データを再生し、前記音楽データに対応する演奏データであって不均等な小節線位置である実効小節線位置を指定する小節線データを含む演奏データに含まれるイベントデータの内容を処理装置を用いて表示装置に表示するプログラムであって、
該実効小節線位置によって区切られる区間を更新単位として、前記表示装置の表示内容を更新する更新過程
を前記処理装置に実行させることを特徴とするプログラム。
A processing device for playing back music data and processing the contents of event data included in the performance data corresponding to the music data and including the performance line data specifying the effective measure line position which is an uneven measure line position A program used to display on a display device,
A program for causing the processing device to execute an updating process for updating the display content of the display device, with an interval delimited by the effective bar line position as an update unit.
JP2007091530A 2007-03-30 2007-03-30 Device for reproducing musical performance data, data structure of musical performance data and program Pending JP2008250016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007091530A JP2008250016A (en) 2007-03-30 2007-03-30 Device for reproducing musical performance data, data structure of musical performance data and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007091530A JP2008250016A (en) 2007-03-30 2007-03-30 Device for reproducing musical performance data, data structure of musical performance data and program

Publications (1)

Publication Number Publication Date
JP2008250016A true JP2008250016A (en) 2008-10-16

Family

ID=39975030

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007091530A Pending JP2008250016A (en) 2007-03-30 2007-03-30 Device for reproducing musical performance data, data structure of musical performance data and program

Country Status (1)

Country Link
JP (1) JP2008250016A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461431A (en) * 2018-12-24 2019-03-12 厦门大学 The sightsinging mistake music score of Chinese operas mask method of education is sung applied to root LeEco

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461431A (en) * 2018-12-24 2019-03-12 厦门大学 The sightsinging mistake music score of Chinese operas mask method of education is sung applied to root LeEco
CN109461431B (en) * 2018-12-24 2022-09-27 厦门大学 Video-song error music score labeling method applied to basic music video-song education

Similar Documents

Publication Publication Date Title
US5491751A (en) Intelligent accompaniment apparatus and method
JP6011064B2 (en) Automatic performance device and program
JP5257966B2 (en) Music reproduction control system, music performance program, and performance data synchronous reproduction method
JP2003302984A (en) Lyric display method, lyric display program and lyric display device
US11373630B2 (en) Variations audio playback
JP6729052B2 (en) Performance instruction device, performance instruction program, and performance instruction method
JP4927232B2 (en) Playback system, operation unit, playback method and program thereof
JP4201679B2 (en) Waveform generator
JP4203750B2 (en) Electronic music apparatus and computer program applied to the apparatus
JP2008250016A (en) Device for reproducing musical performance data, data structure of musical performance data and program
JPH1031495A (en) Karaoke device
JP4858504B2 (en) Karaoke equipment
JP2002372981A (en) Karaoke system with voice converting function
JP6507477B2 (en) Chord play timing specification device, method and program
JP5632559B2 (en) Music playback device, music playback method, music playback program, and recording medium storing music playback program
JP2017015957A (en) Musical performance recording device and program
JP2008188131A (en) Music player and program
JP2000187485A (en) Device and method for creating musical sound, and recording medium therefor
JP2005331905A (en) Musical sound reproduction device, method, and program, and recording medium
JP6323216B2 (en) Parameter receiving apparatus, method and program
JP3770226B2 (en) Musical sound generating device and medium recording program
JP2007175114A (en) Music player, program and data structure
JP5667005B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, AND PROGRAM THEREOF
JP2024053144A (en) Automatic performance device and automatic performance program
JP4911181B2 (en) Karaoke equipment