JP2011197663A - Electronic musical instrument and program - Google Patents

Electronic musical instrument and program Download PDF

Info

Publication number
JP2011197663A
JP2011197663A JP2011037914A JP2011037914A JP2011197663A JP 2011197663 A JP2011197663 A JP 2011197663A JP 2011037914 A JP2011037914 A JP 2011037914A JP 2011037914 A JP2011037914 A JP 2011037914A JP 2011197663 A JP2011197663 A JP 2011197663A
Authority
JP
Japan
Prior art keywords
file
performance
audio
identifier
sound
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.)
Granted
Application number
JP2011037914A
Other languages
Japanese (ja)
Other versions
JP5838563B2 (en
Inventor
Tadashi Okano
忠 岡野
Takashi Komano
岳志 駒野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2011037914A priority Critical patent/JP5838563B2/en
Publication of JP2011197663A publication Critical patent/JP2011197663A/en
Application granted granted Critical
Publication of JP5838563B2 publication Critical patent/JP5838563B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an electronic musical instrument in which a sound volume of a sound data is adjusted to an appropriate level that is balanced with a player of the musical instrument when performing according to reproduction of the sound data.SOLUTION: In the electronic musical instrument, a performance sound data Da are recorded in a sound file F2 as a file sound data Df2 (sound volume adjustment [2]), and a performance record identifier for indicating that it is the sound file F2 of a performance sound record type is attached when recording. Moreover, a sound file F1 of another type is obtained from outside, and while sound data Df1 and Df2 in either of the sound files F1 and F2 are reproduced, both are performed at the same time. At that time, when a reproduction object is identified to be the sound data Df2 of the sound file F2 of the performance record type by a performance recording identifier (sound volume adjustment [3]), a sound volume of the sound data Df2 is made to be different from that of the sound file F1 of another type (sound volume adjustment [1]).

Description

この発明は、音声データの再生に合わせて演奏することができる電子楽器に関する。   The present invention relates to an electronic musical instrument that can be played in accordance with reproduction of audio data.

従来より、音声データ即ちオーディオデータを再生しながらこれに合わせて演奏することができるような電子楽器が提案されている。例えば、特許文献1の電子音楽装置では、再生されるオーディオデータに対応した楽曲の曲データを用いて演奏データが修正され、楽音が発生される。このように音声データの再生に合わせて演奏する際には、次のような典型的な場面があり得る:
(1)ユーザが、CD(コンパクトディスク)を個人的にリッピング(CDデータを音声データから成るファイルに変換すること)したり、或いは、プロの演奏から成る音声データをネットワーク経由で購入して取得し、得られた音声データを再生しながら演奏することでプロと一緒に演奏しているような気分を楽しむ。
(2)両手パートから成る曲について、ユーザ自身がまず左手パートを音声データとして録音し、その後、録音した左手パート音声データの再生に合わせて右手パートの演奏を練習する。或いは、伴奏パートとメロディパートとから成る曲につき、ユーザ自身がまず伴奏パートを弾いて音声データとして録音し、その後、録音した伴奏パート音声データの再生に合わせてメロディパートの演奏を練習したり楽しんだりする。
2. Description of the Related Art Conventionally, electronic musical instruments have been proposed that can play along with voice data, that is, audio data while playing it. For example, in the electronic music apparatus of Patent Document 1, performance data is corrected using music data of music corresponding to reproduced audio data, and a musical sound is generated. Thus, when performing along with the playback of audio data, there can be typical scenes as follows:
(1) The user rips a CD (compact disc) personally (converts CD data into a file consisting of audio data) or purchases and acquires audio data consisting of professional performances via a network. And by playing while playing the audio data obtained, you can enjoy the feeling of playing with a professional.
(2) The user himself / herself first records the left-hand part as audio data for the music composed of both-hand parts, and then practice the performance of the right-hand part in accordance with the reproduction of the recorded left-hand part audio data. Alternatively, for a song composed of an accompaniment part and a melody part, the user first plays the accompaniment part and records it as voice data, and then practice or enjoy the performance of the melody part along with the playback of the recorded accompaniment part voice data. Sloppy.

(1)の場合、音声データは、十分なダイナミックレンジで鑑賞できるように、ノーマライズ処理がなされている。ここで、ノーマライズ処理とは、量子化ビット数(CDでは16bit)で採り得るダイナミックレンジを有効に使えるように、音響波形の振幅を、上限までぎりぎりに、曲全体で一定量増大させることである。また、(2)の場合は、録音するときに録音レベルが高すぎると、ダイナミックレンジの上限で音響波形の振幅がクリップしてしまうかもしれないので、録音レベルを下げ気味にして録音する。   In the case of (1), the audio data is subjected to normalization processing so that it can be viewed with a sufficient dynamic range. Here, the normalizing process is to increase the amplitude of the acoustic waveform by a certain amount over the entire song, just to the upper limit, so that the dynamic range that can be taken by the number of quantization bits (16 bits for CD) can be used effectively. . In the case of (2), if the recording level is too high when recording, the amplitude of the acoustic waveform may be clipped at the upper limit of the dynamic range.

このように、演奏と一緒に再生する音声データは、(1)では上限までぎりぎりに上げており、(2)では録音レベルを下げている。従って、(1)の音声データと(2)の音声データとを切り替えて再生し、音声データの再生と一緒に電子楽器を演奏しようとすると、音声データを切り替える度に楽器演奏音とのバランスや全体の音量を調整をしなければならない。また、その調整を誤ると、過大な音量で音声データが放音されてしまい、電子楽器や人の耳に障害を与えかねない。   As described above, the audio data reproduced together with the performance is raised to the upper limit in (1), and the recording level is lowered in (2). Accordingly, when the audio data of (1) and the audio data of (2) are switched and reproduced, and the electronic musical instrument is played together with the reproduction of the audio data, the balance with the musical instrument performance sound is changed every time the audio data is switched. The overall volume must be adjusted. Moreover, if the adjustment is made incorrectly, the sound data is emitted at an excessive volume, which may damage the electronic musical instrument and the human ear.

また、電子楽器によっては、例えば、電子オルガンのようにアタック感が弱く持続音を専門に鳴らすものなどでは、演奏による音声データの音量が全体的に大きく且つ時間的なばらつきが少なく、ダイナミックレンジの限界まで十分な音量レベルで発音すると共に、ユーザ自身の演奏を録音した音声データについては、十分大きな音量で生成するように設計される。このような電子楽器で、演奏による音声データとリッピングした音声データとの音量バランスが丁度よく調整されていると、演奏による音声データとユーザ演奏を録音した音声データとを同時に鳴らした場合、後者の音声データの音量が大き過ぎて音量バランスが悪く感じられることがある。   Also, depending on the electronic musical instrument, for example, an electronic organ such as an electronic organ that has a weak attack and specially produces a continuous sound, the volume of the sound data by the performance is generally large and the time variation is small, and the dynamic range is small. The sound data is recorded at a sufficient volume level up to the limit, and the sound data recorded by the user's own performance is designed to be generated at a sufficiently large volume. In such an electronic musical instrument, if the volume balance between the audio data of the performance and the ripped audio data is adjusted well, if the audio data of the performance and the audio data recording the user performance are played simultaneously, the latter The volume of audio data may be too high and the volume balance may be felt poor.

特開2005−274851号公報JP 2005-274851 A

この発明は、このような不都合を解消するために、音声データの再生に合わせて演奏する際、再生される音声データの音量を、楽器演奏音とのバランスが取れた適切なレベルに調整することができる電子楽器を提供することを目的とする。   In order to eliminate such inconveniences, the present invention adjusts the volume of the reproduced audio data to an appropriate level balanced with the musical instrument performance sound when performing along with the reproduction of the audio data. It is an object to provide an electronic musical instrument that can be used.

この発明の主たる特徴に従うと、演奏操作に応じて演奏音声データ(Da)を生成する演奏音声生成手段(9A;A4,B6)と、演奏音声生成手段による演奏音声データ(Da)の生成(B6)と同時に、音声ファイル(F2、F1)に記録された音声データ(Df2、Df1)を再生するファイル音声再生手段(B5→B7)と、ファイル音声再生手段により再生される音声データ(Df2、Df1)が記録された音声ファイル(F2、F1)から演奏記録識別子(第1乃至第2形式の演奏記録識別子:例えば、“}{”、“.v116”)を検出する識別子検出手段(B2)と、識別子検出手段により演奏記録識別子(“}{”、“.v116”)が検出された場合に(B2=YES)、ファイル音声再生手段により再生される音声データ(Df2)の音量を、検出されない場合(B2=NO)と異ならせる再生音量制御手段(9C;B3→B7)とを具備する電子楽器〔請求項1〕、並びに、電子楽器として機能するコンピュータに、演奏操作に応じて演奏音声データ(Da)を生成する演奏音声生成ステップ(A4,B6)と、演奏音声生成ステップでの演奏音声データ(Da)の生成(B6)と同時に、音声ファイル(F2、F1)に記録された音声データ(Df2、Df1)を再生するファイル音声再生ステップ(B5→B7)と、ファイル音声再生ステップで再生される音声データ(Df2、Df1)が記録された音声ファイル(F2、F1)から演奏記録識別子(“}{”、“.v116”)を検出する識別子検出ステップ(B2)と、識別子検出ステップで演奏記録識別子(“}{”、“.v116”)が検出された場合に(B2=YES)、ファイル音声再生ステップで再生される音声データ(Df2)の音量を、検出されない場合(B2=NO)と異ならせる再生音量制御ステップ(B3→B7)とから成る手順を実行させるプログラム〔請求項7〕が提供される。なお、括弧書きは、理解の便のために付記した実施例の参照記号や用語等であり、以下においても同様である。   According to the main feature of the present invention, performance sound generation means (9A; A4, B6) for generating performance sound data (Da) in response to a performance operation, and generation of performance sound data (Da) by the performance sound generation means (B6) ) At the same time, the file audio reproduction means (B5 → B7) for reproducing the audio data (Df2, Df1) recorded in the audio file (F2, F1) and the audio data (Df2, Df1) reproduced by the file audio reproduction means And an identifier detection means (B2) for detecting a performance recording identifier (performance recording identifiers in the first and second formats: for example, “} {”, “.v116”) from the audio file (F2, F1) in which When the performance recording identifier (“} {”, “.v116”) is detected by the identifier detecting means (B2 = YES), the audio data reproduced by the file audio reproducing means is recorded. And an electronic musical instrument comprising reproduction volume control means (9C; B3.fwdarw.B7) for making the volume of the data (Df2) different from that when not detected (B2 = NO), and a computer functioning as an electronic musical instrument. In addition, a performance sound generation step (A4, B6) for generating performance sound data (Da) in accordance with the performance operation, and a performance sound data (Da) generation (B6) in the performance sound generation step, simultaneously with the sound file ( A sound file in which the sound data (Df2, Df1) recorded in the file sound reproduction step (B5 → B7) for reproducing the sound data (Df2, Df1) recorded in F2, F1) and the sound data (Df2, Df1) reproduced in the file sound reproduction step are recorded. An identifier detection step (B2) for detecting a performance recording identifier (“} {”, “.v116”) from (F2, F1) and an identifier detection step When the recording identifier (“} {”, “.v116”) is detected (B2 = YES), the volume of the audio data (Df2) reproduced in the file audio reproduction step is not detected (B2 = NO). And a playback volume control step (B3 → B7) to be executed are provided. Note that the parentheses are reference symbols, terms and the like of the examples added for convenience of understanding, and the same applies to the following.

この発明による電子楽器は、さらに、演奏音声生成手段(9A;A4,B6)により生成された演奏音声データ(Da→Df)を、逐次、記録すると共に、演奏記録識別子(“}{”、“.v116”)を付与して音声ファイル(F2)を作成する音声ファイル作成手段(A1〜A5)を具備し、ファイル音声再生手段(B5→B7)は、音声ファイル作成手段(A1〜A5)により作成された音声ファイル(F2)或いは外部から取得された音声ファイル(F1)に記録された音声データ(Df2、Df1)を再生する〔請求項2〕ように構成することができる。   The electronic musical instrument according to the present invention further sequentially records the performance sound data (Da → Df) generated by the performance sound generation means (9A; A4, B6) and also records the performance record identifiers (“} {”, “ .V116 ") are added to create audio file (F2), and audio file creation means (A1 to A5) are provided, and the file audio reproduction means (B5 → B7) is generated by the audio file creation means (A1 to A5). The voice data (Df2, Df1) recorded in the created voice file (F2) or the voice file (F1) acquired from the outside can be reproduced (claim 2).

この発明による電子楽器において、再生音量制御手段(B3→B7)は、識別子検出手段(B2)により演奏記録識別子(第1形式の演奏記録識別子:例えば“}{”)が検出された場合(B2=YES)、ファイル音声再生手段(B5→B7)により再生される音声データ(Df2)の音量を、検出されない場合(B2=NO)に比べて所定量変更する〔請求項3〕ように構成することができる。   In the electronic musical instrument according to the present invention, the reproduction sound volume control means (B3 → B7) detects the performance record identifier (first format performance record identifier: eg, “} {”) by the identifier detection means (B2) (B2). = YES), the volume of the audio data (Df2) reproduced by the file audio reproducing means (B5 → B7) is changed by a predetermined amount compared to the case where it is not detected (B2 = NO). be able to.

この発明による電子楽器において、音声ファイル作成手段(A1〜A5)により音声ファイル(F2)に付与される演奏記録識別子(第2形式の演奏記録識別子:例えば“.v116”)には所定の音量調整量(“116”)が含まれ、再生音量制御手段(B3→B7)は、識別子検出手段(B2)により演奏記録識別子(“.v116”)が検出された場合に、ファイル音声再生手段(B5→B7)により再生される音声データ(Df2)の音量を、検出されない場合(B2=NO)よりも音量調整量(“116”)だけ変更する〔請求項4〕ように構成することができる。   In the electronic musical instrument according to the present invention, a predetermined volume adjustment is performed for the performance record identifier (second format performance record identifier: “.v116”, for example) given to the sound file (F2) by the sound file creation means (A1 to A5). When the performance recording identifier (“.v116”) is detected by the identifier detection means (B2), the playback volume control means (B3 → B7) includes the volume (“116”). The volume of the audio data (Df2) reproduced by (B7) is changed by the volume adjustment amount (“116”) rather than when it is not detected (B2 = NO).

この発明による電子楽器は、さらに、演奏記録識別子が付与されていない音声ファイル(F1)については新たに演奏記録識別子(“}{”、“.v116”)を付与し、演奏記録識別子(“}{”、“.v116”)が既に付与された音声ファイル(F2、F1)については該演奏記録識別子を変更する識別子付与手段(C12,C27)を具備する〔請求項5〕ように構成することができる。   The electronic musical instrument according to the present invention further assigns a performance record identifier (“} {”, “.v116”) to the audio file (F1) to which the performance record identifier is not assigned, and the performance record identifier (“}). The audio file (F2, F1) to which {"," .v116 ") has already been added is configured to include identifier adding means (C12, C27) for changing the performance recording identifier (claim 5). Can do.

この発明による電子楽器において、音声ファイル(F2、F1)に付与される演奏記録識別子(“}{”、“.v116”)は、当該音声ファイル(F2、F1)のファイル名に付与する1以上の文字から成る〔請求項6〕ように構成することができる。   In the electronic musical instrument according to the present invention, the performance recording identifier (“} {”, “.v116”) given to the audio file (F2, F1) is one or more given to the file name of the audio file (F2, F1). [Claim 6].

この発明の主たる特徴による電子楽器では(請求項1,7)、演奏操作(6)に応じて演奏音声生成手段(9A)により演奏音声データ(Da)を生成する(B6)と同時に、音声ファイル(F2、F1)に記録された音声データ(Df2、Df1)を再生する際に(B5→B7)、再生される音声データ(Df2、Df1)を記録した音声ファイル(F2、F1)から演奏記録識別子(第1乃至第2形式の演奏記録識別子:例えば、“}{”、“.v116”)を検出し(B2)、演奏記録識別子(“}{”、“.v116”)が検出された場合は(B2=YES)、当該音声データ(Df2)の音量を検出されない場合(B2=NO)と異ならせる(9C;B3→B7)。例えば、第1形式と呼ばれる演奏記録識別子(“}{”)が存在し、電子楽器の演奏を録音した音声ファイルであることを識別すると、かかる音声ファイルについては、外部から取得した音声ファイルのように演奏記録識別子が存在しない場合よりも音量レベルを自動的に上げて補正した上で再生する。従って、この発明によれば、音声データの再生に合わせて演奏する際、再生される音声データの音量を、楽器演奏音とのバランスが取れた適切な音量に調整することができる。   In the electronic musical instrument according to the main feature of the present invention (claims 1 and 7), the performance sound data (Da) is generated by the performance sound generation means (9A) in accordance with the performance operation (6) (B6) and at the same time, the sound file When the audio data (Df2, Df1) recorded in (F2, F1) is reproduced (B5 → B7), performance recording is performed from the audio file (F2, F1) in which the reproduced audio data (Df2, Df1) is recorded. An identifier (first or second format performance record identifier: for example, “} {”, “.v116”) is detected (B2), and a performance record identifier (“} {”, “.v116”) is detected. In this case (B2 = YES), the volume of the audio data (Df2) is different from the case where the volume is not detected (B2 = NO) (9C; B3 → B7). For example, if a performance record identifier ("} {") called the first format exists and is identified as an audio file recording a performance of an electronic musical instrument, such an audio file is like an audio file acquired from the outside. When the performance record identifier does not exist, the volume level is automatically increased and corrected before playback. Therefore, according to the present invention, when performing along with the reproduction of the audio data, the volume of the reproduced audio data can be adjusted to an appropriate volume balanced with the musical instrument performance sound.

この発明による電子楽器では、さらに、演奏音声生成手段(9A)により生成された演奏音声データ(Da→Df)を逐次記録すると共に、演奏記録識別子(“}{”、“.v116”)を付与して音声ファイル(F2)を作成しておき(A1〜A5)、演奏音声データ(Da)を生成する(B6)と同時に音声データ(Df2、Df1)を再生する際には(B5→B7)、作成した音声ファイル(F2)或いは外部から取得した音声ファイル(F1)に記録された音声データ(Df2、Df1)を再生するように構成される(請求項2)。つまり、この電子楽器による演奏音(Da)を音声ファイル(F2)として記録することができ、記録の際には(A1〜A5)、演奏記録識別子(“}{”)を付与して、この電子楽器にて演奏音を記録した音声ファイル(F2)であると識別することができるようにしておく(A1)。また、外部から音声ファイル(F1)を取得することができ、演奏音を記録した音声ファイル(F2)或いは外部から取得した音声ファイル(F1)に記録された音声データ(Df2、Df1)を再生しながら(B7)、同時に電子楽器の演奏をすることができる(B6)。従って、この発明によれば、この電子楽器で作成された音声ファイル或いは外部から取得した音声ファイルに記録された音声データの再生に合わせて演奏する際、再生される音声データの音量を、楽器演奏音とのバランスが取れた適切な音量に調整することができる。   In the electronic musical instrument according to the present invention, the performance sound data (Da → Df) generated by the performance sound generation means (9A) is sequentially recorded and a performance record identifier (“} {”, “.v116”) is given. Then, the audio file (F2) is created (A1 to A5), and the performance audio data (Da) is generated (B6) and the audio data (Df2, Df1) is reproduced at the same time (B5 → B7). The audio data (Df2, Df1) recorded in the created audio file (F2) or the audio file (F1) acquired from the outside is configured to be reproduced (claim 2). That is, the performance sound (Da) by the electronic musical instrument can be recorded as an audio file (F2). When recording (A1 to A5), a performance record identifier (“} {”) is assigned, It is possible to identify the sound file (F2) in which the performance sound is recorded by the electronic musical instrument (A1). Also, the audio file (F1) can be acquired from the outside, and the audio data (Df2, Df1) recorded in the audio file (F2) in which the performance sound is recorded or in the audio file (F1) acquired from the outside is reproduced. However, the electronic musical instrument can be played at the same time (B6). Therefore, according to the present invention, when playing along with the reproduction of the audio data recorded in the audio file created by the electronic musical instrument or the audio file acquired from the outside, the volume of the reproduced audio data is set to The volume can be adjusted to an appropriate level that is balanced with the sound.

また、この発明による電子楽器では、演奏記録識別子(第1形式の演奏記録識別子:例えば“}{”)の存在により、再生される音声データ(Df2)を記録したファイルが演奏音を記録した音声ファイル(F2)であることを識別すると(B2=YES)、当該音声データ(Df2)の再生音量を、演奏記録識別子が存在しない音声ファイル(F1)の場合(B2=NO)に比べて、この電子楽器の設計時に予め定められた所定量だけ変更する(B3→B7)ように構成される(請求項3)。例えば、電子楽器の演奏を録音した音声ファイルであることを識別すると、このような音声ファイルについては、外部から取得した音声ファイルの場合よりも音量レベルを自動的に上げて(+12dB)補正した上で再生する。従って、この発明によれば、演奏記録識別子を音量変更の目印として利用し、再生される音声データの音量を適切な所定の値に調整することができる。   Further, in the electronic musical instrument according to the present invention, due to the presence of the performance recording identifier (performance recording identifier of the first format: for example, “} {”), the file in which the audio data (Df2) to be reproduced is recorded is a sound recorded with the performance sound When the file (F2) is identified (B2 = YES), the playback volume of the audio data (Df2) is compared with that of the audio file (F1) having no performance record identifier (B2 = NO). The electronic musical instrument is configured to be changed by a predetermined amount (B3 → B7) when designing the electronic musical instrument (Claim 3). For example, when identifying an audio file that records the performance of an electronic musical instrument, the volume level of such an audio file is automatically increased (+12 dB) and corrected as compared with an externally acquired audio file. Play with. Therefore, according to the present invention, the performance record identifier can be used as a mark for changing the volume, and the volume of the reproduced audio data can be adjusted to an appropriate predetermined value.

この発明による電子楽器では、音声ファイル(F2)に付与される演奏記録識別子(第2形式の演奏記録識別子:例えば“.v116”)には所定の音量調整量(例えば“116”)が含まれ(A1〜A5)、かかる演奏記録識別子(“.v116”)が検出された場合は、再生される音声データ(Df2)の音量を、検出されない場合(B2=NO)よりも音量調整量(“116”)だけ変更する(B3→B7)ように構成される(請求項4)。従って、この発明によれば、機種によって夫々のダイナミックレンジが異なっていたり、演奏音を録音する際にクリップしないように音量を調整する程度が異なっているような複数種類の電子楽器の間で演奏音を録音した音声データを交換した場合であっても、再生される音声データの音量を、演奏記録識別子が示す音量調整量に従った適切な値に調整することができる。また、この音量調整量には、電子楽器に備えられた音量操作子のユーザ操作によって音量を再調整した結果を反映することができる。   In the electronic musical instrument according to the present invention, the performance recording identifier (second format performance recording identifier: eg “.v116”) given to the audio file (F2) includes a predetermined volume adjustment amount (eg “116”). (A1 to A5), when such a performance recording identifier (“.v116”) is detected, the volume of the reproduced audio data (Df2) is set to a volume adjustment amount (“B2 = NO”) than when it is not detected (B2 = NO). 116 ″) is changed (B3 → B7). Therefore, according to the present invention, performances can be performed among a plurality of types of electronic musical instruments that have different dynamic ranges depending on the model, or that differ in the degree of volume adjustment so that they are not clipped when recording performance sounds. Even when the voice data recording the sound is exchanged, the volume of the reproduced voice data can be adjusted to an appropriate value according to the volume adjustment amount indicated by the performance record identifier. In addition, the volume adjustment amount can reflect the result of readjustment of the volume by the user operation of the volume operator provided in the electronic musical instrument.

この発明による電子楽器では、さらに、演奏記録識別子が付与されていない音声ファイル(F1)については新たに演奏記録識別子(“}{”、“.v116”)を付与したり、演奏記録識別子(“}{”、“.v116”)が既に付与された音声ファイル(F2、F1)については該演奏記録識別子を変更する(C12,C27)ように構成される(請求項5)。例えば、他の録音機器(PCなど)で楽器演奏を録音して音声ファイル(F1)を作成した場合は、前述した(1)の場合と同様に、録音レベルを下げ気味に録音することになるが、この音声ファイル(F1)を電子楽器に取り込み、ファイル名に所定の文字を付与して演奏記録識別子(“}{”)を付けることで、演奏音を記録した音声ファイル(F2)と同等のものとして取り扱う。また、他機種の電子楽器にて楽器演奏を当該機種に対応して所定レベルで録音され演奏記録識別子が埋め込まれた音声ファイル(F1)を作成した場合は、この音声ファイル(F1)を電子楽器に取り込み、ファイルに埋め込まれた演奏記録識別子をこの電子楽器に対応した演奏記録識別子(“.v116”)に変更することで、この電子楽器のダイナミックレンジに合った再生音量でその音声データを再生する。従って、この発明によれば、このように他の録音機器や他機種の電子楽器で作成した音声ファイルについても、この電子楽器に対応した演奏記録識別子を付けることにより、適切な音量に補正することができる。   In the electronic musical instrument according to the present invention, a performance record identifier (“} {”, “.v116”) is newly assigned to the audio file (F1) to which the performance record identifier is not assigned, or the performance record identifier (“ } For the audio file (F2, F1) to which {"," .v116 ") has already been assigned, the performance recording identifier is changed (C12, C27) (claim 5). For example, when a musical instrument performance is recorded by another recording device (such as a PC) to create an audio file (F1), the recording level is lowered as in the case of (1) described above. However, by importing the audio file (F1) into an electronic musical instrument, adding a predetermined character to the file name and adding a performance recording identifier ("} {"), it is equivalent to the audio file (F2) recording the performance sound. Treat as a thing. In addition, when an audio file (F1) is recorded with an electronic musical instrument of another model recorded at a predetermined level corresponding to the model and the performance record identifier is embedded, the audio file (F1) is created as an electronic musical instrument. The performance recording identifier embedded in the file and the performance recording identifier embedded in the file is changed to the performance recording identifier (".v116") corresponding to the electronic musical instrument, so that the audio data is reproduced with a reproduction volume suitable for the dynamic range of the electronic musical instrument. To do. Therefore, according to the present invention, an audio file created by another recording device or another type of electronic musical instrument can be corrected to an appropriate volume by attaching a performance record identifier corresponding to the electronic musical instrument. Can do.

この発明による電子楽器において、演奏記録識別子は、音声ファイルのファイル名に1以上の文字(“}{”、“.v116”)が付与されているか否かで判断する(請求項6)。例えば、演奏音を音声ファイルに記録する際、演奏記録識別子として、音声ファイルの名前に所定の文字(「}{」、「.v11」)を入れることで、楽器演奏が録音された音声ファイル(F2)をファイル名で識別することができる。従って、この発明によれば、演奏記録識別子に視認性をもたせ、音声ファイルを別の再生機器(PCなど)にコピーして再生させた場合にも、楽器演奏を録音したファイルであるか、一般的なファイルであるかを視認することができる。   In the electronic musical instrument according to the present invention, the performance record identifier is determined by whether or not one or more characters (“} {”, “.v116”) are added to the file name of the audio file. For example, when recording a performance sound in an audio file, a predetermined character (“} {”, “.v11”) is added to the name of the audio file as a performance recording identifier, thereby recording an audio file ( F2) can be identified by the file name. Therefore, according to the present invention, even if a performance recording identifier is made visible and an audio file is copied to another playback device (such as a PC) and played back, it is a file that records an instrument performance, You can see if it is a typical file.

この発明の一実施例による電子楽器のハードウエア構成図である。It is a hardware block diagram of the electronic musical instrument by one Example of this invention. この発明の一実施例による音量調整例を説明するための模式図である。It is a schematic diagram for demonstrating the volume adjustment example by one Example of this invention. この発明の一実施例によるメイン処理のフローチャートである。It is a flowchart of the main process by one Example of this invention. この発明の一実施例によるファイル録音処理のフローチャートである。It is a flowchart of the file recording process by one Example of this invention. この発明の一実施例によるファイル再生演奏処理のフローチャートである。It is a flowchart of the file reproduction | regeneration performance process by one Example of this invention. この発明の一実施例(第1実施形態)によるファイル識別子付与処理1のフローチャートである。It is a flowchart of the file identifier provision process 1 by one Example (1st Embodiment) of this invention. この発明の一実施例(第2実施形態)によるファイル識別子付与処理2のフローチャートである。It is a flowchart of the file identifier provision process 2 by one Example (2nd Embodiment) of this invention. この発明の一実施例で用いられるファイル形式の説明図である。It is explanatory drawing of the file format used by one Example of this invention.

〔ハードウエア構成例〕
図1は、この発明の一実施例による電子楽器のハードウエア構成例である。この発明の一実施例による電子楽器は、中央処理装置(CPU)1、タイマ2、ランダムアクセスメモリ(RAM)3、読出専用メモリ(ROM)4、外部記憶スロット5、演奏操作検出部6、設定操作検出部7、表示部8、音声データ処理部9、ネットワークインターフェース(I/F)10、MIDIインターフェース(I/F)11等の要素を備え、これら要素1〜11はバス12を介して互いに接続される。
[Hardware configuration example]
FIG. 1 is a hardware configuration example of an electronic musical instrument according to an embodiment of the present invention. An electronic musical instrument according to an embodiment of the present invention includes a central processing unit (CPU) 1, a timer 2, a random access memory (RAM) 3, a read only memory (ROM) 4, an external storage slot 5, a performance operation detection unit 6, and a setting. The operation detection unit 7, the display unit 8, the audio data processing unit 9, the network interface (I / F) 10, the MIDI interface (I / F) 11, and the like are provided. Connected.

装置全体を制御するCPU1は、タイマ2、RAM3及びROM4と共に、各種制御プログラムに従って各種処理を実行する制御処理部を構成し、音声データ処理プログラムを含む各種制御プログラムに従い、タイマ2によるクロックを利用して音声データ処理を含む種々の処理を実行する。RAM3は、これらの処理に際して必要な各種データを一時的に記憶するためのワーク領域として用いられ、ROM4は、各種制御プログラムや必要な各種データが記憶されている。   The CPU 1 that controls the entire apparatus constitutes a control processing unit that executes various processes according to various control programs together with the timer 2, RAM 3 and ROM 4, and uses the clock by the timer 2 according to various control programs including an audio data processing program. Various processes including voice data processing are executed. The RAM 3 is used as a work area for temporarily storing various data necessary for these processes, and the ROM 4 stores various control programs and various necessary data.

外部記憶スロット5は、可搬性の記憶媒体5Mが着脱可能であり、記憶媒体5Mと共に外部記憶装置として機能する。外部記憶スロット5及び記憶媒体5Mは、例えば、USBインターフェース(I/F)及びフラッシュメモリを内蔵したUSBメモリで構成することができる。この場合、USBメモリ5M内には、音声データを、例えばWAV形式で、音声ファイルとして記憶することができる。可搬性があるUSBメモリには、他の録音機器で生成した音声ファイルを記憶することができ、USBメモリに記憶された音声ファイルはこの電子楽器で利用することができ、また、この電子楽器で生成した音声ファイルはUSBメモリを介して他の再生機器で利用することもできる。もちろん、CD(コンパクトディスク)やDVD(デジタル多目的ディスク)などの可搬性記憶媒体を用いた他のタイプの記憶装置でもよいが、以下においては、記憶媒体5MとしてUSBメモリを用いるものとして説明する。   A portable storage medium 5M is detachable from the external storage slot 5, and functions as an external storage device together with the storage medium 5M. The external storage slot 5 and the storage medium 5M can be constituted by, for example, a USB memory incorporating a USB interface (I / F) and a flash memory. In this case, the audio data can be stored in the USB memory 5M as an audio file, for example, in the WAV format. The portable USB memory can store audio files generated by other recording devices, and the audio files stored in the USB memory can be used by this electronic musical instrument. The generated audio file can be used by other playback devices via the USB memory. Of course, another type of storage device using a portable storage medium such as a CD (compact disk) or a DVD (digital multipurpose disk) may be used. However, in the following description, a USB memory is used as the storage medium 5M.

演奏操作検出部6は、鍵盤などの演奏操作子の操作を検出し、検出された演奏操作に対応する演奏データを制御処理部に導入し、設定操作検出部7は、スイッチやノブ(音量操作子)等の設定操作子に対する操作内容を検出し、対応する各種設定情報を制御処理部に導入する。表示部8は、各種表示要素やLCD等のディスプレイ(表示器)の点灯/表示内容をCPU1からの指令に従って制御し、各種操作に対する表示援助を行う。   The performance operation detection unit 6 detects the operation of a performance operator such as a keyboard, introduces performance data corresponding to the detected performance operation to the control processing unit, and the setting operation detection unit 7 operates a switch or knob (volume operation). The operation content for the setting operation element such as “child” is detected, and corresponding setting information is introduced into the control processing unit. The display unit 8 controls lighting / display contents of various display elements and a display (display device) such as an LCD according to a command from the CPU 1 and performs display assistance for various operations.

音声データ処理部9は、音響信号処理部とも呼ばれ、音源効果部9A、記録音量調整部9B、再生音量調整部9C、加算部9Dなどから成る。音源効果部9Aは、CPU1からの指令に従い、演奏操作検出部6で検出された演奏操作に対応する演奏データ或いは所定の記憶手段に記憶された自動演奏データに基づいて、演奏楽音波形を表わすオーディオ形式の楽音データを生成し、更に、生成された楽音データに所定の効果を付与し演奏音声データDaとして記録音量調整部9B或いは加算部9Dに出力する。   The audio data processing unit 9 is also called an acoustic signal processing unit, and includes a sound source effect unit 9A, a recording volume adjustment unit 9B, a reproduction volume adjustment unit 9C, an addition unit 9D, and the like. The sound source effect unit 9A is an audio representing a musical sound waveform based on performance data corresponding to a performance operation detected by the performance operation detection unit 6 or automatic performance data stored in a predetermined storage means in accordance with a command from the CPU 1. The musical tone data in the format is generated, and further, a predetermined effect is given to the generated musical tone data, and is output to the recording volume adjusting unit 9B or the adding unit 9D as performance audio data Da.

記録音量調整部9Bは、音源効果部9Aで生成された演奏音声データDaをUSBメモリ5Mにファイル音声データDfとして記憶する際に、所定量だけ当該演奏音声データDaのダイナミクス(音量)を調整する。また、再生音量調整部9Cは、USBメモリ5Mから所望のファイル音声データDfを再生する際に、CPU1からバス12経由で指示される再生音量制御信号に従って当該ファイル音声データDfのダイナミクス(音量)を調整し、調整されたファイル音声データ(調整後ファイル音声データ)Dbを加算部9Dに供給する。   The recording volume adjusting unit 9B adjusts the dynamics (volume) of the performance audio data Da by a predetermined amount when storing the performance audio data Da generated by the sound source effect unit 9A as file audio data Df in the USB memory 5M. . Also, the reproduction volume adjustment unit 9C, when reproducing desired file audio data Df from the USB memory 5M, adjusts the dynamics (volume) of the file audio data Df according to the reproduction volume control signal instructed from the CPU 1 via the bus 12. The adjusted file audio data (adjusted file audio data) Db is supplied to the adder 9D.

加算部9Dは、音源効果部9Aからの演奏音声データDa及び再生音量調整部9Cからの調整後ファイル音声データDbを加算し、加算された出力音声データDcを、音声データ処理部9に接続されたサウンドシステム13に供給することができる。そして、サウンドシステム13は、D/A変換部やアンプ、スピーカを備え、音声データ処理部9からの出力音声データDcに基づく楽音を発生する。   The adding unit 9D adds the performance audio data Da from the sound source effect unit 9A and the adjusted file audio data Db from the reproduction volume adjusting unit 9C, and the added output audio data Dc is connected to the audio data processing unit 9. The sound system 13 can be supplied. The sound system 13 includes a D / A conversion unit, an amplifier, and a speaker, and generates a musical sound based on the output audio data Dc from the audio data processing unit 9.

ネットワークI/F10には、インターネットやローカルエリアネットワーク(LAN)などのネットワークが接続され、設定データやMIDI演奏データ(自動演奏データ)などの各種データを外部からダウンロードし、外部記憶スロット5に装着されたUSBメモリなどの記憶媒体5Mに保存してこの電子楽器で利用することができる。また、MIDII/F11には、この電子楽器と同様にMIDI音楽情報処理機能を有する外部MIDI機器が接続され、I/F11を通じてMIDI演奏データを授受することができる。   A network such as the Internet or a local area network (LAN) is connected to the network I / F 10, and various data such as setting data and MIDI performance data (automatic performance data) are downloaded from the outside, and are installed in the external storage slot 5. The electronic musical instrument can be stored in a storage medium 5M such as a USB memory. Similarly to this electronic musical instrument, an external MIDI device having a MIDI music information processing function is connected to the MIDII / F11, and MIDI performance data can be exchanged through the I / F11.

〔音声データ(オーディオデータ)の処理〕
この発明の一実施例による電子楽器は、音声データ処理プログラムに従って動作させることができる。例えば、パーソナルコンピュータ(PC)などの外部機器において、CDからリッピングしたり、一般的な楽曲音声データを記録した音声ファイルをネットワーク経由でダウンロードしたり、音声信号の録音などをしたりして作った音声ファイルをUSBメモリに収めた後、このUSBメモリをこの電子楽器の外部記憶スロット5に記憶媒体5Mとして装着することにより、この電子楽器は、当該USBメモリ5Mに収められた音声ファイルを読み出して再生することができる。また、この電子楽器において、音声データ処理部9の音源効果部9Aで生成される音声データ即ち演奏音声データDaは、記録音量調整機能9Bによりダイナミクスを調整した後、USBメモリ5M内に用意された音声ファイルに順に記録することができる。ここで、前者のように外部から取得した音声ファイルは第1タイプ(通常タイプ)の音声ファイルF1と呼ばれ、後者のようにこの電子楽器で演奏音を記録した音声ファイルは第2タイプ(演奏記録タイプ)の音声ファイルF2と呼ばれる。そして、USBメモリ内の音声ファイルに記録される音声データ(オーディオデータ)Dfは一般にファイル音声データと呼ばれ、第1及び第2タイプの音声ファイルF1,F2内のファイル音声データDfは、それぞれ、第1及び第2タイプのファイル音声データDf1,Df2と呼ばれる。
[Processing of voice data (audio data)]
An electronic musical instrument according to an embodiment of the present invention can be operated according to an audio data processing program. For example, an external device such as a personal computer (PC) was created by ripping from a CD, downloading an audio file with general music audio data recorded over the network, recording audio signals, etc. After the audio file is stored in the USB memory, the USB memory is mounted as the storage medium 5M in the external storage slot 5 of the electronic musical instrument, so that the electronic musical instrument reads the audio file stored in the USB memory 5M. Can be played. In this electronic musical instrument, the sound data generated by the sound source effect unit 9A of the sound data processing unit 9, that is, the performance sound data Da, is prepared in the USB memory 5M after adjusting the dynamics by the recording volume adjusting function 9B. You can record to audio files in order. Here, the audio file acquired from the outside like the former is called the first type (normal type) audio file F1, and the audio file recorded with the electronic musical instrument like the latter is the second type (performance). Recording type) audio file F2. The audio data (audio data) Df recorded in the audio file in the USB memory is generally called file audio data, and the file audio data Df in the first and second type audio files F1, F2 are respectively It is called first and second type file audio data Df1, Df2.

ここで、演奏音声データDaをファイルに記録する際には、「演奏記録識別子」と呼ばれる識別子が音声ファイルのファイル名に付与され、音声ファイルの種類を識別するのに用いられる。つまり、演奏が記録された第2タイプの音声ファイルF2には演奏記録識別子が付与されており、再生時の音量調整に有用される。また、第1タイプの音声ファイルF1であっても、外部機器(PCなど)で記録された音声データのように、演奏音声データDaを記録する場合と同様の態様でダイナミクスが調整された音声データが記録されている音声ファイルについては、ユーザ操作によりファイル名を変更して演奏記録識別子を付与し、第2タイプの音声ファイルF2に変換することができる。   Here, when recording the performance audio data Da in a file, an identifier called “performance recording identifier” is given to the file name of the audio file and used to identify the type of the audio file. That is, the performance record identifier is given to the second type audio file F2 in which the performance is recorded, which is useful for adjusting the volume during reproduction. Further, even for the first type audio file F1, the audio data whose dynamics are adjusted in the same manner as in the case of recording the performance audio data Da, such as audio data recorded by an external device (such as a PC). Can be converted into a second type audio file F2 by changing the file name and assigning a performance recording identifier.

なお、この電子楽器には、演奏記録識別子として、例えば、“}{”のように、固定された所定の文字又は文字列から成る第1形式の演奏記録識別子を用い、第1形式の演奏記録識別子の有無により再生音量調整部9Cでの再生音量を切り替えるように動作する第1実施形態と、演奏記録識別子として、例えば、“.v116”のように、音量変更すべき可変の値(例えば、“116”)を含む所定の文字列から成る第2形式の演奏記録識別子を用い、第2形式の演奏記録識別子に含まれる可変の音量変更値(“116”)に応じて再生音量調整部9Cでの再生音量を変更するように動作する第2実施形態とがある。また、以下において両実施形態で異なるところがある場合には、第1実施形態における動作を中心に説明するものとする。   In this electronic musical instrument, a performance recording identifier of the first format composed of a predetermined fixed character or character string such as “} {” is used as a performance recording identifier. The first embodiment that operates to switch the reproduction volume in the reproduction volume adjustment unit 9C depending on the presence or absence of an identifier, and a variable value (for example, “.v116”) to change the volume as a performance recording identifier, for example, The playback volume adjusting unit 9C uses a second-format performance record identifier including a predetermined character string including “116”) and changes the volume change value (“116”) included in the second-format performance record identifier. There is a second embodiment that operates so as to change the playback volume of the video. In addition, when there is a difference between the two embodiments below, the operation in the first embodiment will be mainly described.

USBメモリ内の音声ファイルに記録されているファイル音声データDfは、これを再生し、再生音量調整機能9Cによりその音量を調整して調整後ファイル音声データDbを生成することができ、調整後ファイル音声データDbと音源効果部9Aで生成された楽音データ即ち演奏音声データDaとを加算し(9D)、サウンドシステム13を通じて放音することができる。ここで、再生されるファイル音声データDfのダイナミクス即ち音量は、演奏記録識別子の有無に応じたCPU1からの再生音量制御信号に従い、ファイル音声データDfのタイプ(Df1,Df2)に対応した適切な値に調整することができる。   The file audio data Df recorded in the audio file in the USB memory can be reproduced, and the volume can be adjusted by the reproduction volume adjustment function 9C to generate the adjusted file audio data Db. The sound data Db and the musical sound data generated by the sound source effect unit 9A, that is, the performance sound data Da are added (9D), and the sound can be emitted through the sound system 13. Here, the dynamics, that is, the volume of the file audio data Df to be reproduced is an appropriate value corresponding to the type (Df1, Df2) of the file audio data Df according to the reproduction volume control signal from the CPU 1 according to the presence or absence of the performance recording identifier. Can be adjusted.

図2は、この発明の一実施例による音量調整例を説明するための模式図である。まず、図2(1)の「音量調整〔1〕」は、PCなどの外部機器においてCDからリッピングしたりネットワーク経由で購入した第1タイプの音声ファイルF1を再生しながら同時に演奏する場合に行われる音量調整の模式図を示している。この場合、CDからのリッピングやネットワーク経由の購入によりUSBメモリ5Mに記憶された第1タイプの音声ファイルF1には、ダイナミックレンジぎりぎりの音量で第1タイプのファイル音声データDf1が記録されている。このような第1タイプの音声ファイルF1を再生しながら同時に演奏する場合、CPU1は、音声ファイルF1に演奏記録識別子がないことを検知し、再生音量制御信号により音声データ処理部9の再生音量調整部9Cを制御して、音源効果部9Aからの演奏音声データDaとのバランスが適切になるように、この音声ファイルF1から読み出されるファイル音声データDf1の音量を調整する。   FIG. 2 is a schematic diagram for explaining an example of volume adjustment according to one embodiment of the present invention. First, “Volume adjustment [1]” in FIG. 2 (1) is performed when an external device such as a PC performs ripping from a CD or playing a first type audio file F1 purchased via a network at the same time. A schematic diagram of the volume adjustment is shown. In this case, the first type file audio data Df1 is recorded at a volume just below the dynamic range in the first type audio file F1 stored in the USB memory 5M by ripping from the CD or purchasing via the network. When playing such a first type audio file F1 simultaneously while playing, the CPU 1 detects that there is no performance record identifier in the audio file F1, and adjusts the playback volume of the audio data processing unit 9 based on the playback volume control signal. The volume of the file audio data Df1 read from the audio file F1 is adjusted by controlling the unit 9C so that the balance with the performance audio data Da from the sound source effect unit 9A is appropriate.

例えば、音源効果部9Aから出力される音声データ即ち演奏音声データDaのダイナミックレンジは、22ビット、132dBで表わされ、第1タイプの音声ファイルF1から読み出された音声データ即ち第1タイプのファイル音声データDf1のダイナミックレンジは、16ビット、96dBで表わされる。再生音量調整部9Cによる音量調整の結果、第1タイプのファイル音声データDf1は、音量が上げられ、そのダイナミックレンジが、20ビット、120dBで表わされる音声データDb1に変換される。このように再生音量調整部9Cで第1タイプのファイル音声データDf1を音量調整した後の音声データDb1は、第1タイプの調整後ファイル音声データと呼ばれ、加算部9Dに供給される。   For example, the dynamic range of the sound data output from the sound source effect unit 9A, that is, the performance sound data Da is represented by 22 bits and 132 dB, and the sound data read from the first type sound file F1, that is, the first type. The dynamic range of the file audio data Df1 is represented by 16 bits and 96 dB. As a result of the volume adjustment by the reproduction volume adjustment unit 9C, the volume of the first type file audio data Df1 is increased, and the dynamic range thereof is converted into audio data Db1 represented by 20 bits and 120 dB. The audio data Db1 after the volume adjustment of the first type file audio data Df1 by the reproduction volume adjustment unit 9C is called the first type adjusted file audio data and supplied to the addition unit 9D.

このように、音量調整〔1〕では、再生音量調整部9Cにより、第1タイプの音声ファイルF1から読み出された16ビットのファイル音声データDf1を4ビットシフトアップし(下位に“0”を4ビット分付け足す)、ダイナミックレンジを16ビット(96dB)から20ビット(120dB)に広げる。なお、音量調整〔1〕におけるシフトアップは、通常の音量設定と呼ばれ、後述する(3)の音量調整〔3〕における第2タイプの音声ファイルF2の場合よりも2ビット(12dB)だけ音量レベルが小さい。   Thus, in the volume adjustment [1], the reproduction volume adjustment section 9C shifts up the 16-bit file audio data Df1 read from the first type audio file F1 by 4 bits (sets “0” in the lower order). Add 4 bits) to expand the dynamic range from 16 bits (96 dB) to 20 bits (120 dB). Note that the shift up in the volume adjustment [1] is called normal volume setting, and the volume is increased by 2 bits (12 dB) compared to the case of the second type audio file F2 in the volume adjustment [3] described later in (3). The level is small.

加算部9Dは、音源効果部9Aからの演奏音声データDaと再生音量調整部9Cからの第1タイプの調整後ファイル音声データDb1との加算処理を行う。この加算処理では、演奏音声データDaの22ビットと第1タイプの調整後ファイル音声データDb1の20ビットとが、下位ビットから桁を揃えて加算され、加算結果は22ビットになる。つまり、調整後ファイル音声データDb1の20ビットを更に2ビットシフトアップして加算するものではない。演奏による演奏音声データDaと第1タイプのファイル再生による調整後ファイル音声データDb1が加算されたダイナミックレンジ=22ビット、132dBの出力音声データDcが加算部9Dからサウンドシステム13へと出力される。そして、サウンドシステム13は、出力音声データDcに基づいて演奏音声と第1タイプのファイル音声とをスピーカから放音し、ユーザにはこれら2つの音が混ざって聞こえる。   The adding unit 9D performs an addition process of the performance audio data Da from the sound source effect unit 9A and the first type adjusted file audio data Db1 from the reproduction volume adjusting unit 9C. In this addition processing, the 22 bits of the performance audio data Da and the 20 bits of the first type adjusted file audio data Db1 are added with their digits aligned from the lower bits, and the addition result is 22 bits. That is, 20 bits of the adjusted file audio data Db1 are not shifted up by 2 bits and added. A dynamic range of 22 bits and 132 dB of output sound data Dc obtained by adding the performance sound data Da by performance and the adjusted file sound data Db1 by file reproduction of the first type is output from the adder 9D to the sound system 13. The sound system 13 emits the performance sound and the first type file sound from the speaker based on the output sound data Dc, and the user can hear these two sounds mixed together.

図2(2)の「音量調整〔2〕」は、この電子楽器による演奏音生成結果を音声ファイルに記録する場合に行われる音量調整の模式図を示している。この場合、音声データ処理部9の音源効果部9Aから出力される演奏音声データDaは、例えば、前述と同様に、ダイナミックレンジが22ビット、132dBであるが、記録音量調整部9Bによって、この演奏音声データDaのダイナミックレンジが、16ビット、96dBにシフトダウンされる。つまり、記録音量調整部9Bによる音量調整では、演奏音声データDaの下位6ビットが切り捨てられ、22ビット(132dB)あったダイナミックレンジが16ビット(96dB)に狭まる。   “Volume adjustment [2]” in FIG. 2B is a schematic diagram of volume adjustment performed when the performance sound generation result by the electronic musical instrument is recorded in an audio file. In this case, the performance audio data Da output from the sound source effect unit 9A of the audio data processing unit 9 has a dynamic range of 22 bits and 132 dB, for example, as described above. The dynamic range of the audio data Da is shifted down to 16 bits and 96 dB. That is, in the volume adjustment by the recording volume adjustment unit 9B, the lower 6 bits of the performance audio data Da are discarded, and the dynamic range of 22 bits (132 dB) is narrowed to 16 bits (96 dB).

そして、このように音量調整された演奏音声データDaは第2タイプのファイル音声データDf2としてファイルに記録され、このファイル音声データDf2を含むファイルは、ファイル名に演奏記録識別子が付記された上、USBメモリ5Mに第2タイプの音声ファイルF2として記憶される。このように演奏音声データDaの音量を調整したファイル音声データDf2が第2タイプの音声ファイルF2として記憶された場合、次の音量調整〔3〕で説明するように、この第2タイプのファイル音声データDf2を後で再生しながら同時に演奏をすることができる。   The performance audio data Da whose volume has been adjusted in this way is recorded in the file as the second type file audio data Df2, and the file including the file audio data Df2 has a performance recording identifier appended to the file name. It is stored in the USB memory 5M as the second type audio file F2. When the file audio data Df2 in which the volume of the performance audio data Da is adjusted as described above is stored as the second type audio file F2, as described in the next volume adjustment [3], this second type file audio is stored. The data Df2 can be played simultaneously while being reproduced later.

図2(3)の「音量調整〔3〕」は、演奏音を記録した第2タイプの音声ファイルF2を再生しながら同時に演奏する場合、つまり、音量調整〔2〕で説明したように作成された音声ファイルF2を再生し、それと同時に演奏をする場合に行われる音量調整の模式図を示している。上述の説明のように、演奏音を記録したUSBメモリ5M内の第2タイプの音声ファイルF2には、ダイナミックレンジ対して低めの音量でファイル音声データDfが記録されている。CPU1は、この音声ファイルF2に演奏記録識別子があることを検知し、再生音量制御信号により音声データ処理部9の再生音量調整部9Cを制御して、音源効果部9Aからの演奏音声データDaとのバランスが適切になるように、音声ファイルF2から読み出される第2タイプのファイル音声データDf2の音量を調整する。   “Volume adjustment [3]” in FIG. 2 (3) is created when the second type audio file F2 in which the performance sound is recorded is played simultaneously, that is, as described in the volume adjustment [2]. FIG. 4 is a schematic diagram of volume adjustment performed when the audio file F2 is played and played at the same time. As described above, in the second type audio file F2 in the USB memory 5M in which the performance sound is recorded, the file audio data Df is recorded with a volume lower than the dynamic range. The CPU 1 detects that there is a performance recording identifier in the audio file F2, and controls the reproduction volume adjustment unit 9C of the audio data processing unit 9 by the reproduction volume control signal, and the performance audio data Da from the sound source effect unit 9A. Is adjusted so that the volume of the second type file audio data Df2 read from the audio file F2 is adjusted.

既述のように、音源効果部から出力される演奏音声データDaのダイナミックレンジは、22ビット、132dBであるが、演奏音を記録した音声ファイルF2から読み出される第2タイプのファイル音声データDf2のダイナミックレンジは、16ビット、96dBである。ファイル音声データDf2は、再生音量調整部9cによる音量調整が行われ、ダイナミックレンジが、22ビット、132dBに変換されて音量レベルが上げられる。これにより、音量が上げらた第2タイプの調整後ファイル音声データDb2が生成され、加算部9Dに供給される。このように、音量調整〔3〕では、再生音量調整部9Cにより、第2タイプの音声ファイルF2から読み出された16ビットのファイル音声データDf2を6ビットシフトアップし(下位に“0”を6ビット分付け足す)、ダイナミックレンジが16ビット(96dB)から22ビット(132dB)に広がる。つまり、音量調整〔3〕におけるシフトアップは、音量調整〔2〕による通常の音量設定に比べて2ビット(12dB)だけ音量レベルが大きい。   As described above, the dynamic range of the performance sound data Da output from the sound source effect unit is 22 bits and 132 dB. However, the second type of file sound data Df2 read from the sound file F2 in which the performance sound is recorded is used. The dynamic range is 16 bits and 96 dB. The file audio data Df2 is subjected to volume adjustment by the reproduction volume adjustment unit 9c, the dynamic range is converted to 22 bits and 132 dB, and the volume level is raised. As a result, the second type of adjusted file audio data Db2 with increased volume is generated and supplied to the adder 9D. Thus, in the volume adjustment [3], the reproduction volume adjustment unit 9C shifts up the 16-bit file audio data Df2 read from the second type audio file F2 by 6 bits (sets “0” in the lower order). 6-bit addition), the dynamic range is expanded from 16 bits (96 dB) to 22 bits (132 dB). In other words, the upshift in the volume adjustment [3] has a volume level that is 2 bits (12 dB) higher than the normal volume setting by the volume adjustment [2].

加算部9Dは、音源効果部9Aからの演奏音声データDaと再生音量調整部9Cからの第2タイプの調整後ファイル音声データDb2との加算処理を行い、この加算処理では、演奏音声データDaの22ビットと第2タイプの調整後ファイル音声データDb2の22ビットとが単純に加算される。そして、演奏による演奏音声データDaと第2タイプのファイル再生による調整後ファイル音声データDb2とを加算したダイナミックレンジ=22ビット、132dBの出力音声データDcが、加算部9Dからサウンドシステム13へと出力され、出力音声データDcに基づいて、演奏音声及び第2タイプのファイル音声がサウンドシステム13から放音され、ユーザにはこれら2つの音が混ざって聞こえる。   The adding unit 9D performs an addition process of the performance audio data Da from the sound source effect unit 9A and the second type adjusted file audio data Db2 from the reproduction volume adjustment unit 9C. In this addition process, the performance audio data Da is added. The 22 bits and the 22 bits of the second type adjusted file audio data Db2 are simply added. Then, the output audio data Dc of dynamic range = 22 bits and 132 dB obtained by adding the performance audio data Da by the performance and the adjusted file audio data Db2 by the second type file reproduction is output from the adder 9D to the sound system 13. Then, based on the output sound data Dc, the performance sound and the second type file sound are emitted from the sound system 13, and the user can hear these two sounds mixed.

以上の説明では、第2タイプのファイル音声データDf2の音量を所定量だけ上げる場合について説明したが、音量を下げる場合もある。つまり、電子楽器によっては、演奏音声データDaの音量が全体的に大きく且つ時間的なばらつきが少なく、ダイナミックレンジの限界まで十分な音量レベルで発音すると共に、十分大きな音量で第2タイプのファイル音声データDf2を生成するものがある。この種の電子楽器としては、例えば、電子オルガンのようにアタック感が弱く持続音を専門に鳴らすもの等が挙げられる。このような電子楽器では、演奏音声データDaとリッピングによる第1タイプのファイル音声データDf1の再生との音量バランスが再生音量調整部9Cにより丁度よく調整されていると、演奏音声データDaと第2タイプのファイル音声データDf2とを同時に鳴らした場合、第2タイプのファイル音声データDf2の音量が大きすぎて音量バランスが悪く感じられることがある。従って、このような場合には第2タイプのファイル音声データDf2の音量を所定量だけ下げる。   In the above description, the case where the volume of the second type file audio data Df2 is increased by a predetermined amount has been described, but the volume may be decreased. That is, depending on the electronic musical instrument, the sound volume of the performance sound data Da is generally large and there is little temporal variation, and the sound of the second type file sound is generated with a sufficiently large sound volume while sounding at a sufficient sound volume level to the limit of the dynamic range. Some generate data Df2. As this type of electronic musical instrument, for example, an electronic organ that has a weak attack feeling and specially produces a continuous sound can be cited. In such an electronic musical instrument, if the volume balance between the performance audio data Da and the reproduction of the first type file audio data Df1 by ripping is adjusted precisely by the reproduction volume adjustment unit 9C, the performance audio data Da and the second When the type file audio data Df2 is sounded at the same time, the volume of the second type file audio data Df2 may be too high and the volume balance may be felt poor. Accordingly, in such a case, the volume of the second type file audio data Df2 is lowered by a predetermined amount.

また、図2において、演奏音声データDaの採り得るダイナミックレンジも出力音声データDcの採り得るダイナミックレンジも22bit(132dB)であるが、これらダイナミックレンジは、電子楽器の機種によって異なるかも知れない。また、それに伴い、再生音量調整部9Cの調整量やその調整結果である第1タイプの調整後ファイル音声データDb1のダイナミックレンジ、記録音量調整部9Bの調整量やその調整結果である第2タイプの調整後ファイル音声データDf2のダイナミックレンジも、電子楽器の機種によって異なるかも知れない。このように、複数種類の電子楽器が利用可能であり、夫々の電子楽器でダイナミックレンジが異なっていたり、演奏音を録音する際にクリップしないように音量を調整する程度が異なっているかも知れない場合には、異なる機種間でファイル音声データを交換しても破綻の無い音量調整を行うことが必要となる。   In FIG. 2, the dynamic range that can be taken by the performance audio data Da and the dynamic range that can be taken by the output audio data Dc are 22 bits (132 dB), but these dynamic ranges may differ depending on the model of the electronic musical instrument. Accordingly, the adjustment amount of the reproduction volume adjustment unit 9C and the dynamic range of the adjusted file audio data Db1 of the first type as the adjustment result, the adjustment amount of the recording volume adjustment unit 9B and the second type as the adjustment result thereof. The dynamic range of the adjusted file audio data Df2 may vary depending on the model of the electronic musical instrument. In this way, multiple types of electronic musical instruments can be used, and each electronic musical instrument may have a different dynamic range, or the degree of adjusting the volume so that it will not clip when recording a performance sound. In this case, it is necessary to adjust the volume without failing even if file audio data is exchanged between different models.

このため、後で詳述する第2実施形態では、第2形式の演奏記録識別子(例えば、“.v116”)付与された音声ファイルに記録された第2タイプのファイル音声データDf2を再生する場合は、第1タイプの音声ファイルF1の場合(音量調整〔1〕)よりも、第2形式の演奏記録識別子に含まれる可変値(例えば、“116”)に応じた音量変更量(例えば、+12dB)だけ再生音量を変更するように構成される。これによって、上述のように、異なる機種間で演奏音を録音した音声データを交換した場合であっても、適切な音量調整を行うことができる。   For this reason, in the second embodiment, which will be described in detail later, when the second type file audio data Df2 recorded in the audio file with the second format performance record identifier (for example, “.v116”) is reproduced. Is a volume change amount (for example, +12 dB) corresponding to a variable value (for example, “116”) included in the performance recording identifier of the second format, rather than in the case of the first type audio file F1 (volume adjustment [1]). ) Only configured to change the playback volume. As a result, as described above, appropriate volume adjustment can be performed even when voice data in which performance sounds are recorded between different models is exchanged.

以上のように、この発明の一実施例による電子楽器では、演奏音声データDaをファイル音声データDf2として音声ファイルF2に記録することができ(音量調整〔2〕)、記録の際は、演奏音記録タイプの音声ファイルF2であることを示す演奏記録識別子を付与しておく。また、外部からは別タイプの音声ファイルF1を取得することができ、何れかのタイプの音声ファイルF1,F2内の音声データDf1,Df2を再生しながら、同時に演奏することができる。その際、演奏記録識別子により、再生対象が演奏音記録タイプの音声ファイルF2の音声データDf2であると識別された場合は(音量調整〔3〕)、音声データDf2の音量を別タイプの音声ファイルF1の場合(音量調整〔1〕)とは異ならせることにより(Df2→Db2)、再生音(Db2)と楽器演奏音(Da)との音量バランスを適切にする。例えば、第1実施形態では、第1形式の演奏記録識別子(“}{”)があると、音声データDf2の音量を別タイプの音声ファイルF1の場合(音量調整〔1〕)より所定量(例えば、+12dB)だけ変更し、第2実施形態では、第2形式の演奏記録識別子(例えば、“.v116”)があると、音声データDf2の音量を別タイプの音声ファイルF1の場合(音量調整〔1〕)よりも、当該識別子に含まれる可変値(例えば、“116”)に応じた音量変更量(例えば、+12dB)だけ変更する。   As described above, in the electronic musical instrument according to the embodiment of the present invention, the performance sound data Da can be recorded as the file sound data Df2 in the sound file F2 (volume adjustment [2]). A performance record identifier indicating the recording type audio file F2 is assigned. Also, another type of audio file F1 can be acquired from the outside, and the audio data Df1, Df2 in any type of audio file F1, F2 can be played and played simultaneously. At this time, if the performance record identifier identifies that the playback target is the audio data Df2 of the audio file F2 of the performance sound recording type (volume adjustment [3]), the volume of the audio data Df2 is set to another type of audio file. Different from the case of F1 (volume adjustment [1]) (Df2 → Db2), the volume balance between the reproduced sound (Db2) and the musical instrument performance sound (Da) is made appropriate. For example, in the first embodiment, if there is a performance record identifier (“} {”) in the first format, the volume of the audio data Df2 is set to a predetermined amount (in the case of another type of audio file F1 (volume adjustment [1])). For example, in the second embodiment, if there is a performance record identifier (for example, “.v116”) in the second format, the volume of the audio data Df2 is set to another type of audio file F1 (volume adjustment). [1]) is changed by a volume change amount (for example, +12 dB) corresponding to a variable value (for example, “116”) included in the identifier.

〔処理フロー例〕
図3〜図7は、この発明の一実施例による電子楽器において実行される音声データ処理に関する種々のフローチャートであり、図3は、メイン処理を表わすフローチャート(第1・第2実施形態で共通)を示す。図3において、この電子楽器の電源投入によりメイン処理が開始すると、CPU1は、最初のステップM0で、設定操作検出部7に対するユーザの処理項目指定操作に応じて処理を振り分ける。この操作は、この電子楽器の設定操作検出部7に設定操作子として設けられたスイッチやロータリエンコーダ等で行なわれ、所定の処理項目を指定する操作が設定操作検出部7で検出され、バス12経由でCPU1に導入される。そして、CPU1は、導入された設定操作内容に基づいて処理を振り分け、その際、適宜、ユーザ操作に有用な操作援助情報を表示部8のディスプレイに表示する。
[Example of processing flow]
3 to 7 are various flowcharts relating to audio data processing executed in the electronic musical instrument according to one embodiment of the present invention, and FIG. 3 is a flowchart showing main processing (common to both the first and second embodiments). Indicates. In FIG. 3, when the main process is started by turning on the power of the electronic musical instrument, the CPU 1 distributes the process according to the user's process item designation operation on the setting operation detection unit 7 in the first step M0. This operation is performed by a switch, a rotary encoder or the like provided as a setting operator in the setting operation detection unit 7 of the electronic musical instrument, and an operation for designating a predetermined processing item is detected by the setting operation detection unit 7, and the bus 12 It is introduced to CPU1 via. Then, the CPU 1 distributes the processing based on the introduced setting operation content, and at this time, appropriately displays operation assistance information useful for user operation on the display of the display unit 8.

ここで、処理項目として「ファイル録音」が指定されると、ステップMAに進んで(A)演奏をファイルに録音する処理(ファイル録音処理という)を行い、「ファイル再生演奏」が指定されると、ステップMBに進んで(B)ファイル再生と一緒に演奏する処理(ファイル再生演奏処理という)を行い、「ファイル名変更」が指定されると、ステップMCに進んで(C)識別子をファイルに付与する処理(ファイル識別子付与処理という)を行い、その他の処理項目が指定されると、ステップMDに進んで(D)その他の処理を行う。その他の処理には、単に演奏操作検出部6の演奏操作子を演奏して音源効果部9Aで楽音データを生成したり、自動演奏データに基づいて音源効果部9Aに自動演奏の楽音データを生成させたり、設定操作子を用いて設定された各種設定データを外部記憶装置に記憶したりRAM3に読み込んだり、音源効果部9Aにおける音色の設定やMIDII/F11の設定などを行うといった種々の処理が含まれる。そして、ステップMA〜MDの何れかにおいて、指定された何れかの処理が終了すると、ステップM0に戻ってユーザの処理項目指定操作を待機し、操作に応じて上述したステップM0〜MDの処理を繰り返す。   Here, when “file recording” is designated as the processing item, the process proceeds to step MA, where (A) a performance recording process (referred to as a file recording process) is performed, and “file reproduction performance” is designated. Then, the process proceeds to step MB (B) to perform a process of performing along with file reproduction (referred to as a file reproduction performance process). When a process to be assigned (referred to as a file identifier giving process) is performed and other process items are designated, the process proceeds to step MD (D) and other processes are performed. For other processing, the performance operator of the performance operation detector 6 is simply played and the tone generator 9A generates musical tone data, or the automatic tone generator 9A generates automatic musical tone data based on the automatic performance data. Various kinds of processing such as setting the tone color in the sound source effect unit 9A, setting the MIDII / F11, and the like. included. When any one of the designated processes is completed in any one of steps MA to MD, the process returns to step M0 to wait for the user's process item designation operation, and the processes in steps M0 to MD described above are performed according to the operation. repeat.

図4は、メイン処理(図3)のステップMAで行われるファイル録音処理(演奏をファイルに録音する処理)を表わすフローチャート(第1・第2実施形態で共通)であり、この処理はメイン処理から呼び出されて実行される。図4において、ファイル録音処理がスタートすると、CPU1は、第1ステップA1で、USBメモリ5Mに既に記憶されている他のファイルのファイル名と重ならないファイル名を生成し、その際、ファイル名の拡張子の前に演奏記録識別子を含ませる。第1実施形態では、音量変更の目印となる所定の文字列:例えば、“}{”が演奏記録識別子に用いられ、例えば、まず、「Wav001}{.wav」をファイル名の候補とし、この名前のファイルが既にUSBメモリ内に記憶されていれば「Wav002}{.wav」を候補とし、それでも同じ名前のファイルがあれば「Wav003}{.wav」を候補とし、同名ファイルが記憶されていないときの候補を作成するファイルの名前に決定する。   FIG. 4 is a flowchart (common to both the first and second embodiments) showing a file recording process (a process for recording a performance in a file) performed in step MA of the main process (FIG. 3). This process is the main process. Called from and executed. In FIG. 4, when the file recording process starts, the CPU 1 generates a file name that does not overlap with the file names of other files already stored in the USB memory 5M in the first step A1, and at that time, the file name Include a performance record identifier before the extension. In the first embodiment, a predetermined character string that serves as a mark for changing the volume: For example, “} {” is used as a performance recording identifier. For example, first, “Wav001} {. Wav” is set as a file name candidate. If a file with the name is already stored in the USB memory, “Wav002} {. Wav” is a candidate, and if there is still a file with the same name, “Wav003} {. Wav” is a candidate and the same name file is stored. Decide on the name of the file to create a candidate for when there is not.

続くステップA2では、音声データ部分が空のファイルを生成する。例えば、WAV形式ファイル(図7参照)でいうならば、fmtチャンクには情報が入っているものの、dataチャンクは空のファイルを生成する。次のステップA3では、録音開始の処理をする。つまり、ユーザが所定の設定操作子(スイッチ)を操作して録音開始を指示すると、設定操作検出部7は、当該指示操作を検出しバス12経由でCPU1に導入する。CPU1は、それに基づいて演奏音声データDaの録音を開始する。   In the subsequent step A2, a file having an empty voice data portion is generated. For example, in the case of a WAV format file (see FIG. 7), although the fmt chunk contains information, the data chunk generates an empty file. In the next step A3, recording start processing is performed. That is, when the user operates a predetermined setting operator (switch) to instruct the start of recording, the setting operation detection unit 7 detects the instruction operation and introduces it to the CPU 1 via the bus 12. Based on this, the CPU 1 starts recording the performance sound data Da.

次いで、ステップA4で、CPU1は、演奏操作検出部6における鍵盤などの演奏操作子に対するユーザの演奏操作に応じて、対応する演奏データをバス経由13で音声データ処理部9に送り、演奏音声生成を指示する。例えば、演奏データにより、音高を指定し、その音高で発音を開始したり、発音を停止するように指示する。これによって、音声データ処理部9では、音源効果部9Aにより、演奏データに従って、楽音データが生成されこれに適宜効果を付与した演奏音声データDaが生成されて加算部9Dに渡され、演奏データによる指示が演奏音声生成に反映される。また、演奏音声データDaを録音するために、音源効果部9Aにより、所定のサンプリング周期で次々に生成され演奏音声データDaは、CPU1からの記録音量制御の指示に従って、下位6ビットが切り捨てられ、順次、音声データ処理部9内に準備されたバッファ(図示せず)に溜められる。   Next, in step A4, the CPU 1 sends the corresponding performance data to the audio data processing unit 9 via the bus 13 in accordance with the user's performance operation with respect to a performance operator such as a keyboard in the performance operation detection unit 6 to generate a performance sound. Instruct. For example, a pitch is designated by performance data, and an instruction is given to start or stop sounding at that pitch. As a result, in the sound data processing unit 9, musical tone data is generated according to the performance data by the sound source effect unit 9A, and performance sound data Da having an effect applied thereto is generated and passed to the adding unit 9D. The instruction is reflected in the performance sound generation. Further, in order to record the performance sound data Da, the sound source effect unit 9A generates the performance sound data Da one after another at a predetermined sampling period, and the lower 6 bits are truncated according to the recording sound volume control instruction from the CPU 1. The data are sequentially stored in a buffer (not shown) prepared in the audio data processing unit 9.

更に次のステップA5では、音声データ処理部9から、逐次、演奏音声データDaを読出し、USBメモリ5M内に生成されたファイルの音声データ部分に書き足す。つまり、CPU1は、所定周期(例えば、10msec)で音声データ処理部9内のバッファに溜まった演奏音声データDaをUSBメモリ内のファイルに書き足してゆく。なお、このような逐次録音を開始するための処理として、バッファの準備や、タイマ割込み或いはバッファが消費されたことを通知するハードウェア割込みの設定などが行われる。   In the next step A5, the performance sound data Da is sequentially read out from the sound data processing unit 9 and added to the sound data portion of the file generated in the USB memory 5M. That is, the CPU 1 adds the performance audio data Da accumulated in the buffer in the audio data processing unit 9 to a file in the USB memory at a predetermined cycle (for example, 10 msec). As processing for starting such sequential recording, buffer preparation, timer interrupt, or setting of a hardware interrupt for notifying that the buffer has been consumed are performed.

そして、ステップA6で、ファイル録音処理(演奏をファイルに録音する処理)の終了操作がなされたか否かを判定し、終了操作がなされないときは(A6=NO)、ステップA4に戻ってステップA4〜A5の処理を繰り返す。そして、終了操作がなされると(A6=YES)このファイル録音処理を終了しメイン処理のステップM0に戻る。つまり、ユーザが所定の設定操作子(スイッチ)を操作して録音終了を指示すると、設定操作検出部7は、この終了指示操作を検出してバス12経由でCPU1に導入し、CPU1はそれに基づいてファイル録音処理を終了する。   Then, in step A6, it is determined whether or not a file recording process (process for recording a performance in a file) has been completed. If no termination operation has been performed (A6 = NO), the process returns to step A4 and returns to step A4. Repeat the process of ~ A5. When the end operation is performed (A6 = YES), the file recording process is ended and the process returns to step M0 of the main process. That is, when the user operates a predetermined setting operator (switch) to instruct the end of recording, the setting operation detection unit 7 detects this end instruction operation and introduces it to the CPU 1 via the bus 12, and the CPU 1 is based on that. End the file recording process.

図5は、メイン処理(図3)のステップMBで行われるファイル再生演奏処理(ファイル再生と一緒に演奏する処理)を表わすフローチャート(第1・第2実施形態共通)であり、この処理はメイン処理から呼び出されて実行される。図5において、ファイル再生演奏処理がスタートすると、CPU1は、最初のステップB1で、ユーザ操作に応じて、再生するファイルを選択する。例えば、CPU1は、USBメモリ内のファイルを調べ、演奏と一緒に再生することができる音声ファイルを表示器に表示してユーザに選択させる。ユーザが所定の設定操作子(スイッチ)を操作してファイルを順に表示させ所望の音声ファイルを選択すると、その操作は設定操作検出部7により検出され、バス12経由でCPU1に導入される。   FIG. 5 is a flowchart (common to the first and second embodiments) showing a file playback performance process (a process performed together with file playback) performed in step MB of the main process (FIG. 3). Called from the process and executed. In FIG. 5, when the file playback performance process starts, the CPU 1 selects a file to be played back in accordance with a user operation in the first step B1. For example, the CPU 1 examines a file in the USB memory, displays an audio file that can be reproduced together with the performance on the display, and allows the user to select it. When the user operates a predetermined setting operator (switch) to display the files in order and selects a desired audio file, the operation is detected by the setting operation detection unit 7 and introduced into the CPU 1 via the bus 12.

次のステップB2では、選択されたファイルのファイル名の拡張子の前に演奏記録識別子があるか否かを判定し、演奏記録識別子があったときは(B2=YES)、ステップB3に進み、音声データ処理部9の再生音量調整部9Cに対して、音量を通常の音量設定に比べて変更する設定を行う。ここで、第1実施形態において、演奏記録識別子:“}{”があると判定した場合は(B2=YES)、ステップB3で、この電子楽器の設計時に予め決められた所定の値の設定、例えば、通常の音量設定より12dBアップさせる設定をする。つまり、ステップB3では(演奏記録識別子がある場合)6ビットシフトアップする(下位に“0”を6ビット分付け足す)ように設定する。一方、演奏記録識別子がないたときには(B2=NO)ステップB4に進んで、再生音量調整部9Cに通常の音量設定をする。つまり、ステップB4では(演奏記録識別子がない場合)、4ビットシフトアップする(下位に“0”を4ビット分付け足す)ように設定する。   In the next step B2, it is determined whether or not there is a performance recording identifier before the extension of the file name of the selected file. If there is a performance recording identifier (B2 = YES), the process proceeds to step B3. A setting for changing the volume compared to the normal volume setting is performed on the reproduction volume adjustment unit 9C of the audio data processing unit 9. Here, in the first embodiment, when it is determined that there is a performance recording identifier: “} {” (B2 = YES), in step B3, a predetermined value set in advance when designing the electronic musical instrument is set. For example, the setting is made to increase 12 dB from the normal volume setting. That is, in step B3 (when there is a performance recording identifier), a setting is made to shift up by 6 bits (adding “0” to the lower order by 6 bits). On the other hand, when there is no performance record identifier (B2 = NO), the process proceeds to step B4, and the normal volume setting is performed on the reproduction volume adjusting unit 9C. That is, in step B4 (when there is no performance recording identifier), the setting is made to shift up by 4 bits (adding “0” to the lower 4 bits).

ステップB3或いはステップB4の音量設定の後は、ステップB5で、再生開始の処理をする。つまり、ユーザが所定の設定操作子(スイッチ)を操作して、選択された音声ファイルの再生開始を指示すると、設定操作検出部7はその操作を検出し、バス12経由でCPU1に導入する。CPU1は、再生開始の指示操作に基づいてファイル音声データDfの再生を開始する。   After the volume setting in step B3 or step B4, playback start processing is performed in step B5. That is, when the user operates a predetermined setting operator (switch) to instruct the start of reproduction of the selected audio file, the setting operation detection unit 7 detects the operation and introduces it to the CPU 1 via the bus 12. The CPU 1 starts reproduction of the file audio data Df based on an instruction operation for starting reproduction.

次のステップB6では、ファイル録音処理のステップA4と同様に、演奏操作検出部6における鍵盤などの演奏操作子に対するユーザの演奏操作に応じて、対応する演奏データを音声データ処理部9に送り、演奏音声生成を指示する。これによって、音声データ処理部9では、音源効果部9Aにより、演奏データに従い、オーディオ楽音データが生成され、これに適宜効果を付与した演奏音声データDaが生成されて加算部9Dに渡される。   In the next step B6, as in step A4 of the file recording process, the corresponding performance data is sent to the audio data processing unit 9 in accordance with the user's performance operation with respect to a performance operator such as a keyboard in the performance operation detection unit 6, Instructs performance sound generation. As a result, in the sound data processing section 9, audio tone data is generated according to the performance data by the sound source effect section 9A, and performance sound data Da to which an effect is appropriately applied is generated and passed to the adding section 9D.

更に次のステップB7では、選択された音声ファイルから逐次ファイル音声データDfを読出し、音声データ処理部に渡す。より具体的に説明すると、ファイル音声データDfを再生する際には、CPU1は、所定周期(例えば、10msec)でUSBメモリ5M内の当該ファイルからその周期分のファイル音声データDfを読み出し、図示しない音声データ処理部9内のバッファに書き込む。音声データ処理部9では、バッファに書き込まれたファイル音声データDfが所定のサンプリング周期で1サンプルずつ処理され、再生音量調整部9Cにより、ステップB3或いはステップB4での設定に応じて、ファイル音声データDfに音量レベルの変換が施されて調整後ファイル音声データDbが生成され、加算部9Dに渡される。なお、このようなファイル音声データの再生を開始するための処理として、バッファのタイマ割込み或いはバッファが消費されたことを通知するハードウェア割込みの設定などをする。   Further, in the next step B7, the file audio data Df is sequentially read out from the selected audio file and transferred to the audio data processing unit. More specifically, when reproducing the file audio data Df, the CPU 1 reads the file audio data Df for the cycle from the file in the USB memory 5M at a predetermined cycle (for example, 10 msec), not shown. Write to the buffer in the audio data processing unit 9. In the audio data processing unit 9, the file audio data Df written in the buffer is processed one sample at a predetermined sampling period, and the file audio data is processed by the reproduction volume adjusting unit 9C according to the setting in step B3 or step B4. Volume level conversion is performed on Df, and adjusted file audio data Db is generated and passed to the adder 9D. As a process for starting the reproduction of such file audio data, a buffer timer interrupt or a hardware interrupt for notifying that the buffer has been consumed is set.

そして、ステップB8で、ファイル再生演奏処理(ファイル再生と一緒に演奏する処理)の終了操作がなされたか否かを判定し、終了操作がなされないときは(B8=NO)、ステップB6に戻ってステップB6〜B8の処理を繰り返す。そして、終了操作がなされると(B8=YES)このファイル再生演奏処理を終了しメイン処理のステップM0に戻る。つまり、ユーザが所定の設定操作子(スイッチ)を操作して再生演奏の終了を指示すると、設定操作検出部7は、この終了指示操作を検出してバス12経由でCPU1に導入し、CPU1はそれに基づいてファイル再生演奏処理を終了する。   In step B8, it is determined whether or not an end operation of the file playback performance process (a process of performing along with the file playback) has been performed. If the end operation has not been performed (B8 = NO), the process returns to step B6. The processes in steps B6 to B8 are repeated. When the end operation is performed (B8 = YES), the file reproduction performance process is ended and the process returns to step M0 of the main process. That is, when the user operates a predetermined setting operator (switch) to instruct the end of the playback performance, the setting operation detection unit 7 detects this end instruction operation and introduces it to the CPU 1 via the bus 12. Based on this, the file playback performance process is terminated.

図6は、第1実施形態に従ってメイン処理(図3)のステップMCで行われるファイル識別子付与処理(識別子をファイルに付与する処理)1を表わすフローチャート(第1実施形態で適用)であり、この処理はメイン処理から呼び出されて実行される。図6において、このファイル識別子付与処理1がスタートすると、CPU1は、最初のステップC11で、USBメモリ5Mから所望のファイルをユーザに選択させ、次のステップC12で、ユーザ操作に応じて、選択されたファイルのファイル名を変更する。例えば、第1タイプの音声ファイルF1について、ファイル名の拡張子の前に演奏記録識別子:“}{”を付加し、第2タイプの音声ファイルF2に変換することができる。   FIG. 6 is a flowchart (applied in the first embodiment) representing a file identifier assigning process (a process for assigning an identifier to a file) 1 performed in step MC of the main process (FIG. 3) according to the first embodiment. The process is called from the main process and executed. In FIG. 6, when the file identifier assigning process 1 is started, the CPU 1 causes the user to select a desired file from the USB memory 5M in the first step C11, and in the next step C12, it is selected according to the user operation. Change the file name of the selected file. For example, the first type audio file F1 can be converted into a second type audio file F2 by adding a performance recording identifier: “} {” before the extension of the file name.

さらに、ステップC13では、選択されたファイルが音声ファイルであり、元の(変更前の)ファイル名の拡張子の前に演奏記録識別子:“}{”がなく、かつ、編集された(変更後の)ファイル名の拡張子の前に演奏記録識別子:“}{”があるか否かを判定する。つまり、ファイル名を変更する対象となるファイルには、各種設定操作データを収めたファイルもあるので、音声ファイルに絞った上で演奏記録識別子の存否を確かめる。また、音声ファイルであるか否かは、ファイル拡張子が、例えば、“.wav”などのように、音声ファイルを表わすものであるか否かで判断する。ここで、変更前のファイル名拡張子の前に演奏記録識別子がなく、変更後のファイル名拡張子の前に演奏記録識別子がある音声ファイルが選択されたとき、例えば、変更前のファイル名が「xxxxxx.wav」で、変更後のファイル名が「xxxxxx}{.wav」の場合は(C13=YES)、ステップC14に進む。そして、ステップC14で、この音声ファイルが高い音量レベルで再生される旨の注意文を、所定時間(例えば、3.5秒)の間、表示部8のディスプレイに表示した後、このファイル識別子付与処理1を終了し、メイン処理のステップM0に戻る。   Further, in step C13, the selected file is an audio file, and the performance recording identifier: “} {” is not present before the extension of the original (before change) file name and has been edited (after change). It is determined whether or not there is a performance recording identifier: “} {” before the file name extension. In other words, the file whose file name is to be changed includes a file containing various setting operation data, so the presence or absence of the performance record identifier is confirmed after narrowing down to the audio file. Whether or not the file is an audio file is determined by whether or not the file extension represents an audio file, such as “.wav”. Here, when an audio file having no performance record identifier before the file name extension before change and having a performance record identifier before the file name extension after change is selected, for example, the file name before change is If “xxxxxxxx.wav” and the file name after the change is “xxxxxxxx} {. Wav” (C13 = YES), the process proceeds to step C14. In step C14, a notice that this audio file is played at a high volume level is displayed on the display of the display unit 8 for a predetermined time (for example, 3.5 seconds), and then the file identifier is assigned. The process 1 is ended, and the process returns to the main process step M0.

逆に、選択されたファイルが音声ファイルでない、変更前のファイル名に演奏記録識別子がある、変更後のファイル名に演奏記録識別子がないなどの場合には(C13=NO)、注意文は出さず、直ちに、このファイル識別子付与処理1を終了し、メイン処理のステップM0に戻る。例えば、ステップC12で、演奏記録識別子:“}{”がファイル名から削除された場合は、音量が小さくなるように影響が出て、危険ではないから、注意文は出さない。   Conversely, if the selected file is not an audio file, the file name before the change has a performance record identifier, or the file name after the change does not have a performance record identifier (C13 = NO), a warning is issued. Immediately, the file identifier assigning process 1 is terminated and the process returns to the main process step M0. For example, if the performance recording identifier: “} {” is deleted from the file name in step C12, the volume is reduced and there is no danger, so no caution text is issued.

なお、(B)のファイル再生演奏処理(図5)におけるステップB2では、ファイル名の拡張子の前に演奏記録識別子があるか否かを判断しているが、これに代えて、ファイル名の先頭からの所定の位置(例えば、7文字目と8文字目)に演奏記録識別子があるか否かを判断するようにしてもよい。あるいは、位置に係らずファイル名に、演奏記録識別子が含まれているか否かで判断するようにしてもよい。   In step B2 in the file playback performance process (B) of FIG. 5B, it is determined whether or not there is a performance recording identifier before the file name extension. It may be determined whether or not there is a performance recording identifier at a predetermined position from the beginning (for example, the seventh and eighth characters). Alternatively, the determination may be made based on whether or not the performance record identifier is included in the file name regardless of the position.

<第2実施形態>
第1実施形態では、音声ファイルに記録した第1形式の演奏記録識別子の有無により音量を切り替えるようにしているが、第2実施形態では、音量変更すべき可変の値を含む第2形式の演奏記録識別子を音声ファイルに埋め込んでおき、その値に基づいて音量を変更するように動作する。以下、このように音量変更値を含む第2形式の演奏記録識別子を用いる第2実施形態における特徴的な動作について説明する。
Second Embodiment
In the first embodiment, the volume is switched depending on the presence or absence of the performance record identifier of the first format recorded in the audio file. However, in the second embodiment, the performance of the second format including a variable value to be changed in volume is used. The recording identifier is embedded in the audio file, and the sound volume is changed based on the value. Hereinafter, a characteristic operation in the second embodiment using the performance recording identifier of the second format including the volume change value will be described.

図2の説明で既に述べたように、利用可能な複数種類の電子楽器があり、夫々のダイナミックレンジが異なっていたり、演奏音を録音する際にクリップしないように音量を調整する程度が異なっている場合がある。そこで、第2実施形態では、演奏記録識別子に可変の音量変更値を含ませることによって、このような異なる機種間で演奏音を録音した音声データを交換した場合であっても、破綻の無い適切な音量調整を行うことができる。   As already described in the explanation of FIG. 2, there are a plurality of types of electronic musical instruments that can be used, each having a different dynamic range, and a degree of adjusting the volume so as not to be clipped when recording a performance sound. There may be. Therefore, in the second embodiment, by including a variable volume change value in the performance record identifier, even when the voice data recording the performance sound is exchanged between different types of models, there is no appropriate failure. Volume adjustment can be performed.

第2実施形態では、特に、図4のファイル録音処理におけるステップA1の演奏記録識別子付きファイル名生成処理において、例えば“.v116”のように、ピリオド(“.”)と可変の3桁数字(例えば、“116”)を含む第2形式の演奏記録識別子がファイル名に埋め込まれる。この場合、生成されるファイル名は、例えば、「xxxxxx.v116.wav」となる。第2形式の演奏記録識別子において、3桁数字は、十進数の値を表わし、値“100”は、「調整なし」即ち「第1タイプのファイル音声データDf1と同量」を意味する。そして、0.75dB/ステップ(step)で、値“000”〜“127”の範囲で音量変更値を表わすことができる。   In the second embodiment, in particular, in the file name generation process with the performance recording identifier in step A1 in the file recording process of FIG. 4, for example, “.v116”, a period (“.”) And a variable three-digit number ( For example, a performance record identifier of the second format including “116”) is embedded in the file name. In this case, the generated file name is, for example, “xxxxxxxx.v116.wav”. In the performance recording identifier of the second format, the three-digit number represents a decimal value, and the value “100” means “no adjustment”, that is, “the same amount as the first type file audio data Df1”. The volume change value can be expressed in the range of “000” to “127” at 0.75 dB / step.

例えば、ファイル名:「xxxxxx.v116.wav」の第2タイプのファイル音声データDf2を再生するときは、演奏記録識別子のない第1タイプのファイル音声データDf1と同量だけ音量調整される。つまり、図2(1)のように、再生音量調整9Cで4ビットのシフトアップをし、ダイナミックレンジは、16ビット(96dB)から20ビット(120dB)になる。   For example, when reproducing the second type file audio data Df2 of the file name: “xxxxxxxx.v116.wav”, the volume is adjusted by the same amount as the first type file audio data Df1 having no performance record identifier. That is, as shown in FIG. 2 (1), the reproduction volume adjustment 9C is shifted up by 4 bits, and the dynamic range is changed from 16 bits (96 dB) to 20 bits (120 dB).

ここで、第2形式の演奏記録識別子が“.v116”であるということは、第2タイプのファイル音声データDf2が再生されるときに、“.v116”に相当する分だけ音量を調整することを指示している。すなわち、0.75dB×(116−100)step=12dBだけ第1タイプのファイル音声データDf1よりも音量を上げることを意味する。つまり、シフトアップの量は、1ビットあたり6dBに相当するので、第1タイプのファイル音声データDf1のシフトアップ分4ビットに加え、更に2ビット(=12÷6)シフトアップし、合計6ビットのシフトアップとなる。   Here, the performance recording identifier of the second format is “.v116” means that when the second type file audio data Df2 is reproduced, the volume is adjusted by an amount corresponding to “.v116”. Is instructing. In other words, it means that the volume is raised from the first type file audio data Df1 by 0.75 dB × (116−100) step = 12 dB. In other words, the amount of up-shift corresponds to 6 dB per bit, so in addition to the up-shift of 4 bits of the first type file audio data Df1, up to 2 bits (= 12 ÷ 6), a total of 6 bits. Shift up.

また、第2実施形態では、図5のファイル再生処理において、識別子検出処理(B2)の結果第2形式の演奏記録識別子(例えば、“.v116”)があると判定した場合(B2=YES)、ステップB3の音量設定処理で、当該演奏記録識別子に含まれる音量変更値を表わす文字列から得られる音量変更の指定値に従って再生音量調整部9Cに音量設定をする。例えば、上述したように第2タイプのファイル音声データDf2の演奏記録識別子の文字列が“.v116”の場合、この文字列から12dBアップを読み取り、シフトアップの設定をする。この文字列の値は、ファイル名の書換えをしない限り維持される。   Further, in the second embodiment, when it is determined that there is a performance recording identifier (for example, “.v116”) in the second format as a result of the identifier detection process (B2) in the file reproduction process of FIG. 5 (B2 = YES). In the volume setting process in step B3, the playback volume adjustment unit 9C is set in accordance with the volume change designated value obtained from the character string representing the volume change value included in the performance recording identifier. For example, as described above, when the character string of the performance recording identifier of the second type file audio data Df2 is “.v116”, 12 dB up is read from this character string, and the shift up is set. This string value is maintained unless the file name is rewritten.

第2実施形態では、さらに、メイン処理(図3)のステップMCにおいてファイル識別子付与処理(識別子をファイルに付与する処理)2が行われ、演奏記録識別子として所望の音量調整量がファイルに埋め込まれる。このファイル識別子付与処理では、以下に説明するように、再生音量調整部9Cに対する音量調整を演奏記録識別子に反映させることにより所望の演奏記録識別子をファイルに付与することができるが、単に、設定操作検出部7に設けられたパネル上の設定操作子を使って、ファイル名のテキストを一文字ずつ編集していくことも可能である。   In the second embodiment, a file identifier assigning process (a process for assigning an identifier to a file) 2 is further performed in step MC of the main process (FIG. 3), and a desired volume adjustment amount is embedded in the file as a performance recording identifier. . In this file identifier assigning process, as described below, a desired performance recording identifier can be assigned to a file by reflecting the volume adjustment for the playback volume adjusting unit 9C in the performance recording identifier. It is also possible to edit the text of the file name one character at a time using a setting operator on the panel provided in the detection unit 7.

図7は、ファイル識別子付与処理2の一例を表わすフローチャート(第2実施形態で適用)である。このファイル識別子付与処理2は、メイン処理から呼び出されて実行され、ファイルを再生させながら演奏操作による発音と一緒に聞き、設定操作子中の音量変更用のノブで再生音量調整部9Cにおけるファイル音声データDfの音量値を決めることにより、演奏記録識別子を所望値に修正することができる。   FIG. 7 is a flowchart (applied in the second embodiment) showing an example of the file identifier assigning process 2. This file identifier assigning process 2 is called and executed from the main process, listens to the sound produced by the performance operation while playing the file, and plays the file sound in the playback volume adjusting unit 9C with the volume changing knob in the setting operator. By determining the volume value of the data Df, the performance record identifier can be corrected to a desired value.

図7において、このファイル識別子付与処理2がスタートすると、CPU1は、最初のステップC21で、USBメモリ5Mから所望のファイルをユーザに選択させ、次のステップC22で、再生開始の処理をする。つまり、別タスクに、ファイルを順次繰り返し再生させる処理の開始を指示し、その後、別タスクは再生をし続ける。次いで、ステップC23で、設定操作子(ノブ)の操作値を取得し、次のステップC24では、取得したノブ操作値に応じて、再生音量調整部9Cに音量変更を指示する。さらに、ステップC25にて、音源効果部9Aに対しユーザの演奏操作に応じて楽音生成を行うように指示した後、ステップC26に進む。   In FIG. 7, when the file identifier assigning process 2 starts, the CPU 1 causes the user to select a desired file from the USB memory 5M in the first step C21, and performs a reproduction start process in the next step C22. That is, another task is instructed to start the process of sequentially and repeatedly reproducing the file, and then the other task continues to reproduce. Next, in step C23, the operation value of the setting operator (knob) is acquired. In the next step C24, the reproduction volume adjustment unit 9C is instructed to change the volume according to the acquired knob operation value. Further, in step C25, the sound source effect unit 9A is instructed to generate a musical sound in accordance with the user's performance operation, and then the process proceeds to step C26.

ステップC26では、パネル上の所定の設定操作子で音量値決定の操作がなされたか否かを判定し、決定操作がなされないときは(C26=NO)、ステップC23に戻り、ステップC23〜C26の処理を繰り返す。ここで、ファイル音声データDfについて所望の音量設定値が得られ、ユーザにより音量値決定の操作がなされると(C26=YES)、ステップC27に進んで、決定操作がなされたときの音量設定値に応じた文字列をもつ演奏記録識別子を生成し、選択されたファイルに新規に付与する。或いは、選択されたファイルに既に演奏記録識別子が記録されている場合は、生成した演奏記録識別子を既存の演奏記録識別子と置き換える。そして、ステップC27における新規演奏記録識別子の付与処理の後、このファイル識別子付与処理2を終了しメイン処理のステップM0に戻る。   In step C26, it is determined whether or not a sound volume value determination operation has been performed with a predetermined setting operator on the panel. When the determination operation is not performed (C26 = NO), the process returns to step C23, and steps C23 to C26 are performed. Repeat the process. Here, when a desired volume setting value is obtained for the file audio data Df and the volume value determination operation is performed by the user (C26 = YES), the process proceeds to step C27, and the volume setting value when the determination operation is performed. A performance record identifier having a character string corresponding to is generated and newly assigned to the selected file. Alternatively, if a performance record identifier is already recorded in the selected file, the generated performance record identifier is replaced with the existing performance record identifier. Then, after the new performance record identifier assigning process in step C27, the file identifier assigning process 2 is terminated and the process returns to step M0 of the main process.

〔音声ファイル形式と別の実施形態〕
以上説明した第1及び第2形式の実施形態では、電子楽器の演奏音を記録して作成した第2タイプの音声ファイルF2であるか否かを識別し音量変更を指示するための識別子(演奏記録識別子)として、ファイル名に特定の文字、例えば、“}{”や“.v116”などを付与するようにしているが、これに替えて、このようなタイプを識別し音量変更を指示するためのデータを演奏記録識別子としてファイル内に埋め込むように構成することができる。この場合は、PCなどで、ファイル名で視認することができず、また、ファイル名を変更することで演奏記録識別子を付ける或いは取るということもできない。ファイルに演奏記録識別子が付いているか否かを確かめたり、演奏記録識別子を付けたり取ったりすることは、そのための専用の機能を備えた電子楽器で行われる。以下、このように演奏記録識別子をファイル内に埋め込む場合の実施形態について、より具体的に説明する。なお、以下の説明では、典型的なファイル形式として、WAV形式を想定しているが、もちろん他の形式でもよい。
[Another embodiment of the audio file format]
In the embodiments of the first and second formats described above, an identifier (performance) for identifying whether the sound file F2 is the second type created by recording the performance sound of the electronic musical instrument and instructing the volume change. As a recording identifier, specific characters such as “} {” and “.v116” are added to the file name. Instead, such type is identified and a volume change is instructed. Therefore, it can be configured to embed data for performance recording as a performance recording identifier. In this case, the file name cannot be visually recognized on a PC or the like, and the performance record identifier cannot be assigned or taken by changing the file name. Whether or not a performance record identifier is attached to a file or adding or taking a performance record identifier is performed by an electronic musical instrument having a dedicated function for that purpose. Hereinafter, the embodiment in the case where the performance record identifier is embedded in the file will be described more specifically. In the following description, the WAV format is assumed as a typical file format, but other formats may be used.

図8は、この場合に用いられるファイル形式の説明図であり、第2タイプの音声ファイルF2を例にしている。WAV形式では、図8に示すように、各種データが複数のチャンクに分けられて格納されており、各チャンクの先頭には、そのチャンクの種類を表わすタグ(短い文字列)が配置される。ここで、fmtチャンクCHf及びdataチャンクCHdが必須であり、dataチャンクCHdには、dataチャンクであることを表わすタグの後に、音声データ(Df2)そのものが収められる。fmtチャンクCHfには、fmtチャンクであることを表わすタグに続いて、チャンネル数、サンプリングレート、1サンプルあたりのビット数、…というように、dataチャンクCHdに収められた音声データDf2の形式に関する情報がfmtチャンクに収められる。なお、前述した第1及び第2形式の実施形態では、演奏音を記録する音声ファイルF2は、fmtチャンクCHfとdataチャンクCHdとからなるWAV形式ファイルとし、そのファイル名に演奏記録識別子として特定の文字:“}{”や“.v116”などを付与するようにして実現することができる。   FIG. 8 is an explanatory diagram of the file format used in this case, taking the second type audio file F2 as an example. In the WAV format, as shown in FIG. 8, various data are divided into a plurality of chunks and stored, and a tag (short character string) indicating the type of the chunk is arranged at the top of each chunk. Here, the fmt chunk CHf and the data chunk CHd are essential, and the audio data (Df2) itself is stored in the data chunk CHd after the tag indicating the data chunk. In the fmt chunk CHf, following the tag indicating the fmt chunk, information on the format of the audio data Df2 contained in the data chunk CHd, such as the number of channels, the sampling rate, the number of bits per sample, and so on. Is stored in the fmt chunk. In the first and second format embodiments described above, the audio file F2 for recording the performance sound is a WAV format file composed of the fmt chunk CHf and the data chunk CHd, and the file name is specified as a performance recording identifier. It can be realized by adding characters: “} {”, “.v116”, and the like.

これに対して、演奏記録識別子をファイル内に埋め込む場合には、図8に破線で示すように、メーカ固有の情報を収めるためのメーカ固有チャンクCHmが設けられ、メーカ固有チャンクCHmには、先頭に、メーカ固有チャンクであることを表わすタグが配置され、さらに、第1乃至第2形式の演奏記録識別子が記録され、演奏音(Df2)を記録して作成したことを表わし音量変更を指示するのに用いられる。なお、メーカ固有チャンクCHmを参照する必要のない再生装置では、このチャンクを無視することができる。   On the other hand, when the performance record identifier is embedded in the file, as shown by a broken line in FIG. 8, a manufacturer-specific chunk CHm for storing manufacturer-specific information is provided, and the manufacturer-specific chunk CHm has a head. The tag indicating the manufacturer-specific chunk is arranged, and the performance record identifiers of the first and second formats are recorded, indicating that the performance sound (Df2) is recorded and instructed to change the volume. Used for Note that this chunk can be ignored by a playback apparatus that does not need to refer to the manufacturer-specific chunk CHm.

このように実施した場合も、前述した第1形式の実施形態と同様に演奏記録識別子の有無により再生音量を切り替えることができる。ただし、前述した第1形式の実施形態と次の点が異なる。
(A)ファイル録音処理:外部記憶メディア(USBメモリ)にあるファイルと重ならないファイル名を生成する際(A1)、ファイル名の拡張子の前に演奏記録識別子:“}{”を含ませることはしない。音声ファイルを作成する際は(A3,A5)、fmtチャンク、空のdataチャンク及びメーカ固有チャンクから成るファイルを生成し、メーカ固有チャンクには、演奏音を記録して作成したことを表わす演奏記録識別子を書き込んでおく。
(B)ファイル再生演奏処理:ステップB2では、「選択されたファイルのファイル名の拡張子の前に識別子はあるか?」という判断をするのに替えて、「選択されたファイル内に識別子はあるか?」という判断をする。
(C)ファイル識別子付与処理1:ステップC12では、「ユーザ操作に応じてファイル名を変更する」のに替えて、「ユーザ操作に応じて演奏記録識別子を含むメーカ固有チャンクの演奏記録識別子の挿入或いは削除をする」という処理をする。そして、ステップC13では、「演奏記録識別子が新規に挿入されたか?」という判断をする。
Even when implemented in this way, the playback volume can be switched depending on the presence or absence of the performance recording identifier, as in the first embodiment described above. However, the following points are different from the first embodiment described above.
(A) File recording process: When generating a file name that does not overlap with a file on an external storage medium (USB memory) (A1), a performance recording identifier: “} {” is included before the file name extension. I do not. When creating an audio file (A3, A5), a file composed of an fmt chunk, an empty data chunk, and a manufacturer-specific chunk is generated, and a performance record indicating that the performance sound is recorded in the manufacturer-specific chunk Write the identifier.
(B) File playback performance processing: In step B2, instead of determining whether there is an identifier before the extension of the file name of the selected file, an “identifier is not included in the selected file” Judgment is there?
(C) File identifier assigning process 1: In step C12, instead of “change file name according to user operation”, “insert performance record identifier of manufacturer-specific chunk including performance record identifier according to user operation” Or, “Delete”. Then, in step C13, it is determined whether or not a performance record identifier has been newly inserted.

或いは、前述した第2形式の実施形態と同様に、演奏記録識別子に含まれる可変の音量
変更値に応じて再生音量を切り替えることができる。ただし、前述した第2形式の実施形態と次の点が異なる。
(A)ファイル録音処理:外部記憶メディア(USBメモリ)にあるファイルと重ならないファイル名を生成する際(A1)、ファイル名の拡張子の前に演奏記録識別子:“.v116”を含ませることはしない。音声ファイルを作成する際は(A3,A5)、fmtチャンク、空のdataチャンク及びメーカ固有チャンクから成るファイルを生成し、メーカ固有チャンクには、音量の調整量を表わす演奏記録識別子(例えば、12dB音量を上げることを意味する“v116”という文字列型データ)を書き込んでおく。
(B)ファイル再生演奏処理:ステップB2では、「選択されたファイルのファイル名の拡張子の前に識別子はあるか?」という判断をするのに替えて、「選択されたファイル内に識別子はあるか?」という判断をする。
(C)ファイル識別子付与処理2:ステップC27では、ファイル名に識別子の付与或いは置換えをするのに替えて、ファイル内のメーカ固有チャンクに識別子の付与或いは置換えをする。
Alternatively, the playback volume can be switched according to the variable volume change value included in the performance record identifier, as in the second embodiment. However, the second embodiment is different from the second embodiment described above.
(A) File recording process: When generating a file name that does not overlap with a file on an external storage medium (USB memory) (A1), the performance recording identifier: “.v116” is included before the file name extension. I do not. When creating an audio file (A3, A5), a file composed of an fmt chunk, an empty data chunk, and a manufacturer-specific chunk is generated, and a performance recording identifier (for example, 12 dB) indicating the volume adjustment amount is generated in the manufacturer-specific chunk. (Character string type data “v116” meaning to increase the volume) is written.
(B) File playback performance processing: In step B2, instead of determining whether there is an identifier before the extension of the file name of the selected file, an “identifier is not included in the selected file” Judgment is there?
(C) File identifier assignment process 2: In step C27, instead of assigning or replacing an identifier to a file name, an identifier is assigned or replaced to a manufacturer-specific chunk in the file.

〔種々の実施態様〕
以上、図面を参照しつつこの発明の好適な実施の形態について説明したが、これは単なる一例であって、この発明は、発明の精神を逸脱しない範囲で種々の変更が可能である。例えば、実施例では、リッピングやネットワークからの音声ファイルのダウンロードはパーソナルコンピュータ(PC)などの外部機器において行なうように説明をしたが、それに代えて、電子楽器自身がリッピングや音声ファイルのダンロードをする機能を備え、電子楽器自身で行ない、音声ファイルを外部記憶スロット5に装着されたUSBメモリ(5M)に記憶するようにしてもよい。
[Various Embodiments]
The preferred embodiment of the present invention has been described above with reference to the drawings. However, this is merely an example, and the present invention can be variously modified without departing from the spirit of the invention. For example, in the embodiment, it has been described that ripping or downloading of an audio file from a network is performed by an external device such as a personal computer (PC). Instead, the electronic musical instrument itself rips or downloads an audio file. It is also possible to provide a function and perform the operation with the electronic musical instrument itself, and store the audio file in the USB memory (5M) attached to the external storage slot 5.

実施例では、1つの装置でファイル生成と再生との両方の機能を備えるようにしているが、片方ずつの機能を備える装置があってもよい。   In the embodiment, one device is provided with both functions of file generation and reproduction, but there may be a device provided with one of the functions.

Da 演奏音声データ(音源効果部9Aで生成されるオーディオ形式の楽音データ)、
F1,F2 第1及び第2タイプの音声ファイル、
Df:Df1,Df2 ファイル音声データ(数字は第1、第2タイプを示す)、
Db:Db1,Db2 調整後ファイル音声データ(数字は第1、第2タイプを示す)、Dc 加算部9Dからサウンドシステム13に出力される出力音声データ。
Da performance sound data (musical sound data in audio format generated by the sound source effect unit 9A),
F1, F2 first and second type audio files,
Df: Df1, Df2 file audio data (numbers indicate the first and second types),
Db: Db1, Db2 Adjusted file audio data (numbers indicate the first and second types), Dc Output audio data output from the adder 9D to the sound system 13.

Claims (7)

演奏操作に応じて演奏音声データを生成する演奏音声生成手段と、
上記演奏音声生成手段による演奏音声データの生成と同時に、音声ファイルに記録された音声データを再生するファイル音声再生手段と、
上記ファイル音声再生手段により再生される音声データが記録された音声ファイルから演奏記録識別子を検出する識別子検出手段と、
上記識別子検出手段により演奏記録識別子が検出された場合に、前記ファイル音声再生手段により再生される音声データの音量を、検出されない場合と異ならせる再生音量制御手段と
を具備することを特徴とする電子楽器。
Performance sound generation means for generating performance sound data in response to a performance operation;
A file audio reproduction means for reproducing the audio data recorded in the audio file simultaneously with the generation of the performance audio data by the performance audio generation means;
Identifier detecting means for detecting a performance recording identifier from an audio file in which audio data reproduced by the file audio reproducing means is recorded;
And a playback volume control means for making the volume of the audio data reproduced by the file audio reproduction means different from that when not detected when the performance recording identifier is detected by the identifier detection means. Musical instrument.
さらに、
前記演奏音声生成手段により生成された演奏音声データを、逐次、記録すると共に、演奏記録識別子を付与して音声ファイルを作成する音声ファイル作成手段
を具備し、
前記ファイル音声再生手段は、上記音声ファイル作成手段により作成された音声ファイル或いは外部から取得された音声ファイルに記録された音声データを再生する
ことを特徴とする請求項1に記載の電子楽器。
further,
The performance sound data generated by the performance sound generation means is sequentially recorded, and includes a sound file creation means for creating a sound file by giving a performance record identifier,
2. The electronic musical instrument according to claim 1, wherein the file audio reproduction unit reproduces audio data recorded in the audio file created by the audio file creation unit or an audio file acquired from the outside.
前記再生音量制御手段は、前記識別子検出手段により演奏記録識別子が検出された場合、前記ファイル音声再生手段により再生される音声データの音量を、検出されない場合に比べて所定量変更することを特徴とする請求項1又は2に記載の電子楽器。   The reproduction volume control means changes the volume of the audio data reproduced by the file audio reproduction means by a predetermined amount when the performance recording identifier is detected by the identifier detection means as compared with the case where it is not detected. The electronic musical instrument according to claim 1 or 2. 前記音声ファイル作成手段により音声ファイルに付与される演奏記録識別子には所定の音量調整量が含まれ、
前記再生音量制御手段は、前記識別子検出手段により演奏記録識別子が検出された場合に、前記ファイル音声再生手段により再生される音声データの音量を、検出されない場合よりも前記音量調整量だけ変更する
ことを特徴とする請求項2に記載の電子楽器。
The performance record identifier given to the audio file by the audio file creation means includes a predetermined volume adjustment amount,
The reproduction volume control means changes the volume of the audio data reproduced by the file audio reproduction means by the volume adjustment amount when the performance recording identifier is detected by the identifier detection means than when it is not detected. The electronic musical instrument according to claim 2.
さらに、
演奏記録識別子が付与されていない音声ファイルについては新たに演奏記録識別子を付与し、演奏記録識別子が既に付与された音声ファイルについては該演奏記録識別子を変更する識別子付与手段
を具備することを特徴とする請求項1〜4に記載の電子楽器。
further,
A performance recording identifier is newly assigned to an audio file to which a performance recording identifier is not assigned, and an identifier providing means for changing the performance recording identifier is provided for an audio file to which a performance recording identifier has already been assigned. The electronic musical instrument according to claim 1.
前記音声ファイルに付与される演奏記録識別子は、当該音声ファイルのファイル名に付与する1以上の文字から成ることを特徴とする請求項1〜5に記載の電子楽器。   The electronic musical instrument according to claim 1, wherein the performance recording identifier assigned to the audio file is composed of one or more characters added to the file name of the audio file. 電子楽器として機能するコンピュータに、
演奏操作に応じて演奏音声データを生成する演奏音声生成ステップと、
上記演奏音声生成ステップでの演奏音声データの生成と同時に、音声ファイルに記録された音声データを再生するファイル音声再生ステップと、
上記ファイル音声再生ステップで再生される音声データが記録された音声ファイルから演奏記録識別子を検出する識別子検出ステップと、
上記識別子検出ステップで演奏記録識別子が検出された場合に、前記ファイル音声再生ステップ再生される音声データの音量を、検出されない場合と異ならせる再生音量制御ステップと
から成る手順を実行させるプログラム。
To a computer that functions as an electronic musical instrument,
A performance sound generation step for generating performance sound data in accordance with the performance operation;
A file audio reproduction step for reproducing the audio data recorded in the audio file simultaneously with the generation of the performance audio data in the performance audio generation step;
An identifier detecting step for detecting a performance recording identifier from the audio file in which the audio data reproduced in the file audio reproducing step is recorded;
A program for executing a procedure comprising a reproduction volume control step for differentiating the volume of audio data to be reproduced in the file audio reproduction step when the performance recording identifier is detected in the identifier detection step.
JP2011037914A 2010-02-25 2011-02-24 Electronic musical instruments and programs Expired - Fee Related JP5838563B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011037914A JP5838563B2 (en) 2010-02-25 2011-02-24 Electronic musical instruments and programs

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2010039463 2010-02-25
JP2010039463 2010-02-25
JP2011037914A JP5838563B2 (en) 2010-02-25 2011-02-24 Electronic musical instruments and programs

Publications (2)

Publication Number Publication Date
JP2011197663A true JP2011197663A (en) 2011-10-06
JP5838563B2 JP5838563B2 (en) 2016-01-06

Family

ID=44875867

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2011037915A Pending JP2011197664A (en) 2010-02-25 2011-02-24 Music file reproduction device and system
JP2011037914A Expired - Fee Related JP5838563B2 (en) 2010-02-25 2011-02-24 Electronic musical instruments and programs

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2011037915A Pending JP2011197664A (en) 2010-02-25 2011-02-24 Music file reproduction device and system

Country Status (1)

Country Link
JP (2) JP2011197664A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108369800A (en) * 2015-09-29 2018-08-03 雅马哈株式会社 Acoustic processing device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115440234B (en) * 2022-11-08 2023-03-24 合肥工业大学 Audio steganography method and system based on MIDI and countermeasure generation network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH043498U (en) * 1990-04-23 1992-01-13
JP2001154671A (en) * 1999-11-24 2001-06-08 Yamaha Corp Musical sound processor having recorded sound volume controlling function
JP2003243952A (en) * 2002-02-20 2003-08-29 Tdk Corp Digital audio system, auto volume control factor generating method, auto volume control method, auto volume control factor generating program, auto volume control program, recording medium for recording the auto volume control factor generating program, and recording medium for recording the auto volume control program
JP2008065904A (en) * 2006-09-07 2008-03-21 Sony Corp Reproducing device, method, and program

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2725566B2 (en) * 1992-12-09 1998-03-11 ヤマハ株式会社 Electronic musical instrument
JPH10307771A (en) * 1997-05-09 1998-11-17 Fujitsu Ltd Electronic mail processor and record medium
JP2001043141A (en) * 1999-07-28 2001-02-16 Sony Corp Method and system for information singal transmission, and transmission device, reception device, and recording medium for information signal
JP3667578B2 (en) * 1999-11-30 2005-07-06 エヌイーシーシステムテクノロジー株式会社 Sound control equipment
JP2004120551A (en) * 2002-09-27 2004-04-15 Sharp Corp Data reproducing device, data recorder, program, and recording medium
JP4281066B2 (en) * 2003-12-22 2009-06-17 ヤマハ株式会社 Digital content data processing apparatus and program
JP2006084264A (en) * 2004-09-15 2006-03-30 Konica Minolta Holdings Inc Color chart and image processing system
JP2008181581A (en) * 2007-01-23 2008-08-07 Funai Electric Co Ltd Network player
JP4976899B2 (en) * 2007-03-30 2012-07-18 株式会社東芝 Portable electronic device and audio output control program
JP5013989B2 (en) * 2007-06-27 2012-08-29 株式会社リコー Image input / output device and image input / output method
JP2009251044A (en) * 2008-04-01 2009-10-29 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument and sound volume control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH043498U (en) * 1990-04-23 1992-01-13
JP2001154671A (en) * 1999-11-24 2001-06-08 Yamaha Corp Musical sound processor having recorded sound volume controlling function
JP2003243952A (en) * 2002-02-20 2003-08-29 Tdk Corp Digital audio system, auto volume control factor generating method, auto volume control method, auto volume control factor generating program, auto volume control program, recording medium for recording the auto volume control factor generating program, and recording medium for recording the auto volume control program
JP2008065904A (en) * 2006-09-07 2008-03-21 Sony Corp Reproducing device, method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108369800A (en) * 2015-09-29 2018-08-03 雅马哈株式会社 Acoustic processing device
CN108369800B (en) * 2015-09-29 2022-04-05 雅马哈株式会社 Sound processing device

Also Published As

Publication number Publication date
JP5838563B2 (en) 2016-01-06
JP2011197664A (en) 2011-10-06

Similar Documents

Publication Publication Date Title
JP4321476B2 (en) Electronic musical instruments
JP4596966B2 (en) Electronic musical instruments
JP4489650B2 (en) Karaoke recording and editing device that performs cut and paste editing based on lyric characters
JP3878485B2 (en) Waveform playback device
JP3846376B2 (en) Automatic performance device, automatic performance program, and automatic performance data recording medium
JP5838563B2 (en) Electronic musical instruments and programs
JP7367835B2 (en) Recording/playback device, control method and control program for the recording/playback device, and electronic musical instrument
JP3807380B2 (en) Score data editing device, score data display device, and program
JP4107212B2 (en) Music playback device
JP4740583B2 (en) Music data processing apparatus and program
JP2002372981A (en) Karaoke system with voice converting function
JP4270102B2 (en) Automatic performance device and program
JP4563549B2 (en) Editing apparatus, method, and recording medium
JP2021113895A (en) Accompaniment sound generation device, electronic musical instrument, accompaniment sound generation method, and accompaniment sound generation program
JP3673385B2 (en) Music performance device
JP3666392B2 (en) Automatic performance device
JP4407419B2 (en) Electronic music equipment
JPH0413194A (en) Musical sound reproducing device with abbreviated reproducing function
JP2548723Y2 (en) Music playback device
JP5200384B2 (en) Electronic musical instruments and programs
JP4186853B2 (en) Accompaniment information setting device and program for realizing the control method
JP3407625B2 (en) Automatic performance apparatus, automatic performance method, and medium recording program
JP3637782B2 (en) Data generating apparatus and recording medium
JP3885791B2 (en) Program for realizing automatic accompaniment apparatus and automatic accompaniment method
JP2005010462A (en) Device and program for automatic musical performance, and computer-readable recording medium where automatic musical performance pattern data are recorded

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131219

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20141215

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20141218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150123

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150303

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150423

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: 20151013

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151026

R151 Written notification of patent or utility model registration

Ref document number: 5838563

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees