JP2007316416A - Karaoke machine and karaoke processing program - Google Patents

Karaoke machine and karaoke processing program Download PDF

Info

Publication number
JP2007316416A
JP2007316416A JP2006146706A JP2006146706A JP2007316416A JP 2007316416 A JP2007316416 A JP 2007316416A JP 2006146706 A JP2006146706 A JP 2006146706A JP 2006146706 A JP2006146706 A JP 2006146706A JP 2007316416 A JP2007316416 A JP 2007316416A
Authority
JP
Japan
Prior art keywords
data
pitch
song
karaoke
pitch error
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
JP2006146706A
Other languages
Japanese (ja)
Inventor
Hiroshi Watanabe
博 渡辺
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2006146706A priority Critical patent/JP2007316416A/en
Publication of JP2007316416A publication Critical patent/JP2007316416A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a karaoke machine capable of automatically correcting user's singing voice to a right pitch as in model voice at a part which the user has not sung well. <P>SOLUTION: A pitch error data ΔP expressing difference between a pitch of the singing voice of the user who sings along to karaoke play in which a song data main body in a song data KD is sequentially reproduced and a sounding pitch of the song data main body, and a timing data t expressing playing time are generated and recorded in the song data KD as their history. When the song data KD is played in karaoke with a pitch correction mode, the pitch of the singing voice of the user who sings along to karaoke play is corrected so as to become the sounding pitch of the song data main body, according to the pitch error data ΔP which is specified according to the timing data t whose history is recorded in the song data KD. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、歌唱練習をアシストする機能を備えたカラオケ装置およびカラオケ処理プログラムに関する。   The present invention relates to a karaoke apparatus and a karaoke processing program having a function of assisting singing practice.

従来より、歌唱練習をアシストする機能を備えたカラオケ装置が知られている。例えば特許文献1には、メロディデータメモリに記憶される音階コードを読み出してカラオケ演奏するときに、使用者の歌声からピッチ抽出した周波数と、メロディデータメモリに記憶される音階コードとを比較し、不一致になると、現在読み出している音階コードのメモリアドレスを歌唱誤り位置として誤り位置メモリに登録しておき、次回に同じ曲をカラオケ演奏する際に、誤り位置メモリに登録された歌唱誤り位置で基準(手本)となるメロディ音を放音して使用者に正しい歌唱を促すようにしたカラオケ装置が開示されている。   Conventionally, a karaoke apparatus having a function of assisting singing practice is known. For example, in Patent Document 1, when the scale code stored in the melody data memory is read and karaoke is performed, the frequency extracted from the pitch of the user's singing voice is compared with the scale code stored in the melody data memory, If there is a discrepancy, the memory address of the currently read scale code is registered in the error location memory as a singing error location, and the next time the same song is played karaoke, the reference is based on the singing error location registered in the error location memory. A karaoke device is disclosed in which a melody sound (example) is emitted to prompt the user to sing correctly.

実開平7−41597号公報Japanese Utility Model Publication No. 7-41597

ところで、上記特許文献1に開示の装置は、巧く歌唱できなかった箇所をユーザに喚起して正しい歌唱を促すだけなので、巧く歌唱できなかった箇所でユーザの歌声を手本通りの正しいピッチに自動的に補正させる歌唱補助を行うことができない、という問題がある。   By the way, the device disclosed in the above-mentioned Patent Document 1 only urges the user to sing a part that could not be sung skillfully and prompts the correct singing. There is a problem that singing assistance that automatically corrects the song cannot be performed.

本発明は、上述した事情に鑑みてなされたもので、巧く歌唱できなかった箇所でユーザの歌声を手本通りの正しいピッチに自動的に補正させることができるカラオケ装置およびカラオケ処理プログラムを提供することを目的としている。   The present invention has been made in view of the above-described circumstances, and provides a karaoke apparatus and a karaoke processing program that can automatically correct a user's singing voice to a correct pitch according to an example where the skill cannot be sung. The purpose is to do.

上記目的を達成するため、請求項1に記載の発明では、曲を構成する各音を表す曲データを再生してカラオケ演奏するカラオケ装置において、カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する曲データ記憶手段と、カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記曲データ記憶手段から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正手段とを具備することを特徴とする。   In order to achieve the above object, according to the first aspect of the present invention, in the karaoke apparatus for performing karaoke performance by reproducing the song data representing each sound constituting the song, the pitch of the user's singing voice sung in accordance with the karaoke performance, A piece of music that stores pitch error data that represents the difference between the pronunciation pitch of the music data and timing data that represents the performance time when the pitch error data was generated in association with music data that represents each sound that makes up the music The data storage means and the pitch error data designated by the timing data synchronized with the song data to be played karaoke are read from the song data storage means, and according to the read pitch error data, the user singing along with the karaoke performance Pitch correction means for correcting the pitch of the singing voice is provided.

請求項2に記載の発明では、曲を構成する各音を表す曲データを再生してカラオケ演奏するカラオケ装置において、カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する曲データ記憶手段と、ユーザ操作に応じてピッチ補正を指示する指示手段と、前記指示手段によりピッチ補正が指示された場合、カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記曲データ記憶手段から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正手段とを具備することを特徴とする。   According to the second aspect of the present invention, in a karaoke apparatus for playing karaoke by reproducing song data representing each sound constituting the song, the pitch of the singing voice of the user who sang along with the karaoke performance and the pronunciation pitch of the song data Music data storage means for storing pitch error data representing a difference and timing data representing a performance time when the pitch error data is generated in association with music data representing each sound constituting the music; and user operation When the pitch correction is instructed by the instruction means, the pitch error data specified by the timing data synchronized with the music data to be played karaoke is read from the music data storage means. In accordance with the read pitch error data, the pitch correcting hand corrects the pitch of the singing voice of the user who sings along with the karaoke performance. Characterized by including and.

上記請求項1又は請求項2のいずれかに従属する請求項3に記載の発明では、カラオケ演奏に合せて歌唱するユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データを生成するピッチ誤差データ生成手段と、前記ピッチ誤差データ生成手段がピッチ誤差データを発生した時の演奏時刻を表すタイミングデータを生成するタイミングデータ生成手段と、前記ピッチ誤差データ生成手段により生成されるピッチ誤差データと、前記タイミングデータ生成手段により生成されるタイミングデータとを曲データに対応付けて前記曲データ記憶手段に登録する登録手段とを更に具備することを特徴とする。   In the invention according to claim 3 that depends on either claim 1 or claim 2, the pitch error data representing the difference between the pitch of the user's singing voice and the pronunciation pitch of the song data is sung in accordance with the karaoke performance. Pitch error data generating means for generating, timing data generating means for generating timing data representing the performance time when the pitch error data generating means generates pitch error data, and the pitch generated by the pitch error data generating means The apparatus further comprises registration means for registering the error data and the timing data generated by the timing data generation means in the music data storage means in association with the music data.

上記請求項1又は請求項2のいずれかに従属する請求項4に記載の発明では、前記ピッチ補正手段は、ピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを、カラオケ演奏される曲データが表す音の音高に補正することを特徴とする。   In the invention according to claim 4 that depends on either claim 1 or claim 2, the pitch correction means determines the pitch of the singing voice of the user singing according to the karaoke performance according to the pitch error data. It is characterized by correcting the pitch of the sound represented by the song data to be played karaoke.

請求項5に記載の発明では、曲を構成する各音を表す曲データを再生してカラオケ演奏させるカラオケ処理プログラムにおいて、カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する記憶処理と、カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記記憶処理にて記憶されたデータの中から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正処理とをコンピュータで実行させることを特徴とする。   According to the fifth aspect of the present invention, in the karaoke processing program for reproducing the song data representing each sound constituting the song and performing the karaoke performance, the pitch of the singing voice of the user who sang along with the karaoke performance and the pronunciation pitch of the song data And storing the pitch error data representing the difference between them and the timing data representing the performance time when the pitch error data was generated in association with the song data representing each sound constituting the song, and karaoke performance The pitch error data designated by the timing data synchronized with the song data to be read is read out from the data stored in the storage process, and according to the read pitch error data, the singing voice of the user singing along with the karaoke performance A pitch correction process for correcting the pitch is executed by a computer.

請求項6に記載の発明では、曲を構成する各音を表す曲データを再生してカラオケ演奏させるカラオケ処理プログラムにおいて、カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する記憶処理と、ユーザ操作に応じてピッチ補正が指示された場合、カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記記憶処理にて記憶されたデータの中から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正処理とをコンピュータで実行させることを特徴とする。   In the invention according to claim 6, in the karaoke processing program for reproducing the song data representing each sound constituting the song and performing the karaoke performance, the pitch of the singing voice of the user who sang along with the karaoke performance and the pronunciation pitch of the song data Storage processing for storing the pitch error data representing the difference between them and the timing data representing the performance time when the pitch error data was generated in association with the music data representing each sound constituting the music, and for user operation When pitch correction is instructed accordingly, the pitch error data specified by the timing data synchronized with the song data to be played karaoke is read from the data stored in the storage process, and the pitch error data is read according to the read pitch error data. The computer executes a pitch correction process for correcting the pitch of the singing voice of the user singing along with the karaoke performance. And wherein the door.

上記請求項5又は請求項6のいずれかに従属する請求項7に記載の発明では、前記記憶処理は、カラオケ演奏に合せて歌唱するユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データを生成するピッチ誤差データ生成処理と、前記ピッチ誤差データ生成処理がピッチ誤差データを発生した時の演奏時刻を表すタイミングデータを生成するタイミングデータ生成処理と、前記ピッチ誤差データ生成処理により生成されるピッチ誤差データと、前記タイミングデータ生成処理により生成されるタイミングデータとを曲データに対応付けてメモリ登録する登録処理とを具備することを特徴とする。   In the invention according to claim 7 that depends on either claim 5 or claim 6, the storage processing calculates the difference between the pitch of the singing voice of the user who sings along with the karaoke performance and the pronunciation pitch of the song data. A pitch error data generation process for generating pitch error data to be represented; a timing data generation process for generating timing data representing a performance time when the pitch error data generation process generates the pitch error data; and the pitch error data generation process And a registration process for registering the memory in association with the song data of the pitch error data generated by the timing data and the timing data generated by the timing data generation process.

上記請求項5又は請求項6のいずれかに従属する請求項8に記載の発明では、前記ピッチ補正処理は、ピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを、カラオケ演奏される曲データが表す音の音高に補正することを特徴とする。   In the invention according to claim 8 that is dependent on either claim 5 or claim 6, the pitch correction processing is performed according to pitch error data, and the pitch of a user's singing voice sung in accordance with the karaoke performance is It is characterized by correcting the pitch of the sound represented by the song data to be played karaoke.

本発明では、カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて予め記憶しておき、その内からカラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するので、巧く歌唱できなかった箇所でユーザの歌声を手本通りの正しいピッチに自動的に補正させることができる。   In the present invention, pitch error data representing the difference between the pitch of the singing voice of the user who sang along with the karaoke performance and the pronunciation pitch of the song data, and timing data representing the performance time when the pitch error data was generated, The pitch error data specified by the timing data synchronized with the song data to be played karaoke is read out in association with the song data representing each sound constituting the song, and the read pitch error data is stored in the read pitch error data. Accordingly, since the pitch of the user's singing voice singing in accordance with the karaoke performance is corrected, the user's singing voice can be automatically corrected to the correct pitch according to the model where the skillful singing was not possible.

以下、図面を参照して本発明の実施の形態について説明する。
A.構成
(1)全体構成
図1は、本発明の実施の一形態によるカラオケ装置の全体構成を示すブロック図である。この図において、CPU10は、スイッチ部15から供給されるスイッチイベントに応じて、プログラムROM11に記憶される所定のプログラムを実行して装置各部を制御する。プログラムROM11には、CPU10により実行される各種プログラムや制御データが記憶される。プログラムROM11に記憶される各種プログラムとは、後述する「メインルーチン」、「タイマインタラプト[1]処理」、「タイマインタラプト[2]処理」、「タイマインタラプト[3]処理」、「スイッチ処理」、「自動演奏処理」および「採点表示処理」を含み、これら本発明の要旨に係わる各処理の動作については追って詳述する。
Embodiments of the present invention will be described below with reference to the drawings.
A. Constitution
(1) Overall Configuration FIG. 1 is a block diagram showing the overall configuration of a karaoke apparatus according to an embodiment of the present invention. In this figure, the CPU 10 controls each unit of the apparatus by executing a predetermined program stored in the program ROM 11 in response to a switch event supplied from the switch unit 15. The program ROM 11 stores various programs executed by the CPU 10 and control data. The various programs stored in the program ROM 11 are “main routine”, “timer interrupt [1] processing”, “timer interrupt [2] processing”, “timer interrupt [3] processing”, “switch processing”, which will be described later. The operation of each process related to the gist of the present invention including “automatic performance process” and “scoring display process” will be described in detail later.

RAM12は、ワークエリアおよびデータエリアを備える。RAM12のワークエリアには、CPU10の処理に用いる各種レジスタ・フラグデータが一時記憶される。RAM12のデータエリアには、CPU10の制御の下に、後述するマイク部16から出力される入力音声データが一時記憶される。曲メモリ13は、装置本体から着脱自在な記憶媒体であり、例えばフラッシュメモリなど電気的に書き換え可能な不揮発性メモリから構成される。曲メモリ13は、曲データエリアおよび歌詞データエリアを備える。曲メモリ13の曲データエリアには、カラオケ演奏される曲データ群が格納される。曲データ群の構成については追って述べる。曲メモリ13の歌詞データエリアには、上記曲データ群に対応して歌詞字幕表示用の歌詞データが格納される。   The RAM 12 includes a work area and a data area. In the work area of the RAM 12, various register / flag data used for the processing of the CPU 10 are temporarily stored. In the data area of the RAM 12, input voice data output from the microphone unit 16 described later is temporarily stored under the control of the CPU 10. The song memory 13 is a storage medium that is detachable from the apparatus main body, and is composed of an electrically rewritable nonvolatile memory such as a flash memory. The song memory 13 includes a song data area and a lyrics data area. The song data area of the song memory 13 stores a song data group for karaoke performance. The composition of the song data group will be described later. The lyrics data area of the song memory 13 stores lyrics data for displaying lyrics subtitles corresponding to the song data group.

ビデオエンコーダ14は、CPU10の制御の下に、曲メモリ13から読み出される歌詞データを表示画面に字幕表示させたり、後述する評価画面を表示させる映像出力に変換する。スイッチ部15は、装置パネルに配設される各種スイッチの操作に応じたスイッチイベントを発生してCPU10に供給する。スイッチ部15に設けられる主要なスイッチとして、パワーオンオフする電源スイッチの他、曲選択スイッチ、ピッチ補正モードスイッチ、スタート/ストップスイッチ、採点表示スイッチおよび採点表示切替スイッチを備える。これらスイッチが意図するところについては追って述べる。   Under the control of the CPU 10, the video encoder 14 converts the lyrics data read from the song memory 13 into a video output for displaying a caption on the display screen or displaying an evaluation screen described later. The switch unit 15 generates a switch event corresponding to the operation of various switches arranged on the apparatus panel and supplies the switch event to the CPU 10. The main switch provided in the switch unit 15 includes a power selection switch for turning on / off power, a music selection switch, a pitch correction mode switch, a start / stop switch, a scoring display switch, and a scoring display switching switch. The purpose of these switches will be discussed later.

マイク部16は、マイク、アンプおよびA/Dコンバータを備え、マイクを介して入力される音声信号(歌声)を増幅した後、入力音声データに変換して出力する。音源17は、周知の波形メモリ読み出し方式で構成され、CPU10の制御の下に、曲メモリから読み出す曲データに応じて楽音合成してなる楽音データを発生する。ミキサ18は、マイク部16が発生する入力音声データと、音源17が発生する楽音データとをそれぞれアナログ信号形式の音声信号および楽音信号に変換した後、それら両信号を混合して所定レベルに増幅した音声出力信号を発生する。発音部19は、ミキサ18から供給される音声出力信号をスピーカから放音する。   The microphone unit 16 includes a microphone, an amplifier, and an A / D converter, amplifies a voice signal (singing voice) input through the microphone, converts the input voice data into input voice data, and outputs the input voice data. The sound source 17 is configured by a well-known waveform memory reading method, and generates musical tone data obtained by synthesizing musical tone according to music data read from the music memory under the control of the CPU 10. The mixer 18 converts the input sound data generated by the microphone section 16 and the musical sound data generated by the sound source 17 into an audio signal and a musical sound signal in an analog signal format, respectively, and then mixes both the signals and amplifies them to a predetermined level. Audio output signal is generated. The sound generator 19 emits the audio output signal supplied from the mixer 18 from the speaker.

(2)曲データエリアの構成
次に、図2〜図4を参照して曲メモリ13に設けられる曲データエリアの構成について説明する。上述した通り、曲メモリ13の曲データエリアには、カラオケ演奏用の曲データ群が格納される。図2(a)は、曲データエリアに格納される曲データ群KDGの構成を示す図である。この図に示すように、曲データ群KDGは、複数曲分の曲データKD(1)〜KD(n)から構成される。1つの曲データKDは、曲データ本体、ピッチ誤差データ、タイミングデータ、採点データおよび小節位置データを備える。
(2) Configuration of Song Data Area Next, the configuration of the song data area provided in the song memory 13 will be described with reference to FIGS. As described above, a song data group for karaoke performance is stored in the song data area of the song memory 13. FIG. 2A is a diagram showing the configuration of a song data group KDG stored in the song data area. As shown in this figure, the music data group KDG is composed of music data KD (1) to KD (n) for a plurality of music. One piece of music data KD includes a music data body, pitch error data, timing data, scoring data, and bar position data.

図2(b)は、曲データ本体の構成を示す図である。曲データ本体は、演奏開始時点からの経過時間でイベントタイミングを表すタイムTと、曲を構成する各音の音高およびノートオン(発音)・ノートオフ(消音)を表すと共に、メロディパートや伴奏パートなど演奏パートを識別するイベントEVTとが曲進行順に配列される、いわゆる絶対時間方式と呼ばれるデータ形式で形成され、その終端には曲の終わりを表すデータENDが設けられる。なお、図2(b)に図示した典型例では、曲データ本体の先頭がタイムTとなっているが、この例に限らず、例えばカラオケ演奏に先立って発生楽音の音色を指定するイベントEVT等を曲データ本体の先頭に配置する場合もある。   FIG. 2B is a diagram showing the configuration of the music data body. The song data body represents the time T that represents the event timing with the elapsed time from the start of the performance, the pitch of each tone that makes up the song, note-on (sounding), note-off (mute), melody part and accompaniment An event EVT for identifying a performance part such as a part is formed in a data format called a so-called absolute time system arranged in the order of progression of music, and data END indicating the end of the music is provided at the end. In the typical example shown in FIG. 2B, the beginning of the music data body is time T. However, the present invention is not limited to this example. For example, an event EVT for designating the tone color of the generated musical tone prior to the karaoke performance or the like. May be placed at the beginning of the song data body.

図3(a)は、ピッチ誤差データの構成を示す図である。ピッチ誤差データΔP(0)〜(n)は、上述した曲データ本体が表す発音ピッチ(ノートナンバ)と、マイク部16が発生する入力音声データ(歌声)から抽出したピッチとの差分を、後述のタイミングデータt(0)〜(n)に対応させて抽出したものである。図3(b)は、タイミングデータの構成を示す図である。タイミングデータt(0)〜(n)は、ピッチ誤差データΔP(0)〜(n)の抽出タイミングをタイマクロック累算値で表す。   FIG. 3A is a diagram showing a configuration of pitch error data. The pitch error data ΔP (0) to (n) is a difference between a sounding pitch (note number) represented by the above-described song data main body and a pitch extracted from input voice data (singing voice) generated by the microphone unit 16 as described later. Are extracted corresponding to the timing data t (0) to (n). FIG. 3B is a diagram illustrating a configuration of timing data. The timing data t (0) to (n) represents the extraction timing of the pitch error data ΔP (0) to (n) as a timer clock accumulated value.

図4(a)は、採点データの構成を示す図である。採点データS(1)〜S(n)は、上記のピッチ誤差データΔP(0)〜(n)およびタイミングデータt(0)〜(n)に基づき小節単位で算出した採点結果を表す。採点結果とは、1小節分のピッチ誤差データΔPを累算した累算値を、当該小節中の音符総数で除算して得るピッチ誤差平均となる。   FIG. 4A is a diagram showing a configuration of scoring data. The scoring data S (1) to S (n) represent scoring results calculated in bar units based on the pitch error data ΔP (0) to (n) and the timing data t (0) to (n). The scoring result is an average pitch error obtained by dividing an accumulated value obtained by accumulating pitch error data ΔP for one measure by the total number of notes in the measure.

図4(b)は、小節位置データの構成を示す図である。小節位置データは、曲データ本体の各小節の先頭を表すB1t(1)〜B1t(n)および後端を表すB2t(1)〜B2t(n)からなる。小節位置データB1t(1)〜B1t(n),B2t(1)〜B2t(n)は、タイマクロック累算値で表現される。   FIG. 4B is a diagram showing the configuration of the bar position data. The bar position data is composed of B1t (1) to B1t (n) representing the beginning of each bar of the music data body and B2t (1) to B2t (n) representing the rear end. The bar position data B1t (1) to B1t (n) and B2t (1) to B2t (n) are expressed by accumulated timer clock values.

B.動作
次に、図5〜図21を参照して上記構成による実施の形態の動作を説明する。以下では、最初にメインルーチンの動作を説明した後、タイマ割込み実行されるタイマインタラプト(1)〜(3)処理について説明する。その後、メインルーチンからコールされるスイッチ処理、自動演奏処理および採点表示処理の各動作について説明する。
B. Operation Next, the operation of the embodiment according to the above configuration will be described with reference to FIGS. In the following, the operation of the main routine will be described first, and then the timer interrupt (1) to (3) processing in which a timer interrupt is executed will be described. After that, each operation of switch processing, automatic performance processing, and scoring display processing called from the main routine will be described.

(1)メインルーチンの動作
電源スイッチ操作により装置電源が投入されると、CPU10は図5に図示するメインルーチンを実行し、ステップSA1に処理を進め、RAM12のワークエリアに格納される各種レジスタやフラグ類をリセットしたり初期値をセットするイニシャライズを行う。また、このステップSA1では、音源17に対して各種レジスタやフラグ類を初期化するよう指示する。そして、イニシャライズが完了すると、CPU10はステップSA2に処理を進め、スイッチ部15が発生するスイッチイベントに対応したスイッチ処理ルーチンを実行する。
(1) Operation of the main routine When the apparatus power is turned on by operating the power switch, the CPU 10 executes the main routine shown in FIG. 5 and proceeds to step SA1, where various registers stored in the work area of the RAM 12 Performs initialization to reset flags and set initial values. In step SA1, the sound source 17 is instructed to initialize various registers and flags. When the initialization is completed, the CPU 10 advances the process to step SA2, and executes a switch processing routine corresponding to the switch event generated by the switch unit 15.

次いで、ステップSA3では、スタート/ストップスイッチの操作により自動演奏の開始が指示されている場合、選択された曲データKD(SONG)の曲データ本体を読み出してカラオケ演奏を進行させたり、後述する採点表示区間の始りの小節から終わりの小節までを繰り返し歌唱練習させる自動演奏処理を実行する。続いて、ステップSA4では、例えば図21に図示する一例の評価画面に歌唱練習した結果を表示させる採点表示処理を実行する。そして、ステップSA5では、例えば曲データに対応した歌詞データを、カラオケ演奏に同期して表示画面に字幕表示させる等の、その他の処理を実行してから上記ステップSA2に処理を戻す。以後、装置電源がパワーオフされるまで上記ステップSA2〜SA5を繰り返す。   Next, in step SA3, when the start of the automatic performance is instructed by operating the start / stop switch, the music data body of the selected music data KD (SONG) is read to advance the karaoke performance, or scoring described later. An automatic performance process is performed in which singing practice is repeated from the first bar to the last bar in the display section. Subsequently, in step SA4, for example, a scoring display process for displaying the result of singing practice on the evaluation screen shown in FIG. 21 is executed. In step SA5, for example, the lyrics data corresponding to the song data is subjected to other processing such as displaying captions on the display screen in synchronization with the karaoke performance, and then the processing returns to step SA2. Thereafter, steps SA2 to SA5 are repeated until the apparatus power is turned off.

(2)タイマインタラプト[1]処理の動作
次に、図6を参照してタイマインタラプト[1]処理の動作について説明する。タイマインタラプト[1]処理は、割込み禁止が解除されると、一定周期毎に割込み実行される。なお、タイマインタラプト[1]処理の割込み禁止は、後述するように、ピッチ補正モードに設定されていない状態で、スタート/ストップスイッチの操作に応じて自動演奏の開始が指示された時に解除される。
(2) Operation of Timer Interrupt [1] Process Next, the operation of the timer interrupt [1] process will be described with reference to FIG. The timer interrupt [1] process is interrupted at regular intervals when the interrupt inhibition is canceled. As will be described later, the interruption of the timer interrupt [1] process is canceled when the start of the automatic performance is instructed according to the operation of the start / stop switch in the state where the pitch correction mode is not set. .

そうして割込み禁止が解除され、割込み実行タイミングになると、CPU10は図6に図示するステップSB1に処理を進め、マイク部16が発生する入力音声データをRAM12のデータエリアに取込む。続いて、ステップSB2〜SB3では、RAM12のデータエリアに取込んだ入力音声データのピッチを抽出し、抽出したピッチをノートナンバに換算してレジスタPITCH2にストアする。   When the interrupt prohibition is canceled and the interrupt execution timing is reached, the CPU 10 advances the processing to step SB1 shown in FIG. 6 and takes the input audio data generated by the microphone unit 16 into the data area of the RAM 12. Subsequently, in steps SB2 to SB3, the pitch of the input audio data taken into the data area of the RAM 12 is extracted, and the extracted pitch is converted into a note number and stored in the register PITCH2.

そして、ステップSB4では、レジスタPITCH1に格納される発音音高(カラオケ演奏音のノートナンバ)からレジスタPITCH2に格納される抽出ピッチ(ノートナンバ)を減算した値をピッチ誤差としてレジスタΔPにストアする。なお、レジスタPITCH1には、後述する自動演奏処理のステップSL21(図18参照)においてカラオケ演奏音のノートナンバがストアされるようになっている。   In step SB4, a value obtained by subtracting the extracted pitch (note number) stored in the register PITCH2 from the tone pitch (note number of the karaoke performance sound) stored in the register PITCH1 is stored in the register ΔP as a pitch error. In the register PITCH1, note numbers of karaoke performance sounds are stored in step SL21 (see FIG. 18) of automatic performance processing described later.

次いで、ステップSB5では、上記ステップSB4にて算出したピッチ誤差ΔPを、ピッチ誤差データΔP(m)(SONG)として曲メモリ13中で選択された曲データKD(SONG)に対応付けて登録する。また、ステップSB5では、タイマクロック累算値tをタイミングデータt(m)(SONG)として曲メモリ13中で選択された曲データKD(SONG)に対応付けて登録する。なお、ポインタmは、後述する自動演奏処理においてタイマクロックの歩進毎にインクリメントされる値である。ポインタSONGは、後述する曲選択スイッチ処理にて選択される選択曲番号である。この後、ステップSB6に進み、RAM12のデータエリアに取込んだ入力音声データを読み出し、これをミキサ18に供給して本処理を終える。   In step SB5, the pitch error ΔP calculated in step SB4 is registered as pitch error data ΔP (m) (SONG) in association with the music data KD (SONG) selected in the music memory 13. In step SB5, the timer clock accumulated value t is registered as timing data t (m) (SONG) in association with the music piece data KD (SONG) selected in the music piece memory 13. The pointer m is a value that is incremented every time the timer clock advances in an automatic performance process that will be described later. The pointer SONG is a selected song number selected in a song selection switch process described later. Thereafter, the process proceeds to step SB6, where the input audio data taken into the data area of the RAM 12 is read out and supplied to the mixer 18 to complete the present process.

このように、ピッチ補正モードに設定されていない状態で、スタート/ストップスイッチ操作に応じて自動演奏をスタートさせると、CPU10はタイマインタラプト[1]処理を一定周期毎に割込み実行し、選択曲番号SONGで指定される曲データKD(SONG)中のピッチ誤差データΔP(m)(SONG)およびタイミングデータt(m)(SONG)を生成して曲メモリ13の曲データエリアに登録する一方、マイク部16が発生する入力音声データをミキサ18に供給する。   As described above, when the automatic performance is started in response to the start / stop switch operation in a state where the pitch correction mode is not set, the CPU 10 interrupts and executes the timer interrupt [1] process at a certain period, and the selected music number. The pitch error data ΔP (m) (SONG) and timing data t (m) (SONG) in the song data KD (SONG) specified by SONG are generated and registered in the song data area of the song memory 13, while the microphone The input audio data generated by the unit 16 is supplied to the mixer 18.

(3)タイマインタラプト[2]処理の動作
次に、図7を参照してタイマインタラプト[2]処理の動作について説明する。タイマインタラプト[2]処理は、後述するように、選択曲番号SONGで指定される曲データKD(SONG)中にピッチ誤差データΔP(m)(SONG)が存在し、かつピッチ補正モードに設定された状態で、スタート/ストップスイッチ操作に応じて自動演奏の開始が指示された時にタイマ割込み禁止が解除される。
(3) Operation of Timer Interrupt [2] Process Next, the operation of the timer interrupt [2] process will be described with reference to FIG. In the timer interrupt [2] process, as will be described later, pitch error data ΔP (m) (SONG) exists in the music data KD (SONG) specified by the selected music number SONG, and the pitch correction mode is set. In the state, the timer interrupt prohibition is canceled when the start of the automatic performance is instructed according to the start / stop switch operation.

割込み禁止が解除され、割込み実行タイミングになると、CPU10は図7に図示するステップSC1に処理を進め、マイク部16が発生する入力音声データ(歌声)をRAM12のデータエリアに取込む。次いで、ステップSC2では、選択曲番号SONGで指定される曲データKD(SONG)中からタイマクロック累算値tで指定されるピッチ誤差データΔP(t)(SONG)に応じて、RAM12のデータエリアにストアした入力音声データのピッチを変換する。つまり、入力音声データから抽出したピッチに、ピッチ誤差データΔP(t)(SONG)を加算することで、入力音声データのピッチを曲データ本体の発音ピッチに補正する。そして、ステップSC3では、上記ステップSC2にてピッチ変換(ピッチ補正)された入力音声データを、ミキサ18に供給して本処理を終える。   When the interrupt prohibition is canceled and the interrupt execution timing is reached, the CPU 10 advances the processing to step SC1 shown in FIG. 7 and takes the input voice data (singing voice) generated by the microphone unit 16 into the data area of the RAM 12. Next, in step SC2, the data area of the RAM 12 according to the pitch error data ΔP (t) (SONG) specified by the timer clock accumulated value t from the music data KD (SONG) specified by the selected song number SONG. Convert the pitch of the input audio data stored in. That is, by adding the pitch error data ΔP (t) (SONG) to the pitch extracted from the input voice data, the pitch of the input voice data is corrected to the pronunciation pitch of the music data body. In step SC3, the input voice data subjected to the pitch conversion (pitch correction) in step SC2 is supplied to the mixer 18 and the process is completed.

以上のように、選択曲番号SONGで指定される曲データKD(SONG)中にピッチ誤差データΔP(t)(SONG)が存在し、かつピッチ補正モードに設定された状態で、スタート/ストップスイッチ操作に応じてカラオケ自動演奏をスタートさせると、CPU10はタイマインタラプト[2]処理を一定周期毎に割込み実行し、曲データKD(SONG)中からタイマクロック累算値tで指定されるピッチ誤差データΔP(t)(SONG)に応じて入力音声データのピッチを補正してミキサ18に供給する。   As described above, when the pitch error data ΔP (t) (SONG) exists in the song data KD (SONG) specified by the selected song number SONG and the pitch correction mode is set, the start / stop switch When the automatic karaoke performance is started in accordance with the operation, the CPU 10 interrupts and executes the timer interrupt [2] process at regular intervals, and the pitch error data specified by the timer clock accumulated value t from the music data KD (SONG). The pitch of the input audio data is corrected according to ΔP (t) (SONG) and supplied to the mixer 18.

(4)タイマインタラプト[3]処理の動作
次に、図8を参照してタイマインタラプト[3]処理の動作について説明する。タイマインタラプト[3]処理は、後述するように、採点表示モードに設定された状態で、スタート/ストップスイッチ操作に応じて自動演奏の開始が指示された時にタイマ割込み禁止が解除される。
(4) Operation of Timer Interrupt [3] Process Next, the operation of the timer interrupt [3] process will be described with reference to FIG. In the timer interrupt [3] process, as described later, in the state where the scoring display mode is set, when the start of automatic performance is instructed according to the start / stop switch operation, the timer interrupt prohibition is canceled.

割込み禁止が解除され、割込み実行タイミングになると、CPU10は図8に図示するステップSD1に処理を進め、マイク部16が発生する入力音声データをRAM12のデータエリアに取込む。次いで、ステップSD2では、取込んだ入力音声データをミキサ18に供給して本処理を終える。   When the interrupt prohibition is canceled and the interrupt execution timing is reached, the CPU 10 advances the process to step SD1 illustrated in FIG. 8 and takes in the input audio data generated by the microphone unit 16 into the data area of the RAM 12. Next, in step SD2, the captured input audio data is supplied to the mixer 18 and the process is terminated.

(5)スイッチ処理の動作
次に、図9を参照してスイッチ処理の動作を説明する。前述したメインルーチンのステップSA2(図5参照)を介して本処理が実行されると、CPU10は図9に図示するステップSE1に進み、曲選択スイッチの操作に応じてカラオケ演奏する曲を選択する曲選択スイッチ処理を実行する。続いて、ステップSE2では、ピッチ補正モードスイッチの操作に応じてピッチ補正モードを設定したり解除するピッチ補正モードスイッチ処理を実行する。
(5) Operation of Switch Processing Next, the operation of switch processing will be described with reference to FIG. When this process is executed through step SA2 (see FIG. 5) of the main routine described above, the CPU 10 proceeds to step SE1 shown in FIG. 9 and selects a song to be played karaoke according to the operation of the song selection switch. Perform song selection switch processing. Subsequently, in step SE2, pitch correction mode switch processing for setting or canceling the pitch correction mode according to the operation of the pitch correction mode switch is executed.

そして、ステップSE3では、スタート/ストップスイッチの操作に応じて自動演奏(カラオケ演奏)の開始又は終了を指示するスタート/ストップスイッチ処理を実行する。次いで、ステップSE4では、採点表示スイッチの操作に応じて、歌唱の採点結果を画面表示させたり画面消去する採点表示スイッチ処理を実行する。この後、ステップSE5に進み、採点表示切替スイッチの操作に応じて採点表示モードを設定したり解除する採点表示切替スイッチ処理を実行する。   In step SE3, start / stop switch processing for instructing the start or end of automatic performance (karaoke performance) is executed in accordance with the operation of the start / stop switch. Next, in step SE4, in accordance with the operation of the scoring display switch, a scoring display switch process for displaying the singing scoring result on the screen or deleting the screen is executed. Thereafter, the process proceeds to step SE5, and a scoring display changeover switch process for setting or canceling the scoring display mode according to the operation of the scoring display changeover switch is executed.

(6)曲選択スイッチ処理の動作
図10は、曲選択スイッチ処理の動作を示すフローチャートである。上述したスイッチ処理のステップSE1(図9参照)を介して本処理が実行されると、CPU10は図10に図示するステップSF1に進み、スタートフラグSTFが「0」、つまり自動演奏(カラオケ演奏)停止中であるか否かを判断する。なお、自動演奏停止中であるか否かを表すスタートフラグSTFは、後述のスタート/ストップスイッチ処理(図12参照)にて設定される。
(6) Music Selection Switch Process Operation FIG. 10 is a flowchart showing the music selection switch process operation. When this processing is executed through the above-described switch processing step SE1 (see FIG. 9), the CPU 10 proceeds to step SF1 shown in FIG. 10, and the start flag STF is “0”, that is, automatic performance (karaoke performance). It is determined whether or not it is stopped. Note that the start flag STF indicating whether or not the automatic performance is stopped is set by a start / stop switch process (see FIG. 12) described later.

自動演奏が進行中で、スタートフラグSTFが「1」にセットされていると、上記ステップSF1の判断結果は「NO」になり、本処理を完了させる。したがって、カラオケ演奏中は曲選択スイッチ操作が無効化されるようになっている。一方、スタートフラグSTFが「0」、つまり自動演奏停止中ならば、上記ステップSF1の判断結果は「YES」になり、ステップSF2に進む。ステップSF2では、曲選択スイッチのオン操作の有無を判断する。曲選択スイッチがオン操作されなければ、判断結果は「NO」になり、本処理を完了させる。   If the automatic performance is in progress and the start flag STF is set to “1”, the determination result in step SF1 is “NO”, and this process is completed. Therefore, the music selection switch operation is invalidated during karaoke performance. On the other hand, if the start flag STF is “0”, that is, if the automatic performance is stopped, the determination result in step SF1 is “YES”, and the process proceeds to step SF2. In step SF2, it is determined whether or not the music selection switch is turned on. If the song selection switch is not turned on, the determination result is “NO”, and this process is completed.

これに対し、曲選択スイッチがオン操作されると、判断結果は「YES」になり、ステップSF3に進む。ステップSF3では、オン操作された曲選択スイッチに対応する曲番号をレジスタSONGにストアする。つまり、本実施の形態では、曲別にアサインされる複数の曲選択スイッチを有し、この内でオン操作された曲選択スイッチに対応付けられた曲番号が選択曲番号SONGとなる。   On the other hand, when the music selection switch is turned on, the determination result is “YES”, and the flow proceeds to Step SF3. In step SF3, the music number corresponding to the music selection switch that has been turned on is stored in the register SONG. In other words, in this embodiment, there are a plurality of song selection switches assigned to each song, and the song number associated with the song selection switch that is turned on among these is the selected song number SONG.

(7)ピッチ補正モードスイッチ処理の動作
図11は、ピッチ補正モードスイッチ処理の動作を示すフローチャートである。上述したスイッチ処理のステップSE2(図9参照)を介して本処理が実行されると、CPU10は図11に図示するステップSG1に進み、スタートフラグSTFが「0」、つまり自動演奏(カラオケ演奏)停止中であるか否かを判断する。自動演奏が進行中(スタートフラグSTFが「1」)ならば、判断結果は「NO」になり、本処理を完了させる。したがって、自動演奏進行中はピッチ補正モードスイッチ操作が無効化される。
(7) Operation of Pitch Correction Mode Switch Process FIG. 11 is a flowchart showing the operation of the pitch correction mode switch process. When this processing is executed through the above-described switch processing step SE2 (see FIG. 9), the CPU 10 proceeds to step SG1 shown in FIG. 11, and the start flag STF is “0”, that is, automatic performance (karaoke performance). It is determined whether or not it is stopped. If the automatic performance is in progress (the start flag STF is “1”), the determination result is “NO” and the process is completed. Therefore, the pitch correction mode switch operation is invalidated during the automatic performance.

一方、自動演奏停止中ならば、上記ステップSG1の判断結果は「YES」になり、ステップSG2に進む。ステップSG2では、ピッチ補正モードスイッチのオン操作の有無を判断する。ピッチ補正モードスイッチがオン操作されなければ、判断結果は「NO」になり、本処理を完了させる。   On the other hand, if the automatic performance is stopped, the determination result in step SG1 is “YES”, and the process proceeds to step SG2. In step SG2, it is determined whether or not the pitch correction mode switch is turned on. If the pitch correction mode switch is not turned on, the determination result is “NO”, and this process is completed.

これに対し、ピッチ補正モードスイッチがオン操作されると、上記ステップSG2の判断結果は「YES」になり、ステップSG3に進む。ステップSG3では、補正モードフラグHFを反転する。次いで、ステップSG4では、反転された補正モードフラグHFが「1」であるか否かを判断する。   On the other hand, when the pitch correction mode switch is turned on, the determination result in step SG2 is “YES”, and the process proceeds to step SG3. In step SG3, the correction mode flag HF is inverted. Next, in step SG4, it is determined whether or not the inverted correction mode flag HF is “1”.

ピッチ補正モードスイッチは、オン操作の度にモード設定またはモード解除をオルタネートに指示するトグルスイッチなので、上記ステップSG4では、ピッチ補正モードスイッチのオン操作に応じて、ピッチ補正モードを設定したかどうかを判断している。反転された補正モードフラグHFが「0」、つまりピッチ補正モードが解除されると、ここでの判断結果は「NO」になり、本処理を完了させる。   Since the pitch correction mode switch is a toggle switch that instructs the alternate to set or cancel the mode each time it is turned on, in step SG4, whether or not the pitch correction mode is set according to the on operation of the pitch correction mode switch. Deciding. When the inverted correction mode flag HF is “0”, that is, when the pitch correction mode is canceled, the determination result here is “NO”, and this processing is completed.

一方、反転された補正モードフラグHFが「1」、つまりピッチ補正モードが設定されると、上記ステップSG4の判断結果は「YES」になり、ステップSG5に進む。ステップSG5では、選択曲番号SONGで指定される曲データKD(SONG)中にピッチ誤差データΔP()(SONG)が登録されているか否かを判断する。ピッチ誤差データΔP()(SONG)が登録されていれば、判断結果は「YES」になり、本処理を終える。これに対し、ピッチ誤差データΔP()(SONG)が登録されていなければ、判断結果は「NO」になり、ステップSG6に進む。ステップSG6では、補正モードフラグHFをゼロリセットして本処理を終える。   On the other hand, when the inverted correction mode flag HF is “1”, that is, when the pitch correction mode is set, the determination result in Step SG4 becomes “YES”, and the process proceeds to Step SG5. In step SG5, it is determined whether or not pitch error data ΔP () (SONG) is registered in the music data KD (SONG) designated by the selected music number SONG. If the pitch error data ΔP () (SONG) is registered, the determination result is “YES”, and the present process ends. On the other hand, if the pitch error data ΔP () (SONG) is not registered, the determination result is “NO”, and the flow advances to step SG6. In step SG6, the correction mode flag HF is reset to zero and the process is terminated.

このように、ピッチ補正モードスイッチ処理では、選択曲番号SONGで指定される曲データKD(SONG)中にピッチ誤差データΔP()(SONG)が登録されていない場合には、自動演奏停止中にピッチ補正モードスイッチをオン操作してもピッチ補正モードに設定されず、ピッチ誤差データΔP()(SONG)が登録されている場合にピッチ補正モードに設定し得る。   As described above, in the pitch correction mode switch processing, when the pitch error data ΔP () (SONG) is not registered in the song data KD (SONG) designated by the selected song number SONG, the automatic performance is stopped. Even if the pitch correction mode switch is turned on, the pitch correction mode is not set, and the pitch correction mode can be set when the pitch error data ΔP () (SONG) is registered.

(8)スタート/ストップスイッチ処理の動作
次に、図12〜図13を参照してスタート/ストップスイッチ処理の動作を説明する。上述したスイッチ処理のステップSE3(図9参照)を介して本処理が実行されると、CPU10は図12に図示するステップSH1に進み、スタート/ストップスイッチのオン操作の有無を判断する。なお、後述するように、スタート/ストップスイッチは、オン操作の度にオルタネートに開始指示または停止指示するトグルスイッチである。スタート/ストップスイッチがオン操作されなければ、ステップSH1の判断結果は「NO」になり、何も行わずに本処理を終える。
(8) Start / Stop Switch Processing Operation Next, the start / stop switch processing operation will be described with reference to FIGS. When this process is executed through the above-described switch process step SE3 (see FIG. 9), the CPU 10 proceeds to step SH1 shown in FIG. 12, and determines whether or not the start / stop switch is turned on. Note that, as will be described later, the start / stop switch is a toggle switch that instructs the alternate to start or stop each time it is turned on. If the start / stop switch is not turned on, the determination result in step SH1 is “NO”, and the present process ends without performing anything.

一方、スタート/ストップスイッチがオン操作されると、上記ステップSH1の判断結果は「YES」になり、ステップSH2に進み、スタートフラグSTFを反転する。続いて、ステップSH3では、反転されたスタートフラグSTFが「1」、つまり自動演奏(カラオケ演奏)の開始を指示する状態であるか否かを判断する。反転されたスタートフラグSTFが「0」ならば、判断結果は「NO」になり、ステップSH4に進む。ステップSH4では、自動演奏の停止に伴い、音源17に消音を指示し、続くステップSH5では、実行中のタイマインタラプト処理の割込み実行を禁止して本処理を終える。   On the other hand, when the start / stop switch is turned on, the determination result in step SH1 is “YES”, the process proceeds to step SH2, and the start flag STF is inverted. Subsequently, in step SH3, it is determined whether or not the inverted start flag STF is “1”, that is, whether or not the start of automatic performance (karaoke performance) is instructed. If the inverted start flag STF is “0”, the determination result is “NO”, and the process proceeds to step SH4. In step SH4, the sound source 17 is instructed to mute as the automatic performance is stopped, and in the subsequent step SH5, interrupt execution of the timer interrupt process being executed is prohibited and the process is terminated.

これに対し、反転されたスタートフラグSTFが「1」となり、自動演奏の開始を指示する状態に設定されると、上記ステップSH3の判断結果が「YES」になり、ステップSH6に進む。ステップSH6では、採点表示フラグSFが「0」、つまり採点表示モードに設定されていない状態であるかを判断する。なお、採点表示モードとは、後述するように、ユーザの歌唱を評価採点して画面表示させる処理動作を指す。以下、採点表示モードに設定されていない場合と、採点表示モードに設定されている場合とに分けて動作説明を進める。   On the other hand, when the inverted start flag STF becomes “1” and is set to a state instructing the start of automatic performance, the determination result in step SH3 becomes “YES”, and the process proceeds to step SH6. In step SH6, it is determined whether the scoring display flag SF is “0”, that is, the scoring display mode is not set. Note that the scoring display mode refers to a processing operation in which a user's song is evaluated and displayed on the screen as described later. Hereinafter, the description of the operation will be made separately for the case where the scoring display mode is not set and the case where the scoring display mode is set.

<採点表示モードに設定されていない場合>
採点表示モードに設定されていなければ、採点表示フラグSFは「0」なので、上記ステップSH6の判断結果は「YES」になり、ステップSH7に進む。ステップSH7では、選択曲番号SONGに対応した曲データKD(SONG)に含まれる曲データ本体の初期アドレス(先頭アドレス)をレジスタADにストアする。以下、レジスタADの内容を読み出しアドレスADと称す。次いで、ステップSH8では、読み出しアドレスADに応じて、曲メモリ13において選択曲番号SONGで指定される曲データKD(SONG)中から曲データ本体を読み出す。
<When the scoring display mode is not set>
If the scoring display mode is not set, the scoring display flag SF is “0”, so that the determination result in step SH6 is “YES”, and the process proceeds to step SH7. In step SH7, the initial address (head address) of the music data body included in the music data KD (SONG) corresponding to the selected music number SONG is stored in the register AD. Hereinafter, the contents of the register AD are referred to as a read address AD. Next, in step SH8, the music data body is read from the music data KD (SONG) designated by the selected music number SONG in the music memory 13 in accordance with the read address AD.

続いて、ステップSH9では、読み出した曲データ本体が、タイムT又はイベントEVTのいずれであるかを判別する。図2(b)に図示したように、通常、先頭アドレスにはタイムTが格納されるが、例えばカラオケ演奏に先立って発生楽音の音色を指定するイベントEVT等が先頭アドレスに格納されることもある。したがって、先頭アドレスからタイムTを読み出した場合には、ステップSH10に進み、レジスタTにタイムTをストアする。   Subsequently, in step SH9, it is determined whether the read music data body is time T or event EVT. As shown in FIG. 2B, the time T is normally stored at the head address. For example, an event EVT that specifies the tone color of the generated musical tone prior to the karaoke performance may be stored at the head address. is there. Accordingly, when the time T is read from the head address, the process proceeds to step SH10 and the time T is stored in the register T.

続いて、ステップSH11では、タイマクロックを累算するカウンタtをゼロリセットする。カウンタtの値をタイマクロック累算値tと称す。そして、ステップSH12では、補正モードフラグHFが「0」、すなわちピッチ補正モードに設定されているかどうかを判断する。ピッチ補正モードに設定されていなければ、判断結果は「YES」になり、ステップSH13に進む。ステップSH13では、前述したタイマインタラプト[1]処理の禁止を解除すると共に、ポインタmに初期値「1」をセットして本処理を終える。   Subsequently, in step SH11, the counter t for accumulating the timer clock is reset to zero. The value of the counter t is referred to as a timer clock accumulated value t. In step SH12, it is determined whether the correction mode flag HF is “0”, that is, whether the pitch correction mode is set. If the pitch correction mode is not set, the determination result is “YES”, and the flow proceeds to step SH13. In step SH13, the prohibition of the timer interrupt [1] process described above is canceled, and the initial value “1” is set in the pointer m, and this process ends.

これにより、CPU10は、前述したタイマインタラプト[1]処理を一定周期毎に割込み実行し始める。そうすると、選択曲番号SONGで指定される曲データKD(SONG)中のピッチ誤差データΔP(m)(SONG)およびタイミングデータt(m)(SONG)を生成して曲メモリ13中の曲データKD(SONG)に対応付けて登録する一方、マイク部16が発生する入力音声データをミキサ18に供給する。   As a result, the CPU 10 starts interrupt execution of the timer interrupt [1] process described above at regular intervals. Then, the pitch error data ΔP (m) (SONG) and the timing data t (m) (SONG) in the music data KD (SONG) specified by the selected music number SONG are generated, and the music data KD in the music memory 13 is generated. The input audio data generated by the microphone unit 16 is supplied to the mixer 18 while being registered in association with (SONG).

これに対し、ピッチ補正モードスイッチの操作によりピッチ補正モードに設定されていると、上記ステップSH12の判断結果は「NO」となり、ステップSH14に進み、前述したタイマインタラプト[2]処理の禁止を解除して本処理を終える。これにより、CPU10は、前述したタイマインタラプト[2]処理を一定周期毎に割込み実行し始める。そうすると、選択曲番号SONGで指定される曲データKD(SONG)中からタイマクロック累算値tおよび選択曲番号SONGで指定されるピッチ誤差データΔP(t)(SONG)に応じて入力音声データのピッチを補正してミキサ18に供給する。   On the other hand, if the pitch correction mode is set by operating the pitch correction mode switch, the determination result in step SH12 is “NO”, and the process proceeds to step SH14, where the prohibition of the timer interrupt [2] process is canceled. And this processing is finished. As a result, the CPU 10 starts interrupt execution of the timer interrupt [2] process described above at regular intervals. Then, from the music data KD (SONG) specified by the selected music number SONG, the input audio data is changed according to the timer clock accumulated value t and the pitch error data ΔP (t) (SONG) specified by the selected music number SONG. The pitch is corrected and supplied to the mixer 18.

さて一方、曲データ本体の先頭アドレスからイベントEVTを読み出した場合には、上述したステップSH9を介してステップSH15に進み、その読み出したイベントEVTを音源17に送付する。これにより、音源17では、例えばCPU10より送付されるイベントEVTが音色設定するイベントであると、当該イベントEVTで指定される音色の楽音を発生するよう設定する。そして、ステップSH16では、読み出しアドレスADを歩進させた後、上述のステップSH8に処理を戻す。以後、タイムTが読み出される迄、歩進させたアドレスADに応じて順次イベントEVTを読み出して音源17に送付する。そして、歩進させたアドレスADに応じてタイムTが読み出されると、上述したステップSH10〜SH14の処理を実行して本処理を終える。   On the other hand, when the event EVT is read from the head address of the music data body, the process proceeds to step SH15 via step SH9 described above, and the read event EVT is sent to the sound source 17. Accordingly, the sound source 17 is set to generate a musical tone having a tone color designated by the event EVT when the event EVT sent from the CPU 10 is an event for which the tone color is set, for example. In step SH16, the read address AD is incremented, and the process returns to step SH8 described above. Thereafter, until the time T is read, the event EVT is sequentially read according to the incremented address AD and sent to the sound source 17. Then, when the time T is read in accordance with the incremented address AD, the processing of steps SH10 to SH14 described above is executed, and this processing is finished.

<採点表示モードに設定されている場合>
採点表示モードに設定されていると、採点表示フラグSFは「1」なので、上記ステップSH6の判断結果が「NO」になり、CPU10は図13に図示するステップSH17に処理を進める。ステップSH17では、選択曲番号SONGで指定される曲データKD(SONG)中の小節位置データB1t(n)(SONG)およびB2t(n)(SONG)を読み出す。
<When set to scoring display mode>
If the scoring display mode is set, since the scoring display flag SF is “1”, the determination result in step SH6 is “NO”, and the CPU 10 advances the process to step SH17 shown in FIG. In step SH17, the bar position data B1t (n) (SONG) and B2t (n) (SONG) in the music data KD (SONG) specified by the selected music number SONG are read.

なお、小節位置を指定するポインタnは、後述するように、採点表示スイッチをオン操作した時に「1」となり、さらに採点表示切替スイッチのオン操作の回数に応じて歩進される。したがって、小節位置データB1t(n)(SONG)は採点表示区間の始りとなる小節位置を表し、一方、小節位置データB2t(n)(SONG)は採点表示区間の終わりとなる小節位置を表す。   As will be described later, the pointer n for designating the bar position becomes “1” when the scoring display switch is turned on, and is further incremented according to the number of times the scoring display switch is turned on. Therefore, the bar position data B1t (n) (SONG) represents the bar position at the beginning of the scoring display section, while the bar position data B2t (n) (SONG) represents the bar position at the end of the scoring display section. .

次いで、ステップSH18では、選択曲番号SONGで指定される曲データKD(SONG)に含まれる曲データ本体の初期アドレス(先頭アドレス)をレジスタADにストアする。そして、ステップSH19では、読み出しアドレスADに応じて、曲データKD(SONG)中から曲データ本体を読み出す。続いて、ステップSH20では、読み出した曲データ本体が、タイムT又はイベントEVTのいずれであるかを判別する。   Next, in step SH18, the initial address (head address) of the music data body included in the music data KD (SONG) designated by the selected music number SONG is stored in the register AD. In step SH19, the music data body is read from the music data KD (SONG) according to the read address AD. Subsequently, in step SH20, it is determined whether the read music data body is time T or event EVT.

先頭アドレスからイベントEVTを読み出した場合には、ステップSH21に進み、読み出しアドレスADを歩進させた後、上述のステップSH19に処理を戻す。以後、タイムTが読み出される迄、ステップSH19〜SH21を繰り返し読み出しアドレスADを歩進させる。そして、歩進させたアドレスADに応じてタイムTが読み出されると、ステップSH22に進み、レジスタTにタイムTをストアする。次いで、ステップSH23では、読み出したタイムTが小節位置データB1t(n)(SONG)を超えているか否か、すなわち採点表示区間の始りとなる小節に達したかどうかを判断する。   When the event EVT is read from the head address, the process proceeds to step SH21, the read address AD is incremented, and the process returns to the above-described step SH19. Thereafter, steps SH19 to SH21 are repeated until the time T is read, and the read address AD is incremented. When the time T is read in accordance with the incremented address AD, the process proceeds to step SH22, and the time T is stored in the register T. Next, in step SH23, it is determined whether or not the read time T exceeds the bar position data B1t (n) (SONG), that is, whether or not the bar at the beginning of the scoring display section has been reached.

タイムTが採点表示区間の始りとなる小節に達していなければ、判断結果は「NO」になり、上述したステップSH21に処理を戻し、読み出しアドレスADを歩進させた後、再び上記ステップSH19に処理を戻す。そして、歩進された読み出しアドレスADに応じて読み出されたタイムTが採点表示区間の始りとなる小節に達したとする。そうすると、上記ステップSH23の判断結果が「YES」になり、ステップSH24に進む。   If the time T has not reached the starting bar of the scoring display section, the determination result is “NO”, the process returns to the above-described step SH21, the read address AD is incremented, and then the above-described step SH19 again. Return processing to. Then, it is assumed that the time T read out in accordance with the read-out read address AD reaches the bar at the beginning of the scoring display section. If it does so, the judgment result of the said step SH23 will be "YES", and will progress to step SH24.

このように、ステップSH19〜SH23では、採点表示区間の始りとなる小節位置に達するタイムTを探し出すため、読み出しアドレスADを歩進させるようになっている。そして、採点表示区間の始りとなる小節位置に達するタイムTが見つかると、ステップSH24に進み、タイムTをレジスタtにストアする。この後、ステップSH25に進み、タイマカウントの開始を指示する。これにより、CPU10では、図示されていないタイマカウント処理を実行してタイマクロックを発生する。なお、タイマカウント処理とは、タイマ割込みにて曲の演奏テンポに応じたタイマクロックを生成するものである。   Thus, in steps SH19 to SH23, the read address AD is incremented in order to find the time T to reach the bar position at the beginning of the scoring display section. When the time T reaching the bar position at the beginning of the scoring display section is found, the process proceeds to step SH24, and the time T is stored in the register t. Thereafter, the process proceeds to step SH25 to instruct start of timer counting. As a result, the CPU 10 generates a timer clock by executing a timer count process (not shown). The timer count process is a process for generating a timer clock corresponding to the performance tempo of a song by a timer interrupt.

次いで、ステップSH26では、前述したタイマインタラプト[3]処理の禁止を解除して本処理を終える。この結果、CPU10は、前述したタイマインタラプト[3]処理を一定周期毎に割込み実行し始める。そうすると、マイク部16が発生する入力音声データをRAM12のデータエリアに取込む一方、取込んだ入力音声データをミキサ18に供給する。   Next, in step SH26, the prohibition of the timer interrupt [3] process described above is canceled and the process ends. As a result, the CPU 10 starts interrupt execution of the timer interrupt [3] process described above at regular intervals. Then, the input voice data generated by the microphone unit 16 is taken into the data area of the RAM 12 and the taken input voice data is supplied to the mixer 18.

(9)採点表示スイッチ処理の動作
次に、図14を参照して採点表示スイッチ処理の動作を説明する。上述したスイッチ処理のステップSE4(図9参照)を介して本処理が実行されると、CPU10は図14に図示するステップSJ1に進み、採点表示スイッチのオン操作の有無を判断する。採点表示スイッチがオン操作されなければ、判断結果は「NO」になり、何も行わずに本処理を終える。
(9) Operation of scoring display switch processing Next, the operation of scoring display switch processing will be described with reference to FIG. When this processing is executed through the above-described switch processing step SE4 (see FIG. 9), the CPU 10 proceeds to step SJ1 shown in FIG. 14 and determines whether or not the scoring display switch is turned on. If the scoring display switch is not turned on, the determination result is “NO”, and the process ends without performing anything.

一方、採点表示スイッチがオン操作されると、上記ステップSJ1の判断結果が「YES」になり、ステップSJ2に進む。ステップSJ2では、採点表示フラグSFが「0」、つまり採点表示モードに設定されていない状態であるかどうかを判断する。採点表示フラグSFが「1」にセットされ、採点表示モードに設定されている場合には、判断結果が「NO」になり、ステップSJ3に進み、採点表示フラグSFをゼロリセットした後、続くステップSJ4にて評価画面(後述する)を消去して本処理を終える。   On the other hand, when the scoring display switch is turned on, the determination result in step SJ1 is “YES”, and the process proceeds to step SJ2. In step SJ2, it is determined whether or not the scoring display flag SF is “0”, that is, the scoring display mode is not set. If the scoring display flag SF is set to “1” and the scoring display mode is set, the determination result is “NO”, the process proceeds to step SJ3, and after the scoring display flag SF is reset to zero, the subsequent step In SJ4, the evaluation screen (to be described later) is erased and the present process is terminated.

これに対して、採点表示モードに設定されていなければ、上記ステップSJ2の判断結果は「YES」になり、ステップSJ5に進む。ステップSJ5では、選択曲番号SONGで指定される曲データKD(SONG)中に採点データ(図4(a)参照)が登録されているか否かを判断する。採点データが曲データKD(SONG)に登録されていなければ、未採点の状態なので、判断結果は「NO」になり、本処理を完了させる。   On the other hand, if the scoring display mode is not set, the determination result of step SJ2 is “YES”, and the process proceeds to step SJ5. In step SJ5, it is determined whether or not scoring data (see FIG. 4A) is registered in the music data KD (SONG) designated by the selected music number SONG. If the scoring data is not registered in the music data KD (SONG), the scoring state is unscored, so the determination result is “NO” and the process is completed.

一方、採点データが曲データKD(SONG)に登録されていると、上記ステップSJ5の判断結果が「YES」になり、ステップSJ6に進む。ステップSJ6では、採点表示フラグSFに「1」をセットして採点表示モードに設定すると共に、フラグCFを「1」にセットする。次いで、ステップSJ7では、ポインタnに「1」をセットして本処理を終える。   On the other hand, if the scoring data is registered in the song data KD (SONG), the determination result in step SJ5 is “YES”, and the process proceeds to step SJ6. In step SJ6, the scoring display flag SF is set to “1” to set the scoring display mode, and the flag CF is set to “1”. Next, in step SJ7, “1” is set in the pointer n, and this processing is completed.

(10)採点表示切替スイッチ処理の動作
次に、図15を参照して採点表示切替スイッチ処理の動作を説明する。上述したスイッチ処理のステップSE5(図9参照)を介して本処理が実行されると、CPU10は図15に図示するステップSK1に進み、採点表示切替スイッチのオン操作の有無を判断する。採点表示切替スイッチがオン操作されなければ、判断結果は「NO」になり、何も行わずに本処理を終える。
(10) Operation of scoring display changeover switch process Next, the operation of the scoring display changeover switch process will be described with reference to FIG. When this process is executed via the above-described switch process step SE5 (see FIG. 9), the CPU 10 proceeds to step SK1 shown in FIG. 15 and determines whether or not the scoring display changeover switch is turned on. If the scoring display changeover switch is not turned on, the determination result is “NO”, and the present process ends without performing anything.

一方、採点表示切替スイッチがオン操作されると、上記ステップSK1の判断結果が「YES」になり、ステップSK2に進む。ステップSK2では、採点表示フラグSFが「1」、すなわち採点表示モードに設定されているかどうかを判断する。採点表示モードに設定されていなければ、判断結果は「NO」になり、本処理を終えるが、採点表示モードに設定されていると、判断結果が「YES」となり、ステップSK3に進む。ステップSK3では、ポインタnを歩進させた後、本処理を完了させる。   On the other hand, when the scoring display changeover switch is turned on, the determination result in step SK1 is “YES”, and the process proceeds to step SK2. In step SK2, it is determined whether the scoring display flag SF is “1”, that is, whether the scoring display mode is set. If it is not set to the scoring display mode, the determination result is “NO”, and the present process is terminated. If the scoring display mode is set, the determination result is “YES”, and the process proceeds to step SK3. In step SK3, the process is completed after the pointer n is incremented.

(11)自動演奏処理の動作
次に、図16〜図18を参照して自動演奏処理の動作を説明する。前述したメインルーチンのステップSA3(図5参照)を介して本処理が実行されると、CPU10は図16に図示するステップSL1に処理を進める。ステップSL1では、スタートフラグSTFが「1」、つまり自動演奏進行中であるか否かを判断する。自動演奏停止中ならば、判断結果は「NO」になり、本処理を終える。
(11) Operation of Automatic Performance Processing Next, the operation of automatic performance processing will be described with reference to FIGS. When this process is executed via step SA3 (see FIG. 5) of the main routine described above, the CPU 10 advances the process to step SL1 shown in FIG. In step SL1, it is determined whether the start flag STF is “1”, that is, whether automatic performance is in progress. If the automatic performance is stopped, the determination result is “NO”, and the present process ends.

一方、自動演奏進行中ならば、上記ステップSL1の判断結果は「YES」になり、ステップSL2に進む。ステップSL2では、最小単位時間が経過したか否かを判断する。最小単位時間とは、タイマクロック1周期分の時間を指す。最小単位時間が経過していなければ、ここでの判断結果は「NO」となり、一旦、本処理を完了させるが、最小単位時間が経過していると、判断結果が「YES」になり、ステップSL3に進む。ステップSL3では、タイマクロック累算値tを歩進させる一方、ポインタmを歩進させる。なお、ポインタmは、選択曲番号SONGで指定される曲データKD(SONG)中の、ピッチ誤差データΔP(m)(SONG)やタイミングデータt(m)(SONG)を指定する。   On the other hand, if the automatic performance is in progress, the determination result in step SL1 is “YES”, and the flow proceeds to step SL2. In step SL2, it is determined whether the minimum unit time has elapsed. The minimum unit time refers to the time for one cycle of the timer clock. If the minimum unit time has not elapsed, the determination result here is “NO”, and this processing is once completed. If the minimum unit time has elapsed, the determination result is “YES”, and the step Proceed to SL3. In step SL3, the timer clock accumulated value t is incremented while the pointer m is incremented. The pointer m designates pitch error data ΔP (m) (SONG) and timing data t (m) (SONG) in the song data KD (SONG) designated by the selected song number SONG.

続いて、ステップSL4では、レジスタTに格納したタイムTと、タイマクロック累算値tとが一致するか否か、すなわちイベントタイミングに達したかどうかを判断する。イベントタイミングに達していなければ、判断結果は「NO」になり、一旦、本処理を完了させる。これに対し、イベントタイミングに達すると、判断結果が「YES」になり、ステップSL5に進み、曲データ本体の読み出しアドレスADを歩進させる。この後、図17に図示するステップSL6に進み、採点表示フラグSFが「1」、つまり採点表示モード下であるかどうかを判断する。以下、採点表示モードに設定されていない場合と、設定されている場合とに分けて動作説明を進める。   Subsequently, in step SL4, it is determined whether or not the time T stored in the register T matches the timer clock accumulated value t, that is, whether or not the event timing has been reached. If the event timing has not been reached, the determination result is “NO”, and this processing is once completed. On the other hand, when the event timing is reached, the determination result is “YES”, the process proceeds to step SL5, and the read address AD of the music data body is incremented. Thereafter, the process proceeds to step SL6 shown in FIG. 17, and it is determined whether or not the scoring display flag SF is “1”, that is, the scoring display mode is set. Hereinafter, the operation description will be divided into a case where the scoring display mode is not set and a case where it is set.

<採点表示モードに設定されていない場合>
採点表示モードに設定されていなければ、ステップSL6の判断結果は「NO」になり、図18に図示するステップSL15に進み、選択曲番号SONGで指定される曲データKD(SONG)中の曲データ本体を、読み出しアドレスADに応じて読み出す。次いで、ステップSL16では、読み出した曲データ本体が「タイムT」、「イベントEVT」および「データEND」のいずれであるかを判別する。以下、読み出した曲データ本体が「タイムT」、「イベントEVT」および「データEND」の各場合に分けて動作説明を進める。
<When the scoring display mode is not set>
If it is not set to the scoring display mode, the judgment result in step SL6 is “NO”, the process proceeds to step SL15 shown in FIG. 18, and the song data in the song data KD (SONG) designated by the selected song number SONG is displayed. The main body is read according to the read address AD. Next, in step SL16, it is determined whether the read music data body is “time T”, “event EVT”, or “data END”. Hereinafter, the operation will be described separately for each case where the read music data body is “time T”, “event EVT”, and “data END”.

a.「タイムT」の場合
読み出した曲データ本体が「タイムT」であると、ステップSL17に進み、レジスタTにストアして一旦、本処理を終える。
a. In case of “Time T”
If the read music data body is “time T”, the process proceeds to step SL17, where it is stored in the register T, and the process is temporarily terminated.

b.「イベントEVT」の場合
読み出した曲データ本体が「イベントEVT」であると、ステップSL18に進み、当該「イベントEVT」がメロディパートのイベントであるかどうかを判別する。「イベントEVT」が伴奏パートのイベントならば、判断結果は「NO」なり、ステップSL19に進み、その伴奏パートのイベントを音源17に送付した後、上述のステップSL5(図16参照)に処理を戻す。これにより、音源17では、カラオケ演奏音(伴奏音)を発生する。
b. In the case of “Event EVT”
If the read music data body is “event EVT”, the process proceeds to step SL18 to determine whether the “event EVT” is a melody part event. If “event EVT” is an accompaniment part event, the determination result is “NO”, the process proceeds to step SL19, the event of the accompaniment part is sent to the sound source 17, and the process proceeds to the above-described step SL5 (see FIG. 16). return. As a result, the sound source 17 generates a karaoke performance sound (accompaniment sound).

一方、「イベントEVT」がメロディパートのイベントであると、上記ステップSL18の判断結果が「YES」になり、ステップSL20に進む。ステップSL20では、メロディパートの「イベントEVT」が発音を指示するノートオンイベントであるか否かを判断する。ノートオンイベントであると、判断結果は「YES」になり、ステップSL21に進み、そのノートオンイベントに含まれるノートナンバ(発音ピッチ)をレジスタPITCH1にストアした後、上述のステップSL5(図16参照)に処理を戻す。   On the other hand, if “event EVT” is a melody part event, the determination result in step SL18 is “YES”, and the flow proceeds to step SL20. In step SL20, it is determined whether or not “event EVT” of the melody part is a note-on event instructing pronunciation. If it is a note-on event, the determination result is “YES”, and the process proceeds to step SL21. After the note number (sounding pitch) included in the note-on event is stored in the register PITCH1, the above-described step SL5 (see FIG. 16). )

これに対し、メロディパートの「イベントEVT」が消音を指示するノートオフイベントであると、上記ステップSL20の判断結果が「NO」になり、ステップSL22に進み、レジスタPITCH1の内容をクリアした後、上述のステップSL5(図16参照)に処理を戻す。   On the other hand, if the “event EVT” of the melody part is a note-off event instructing mute, the determination result in step SL20 is “NO”, the process proceeds to step SL22, and the contents of the register PITCH1 are cleared. The process returns to step SL5 (see FIG. 16).

c.「データEND」の場合
読み出した曲データ本体が「データEND」であると、ステップSL23に進み、音源17に消音を指示する。そして、ステップSL24では、前述したタイマインタラプト[1]処理の実行を禁止する。この後、ステップSL25に進み、スタートフラグSTFを「0」にセットして自動演奏を停止させる。次いで、ステップSL26では、カラオケ演奏に応じて行われたユーザの歌唱内容を評価する採点処理(後述する)を実行して本処理を終える。
c. For “Data END”
If the read music data body is “data END”, the process proceeds to step SL23 to instruct the sound source 17 to mute. In step SL24, the execution of the timer interrupt [1] process described above is prohibited. Thereafter, the process proceeds to step SL25, where the start flag STF is set to “0” and the automatic performance is stopped. Next, in step SL26, a scoring process (described later) for evaluating the content of the user's singing performed in accordance with the karaoke performance is executed, and this process is finished.

このように、採点表示モードに設定されていない場合には、タイマクロック累算値tがタイムTに一致する毎に、歩進させた読み出しアドレスADに応じて曲データ本体を読み出してカラオケ演奏を進行させる。すなわち、読み出した曲データ本体がタイムTならば、それを次イベントタイミングとしてレジスタTにストアする。また、読み出した曲データ本体が伴奏パートのイベントならば、音源17に送付してカラオケ演奏させる。   As described above, when the scoring display mode is not set, every time the timer clock accumulated value t coincides with the time T, the tune data body is read out according to the read-out read address AD and the karaoke performance is performed. Make it progress. That is, if the read music data body is time T, it is stored in the register T as the next event timing. If the read music data body is an accompaniment part event, it is sent to the sound source 17 for karaoke performance.

さらに、読み出した曲データ本体がメロディパートのノートオンイベントであると、ユーザの歌声のピッチとの差分を算出する為に、そのノートオンイベントに含まれるノートナンバをレジスタPITCH1にストアし、一方、ノートオフイベントならば、レジスタPITCH1をクリアする。また、読み出した曲データ本体がデータENDならば、音源17を消音させて自動演奏(カラオケ演奏)を停止させると共に、カラオケ演奏に応じて行われたユーザの歌唱内容を評価する採点処理(後述する)を実行する。   Further, if the read tune data body is a note-on event of the melody part, the note number included in the note-on event is stored in the register PITCH1 in order to calculate the difference from the pitch of the user's singing voice, If it is a note-off event, the register PITCH1 is cleared. If the read song data body is data END, the sound source 17 is muted to stop the automatic performance (karaoke performance) and a scoring process (to be described later) for evaluating the contents of the user's singing performed according to the karaoke performance. ).

<採点表示モードに設定されている場合>
採点表示モードに設定されていれば、図17に図示したステップSL6の判断結果が「YES」になり、次のステップSL7に処理を進める。ステップSL7では、現在のタイムTが小節位置データB2t(n)(SONG)を超えているか否か、すなわち採点表示区間の終わりとなる小節に達したかどうかを判断する。現在のタイムTが採点表示区間の終わりとなる小節に達していなければ、判断結果は「NO」になり、上述したステップSL15(図18参照)以降の、採点表示モードに設定されていない場合の動作を実行する。
<When set to scoring display mode>
If the scoring display mode is set, the determination result in step SL6 shown in FIG. 17 is “YES”, and the process proceeds to the next step SL7. In step SL7, it is determined whether or not the current time T exceeds the bar position data B2t (n) (SONG), that is, whether or not the bar at the end of the scoring display section has been reached. If the current time T has not reached the measure at the end of the scoring display section, the determination result is “NO”, and the case where the scoring display mode is not set after step SL15 (see FIG. 18) described above. Perform the action.

一方、現在のタイムTが採点表示区間の終わりとなる小節に達していると、上記ステップSL7の判断結果は「YES」になり、ステップSL8に進む。ステップSL8では、選択曲番号SONGで指定される曲データKD(SONG)に含まれる曲データ本体の初期アドレス(先頭アドレス)をレジスタADにストアする。続いて、ステップSL9では、レジスタADにストアされた読み出しアドレスADに応じて、曲データKD(SONG)中から曲データ本体を読み出す。そして、ステップSL10では、読み出した曲データ本体が、タイムT又はイベントEVTのいずれであるかを判別する。   On the other hand, if the current time T has reached the measure at the end of the scoring display section, the determination result in step SL7 is “YES”, and the flow proceeds to step SL8. In step SL8, the initial address (head address) of the music data body included in the music data KD (SONG) designated by the selected music number SONG is stored in the register AD. Subsequently, in step SL9, the music data body is read from the music data KD (SONG) in accordance with the read address AD stored in the register AD. In step SL10, it is determined whether the read music data body is time T or event EVT.

先頭アドレスからイベントEVTを読み出した場合には、次のステップSL11に進み、読み出しアドレスADを歩進させた後、上述のステップSL9に処理を戻す。以後、タイムTが読み出される迄、ステップSL9〜SL11を繰り返して読み出しアドレスADを歩進させる。そして、歩進させた読み出しアドレスADに応じてタイムTが読み出されると、ステップSL12に進み、レジスタTにタイムTをストアする。次いで、ステップSL13では、読み出したタイムTが小節位置データB1t(n)(SONG)を超えているか否か、すなわち採点表示区間の始りとなる小節に達したかどうかを判断する。   When the event EVT is read from the head address, the process proceeds to the next step SL11, the read address AD is incremented, and the process returns to the above-described step SL9. Thereafter, until the time T is read, steps SL9 to SL11 are repeated to increment the read address AD. When the time T is read according to the read address AD that has been incremented, the process proceeds to step SL12, where the time T is stored in the register T. Next, in step SL13, it is determined whether or not the read time T exceeds the bar position data B1t (n) (SONG), that is, whether or not the bar at the beginning of the scoring display section has been reached.

タイムTが採点表示区間の始りとなる小節に達していなければ、判断結果は「NO」になり、上述したステップSL11に処理を戻し、読み出しアドレスADを歩進させた後、再び上記ステップSL9に処理を戻す。そして、歩進された読み出しアドレスADに応じて読み出されたタイムTが採点表示区間の始りとなる小節に達したとする。そうすると、上記ステップSL13の判断結果が「YES」になり、ステップSL14に進む。   If the time T has not reached the starting bar of the scoring display section, the determination result is “NO”, the process returns to the above-described step SL11, the read address AD is incremented, and then the above-mentioned step SL9 again. Return processing to. Then, it is assumed that the time T read out in accordance with the read-out read address AD reaches the bar at the beginning of the scoring display section. If it does so, the judgment result of the said step SL13 will be "YES", and will progress to step SL14.

このように、ステップSL9〜SL13では、採点表示区間の始りとなる小節位置に達するタイムTを探し出すため、読み出しアドレスADを歩進させるようになっている。そして、採点表示区間の始りとなる小節位置に達するタイムTが見つかると、ステップSL14に進み、タイムTをレジスタtにストアする。この後、上述したステップSL15(図18参照)以降の、採点表示モードに設定されていない場合の動作を実行する。   Thus, in steps SL9 to SL13, the read address AD is incremented in order to find the time T to reach the bar position at the beginning of the scoring display section. When the time T reaching the bar position at the beginning of the scoring display section is found, the process proceeds to step SL14, where the time T is stored in the register t. Then, the operation | movement when not set to the scoring display mode after step SL15 (refer FIG. 18) mentioned above is performed.

以上のように、採点表示モードに設定されている場合には、タイマクロック累算値tがタイムTに一致する毎に、現在のタイムTが採点表示区間の終わりとなる小節に達したかどうかを判断し、採点表示区間の終わりとなる小節に達すると、採点表示区間の始りとなる小節に対応するタイムTに戻した後、採点表示モードに設定されていない場合の動作を実行する。したがって、採点表示モードに設定されていると、スタート/ストップスイッチの操作で自動演奏の停止を指示する迄、採点表示区間の始りの小節から終わりの小節までを繰り返しカラオケ演奏するようになっている。   As described above, when the scoring display mode is set, whether or not the current time T has reached the end of the scoring display section every time the timer clock accumulated value t matches the time T When the bar at the end of the scoring display section is reached, after returning to the time T corresponding to the bar at the beginning of the scoring display section, the operation when the scoring display mode is not set is executed. Therefore, when the scoring display mode is set, the karaoke performance is repeated from the first bar to the last bar of the scoring display interval until the stop of the automatic performance is instructed by operating the start / stop switch. Yes.

(12)採点処理の動作
次に、図19を参照して採点処理の動作を説明する。上述した自動演奏処理のステップSL26を介して本処理が実行されると、CPU10は図19に図示するステップSM1に進み、ポインタnに「1」をセットすると共に、ポインタmをゼロリセットする。続いて、ステップSM2では、レジスタLおよびレジスタSをゼロリセットする。次いで、ステップSM3では、選択曲番号SONGで指定される曲データKD(SONG)において、ポインタnで指定される小節位置データB1t(n)(SONG)に「0」をセットする。
(12) Operation of scoring process Next, the operation of the scoring process will be described with reference to FIG. When this process is executed through step SL26 of the automatic performance process described above, the CPU 10 proceeds to step SM1 shown in FIG. 19, sets "1" to the pointer n, and resets the pointer m to zero. Subsequently, in step SM2, the registers L and S are reset to zero. Next, in step SM3, “0” is set to the bar position data B1t (n) (SONG) specified by the pointer n in the music data KD (SONG) specified by the selected music number SONG.

そして、ステップSM4では、選択曲番号SONGで指定される曲データKD(SONG)中からポインタmで指定されるピッチ誤差データΔP(m)(SONG)およびタイミングデータt(m)(SONG)を読み出す。次いで、ステップSM5では、上記ステップSM4にて読み出されるデータの有無を判断する。つまり、読み出すべきピッチ誤差データΔP(m)(SONG)又はタイミングデータt(m)(SONG))が有れば、判断結果は「YES」になり、ステップSM6に進む。   In step SM4, pitch error data ΔP (m) (SONG) and timing data t (m) (SONG) specified by the pointer m are read from the music data KD (SONG) specified by the selected song number SONG. . Next, at step SM5, the presence / absence of the data read at step SM4 is determined. That is, if there is pitch error data ΔP (m) (SONG) or timing data t (m) (SONG)) to be read, the determination result is “YES”, and the flow proceeds to step SM6.

ステップSM6では、タイミングデータt(m)(SONG)が小節判定値より小さいか否かを判断する。小節判定値とは、1小節分のタイマクロック数にポインタnの値を乗算した値である。したがって、このステップSM6では、1小節分のピッチ誤差データΔP(m)(SONG)を読み出し終えたかどうかを判断する。そして、タイミングデータt(m)(SONG)が小節判定値より小さく、1小節分のピッチ誤差データΔP(m)(SONG)を読み出し終えていない場合には、判断結果が「YES」になり、ステップSM7に進む。次いで、ステップSM7では、レジスタSにピッチ誤差データΔP(m)(SONG)を加算する。   In step SM6, it is determined whether or not the timing data t (m) (SONG) is smaller than the bar determination value. The measure determination value is a value obtained by multiplying the number of timer clocks for one measure by the value of the pointer n. Therefore, in this step SM6, it is determined whether or not the reading of the pitch error data ΔP (m) (SONG) for one measure has been completed. When the timing data t (m) (SONG) is smaller than the bar determination value and the pitch error data ΔP (m) (SONG) for one bar has not been read, the determination result is “YES”. Proceed to step SM7. Next, in step SM7, the pitch error data ΔP (m) (SONG) is added to the register S.

続いて、ステップSM8では、レジスタLの値をインクリメントして歩進させる。なお、歩進されるレジスタLの値は、ポインタnで指定される小節に含まれる音符数(ノートオンイベントの数)に相当する。次いで、ステップSM9では、ポインタmを歩進させた後、上述のステップSM4に処理を戻す。以後、1小節分のピッチ誤差データΔP(m)(SONG)を読み出し終える迄、ステップSM4〜SM9を繰り返す。これにより、ポインタnで指定される小節に含まれる音符総数がレジスタLに累算され、それに対応するピッチ誤差データΔP(m)(SONG)の累算値がレジスタSに格納される。   Subsequently, in step SM8, the value of the register L is incremented and stepped. Note that the value of the register L to be incremented corresponds to the number of notes (number of note-on events) included in the measure specified by the pointer n. Next, in step SM9, after the pointer m is incremented, the process returns to step SM4 described above. Thereafter, steps SM4 to SM9 are repeated until the reading of pitch error data ΔP (m) (SONG) for one measure is completed. As a result, the total number of notes included in the measure specified by the pointer n is accumulated in the register L, and the corresponding accumulated value of the pitch error data ΔP (m) (SONG) is stored in the register S.

そして、1小節分のピッチ誤差データΔP(m)(SONG)を読み出し終えてタイミングデータt(m)(SONG)が小節判定値より大きくなると、上記ステップSM6の判断結果が「NO」となり、ステップSM10に進む。ステップSM10では、レジスタSに格納されるピッチ誤差データΔP(m)(SONG)の累算値を、レジスタLに格納される音符総数で除算して得るピッチ誤差平均を、選択曲番号SONGで指定される曲データKD(SONG)中でポインタnで指定される小節の採点データS(n)(SONG)に登録する。   When the pitch error data ΔP (m) (SONG) for one bar is read and the timing data t (m) (SONG) becomes larger than the bar determination value, the determination result in step SM6 is “NO”. Proceed to SM10. In step SM10, the pitch error average obtained by dividing the accumulated value of the pitch error data ΔP (m) (SONG) stored in the register S by the total number of notes stored in the register L is designated by the selected song number SONG. Is registered in the scoring data S (n) (SONG) of the measure designated by the pointer n in the music data KD (SONG) to be performed.

こうして、ポインタnで指定される小節の採点データS(n)(SONG)を曲データKD(SONG)に登録し終えると、ステップSM11に進み、ポインタnで指定される小節の終わりを表す小節位置データB2t(n)(SONG)に、1小節分のタイマクロック数にポインタnの値を乗算した小節判定値を登録する。次いで、ステップSM12では、次の小節の始りを表す小節位置データB2t(n+1)(SONG)に、上記ステップSM11と同じ小節判定値を登録する。そして、ステップSM13では、ポインタnを歩進させた後、上述したステップSM2に処理を戻し、次の小節の採点データ作成を進める。   Thus, when the scoring data S (n) (SONG) of the bar designated by the pointer n is registered in the music piece data KD (SONG), the process proceeds to step SM11, and the bar position indicating the end of the bar designated by the pointer n is reached. A bar determination value obtained by multiplying the number of timer clocks for one bar by the value of the pointer n is registered in the data B2t (n) (SONG). Next, in step SM12, the same bar determination value as in step SM11 is registered in the bar position data B2t (n + 1) (SONG) indicating the start of the next bar. In step SM13, after the pointer n is incremented, the process returns to step SM2 described above to proceed with the creation of scoring data for the next bar.

以後、選択曲番号SONGで指定される曲データKD(SONG)中からピッチ誤差データΔP(m)(SONG)と、タイミングデータt(m)(SONG)とを全て読み出し終える迄、上述した過程を繰り返すことによって、各小節毎の採点データS(n)(SONG)が登録されると共に、対応する小節区間の始りと終わりを表す小節位置データB1t(n)(SONG)およびB2t(n)(SONG)が登録される。そして、ピッチ誤差データΔP(m)(SONG)と、タイミングデータt(m)(SONG)とを全て読み出し終えた時点で、上述したステップSM5の判断結果が「NO」となり、本処理を完了させる。   Thereafter, the above-described process is performed until the pitch error data ΔP (m) (SONG) and the timing data t (m) (SONG) are completely read from the music data KD (SONG) designated by the selected song number SONG. By repeating, scoring data S (n) (SONG) for each measure is registered, and measure position data B1t (n) (SONG) and B2t (n) (representing the start and end of the corresponding measure section) SONG) is registered. When the pitch error data ΔP (m) (SONG) and the timing data t (m) (SONG) are all read, the determination result in step SM5 is “NO”, and this process is completed. .

(13)採点表示処理の動作
次に、図20を参照して採点表示処理の動作を説明する。前述したメインルーチンのステップSA4(図5参照)を介して本処理が実行されると、CPU10は図20に図示するステップSN1に処理を進める。ステップSN1では、採点表示フラグSFが「1」、つまり採点表示モード下であるかどうかを判断する。採点表示モードに設定されていなければ、判断結果は「NO」となり、何も行わずに本処理を終える。
(13) Operation of scoring display processing Next, the operation of scoring display processing will be described with reference to FIG. When this process is executed through step SA4 (see FIG. 5) of the main routine described above, the CPU 10 advances the process to step SN1 shown in FIG. In step SN1, it is determined whether or not the scoring display flag SF is “1”, that is, in the scoring display mode. If the scoring display mode is not set, the determination result is “NO”, and the present process is terminated without performing anything.

一方、採点表示モード下であると、判断結果が「YES」になり、ステップSN2に進み、フラグCFが「1」であるか否かを判断する。フラグCFが「1」の場合とは、採点データ(図4(a)参照)が登録された曲データKD(SONG)に基づいて歌唱練習する際に、採点表示スイッチをオン操作して採点表示モードに設定した状態を表す。そうした状態でなければ、上記ステップSN2の判断結果は「NO」になり、何も行わずに本処理を終えるが、そうした状態であると、判断結果が「YES」となり、ステップSN3に進む。   On the other hand, if it is under the scoring display mode, the determination result is “YES”, the process proceeds to step SN2, and it is determined whether or not the flag CF is “1”. When the flag CF is “1”, when the singing practice is performed based on the song data KD (SONG) in which the scoring data (see FIG. 4A) is registered, the scoring display switch is turned on to display the scoring. Indicates the state set to mode. If it is not in such a state, the determination result in step SN2 is “NO”, and the present process is terminated without performing anything. If it is in this state, the determination result is “YES” and the process proceeds to step SN3.

ステップSN3では、選択曲番号SONGで指定される曲データKD(SONG)において、n番目に評価の低い採点データS(m)(SONG)を検索する。次いで、ステップSN4では、上記ステップSN3の検索結果に基づき、例えば図21に図示する一例の評価画面を形成してビデオエンコーダ14に出力する。そして、ステップSN5では、フラグCFをゼロリセットして本処理を終える。   In step SN3, the score data S (m) (SONG) with the nth lowest evaluation is searched for in the song data KD (SONG) designated by the selected song number SONG. Next, in step SN4, based on the search result in step SN3, for example, an example evaluation screen illustrated in FIG. 21 is formed and output to the video encoder. In step SN5, the flag CF is reset to zero and the process is terminated.

以上説明したように、本実施の形態では、曲データKD(SONG)を指定して自動演奏(カラオケ演奏)の開始を指示すると、タイマインタラプト[1]処理の禁止が解除される。これにより、自動演奏処理が曲データKD(SONG)中の曲データ本体を順次再生してカラオケ演奏を進行させ、一方、タイマインタラプト[1]処理がカラオケ演奏に合せて歌唱するユーザの歌声のピッチと曲データ本体の発音ピッチとの差分を表すピッチ誤差データΔP(m)(SONG)と、その進行位置を表すタイミングデータt(m)(SONG)とを生成して曲データKD(SONG)に登録する。   As described above, in the present embodiment, when the music data KD (SONG) is designated to start the automatic performance (karaoke performance), the prohibition of the timer interrupt [1] process is canceled. As a result, the automatic performance process sequentially reproduces the song data body in the song data KD (SONG) to advance the karaoke performance, while the timer interrupt [1] process sings along with the karaoke performance. And pitch error data ΔP (m) (SONG) representing the difference between the tone data and the pronunciation pitch of the song data main body, and timing data t (m) (SONG) representing the progress position are generated in the song data KD (SONG). sign up.

このようにして、曲データKD(SONG)にタイミングデータt(m)(SONG)およびピッチ誤差データΔP(m)(SONG)を履歴として登録し終えてからピッチ補正モードスイッチの操作でピッチ補正モードに設定した後に自動演奏(カラオケ演奏)の開始を指示すると、タイマインタラプト[2]処理の禁止が解除される。これにより、自動演奏処理が曲データKD(SONG)中の曲データ本体を順次再生してカラオケ演奏を進行させ、一方、タイマインタラプト[2]処理が曲データKD(SONG)中からタイマクロック累算値tで指定されるピッチ誤差データΔP(t)(SONG)に応じて、カラオケ演奏に合せて歌唱するユーザの歌声をピッチ補正してミキサ18に供給するので、巧く歌唱できなかった箇所でユーザの歌声を手本通りの正しいピッチに自動的に補正させることが可能になる。   Thus, after the timing data t (m) (SONG) and the pitch error data ΔP (m) (SONG) are registered in the music data KD (SONG) as a history, the pitch correction mode switch is operated by the operation of the pitch correction mode switch. When the start of automatic performance (karaoke performance) is instructed after setting to, the prohibition of timer interrupt [2] processing is canceled. As a result, the automatic performance processing sequentially reproduces the music data body in the music data KD (SONG) and advances the karaoke performance, while the timer interrupt [2] processing accumulates the timer clock from the music data KD (SONG). In accordance with the pitch error data ΔP (t) (SONG) specified by the value t, the user's singing voice sung in accordance with the karaoke performance is pitch-corrected and supplied to the mixer 18, so at the place where the skillful singing was not It becomes possible to automatically correct the user's singing voice to a correct pitch as exemplified.

また、本実施の形態では、選曲した曲データKD(SONG)にタイミングデータt(m)(SONG)およびピッチ誤差データΔP(m)(SONG)が登録済みの場合に、採点表示スイッチ操作で採点表示モードに設定し、さらに採点表示切替スイッチのオン操作の回数に応じて採点表示区間の始りとなる小節位置と採点表示区間の終わりとなる小節位置とを指定して自動演奏を開始させると、指定された採点表示区間を自動的に繰り返しカラオケ演奏させ得るようになっている。   In this embodiment, when the timing data t (m) (SONG) and the pitch error data ΔP (m) (SONG) are already registered in the selected music data KD (SONG), the scoring is performed by operating the scoring display switch. When the display mode is set and the automatic performance is started by specifying the bar position at the beginning of the scoring display section and the bar position at the end of the scoring display section according to the number of times the scoring display changeover switch is turned on. The designated grading display section can be automatically and repeatedly played with karaoke.

さらに、本実施の形態では、選曲した曲データKD(SONG)の曲データ本体を先頭から終端まで自動演奏させた場合、採点処理がピッチ誤差データΔP(m)(SONG)とタイミングデータt(m)(SONG)とに基づき各小節毎の採点データS(n)(SONG)と、対応する小節区間の始りと終わりを表す小節位置データB1t(n)(SONG)およびB2t(n)(SONG)とが曲データ本体に登録される。この後に採点表示スイッチ操作で採点表示モードに設定すると、採点表示切替スイッチ操作で指定される小節の採点結果を画面表示させることも可能になっている。   Further, in the present embodiment, when the music data body of the selected music data KD (SONG) is automatically played from the beginning to the end, the scoring process is performed with the pitch error data ΔP (m) (SONG) and the timing data t (m ) (SONG) and scoring data S (n) (SONG) for each bar, and bar position data B1t (n) (SONG) and B2t (n) (SONG) indicating the start and end of the corresponding bar section ) Is registered in the song data body. When the scoring display switch is subsequently set to the scoring display mode, the scoring result of the bar specified by the scoring display switching switch operation can be displayed on the screen.

なお、上述した実施の形態では、自動演奏(カラオケ演奏)進行中は、ピッチ補正モードスイッチの操作を無効にし、自動演奏開始前にだけピッチ補正モードに設定可能としたが、これに限らず、自動演奏進行中にピッチ補正モードスイッチ操作に応じてピッチ補正モードに設定する態様としても構わない。そうした態様では、自動演奏進行中にピッチ補正モードに設定された時に、前述したタイマインタラプト[2]処理(図7参照)を起動させる。このようにすれば、ユーザが指定する箇所でユーザの歌声を手本通りの正しいピッチに補正させることが可能になる。   In the above-described embodiment, while the automatic performance (karaoke performance) is in progress, the operation of the pitch correction mode switch is disabled and the pitch correction mode can be set only before the automatic performance is started. It is possible to set the pitch correction mode in accordance with the pitch correction mode switch operation while the automatic performance is in progress. In such an aspect, when the pitch correction mode is set during the automatic performance, the timer interrupt [2] process (see FIG. 7) described above is activated. If it does in this way, it will become possible to correct a user's singing voice to the correct pitch according to a model in the part which a user specifies.

本発明による実施の一形態の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of one Embodiment by this invention. 曲メモリ13に設けられる曲データエリアの構成および曲データ本体の構成を示す図である。It is a figure which shows the structure of the music data area provided in the music memory 13, and the structure of a music data main body. ピッチ誤差データおよびタイミングデータの構成を示す図である。It is a figure which shows the structure of pitch error data and timing data. 採点データおよび小節位置データの構成を示す図である。It is a figure which shows the structure of scoring data and bar position data. メインルーチンの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a main routine. タイマインタラプト[1]処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a timer interrupt [1] process. タイマインタラプト[2]処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a timer interrupt [2] process. タイマインタラプト[3]処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a timer interrupt [3] process. スイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a switch process. 曲選択スイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a music selection switch process. ピッチ補正モードスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a pitch correction mode switch process. スタート/ストップスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a start / stop switch process. スタート/ストップスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a start / stop switch process. 採点表示スイッチ処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a scoring display switch process. 採点表示切替スイッチ処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a scoring display changeover switch process. 自動演奏処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of an automatic performance process. 自動演奏処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of an automatic performance process. 自動演奏処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of an automatic performance process. 採点処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a scoring process. 採点表示処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a scoring display process. 評価画面の一例を示す図である。It is a figure which shows an example of an evaluation screen.

符号の説明Explanation of symbols

10 CPU
11 プログラムROM
12 RAM
13 曲メモリ
14 ビデオエンコーダ
15 スイッチ部
16 マイク部
17 音源
18 ミキサ
19 発音部
10 CPU
11 Program ROM
12 RAM
13 song memory 14 video encoder 15 switch part 16 microphone part 17 sound source 18 mixer 19 sounding part

Claims (8)

曲を構成する各音を表す曲データを再生してカラオケ演奏するカラオケ装置において、
カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する曲データ記憶手段と、
カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記曲データ記憶手段から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正手段と
を具備することを特徴とするカラオケ装置。
In a karaoke apparatus for playing karaoke by playing song data representing each sound constituting a song,
A song is composed of pitch error data representing the difference between the pitch of the user's singing voice sung along with the karaoke performance and the pronunciation pitch of the song data, and timing data representing the performance time when the pitch error data was generated. Song data storage means for storing in association with song data representing each sound;
Pitch error data specified by timing data synchronized with song data to be played karaoke is read out from the song data storage means, and the pitch of the user's singing voice is corrected according to the read pitch error data. And a pitch correcting means.
曲を構成する各音を表す曲データを再生してカラオケ演奏するカラオケ装置において、
カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する曲データ記憶手段と、
ユーザ操作に応じてピッチ補正を指示する指示手段と、
前記指示手段によりピッチ補正が指示された場合、カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記曲データ記憶手段から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正手段と
を具備することを特徴とするカラオケ装置。
In a karaoke apparatus for playing karaoke by playing song data representing each sound constituting a song,
A song is composed of pitch error data representing the difference between the pitch of the user's singing voice sung along with the karaoke performance and the pronunciation pitch of the song data, and timing data representing the performance time when the pitch error data was generated. Song data storage means for storing in association with song data representing each sound;
Instruction means for instructing pitch correction in response to a user operation;
When pitch correction is instructed by the instruction means, the pitch error data specified by the timing data synchronized with the song data to be played karaoke is read from the song data storage means, and the karaoke performance is performed according to the read pitch error data. And a pitch correcting means for correcting the pitch of the singing voice of the user who sings along with the karaoke apparatus.
カラオケ演奏に合せて歌唱するユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データを生成するピッチ誤差データ生成手段と、
前記ピッチ誤差データ生成手段がピッチ誤差データを発生した時の演奏時刻を表すタイミングデータを生成するタイミングデータ生成手段と、
前記ピッチ誤差データ生成手段により生成されるピッチ誤差データと、前記タイミングデータ生成手段により生成されるタイミングデータとを曲データに対応付けて前記曲データ記憶手段に登録する登録手段と
を更に具備することを特徴とする請求項1又は請求項2のいずれかに記載のカラオケ装置。
Pitch error data generating means for generating pitch error data representing the difference between the pitch of the singing voice of the user singing along with the karaoke performance and the pronunciation pitch of the song data;
Timing data generating means for generating timing data representing performance time when the pitch error data generating means generates pitch error data;
Registration means for registering the pitch error data generated by the pitch error data generating means and the timing data generated by the timing data generating means in the music data storage means in association with music data. The karaoke apparatus according to claim 1, characterized in that:
前記ピッチ補正手段は、ピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを、カラオケ演奏される曲データが表す音の音高に補正することを特徴とする請求項1又は請求項2のいずれに記載のカラオケ装置。 The pitch correction means corrects the pitch of a singing voice of a user singing along with a karaoke performance according to the pitch error data to a pitch of a sound represented by song data to be karaoke played. Or the karaoke apparatus of any one of Claim 2. 曲を構成する各音を表す曲データを再生してカラオケ演奏させるカラオケ処理プログラムにおいて、
カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する記憶処理と、
カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記記憶処理にて記憶されたデータの中から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正処理と
をコンピュータで実行させることを特徴とするカラオケ処理プログラム。
In the karaoke processing program that plays the karaoke performance by reproducing the song data representing each sound constituting the song,
A song is composed of pitch error data representing the difference between the pitch of the user's singing voice sung along with the karaoke performance and the pronunciation pitch of the song data, and timing data representing the performance time when the pitch error data was generated. A storage process for storing in association with music data representing each sound;
A user who reads the pitch error data specified by the timing data synchronized with the song data to be played karaoke from the data stored in the storage process, and sings along with the karaoke performance according to the read pitch error data A karaoke processing program that causes a computer to execute pitch correction processing for correcting the pitch of the singing voice of the singing voice.
曲を構成する各音を表す曲データを再生してカラオケ演奏させるカラオケ処理プログラムにおいて、
カラオケ演奏に合せて歌唱したユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データと、このピッチ誤差データを生成した時の演奏時刻を表すタイミングデータとを、曲を構成する各音を表す曲データに対応付けて記憶する記憶処理と、
ユーザ操作に応じてピッチ補正が指示された場合、カラオケ演奏される曲データに同期したタイミングデータで指定されるピッチ誤差データを前記記憶処理にて記憶されたデータの中から読み出し、読み出したピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを補正するピッチ補正処理と
をコンピュータで実行させることを特徴とするカラオケ処理プログラム。
In the karaoke processing program that plays the karaoke performance by reproducing the song data representing each sound constituting the song,
A song is composed of pitch error data representing the difference between the pitch of the user's singing voice sung along with the karaoke performance and the pronunciation pitch of the song data, and timing data representing the performance time when the pitch error data was generated. A storage process for storing in association with music data representing each sound;
When pitch correction is instructed according to a user operation, pitch error data specified by timing data synchronized with song data to be played karaoke is read from the data stored in the storage process, and the read pitch error A karaoke processing program for causing a computer to execute pitch correction processing for correcting the pitch of a user's singing voice sung in accordance with karaoke performance according to data.
前記記憶処理は、カラオケ演奏に合せて歌唱するユーザの歌声のピッチと曲データの発音ピッチとの差分を表すピッチ誤差データを生成するピッチ誤差データ生成処理と、
前記ピッチ誤差データ生成処理がピッチ誤差データを発生した時の演奏時刻を表すタイミングデータを生成するタイミングデータ生成処理と、
前記ピッチ誤差データ生成処理により生成されるピッチ誤差データと、前記タイミングデータ生成処理により生成されるタイミングデータとを曲データに対応付けてメモリ登録する登録処理と
を具備することを特徴とする請求項5又は請求項6のいずれかに記載のカラオケ処理プログラム。
The storage process is a pitch error data generation process for generating pitch error data representing a difference between a pitch of a user's singing voice sung in karaoke performance and a pronunciation pitch of song data;
A timing data generation process for generating timing data representing a performance time when the pitch error data generation process generates the pitch error data;
The registration method for registering the pitch error data generated by the pitch error data generation process and the timing data generated by the timing data generation process in association with music data in a memory. The karaoke processing program according to claim 5.
前記ピッチ補正処理は、ピッチ誤差データに応じて、カラオケ演奏に合せて歌唱するユーザの歌声のピッチを、カラオケ演奏される曲データが表す音の音高に補正することを特徴とする請求項5又は請求項6のいずれに記載のカラオケ処理プログラム。
6. The pitch correction process according to claim 5, wherein the pitch of the singing voice of the user singing along with the karaoke performance is corrected to the pitch of the sound represented by the song data to be karaoke played according to the pitch error data. Or the karaoke processing program in any one of Claim 6.
JP2006146706A 2006-05-26 2006-05-26 Karaoke machine and karaoke processing program Pending JP2007316416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006146706A JP2007316416A (en) 2006-05-26 2006-05-26 Karaoke machine and karaoke processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006146706A JP2007316416A (en) 2006-05-26 2006-05-26 Karaoke machine and karaoke processing program

Publications (1)

Publication Number Publication Date
JP2007316416A true JP2007316416A (en) 2007-12-06

Family

ID=38850317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006146706A Pending JP2007316416A (en) 2006-05-26 2006-05-26 Karaoke machine and karaoke processing program

Country Status (1)

Country Link
JP (1) JP2007316416A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2138996A2 (en) 2008-06-24 2009-12-30 Yamaha Corporation Sound processing apparatus and method
JP2016071122A (en) * 2014-09-30 2016-05-09 ブラザー工業株式会社 Karaoke device and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08263083A (en) * 1995-03-23 1996-10-11 Sony Corp Microphone mixing system
JPH1165579A (en) * 1997-08-22 1999-03-09 Taito Corp Karaoke sing-along machine with singing training function
JP2004144867A (en) * 2002-10-23 2004-05-20 Daiichikosho Co Ltd Singing practice assisting system of karaoke device
JP2007033471A (en) * 2005-07-21 2007-02-08 Casio Comput Co Ltd Singing grading apparatus, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08263083A (en) * 1995-03-23 1996-10-11 Sony Corp Microphone mixing system
JPH1165579A (en) * 1997-08-22 1999-03-09 Taito Corp Karaoke sing-along machine with singing training function
JP2004144867A (en) * 2002-10-23 2004-05-20 Daiichikosho Co Ltd Singing practice assisting system of karaoke device
JP2007033471A (en) * 2005-07-21 2007-02-08 Casio Comput Co Ltd Singing grading apparatus, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2138996A2 (en) 2008-06-24 2009-12-30 Yamaha Corporation Sound processing apparatus and method
JP2016071122A (en) * 2014-09-30 2016-05-09 ブラザー工業株式会社 Karaoke device and program

Similar Documents

Publication Publication Date Title
KR100949872B1 (en) Song practice support device, control method for a song practice support device and computer readable medium storing a program for causing a computer to excute a control method for controlling a song practice support device
JP3598598B2 (en) Karaoke equipment
JP6402878B2 (en) Performance device, performance method and program
JP2007086570A (en) Automatic musical accompaniment device and program
JP7192203B2 (en) Electronic wind instrument, control method for the electronic wind instrument, and program for the electronic wind instrument
JP4458096B2 (en) Data reproducing apparatus, data reproducing method and program
JP2000122674A (en) Karaoke (sing-along music) device
JP4201679B2 (en) Waveform generator
JP2007316416A (en) Karaoke machine and karaoke processing program
JP2009169103A (en) Practice support device
JP6056394B2 (en) Audio processing device
JP2007086571A (en) Music information display device and program
JP4561735B2 (en) Content reproduction apparatus and content synchronous reproduction system
JP2007011090A (en) Karaoke device
JP6528752B2 (en) Tone reproduction apparatus, tone reproduction method, program and electronic musical instrument
JP2008233736A (en) Karaoke device and program for karaoke information processing
CN113711302A (en) Audio information playback method and apparatus, audio information generation method and apparatus, and program
JP2006259401A (en) Karaoke machine
JP4534926B2 (en) Image display apparatus and program
JP5164401B2 (en) Automatic performance device and automatic performance program
JP2000259154A (en) Code judging device
JP7158331B2 (en) karaoke device
JP5163928B2 (en) Performance information correction apparatus and performance information correction program
JP3931874B2 (en) Automatic performance device
JPH07152372A (en) Playing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090430

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100304

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100630