JP4385401B2 - Low frequency oscillation device and low frequency oscillation processing program - Google Patents

Low frequency oscillation device and low frequency oscillation processing program Download PDF

Info

Publication number
JP4385401B2
JP4385401B2 JP2004240321A JP2004240321A JP4385401B2 JP 4385401 B2 JP4385401 B2 JP 4385401B2 JP 2004240321 A JP2004240321 A JP 2004240321A JP 2004240321 A JP2004240321 A JP 2004240321A JP 4385401 B2 JP4385401 B2 JP 4385401B2
Authority
JP
Japan
Prior art keywords
waveform
lfo
specified
sections
ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004240321A
Other languages
Japanese (ja)
Other versions
JP2006058595A (en
Inventor
博毅 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2004240321A priority Critical patent/JP4385401B2/en
Publication of JP2006058595A publication Critical patent/JP2006058595A/en
Application granted granted Critical
Publication of JP4385401B2 publication Critical patent/JP4385401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

本発明は、電子楽器の音源に用いて好適な低周波発振装置および低周波発振処理プログラムに関する。   The present invention relates to a low frequency oscillation device and a low frequency oscillation processing program suitable for use as a sound source of an electronic musical instrument.

周知のように、電子楽器では、音高、音色、音量などの楽音要素を、低周波信号で周期的に変調して発生楽音を修飾する低周波発振装置を音源に備える場合が多い。この種の装置として、例えば特許文献1には、押鍵に応じて、低周波信号の発振周波数や、その低周波信号で音高の周波数を変調させる変調度を、ランダムに変化させて効果付与する低周波発振装置が開示されている。   As is well known, an electronic musical instrument is often provided with a low-frequency oscillating device for modifying a generated musical tone by periodically modulating musical tone elements such as pitch, tone color, and volume with a low-frequency signal. As this type of device, for example, Patent Document 1 gives an effect by randomly changing the oscillation frequency of a low-frequency signal and the modulation degree for modulating the frequency of the pitch with the low-frequency signal according to the key depression. A low-frequency oscillation device is disclosed.

特開平11−85157号公報JP-A-11-85157

ところで、上記特許文献1に開示の装置は、低周波信号の発振周期毎にランダムな波形レベルを発生させるため、予期し得ない極端な変化の効果を付与させるのに好適であるものの、ユーザが意図する効果を付与することができない、という問題がある。
そこで本発明は、このような事情に鑑みてなされたもので、ある程度ユーザが意図した効果を付与しつつ、予期し得ない極端な変化の効果も付与することができる低周波発振装置および低周波発振処理プログラムを提供することを目的としている。
By the way, since the apparatus disclosed in Patent Document 1 generates a random waveform level for each oscillation cycle of a low-frequency signal, it is suitable for giving an unexpected effect of extreme change. There is a problem that the intended effect cannot be imparted.
Accordingly, the present invention has been made in view of such circumstances, and a low-frequency oscillation device and a low-frequency oscillation device that can provide an unexpected effect of extreme change while providing an effect intended by the user to some extent. The object is to provide an oscillation processing program.

上記目的を達成するために、請求項1に記載の発明では、第1および第2の波形区間毎の波形、及び当該両波形区間に占める前記第1の波形区間の割合を指定するともに、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する指定手段と、前記指定手段により指定された前記第1および第2の波形区間毎の波形に対して前記第1および第2の波形区間毎に指定された係数を乗算するとともに、当該乗算された前記第1および第2の波形区間毎の波形を前記割合指定手段が指定された割合に応じて合成したLFO波形を発生するLFO波形発生手段と、前記LFO波形発生手段が発生するLFO波形に応じて、発生楽音を変調して効果付与する効果付与手段とを具備することを特徴とする。 To achieve the above object, according to the invention of claim 1, the first and second waveform of each waveform segment, and the first designated Then monitor the percentage of waveform segment occupied in the two waveform segment, the Designation means for randomly designating a coefficient for determining a peak value for each of the first and second waveform sections within a designated change width; and the first and second waveform sections designated by the designation means Each of the waveforms is multiplied by a coefficient designated for each of the first and second waveform sections, and the ratio designating means designates the multiplied waveform for each of the first and second waveform sections. and LFO waveform generating means for generating a synthesized LFO waveform in accordance with the proportions, that in response to said LFO waveform LFO waveform generating means generates comprises a effect imparting means for effectively imparting modulates the generated musical tones, the Features .

請求項2に記載の発明では、第1および第2の波形区間毎の波形を指定する波形指定手段と、前記第1および第2の波形区間に占める前記第1の波形区間の割合を指定する割合指定手段と、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する変化幅指定手段と、前記波形指定手段により指定された前記第1および第2の波形区間毎の波形を、前記割合指定手段が指定した割合に応じて合成した周期波形であって、その周期波形の波高値に対して前記変化幅指定手段が指定する前記第1および第2の波形区間毎の係数を乗算したLFO波形を発生するLFO波形発生手段と、前記LFO波形発生手段が発生するLFO波形に応じて、発生楽音の音高、音色および音量を個別に変調して効果付与する効果付与手段とを具備することを特徴とする。 According to a second aspect of the present invention, the waveform designating means for designating the waveform for each of the first and second waveform sections, and the ratio of the first waveform section in the first and second waveform sections are designated. A ratio specifying means, a change width specifying means for randomly specifying a coefficient for determining a peak value for each of the first and second waveform sections within a specified change width, and the waveform specifying means said first and second waveform of each waveform segment, a synthesized periodic waveform in proportion to the ratio specifying means specifies the change width designating means is specified for the peak value of the periodic waveform LFO waveform generation means for generating an LFO waveform multiplied by a coefficient for each of the first and second waveform sections, and the pitch, tone color, and volume of the generated musical sound according to the LFO waveform generated by the LFO waveform generation means Individually modulated and effective And effect imparting means for imparting, characterized by including the.

請求項3に記載の発明では、第1および第2の波形区間毎の波形、及び当該両波形区間に占める前記第1の波形区間の割合を指定するともに、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する指定ステップと、前記指定された前記第1および第2の波形区間毎の波形に対して前記第1および第2の波形区間毎に指定された係数を乗算するとともに、当該乗算された前記第1および第2の波形区間毎の波形を前記割合指定手段が指定された割合に応じて合成したLFO波形を発生するLFO波形発生ステップと、前記発生するLFO波形に応じて、発生楽音を変調して効果付与する効果付与ステップをコンピュータで実行させることを特徴とする。 In the invention described in claim 3, the first and second waveform of each waveform segment, and the first designated percentage of the waveform segment of a result Moni occupied in the two waveform segment, the first and second waveform segment A designation step for randomly designating a coefficient for determining a peak value for each within a designated change width, and the first and second waveforms with respect to the designated waveform for each of the first and second waveform sections. Multiply the coefficients specified for each of the two waveform sections and generate an LFO waveform by combining the multiplied waveforms for the first and second waveform sections according to the ratio specified by the ratio specifying means. and LFO waveform generating step of, in response to the LFO waveform the generated, characterized in that to execute the effect imparting step to effectively impart modulates the generated musical tones, with computer.

請求項4に記載の発明では、第1および第2の波形区間毎の波形を指定する波形指定ステップと、前記第1および第2の波形区間に占める前記第1の波形区間の割合を指定する割合指定ステップと、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する変化幅指定ステップと、前記指定された前記第1および第2の波形区間毎の波形を、前記指定された割合に応じて合成した周期波形であって、その周期波形の波高値に対して前記指定された前記第1および第2の波形区間毎の係数を乗算したLFO波形を発生するLFO波形発生ステップと、前記発生したLFO波形に応じて、発生楽音の音高、音色および音量を個別に変調して効果付与する効果付与ステップをコンピュータで実行させることを特徴とする。 According to a fourth aspect of the present invention, a waveform designating step for designating a waveform for each of the first and second waveform sections, and a ratio of the first waveform section in the first and second waveform sections are designated. A ratio specifying step ; a change width specifying step for randomly specifying a coefficient for determining a peak value for each of the first and second waveform sections within a specified change width; and the specified first and second A periodic waveform obtained by synthesizing a waveform for each second waveform section in accordance with the specified ratio, and for each of the specified first and second waveform sections with respect to a peak value of the periodic waveform . and LFO waveform generation step of generating a LFO waveform obtained by multiplying the coefficient in response to the generated LFO waveform, the pitch of the musical tones to be generated, and the effect imparting step to effectively granted a tone and volume modulated separately, with computer Fruit Characterized in that to.

請求項1、3に記載の発明によれば、第1および第2の波形区間毎の波形及び当該両波形区間に占める前記第1の波形区間の割合を指定するともに、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定すると、指定された第1および第2の波形区間毎の波形に対して第1および第2の波形区間毎に指定された係数を乗算するとともに、指定された割合に応じてこの乗算された第1および第2の波形区間毎の波形を合成したLFO波形を発生し、発生したLFO波形に応じて発生楽音を変調して効果付与するので、ある程度ユーザが意図した効果を付与しつつ、予期し得ない極端な変化の効果も付与することが出来、より表現力の高いLFO効果を奏することが出来る。 According to the invention of claim 1 and 3, designated Then monitor the percentage of the first waveform segment occupying the first and second waveform and the both waveform segment of each waveform segment, the first and second When the coefficient for determining the peak value for each waveform section is randomly specified within the specified change width, the first and second waveforms with respect to the waveforms for the specified first and second waveform sections An LFO waveform is generated by synthesizing the coefficients of the first and second waveform sections multiplied according to the specified ratio, and the coefficient specified for each section is generated, and according to the generated LFO waveform. Since the effect is imparted by modulating the generated musical sound, it is possible to impart an effect of extreme changes that cannot be anticipated while giving the effect intended by the user to some extent, and to achieve a more expressive LFO effect. .

請求項2、4に記載の発明によれば、第1および第2の波形区間毎の波形を指定し、第1および第2の波形区間に占める第1の波形区間の割合を指定し、第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定すると、第1および第2の波形区間毎の波形を指定された割合に応じて合成した周期波形であって、その周期波形の波高値に対して指定された第1および第2の波形区間毎に指定されたの係数を乗算したLFO波形を発生し、発生したLFO波形に応じて、発生楽音の音高、音色および音量を個別に変調して効果付与するから、ある程度ユーザが意図した効果を付与しつつ、予期し得ない極端な変化の効果も付与することが出来、より表現力の高いLFO効果を奏することが出来る。 According to the second and fourth aspects of the invention, the waveform for each of the first and second waveform sections is designated, the ratio of the first waveform section to the first and second waveform sections is designated, and the first When the coefficient for determining the peak value for each of the first and second waveform sections is randomly specified within the specified change width, the waveforms for the first and second waveform sections are synthesized according to the specified ratio. The LFO waveform is generated by multiplying the specified coefficient for each of the first and second waveform sections specified for the peak value of the periodic waveform, and according to the generated LFO waveform. Since the tone, tone color, and volume of the generated musical tone are individually modulated to give the effect, the effect of the extreme change that cannot be expected can be given while giving the effect intended by the user to some extent, and more expression A powerful LFO effect can be achieved.

以下、図面を参照して本発明の実施形態について説明する。
A.構成
(1)全体構成
図1は、本発明の実施の一形態である電子楽器10の全体構成を示すブロック図である。電子楽器10は、鍵盤1、操作部2、CPU3、ROM4、RAM5、音源6、D/A変換器7およびサウンドシステム8を備える。鍵盤1は、押離鍵操作(演奏操作)に応じたキーオン/キーオフ信号および鍵番号(あるいはノートナンバ)、ベロシティ等からなる演奏情報を発生する。操作部2は、楽器パネルに配設される各種スイッチを備え、スイッチ操作に応じたスイッチイベントを発生する。この操作部2に配設される主要なスイッチとして、波形選択スイッチ、同期モード選択スイッチおよびプレイスイッチ等が有り、これらスイッチ操作に対応した処理動作については追って詳述する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
A. Configuration (1) Overall Configuration FIG. 1 is a block diagram showing an overall configuration of an electronic musical instrument 10 according to an embodiment of the present invention. The electronic musical instrument 10 includes a keyboard 1, an operation unit 2, a CPU 3, a ROM 4, a RAM 5, a sound source 6, a D / A converter 7, and a sound system 8. The keyboard 1 generates performance information including a key-on / key-off signal, a key number (or note number), velocity, and the like corresponding to a press / release key operation (performance operation). The operation unit 2 includes various switches arranged on the musical instrument panel, and generates a switch event corresponding to the switch operation. As main switches arranged in the operation unit 2, there are a waveform selection switch, a synchronization mode selection switch, a play switch, and the like, and processing operations corresponding to these switch operations will be described in detail later.

CPU3は、操作部2のスイッチ操作に応じて発生するスイッチイベントに基づき楽器各部の動作状態を設定したり、鍵盤1から供給される演奏情報に応じたコマンド(例えば、発音指示コマンドや消音指示コマンド等)を生成し、これを後述するRAM5に記憶されるパラメータと共に音源6に送出して楽音形成させる。本発明の要旨に係わるCPU3の処理動作については追って述べる。ROM4は、上記CPU3にロードされる各種制御プログラムや制御データ等を記憶する。ここで言う各種制御プログラムとは、後述するメインルーチンおよびスイッチ処理を含む。   The CPU 3 sets the operation state of each part of the musical instrument based on the switch event generated in response to the switch operation of the operation unit 2, or commands (for example, a sound generation instruction command or a mute instruction command And the like are transmitted to the sound source 6 together with parameters stored in the RAM 5 (to be described later) to form a musical tone. The processing operation of the CPU 3 according to the gist of the present invention will be described later. The ROM 4 stores various control programs and control data that are loaded into the CPU 3. The various control programs referred to here include a main routine and switch processing described later.

RAM5は、CPU3のワークエリアとして用いられ、各種レジスタ・フラグデータを一時記憶する。ここで、図2を参照してRAM5に一時記憶される主要レジスタの内容を説明する。この図において、レジスタDutyは、後述するLFO波形発生器63(図3参照)が発生するLFO波形一周期全体に占める波形A区間の割合を指定するパラメータを保持する。レジスタWF_Aは、LFO波形中のA区間を形成する波形テーブルを指定するパラメータ(波形番号)を保持する。レジスタRMin_Aは、LFO波形中のA区間における乱数最小値を保持する。レジスタRMax_Aは、LFO波形中のA区間における乱数最大値を保持する。レジスタWF_Bは、LFO波形中のB区間を形成する波形テーブルを指定するパラメータを保持する。レジスタRMin_Bは、LFO波形中のB区間における乱数最小値を保持する。レジスタRMax_Bは、LFO波形中のB区間における乱数最大値を保持する。   The RAM 5 is used as a work area for the CPU 3 and temporarily stores various register / flag data. Here, the contents of the main register temporarily stored in the RAM 5 will be described with reference to FIG. In this figure, the register Duty holds a parameter for designating the ratio of the waveform A section occupying in one entire LFO waveform cycle generated by an LFO waveform generator 63 (see FIG. 3) described later. The register WF_A holds a parameter (waveform number) that specifies a waveform table that forms an A section in the LFO waveform. The register RMin_A holds a random number minimum value in the A section in the LFO waveform. The register RMax_A holds a random number maximum value in the A section in the LFO waveform. The register WF_B holds a parameter for designating a waveform table that forms the B section in the LFO waveform. The register RMin_B holds a random number minimum value in the B section in the LFO waveform. The register RMax_B holds a random number maximum value in the B section in the LFO waveform.

フラグSyncModeは、「1」の場合に拍同期モードを表し、「0」の場合に非拍同期モードを表す。レジスタRateは、LFO波形の読み出し位相レートを保持する。レジスタBeatは、LFO波形を拍同期で発生させる際の拍数を保持する。レジスタPDは、後述の係数乗算器64(図3参照)に与えるピッチ変調度を保持する。レジスタFDは、後述の係数乗算器65(図3参照)に与えるフィルタ変調度を保持する。レジスタADは、後述の係数乗算器66(図3参照)に与える音量変調度を保持する。以上説明したレジスタDuty〜ADの各内容は、ユーザ設定されるパラメータである。   The flag SyncMode indicates a beat synchronization mode when “1”, and indicates a non-beat synchronization mode when “0”. The register Rate holds the read phase rate of the LFO waveform. The register Beat holds the number of beats when the LFO waveform is generated in beat synchronization. The register PD holds a pitch modulation degree to be given to a coefficient multiplier 64 (see FIG. 3) described later. The register FD holds a filter modulation degree to be given to a coefficient multiplier 65 (see FIG. 3) described later. The register AD holds a volume modulation degree to be given to a coefficient multiplier 66 (see FIG. 3) described later. The contents of the registers Duty to AD described above are parameters set by the user.

レジスタWT_Aは、上記レジスタWF_Aで指定される波形テーブルの先頭アドレスを保持する。レジスタWTS_Aは、上記レジスタWF_Aで指定される波形テーブルのサイズを保持する。レジスタWT_Bは、上記レジスタWF_Bで指定される波形テーブルの先頭アドレスを保持する。レジスタWTS_Bは、上記レジスタWF_Bで指定される波形テーブルのサイズを保持する。レジスタPPは、LFO波形の読み出し位相位置を保持する。フラグSは乱数値設定処理フラグであり、意図するところについては追って述べる。レジスタRは、乱数値を保持する。クロックカウンタCCは、タイマクロックのカウント値を保持する。レジスタCC_MAXは、1小節長分に相当するクロックカウント値を保持する。フラグPlayは、「0」の場合に演奏停止を、「1」の場合に演奏中を表すフラグである。   The register WT_A holds the top address of the waveform table specified by the register WF_A. The register WTS_A holds the size of the waveform table specified by the register WF_A. The register WT_B holds the top address of the waveform table specified by the register WF_B. The register WTS_B holds the size of the waveform table specified by the register WF_B. The register PP holds the read phase position of the LFO waveform. The flag S is a random value setting processing flag, and the intended place will be described later. The register R holds a random value. The clock counter CC holds the count value of the timer clock. The register CC_MAX holds a clock count value corresponding to one bar length. The flag Play is a flag indicating that the performance is stopped when “0” and that the performance is being performed when “1”.

次に、再び図1を参照して実施形態の構成について説明を進める。図1において、音源6は、周知の波形メモリ読み出し方式にて構成され、自己の内部メモリに記憶する波形データの内、CPU3から供給されるパラメータにて指定される音色の波形データを読み出し、読み出した波形データについてCPU3から供給される演奏情報に応じて波形修飾を施して楽音データを発生する。また、音源6では、CPU3から供給されるLFO発生用のパラメータに応じて生成したLFO波形により楽音データの音高、音色および音量を変調して効果付加する。D/A変換器7は、音源6から出力される楽音データをアナログ形式の楽音信号に変換して出力する。サウンドシステム8は、D/A変換器7が出力する楽音信号から不要ノイズを除去する等のフィルタリングを施した後、これを増幅してスピーカから発音させる。   Next, the configuration of the embodiment will be described with reference to FIG. 1 again. In FIG. 1, a sound source 6 is configured by a well-known waveform memory reading method, and reads and reads tone waveform data specified by parameters supplied from the CPU 3 among waveform data stored in its own internal memory. The waveform data is subjected to waveform modification according to the performance information supplied from the CPU 3 to generate musical sound data. Further, the tone generator 6 modulates the pitch, tone color and volume of the musical tone data with the LFO waveform generated according to the LFO generation parameter supplied from the CPU 3 and adds an effect. The D / A converter 7 converts the musical tone data output from the sound source 6 into an analog musical tone signal and outputs it. The sound system 8 performs filtering such as removing unnecessary noise from the musical sound signal output from the D / A converter 7, and then amplifies it to make it sound from the speaker.

(2)音源6の構成
次に、図3を参照して音源6の構成について説明する。音源6は周知のDSPから構成される。したがって、図3はそのDSPにおいて実行されるマイクロプログラムの各機能をハードウェアイメージとして捉らえた機能ブロックを図示している。
図3に図示するように、音源6は、発音チャンネルに対応して複数系統設けられる波形発生器67、フィルタ68、増幅器69およびミキサ70を備える。波形発生器67は、周知の波形メモリ読み出し方式で構成され、CPU3から供給される発音コマンドに従い、指定音色の波形データを指定音高で再生する一方、係数乗算器64から供給されるピッチ変調信号に応じて再生音高を周波数変調する。係数乗算器64は、後述するLFO波形発生器63から供給されるLFO波形に、CPU3から与えられるピッチ変調度PDを乗算してピッチ変調信号を発生する。
(2) Configuration of Sound Source 6 Next, the configuration of the sound source 6 will be described with reference to FIG. The sound source 6 is composed of a known DSP. Therefore, FIG. 3 illustrates functional blocks in which each function of the microprogram executed in the DSP is regarded as a hardware image.
As shown in FIG. 3, the sound source 6 includes a waveform generator 67, a filter 68, an amplifier 69, and a mixer 70 provided in a plurality of systems corresponding to the sound generation channels. The waveform generator 67 is configured by a well-known waveform memory readout method, and reproduces waveform data of a specified tone color at a specified pitch in accordance with a sound generation command supplied from the CPU 3, while a pitch modulation signal supplied from a coefficient multiplier 64. The playback pitch is frequency-modulated accordingly. The coefficient multiplier 64 multiplies an LFO waveform supplied from an LFO waveform generator 63 described later by a pitch modulation degree PD given from the CPU 3 to generate a pitch modulation signal.

フィルタ68は、周知のDCF(デジタル制御フィルタ)から構成され、係数乗算器65から供給されるカットオフ周波数変調信号に応じて、カットオフ周波数を変調してローパス特性を変化させ、これにより波形発生器67が出力する波形データに音色変化を与える。係数乗算器65は、後述するLFO波形発生器63から供給されるLFO波形に、CPU3から与えられるフィルタ変調度FDを乗算してカットオフ周波数変調信号を発生する。   The filter 68 includes a well-known DCF (digital control filter), and modulates the cutoff frequency in accordance with the cutoff frequency modulation signal supplied from the coefficient multiplier 65 to change the low-pass characteristic, thereby generating a waveform. A tone color change is given to the waveform data output from the device 67. The coefficient multiplier 65 multiplies an LFO waveform supplied from an LFO waveform generator 63, which will be described later, by a filter modulation degree FD supplied from the CPU 3 to generate a cutoff frequency modulation signal.

増幅器69は、係数乗算器66から供給される音量変調信号に応じて増幅率を可変制御してフィルタ68が出力する波形データに音量変化を与える。係数乗算器66は、後述するLFO波形発生器63から供給されるLFO波形に、CPU3から与えられる音量変調度ADを乗算して音量変調信号を発生する。ミキサ70は、発音チャンネルに対応した各増幅器69の出力を合成する。   The amplifier 69 variably controls the amplification factor according to the volume modulation signal supplied from the coefficient multiplier 66, and gives the volume change to the waveform data output from the filter 68. The coefficient multiplier 66 multiplies an LFO waveform supplied from an LFO waveform generator 63, which will be described later, by a volume modulation degree AD given from the CPU 3 to generate a volume modulation signal. The mixer 70 combines the outputs of the amplifiers 69 corresponding to the sound generation channels.

LFO波形発生器63は、図4に図示するように、波形一周期をA区間およびB区間に区分けしたLFO波形を発生する。つまり、LFO波形発生器63は、これら波形区間A,Bにアサインする各種波形テーブルを備え、ユーザ設定される波形番号WF_A(A区間),WF_B(B区間)で指定される波形形状の波形テーブルを参照して波形発生する。   As shown in FIG. 4, the LFO waveform generator 63 generates an LFO waveform in which one waveform period is divided into an A section and a B section. That is, the LFO waveform generator 63 includes various waveform tables assigned to these waveform sections A and B, and a waveform table having a waveform shape designated by the user-set waveform numbers WF_A (A section) and WF_B (B section). Generate a waveform with reference to.

波形番号WF_A(WF_B)は、「0」〜「3」の4種類の波形形状を指定する。図5に波形番号WF_A(WF_B)と波形形状との対応関係を図示する。「0」の場合には図5(a)に図示する「三角波」、「1」の場合には図5(b)に図示する「鋸波上り」、「2」の場合には図5(c)に図示する「鋸波下り」、「3」の場合には図5(d)に図示する「矩形波」の各波形テーブルをそれぞれ指定する。したがって、図4のLFO波形は、波形A区間に「鋸波下り(図5(c))」を、波形B区間に「三角波(図5(a))」をアサインした一例を図示している。   The waveform number WF_A (WF_B) designates four types of waveform shapes “0” to “3”. FIG. 5 illustrates the correspondence between the waveform number WF_A (WF_B) and the waveform shape. In the case of “0”, “triangular wave” illustrated in FIG. 5A, in the case of “1” “saw wave rising” illustrated in FIG. 5B, and in the case of “2”, FIG. In the case of “sawtooth wave down” and “3” illustrated in c), the waveform tables of “rectangular wave” illustrated in FIG. Therefore, the LFO waveform in FIG. 4 shows an example in which “sawtooth wave down (FIG. 5C)” is assigned to the waveform A section and “triangular wave (FIG. 5A)” is assigned to the waveform B section. .

LFO波形発生器63では、こうした波形A,B区間の割合をデューティ比で定義する。具体的には、ユーザ設定されるパラメータDutyの値によって波形一周期全体に占める波形A区間の割合を指定する。例えば、波形A,B区間に「矩形波」を割り当て、かつパラメータDutyが「0.6」であると、図6に図示する一例のように、デューティ比60%のLFO波形となる。   In the LFO waveform generator 63, the ratio of such waveform A and B sections is defined by the duty ratio. Specifically, the ratio of the waveform A section in the entire waveform cycle is designated by the value of the parameter Duty set by the user. For example, if a “rectangular wave” is assigned to the waveforms A and B and the parameter Duty is “0.6”, an LFO waveform with a duty ratio of 60% is obtained as in the example illustrated in FIG.

また、LFO波形発生器63は、16ビット長の乱数テーブルから読み出される乱数R(0〜65535)と、波形区間毎に設定される乱数最大値RMax、乱数最小値RMinとから、RMin+R(RMax−RMin)/65535を算出し、これに得られるランダム値でLFO波形レベルをランダム変化させる。なお、波形A区間の乱数最大値RMax_A、乱数最小値RMin_Aおよび波形B区間の乱数最大値RMax_B、乱数最小値RMin_Bは、ユーザ設定される値となる。   Further, the LFO waveform generator 63 calculates Rmin + R (RMMax−) from the random number R (0 to 65535) read from the 16-bit random number table, the random number maximum value RMax and the random number minimum value Rmin set for each waveform section. RMin) / 65535 is calculated, and the LFO waveform level is randomly changed with a random value obtained therefrom. Note that the random number maximum value RMax_A and random number minimum value RMax_A in the waveform A section, and the random number maximum value RMax_B and random number minimum value RIn_B in the waveform B section are values set by the user.

このように、LFO波形発生器63では、波形番号WF_A、WF_Bにて波形A、B各区間の波形形状を定め、パラメータDutyにより波形一周期全体に占める波形A区間の割合を定め、さらに乱数最大値RMax_A、乱数最小値RMin_Aおよび乱数最大値RMax_B、乱数最小値RMin_Bに応じてLFO波形レベルのランダム変化する波高値幅を制限することで、ある程度ユーザが意図した効果を付与しつつ、予期し得ない極端な変化の効果も付与するLFO波形を生成し得るようになっている。   As described above, the LFO waveform generator 63 determines the waveform shape of each section of the waveforms A and B with the waveform numbers WF_A and WF_B, determines the ratio of the section of the waveform A occupying the entire waveform cycle by the parameter Duty, and further determines the maximum random number. Limiting the peak value width at which the LFO waveform level changes randomly according to the value RMax_A, the random number minimum value RMin_A, the random number maximum value RMax_B, and the random number minimum value RMin_B is unpredictable while giving the effect intended by the user to some extent. It is possible to generate an LFO waveform that also gives the effect of extreme changes.

例えば、パラメータDutyを「0.5」、波形A区間の波形番号WF_Aを「0(三角波)」、乱数最大値RMax_Aおよび乱数最小値RMin_Aを「0」、波形B区間の波形番号WF_Bを「3(矩形波)」、乱数最大値RMax_Bを「1.0」、乱数最小値RMin_Bを「−1.0」とした場合には、図7に図示するように、波形A区間が波形レベル「0」となり、波形B区間は波形レベルが「−1.0」〜「1.0」の範囲でランダムに変化するLFO波形となる。   For example, the parameter Duty is “0.5”, the waveform number WF_A in the waveform A section is “0 (triangular wave)”, the random number maximum value RMax_A and the random number minimum value Rmin_A are “0”, and the waveform number WF_B in the waveform B section is “3”. (Rectangular wave) ", when the random number maximum value RMax_B is set to" 1.0 "and the random number minimum value Rmin_B is set to" -1.0 ", as shown in FIG. The waveform B section becomes an LFO waveform whose waveform level changes randomly within the range of “−1.0” to “1.0”.

さらに、例えばパラメータDutyを「0.25」、波形A区間の波形番号WF_Aを「2(鋸波下り)」、乱数最大値RMax_Aを「−0.5」、乱数最小値RMin_Aを「−1.0」、波形B区間の波形番号WF_Bを「0(三角波)」、乱数最大値RMax_Bを「0.5」、乱数最小値RMin_Bを「−0.5」とした場合には、図8に図示するように、波形A区間では波形レベル「−1.0」〜「−0.5」の範囲でランダムに変化する鋸波下り波形となり、一方、波形B区間では、波形レベルが「−0.5」〜「0.5」の範囲でランダムに変化する三角波形を備えたLFO波形が生成される。   Further, for example, the parameter Duty is “0.25”, the waveform number WF_A of the waveform A section is “2 (sawtooth down)”, the random number maximum value RMax_A is “−0.5”, and the random number minimum value Rmin_A is “−1. FIG. 8 illustrates a case where “0”, the waveform number WF_B of the waveform B section is “0 (triangular wave)”, the random number maximum value RMax_B is “0.5”, and the random number minimum value RMin_B is “−0.5”. As shown, in the waveform A section, the sawtooth wave descending waveform that randomly changes in the range of the waveform level “−1.0” to “−0.5”, while in the waveform B section, the waveform level is “−0. An LFO waveform having a triangular waveform that randomly changes in the range of “5” to “0.5” is generated.

LFO波形発生器63は、図3に図示するように、ビートクロック発生器61および位相発生器62の出力に応じてLFO波形を発生する。位相発生器62は、CPU3から供給されるフラグSyncModeに従って位相位置PPを発生する。フラグSyncModeは、「1」の場合に拍同期モードを表し、「0」の場合に非拍同期モードを表す。   The LFO waveform generator 63 generates an LFO waveform according to the outputs of the beat clock generator 61 and the phase generator 62, as shown in FIG. The phase generator 62 generates the phase position PP according to the flag SyncMode supplied from the CPU 3. The flag SyncMode indicates a beat synchronization mode when “1”, and indicates a non-beat synchronization mode when “0”.

フラグSyncModeが「0」の非拍同期モードの場合、位相発生器62は、レジスタRateに格納されるLFO波形の読み出し位相レートに対応した位相増分を前回の位相位置PPに累算して現在の位相位置PPを算出し、算出した現在の位相位置PPに従ってLFO波形読み出しを進行させる。なお、位相増分を累算した位相位置PPが「1」を超えた場合には、「1」を減算し、それを現在のLFO波形の読み出し位相位置PPに設定する。   In the non-beat synchronization mode in which the flag SyncMode is “0”, the phase generator 62 accumulates the phase increment corresponding to the read phase rate of the LFO waveform stored in the register Rate to the previous phase position PP, and The phase position PP is calculated, and the LFO waveform reading is advanced according to the calculated current phase position PP. When the phase position PP obtained by accumulating the phase increments exceeds “1”, “1” is subtracted and set to the read phase position PP of the current LFO waveform.

フラグSyncModeが「1」の拍同期モードの場合、位相発生器62は、ビートクロック発生器61のビート出力に同期して位相位置PPを発生する。ビートクロック発生器61は、ユーザ指定の拍数Beatに対応したタイミングでビートクロックを出力する。
例えば、最小単位時間であるタイマクロックを累算するタイマカウントCCが「96クロック」をカウントした期間を「1拍」と定義した場合、ユーザ指定の拍数beatが4拍であると、タイマカウントCCが「384クロック」をカウントする毎にビートクロックを出力する。
In the beat synchronization mode in which the flag SyncMode is “1”, the phase generator 62 generates the phase position PP in synchronization with the beat output of the beat clock generator 61. The beat clock generator 61 outputs a beat clock at a timing corresponding to the user-specified number of beats Beat.
For example, if the timer count CC that accumulates the timer clock that is the minimum unit time is defined as “1 beat” when the timer count CC counts “96 clocks”, the timer count is counted when the beat number specified by the user is 4 beats. Each time the CC counts “384 clocks”, a beat clock is output.

B.動作
次に、上記構成による実施の形態の動作を説明する。以下では、図9〜図10を参照してCPU3の動作を説明した後、図11〜図12を参照して音源6の動作を説明する。
B. Operation Next, the operation of the embodiment having the above-described configuration will be described. Hereinafter, the operation of the CPU 3 will be described with reference to FIGS. 9 to 10, and then the operation of the sound source 6 will be described with reference to FIGS. 11 to 12.

(1)CPU3の動作
<メインルーチンの動作>
上記構成による電子楽器10をパワーオンすると、CPU3は図9に示すメインルーチンを実行し、ステップSA1に処理を進め、RAM5に格納される各種レジスタ/フラグ類をリセットしたり、初期値セットする他、音源6に対して各種レジスタ・フラグを初期化するよう指示するイニシャライズを実行する。そして、イニシャライズが完了すると、ステップSA2に処理を進め、操作部2におけるスイッチ操作に対応したスイッチ処理を行う。後述するように、スイッチ処理では、音源6のLFO波形発生器63に与える各種パラメータを設定する。そして、ステップSA3では、鍵盤1の押離鍵操作で発生する演奏情報に応じた発音/消音コマンドを音源6に送出する鍵盤処理を実行する。続いて、ステップSA4では、例えばユーザ指定の曲データを再生して自動演奏する等の、その他の処理を実行した後、上記ステップSA2に処理を戻し、以後、パワーオフされる迄、ステップSA2〜SA4を繰り返す。
(1) Operation of CPU 3
<Main routine operation>
When the electronic musical instrument 10 having the above configuration is powered on, the CPU 3 executes the main routine shown in FIG. 9 and proceeds to step SA1 to reset various registers / flags stored in the RAM 5 and to set initial values. Then, initialization for instructing the sound source 6 to initialize various register flags is executed. When the initialization is completed, the process proceeds to step SA2, and the switch process corresponding to the switch operation in the operation unit 2 is performed. As will be described later, in the switch process, various parameters to be given to the LFO waveform generator 63 of the sound source 6 are set. In step SA3, a keyboard process for sending a sound generation / mute command to the sound source 6 in accordance with performance information generated by a key release operation of the keyboard 1 is executed. Subsequently, in step SA4, for example, after performing other processing such as playing music data specified by the user and performing automatically, the processing returns to step SA2, and thereafter, until the power is turned off, steps SA2 to SA2 are performed. Repeat SA4.

<スイッチ処理の動作>
次に、図10を参照してスイッチ処理の動作について説明する。上述したメインルーチンのステップSA2を介して本処理が実行されると、CPU3は操作されるスイッチ種に対応した処理を実行する。以下では、音源6のLFO波形発生器63に主要なパラメータを設定するスイッチ操作が行われた場合の各動作を述べる。
<Operation of switch processing>
Next, the operation of the switch process will be described with reference to FIG. When this processing is executed through step SA2 of the main routine described above, the CPU 3 executes processing corresponding to the operated switch type. Below, each operation | movement when the switch operation which sets a main parameter to the LFO waveform generator 63 of the sound source 6 is performed is described.

a.A区間波形選択スイッチ操作
A区間波形選択スイッチ操作が行われると、ステップSB1の判断結果が「YES」になり、ステップSB2に進む。ステップSB2では、LFO波形のA区間にアサインする波形テーブルを指定する選択波形番号をレジスタWF_Aにストアすると共に、その指定された波形テーブルの先頭アドレスおよびテーブルサイズを、レジスタWT_A、レジスタWTS_Aにそれぞれストアする。
a. A Section Waveform Selection Switch Operation When the A section waveform selection switch operation is performed, the determination result in step SB1 is “YES”, and the flow proceeds to step SB2. In step SB2, the selected waveform number designating the waveform table assigned to the A section of the LFO waveform is stored in the register WF_A, and the head address and table size of the designated waveform table are stored in the register WT_A and the register WTS_A, respectively. To do.

b.B区間波形選択スイッチ操作
B区間波形選択スイッチ操作が行われると、ステップSB3の判断結果が「YES」になり、ステップSB4に進む。ステップSB4では、LFO波形のB区間にアサインする波形テーブルを指定する選択波形番号をレジスタWF_Bにストアすると共に、その指定された波形テーブルの先頭アドレスおよびテーブルサイズを、レジスタWT_B、レジスタWTS_Bにそれぞれストアする。
b. B Section Waveform Selection Switch Operation When the B section waveform selection switch operation is performed, the determination result in step SB3 is “YES”, and the flow proceeds to step SB4. In step SB4, the selected waveform number designating the waveform table assigned to the B section of the LFO waveform is stored in the register WF_B, and the head address and table size of the designated waveform table are stored in the register WT_B and the register WTS_B, respectively. To do.

c.同期モード選択スイッチ操作
同期モード選択スイッチ操作が行われると、ステップSB5の判断結果が「YES」になり、ステップSB6に進み、フラグSyncModeを反転させると共に、LFO波形の読み出し位相位置を保持するレジスタPPをゼロリセットし、さらに乱数値設定処理フラグSに「1」をセットする。
c. Synchronous mode selection switch operation When the synchronous mode selection switch operation is performed, the determination result in step SB5 becomes "YES", the process proceeds to step SB6, the flag SyncMode is inverted, and the register PP which holds the read phase position of the LFO waveform Is reset to zero and “1” is set to the random value setting processing flag S.

d.プレイスイッチ操作
プレイスイッチ操作が行われると、ステップSB7の判断結果が「YES」になり、ステップSB8に進み、演奏停止/演奏中を表すフラグPlayを反転させると共に、クロックカウンタCCをゼロリセットする。
d. Play Switch Operation When the play switch operation is performed, the determination result in step SB7 is “YES”, the process proceeds to step SB8, the flag Play indicating that the performance is stopped / playing is reversed, and the clock counter CC is reset to zero.

そして、この後、ステップSB9に進み、例えばLFO波形一周期全体に占める波形A区間の割合を指定するパラメータDutyや、LFO波形A区間の乱数最大値RMax_A、乱数最小値RMin_AおよびLFO波形B区間の乱数最大値RMax_B、乱数最小値RMin_Bを設定する、その他のスイッチ処理を実行してから本処理を完了させる。   Then, the process proceeds to step SB9, for example, the parameter Duty for specifying the proportion of the waveform A section occupying the entire LFO waveform period, the random number maximum value RMax_A, the random number minimum value RMax_A, and the LFO waveform B section of the LFO waveform A section. This processing is completed after executing other switch processing for setting the random number maximum value RMax_B and the random number minimum value RMin_B.

(2)音源6の動作
次に、図11〜図12を参照して音源6の動作を説明する。音源6では、前述のビートクロック発生器61の機能を具現する拍タイマ処理と、前述のLFO波形発生器63の機能を具現するLFOタイマ処理とを実行する。以下、拍タイマ処理およびLFOタイマ処理の各動作を述べる。
(2) Operation of sound source 6
Next, the operation of the sound source 6 will be described with reference to FIGS. The tone generator 6 executes a beat timer process that realizes the function of the beat clock generator 61 and an LFO timer process that realizes the function of the LFO waveform generator 63. Hereinafter, each operation of the beat timer process and the LFO timer process will be described.

<拍タイマ処理の動作>
音源6では一定周期毎に本処理をタイマ割込みにて実行し、割込み実行タイミングになると、図11に図示するステップSC1に進み、タイマクロックをカウントするクロックカウンタCCをインクリメントして歩進させ、続くステップSC2では、クロックカウンタCCの累算値がレジスタCC_MAXより大きいか否かを判断する。ここで、レジスタCC_MAXには、1小節長分に相当するクロックカウント値が保持されている。したがって、このステップSC2では、1小節経過したかどうかを判断している。1小節経過すると、判断結果は「YES」になり、ステップSC3に進み、クロックカウンタCCをゼロリセットする。一方、1小節経過していなければ、上記ステップSC2の判断結果が「NO」になり、本処理を完了させる。
このように、拍タイマ処理では、1小節経過するまでタイマ割込み実行タイミング毎にクロックカウンタCCを歩進させてタイマクロックを累算し、1小節経過する毎にクロックカウンタCCをゼロリセットするようになっている。
<Operation of beat timer processing>
The sound source 6 executes this process with a timer interrupt at regular intervals. When the interrupt execution timing is reached, the process proceeds to step SC1 shown in FIG. 11, and the clock counter CC that counts the timer clock is incremented and incremented. In step SC2, it is determined whether or not the accumulated value of the clock counter CC is greater than the register CC_MAX. Here, a clock count value corresponding to one bar length is held in the register CC_MAX. Therefore, in step SC2, it is determined whether one measure has elapsed. When one measure has elapsed, the determination result is “YES”, the process proceeds to step SC3, and the clock counter CC is reset to zero. On the other hand, if one measure has not elapsed, the determination result in step SC2 is “NO”, and this processing is completed.
Thus, in the beat timer processing, the clock counter CC is incremented at each timer interrupt execution timing until one bar elapses, the timer clock is accumulated, and the clock counter CC is reset to zero each time one bar elapses. It has become.

<LFOタイマ処理の動作>
音源6では一定周期毎に本処理をタイマ割込みにて実行し、割込み実行タイミングになると、図12に図示するステップSD1に進み、フラグSyncModeが「1」で、かつフラグPlayが「1」であるか、すなわち自動演奏に同期してLFO波形を発生させる拍同期モードに設定されており、かつ現在演奏中であるかどうかを判断する。
<Operation of LFO timer processing>
The sound source 6 executes this process with a timer interrupt at regular intervals. When the interrupt execution timing is reached, the process proceeds to step SD1 shown in FIG. 12, where the flag SyncMode is “1” and the flag Play is “1”. That is, it is determined whether the beat synchronization mode for generating the LFO waveform in synchronization with the automatic performance is set and the performance is currently being performed.

拍同期モードに設定されていない場合、つまり非拍同期モードである場合か、または現在演奏中でない場合は、判断結果は「NO」になり、ステップSD2に進む。ステップSD2では、レジスタRateに格納されるLFO波形の読み出し位相レートに対応した位相増分をテーブルDP[Rate]から読み出してレジスタPPに加算する。位相増分が加算されたレジスタPPの値(LFO波形の読み出し位相位置)が「1」を超えた場合には、レジスタPPから「1」を減算した値を、現在のLFO波形の読み出し位相位置としてレジスタPPにストアする。   When the beat synchronization mode is not set, that is, when the non-beat synchronization mode is set, or when the performance is not currently being performed, the determination result is “NO”, and the process proceeds to step SD2. In step SD2, the phase increment corresponding to the read phase rate of the LFO waveform stored in the register Rate is read from the table DP [Rate] and added to the register PP. When the value of the register PP to which the phase increment is added (LFO waveform read phase position) exceeds “1”, the value obtained by subtracting “1” from the register PP is used as the read phase position of the current LFO waveform. Store in register PP.

一方、自動演奏に同期してLFO波形を発生させる拍同期モードであり、かつ現在演奏中であると、上記ステップSD1の判断結果が「YES」になり、ステップSD3に進む。ステップSD3では、((CC/(96×Beat))の剰余)/(96×Beat)にて算出される値を、現在のLFO波形の読み出し位相位置としてレジスタPPにストアする。なお、上記式におけるCCは拍タイマ処理にてカウントされるクロックカウンタCCの値、BeatはLFO波形を拍同期で発生させる際の拍数であり、レジスタBeatにユーザ設定される値である。   On the other hand, if it is the beat synchronization mode in which the LFO waveform is generated in synchronization with the automatic performance and the current performance is being performed, the determination result in step SD1 is “YES”, and the process proceeds to step SD3. In step SD3, the value calculated by ((remainder of (CC / (96 × Beat))) / (96 × Beat) is stored in the register PP as the read phase position of the current LFO waveform. In the above equation, CC is the value of the clock counter CC counted by the beat timer process, Beat is the number of beats when the LFO waveform is generated in beat synchronization, and is a value set in the register Beat by the user.

次いで、ステップSD4では、位相位置PPがレジスタDutyの値より大きいか否か、つまり、位相位置PPがB区間であるかどうかを判断する。以下、位相位置PPがA区間内にある場合の処理と、B区間内にある場合の処理とに分けて動作説明を進める。   Next, in step SD4, it is determined whether or not the phase position PP is larger than the value of the register Duty, that is, whether or not the phase position PP is in the B section. Hereinafter, the description of the operation is divided into a process when the phase position PP is within the A section and a process when the phase position PP is within the B section.

a.位相位置PPがA区間内にある場合
位相位置PPがA区間内にあると、上記ステップSD4の判断結果は「NO」になり、ステップSD5に進む。ステップSD5では、フラグSが「0」であるか否かを判断する。初期設定時、フラグSは「1」なので、最初のパスであると、ここでの判断結果は「NO」になり、ステップSD6に進む。なお、次回以降のパスでは、後述するように、ステップSD6にてフラグSがゼロリセットされる為、ステップSD5の判断結果は「YES」になり、ステップSD7に進むようになる。
a. When the phase position PP is within the A section
If the phase position PP is within the A section, the determination result in step SD4 is “NO”, and the flow proceeds to step SD5. In step SD5, it is determined whether or not the flag S is “0”. Since the flag S is “1” at the time of initial setting, if it is the first pass, the determination result here is “NO”, and the process proceeds to step SD6. In the next and subsequent passes, as will be described later, the flag S is reset to zero in step SD6. Therefore, the determination result in step SD5 is “YES”, and the process proceeds to step SD7.

さて、最初のパスで実行されるステップSD6では、フラグSをゼロリセットする一方、16ビット長の乱数テーブルから読み出した乱数値をレジスタRにストアする。さらに、波形A区間においてユーザ設定された乱数最大値RMax_Aおよび乱数最小値RMin_Aに基づき、RMin_A+(R/65535)×(RMax_A−RMin_A)なる式で調整されたランダム値をレジスタRにストアした後、乱数テーブル読み出しポインタを更新する。   In step SD6 executed in the first pass, the flag S is reset to zero, and the random value read from the 16-bit random number table is stored in the register R. Further, after storing the random value adjusted by the equation Rmin_A + (R / 65535) × (RMax_A−RMin_A) in the register R based on the random number maximum value RMax_A and the random number minimum value Rmin_A set in the waveform A section, Update the random number table read pointer.

次いで、ステップSD7では、LFO波形のA区間にアサインされた波形テーブルの先頭アドレス(WT_A)、テーブルサイズ(WTS_A)、位相位置PPおよびDutyに基づき、LFO波形のA区間にアサインされた波形テーブルから位相位置PPに対応する波形値WT_A[WTS_A×PP/Duty]を読み出し、それにレジスタRのランダム値を乗算してLFO波形値vを算出する。なお、ここで言うレジスタRのランダム値とは、上記ステップSD6にて乱数最大値RMax_Aおよび乱数最小値RMin_Aに応じて調整された乱数値Rを指す。   Next, in step SD7, from the waveform table assigned to the A section of the LFO waveform based on the start address (WT_A), table size (WTS_A), phase position PP and Duty of the waveform table assigned to the A section of the LFO waveform. The waveform value WT_A [WTS_A × PP / Duty] corresponding to the phase position PP is read, and the random value of the register R is multiplied by this to calculate the LFO waveform value v. Note that the random value of the register R here refers to the random value R adjusted in accordance with the random number maximum value RMax_A and the random number minimum value Rmin_A in step SD6.

この後、ステップSD8に進み、レジスタPDにストアされたピッチ変調度、レジスタFDにストアされたフィルタ変調度およびレジスタADにストアされた音量変調度に、それぞれLFO波形値vを乗算してピッチ変調信号PM、カットオフ周波数変調信号FMおよび音量変調信号AMを発生する。ピッチ変調信号PM、カットオフ周波数変調信号FMおよび音量変調信号AMは、前述の係数乗算器64〜66の各出力に相当し、それぞれ波形発生器67、フィルタ68および増幅器69に送出して本処理を終える。   Thereafter, the process proceeds to step SD8, in which the pitch modulation degree stored in the register PD, the filter modulation degree stored in the register FD, and the volume modulation degree stored in the register AD are respectively multiplied by the LFO waveform value v to perform pitch modulation. A signal PM, a cut-off frequency modulation signal FM, and a volume modulation signal AM are generated. The pitch modulation signal PM, the cut-off frequency modulation signal FM, and the volume modulation signal AM correspond to the outputs of the coefficient multipliers 64 to 66, and are sent to the waveform generator 67, the filter 68, and the amplifier 69, respectively, for the main processing. Finish.

b.位相位置PPがB区間内にある場合
位相位置PPがB区間内にあると、上述したステップSD4の判断結果が「YES」となり、ステップSD9に進む。ステップSD9では、フラグSが「1」であるか否かを判断する。前述した波形A区間の処理を終えた時点でフラグSはゼロリセットされているので、最初のパスは判断結果が「NO」になり、ステップSD10に進む。なお、次回以降のパスでは、後述するように、ステップSD10にてフラグSが「1」にセットされる為、ステップSD9の判断結果は「YES」になり、ステップSD11に進むようになる。
b. When the phase position PP is in the B section
If the phase position PP is in the B section, the determination result in step SD4 is “YES”, and the process proceeds to step SD9. In step SD9, it is determined whether or not the flag S is “1”. Since the flag S is reset to zero when the processing of the waveform A section described above is completed, the determination result is “NO” in the first pass, and the process proceeds to step SD10. In the next and subsequent passes, as described later, since the flag S is set to “1” in step SD10, the determination result in step SD9 is “YES”, and the process proceeds to step SD11.

さて、最初のパスで実行されるステップSD10では、フラグSに「1」をセットする一方、16ビット長の乱数テーブルから読み出した乱数値をレジスタRにストアする。さらに、波形B区間においてユーザ設定された乱数最大値RMax_Bおよび乱数最小値RMin_Bに基づき、RMin_B+(R/65535)×(RMax_B−RMin_B)なる式で調整されたランダム値をレジスタRにストアした後、乱数テーブル読み出しポインタを更新する。   In step SD10 executed in the first pass, the flag S is set to “1”, and the random value read from the 16-bit random number table is stored in the register R. Further, after storing the random value adjusted by the formula Rmin_B + (R / 65535) × (RMax_B−RMin_B) in the register R based on the random number maximum value RMax_B and the random number minimum value Rmin_B set by the user in the waveform B section, Update the random number table read pointer.

次いで、ステップSD11では、LFO波形のB区間にアサインされた波形テーブルの先頭アドレス(WT_B)、テーブルサイズ(WTS_B)、位相位置PPおよびDutyに基づき、LFO波形のB区間にアサインされた波形テーブルから位相位置PPに対応する波形値WT_B[WTS_B×(PP−Duty)/(1−Duty)]を読み出し、それにレジスタRのランダム値を乗算してLFO波形値vを算出する。なお、ここで言うレジスタRのランダム値とは、上記ステップSD10にて乱数最大値RMax_Bおよび乱数最小値RMin_Bに応じて調整された乱数値Rを指す。   Next, in step SD11, from the waveform table assigned to the B section of the LFO waveform based on the top address (WT_B), table size (WTS_B), phase position PP and Duty of the waveform table assigned to the B section of the LFO waveform. The waveform value WT_B [WTS_B × (PP−Duty) / (1−Duty)] corresponding to the phase position PP is read and multiplied by the random value of the register R to calculate the LFO waveform value v. Note that the random value of the register R here refers to the random value R adjusted in accordance with the random number maximum value RMax_B and the random number minimum value RMin_B in step SD10.

この後、ステップSD8に進み、レジスタPDにストアされたピッチ変調度、レジスタFDにストアされたフィルタ変調度およびレジスタADにストアされた音量変調度に、それぞれLFO波形値vを乗算してピッチ変調信号PM、カットオフ周波数変調信号FMおよび音量変調信号AMを発生する。ピッチ変調信号PM、カットオフ周波数変調信号FMおよび音量変調信号AMは、前述の係数乗算器64〜66の各出力に相当し、それぞれ波形発生器67、フィルタ68および増幅器69に送出して本処理を終える。   Thereafter, the process proceeds to step SD8, in which the pitch modulation degree stored in the register PD, the filter modulation degree stored in the register FD, and the volume modulation degree stored in the register AD are respectively multiplied by the LFO waveform value v to perform pitch modulation. A signal PM, a cut-off frequency modulation signal FM, and a volume modulation signal AM are generated. The pitch modulation signal PM, the cut-off frequency modulation signal FM, and the volume modulation signal AM correspond to the outputs of the coefficient multipliers 64 to 66, and are sent to the waveform generator 67, the filter 68, and the amplifier 69, respectively, for the main processing. Finish.

以上説明したように、本実施の形態では、A区間およびB区間に区分けされるLFO波形の各区間毎の波形形状を決めてから、パラメータDutyにより波形一周期全体に占める波形A区間の割合を定め、さらにA区間におけるLFO波高値のランダム変化幅およびB区間におけるLFO波高値のランダム変化幅を制限して得られるLFO波形に応じて、発生楽音の音高、音色および音量を変調して効果付与するようにしたので、ある程度ユーザが意図した効果を付与しつつ、予期し得ない極端な変化の効果も付与することが出来、より表現力の高いLFO効果を奏することが可能になっている。   As described above, in this embodiment, after determining the waveform shape for each section of the LFO waveform divided into the A section and the B section, the ratio of the waveform A section to the entire waveform period is determined by the parameter Duty. Furthermore, according to the LFO waveform obtained by restricting the random change width of the LFO peak value in the A section and the random change width of the LFO peak value in the B section, the effect is obtained by modulating the pitch, tone color and volume of the generated musical sound. Since it is given, it is possible to give the effect of extreme changes that cannot be anticipated while giving the effect intended by the user to some extent, and it is possible to achieve a more expressive LFO effect. .

本発明による実施の一形態の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of one Embodiment by this invention. RAM5に格納される主要レジスタ・フラグデータの構成を示す図である。4 is a diagram showing a configuration of main register / flag data stored in a RAM 5; FIG. 音源6の構成を示すブロック図である。3 is a block diagram showing a configuration of a sound source 6. FIG. LFO波形のA区間およびB区間を説明するための波形例を示す図である。It is a figure which shows the example of a waveform for demonstrating the A section and B section of a LFO waveform. 波形番号WF_A(WF_B)に対応した波形形状を示す図である。It is a figure which shows the waveform shape corresponding to waveform number WF_A (WF_B). デューティ比60%のLFO波形の一例を示す図である。It is a figure which shows an example of a LFO waveform with a duty ratio of 60%. LFO波形生成の一例を示す図である。It is a figure which shows an example of LFO waveform generation. LFO波形生成の一例を示す図である。It is a figure which shows an example of LFO waveform generation. CPU3が実行するメインルーチンの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the main routine which CPU3 performs. CPU3が実行するスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the switch process which CPU3 performs. 音源6が実行する拍タイマ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the beat timer process which the sound source 6 performs. 音源6が実行するLFOタイマ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the LFO timer process which the sound source 6 performs.

符号の説明Explanation of symbols

1 鍵盤
2 操作部
3 CPU
4 ROM
5 RAM
6 音源
7 D/A変換器
8 サウンドシステム
10 電子楽器
61 ビートクロック発生器
62 位相発生器
63 LFO波形発生器
64〜66 係数乗算器
67 波形発生器
68 フィルタ
69 増幅器
70 ミキサ
1 keyboard 2 operation unit 3 CPU
4 ROM
5 RAM
6 sound source 7 D / A converter 8 sound system 10 electronic musical instrument 61 beat clock generator 62 phase generator 63 LFO waveform generator 64-66 coefficient multiplier 67 waveform generator 68 filter 69 amplifier 70 mixer

Claims (4)

第1および第2の波形区間毎の波形、及び当該両波形区間に占める前記第1の波形区間の割合を指定するともに、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する指定手段と、
前記指定手段により指定された前記第1および第2の波形区間毎の波形に対して前記第1および第2の波形区間毎に指定された係数を乗算するとともに、当該乗算された前記第1および第2の波形区間毎の波形を前記割合指定手段が指定された割合に応じて合成したLFO波形を発生するLFO波形発生手段と、
前記LFO波形発生手段が発生するLFO波形に応じて、発生楽音を変調して効果付与する効果付与手段と
を具備することを特徴とする低周波発振装置。
First and second waveform of each waveform segment, and the said specified percentage of the first waveform segment Then Moni occupying both waveform segment, for determining the first and second peak value of each waveform segment A specifying means for randomly specifying a coefficient within a specified change width ;
Multiplying the waveform for each of the first and second waveform sections specified by the specifying means by a coefficient specified for each of the first and second waveform sections, and the multiplied first and second waveforms LFO waveform generating means for generating an LFO waveform obtained by synthesizing the waveform for each second waveform section according to the ratio specified by the ratio specifying means ;
An effect applying means for modulating the generated musical sound according to the LFO waveform generated by the LFO waveform generating means ,
A low-frequency oscillation device comprising:
第1および第2の波形区間毎の波形を指定する波形指定手段と、
前記第1および第2の波形区間に占める前記第1の波形区間の割合を指定する割合指定手段と、
前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する変化幅指定手段と、
前記波形指定手段により指定された前記第1および第2の波形区間毎の波形を、前記割合指定手段が指定した割合に応じて合成した周期波形であって、その周期波形の波高値に対して前記変化幅指定手段が指定する前記第1および第2の波形区間毎の係数を乗算したLFO波形を発生するLFO波形発生手段と、
前記LFO波形発生手段が発生するLFO波形に応じて、発生楽音の音高、音色および音量を個別に変調して効果付与する効果付与手段と
を具備することを特徴とする低周波発振装置。
Waveform designating means for designating a waveform for each of the first and second waveform sections;
A ratio designating unit for designating a ratio of the first waveform section in the first and second waveform sections;
Change width specifying means for randomly specifying a coefficient for determining the peak value for each of the first and second waveform sections within a specified change width;
A periodic waveform obtained by synthesizing the waveforms of the first and second waveform sections specified by the waveform specifying means in accordance with the ratio specified by the ratio specifying means, and for the peak value of the periodic waveform LFO waveform generating means for generating an LFO waveform multiplied by a coefficient for each of the first and second waveform sections specified by the change width specifying means;
Effect imparting means for individually modulating the pitch, tone color and volume of the generated musical sound according to the LFO waveform generated by the LFO waveform generating means ;
A low-frequency oscillation device comprising:
第1および第2の波形区間毎の波形、及び当該両波形区間に占める前記第1の波形区間の割合を指定するともに、前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する指定ステップと、
前記指定された前記第1および第2の波形区間毎の波形に対して前記第1および第2の波形区間毎に指定された係数を乗算するとともに、当該乗算された前記第1および第2の波形区間毎の波形を前記割合指定手段が指定された割合に応じて合成したLFO波形を発生するLFO波形発生ステップと、
前記発生するLFO波形に応じて、発生楽音を変調して効果付与する効果付与ステップ
をコンピュータで実行させることを特徴とする低周波発振処理プログラム。
First and second waveform of each waveform segment, and the said specified percentage of the first waveform segment Then Moni occupying both waveform segment, for determining the first and second peak value of each waveform segment A specified step for randomly specifying a coefficient within a specified change width ; and
Multiplying the specified waveform for each of the first and second waveform sections by a coefficient specified for each of the first and second waveform sections, and the multiplied first and second waveforms An LFO waveform generation step for generating an LFO waveform obtained by synthesizing the waveform for each waveform section in accordance with the ratio specified by the ratio specifying means ;
In accordance with the generated LFO waveform, an effect applying step of modulating the generated musical sound to give an effect ;
A low-frequency oscillation processing program characterized by causing a computer to execute the program.
第1および第2の波形区間毎の波形を指定する波形指定ステップと、
前記第1および第2の波形区間に占める前記第1の波形区間の割合を指定する割合指定ステップと、
前記第1および第2の波形区間毎の波高値を決定するための係数を指定された変化幅内でランダムに指定する変化幅指定ステップと、
前記指定された前記第1および第2の波形区間毎の波形を、前記指定された割合に応じて合成した周期波形であって、その周期波形の波高値に対して前記指定された前記第1および第2の波形区間毎の係数を乗算したLFO波形を発生するLFO波形発生ステップと、
前記発生したLFO波形に応じて、発生楽音の音高、音色および音量を個別に変調して効果付与する効果付与ステップ
をコンピュータで実行させることを特徴とする低周波発振処理プログラム。
A waveform designating step for designating a waveform for each of the first and second waveform sections;
A ratio designating step of designating a ratio of the first waveform section in the first and second waveform sections;
A change width specifying step of randomly specifying a coefficient for determining the peak value for each of the first and second waveform sections within a specified change width;
The waveform of said specified first and every second waveform segment, a synthesized periodic waveform according to the ratio of the specified, the first, which is the specified relative peak value of the periodic waveform And an LFO waveform generation step for generating an LFO waveform multiplied by a coefficient for each second waveform section;
Depending on the generated LFO waveform, the effect imparting step to effectively impart pitch of generating musical tones, the tone and volume by modulating individually,
A low-frequency oscillation processing program characterized by causing a computer to execute the program.
JP2004240321A 2004-08-20 2004-08-20 Low frequency oscillation device and low frequency oscillation processing program Expired - Fee Related JP4385401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004240321A JP4385401B2 (en) 2004-08-20 2004-08-20 Low frequency oscillation device and low frequency oscillation processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004240321A JP4385401B2 (en) 2004-08-20 2004-08-20 Low frequency oscillation device and low frequency oscillation processing program

Publications (2)

Publication Number Publication Date
JP2006058595A JP2006058595A (en) 2006-03-02
JP4385401B2 true JP4385401B2 (en) 2009-12-16

Family

ID=36106108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004240321A Expired - Fee Related JP4385401B2 (en) 2004-08-20 2004-08-20 Low frequency oscillation device and low frequency oscillation processing program

Country Status (1)

Country Link
JP (1) JP4385401B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008107948A1 (en) * 2007-03-01 2008-09-12 Pioneer Corporation Information reproducing apparatus and method, and computer program
US20100027388A1 (en) * 2007-03-01 2010-02-04 Pioneer Corporation, Tokorozawa Works. Information reproducing apparatus and method, and computer program
JP6252642B1 (en) 2016-09-27 2017-12-27 カシオ計算機株式会社 Effect imparting device, effect imparting method, program, and electronic musical instrument

Also Published As

Publication number Publication date
JP2006058595A (en) 2006-03-02

Similar Documents

Publication Publication Date Title
JPH1063265A (en) Automatic playing device
JP4293712B2 (en) Audio waveform playback device
CN107871490B (en) Effect applying device, effect applying method, recording medium, and electronic musical instrument
JP4385401B2 (en) Low frequency oscillation device and low frequency oscillation processing program
JP6414164B2 (en) Automatic performance device, automatic performance method, program, and electronic musical instrument
JP5115800B2 (en) Low frequency oscillation device and low frequency oscillation processing program
JP6575585B2 (en) Effect imparting device, effect imparting method, program, and electronic musical instrument
JP3909693B2 (en) Musical sound modulation device, musical sound modulation method, and musical sound modulation program
JP3844214B2 (en) Modulation waveform generator
JP5995054B2 (en) Waveform generator, program, waveform generation method, and electronic musical instrument
JP4088947B2 (en) Music generator
JP4179243B2 (en) Waveform generator and program
JP2004271750A (en) Sound synthesizer and program
JP2018060121A (en) Musical tone reproducing apparatus, musical tone reproducing method, program, and electronic instrument
JP5909416B2 (en) Tempo sound generator and tempo sound generator
JP4479847B2 (en) Waveform generator and waveform generation processing program
JP5769080B2 (en) Sound channel assignment apparatus and program
JP4179245B2 (en) Waveform generator and program
JP3920693B2 (en) Music generator
JPH086563A (en) Musical sound generating device
JP4232203B2 (en) Waveform generator and waveform generation processing program
JP3871119B2 (en) Modulation waveform generator
JP2009042785A (en) Waveform generator and waveform generation processing program
JP5246473B2 (en) Musical sound generator and musical sound generation processing program
JP2004144865A (en) Musical sound generater and program for musical sound generation processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080819

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080827

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090920

R150 Certificate of patent or registration of utility model

Ref document number: 4385401

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20121009

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121009

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131009

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees