JP4675731B2 - Music generator - Google Patents

Music generator Download PDF

Info

Publication number
JP4675731B2
JP4675731B2 JP2005265294A JP2005265294A JP4675731B2 JP 4675731 B2 JP4675731 B2 JP 4675731B2 JP 2005265294 A JP2005265294 A JP 2005265294A JP 2005265294 A JP2005265294 A JP 2005265294A JP 4675731 B2 JP4675731 B2 JP 4675731B2
Authority
JP
Japan
Prior art keywords
data
performance
key
music
song
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.)
Expired - Fee Related
Application number
JP2005265294A
Other languages
Japanese (ja)
Other versions
JP2007078974A (en
Inventor
勉 斉藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2005265294A priority Critical patent/JP4675731B2/en
Publication of JP2007078974A publication Critical patent/JP2007078974A/en
Application granted granted Critical
Publication of JP4675731B2 publication Critical patent/JP4675731B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、所謂ワンキープレイと呼ばれる自動演奏機能を有する楽音発生装置に関する。   The present invention relates to a musical sound generator having an automatic performance function called so-called one-key play.

従来から、楽器に自動演奏機能を付加することは多いに行われており、演奏のできるできないに拘わらず、音楽を聴けるため喜ばれていた。   Conventionally, an automatic performance function is often added to a musical instrument, and it has been appreciated for listening to music even if it cannot be performed.

また電子鍵盤楽器では、所謂ワンキープレイと呼ばれる機能を利用すると、曲目を選択した後、いずれかのキーを押す(押鍵する)ことで、選択曲の最初の音符から、キーを押す毎(押鍵毎)に、順に再生するものも知られている。この機能を有するものも、音楽を楽しみたい人に受け入れられてきた。   In addition, when using a so-called one-key play function for electronic keyboard instruments, every time a key is pressed (pressed) from the first note of the selected song by pressing (pressing) any key after selecting a song. There is also known one that plays in order for each key). Those having this function have been accepted by those who want to enjoy music.

このワンキープレイは、マジック等の遊びの要素が含まれており、何も知らぬ人にとっては、「この人はこんなに演奏がうまいのか」と思うし、しばらくしっかり演奏を見ていると、「なんかへんだな?」と思い、そのうち、「なぁーんだ、自動演奏か」と理解される。   This one-key play includes elements of play such as magic, and for those who do not know anything, I think `` this person is so good at playing '' I thought, “Wow?”, And then, “What is it, automatic performance?”

この過程は非常に有意義であり、街頭などでデモ演奏をやったり、友達同士で楽器を弾いて遊ぶときにも、最初は本人が100%演奏しているのか、自動演奏か分からないところに、面白みがある。   This process is very meaningful, and when performing a demo performance on the street or playing a musical instrument with friends, at first it is not sure whether the person is playing 100% or automatic performance, It is interesting.

しかし、上記ワンキープレイ機能を利用するときには、曲を選択するという操作が不可欠であった。例えば100曲以上ある中から、所望の曲をパネル上のディスプレイに表示してから選択するという操作が必要であり、「メロディは覚えているけど、曲名が出てこない」という場合は、演奏しようとする者は、非常に混乱を来すことになる。   However, when using the one-key play function, an operation of selecting a song has been indispensable. For example, it is necessary to display the desired song on the panel display after selecting it from over 100 songs, and if you can remember the melody but the song name does not come out, play it. Those who are will be very confused.

また、ワンキープレイ機能を利用する場合には、自分の弾いた鍵盤の音高では発音されないのが常であり[すなわち押鍵は発音(演奏)開始の指示を与えるに過ぎない]、ワンキープレイ機能を利用するモードにいながら、100%マニュアル演奏を披露することはできないという問題があった。   In addition, when using the one-key play function, it is usually not pronounced at the pitch of the keyboard you play [that is, the key press only gives an instruction to start sounding (playing)], and the one-key play function. There was a problem that 100% manual performance could not be performed while in the mode using.

すなわち、演奏者もその周りの聴衆者も、ワンキープレイ機能であることが自ずと分かってしまう状況にあった。そのため、本当に弾いているように上手に見せようとしても、すぐに見破られてしまうことになる。   In other words, both the performer and the surrounding audience would naturally know that it was a one-key play function. Therefore, even if you try to look good as if you are really playing, you will soon be overlooked.

本発明は、以上のような問題に鑑み創案されたもので、本当に弾いているのか、それとも半自動演奏機能を利用しているのか、簡単には分からないようにできる楽音発生装置を提供せんとするものである。   The present invention was devised in view of the above problems, and it is an object of the present invention to provide a musical sound generator that does not easily know whether it is really playing or whether it uses a semi-automatic performance function. Is.

そのため本発明に係る構成は、
演奏データを生成する演奏手段と、
演奏データのキーデータに従って楽音を生成する楽音発生手段と、
自動演奏可能な複数の曲データを記憶しておく曲データ記憶手段と、
曲データ記憶手段に記憶された複数の曲データの中から1つの曲データの選択を行う選択手段と、
演奏操作毎に、演奏データのキーデータとは異なる選択した曲データのキーデータを読み出して、上記楽音発生手段に送る半自動演奏手段と
を有する楽音発生装置において、
前記演奏手段のキーデータを前記楽音発生手段に送るのか、又は前記半自動演奏手段が読み出す、前記選択した曲データのキーデータを前記楽音発生手段に送るのかを切り替える切り替え手段と、
演奏データを順次記憶しておく演奏情報記憶手段と、
上記演奏情報記憶手段から連続する複数の演奏データを読み出し、その演奏データを、曲データ記憶手段の曲データと照合して、類似する曲データの抽出を行う抽出手段と、
上記抽出手段により、類似する曲データが抽出された場合に、その曲データを上記選択手段により選択されたものとし、上記切り替え手段に対して、選択曲データのキーデータを前記楽音発生手段に送るように切り替える指令を出力する制御手段と
を有することを特徴とする楽音発生装置。
を有することを基本的特徴としている。
Therefore, the configuration according to the present invention is as follows.
A performance means for generating performance data;
Musical sound generating means for generating musical sounds according to the key data of the performance data;
Song data storage means for storing a plurality of automatically playable song data;
Selection means for selecting one piece of music data from a plurality of pieces of music data stored in the music data storage means;
In a musical sound generating apparatus having a semi-automatic performance means for reading out the key data of the selected song data different from the key data of the performance data for each performance operation and sending it to the musical sound generation means,
Switching means for switching whether to send the key data of the performance means to the musical sound generating means, or to send the key data of the selected music data read by the semi-automatic performance means to the musical sound generating means ;
Performance information storage means for sequentially storing performance data;
Extracting means for reading out a plurality of continuous performance data from the performance information storage means, comparing the performance data with the music data in the music data storage means, and extracting similar music data;
When similar music data is extracted by the extraction means, it is assumed that the music data is selected by the selection means, and the key data of the selected music data is sent to the tone generation means to the switching means. And a control means for outputting a command for switching in such a manner .
It has the basic feature of having.

また請求項2の構成では、上記楽音発生装置において、上記切り替え手段により、演奏データ中のベロシティデータだけが取り出されて、半自動演奏手段側に転送せしめられ、該切り替え手段によって、演奏データが半自動演奏手段側に切り替えられ転送されるようになった際に、半自動演奏手段によって読み出され楽音発生手段に送られる曲データについて、先に転送された演奏データのベロシティデータと同一に設定されることを特徴としている。   According to the second aspect of the present invention, in the musical tone generator, only the velocity data in the performance data is extracted by the switching means and transferred to the semi-automatic performance means side, and the performance data is converted to the semi-automatic performance by the switching means. When the music data is read out by the semi-automatic performance means and sent to the musical sound generating means when it is switched to the means side and transferred, it is set to be the same as the velocity data of the performance data previously transferred. It is a feature.

さらに請求項に係る構成では、上記楽音発生装置に、更に表示手段を有しており、上記抽出手段により抽出された曲データの名称が、選択手段により上記表示手段に転送され、該表示手段により、曲データの名称が表示されることを特徴としている。 Furthermore, in the structure which concerns on Claim 3 , the said musical tone generator has further a display means, The name of the music data extracted by the said extraction means is transferred to the said display means by the selection means, This display means Thus, the name of the song data is displayed.

そして請求項の構成では、上記楽音発生装置において、上記抽出手段には、類似曲データの抽出をなす際に、演奏データと曲データとの移調の程度を判定する機能を備えており、類似曲データの抽出が移調の程度の判定と共になされた際に、その移調の程度に基づいて、上記半自動演奏手段により、曲データ記憶手段から読み出される曲データが移調せしめられて、上記楽音発生手段に転送されることを特徴としている。 According to the fourth aspect of the present invention, in the musical tone generator, the extraction means has a function of determining the degree of transposition between the performance data and the song data when extracting the similar song data. When the song data is extracted together with the degree of transposition, the song data read from the song data storage means is transposed by the semi-automatic performance means based on the degree of the transposition, and the musical sound generating means It is characterized by being transferred.

上記構成(特に請求項)によれば、一旦演奏者が演奏を始め、その間に自動的に該当する曲が選択されて、その選択曲により自動演奏が継続した状態で行えるようになる。 According to the above configuration (particularly, claim 1 ), the performer once starts playing, and the corresponding music is automatically selected during that time, and the automatic music can be performed with the selected music being continued.

また請求項の構成によれば、演奏者の演奏により生成された音の強さが、半自動演奏状態になったときに、そのまま引き継がれるので、本当に弾いているのか、それとも半自動演奏機能を利用しているのか、ほとんど見分けがつかないようになる。 According to the second aspect of the present invention, the strength of the sound generated by the performer's performance is inherited as it is when it is in a semi-automatic performance state. It becomes almost indistinguishable.

請求項の構成によれば、類似する曲データの照合・抽出を行う際にトランスポーズを考慮して、上記抽出した曲データと演奏データとの移調具合に基づき、読み出した上記演奏データのキーデータを移調した後に、楽音発生手段により、楽音を生成することが可能となる。 According to the configuration of the fourth aspect , the key of the performance data read out is based on the transposition between the extracted music data and the performance data in consideration of transposition when collating / extracting similar music data. After transposing the data, the musical sound can be generated by the musical sound generating means.

本発明の請求項1〜請求項記載の楽音発生装置によれば、一旦演奏者が演奏を始め、その間に自動的に該当する曲が選択されて、その選択曲により自動演奏が継続した状態で行えるようになり、本当に弾いているのか、それとも半自動演奏機能を利用しているのか、簡単には分からないようにできるという優れた効果を奏し得る。 According to the musical tone generator of claims 1 to 4 of the present invention, a state where a performer once starts playing, a corresponding song is automatically selected during that time, and automatic performance is continued by the selected song. Ri name to allow in, whether they really played, or whether are using a semi-automatic performance function, can achieve an excellent effect that easy to Ru can so that it does not know.

以上の効果は、電子楽器だけではなく、アコースティック楽器でも、自動演奏機能の付属するもの、音源モジュール、パソコン音楽ソフトウェアにおいても、達成可能であることは言うまでもない。   Needless to say, the above effects can be achieved not only with electronic musical instruments, but also with acoustic instruments, those with automatic performance functions, sound module, and personal computer music software.

以下、本発明の実施の形態を図示例と共に説明する。
図1は、所謂ワンキープレイ機能としての半自動演奏構成が搭載された本発明に係る電子ピアノ100の基本回路を示す回路概要図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a circuit schematic diagram showing a basic circuit of an electronic piano 100 according to the present invention equipped with a semi-automatic performance configuration as a so-called one-key play function.

同図に示すように、上記電子ピアノ100は、システムバス上に、CPU(Central Processing Unit)110、ROM(Read Only Memory)120、RAM(Random Access Memory)130、自動演奏曲の表示のために電子ピアノ100の前面側に設けられた後述する表示部となるLCD141と、コントロールパネル151側に備えられ、本電子ピアノ100の様々な制御状態や半自動演奏モード時に表示される楽譜などや各種バーチャルな操作子を示すためのパネル表示部142の表示とを制御する表示制御回路140、スキャンすることでコントロールパネル151上のパネル表示部142に対するタッチを感知したり或いは現物の各種スイッチやボリュームなどの設定状態を感知するパネル検出回路150、鍵盤161の押鍵操作を検出する鍵盤検出回路160、後述する楽音発生部の一部を構成する音源170、曲データの更新のために曲データを読み込む、或いは書き出すためのフレキシブルディスクなどやハードディスクなどの外部記憶装置を制御する外部記憶制御回路180、外部入出力用のMIDIインターフェース190とが、各接続されており、該システムバスを通じてこれらのデバイスに各種命令やデータの受け渡しがなされる。   As shown in the figure, the electronic piano 100 has a CPU (Central Processing Unit) 110, a ROM (Read Only Memory) 120, a RAM (Random Access Memory) 130, and an automatic performance piece displayed on the system bus. The LCD 141 provided on the front side of the electronic piano 100, which will be described later, and the control panel 151 side are provided with various control states of the electronic piano 100, musical scores displayed in the semi-automatic performance mode, and various virtual types. A display control circuit 140 for controlling the display of the panel display unit 142 to indicate an operation element, and senses a touch on the panel display unit 142 on the control panel 151 by scanning or sets various actual switches and volumes. A panel detection circuit 150 for detecting a state, and a keyboard detection circuit for detecting a key pressing operation of the keyboard 161. 160, an external storage control circuit 180 that controls an external storage device such as a sound source 170 that constitutes a part of a musical tone generator, which will be described later, a flexible disk for reading or writing music data for updating music data, and a hard disk. The external I / O MIDI interface 190 is connected to each other, and various commands and data are transferred to these devices through the system bus.

また上記音源170の出力側には、出力された楽音にエフェクトをかけるDSP171と、その楽音をアナログに変換するD/A変換回路(図示無し)と、それを増幅するアンプ172及び外部に発音せしめるスピーカ173などのサウンドシステムが電気的に接続されている。   On the output side of the sound source 170, a DSP 171 that applies an effect to the output musical sound, a D / A conversion circuit (not shown) that converts the musical sound into analog, an amplifier 172 that amplifies the sound, and an external sound are generated. A sound system such as a speaker 173 is electrically connected.

上記CPU110は、ROM120上に記憶されている制御プログラムに従って、本構成に係る電子ピアノ100の各部を制御すると共に、同じくROM120上に記憶されている開始時マニュアル入力のワンキープレイモードを含む自動演奏モード用のアプリケーションプログラムを実行し、またそのプログラムの実行により、同じくROM120に記憶され、選曲された曲データを読み出して、自動演奏処理を行い、必要に応じて、RAM130を作業領域として使用しながら、それらのデータ処理を行う構成である。   The CPU 110 controls each part of the electronic piano 100 according to the present configuration in accordance with a control program stored on the ROM 120, and also includes an automatic performance mode including a one-key play mode for manual input at the start, which is also stored on the ROM 120. Application program, and by executing the program, the music data that is also stored in the ROM 120 and selected music is read out, automatic performance processing is performed, and the RAM 130 is used as a work area as necessary. It is the structure which performs those data processing.

上記ROM120は、フラッシュメモリで構成されており、該ROM120内には、本電子ピアノ100の制御用プログラム及び本構成で達せられるべき開始時マニュアル入力のワンキープレイモードを含む自動演奏モード用のアプリケーションプログラムが格納されている。また後述する曲データ記憶部として、同じく後述の選択部で選択される曲の曲データが複数曲、その名称と共に格納され、その他CPU110が使用する種々の固定データが記憶されている。   The ROM 120 is composed of a flash memory, and the ROM 120 includes a control program for the electronic piano 100 and an application program for an automatic performance mode including a one-key play mode for manual input at the start that should be achieved with the present configuration. Is stored. As a song data storage unit to be described later, a plurality of song data selected by a selection unit to be described later are stored together with their names, and various other fixed data used by the CPU 110 are stored.

上記RAM130は、本電子ピアノ100におけるステータス情報を記憶したり、CPU110の作業領域として使用されるものである。さらに後述するように、本構成の開始時マニュアル入力のワンキープレイモードが実行された場合に鍵盤161の演奏部から押鍵データが転送されて、後述する演奏情報記憶部として使用される。尚、本電子ピアノ100を制御するための各種レジスタ(mode、level、SongNo、transposeの各レジスタ)やフラグ等は、RAM130に定義されており、このRAM130は、CPU110により、システムバスを介してアクセスされる。   The RAM 130 stores status information in the electronic piano 100 and is used as a work area for the CPU 110. Further, as will be described later, when the one-key play mode of manual input at the start of this configuration is executed, key pressing data is transferred from the performance section of the keyboard 161 and used as a performance information storage section described later. Various registers (mode, level, SongNo, transpose registers), flags, and the like for controlling the electronic piano 100 are defined in the RAM 130. The RAM 130 is accessed by the CPU 110 via the system bus. Is done.

上記パネル表示部142は、表示制御回路140に制御されて、各種スイッチやモード選択のためのスイッチなどが2次元画面構成として表示される。またモード選択で半自動演奏のワンキープレイモードが選択された際、さらに上記後述する選択部により選択された、自動演奏すべき曲データが、楽譜の状態で、ROM120で構成される後述する曲データ記憶部から読み出されて、表示される。   The panel display unit 142 is controlled by the display control circuit 140 to display various switches and switches for mode selection as a two-dimensional screen configuration. Further, when the one-key play mode of semi-automatic performance is selected in the mode selection, the music data to be automatically played, which is further selected by the selection unit described later, is a music data storage (described later) constituted by the ROM 120 in the form of a musical score. Is read out and displayed.

後述する表示部となるLCD141は、同じく表示制御回路140に制御されて、ワンキープレイモードが実行された場合に、後述する選択部による曲データの選択がなされた際に、CPU110が自動演奏すべき曲データの読み出しと一緒に、ROM120で構成される後述する曲データ記憶部から読み出された曲名が、表示される。   The LCD 141 serving as a display unit, which will be described later, is also controlled by the display control circuit 140, and when the one-key play mode is executed, the CPU 110 should perform automatically when music data is selected by the selection unit, which will be described later. Along with the reading of the song data, the song name read from the later-described song data storage unit constituted by the ROM 120 is displayed.

コントロールパネル151は、上記パネル表示部142で表示される各種スイッチやボリュームなどのバーチャルな操作子を含む、現物の各種スイッチやボリュームなどの操作子が搭載されており、上記パネル表示部142を含むコントロールパネル151とシステムバスの間に介在する前記パネル検出回路150により、パネル表示部142上に表示された各スイッチ・ボリューム、パネル表示部142のセット/リセット状態、現物の各種スイッチやボリュームなどの操作子の状態が調べられ、ON状態になっているパネルスイッチデータやボリュームの設定状態などが検出されて、CPU110に送出されることになる。   The control panel 151 is equipped with various actual switches and controls such as various switches and volumes displayed on the panel display unit 142, and includes the panel display unit 142. By means of the panel detection circuit 150 interposed between the control panel 151 and the system bus, each switch / volume displayed on the panel display unit 142, the set / reset state of the panel display unit 142, various actual switches and volumes, etc. The state of the operation element is checked, and the panel switch data being turned on, the volume setting state, etc. are detected and sent to the CPU 110.

上記鍵盤161は、本電子ピアノ100のキーボードで構成されており、複数の鍵と、これらの押鍵や離鍵に連動して開閉し、押鍵による音高が検出される鍵盤スイッチからなる。またこれらの鍵盤161には、押鍵時の鍵盤移動方向に設定された2点間スイッチからなる押鍵の際の押鍵速度を関知するタッチセンサ(図示なし)が設けられている。この鍵盤161及びタッチセンサと上記システムバスの間に介在する鍵盤検出回路160は、鍵盤スイッチの状態を調べ、そのON/OFFを示す信号からON又はOFF情報を含む押鍵タイミングデータとそのキーナンバからなるキーデータを出力すると共に、上記タッチセンサの検出信号から打鍵強さに比例するベロシティデータを生成するものである。この押鍵タイミングデータ(ON/OFF情報)及びキーナンバのキーデータと、ベロシティデータとは、押鍵データとして、システムバスを介してCPU110に送られる。   The keyboard 161 is composed of a keyboard of the electronic piano 100, and includes a plurality of keys and a keyboard switch that opens and closes in conjunction with key depression and key release and detects a pitch by the key depression. Further, these keyboards 161 are provided with touch sensors (not shown) for detecting the key pressing speed at the time of key pressing composed of a switch between two points set in the keyboard moving direction at the time of key pressing. The keyboard 161 and the keyboard detection circuit 160 interposed between the touch sensor and the system bus check the state of the keyboard switch, and from the signal indicating ON / OFF of the key pressing timing data including ON or OFF information and the key number thereof. Key data is generated, and velocity data proportional to the keystroke strength is generated from the detection signal of the touch sensor. The key pressing timing data (ON / OFF information), key number key data, and velocity data are sent as key pressing data to the CPU 110 via the system bus.

後述する楽音発生部の構成の一部となる上記音源170は、波形メモリ(図示なし)及び波形データ読み出し回路(図示なし)が備えられていて、自動演奏すべき曲データや上記鍵盤161からの押鍵データがCPU110により送られてきた場合に、該CPU110からの指示される読み出しアドレスに従って、波形メモリに格納された波形データの読み出しを行い(上記アドレスからの読み出しを行う)ながら、上記曲データ又は押鍵データに従った楽音を発生させる構成である。   The tone generator 170, which is a part of the configuration of the musical tone generator described later, is provided with a waveform memory (not shown) and a waveform data reading circuit (not shown). When the key depression data is sent from the CPU 110, the music data is read while reading the waveform data stored in the waveform memory according to the read address instructed from the CPU 110 (reading from the address). Or it is the structure which generates the musical tone according to key press data.

出力された楽音データは、DSP171により構成されるエフェクト付加回路で、任意のエフェクトが付加され、さらに図示しないD/A変換回路によりアナログ信号に変換され、さらにサウンドシステムを構成するアンプ172とスピーカ173により、増幅されて楽音として外部に出力される。   The output musical sound data is added with an arbitrary effect by an effect adding circuit constituted by the DSP 171, further converted into an analog signal by a D / A conversion circuit (not shown), and further an amplifier 172 and a speaker 173 constituting the sound system. Is amplified and output to the outside as a musical sound.

上記外部記憶制御回路180は、上述のように、曲データの更新のために曲データを読み込む、或いは書き出すために備えられており、本電子ピアノ100に設置されたフレキシブルディスクドライブやハードディスクなどの外部記憶装置を制御する構成である。   As described above, the external storage control circuit 180 is provided for reading or writing song data for updating song data, and an external storage device such as a flexible disk drive or a hard disk installed in the electronic piano 100 is provided. This is a configuration for controlling the storage device.

上記MIDIインターフェース190は、これを介して外部との機器の間で、本電子ピアノ100及び外部機器で使用される制御信号及び楽譜データなどの転送を行うインターフェースである。   The MIDI interface 190 is an interface through which control signals and musical score data used in the electronic piano 100 and the external device are transferred between the external device and the external device.

図2は、上記回路の本電子ピアノ100において、ROM120上に記憶されている自動演奏モード用のアプリケーションプログラムが実行されて、開始時マニュアル入力のワンキープレイモードにモード設定されることにより構成されることになる、本発明の実施例1に係る自動演奏構成の機能ブロック図である。   FIG. 2 is configured by executing the automatic performance mode application program stored in the ROM 120 in the electronic piano 100 of the above circuit and setting the mode to the one-key play mode of manual input at the start. FIG. 2 is a functional block diagram of an automatic performance configuration according to the first embodiment of the present invention.

同図に示すように、本構成は、演奏部10と、楽音発生部11と、曲データ記憶部12と、選択部13と、半自動演奏部14と、切り替え部15と、演奏情報記憶部16と、抽出部17と、制御部18と、表示部19とを備えている。   As shown in the figure, this configuration has a performance unit 10, a musical sound generation unit 11, a song data storage unit 12, a selection unit 13, a semi-automatic performance unit 14, a switching unit 15, and a performance information storage unit 16. And an extraction unit 17, a control unit 18, and a display unit 19.

上記演奏部10は、上記鍵盤161及び鍵検出回路160を備えており、上述した押鍵タイミングデータ(ON/OFF情報)及びキーナンバのキーデータと、ベロシティデータとを少なくとも含む、押鍵データを生成する構成である。   The performance unit 10 includes the keyboard 161 and a key detection circuit 160, and generates key press data including at least the key press timing data (ON / OFF information), key number key data, and velocity data. It is the structure to do.

上記楽音発生部11は、音源170、DSP171、D/A変換回路、アンプ172及びスピーカ173からなる構成であり、押鍵データ又は曲データのキーデータに従って、楽音を生成する。   The musical sound generator 11 includes a sound source 170, a DSP 171, a D / A conversion circuit, an amplifier 172, and a speaker 173, and generates musical sounds according to key pressing data or key data of music data.

上記曲データ記憶部12は、基本的にフラッシュメモリのROM120で構成されており、自動演奏可能な複数の曲データを記憶しておくことができる。また、本実施例では、該ROM120の代わりに外部記憶制御回路180によって、外部から自動演奏可能な曲データを読み出すことが可能になっており、該回路170が曲データ記憶部12として機能することもある。   The song data storage unit 12 is basically composed of a flash memory ROM 120, and can store a plurality of song data that can be automatically played. In this embodiment, the external storage control circuit 180 can read music data that can be automatically played from the outside instead of the ROM 120, and the circuit 170 functions as the music data storage unit 12. There is also.

上記選択部13は、上記パネル表示部142、パネル検出回路150及びCPU110からなる構成であり、演奏者によるパネルタッチの検出から、曲データ記憶部12に記憶された複数の曲データの中から1つの曲データの選択を行う。   The selection unit 13 includes the panel display unit 142, the panel detection circuit 150, and the CPU 110. One of a plurality of song data stored in the song data storage unit 12 is detected from detection of a panel touch by the performer. Select one song data.

上記半自動演奏部14は、CPU110で構成されており、演奏部10から押鍵タイミングデータを受け取ってその押鍵がある毎に、押鍵データのキーデータとは異なる、選択した曲データのキーデータを曲データ記憶部12から読み出して、上記切り替え部15を介して、楽音発生部11に送る構成である。   The semi-automatic performance unit 14 is composed of the CPU 110, and each time the key depression timing data is received from the performance unit 10 and the key is depressed, the key data of the selected song data which is different from the key data of the key depression data. Is read from the music data storage unit 12 and sent to the musical sound generation unit 11 via the switching unit 15.

上記切り替え部15は、同じく上記CPU110で構成されており、演奏部10の演奏データのキーデータを楽音発生部11側に送るのか、又は半自動演奏部14の曲データのキーデータを楽音発生部11に送るのかを、制御部18の切替指令によって切り替える構成である。 The switching unit 15 is also composed of the CPU 110, and sends the key data of the performance data of the performance unit 10 to the musical sound generation unit 11 side, or sends the key data of the music data of the semi-automatic performance unit 14 to the musical sound generation unit 11. It is the structure which switches whether it sends to according to the switching command of the control part 18. FIG.

なお、後述するように、本構成では、該切り替え部15によって、半自動演奏部14側から楽音発生部11への曲データの転送に切り替えられた際に、半自動演奏部14によって読み出され楽音発生部11に送られる曲データについて、上記切り替え部15により、演奏データ中のベロシティデータが取り出されて、該ベロシティデータが曲データのそれに設定されるようにしている。   As will be described later, in this configuration, when the switching unit 15 is switched to transfer the song data from the semi-automatic performance unit 14 side to the musical sound generation unit 11, it is read out by the semi-automatic performance unit 14 to generate a musical sound. With respect to the music data sent to the section 11, the switching section 15 extracts the velocity data in the performance data and sets the velocity data to that of the music data.

上記演奏情報記憶部16は、上記RAM130で構成されており、押鍵データを順次記憶しておく構成である。   The performance information storage unit 16 is composed of the RAM 130 and stores key press data in sequence.

上記抽出部17は、上記CPU110で構成されており、上記演奏情報記憶部16から連続する複数の押鍵データを読み出し、その押鍵データを、曲データ記憶部12の曲データと照合して、類似する曲データの抽出を行う構成である。   The extraction unit 17 is constituted by the CPU 110, reads a plurality of consecutive key press data from the performance information storage unit 16, collates the key press data with the song data in the song data storage unit 12, This is a configuration for extracting similar music data.

すなわち、基本的には、両データ中にあるキーデータを比較し、そのキーデータの一致度合いに応じて、曲データがどの程度類似するか数値化し、ある閾値以上の場合に、その曲データは押鍵データと類似すると判定され、抽出されることになる。   That is, basically, the key data in both data is compared, and the degree of similarity of the music data is quantified according to the degree of coincidence of the key data. It is determined that it is similar to the key pressing data and is extracted.

また、キーデータだけでなく、押鍵タイミングの時間データも比較に用いる。このとき、演奏者のテンポと原曲のテンポとは異なるため、これまた各押鍵間の時間の比率を利用するとよい。   Further, not only key data but also time data of key pressing timing is used for comparison. At this time, since the tempo of the performer is different from the tempo of the original music, it is preferable to use the time ratio between the key presses.

この判定途中で、曲データ記憶部12中の曲データの候補が絞られていくのであるが、押鍵データが入力されるほど、その候補が次第に絞られてくる。   In the middle of this determination, the song data candidates in the song data storage unit 12 are narrowed down, but the candidates are gradually narrowed down as the key depression data is input.

また押鍵データ中のキーON・OFFによる任意のキーがONになっている時間から測定されるゲートタイムを比較の対象に含めても良い。   In addition, a gate time measured from a time when an arbitrary key is turned ON by key ON / OFF in the key pressing data may be included in the comparison target.

さらに、本実施例では、類似曲データの抽出をなす際に、押鍵データと曲データとの移調の程度(トランスポーズ)を判定する機能を、該抽出部17に備えている。キーデータどおしは違っていても、トランスポーズされている場合は、同じ曲でも違うと判断される場合があるので、キーデータの音階の変わり方が同じ場合、トランスポーズされたとして、類似する曲と判定する。   Further, in this embodiment, the extraction unit 17 has a function of determining the degree of transposition between key press data and music data when extracting similar music data. Even if the key data is different, if the same song is transposed if it is transposed, it may be judged that it is different. It is determined that the song is

より具体的には、曲の類似度の計算につき、例えば初音からの相対音程をtとして、後述する数1式のような平均偏差式で求めたり、或いは数2式のような標準偏差式で求めることで、曲データがどの程度類似するか数値化し、ある閾値以上の場合に、押鍵データと曲データとは類似すると判定される。従って、移調(トランスポーズ)され、初音が違っている場合であっても、その後に続くサンプル音は相対音程としてとらえているので、類似度の判定は上記式によって簡単にでき、しかも類似すると判定された曲であれば、初音の違いをトランスポーズ分として判断すれば良いことになる。尚、類似度の判定に、以上のような計算をせずに、音階の移り変わりを包絡線状にまねいた形状どおしを比較し、その形状の一致度合いに応じて、曲データがどの程度類似するかを判断するようにしても良い。   More specifically, for calculating the similarity of songs, for example, the relative pitch from the initial sound is t, and the average deviation equation such as Equation 1 described later is obtained, or the standard deviation equation such as Equation 2 is used. By calculating the degree of similarity of the music data, it is determined that the key depression data and the music data are similar if the music data is above a certain threshold. Therefore, even if the transpose (transpose) is different and the initial sound is different, the subsequent sample sound is regarded as a relative pitch, so the similarity can be easily determined by the above formula and determined to be similar. If it is a song that has been played, the difference in the first sound may be judged as the amount of transposition. In addition, in the similarity determination, without comparing the above-mentioned calculations, the shapes of the scale transitions are compared in the form of an envelope, and the degree of music data is determined according to the degree of coincidence of the shapes. You may make it judge whether it is similar.

その類似判定の際に、初音からの相対音程をtとしてるので、トランスポーズの度合いが判定されており、そのトランスポーズの程度に基づいて、上記半自動演奏部14により、曲データ記憶部12から読み出される曲データがトランスポーズせしめられて、上記楽音発生部11に転送される。   At the time of the similarity determination, the relative pitch from the initial sound is set to t, so the degree of transposition is determined. Based on the degree of transposition, the semi-automatic performance unit 14 reads the song data from the song data storage unit 12. The music data to be read is transposed and transferred to the tone generator 11.

上記制御部18は、同じく上記CPU110で構成されており、上記抽出部17により、類似する曲データが抽出された場合に、その曲データを上記選択部13により選択されたものとし、上記切り替え部15に対して、選択曲データのキーデータを前記楽音発生手段に送るように切り替える制御指令を出力する構成である。 The control unit 18 is also composed of the CPU 110. When similar music data is extracted by the extraction unit 17, the music data is selected by the selection unit 13, and the switching unit 18 15 is configured to output a control command for switching to send the key data of the selected music data to the musical tone generating means .

また、選択部13は制御部18から送られる発音指示情報(発音するタイミングを知らせる情報)を半自動演奏部14に送出すると共に、選択した曲データのどの音符を読み出すか曲データ記憶部12に指示する。   Further, the selection unit 13 sends to the semi-automatic performance unit 14 the sound generation instruction information (information notifying the sound generation timing) sent from the control unit 18 and instructs the music data storage unit 12 to read out which musical note of the selected music data. To do.

上記表示部19は、上記表示制御回路140とLCD141とにより構成されており、抽出部17により抽出された曲データの名称が、選択部13により転送され、該曲データの名称が表示される構成である。   The display unit 19 is composed of the display control circuit 140 and the LCD 141, and the name of the song data extracted by the extraction unit 17 is transferred by the selection unit 13, and the name of the song data is displayed. It is.

図3は、本電子ピアノ100のCPU110におけるメインルーチンを示すフローチャートである。   FIG. 3 is a flowchart showing a main routine in the CPU 110 of the electronic piano 100.

同図において、パワーONにされると、本電子ピアノ100の初期化処理が行われる(ステップS100)。すなわち、CPU110に設定されるmode、level、SongNo、transposeの各レジスタが、夫々、mode=normal、level=Unknown、SongNo=0、transpose=0に設定され、演奏情報記憶部16のメモリクリアがなされる。その他は、通常の電子ピアノ100の初期化処理が行われる。   In the figure, when the power is turned on, initialization processing of the electronic piano 100 is performed (step S100). In other words, the mode, level, SongNo, and transpose registers set in the CPU 110 are set to mode = normal, level = Unknown, SongNo = 0, and transpose = 0, respectively, and the memory of the performance information storage unit 16 is cleared. The In other cases, the normal initialization process of the electronic piano 100 is performed.

次にパネル検出回路160によるパネル検出処理がなされる(ステップS102)。すなわち、パネル表示部142のパネルタッチを含むコントロールパネルの各スイッチやボリュームなどのパネルイベントの検出と、コントロールチェンジやプログラムチェンジなどのMIDIinパネルイベントの検出が行われる。   Next, panel detection processing by the panel detection circuit 160 is performed (step S102). That is, detection of panel events such as switches and volumes of the control panel including panel touch of the panel display unit 142, and detection of MIDI in panel events such as control change and program change are performed.

さらに鍵盤161押鍵によるキーイベントとMIDIinによるキーイベントなどのキー検出発音処理がなされる(ステップS104)。この処理については図4で説明する。   Further, key detection sound generation processing such as a key event by pressing the keyboard 161 and a key event by MIDIin is performed (step S104). This process will be described with reference to FIG.

その後LCD141による表示処理がなされる(ステップS106)。   Thereafter, display processing by the LCD 141 is performed (step S106).

さらにMIDIデータ処理が行われる(ステップS108)。この際MIDIinデータは、パネルイベントとキーイベントに分類される。   Further, MIDI data processing is performed (step S108). At this time, the MIDIin data is classified into a panel event and a key event.

そして曲データの更新が必要な場合には外部記憶装置に必要な曲データの読み書きが行われる(ステップS110)。   When the music data needs to be updated, the music data necessary for the external storage device is read and written (step S110).

図4は、図3のステップS104のキー検出発音処理の処理ルーチンを示すフローチャートである。   FIG. 4 is a flowchart showing the processing routine of the key detection sound generation process in step S104 of FIG.

同図に示すように、まず、modeレジスタがチェックされ(ステップS200)、normalであれば(ステップS200;Y)、通常の演奏であるので、ステップS212に移行する。   As shown in the figure, first, the mode register is checked (step S200), and if it is normal (step S200; Y), it is a normal performance, so the process proceeds to step S212.

反対にnormalでなければ(ステップS200;N)、所謂ワンキープレイモードである。   On the contrary, if it is not normal (step S200; N), it is a so-called one-key play mode.

このモードでは、最初にlevelチェックがなされる(ステップS202)。このlevelは、曲データを照合した結果が抽出確定したか否かを示している。従って不確定なら(ステップS202;Y)、Unknownとなり、ステップS210の処理に移行する。すなわち、ステップS210では、後述する曲データ照合処理のモードスイッチ(パネル上の適当なスイッチが操作される、或いは電子ピアノ100の3本ペダルのいずれか又は複数が操作される)がONになっているか否かがチェックされる。   In this mode, a level check is first performed (step S202). This level indicates whether or not the result of collation of the music data has been extracted and confirmed. Therefore, if it is uncertain (step S202; Y), it becomes Unknown and the process proceeds to step S210. That is, in step S210, a mode switch for music data collation processing described later (an appropriate switch on the panel is operated, or one or more of the three pedals of the electronic piano 100 are operated) is turned on. It is checked whether or not it exists.

該スイッチがONになっていなければ(ステップS210;N)、ステップS214の曲データ照合処理にジャンプする。   If the switch is not ON (step S210; N), the process jumps to the music data collation process in step S214.

反対に上記スイッチがONになっていれば(ステップS210;Y)、演奏情報記憶部16の記憶されたデータのリセット、後述する類似度Pのリセットが行われ(ステップS212)、ステップS214の曲データ照合処理ルーチンに移行する。   On the other hand, if the switch is ON (step S210; Y), the data stored in the performance information storage unit 16 is reset, and the similarity P described later is reset (step S212). Move to data collation processing routine.

また、上記ステップS202のlevelチェックで、曲データを照合した結果が抽出確定したなら(ステップS202;N)、SongSelectedとなり、次にキーオンイベントかキーオフイベントかが判別される(ステップS204)。   If the result of collation of the music data is confirmed by the level check in step S202 (step S202; N), it becomes SongSelected, and then it is determined whether it is a key-on event or a key-off event (step S204).

キーオフイベントならば(ステップS204;N)、消音処理(ステップS218)して、本ルーチンの処理は終了する。   If the event is a key-off event (step S204; N), the mute process (step S218) is performed, and the process of this routine ends.

一方キーオンイベントならば(ステップS204;Y)、確定したSongの曲データの中でアドレス指定されたキーデータが読み出される(ステップS206)。   On the other hand, if it is a key-on event (step S204; Y), the key data addressed in the confirmed song data is read (step S206).

さらに読み出したキーデータに、移調の度合いを示すトランスポーズ値が加算され発音される(ステップS208)。その際、ベロシティデータは(Unknown/SongSelectedに関係なく)キー検出処理時の押鍵データ中に含まれるものを使用する。   Further, a transpose value indicating the degree of transposition is added to the read key data to produce a sound (step S208). At that time, the velocity data used in the key pressing data at the time of key detection processing (regardless of Unknown / SongSelected) is used.

図5は、図4のステップS214に示した曲データ照合処理の処理ルーチンを示すフローチャートである。   FIG. 5 is a flowchart showing a processing routine of the music data collating process shown in step S214 of FIG.

同図に示すように、最初に押鍵データのキーデータが演奏情報記憶部16に記憶される(ステップS300)。すなわち、キーオン時は、キーナンバ、ステップタイム、ベロシティの各データが、またキーオフ時には、対応するキーナンバが記憶されたエリアにゲートタイムが付加されて記憶される。   As shown in the figure, first, key data of key depression data is stored in the performance information storage unit 16 (step S300). That is, each key number, step time, and velocity data are stored when the key is turned on, and the gate time is added to the area where the corresponding key number is stored when the key is turned off.

次に演奏情報記憶部16に3つの音符分以上のキーデータが記憶されたか否かがチェックされる(ステップS302)。音符が1つ分のキーデータしかない場合、トランスポーズがあるため、全く照合は不可能である。   Next, it is checked whether or not key data of three notes or more is stored in the performance information storage unit 16 (step S302). When there is only one key data for a note, there is a transpose, so it is impossible to collate at all.

音符が2つ分のキーデータがあれば一応照合は可能であるが、後述するように、キーデータと曲データの類似度を判定するためには、3つ以上の方(サンプル音数が多くなればなるほど類似度の数値が高い状態の曲は少なくなって絞られやすくなる;逆にサンプル音数が少ないほど類似度は上がる)が判定が比較的簡単にできるため、上記のようなチェックを行うことにした。むしろサンプル音数が少ないほど類似度は上がって、類似度の数値が高い状態の曲が沢山選択されてしまうので、3つの音符分以上のキーデータが記憶されたかがチェックされるようになった。従って、3つの音符分以上のキーデータが記憶されていなければ(ステップS302;N)、曲データ照合処理はそこで終了する。   If there is key data for two notes, collation is possible, but as will be described later, in order to determine the similarity between key data and song data, three or more people (the number of sampled sounds is large). As the number of songs increases, the number of songs with a high similarity value decreases and it becomes easier to narrow down; conversely, the similarity decreases as the number of sample sounds decreases.) Decided to do. Rather, the degree of similarity increases as the number of sample sounds decreases, and many songs having a high degree of similarity are selected. Therefore, it is checked whether key data of three notes or more has been stored. Therefore, if key data for three notes or more is not stored (step S302; N), the music data collation process ends there.

3つの音符分以上のキーデータが記憶されていれば(ステップS302;Y)、上記曲データ記憶部12に内蔵する曲データの先頭から逐次照合して行き、その類似度が、0.00〜0.99の範囲で判定される(ステップS304)。このとき、曲の類似度の計算を、後述する数1式のような平均偏差式で求めたり、或いは数2式のような標準偏差式で求めることで、曲データがどの程度類似するか数値化し、ある閾値(本実施例では後述するようにサンプル音数によって決められた値)以上の場合に、押鍵データと曲データとは一致するものと「確定」される。   If key data of three notes or more are stored (step S302; Y), the music data stored in the music data storage unit 12 is sequentially checked from the beginning, and the similarity is 0.00 to Determination is made within a range of 0.99 (step S304). At this time, the degree of similarity of the music data is calculated by calculating the similarity of music by an average deviation formula such as Equation 1 described later or by a standard deviation equation such as Equation 2. If the value is equal to or greater than a certain threshold value (a value determined by the number of sample sounds as will be described later in this embodiment), the key depression data and the song data are “determined” as matching.

この類似度を算出する計算は、例えば、初音からの相対音程をtとして、下記数1(平均偏差)又は数2式(標準偏差)により計算される。数2式によれば、大きな間違いを甘く見たり厳しく見たりすることもできる。また12のmod(剰余)関数を用いて、オクターブの差を無視することもできる。実際には、弾き過ぎ(「隣の鍵も間違って押しちゃった」という類のミス)、弾き足らず(「一音飛ばしちゃった」という類のミス)を別途計算した上で除外し、残りのデータに対して下式数1又は2を適用する方が良い。   The calculation for calculating the similarity is, for example, calculated by the following formula 1 (average deviation) or formula 2 (standard deviation) where t is the relative pitch from the initial sound. According to Equation 2, a big mistake can be seen sweetly or strictly. Also, the octave difference can be ignored using a 12 mod function. Actually, it is excluded after calculating separately the overplaying (such as “the wrong key was pressed the wrong key”) and not playing (the “missing one note”) separately. It is better to apply the following formula 1 or 2 to the data.

(数1)
類似度p=1−f(Σ|t[i]−t0[i]|)/n
i:評価する音列の番号(初音i=0、計算には入れず)
t[i]:演奏されたi番目の音の、演奏された初音に対する相対音程
t0[i]:予め記憶されたi番目の音の、予め記憶された初音に対する相対音程
n:初音i=0は除く、今までに演奏された音数
(Equation 1)
Similarity p = 1−f (Σ | t [i] −t0 [i] |) / n
i: Number of the sound string to be evaluated (initial sound i = 0, not included in calculation)
t [i]: Relative pitch of the played i-th sound with respect to the played first tone t0 [i]: Relative pitch of the previously stored i-th sound with respect to the previously stored first tone n: Initial tone i = 0 Excludes the number of notes played so far

(数2)
類似度p=1−f(Σ(t[i]−t0[i]))/n
(Equation 2)
Similarity p = 1−f (Σ (t [i] −t0 [i]) 2 ) / n 2

このような計算処理がなされると、数音目あたりまででは、出だしの似ている曲が、類似度の高い曲として沢山表示される。すなわち、サンプル音数が少ないほど類似度は上がる傾向にあるので、サンプル音数が3音であれば、0.9、サンプル音数が4音であれば、0.85、サンプル音数が5音であれば、0.83、サンプル音数が6音であれば、0.81、サンプル音数が7音であれば、0.79のように、音数によって一致と判断するレベルを変えるようにする。仮にサンプル音数が4音で、この類似度の0.85以上のものが複数ある場合には、一番類似度数が大きいものを(複数表示する場合は類似度数が大きい順に)表示することになる。   When such a calculation process is performed, up to several notes, songs with similar beginnings are displayed as songs with high similarity. That is, the similarity tends to increase as the number of sample sounds decreases, so 0.9 if the sample number is 3, 0.85 if the sample number is 4, and 5 sample number. If the number of sounds is 0.83, if the number of sample sounds is six, 0.81, and if the number of sample sounds is seven, the level for determining the match is changed according to the number of sounds, such as 0.79. Like that. If the number of sample sounds is 4 and there are a plurality of samples having a similarity of 0.85 or more, the one with the highest similarity is displayed (in the order of increasing the number of similarities when displaying a plurality). Become.

すなわち、上記類似度が算出された段階で、類似度の高い曲データの曲名がパネル表示部142に表示される(ステップS306)。   That is, at the stage where the similarity is calculated, the song name of the song data having a high similarity is displayed on the panel display unit 142 (step S306).

上述のように、サンプル音数が少ない場合には類似度を高めに設定するが、パネル表示部142への曲名表示は、類似度の高い順に複数曲表示(仮にサンプル音数が4音の場合に、類似度が0.85より低く、ある値以上を候補として列挙)し、確定前なら、パネルの特定スイッチかフットスイッチとかで、ユーザが手動で選べるようにすると良い。   As described above, when the number of sample sounds is small, the degree of similarity is set higher. However, the song name display on the panel display unit 142 displays a plurality of songs in descending order of the degree of similarity (if the number of sample sounds is four). If the similarity is lower than 0.85 and a certain value or more is listed as a candidate) and before confirmation, it is preferable that the user can manually select by a specific switch or foot switch on the panel.

ただし、本実施例では、曲データ記憶部12に記憶された曲データに対し、常に全数検索がなされると、曲の進行に従って処理が重くなるので、最初は全曲を候補とし、類似度が低値(例えば0.50以下)になったものはフラグを立てて、以後類似判断をしないようにすると良い。また音符の数が16音を越えても、類似度が上記数値に達しない場合は、最後に演奏された12音だけを用いて上記検索ルーチンの処理を行う(すなわち曲の途中をも検索できる)ようにする。   However, in this embodiment, if the total number search is always performed on the song data stored in the song data storage unit 12, the processing becomes heavy according to the progress of the song, so that all songs are initially candidates and the similarity is low. It is advisable to set a flag for a value (for example, 0.50 or less) so that similarity determination is not made thereafter. If the similarity does not reach the above value even if the number of notes exceeds 16, the search routine is processed using only the last 12 notes played (that is, the middle of the song can also be searched). )

そしてその類似度が所定の数値以上(仮にサンプル音数が4音であれば、0.85以上)であるか否かがチェックされる(ステップS308)。   Then, it is checked whether or not the similarity is equal to or higher than a predetermined numerical value (assuming that if the number of sampled sounds is four, it is 0.85 or higher) (step S308).

その類似度が(サンプル音数によって決められた値)以上であれば(ステップS308;Y)、押鍵データと曲データとは一致するものとして扱われ、levelレジスタをSongSelectedにセットして(ステップS310)、「確定」の文字がパネル表示部142に表示される(ステップS312)。そして、その曲名は、電子ピアノ100の前面にあるLCD141に表示される。   If the degree of similarity is equal to or greater than (a value determined by the number of sample sounds) (step S308; Y), the key depression data and the song data are treated as matching, and the level register is set to SongSelected (step S310), the character of “confirmed” is displayed on the panel display unit 142 (step S312). The music title is displayed on the LCD 141 on the front surface of the electronic piano 100.

反対に上記類似度が(サンプル音数によって決められた値)を下回るのであれば(ステップS308;Y)、押鍵データと曲データとは一致するものではないが、候補としてはより近いものとして扱われ、「有望」の文字がパネル表示部142に表示される(ステップS314)。   On the other hand, if the similarity is less than (a value determined by the number of sample sounds) (step S308; Y), the key depression data and the song data do not coincide with each other, but the candidates are closer. The characters “promising” are displayed on the panel display unit 142 (step S314).

なお、この「有望」は、「未定」としても良い。また、この類似度の値を、単に(サンプル音数によって決められた値)にせず、ユーザの習熟度に応じて上げていくようにすると、より効果的である。   The “promising” may be “undecided”. Further, it is more effective if the similarity value is not simply set to a value (determined by the number of sample sounds) but is increased according to the user's proficiency level.

以上説明した本実施例構成によれば、一旦演奏者が演奏部10の鍵盤161で演奏を始めることで(最初はその押鍵による楽音が出力される)、その間に、抽出部17により自動的に類似する曲データが抽出されて、その曲データが曲データ記憶部12から読み出され、半自動演奏部14により自動演奏が継続した状態で行えるようになる。従って、演奏者は曲の始めだけ演奏を行えば、後は半自動演奏、すなわちワンキープレイ演奏が可能となる。   According to the configuration of the present embodiment described above, once the performer starts playing on the keyboard 161 of the performance unit 10 (at first, a musical tone by the key depression is output), and during that time, the extraction unit 17 automatically Is extracted from the song data storage unit 12, and the semi-automatic performance unit 14 can continue the automatic performance. Therefore, if the performer performs only at the beginning of the song, semi-automatic performance, that is, one-key play performance is possible thereafter.

また演奏者の押鍵により出力された楽音のベロシティデータが、半自動演奏状態になったときに、切り替え部15により楽音発生部11に転送されて、そのまま引き継がれるので、本当に弾いているのか、それともワンキープレイ演奏により演奏されているのか、ほとんど見分けがつかないようになる。   Also, when the musical tone velocity data output by the performer's key depression is in a semi-automatic performance state, it is transferred to the musical tone generation unit 11 by the switching unit 15 and taken over as it is. It becomes almost indistinguishable whether it is performed by one key play performance.

さらに、抽出部17により、類似する曲データの照合・抽出を行う際にトランスポーズの程度が考慮されて、上記抽出した曲データと押鍵データとの移調具合に基づき、読み出された上記曲データのキーデータが半自動演奏部14により移調された後に、楽音発生部11により、楽音を生成することが可能となる。   Further, the extraction unit 17 considers the degree of transposition when collating / extracting similar music data, and the read music data is read based on the transposition between the extracted music data and key depression data. After the key data of the data is transposed by the semi-automatic performance unit 14, the tone generation unit 11 can generate a tone.

図6は、図2の前記実施例1の構成とは別の本発明の請求項1に係る実施例構成を示している。実施例1の構成では、演奏部10での押鍵データと半自動演奏部14での曲データの転送が、制御部18から出力された切替指令に基づく切り替え部15の切替によって、押鍵データに基づく楽音の発生から、半自動演奏部14によるワンキープレイ演奏に切り替えられるのに対し、本実施例2の構成では、切り替え部15による切替指令は、演奏部10と選択部13に出力され、押鍵データに基づく楽音の発生(演奏部10から楽音発生部11への押鍵データの転送)から、半自動演奏部14によるワンキープレイ演奏(半自動演奏部14から楽音発生部11への曲データの転送)に切り替えられる。   FIG. 6 shows a configuration of an embodiment according to claim 1 of the present invention, which is different from the configuration of the first embodiment of FIG. In the configuration of the first embodiment, the key pressing data in the performance unit 10 and the music data in the semi-automatic performance unit 14 are transferred to the key pressing data by switching the switching unit 15 based on the switching command output from the control unit 18. On the other hand, in the configuration of the second embodiment, the switching command from the switching unit 15 is output to the performance unit 10 and the selection unit 13 to generate a key depression. Generation of musical sound based on data (transfer of key pressing data from the performance section 10 to the musical sound generation section 11) to one-key play performance by the semi-automatic performance section 14 (transfer of song data from the semi-automatic performance section 14 to the musical sound generation section 11) Can be switched to.

尚、本発明の楽音発生装置は、上述の図示例にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   It should be noted that the musical tone generator of the present invention is not limited to the illustrated example described above, and it is needless to say that various modifications can be made without departing from the gist of the present invention.

本発明の楽音発生装置は、電子楽器だけではなく、アコースティック楽器でも、自動演奏機能の付属するもの、音源モジュール、パソコン音楽ソフトウェアにおいても、適用可能である。   The musical sound generating apparatus of the present invention can be applied not only to an electronic musical instrument, but also to an acoustic musical instrument, an instrument with an automatic performance function, a sound module, and personal computer music software.

所謂ワンキープレイ機能が搭載された本発明に係る電子ピアノ100の基本回路を示す回路概要図である。It is a circuit schematic diagram which shows the basic circuit of the electronic piano 100 which concerns on this invention equipped with what is called a one key play function. 実施例1に係る自動演奏構成の機能ブロック図である。3 is a functional block diagram of an automatic performance configuration according to Embodiment 1. FIG. 本電子ピアノ100のCPU110におけるメインルーチンを示すフローチャートである。3 is a flowchart showing a main routine in a CPU 110 of the electronic piano 100. ステップS104のキー検出発音処理の処理ルーチンを示すフローチャートである。It is a flowchart which shows the processing routine of the key detection sound generation process of step S104. ステップS210に示した曲データ照合処理の処理ルーチンを示すフローチャートである。It is a flowchart which shows the process routine of the music data collation process shown to step S210. 実施例2に係る自動演奏構成の機能ブロック図である。It is a functional block diagram of the automatic performance structure which concerns on Example 2. FIG.

符号の説明Explanation of symbols

10 演奏部
11 楽音発生部
12 曲データ記憶部
13 選択部
14 半自動演奏部
15 切り替え部
16 演奏情報記憶部
17 抽出部
18 制御部
19 表示部
100 電子ピアノ
110 CPU
120 ROM
130 RAM
140 表示制御回路
141 LCD
142 パネル表示部
150 パネル検出回路
151 コントロールパネル
160 鍵検出回路
161 鍵盤
170 音源
171 DSP
172 アンプ
173 スピーカ
180 外部記憶制御回路
190 MIDIインターフェース
DESCRIPTION OF SYMBOLS 10 Performance part 11 Music sound generation part 12 Music data storage part 13 Selection part 14 Semi-automatic performance part 15 Switching part 16 Performance information storage part 17 Extraction part 18 Control part 19 Display part 100 Electronic piano 110 CPU
120 ROM
130 RAM
140 Display control circuit 141 LCD
142 Panel Display Unit 150 Panel Detection Circuit 151 Control Panel 160 Key Detection Circuit 161 Keyboard 170 Sound Source 171 DSP
172 Amplifier 173 Speaker 180 External storage control circuit 190 MIDI interface

Claims (4)

演奏データを生成する演奏手段と、
演奏データのキーデータに従って楽音を生成する楽音発生手段と、
自動演奏可能な複数の曲データを記憶しておく曲データ記憶手段と、
曲データ記憶手段に記憶された複数の曲データの中から1つの曲データの選択を行う選択手段と、
演奏操作毎に、演奏データのキーデータとは異なる選択した曲データのキーデータを読み出して、上記楽音発生手段に送る半自動演奏手段と
を有する楽音発生装置において、
前記演奏手段のキーデータを前記楽音発生手段に送るのか、又は前記半自動演奏手段が読み出す、前記選択した曲データのキーデータを前記楽音発生手段に送るのかを切り替える切り替え手段と、
演奏データを順次記憶しておく演奏情報記憶手段と、
上記演奏情報記憶手段から連続する複数の演奏データを読み出し、その演奏データを、曲データ記憶手段の曲データと照合して、類似する曲データの抽出を行う抽出手段と、
上記抽出手段により、類似する曲データが抽出された場合に、その曲データを上記選択手段により選択されたものとし、上記切り替え手段に対して、選択曲データのキーデータを前記楽音発生手段に送るように切り替える指令を出力する制御手段と
を有することを特徴とする楽音発生装置。
A performance means for generating performance data;
Musical sound generating means for generating musical sounds according to the key data of the performance data;
Song data storage means for storing a plurality of automatically playable song data;
Selection means for selecting one piece of music data from a plurality of pieces of music data stored in the music data storage means;
In a musical sound generating apparatus having a semi-automatic performance means for reading out the key data of the selected song data different from the key data of the performance data for each performance operation and sending it to the musical sound generation means,
Switching means for switching whether to send the key data of the performance means to the musical sound generating means, or to send the key data of the selected music data read by the semi-automatic performance means to the musical sound generating means ;
Performance information storage means for sequentially storing performance data;
Extracting means for reading out a plurality of continuous performance data from the performance information storage means, comparing the performance data with the music data in the music data storage means, and extracting similar music data;
When similar music data is extracted by the extraction means, it is assumed that the music data is selected by the selection means, and the key data of the selected music data is sent to the tone generation means to the switching means. And a control means for outputting a command for switching in such a manner .
上記楽音発生装置において、上記切り替え手段により、演奏データ中のベロシティデータだけが取り出されて、半自動演奏手段側に転送せしめられ、該切り替え手段によって、演奏データが半自動演奏手段側に切り替えられ転送されるようになった際に、半自動演奏手段によって読み出され楽音発生手段に送られる曲データについて、先に転送された演奏データのベロシティデータと同一に設定されることを特徴とする請求項1記載の楽音発生装置。   In the above tone generator, only the velocity data in the performance data is extracted by the switching means and transferred to the semi-automatic performance means, and the performance data is switched and transferred to the semi-automatic performance means by the switching means. 2. The music data read out by the semi-automatic performance means and sent to the musical sound generation means at the same time is set to be the same as the velocity data of the performance data previously transferred. Music generator. 上記楽音発生装置に、更に表示手段を有しており、上記抽出手段により抽出された曲データの名称が、選択手段により上記表示手段に転送され、該表示手段により、曲データの名称が表示されることを特徴とする請求項1又は2記載の楽音発生装置。 The musical tone generator further includes display means, and the name of the song data extracted by the extraction means is transferred to the display means by the selection means, and the name of the song data is displayed by the display means. The musical tone generator according to claim 1 or 2 , characterized in that 上記楽音発生装置において、上記抽出手段には、類似曲データの抽出をなす際に、演奏データと曲データとの移調の程度を判定する機能を備えており、類似曲データの抽出が移調の程度の判定と共になされた際に、その移調の程度に基づいて、上記半自動演奏手段により、曲データ記憶手段から読み出される曲データが移調せしめられて、上記楽音発生手段に転送されることを特徴とする請求項1〜いずれか1つに記載の楽音発生装置。 In the above musical tone generator, the extraction means has a function of determining the degree of transposition between performance data and song data when extracting similar song data. When the determination is made, the music data read from the music data storage means is transposed by the semi-automatic performance means based on the degree of transposition, and transferred to the musical sound generation means. The musical tone generator according to any one of claims 1 to 3 .
JP2005265294A 2005-09-13 2005-09-13 Music generator Expired - Fee Related JP4675731B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005265294A JP4675731B2 (en) 2005-09-13 2005-09-13 Music generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005265294A JP4675731B2 (en) 2005-09-13 2005-09-13 Music generator

Publications (2)

Publication Number Publication Date
JP2007078974A JP2007078974A (en) 2007-03-29
JP4675731B2 true JP4675731B2 (en) 2011-04-27

Family

ID=37939392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005265294A Expired - Fee Related JP4675731B2 (en) 2005-09-13 2005-09-13 Music generator

Country Status (1)

Country Link
JP (1) JP4675731B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04303893A (en) * 1991-03-31 1992-10-27 Yamaha Corp Electronic musical instrument
JPH11288278A (en) * 1998-01-28 1999-10-19 Roland Europ Spa Method and device for retrieving musical composition
JP2002287748A (en) * 2001-03-27 2002-10-04 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2003131661A (en) * 2001-10-26 2003-05-09 Kawai Musical Instr Mfg Co Ltd Device and method for musical sound generation
JP2005122000A (en) * 2003-10-20 2005-05-12 Casio Comput Co Ltd Music playing apparatus and performance processing program
JP2005208154A (en) * 2004-01-20 2005-08-04 Casio Comput Co Ltd Musical piece retrieval system and musical piece retrieval program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04303893A (en) * 1991-03-31 1992-10-27 Yamaha Corp Electronic musical instrument
JPH11288278A (en) * 1998-01-28 1999-10-19 Roland Europ Spa Method and device for retrieving musical composition
JP2002287748A (en) * 2001-03-27 2002-10-04 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2003131661A (en) * 2001-10-26 2003-05-09 Kawai Musical Instr Mfg Co Ltd Device and method for musical sound generation
JP2005122000A (en) * 2003-10-20 2005-05-12 Casio Comput Co Ltd Music playing apparatus and performance processing program
JP2005208154A (en) * 2004-01-20 2005-08-04 Casio Comput Co Ltd Musical piece retrieval system and musical piece retrieval program

Also Published As

Publication number Publication date
JP2007078974A (en) 2007-03-29

Similar Documents

Publication Publication Date Title
US10002604B2 (en) Voice synthesizing method and voice synthesizing apparatus
JP6040809B2 (en) Chord selection device, automatic accompaniment device, automatic accompaniment method, and automatic accompaniment program
JP3594777B2 (en) Electronic musical instruments and storage media
JPH11296168A (en) Performance information evaluating device, its method and recording medium
JP2008089975A (en) Electronic musical instrument
JP4675731B2 (en) Music generator
WO2019092791A1 (en) Data generation device and program
JP4670686B2 (en) Code display device and program
JP5847048B2 (en) Piano roll type score display apparatus, piano roll type score display program, and piano roll type score display method
JP3005915B2 (en) Electronic musical instrument
JP6421811B2 (en) Code selection method and code selection device
JP4498645B2 (en) Electronic musical instrument automatic performance device
JP5630218B2 (en) Musical sound generation device and musical sound generation program
JP4509298B2 (en) Music score display device
JPH06301333A (en) Play learning device
JP2015179229A (en) Musical sound generator, electronic music instrument, musical sound generating method and program
JP4492923B2 (en) Electronic musical instrument function assignment device
JP2005234304A (en) Performance sound decision apparatus and performance sound decision program
JP2004240254A (en) Electronic musical instrument
WO2019092793A1 (en) Data generating device and program
KR100622564B1 (en) Electronic instrument
JP2012252073A (en) Musical tone data correcting device and program
JP5663948B2 (en) Music score display system
JPH0727514Y2 (en) Electronic keyboard instrument
CN113093975A (en) Display method, electronic device, performance data display system, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091102

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100706

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100831

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110125

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110126

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140204

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees