JP2011112815A - Sound effect attaching device and electronic musical instrument - Google Patents

Sound effect attaching device and electronic musical instrument Download PDF

Info

Publication number
JP2011112815A
JP2011112815A JP2009268341A JP2009268341A JP2011112815A JP 2011112815 A JP2011112815 A JP 2011112815A JP 2009268341 A JP2009268341 A JP 2009268341A JP 2009268341 A JP2009268341 A JP 2009268341A JP 2011112815 A JP2011112815 A JP 2011112815A
Authority
JP
Japan
Prior art keywords
sound
waveform data
sound effect
data
periodic component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009268341A
Other languages
Japanese (ja)
Inventor
Masuo Yokota
益男 横田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2009268341A priority Critical patent/JP2011112815A/en
Publication of JP2011112815A publication Critical patent/JP2011112815A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To attach natural sound effects in audibility to a musical sound wave data in which a musical sound wave data of a periodical component and a musical sound wave data of a non-periodical component are mixed. <P>SOLUTION: The musical sound wave data is composed of the musical sound wave data of the periodical component and the musical sound wave data of the non-periodical component. A mixing ratio adjustment circuit 26 receives the musical sound wave data of the periodical component and the musical sound wave data of the non-periodical component, determines the mixing ratio of the musical sound wave data of the non-periodical component to the musical sound wave data of the periodical component so that the ratio of the musical sound wave data of the non-periodical component to the musical sound wave data of the periodical component can become smaller as a degree of effects attached to the musical sound wave data become larger, and adds the musical sound wave data of the non-periodical component to the musical sound wave data of the periodical component. A sound effect generation circuit 27 attaches a predetermined effect to the added data of the musical sound wave data of the periodical component and the musical sound wave data of the non-periodical component. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、楽音に効果音を付与する効果音付与装置および電子楽器に関する。   The present invention relates to a sound effect imparting device and an electronic musical instrument that impart sound effects to musical sounds.

音声データの生成、或いは、音声データの復号において、複数の波形データを混合する技術が知られている。たとえば、特許文献1には、所定の帯域ごとにピッチ周期情報に音づき発生されるピッチパルスと白色雑音を混合する際の混合比を決定して、決定された混合比に基づいて、帯域ごとの混合信号を生成し、かつ、全帯域の混合信号を加算することで、音声を再生する音声データの復号方法が開示されている。   A technique for mixing a plurality of waveform data in generation of audio data or decoding of audio data is known. For example, Patent Literature 1 determines a mixing ratio when mixing white noise with a pitch pulse generated by sound based on pitch period information for each predetermined band, and for each band based on the determined mixing ratio. A method of decoding audio data that reproduces audio by generating a mixed signal and adding the mixed signals of all bands is disclosed.

また、特許文献2には、マイク音声の音量レベルに対する、BGM(Background Music)の音量レベルを、マイク音声の音量レベルに応じて変化させる技術が開示されている。   Patent Document 2 discloses a technique for changing the volume level of BGM (Background Music) relative to the volume level of microphone sound in accordance with the volume level of microphone sound.

特許第3292711号公報Japanese Patent No. 3292711 特開2006−148183号公報JP 2006-148183 A

電子楽器においても、自然楽器の楽音に相当する楽音を発生するために、楽音を周期成分と非周期成分とに分けて、それらを混合させる技術が知られている。たとえば、ピアノの楽音では、ハンマノイズや打弦音などが非周期成分に該当し、弦振動による楽音が周期成分に該当する。周期成分の楽音と非周期成分の楽音の混合比は、楽音を特徴付ける重要な要素である。したがって、混合比が不適切な場合には、発生する楽音は不自然なものとなってしまう。   Also in an electronic musical instrument, in order to generate a musical sound corresponding to a musical sound of a natural musical instrument, a technique for dividing a musical sound into a periodic component and an aperiodic component and mixing them is known. For example, in the musical sound of a piano, hammer noise, stringing sound, etc. correspond to non-periodic components, and musical sound due to string vibration corresponds to periodic components. The mixing ratio of the musical sound of the periodic component and the musical sound of the non-periodic component is an important element characterizing the musical sound. Therefore, when the mixing ratio is inappropriate, the generated musical sound becomes unnatural.

また、電子楽器においては、発生されたデータ(楽音波形データ)に所定の効果を与える種々の効果音付与装置が知られている。たとえば、残響音を付与する残響音発生回路(リバーブ)、音に広がりをつけるコーラス、ピアノのダンパペダル(図示せず)のオンに応じてピアノの弦共鳴や筐体の共鳴による共鳴音を、楽音波形データに付与する共鳴音発生回路、楽音波形を遅延させるディレイなどが、効果音付与装置として知られている。   In addition, in an electronic musical instrument, various sound effect applying devices that give a predetermined effect to generated data (musical sound waveform data) are known. For example, a reverberation sound generating circuit (reverb) that adds reverberation sound, a chorus that broadens the sound, and a resonance sound due to piano string resonance or housing resonance depending on the turn-on of a piano damper pedal (not shown) A resonance sound generating circuit to be added to waveform data, a delay for delaying a musical sound waveform, and the like are known as sound effect applying devices.

効果音付与装置は、電子楽器における楽音波形データを受け入れて、所定の効果を与える。楽音波形データには、上述したように、周期成分の楽音波形データと非周期成分の楽音波形データとが混合された場合が多い。ここで、非周期成分は、発音における初期、つまり、アタック時に発生することが多い。したがって、非周期成分の楽音波形データに、残響や遅延を含むイフェクトを与えると、非周期成分が不自然に長時間にわたって残ってしまい、聴感上望ましくない状態が生じるおそれがある。   The sound effect applying device accepts musical sound waveform data in the electronic musical instrument and gives a predetermined effect. As described above, the musical tone waveform data is often a mixture of the periodic component musical tone waveform data and the non-periodic component musical tone waveform data. Here, the non-periodic component is often generated in the initial stage of sound generation, that is, during an attack. Therefore, if an effect including reverberation or delay is given to the musical sound waveform data of the non-periodic component, the non-periodic component remains unnaturally for a long time, which may cause an undesirable state of hearing.

本発明は、周期成分の楽音波形データと非周期成分の楽音波形データとを混合した楽音波形データに、聴感上自然な効果音を付与することができる効果音付与装置および当該効果音付与装置を備えた電子楽器を提供することを目的とする。   The present invention relates to a sound effect applying device and a sound effect applying device capable of providing a sound effect natural sound to music sound waveform data obtained by mixing musical sound waveform data of periodic components and musical sound waveform data of non-periodic components. An object is to provide a provided electronic musical instrument.

本発明の目的は、楽音波形データに効果音を付与する効果音付与装置であって、
前記楽音波形データは、周期成分の楽音波形データおよび非周期成分の楽音波形データから構成され、
前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データを受け入れ、前記楽音波形データに付与する効果の度合いが大きくなるのにしたがって、前記周期成分の楽音波形データに対する、前記非周期成分の楽音波形データの比が小さくなるように、前記周期成分の楽音波形データと前記非周期成分の楽音波形データとの混合比を決定して、前記周期成分の楽音波形データと前記非周期成分の楽音波形データとを加算する混合比調整手段と、
前記周期成分の楽音波形データと前記非周期成分の楽音波形データとの加算データに所定の効果を与える効果音発生手段と、を備えたことを特徴とする効果音付与装置により達成される。
An object of the present invention is a sound effect imparting device for imparting sound effects to musical sound waveform data,
The musical sound waveform data is composed of musical sound waveform data of periodic components and musical sound waveform data of non-periodic components,
Accepting the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component, and increasing the degree of the effect imparted to the musical tone waveform data, the non-periodic component of the periodic component with respect to the musical tone waveform data The mixing ratio of the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component is determined so that the ratio of the musical tone waveform data is reduced, and the musical tone waveform data of the periodic component and the musical tone of the non-periodic component are determined. Mixing ratio adjusting means for adding waveform data;
This is achieved by a sound effect applying device comprising sound effect generating means for giving a predetermined effect to the sum data of the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component.

好ましい実施態様においては、前記混合比調整手段が、前記効果音発生手段において前記加算データに付与する効果の設定レベルに基づいて、前記混合比を決定するように構成されている。   In a preferred embodiment, the mixing ratio adjusting means is configured to determine the mixing ratio based on a setting level of an effect imparted to the addition data in the sound effect generating means.

また、別の好ましい実施態様においては、前記効果音発生手段が、複数の効果音発生要素を有し、
前記混合比調整手段が、前記複数の効果音発生要素ごとの効果の設定レベルと、効果音発生要素に対応付けられた重み付け係数とに基づいて、前記混合比を決定するように構成されている。
In another preferred embodiment, the sound effect generating means has a plurality of sound effect generating elements,
The mixing ratio adjusting unit is configured to determine the mixing ratio based on a setting level of an effect for each of the plurality of sound effect generating elements and a weighting coefficient associated with the sound effect generating element. .

好ましい実施態様においては、前記混合比調整手段は、前記混合比に基づいて、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データに、それぞれ、第1のレベル調整係数および第2のレベル調整係数を乗じて、これらを加算して加算データを得て、前記加算データを前記効果音発生手段に出力し、
前記効果音発生手段は、前記加算データに所定の効果を与えた効果音データを発生して、前記効果音データと、前記加算データとを加算して出力する。
In a preferred embodiment, the mixing ratio adjusting means applies a first level adjustment coefficient and a second level to the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component based on the mixing ratio, respectively. Multiply by the level adjustment coefficient, add these to obtain addition data, and output the addition data to the sound effect generating means,
The sound effect generation means generates sound effect data that gives a predetermined effect to the addition data, adds the sound effect data and the addition data, and outputs the result.

別の好ましい実施態様においては、前記混合比調整手段は、前記混合比に基づいて、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データに、それぞれ、第1のレベル調整係数および第2のレベル調整係数を乗じて、これらを加算して、第1の加算データを生成して前記効果音発生手段に出力するとともに、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データを加算して第2の加算データを生成して前記効果音発生手段に出力し、
前記効果音発生手段は、前記第1の加算データに所定の効果を与えた効果音データを発生して、前記効果音データと、前記第2の加算データとを加算して出力するように構成されている。
In another preferred embodiment, the mixing ratio adjusting means applies the first level adjustment coefficient and the first to the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component based on the mixing ratio, respectively. Multiplying the level adjustment coefficients of 2 and adding them to generate first addition data and outputting it to the sound effect generating means, and the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component Are added to generate second added data and output to the sound effect generating means,
The sound effect generating means generates sound effect data that gives a predetermined effect to the first addition data, adds the sound effect data and the second addition data, and outputs the result. Has been.

また、本発明の目的は、上記効果音付与装置と、
鍵盤と、
前記鍵盤を構成する鍵において、押鍵された鍵の音高の、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データから構成される楽音波形データを生成する発音手段と、を備えたことを特徴とする電子楽器により達成される。
Another object of the present invention is to provide the sound effect applying device described above,
The keyboard,
Sound generation means for generating musical tone waveform data composed of the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component of the pitch of the depressed key in the key constituting the keyboard, This is achieved by an electronic musical instrument characterized by that.

本発明によれば、周期成分の楽音波形データと非周期成分の楽音波形データとを混合した楽音波形データに、聴感上自然な効果音を付与することができる効果音付与装置および当該効果音付与装置を備えた電子楽器を提供することが可能となる。   ADVANTAGE OF THE INVENTION According to this invention, the sound effect provision apparatus which can provide a natural sound effect on an auditory sense, and the said sound effect provision to the musical sound waveform data which mixed the musical sound waveform data of the periodic component and the musical sound waveform data of the non-periodic component An electronic musical instrument provided with the device can be provided.

図1は、本発明の実施の形態にかかる電子楽器の構成を示すブロックダイヤグラムである。FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to an embodiment of the present invention. 図2は、本実施の形態にかかる発音回路および発音回路に関連する構成部分をより詳細に示すブロックダイヤグラムであるFIG. 2 is a block diagram showing in more detail the sounding circuit according to the present embodiment and the components related to the sounding circuit. 図3は、本実施の形態にかかる混合比調整回路の例を示すブロックダイヤグラムである。FIG. 3 is a block diagram showing an example of the mixture ratio adjusting circuit according to the present embodiment. 図4は、本実施の形態にかかる効果音発生回路の例を示すブロックダイヤグラムである。FIG. 4 is a block diagram showing an example of a sound effect generating circuit according to the present embodiment. 図5(a)は、オールパスフィルタの構成例を示す図、図5(b)は、コムフィルタの構成例を示す図である。FIG. 5A is a diagram illustrating a configuration example of an all-pass filter, and FIG. 5B is a diagram illustrating a configuration example of a comb filter. 図6は、本実施の形態にかかる電子楽器において実行される処理を概略的に示すフローチャートである。FIG. 6 is a flowchart schematically showing processing executed in the electronic musical instrument according to the present embodiment. 図7は、本実施の形態にかかる混合比算出処理の例を示すフローチャートである。FIG. 7 is a flowchart illustrating an example of the mixture ratio calculation process according to the present embodiment. 図8は、本実施の形態にかかるイフェクトレベル・係数テーブルの構成例を示す図である。FIG. 8 is a diagram showing a configuration example of the effect level / coefficient table according to the present embodiment. 図9は、効果音発生要素が2つある効果音発生回路の他の例を示すブロックダイヤグラムである。FIG. 9 is a block diagram showing another example of a sound effect generating circuit having two sound effect generating elements. 図10は、本発明の他の実施の形態にかかる効果音発生回路を示すブロックダイヤグラムである。FIG. 10 is a block diagram showing a sound effect generating circuit according to another embodiment of the present invention. 図11は、本発明の他の実施の形態にかかる混合比調整回路を示すブロックダイヤグラムである。FIG. 11 is a block diagram showing a mixing ratio adjusting circuit according to another embodiment of the present invention.

以下、添付図面を参照して、本発明の実施の形態について説明する。図1は、本発明の実施の形態にかかる電子楽器の構成を示すブロックダイヤグラムである。本実施の形態においては、効果音付与回路25を電子楽器10に組み込んでいる。   Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to an embodiment of the present invention. In the present embodiment, the sound effect applying circuit 25 is incorporated in the electronic musical instrument 10.

図1に示すように、本実施の形態にかかる電子楽器10は、鍵盤12、CPU14、ROM16、RAM18、発音回路20、操作子群21、音響システム22、および、効果音付与回路25を有する。鍵盤12、CPU14、ROM16、RAM18、発音回路20、操作子群21および効果音付与回路25は、バスを介して接続される。効果音付与回路25は、混合比調整回路26および効果音発生回路27を有する。本実施の形態にかかる電子楽器10は、たとえば、周期成分の楽音波形データおよび非周期成分の楽音波形データから構成される楽音、たとえば、ピアノ音色の楽音を生成するのに適している。   As shown in FIG. 1, the electronic musical instrument 10 according to the present embodiment includes a keyboard 12, a CPU 14, a ROM 16, a RAM 18, a sound generation circuit 20, an operator group 21, an acoustic system 22, and a sound effect applying circuit 25. The keyboard 12, CPU 14, ROM 16, RAM 18, sound generation circuit 20, operator group 21, and sound effect applying circuit 25 are connected via a bus. The sound effect applying circuit 25 includes a mixing ratio adjusting circuit 26 and a sound effect generating circuit 27. The electronic musical instrument 10 according to the present embodiment is suitable, for example, for generating a musical tone composed of musical tone waveform data of periodic components and musical tone waveform data of non-periodic components, for example, a piano tone musical tone.

鍵盤12は、複数の鍵を有し、演奏者の押鍵操作に応じて、押鍵された鍵を特定する情報および押鍵された鍵のベロシティを示す情報をCPU14に伝達することができる。   The keyboard 12 has a plurality of keys, and can transmit information specifying the pressed key and information indicating the velocity of the pressed key to the CPU 14 in accordance with the player's key pressing operation.

CPU14は、システム制御、押鍵された鍵に応じた音高の楽音波形データを生成するための発音回路20に与える発音指示信号の生成、効果音付与回路25に与える種々の制御信号の生成などを実行する。ROM16は、楽音波形データを生成するためのプログラム、効果音データの生成のためのプログラム、後に詳述する混合比調整回路26における混合比を算出するためのプログラム、プログラムの実行の際に使用される定数およびテーブルを格納する。また、ROM16は、発音回路20において生成される楽音波形データのもととなる波形データ、効果音発生回路27において用いられるフィルタ係数などを記憶する。後述する波形データ記憶部30はROM16に設けられる。RAM18は、プログラムの実行の過程で生成される変数、パラメータ、入力データ、出力データなどを一時的に記憶する。   The CPU 14 performs system control, generation of a sound generation instruction signal to be given to the sound generation circuit 20 for generating musical tone waveform data having a pitch corresponding to the depressed key, generation of various control signals to be given to the sound effect applying circuit 25, and the like. Execute. The ROM 16 is used to execute a program for generating musical sound waveform data, a program for generating sound effect data, a program for calculating a mixture ratio in the mixture ratio adjusting circuit 26 described in detail later, and a program. Store constants and tables. The ROM 16 stores waveform data that is the basis of musical sound waveform data generated by the sound generation circuit 20, filter coefficients used in the sound effect generation circuit 27, and the like. A waveform data storage unit 30 described later is provided in the ROM 16. The RAM 18 temporarily stores variables, parameters, input data, output data and the like generated in the course of program execution.

図2は、発音回路20および発音回路20に関連する構成部分をより詳細に示すブロックダイヤグラムである。図2に示すように、本実施の形態にかかる発音回路20は、波形再生回路31、エンベロープ生成回路32および乗算回路33を有する。   FIG. 2 is a block diagram showing the sounding circuit 20 and the components related to the sounding circuit 20 in more detail. As shown in FIG. 2, the sound generation circuit 20 according to the present embodiment includes a waveform reproduction circuit 31, an envelope generation circuit 32, and a multiplication circuit 33.

波形データ記憶部30には、種々の音色の波形データが記憶されている。特に、本実施の形態においては、単一の音色に対して、楽音波形のうち、周期成分に相当する周期成分波形データ201、および、非周期成分に相当する非周期成分波形データ202とが含まれる。たとえば、ピアノ系の音色においては、ピアノのハンマノイズや打弦音の波形が、非周期成分に相当する。その一方、弦の振動による波形は周期成分に相当する。   The waveform data storage unit 30 stores waveform data of various timbres. In particular, in the present embodiment, a single tone color includes periodic component waveform data 201 corresponding to a periodic component and aperiodic component waveform data 202 corresponding to a non-periodic component in a musical sound waveform. It is. For example, in a piano-type timbre, a piano hammer noise or a stringed sound waveform corresponds to an aperiodic component. On the other hand, the waveform due to the vibration of the string corresponds to a periodic component.

波形再生回路41は、波形データ記憶部30に記憶された波形データから、CPU14から与えられる発音指示信号に含まれる音色情報にしたがって、指定された音色の周期成分波形データ201および非周期成分波形データ202を、音高情報にしたがって読み出す。また、エンベロープ生成回路42は、発音指示信号に含まれるベロシティ情報にしたがったエンベロープデータを出力する。周期成分データ201のためのエンベロープと、非周期成分波形データ202のエンベロープとは別個であっても良いし、同一であっても良い。   The waveform reproduction circuit 41 uses the waveform data stored in the waveform data storage unit 30 according to the timbre information included in the sound generation instruction signal supplied from the CPU 14 and the periodic component waveform data 201 and the non-periodic component waveform data of the specified timbre. 202 is read according to the pitch information. The envelope generation circuit 42 outputs envelope data according to velocity information included in the sound generation instruction signal. The envelope for the periodic component data 201 and the envelope of the non-periodic component waveform data 202 may be separate or the same.

周期成分波形データ201およびエンベロープデータ、並びに、非周期成分波形データ201およびエンベロープデータは、それぞれ、乗算回路33において乗算され、2つの楽音波形データ(CH1の周期成分楽音波形データ、および、CH2の非周期成分楽音波形データ)が出力される。   The periodic component waveform data 201 and the envelope data, and the non-periodic component waveform data 201 and the envelope data are multiplied by the multiplication circuit 33, respectively, and two musical sound waveform data (the periodic component musical sound waveform data of CH1 and the non-CH2 data) Periodic component musical sound waveform data) is output.

発音指示信号に含まれる音高情報およびベロシティ情報は、鍵盤12からの押鍵情報に基づいて、CPU14により生成される。また、発音指示信号に含まれる音色情報は、演奏者による操作子群21における音色指定スイッチの操作にに基づいて、CPU14により生成される。   The pitch information and velocity information included in the sound generation instruction signal is generated by the CPU 14 based on the key pressing information from the keyboard 12. The timbre information included in the sound generation instruction signal is generated by the CPU 14 based on the operation of the timbre designation switch in the operator group 21 by the performer.

効果音付与回路25の混合比調整回路26は、CH1の周期成分楽音波形データ、および、CH2の非周期成分楽音波形データのそれぞれに、所定のレベル調整係数を乗算して、周期成分楽音波形データと非周期成分楽音波形データとの混合比を調整し、これらのデータを加算する。図3は、本実施の形態にかかる混合比調整回路の例を示すブロックダイヤグラムである。   The mixing ratio adjustment circuit 26 of the sound effect applying circuit 25 multiplies each of the CH1 periodic component musical sound waveform data and the CH2 non-periodic component musical sound waveform data by a predetermined level adjustment coefficient to generate periodic component musical sound waveform data. And the non-periodic component musical sound waveform data are adjusted, and these data are added. FIG. 3 is a block diagram showing an example of the mixture ratio adjusting circuit according to the present embodiment.

図3に示すように、本実施の形態にかかる混合比調整回路26は、周期成分楽音波形データとレベル調整係数aとを乗算する第1の乗算回路41と、非周期成分楽音波形データとレベル調整係数bとを乗算する第2の乗算回路42と、第1の乗算回路41の出力データと第2の乗算回路42の出力データとを加算する加算回路43とを備えている。加算回路43からの出力は分岐され、一方は、効果音発生回路27において効果音が付与される効果音付与データとして、他方は、そのまま出力される直接出力データとして、効果音発生装置27に与えられる。   As shown in FIG. 3, the mixing ratio adjustment circuit 26 according to the present embodiment includes a first multiplication circuit 41 that multiplies the periodic component musical sound waveform data and the level adjustment coefficient a, an aperiodic component musical sound waveform data, and a level. A second multiplication circuit 42 that multiplies the adjustment coefficient b, and an addition circuit 43 that adds the output data of the first multiplication circuit 41 and the output data of the second multiplication circuit 42 are provided. The output from the adding circuit 43 is branched, one being given to the sound effect generating device 27 as sound effect giving data to which the sound effect is given in the sound effect generating circuit 27 and the other being directly output data being outputted as it is. It is done.

効果音付与回路25の効果音発生回路27は、1以上の効果音発生要素を含む。効果音発生要素には、残響音発生回路(リバーブ)、ディレイ、コーラスなど種々のものが該当する。図4は、本実施の形態にかかる効果音発生回路27の例を示すブロックダイヤグラムである。この例では、単一の効果音発生要素として、リバーブが用いられている。   The sound effect generating circuit 27 of the sound effect applying circuit 25 includes one or more sound effect generating elements. Various elements such as a reverberation generation circuit (reverb), a delay, and a chorus correspond to the sound effect generation element. FIG. 4 is a block diagram showing an example of the sound effect generating circuit 27 according to the present embodiment. In this example, reverb is used as a single sound effect generating element.

図4に示すように、効果音発生回路27は、リバーブ50と、リバーブ50による残響効果が付与された効果音の楽音波形データと、直接出力データとを加算する加算回路57と、を有している。たとえば、リバーブ50は、オールパスフィルタ51と、コムフィルタ52〜54を有している。また、リバーブ50は、CPU14から与えられるリバーブ制御信号に基づき、オールパスフィルタ52、コムフィルタ52〜54に与えるフィルタ係数を取得する係数取得部56を有している。   As shown in FIG. 4, the sound effect generating circuit 27 includes a reverb 50, and an adder circuit 57 that adds the sound waveform data of the sound effect to which the reverberation effect is applied by the reverb 50 and the direct output data. ing. For example, the reverb 50 includes an all-pass filter 51 and comb filters 52 to 54. In addition, the reverb 50 includes a coefficient acquisition unit 56 that acquires filter coefficients to be applied to the all-pass filter 52 and the comb filters 52 to 54 based on a reverb control signal provided from the CPU 14.

図5(a)は、オールパスフィルタの構成例を示す図、図5(b)は、コムフィルタの構成例を示す図である。図5(a)に示すように、オールパスフィルタ500は、加減算回路501、遅延回路502、加算回路503、フィードフォワード用の乗算回路504、および、フィードバック用の乗算回路505を有する。フィードフォワード用の乗算回路504に与えられる係数RT1、遅延回路502に与えられる遅延量DL1、フィードバック用の乗算回路505に与えられる係数(帰還量)RT2が、係数取得部56から出力される。   FIG. 5A is a diagram illustrating a configuration example of an all-pass filter, and FIG. 5B is a diagram illustrating a configuration example of a comb filter. As shown in FIG. 5A, the all-pass filter 500 includes an addition / subtraction circuit 501, a delay circuit 502, an addition circuit 503, a feed forward multiplication circuit 504, and a feedback multiplication circuit 505. A coefficient RT1 given to the feedforward multiplication circuit 504, a delay amount DL1 given to the delay circuit 502, and a coefficient (feedback amount) RT2 given to the feedback multiplication circuit 505 are output from the coefficient acquisition unit 56.

図5(b)に示すように、コムフィルタ510は、増幅回路511、加減算回路512、遅延回路513、フィードバック乗算回路514を有する。遅延回路513に与えられる遅延量DL2、フィードバック用の乗算回路514に与えられる係数(帰還量)RT3が、係数取得部56から出力される。また、コムフィルタ510に、加減算回路512から遅延回路516を経ずに出力される経路(符号516)が設けられていても良い。この場合には、遅延回路513の出力データと経路516を経たデータとを加算する加算回路515が設けられる。コムフィルタ510において、たとえば、帰還量RT3や遅延量DL2を増大させることにより、フィルタ効果がより高められる。   As shown in FIG. 5B, the comb filter 510 includes an amplifier circuit 511, an addition / subtraction circuit 512, a delay circuit 513, and a feedback multiplication circuit 514. The delay amount DL2 given to the delay circuit 513 and the coefficient (feedback amount) RT3 given to the feedback multiplier circuit 514 are outputted from the coefficient acquisition unit 56. Further, the comb filter 510 may be provided with a path (reference numeral 516) that is output from the addition / subtraction circuit 512 without passing through the delay circuit 516. In this case, an adder circuit 515 that adds the output data of the delay circuit 513 and the data that has passed through the path 516 is provided. In the comb filter 510, for example, the filter effect is further enhanced by increasing the feedback amount RT3 and the delay amount DL2.

後述するイフェクトレベルEFLが大きくなるのにしたがって、フィルタ効果が高められる。したがって、本実施の形態においては、EFLが増大するのにしたがって、帰還量RT3、遅延量DL2が増大するように、CPU14からリバーブ50に、リバーブ制御信号が出力される。フィルタ効果が高められるのにしたがって、リバーブ50によるイフェクト効果、つまり、残響時間や残響音のレベルを含む残響レベルが大きくなる。   As the effect level EFL described later increases, the filter effect is enhanced. Therefore, in the present embodiment, a reverberation control signal is output from the CPU 14 to the reverb 50 so that the feedback amount RT3 and the delay amount DL2 increase as the EFL increases. As the filter effect is enhanced, the effect effect by the reverb 50, that is, the reverberation level including the reverberation time and the level of the reverberant sound increases.

図6は、本実施の形態にかかる電子楽器において実行される処理を概略的に示すフローチャートである。図6に示すように、電子楽器10のCPU14は、たとえば、RAM18に記憶されたデータのクリアを含むイニシャライズ処理を行う(ステップ601)。   FIG. 6 is a flowchart schematically showing processing executed in the electronic musical instrument according to the present embodiment. As shown in FIG. 6, the CPU 14 of the electronic musical instrument 10 performs initialization processing including clearing of data stored in the RAM 18 (step 601).

イニシャライズ処理(ステップ601)が終了すると、CPU14は、操作子群21の各スイッチの操作を検出し、検出された操作にしたがった処理を実行するスイッチ処理を実行する(ステップ602)。スイッチ処理においては、音色指定スイッチ、効果音による効果の度合い、つまり、効果の大きさ(深さ)を設定する種々の効果音設定スイッチ、効果音発生要素を指定する効果音指定スイッチなどの操作が検出される。スイッチ処理で検出されたスイッチ状態を示す情報は、RAM18の所定の領域に格納される。スイッチ状態を示す情報には、たとえば、効果音設定スイッチにより設定された、効果のレベルを示す設定レベル、動作する効果音発生要素の種別、効果音発生要素の数(決定要素数)が含まれる。   When the initialization process (step 601) is completed, the CPU 14 detects the operation of each switch of the operator group 21 and executes a switch process for executing a process according to the detected operation (step 602). In the switch processing, operations such as a tone color designation switch, various effect sound setting switches for setting the degree of the effect by the sound effect, that is, the magnitude (depth) of the effect, and the effect sound designation switch for designating the sound effect generating element, etc. Is detected. Information indicating the switch state detected by the switch process is stored in a predetermined area of the RAM 18. The information indicating the switch state includes, for example, a setting level indicating an effect level set by the sound effect setting switch, a type of the sound effect generating element to be operated, and the number of sound effect generating elements (the number of determining elements). .

なお、効果音設定スイッチは、効果音発生要素の種別ごとに複数存在し得る。たとえば、効果音発生要素がリバーブであれば、効果音設定スイッチはリバーブ効果を設定するリバーブ効果設定スイッチとなる。また、効果音発生要素がコーラスであれば、効果音設定スイッチは、コーラスのデプスを設定するコーラスデプス設定スイッチとなる。効果音設定スイッチにより入力された設定レベルは、たとえば、「0」〜「127」の値をとり、設定レベルの値が大きくなるのにしたがって、効果音による効果のレベルが大きく(深く)なる。   Note that a plurality of sound effect setting switches may exist for each type of sound effect generating element. For example, if the sound effect generating element is a reverb, the sound effect setting switch is a reverb effect setting switch for setting a reverb effect. If the sound effect generating element is chorus, the sound effect setting switch is a chorus depth setting switch for setting the chorus depth. The setting level input by the sound effect setting switch takes a value of “0” to “127”, for example, and the level of the effect by the sound effect increases (deepens) as the value of the setting level increases.

次いで、CPU14は、鍵盤12の各鍵のオン・オフ状態を検出する(ステップ603)。CPU14は、新たにオンされた鍵については、オン状態となった時刻を、RAM18に格納する。本実施の形態においては、鍵は2つスイッチを有し、鍵の押下に伴って2つのスイッチが順次オンされるようになっている。したがって、CPU14は、各鍵について2つのスイッチのそれぞれのオン時刻をRAM18に格納する。この2つのオン時刻の時間差に基づいて、いわゆるベロシティが算出される。また、CPU14は、新たにオフ状態となったスイッチについても、オフ状態となった時刻をRAM18に格納する。   Next, the CPU 14 detects the on / off state of each key of the keyboard 12 (step 603). For the newly turned on key, the CPU 14 stores the time when the key is turned on in the RAM 18. In the present embodiment, the key has two switches, and the two switches are sequentially turned on as the key is pressed. Therefore, the CPU 14 stores the on times of the two switches for each key in the RAM 18. A so-called velocity is calculated based on the time difference between the two ON times. Further, the CPU 14 stores the time when the switch is newly turned off in the RAM 18 even when the switch is newly turned off.

押鍵検出処理(ステップ603)が終了すると、CPU14は、混合比算出処理を実行する(ステップ604)。図7は、本実施の形態にかかる混合比算出処理の例を示すフローチャートである。図7に示すように、CPU14は、RAM18中の設定レベルおよび決定要素数を取得して(ステップ701)、設定レベル、決定要素数に変化があったかを判断する(ステップ702)。ステップ702でNoと判断された場合には処理を終了する。   When the key press detection process (step 603) ends, the CPU 14 executes a mixture ratio calculation process (step 604). FIG. 7 is a flowchart illustrating an example of the mixture ratio calculation process according to the present embodiment. As shown in FIG. 7, the CPU 14 acquires the setting level and the number of determining elements in the RAM 18 (step 701), and determines whether the setting level and the number of determining elements have changed (step 702). If it is determined No in step 702, the process ends.

その一方、ステップ702でYesと判断された場合には、CPU14は、決定要素数が「1」であるか否かを判断する(ステップ703)。図4に示す効果音発生回路27においては、単一の効果音発生要素のみであるため、決定要素数は「1」となる。決定要素数が「2」以上、つまり、「2」以上の効果音発生要素を含む効果音発生回路27の例については後述する。   On the other hand, if it is determined Yes in step 702, the CPU 14 determines whether or not the number of decision elements is “1” (step 703). In the sound effect generating circuit 27 shown in FIG. 4, since there is only a single sound effect generating element, the number of determining elements is “1”. An example of the sound effect generating circuit 27 including the sound effect generating elements having the determining element number “2” or more, that is, “2” or more will be described later.

ステップ703でYesと判断された場合には、イフェクトレベルEFLを、RAM18に格納されていた設定レベルLとする(ステップ704)。次いで、CPU14は,ROM16に格納されたイフェクトレベル・係数テーブルを参照して、イフェクトレベルEFLに対応付けられた混合比Ratioを取得する(ステップ705)。混合比Ratioは、図3における周期成分楽音波形データに乗算する係数aに対する、非周期成分楽音波形データに乗算する係数bの割合(b/a)に相当する。本実施の形態においては、効果音発生回路における効果の大きさ(深さ)が増大するのにしたがって、非周期成分楽音波形データの割合が小さくなる。   If YES is determined in step 703, the effect level EFL is set to the set level L stored in the RAM 18 (step 704). Next, the CPU 14 refers to the effect level / coefficient table stored in the ROM 16 and obtains the mixture ratio Ratio associated with the effect level EFL (step 705). The mixing ratio Ratio corresponds to the ratio (b / a) of the coefficient b multiplied by the non-periodic component musical sound waveform data to the coefficient a multiplied by the periodic component musical sound waveform data in FIG. In the present embodiment, as the magnitude (depth) of the effect in the sound effect generating circuit increases, the ratio of the aperiodic component musical sound waveform data decreases.

非周期成分の楽音波形は、基本的には、アタック時に発生する楽音波形から構成される。たとえば、ピアノのハンマノイズや打弦音は、押鍵の直後に短時間だけ生じる。たとえば、楽音波形の遅延や帰還による効果音において、非周期成分の楽音波形が長時間にわたって残存することは聴感上望ましくない。そこで、本実施の形態においては、遅延量や帰還量の増大を伴う、効果の大きさ(深さ)の増大にしたがって、周期成分の楽音波形に対する非周期成分の楽音波形の割合を小さくすることで、不自然な効果音の発生を抑制している。   The musical sound waveform of a non-periodic component is basically composed of a musical sound waveform generated during an attack. For example, a hammer noise or a stringing sound of a piano is generated only for a short time immediately after a key is pressed. For example, it is not desirable from the viewpoint of hearing that a musical sound waveform of a non-periodic component remains for a long time in a sound effect due to delay or feedback of a musical sound waveform. Therefore, in the present embodiment, the ratio of the non-periodic musical tone waveform to the periodic component musical tone shape is reduced in accordance with the increase in the magnitude (depth) of the effect accompanying an increase in the delay amount and the feedback amount. Therefore, the generation of unnatural sound effects is suppressed.

図8は、本実施の形態にかかるイフェクトレベル・係数テーブルの構成例を示す図である。本実施の形態においては、設定レベルLは、「0」〜「127」の何れかの値をとり得る。したがって、イフェクトレベルEFLも「0」〜「127」の何れかの値をとる。また、混合比Ratioは、イフェクトレベルEFLが「0」、つまり、効果の大きさ(深さ)が最小であるときに、「1」となる。つまり、効果の大きさ(深さ)が最小であるときには、非周期成分楽音波形データは、周期成分楽音波形データと同じレベルで出力される。その一方、混合比Ratioは、イフェクトレベルEFLが「127」、つまり、効果の大きさ(深さ)が最大であるときには、最小値である「0・5」となる。つまり、非周期成分楽音データは、周期成分波形データの半分のレベルとなる。   FIG. 8 is a diagram showing a configuration example of the effect level / coefficient table according to the present embodiment. In the present embodiment, the setting level L can take any value from “0” to “127”. Therefore, the effect level EFL also takes any value from “0” to “127”. The mixing ratio Ratio is “1” when the effect level EFL is “0”, that is, when the magnitude (depth) of the effect is minimum. That is, when the magnitude (depth) of the effect is minimum, the non-periodic component musical sound waveform data is output at the same level as the periodic component musical sound waveform data. On the other hand, the mixture ratio Ratio is “0.5” which is the minimum value when the effect level EFL is “127”, that is, when the magnitude (depth) of the effect is the maximum. That is, the non-periodic component musical sound data has a level half that of the periodic component waveform data.

図8に示す例では、混合比Ratioは、設定レベルが増大するのにしたがって、最高値「1」から最小値「0.5」まで、指数関数的に減少している。無論、これに限定されず、リニアに減少するように構成されていても良いし、設定レベルが増大するのにしたがって混合比Ratioが一様に減少するような他の関数を用いても良い。   In the example shown in FIG. 8, the mixing ratio Ratio decreases exponentially from the maximum value “1” to the minimum value “0.5” as the set level increases. Of course, the present invention is not limited to this, and it may be configured to decrease linearly, or another function that uniformly decreases the mixing ratio Ratio as the set level increases may be used.

CPU14は、取得された混合比Ratioに基づいて、レベル調整係数a、bを算出して、混合比調整回路26に出力する(ステップ706)。たとえば、周期成分波形データに乗じるレベル調整係数aを、「1」のまま固定して、非周期成分波形データに乗じるレベル調整係数b=Ratioとしても良い。或いは、a+b=1となるように、混合比Ratioに基づいて、a、bが決定されても良い。   The CPU 14 calculates the level adjustment coefficients a and b based on the acquired mixing ratio Ratio and outputs them to the mixing ratio adjustment circuit 26 (step 706). For example, the level adjustment coefficient a multiplied by the periodic component waveform data may be fixed as “1” and the level adjustment coefficient b multiplied by the non-periodic component waveform data may be set to Ratio. Alternatively, a and b may be determined based on the mixing ratio Ratio so that a + b = 1.

次に、ステップ703でNoと判断された場合について説明する。決定要素が「1」より大きいことは、効果音発生回路27に、複数の効果音発生要素が含まれる場合を示す。図9は、効果音発生要素が2つある効果音発生回路の他の例を示すブロックダイヤグラムである。図9に示すように、他の例にかかる効果音発生装置27は、効果音発生要素として、残響音発生回路であるリバーブ901と、コーラス902とを有する。リバーブ901とコーラス902とは直列に接続され、リバーブ901の出力が、コーラス902に与えられる。コーラス902の出力は、加算回路903に与えられ、加算回路903は、コーラス902の出力と、直接出力データとを加算して出力する。   Next, the case where No is determined in step 703 will be described. The determination factor being larger than “1” indicates that the sound effect generating circuit 27 includes a plurality of sound effect generating elements. FIG. 9 is a block diagram showing another example of a sound effect generating circuit having two sound effect generating elements. As shown in FIG. 9, the sound effect generating device 27 according to another example includes a reverb 901 that is a reverberation sound generating circuit and a chorus 902 as sound effect generating elements. The reverb 901 and the chorus 902 are connected in series, and the output of the reverb 901 is given to the chorus 902. The output of the chorus 902 is given to the adder circuit 903, and the adder circuit 903 adds the output of the chorus 902 and the direct output data and outputs the result.

リバーブ901には、CPU14からリバーブ制御信号が与えられる。リバーブ制御信号は、図4に示すリバーブ制御信号と同様である。また、コーラス902には、CPU14からコーラスデプスを含むコーラス制御信号が出力される。リバーブ制御信号およびコーラス制御信号は、それぞれ、効果音設定スイッチのリバーブ効果設定スイッチおよびコーラスデプス設定スイッチに入力された設定レベルに基づいて決定される。設定レベルの値が大きくなるのにしたがって、リバーブ効果、および、コーラス効果はより大きく(深く)なる。   The reverb 901 is given a reverb control signal from the CPU 14. The reverb control signal is the same as the reverb control signal shown in FIG. In addition, a chorus control signal including a chorus depth is output from the CPU 14 to the chorus 902. The reverb control signal and the chorus control signal are determined based on setting levels input to the reverb effect setting switch and the chorus depth setting switch of the sound effect setting switch, respectively. As the set level value increases, the reverb effect and chorus effect become larger (deeper).

ステップ703でNoと判断された場合には、CPU14は、効果音発生要素ごとの重み付け値Wnを取得する(ステップ707)。図9に示す例については、CPU14は、リバーブ(効果音発生要素0)についての重み付け値Wおよびコーラス(効果音発生要素1)についての重み付け値Wを取得する。重み付け値Wnは、効果音発生回路27に設けられる効果音発生要素の組み合わせごとに予め定められ、たとえば、ROM16に格納されている。 When it is determined No in step 703, the CPU 14 acquires the weighting value Wn for each sound effect generating element (step 707). For the example shown in FIG. 9, CPU 14 obtains a weighting value W 1 for the reverb weighting value W 0 and the chorus of (sound effect producing element 0) (sound effect producing element 1). The weighting value Wn is predetermined for each combination of sound effect generating elements provided in the sound effect generating circuit 27 and is stored in the ROM 16, for example.

次いで、CPU14は、イフェクトレベルEFLとして、効果音発生要素のそれぞれの設定レベルLnと、対応する重み付けWnとの積の総和Σ(Wn・Ln)を算出する(ステップ708)。ステップ708により、効果音発生要素ごとの重みを考慮した設定レベルに基づいて、イフェクトレベルEFLを得ることができる。EFLが最大値(本実施の形態においては、127)を超えていれば(ステップ709でYes)、CPU14は、EFLを最大値に設定する(ステップ710)。その後、ステップ705に進み、CPU14は,ROM16に格納されたイフェクトレベル・係数テーブルを参照して、イフェクトレベルEFLに対応付けられた混合比Ratioを取得する。   Next, the CPU 14 calculates the sum Σ (Wn · Ln) of the products of the set levels Ln of the sound effect generating elements and the corresponding weights Wn as the effect level EFL (step 708). In step 708, the effect level EFL can be obtained based on the set level in consideration of the weight for each sound effect generating element. If EFL exceeds the maximum value (127 in this embodiment) (Yes in step 709), CPU 14 sets EFL to the maximum value (step 710). Thereafter, the process proceeds to step 705, and the CPU 14 refers to the effect level / coefficient table stored in the ROM 16 and obtains the mixture ratio Ratio associated with the effect level EFL.

混合比算出処理(ステップ604)が終了すると、CPU14は発音処理を実行する(ステップ605)。発音処理においては、CPU14は、押鍵された鍵にしたがって、所定の音高、音色およびベロシティで楽音波形データを生成させるための、発音指示信号を発音回路20に出力する。発音回路20は、CPU14から発音指示信号を受理すると、音色情報にしたがった所定の波形データ(周期成分波形データ201および非周期成分波形データ202)をROM16の波形データ記憶部30から、音高情報にしたがった速度で読み出し、かつ、ベロシティにしたがったレベルの楽音波形データを生成する。また、発音処理において、CPU14は、離鍵された鍵について消音を指示する消音指示信号を発音回路20に出力する。   When the mixture ratio calculation process (step 604) ends, the CPU 14 executes a sound generation process (step 605). In the sound generation process, the CPU 14 outputs a sound generation instruction signal to the sound generation circuit 20 for generating musical sound waveform data with a predetermined pitch, tone color, and velocity in accordance with the pressed key. When the sound generation circuit 20 receives the sound generation instruction signal from the CPU 14, predetermined waveform data (periodic component waveform data 201 and aperiodic component waveform data 202) according to the timbre information is sent from the waveform data storage unit 30 of the ROM 16 to the pitch information. The musical tone waveform data of the level according to the velocity is read out at the speed according to the velocity. In the sound generation process, the CPU 14 outputs a mute instruction signal for instructing mute for the released key to the sound generation circuit 20.

発音処理により生成された周期成分楽音波形データおよび非周期成分楽音波形データは、混合比調整回路26に出力され、混合比調整回路26において、それぞれレベル調整係数が乗じられる。   The periodic component musical sound waveform data and the non-periodic component musical sound waveform data generated by the sound generation process are output to the mixing ratio adjustment circuit 26, and the mixing ratio adjustment circuit 26 multiplies each level adjustment coefficient.

その後、CPU14は、その他、電子楽器10を作動させるための他の必要な処理を実行して(ステップ606)、ステップ602に戻る。ステップ606で実行される処理には、たとえば、表示装置(図示せず)の画面上に表示すべき画像データを生成および表示するや、LED(図示せず)のオン・オフが含まれる。   Thereafter, the CPU 14 performs other necessary processing for operating the electronic musical instrument 10 (step 606) and returns to step 602. The processing executed in step 606 includes, for example, turning on / off an LED (not shown) when generating and displaying image data to be displayed on the screen of a display device (not shown).

本実施の形態においては、混合比調整回路26は、楽音波形データに付与する効果の度合い、たとえば、効果の大きさや深さが大きくなるのにしたがって、周期成分の楽音波形データに対する、非周期成分の楽音波形データの比が小さくなるように、周期成分の楽音波形データと非周期成分の楽音波形データとの混合比を決定して、混合比に基づいて周期成分の楽音波形データと非周期成分の楽音波形データとを加算する。したがって、楽音波形データに付与する効果の度合いが大きくなったときに、非周期成分の楽音波形の割合を小さくすることで、非周期成分の楽音波形が長時間にわたって残存することを防止し、聴感上好ましい楽音を出力することが可能となる。   In the present embodiment, the mixing ratio adjustment circuit 26 applies the non-periodic component to the musical tone waveform data of the periodic component as the degree of effect imparted to the musical tone waveform data, for example, the magnitude or depth of the effect increases. The ratio of the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component is determined so that the ratio of the musical tone waveform data of Is added to the musical sound waveform data. Therefore, when the degree of the effect applied to the musical sound waveform data increases, the ratio of the non-periodic musical sound waveform is reduced to prevent the non-periodic musical sound waveform from remaining for a long time. It is possible to output a preferable musical tone.

また、本実施の形態においては、混合比調整回路26は、効果音発生回路27において周期成分の楽音波形データと非周期成分の加算データに付与する効果の設定レベルに基づいて、混合比を決定する。たとえば、設定レベルと混合比とを対応付けたテーブルを、ROMなどのメモリに記憶しておき、テーブルを参照することにより混合比を求めるように構成すれば良い。設定レベルと混合比とを対応付けることにより、複雑な演算を経ることなく適切な混合比を得ることが可能となる。   In the present embodiment, the mixing ratio adjusting circuit 26 determines the mixing ratio based on the setting level of the effect given to the sound waveform data of the periodic component and the addition data of the non-periodic component in the sound effect generating circuit 27. To do. For example, a table associating the set level with the mixture ratio may be stored in a memory such as a ROM, and the mixture ratio may be obtained by referring to the table. By associating the setting level with the mixture ratio, it is possible to obtain an appropriate mixture ratio without complicated calculations.

また、本実施の形態においては、効果音発生回路が複数の効果音発生要素を有する場合には、混合比調整回路26は、複数の効果音発生要素ごとの効果の設定レベルと、効果音発生要素に対応付けられた重み付け係数とに基づいて、混合比を決定する。これにより、効果音複数要素が複数存在する場合、たとえば、効果音発生回路27にリバーブとコーラスとが含まれる場合にも、効果音発生要素の種別ごとの重み付け係数を考慮して、適切な混合比を取得することができる。   In the present embodiment, when the sound effect generating circuit has a plurality of sound effect generating elements, the mixing ratio adjusting circuit 26 sets the effect setting level for each of the plurality of sound effect generating elements and generates the sound effects. The mixing ratio is determined based on the weighting factor associated with the element. As a result, when there are a plurality of sound effect elements, for example, when the reverberation and chorus are included in the sound effect generating circuit 27, an appropriate mixing is performed in consideration of the weighting coefficient for each type of the sound effect generating element. The ratio can be obtained.

また、本実施の形態においては、混合比調整回路26は、混合比に基づいて、周期成分の楽音波形データおよび非周期成分の楽音波形データに、それぞれ、第1のレベル調整係数aおよび第2のレベル調整係数bを乗じて、これらを加算して加算データを得て、加算データを効果音を付与するための効果音付与データおよび直接出力データとして効果音発生手段に出力する。効果音発生回路27は、効果音付与データに所定の効果を与えて効果音データを生成し、当該効果音データと、直接出力データとを加算して出力する。これにより、直接音に相当する直接出力データについても、混合比を考慮することが可能となる。   Further, in the present embodiment, the mixing ratio adjusting circuit 26 converts the first level adjustment coefficient a and the second to the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component, respectively, based on the mixing ratio. Are added together to obtain added data, and the added data is output to the sound effect generating means as sound effect applying data for adding sound effects and direct output data. The sound effect generating circuit 27 generates sound effect data by giving a predetermined effect to the sound effect providing data, adds the sound effect data and the direct output data, and outputs the result. As a result, the mixing ratio can be taken into consideration for the direct output data corresponding to the direct sound.

本発明は、以上の実施の形態に限定されることなく、特許請求の範囲に記載された発明の範囲内で、種々の変更が可能であり、それらも本発明の範囲内に包含されるものであることは言うまでもない。   The present invention is not limited to the above embodiments, and various modifications can be made within the scope of the invention described in the claims, and these are also included in the scope of the present invention. Needless to say.

たとえば、前記実施の形態において、効果音発生回路27が、単一の効果音発生要素を含む例(図4)および2つの効果音発生要素を含む例(図9)を示したが、効果音発生要素は3以上であっても良い。図10は、本発明の他の実施の形態にかかる効果音発生回路を示すブロックダイヤグラムである。図10に示すように、本実施の形態において、効果音発生回路27は、4つの効果音発生要素(効果音発生要素0(符号1000)〜効果音発生要素3(符号1003))を含み、任意の効果音発生要素を、直列或いは並列に接続して、楽音波形データに所望の効果を付与することが可能となる。効果音発生要素0〜3(符号1000〜1003)の何れかを経た出力は、加算回路1031において、直接出力データと加算されて、最終的に出力される。   For example, in the above-described embodiment, the sound effect generating circuit 27 has shown the example including the single sound effect generating element (FIG. 4) and the example including the two sound effect generating elements (FIG. 9). There may be three or more generating elements. FIG. 10 is a block diagram showing a sound effect generating circuit according to another embodiment of the present invention. As shown in FIG. 10, in the present embodiment, the sound effect generating circuit 27 includes four sound effect generating elements (sound effect generating element 0 (reference numeral 1000) to sound effect generating element 3 (reference numeral 1003)) Arbitrary sound effect generating elements can be connected in series or in parallel to give a desired effect to the musical sound waveform data. The output that has passed through any of the sound effect generating elements 0 to 3 (reference numerals 1000 to 1003) is added directly to the output data in the adding circuit 1031 and finally output.

図10に示すように、たとえば、効果音発生要素0(符号1000)の出力は、出力選択機能付きのバッファ1011を経て、効果音発生要素1(符号1001)の出力と加算される加算回路1021、効果音発生要素2(符号1002)の出力と加算される加算回路1032、効果音発生要素3(符号1003)の出力と加算される加算回路1033を順次経ることになる。すなわち、バッファ1011を通る経路は、センドラインとなり、他の効果音発生要素の出力と加算されることで、他の効果音発生要素の出力と並列して出力される。   As shown in FIG. 10, for example, the output of the sound effect generating element 0 (reference numeral 1000) is added to the output of the sound effect generating element 1 (reference numeral 1001) via the buffer 1011 with an output selection function. Then, an addition circuit 1032 added to the output of the sound effect generating element 2 (reference numeral 1002) and an adder circuit 1033 added to the output of the sound effect generating element 3 (reference numeral 1003) are sequentially passed. That is, the path passing through the buffer 1011 becomes a send line, and is added in parallel with the outputs of the other sound effect generating elements by being added to the outputs of the other sound effect generating elements.

その一方、効果音発生要素0(符号1000)の出力選択機能付きのバッファ1012を通る経路は、加算回路1022、1023を介して、効果音発生要素2(符号1002)に入力される。バッファ1013を通る経路は、加算回路1024〜1026を介して、効果音発生要素3(符号1003)に入力される。バッファ1014を通る経路は、加算回路1027を介して、効果音発生要素1(符号1001)に入力される。すなわち、バッファ1012、1013、1014を通る経路は、それぞれ、リターンラインとなり、その経路を経た出力は、他の効果音発生要素に直列に入力される。   On the other hand, the path through the buffer 1012 with the output selection function of the sound effect generating element 0 (reference numeral 1000) is input to the sound effect generating element 2 (reference numeral 1002) via the adder circuits 1022 and 1023. The path passing through the buffer 1013 is input to the sound effect generating element 3 (reference numeral 1003) via the adder circuits 1024 to 1026. The path passing through the buffer 1014 is input to the sound effect generating element 1 (reference numeral 1001) via the adding circuit 1027. That is, the paths that pass through the buffers 1012, 1013, and 1014 are respectively return lines, and the output that passes through the paths is input in series to other sound effect generating elements.

図10に示す効果音発生回路においては、所望の経路をアクティブにするように、出力選択機能付きのバッファを選択することで、所望の効果音発生要素をアクティブにして、直列或いは並列に使用することができる。この例では、アクティブとなった効果音発生要素の数が、決定要素数となる。   In the sound effect generating circuit shown in FIG. 10, a desired sound effect generating element is activated by selecting a buffer with an output selection function so as to activate a desired path, and used in series or in parallel. be able to. In this example, the number of active sound effect generating elements is the number of determining elements.

効果音発生要素として、残響音発生回路(リバーブ)、コーラス、ディレイ、ピアノのダンパペダル(図示せず)のオンに応じてピアノの弦共鳴や筐体の共鳴による共鳴音を楽音波形データに付与する共鳴音発生回路などを適用することができる。   As a sound effect generation element, a resonance sound due to piano string resonance or casing resonance is added to musical sound waveform data in response to reverberation sound generation circuit (reverb), chorus, delay, and piano damper pedal (not shown) being turned on. A resonance generation circuit or the like can be applied.

また、前記実施の形態において、混合比調整回路26は、周期成分楽音波形データおよび非周期成分楽音波形データのそれぞれに、レベル調整係数を乗じてそれらを加算し、加算された楽音波形データを、効果音付与データおよび直接出力データとして、効果音発生回路27に出力している。しかしながら、このような構成に限定されるものではない。たとえば、効果音付与データとして出力する楽音波形データのセンド量を調整するような形態であっても良い。   In the embodiment, the mixing ratio adjustment circuit 26 multiplies each of the periodic component musical sound waveform data and the non-periodic component musical sound waveform data by a level adjustment coefficient and adds them, and the added musical sound waveform data is It is output to the sound effect generating circuit 27 as sound effect giving data and direct output data. However, it is not limited to such a configuration. For example, a form in which the send amount of musical tone waveform data output as sound effect application data is adjusted may be used.

図11は、本発明の他の実施の形態にかかる混合比調整回路を示すブロックダイヤグラムである。図11に示すように、混合比調整回路26は、加算回路141を有し、加算回路141は、周期成分楽音波形データと非周期成分楽音波形データとを加算して、加算された波形データを、直接出力データとして、効果音発生回路27に出力する。また、混合比調整回路26は、周期成分楽音波形データを、レベル調整係数aにて乗算する乗算回路142、非周期成分楽音波形データを、レベル係数bにて乗算する乗算回路143、および、乗算回路142の出力データと乗算回路143の出力データとを加算する加算回路144を有する。加算回路144において加算されたデータは、効果音付与データとして、効果音発生回路27に出力される。   FIG. 11 is a block diagram showing a mixing ratio adjusting circuit according to another embodiment of the present invention. As shown in FIG. 11, the mixing ratio adjusting circuit 26 has an adding circuit 141. The adding circuit 141 adds the periodic component musical sound waveform data and the non-periodic component musical sound waveform data, and adds the added waveform data. The sound is directly output to the sound effect generating circuit 27 as output data. The mixing ratio adjustment circuit 26 also includes a multiplication circuit 142 that multiplies the periodic component musical sound waveform data by the level adjustment coefficient a, a multiplication circuit 143 that multiplies the non-periodic component musical sound waveform data by the level coefficient b, and multiplication. An adder circuit 144 that adds the output data of the circuit 142 and the output data of the multiplier circuit 143 is provided. The data added in the adding circuit 144 is output to the sound effect generating circuit 27 as sound effect providing data.

他の実施の形態にかかる混合比調整回路では、直接出力データのレベルは一定にして、効果音付与データにおける混合比およびレベルのみが変更される。したがって、そのまま出力される直接出力データは、混合比の変化に影響されない。したがって、直接音については元のレベルのまま出力したい場合に好適である。   In the mixing ratio adjustment circuit according to another embodiment, the level of the direct output data is kept constant, and only the mixing ratio and level in the sound effect applying data are changed. Therefore, the direct output data output as it is is not affected by the change in the mixing ratio. Therefore, the direct sound is suitable when it is desired to output the original level as it is.

また、前記実施の形態において、混合比Ratioの最小値は「0・5」としているがこれに限定されるものではなく、それより小さい値或いは大きい値としても良いことは言うまでもない。また、混合比調整回路において、周期成分楽音波形データのレベルが一定であれば、レベル調整係数は「1」で固定できるため、第1の乗算回路(たとえば、図3の符号41)を省略することもできる。   Moreover, in the said embodiment, although the minimum value of mixing ratio Ratio is set to "0.5", it is not limited to this, and it cannot be overemphasized that it may be a smaller value or a larger value. In the mixing ratio adjustment circuit, if the level of the periodic component musical sound waveform data is constant, the level adjustment coefficient can be fixed at “1”, and therefore the first multiplication circuit (for example, reference numeral 41 in FIG. 3) is omitted. You can also.

10 電子楽器
12 鍵盤
14 CPU
16 ROM
18 RAM
20 発音回路
21 操作子群
22 音響システム
25 効果音付与回路
26 混合比調整回路
27 効果音発生回路
10 Electronic musical instrument 12 Keyboard 14 CPU
16 ROM
18 RAM
DESCRIPTION OF SYMBOLS 20 Sound generation circuit 21 Operator group 22 Sound system 25 Sound effect provision circuit 26 Mixing ratio adjustment circuit 27 Sound effect generation circuit

Claims (6)

楽音波形データに効果音を付与する効果音付与装置であって、
前記楽音波形データは、周期成分の楽音波形データおよび非周期成分の楽音波形データから構成され、
前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データを受け入れ、前記楽音波形データに付与する効果の度合いが大きくなるのにしたがって、前記周期成分の楽音波形データに対する、前記非周期成分の楽音波形データの比が小さくなるように、前記周期成分の楽音波形データと前記非周期成分の楽音波形データとの混合比を決定して、前記周期成分の楽音波形データと前記非周期成分の楽音波形データとを加算する混合比調整手段と、
前記周期成分の楽音波形データと前記非周期成分の楽音波形データとの加算データに所定の効果を与える効果音発生手段と、を備えたことを特徴とする効果音付与装置。
A sound effect imparting device for imparting sound effects to musical sound waveform data,
The musical sound waveform data is composed of musical sound waveform data of periodic components and musical sound waveform data of non-periodic components,
Accepting the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component, and increasing the degree of the effect imparted to the musical tone waveform data, the non-periodic component of the periodic component with respect to the musical tone waveform data The mixing ratio of the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component is determined so that the ratio of the musical tone waveform data is reduced, and the musical tone waveform data of the periodic component and the musical tone of the non-periodic component are determined. Mixing ratio adjusting means for adding waveform data;
A sound effect applying device, comprising: sound effect generating means for giving a predetermined effect to the addition data of the musical sound waveform data of the periodic component and the musical sound waveform data of the non-periodic component.
前記混合比調整手段が、前記効果音発生手段において前記加算データに付与する効果の設定レベルに基づいて、前記混合比を決定するように構成されたことを特徴とする請求項1に記載の効果音付与装置。   2. The effect according to claim 1, wherein the mixing ratio adjusting unit is configured to determine the mixing ratio based on a setting level of an effect imparted to the addition data in the sound effect generating unit. Sound imparting device. 前記効果音発生手段が、複数の効果音発生要素を有し、
前記混合比調整手段が、前記複数の効果音発生要素ごとの効果の設定レベルと、効果音発生要素に対応付けられた重み付け係数とに基づいて、前記混合比を決定するように構成されたことを特徴とする請求項1または2に記載の効果音付与装置。
The sound effect generating means has a plurality of sound effect generating elements,
The mixing ratio adjusting unit is configured to determine the mixing ratio based on a setting level of an effect for each of the plurality of sound effect generating elements and a weighting coefficient associated with the sound effect generating element. The sound effect applying device according to claim 1, wherein:
前記混合比調整手段は、前記混合比に基づいて、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データに、それぞれ、第1のレベル調整係数および第2のレベル調整係数を乗じて、これらを加算して加算データを得て、前記加算データを前記効果音発生手段に出力し、
前記効果音発生手段は、前記加算データに所定の効果を与えた効果音データを発生して、前記効果音データと、前記加算データとを加算して出力するように構成されたことを特徴とする請求項1ないし3の何れか一項に記載の効果音付与装置。
The mixing ratio adjusting means multiplies the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component based on the mixing ratio by a first level adjustment coefficient and a second level adjustment coefficient, respectively. , Adding these to obtain added data, outputting the added data to the sound effect generating means,
The sound effect generating means is configured to generate sound effect data that gives a predetermined effect to the addition data, add the sound effect data, and the addition data, and output the result. The sound effect imparting device according to any one of claims 1 to 3.
前記混合比調整手段は、前記混合比に基づいて、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データに、それぞれ、第1のレベル調整係数および第2のレベル調整係数を乗じて、これらを加算して、第1の加算データを生成して前記効果音発生手段に出力するとともに、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データを加算して第2の加算データを生成して前記効果音発生手段に出力し、
前記効果音発生手段は、前記第1の加算データに所定の効果を与えた効果音データを発生して、前記効果音データと、前記第2の加算データとを加算して出力するように構成されたことを特徴とする請求項1ないし3の何れか一項に記載の効果音付与装置。
The mixing ratio adjusting means multiplies the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component based on the mixing ratio by a first level adjustment coefficient and a second level adjustment coefficient, respectively. These are added to generate first addition data and output to the sound effect generating means, and the second addition is performed by adding the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component Generate data and output to the sound effect generating means,
The sound effect generating means generates sound effect data that gives a predetermined effect to the first addition data, adds the sound effect data and the second addition data, and outputs the result. The sound effect applying device according to claim 1, wherein the sound effect applying device is provided.
請求項1ないし5の何れか一項に記載の効果音付与装置と、
鍵盤と、
前記鍵盤を構成する鍵において、押鍵された鍵の音高の、前記周期成分の楽音波形データおよび前記非周期成分の楽音波形データから構成される楽音波形データを生成する発音手段と、を備えたことを特徴とする電子楽器。
The sound effect applying device according to any one of claims 1 to 5,
The keyboard,
Sound generation means for generating musical tone waveform data composed of the musical tone waveform data of the periodic component and the musical tone waveform data of the non-periodic component of the pitch of the depressed key in the key constituting the keyboard, An electronic musical instrument characterized by that.
JP2009268341A 2009-11-26 2009-11-26 Sound effect attaching device and electronic musical instrument Pending JP2011112815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009268341A JP2011112815A (en) 2009-11-26 2009-11-26 Sound effect attaching device and electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009268341A JP2011112815A (en) 2009-11-26 2009-11-26 Sound effect attaching device and electronic musical instrument

Publications (1)

Publication Number Publication Date
JP2011112815A true JP2011112815A (en) 2011-06-09

Family

ID=44235197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009268341A Pending JP2011112815A (en) 2009-11-26 2009-11-26 Sound effect attaching device and electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2011112815A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000148137A (en) * 1998-11-05 2000-05-26 Roland Corp Effect adding device
JP2007193130A (en) * 2006-01-19 2007-08-02 Kawai Musical Instr Mfg Co Ltd Resonance sound generating device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000148137A (en) * 1998-11-05 2000-05-26 Roland Corp Effect adding device
JP2007193130A (en) * 2006-01-19 2007-08-02 Kawai Musical Instr Mfg Co Ltd Resonance sound generating device

Similar Documents

Publication Publication Date Title
JP4905284B2 (en) Resonance addition device for keyboard instruments
JP4716422B2 (en) Resonant sound generator
JP6391265B2 (en) Electronic keyboard instrument
CN108242232B (en) Musical sound generation device, electronic musical instrument, musical sound generation method, and storage medium
JP2008102365A (en) Musical sound generator
JP6819309B2 (en) Resonance signal generator, electronic music device, resonance signal generation method and program
JP2018106006A (en) Musical sound generating device and method, and electronic musical instrument
JP4702392B2 (en) Resonant sound generator and electronic musical instrument
JPH027078B2 (en)
JP5257950B2 (en) Resonant sound generator
US11893968B2 (en) Electronic musical instrument, electronic keyboard musical instrument, and method of generating musical sound
JP2008033112A (en) Resonance sound generator
JPH06195075A (en) Musical tone generating device
JP3149708B2 (en) Music synthesizer
JP2004317615A (en) Apparatus and method for resonance, and computer program for resonance
WO2021049424A1 (en) Sound signal generation method, sound signal generation device, sound signal generation program, and electronic music apparatus
JP2009025589A (en) Resonance sound adding device of electronic musical instrument and electronic musical instrument
JP2003208182A (en) Musical sound generator
JP5169753B2 (en) Resonance sound adding device and electronic musical instrument
JP2011112815A (en) Sound effect attaching device and electronic musical instrument
US5712439A (en) Musical tone signal producing apparatus for simulating the effect of a vibrating element of a wind instrument
JP5035388B2 (en) Resonant sound generator and electronic musical instrument
JP2009058636A (en) Effect-imparting apparatus
JP3782150B2 (en) Stereo sound control device
JP3085696B2 (en) Music synthesizer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140508

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20141209