JP4046589B2 - Music generator - Google Patents
Music generator Download PDFInfo
- Publication number
- JP4046589B2 JP4046589B2 JP2002302402A JP2002302402A JP4046589B2 JP 4046589 B2 JP4046589 B2 JP 4046589B2 JP 2002302402 A JP2002302402 A JP 2002302402A JP 2002302402 A JP2002302402 A JP 2002302402A JP 4046589 B2 JP4046589 B2 JP 4046589B2
- Authority
- JP
- Japan
- Prior art keywords
- waveform
- data
- musical sound
- tone
- waveform data
- 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
Links
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は楽音発生装置に関し、特に、高次の倍音成分のみならず1オクターブ下の倍音成分をも生成することができる楽音発生装置に関するものである。
【0002】
【従来の技術】
従来の楽音発生装置は、一周期の波形データに対して、その波形が矩形波の場合、デューティ比を変えることにより倍音成分を変化させていた。また、波形データに関しては、その読み出し速度を変化させることにより、倍音成分を変化させていた(位相変調)。
【0003】
【特許文献1】
特開平8−44365号公報。
【0004】
【発明が解決しようとする課題】
しかしながら、両者とも基本周波数以上の周波数成分を変化させるだけで、基本周波数以下の成分を変化させることはできない。よって、1オクターブ下の成分が必要なときには、新たにその周期の波形データを生成し混合しなければならいないという問題点があった。
【0005】
本発明は上述した問題点を解決するためになされたものであり、高次の倍音成分のみならず1オクターブ下の倍音成分をも生成することができる楽音発生装置を提供することを目的としている。
【0006】
【課題を解決するための手段】
この目的を達成するために請求項1記載の楽音発生装置は、波形データを記憶する波形データ記憶手段と、その波形データ記憶手段に記憶される波形データに基づいて楽音データを生成する楽音データ生成手段と、その楽音データ生成手段により生成された楽音データを楽音として出力する楽音出力手段とを備えており、更に、複数の波形データの合計周期を一定にしつつ、各波形データの周期の前記合計周期に対する割合を設定する割合設定手段を備え、前記楽音データ生成手段は、その割合設定手段により設定された割合に応じて前記複数の各波形データの1周期分を変形して連接することにより、前記合計周期を周期とする楽音データを生成するものであることを特徴としている。
【0007】
請求項1記載の楽音発生装置によれば、まず、割合設定手段によって、複数の波形データの合計周期を一定にしつつ、各波形データの周期の合計周期に対する割合が設定される。そして、その設定された割合に応じて、楽音データ生成手段により、複数の各波形デー タの1周期分を変形して連接することにより、合計周期を周期とする楽音データが生成される。そして、その生成された楽音データが、楽音出力手段によって楽音として出力される。
【0008】
請求項2記載の楽音発生装置は、請求項1記載の楽音発生装置において、前記波形データ記憶手段は複数の異なる波形データを記憶すると共に、前記合計周期を周期とする楽音データを構成する複数の波形データは、少なくとも2種以上の異なる波形データで構成されることを特徴としている。
【0009】
【発明の効果】
請求項1記載の楽音発生装置によれば、複数の波形データの合計周期を一定にしつつ、その合計周期内において各波形データの周期の合計周期に対する割合を設定し、その設定した割合に応じて、複数の各波形データの1周期分を変形して連接することにより、合計周期を周期とする楽音データを生成するので、波形データの周期の割合を変更することにより、高次の倍音成分のみならず1オクターブ下の倍音成分をも生成することができる。よって、余分な波形生成処理を行うことなく、倍音成分を様々に変更できるという効果がある。
【0010】
請求項2記載の楽音発生装置によれば、請求項1記載の楽音発生装置の奏する効果に加え、更に、合計周期を周期とする楽音データを構成する複数の波形データは、少なくとも2種以上の異なる波形データで構成されるので、倍音成分のみならず、音色の様々な変更をも行うことができるという効果がある。
【0011】
【発明の実施の形態】
以下、本発明の好ましい実施例について、添付図面を参照して説明する。図1は、本発明の一実施例である楽音発生装置1の電気的構成を示したブロック図である。本実施例の楽音発生装置1は、2波を連接した1組の波形データに対して、前半の1波(図3の前半波形39)と後半の1波(図3の後半波形40)とのデューティ比を変えることにより、倍音成分、特に1/2倍音の変更を自在にしたものである。
【0012】
楽音発生装置1は、演算装置であるCPU2と、そのCPU2により実行される各種の制御プログラムや固定値データを記憶したROM3と、そのROM3内に記憶される制御プログラムの実行に当たって各種のデータ等を一時的に記憶するためのメモリであるRAM4とを備えている。CPU2、ROM3及びRAM4は、アドレスバスおよびデータバスにより構成されるバスライン5によって互いに接続されており、このバスライン5は、入出力ポート6を介して、各種のI/O装置と接続されている。
【0013】
入出力ポート6には、複数の操作子群7と液晶表示装置(以下「LCD」と称す)8とが配設された操作パネル9と、楽音の発生開始や停止などの指示を行う複数の鍵を備えた鍵盤10と、楽音を発生する音源(以下「DSP(Digital Signal Processor)」と称す)11とが、それぞれ接続されている。また、DSP11には、DSP11から出力される楽音のデジタル信号をアナログ信号に変換するD/Aコンバータ12が接続され、そのD/Aコンバータ12には、D/Aコンバータ12によって変換されたアナログ信号を増幅するアンプ13が接続され、更にそのアンプ13には、増幅されたアナログ信号を音出力するスピーカ14が接続されている。
【0014】
図2は、楽音発生装置1の操作パネル9の正面図である。操作パネル9には、操作子群7を構成する10個の選択スイッチ71〜80及び2個の回転つまみ81,82と、LCD8とが設けられている。選択スイッチ71〜80は、2波の波形データのうち、前半波形39を設定する5個の選択スイッチ71〜75と、後半波形40を設定する5個の選択スイッチ76〜80とで構成されている。これらの選択スイッチ71〜80を操作することにより、鋸歯波(図4(a)参照)と、矩形波(図4(b)参照)と、サイン波(SIN波)(図4(c)参照)と、三角波(図4(d)参照)と、傾斜波(図4(e)参照)とを、前半波形39および後半波形40として、それぞれ個別に設定することができる。
【0015】
回転つまみ81,82は、デューティつまみ81と、トーンつまみ82とで構成されている。デューティつまみ81は、前半波形39と後半波形40とを連接し、その連接した2波の合計周期に占める前半波形39の周期割合(以下「Duty値」と称す)を設定するつまみであり、その前半波形39の周期割合(Duty値37)を5%〜95%の範囲で設定可能にされている。即ち、図3に示すように、2波の合計周期Dに対する前半1波の周期Bの割合を調整するつまみである。デューティつまみ81によりDuty値37を50%に設定した場合には、前半波形39と後半波形40とは同一周期となる。
【0016】
トーンつまみ82は、前半波形39および後半波形40のそれぞれについて、各波形の前半部分の割合(以下「Tone値」と称す)を設定するつまみであり、その前半部分の割合(Tone値38)を5%〜95%の範囲で設定可能にされている。即ち、図3に示すように、前半波形39については、全体部分Bに対する前半部分Aの割合を、後半波形40については、全体部分(D−B)に対する前半部分(C−B)の割合を設定するつまみである。なお、本実施例のトーンつまみ82は、前半波形39と後半波形40とのTone値38を同一に設定するが、このTone値38を前半波形39と後半波形40とでそれぞれ個別に設定できるようにしても良い。
【0017】
操作パネル9に設けられるLCD8には、これら選択スイッチ71〜80や回転つまみ81,82の操作状態が表示される。図2では、選択スイッチ75と79とが押下された結果、前半波形39として傾斜波が、後半波形40として三角波がそれぞれ設定され、また、デューティつまみ81が45%の位置(即ちDuty値が45%)に、トーンつまみ82が50%の位置(即ちTone値が50%)に、それぞれ設定された状態を図示している。
【0018】
図3は、2波で構成される波形データの波形を示した図であり、図2の操作パネル9の設定状態に対応したものである。即ち、図3では、前半波形39として傾斜波(図4(e)参照)が、後半波形40として三角波(図4(d)参照)が、それぞれ選択されると共に、Duty値が45%に、Tone値が50%に設定された状態を図示している。
【0019】
ここで、変数A〜Dについて説明する。変数Dは、前半波形39及び後半波形40を合わせた2周期分の長さ(単位は、サンプリング周期)であり、「D=44100/発音周波数/2」で表される。なお、「44100」は、DSP11により生成される楽音のサンプリング周波数であり、サンプリング周期の逆数である。波形生成処理は1/44100秒毎に実行される。また、変数Bは、前半1波(前半波形39)長さであり、「B=D×Duty値」で表される。変数Aは、前半1波(前半波形39)の前半部分の長さであり、「A=B×Tone値」で表される。更に、変数Cは、後半1波(後半波形40)の前半部分の長さであり、「C=B+(D−B)×Tone値」で表される。
【0020】
また、図3中の計算式f(t)、g(t)は、図4(a)〜(e)に示す各波形の計算式のα,β,γに0,A,Bをそれぞれ代入して前半波形39の計算式としたものであり、同様に、計算式h(t)、i(t)は、図4(a)〜(e)に示す各波形の計算式のα,β,γにB,C,Dをそれぞれ代入して後半波形40の計算式としたものである。横軸をt、縦軸をyとすると、前半波形39の計算式は、その前半部分がy=f(t)で、後半部分がy=g(t)で表され、また、後半波形40の計算式は、その前半部分がy=h(t)で、後半部分がy=i(t)で、それぞれ表される。また、tは、サンプリング時間であり、1サンプリング周期毎に1/Dだけ増加する値である。ここで、サンプリング時間tがDを超えた場合には、t=0とせず、tからDを減算したものがtとされる。これは、t=Dとならない場合に、その端数を削除せずに残すためである。なお、図4(a)〜(e)に示す各波形の計算式は、ROM3内に記憶されており、選択スイッチ71〜80の押下に応じて読み出され、DSP11へ出力される。
【0021】
図5は、DSP11の機能ブロック図である。DSP11は、主に、波形生成制御部21と、波形生成部22と、音量制御部23と、波形生成数式記憶部24とを備えている。波形生成制御部21には、鍵盤10に設けられる各鍵に対応した発音周波数35と、押鍵速度33に対応した音量36とがそれぞれ記憶されている。また、波形生成部22には、前述した操作パネル9のデューティつまみ81で設定されたDuty値37と、トーンつまみ82で設定されたTone値38とが、CPU2から入出力ポート6を介してそれぞれ入力される。同様に、波形生成数式記憶部24には、選択スイッチ71〜80で選択された前半波形39と後半波形80との生成式(計算式)が、CPU2によってROM3から読み出され入出力ポート6を介してそれぞれ入力される。なお、前半波形39については、その前半部分が生成式「y=f(t)」として、後半部分が生成式「y=g(t)」として記憶され、また、後半波形40については、前半部分が生成式「y=h(t)」として、後半部分が生成式「y=i(t)」として、この波形生成数式記憶部24にそれぞれ記憶される。
【0022】
次に、この機能ブロック図を参照してDSP11の動作を説明する。鍵盤10のいずれかの鍵が押下されると、発音開始指示31と、押下された鍵盤10の鍵番号32と、鍵盤10の押鍵速度33とが、それぞれCPU2から波形生成制御部21へ出力される。波形生成制御部21は、発音開始指示31を受けると、押下された鍵盤10の鍵番号32に応じた発音周波数35を波形生成部22へ出力すると共に、その発音周波数35で発音するように、波形生成部22をサンプリング周期(本実施例では、1/44100秒)毎に呼び出して、図6に示す波形生成処理を実行させる。また、波形生成制御部21は、かかる波形生成部22への指示と共に、鍵盤10の押鍵速度33に応じた音量36を音量制御部23へ指示する。
【0023】
波形生成部22は、波形生成制御部21から発音周波数35と共に波形生成処理の実行指示を受けると、Duty値37、Tone値38および、波形生成数式記憶部24に記憶される前半波形39又は後半波形40の計算式を参照して、波形生成処理を実行し、そのタイミングにおける楽音信号41を音量制御部23へ出力する。音量制御部23は、かかる波形生成部22から出力された楽音信号41を、波形生成制御部21から指示された音量36に変換して、これを楽音データ42とし、次段のD/Aコンバータ12へ出力する。これにより、スピーカ14から楽音の出力が開始される。
【0024】
一方、鍵の押下が解除されると、CPU2から波形生成制御部21へ発音停止指示34が出力される。波形生成制御部21は、かかる発音停止指示34を受けると、波形生成部22における波形生成処理の呼び出しを止め、音量制御部23に音量「0」を指示する。これにより、DSP11からの楽音データ42の出力が停止し、スピーカ14からの楽音出力が終了する。
【0025】
次に、図6を参照して、DSP11の波形生成部22で実行される波形生成処理を説明する。図6は、1/44100秒毎に実行される波形生成処理を示したフローチャートである。この波形生成処理では、サンプリング時間tの値に基づいて、その時点における楽音信号41が算出されると共に、サンプリング時間tの値が更新される。
【0026】
波形生成処理では、まず、変数D,B,A,Cの各値を前述の式より求める。即ち、2周期分の長さである変数Dは、D=44100/(発音周波数/2)で求め(S1)、前半波形39の長さである変数Bは、B=D×Duty値で求め(S2)、前半波形39の前半部分の長さである変数Aは、A=B×Tone値で求め(S3)、更に、後半波形40の前半部分の長さである変数Cは、C=B+(D−B)×Tone値で求める(S4)。そして、前半波形39の楽音信号41を算出するべく、変数αに0を、変数βに変数Aを、変数γに変数Bをそれぞれ代入する(S5)。
【0027】
次に、サンプリング時間tが、t<変数Aであれば(S6:Yes)、前半波形39の前半部分の波形であるので、y=f(t)の計算式に基づいて、そのサンプリング時間tにおける楽音信号41を算出する(S7)。また、サンプリング時間tが、変数A≦t<変数Bであれば(S6:No,S8:Yes)、前半波形39の後半部分の波形であるので、y=g(t)の計算式に基づいて、そのサンプリング時間tにおける楽音信号41を算出する(S9)。
【0028】
サンプリング時間tが、変数B≦tであれば(S8:No)、後半波形40の楽音信号41を算出するべく、変数αに変数Bを、変数βに変数Cを、変数γに変数Dをそれぞれ代入する(S10)。そして、サンプリング時間tが、変数B≦t<変数Cであれば(S11:Yes)、後半波形40の前半部分の波形であるので、y=h(t)の計算式に基づいて、そのサンプリング時間tにおける楽音信号41を算出する(S12)。また、サンプリング時間tが、変数C≦tであれば(S11:No)、後半波形40の後半部分の波形であるので、y=i(t)の計算式に基づいて、そのサンプリング時間tにおける楽音信号41を算出する(S13)。
【0029】
楽音信号41の算出後は、サンプリング時間tの更新を行う。即ち、サンプリング時間tに1/Dの時間を加算し(S14)、加算後のサンプリング時間tが、変数D≦tでなければ(S15:No)、前半波形39及び後半波形40で構成される一連の波形の出力途中なので、S14で更新されたtの値をそのままにして、波形生成処理を終了する。一方、変数D≦tであれば(S15:Yes)、前半波形39及び後半波形40で構成される一連の波形の出力が終了したので、かかる波形を新たに出力するべく、サンプリング時間tから変数Dの時間を減算して、新たなサンプリング時間tとし(S16)、この形生成処理を終了する。波形生成処理で算出された楽音信号41は、即座に音量制御部23へ出力され、波形生成制御部21から出力される音量36に応じて楽音データ42に変換され、D/Aコンバータ12へ出力されて、アンプ13で増幅された後に、スピーカ14から楽音として出力される。
【0030】
以上説明したように、本実施例の楽音発生装置1によれば、前半波形39と後半波形40との合計周期Dを基本として(一定にしつつ)、その合計周期D内においてDuty値37を設定し、そのDuty値37に応じて波形データを変形して楽音信号41(更には音量36に応じて楽音データ42)を生成するので、Duty値37を変更することにより、高次の倍音成分のみならず1オクターブ下の倍音成分をも生成でき、倍音成分を様々に変更することができる。また、前半波形39と後半波形40とを同種または異種の波形データとして設定できると共に、前半波形39と後半波形40とのそれぞれについて、前半部分の割合(Tone値38)を設定できるので、これらの設定により、音色の様々な変更をも行うことができる。
【0031】
次に、図7を参照して第2実施例を説明する。前記した第1実施例の楽音発生装置1は、前半波形39と後半波形40との2波を連接して1組として、そのデューティ比(Duty値37)を変えることにより、倍音成分、特に1/2倍音の変更を自在にしたものである。これに対し、第2実施例の楽音発生装置は、3波を連接して1組として倍音成分の変更を自在にしたものである。以下、前記した第1実施例と同一の部分には同一の符号を付してその説明は省略する。
【0032】
第2実施例では、Duty値37とTone値38とがそれぞれ1ずつなので、Duty値37により前半の2波51,52と後半の1波53との割合を定め、前半の2波51,52の割合は50%ずつとしている。また、Tone値38により、3波51〜53のそれぞれについて前半部分の割合を定めている。
【0033】
よって、第2実施例の変数A〜Fについて説明すると、変数Fは、3波51〜53を合わせた3周期分の長さ(単位は、サンプリング周期)であり、「F=44100/発音周波数/3」で表される。なお、前記した第1実施例と同様に、「44100」は、DSP11により生成される楽音のサンプリング周波数であり、サンプリング周期の逆数である。また、変数Dは、前半の2波51,52の合計周期であり、「D=F×Duty値」で表される。変数Bは、第1波51の周期であり、「B=D/2」で表される。変数Aは、第1波51の前半部分の長さであり、「A=B×Tone値」で表される。変数Cは、第2波52の前半部分の長さであり、「C=B+(D−B)×Tone値」で表される。更に、変数Eは、第3波53の前半部分の長さであり、「E=D+(F−D)×Tone値」で表される。
【0034】
また、図7中の計算式f(t)、g(t)は、図4(a)〜(e)に示す各波形の計算式のα,β,γに0,A,Bをそれぞれ代入して第1波51の計算式としたものであり、同様に、計算式h(t)、i(t)は、図4(a)〜(e)に示す各波形の計算式のα,β,γにB,C,Dをそれぞれ代入して第2波52の計算式としたものである。更に、計算式j(t)、k(t)は、図4(a)〜(e)に示す各波形の計算式のα,β,γにD,E,Fをそれぞれ代入して第3波53の計算式としたものである。
【0035】
横軸をt、縦軸をyとすると、第1波51の計算式は、その前半部分がy=f(t)で、後半部分がy=g(t)で表され、また、第2波52の計算式は、その前半部分がy=h(t)で、後半部分がy=i(t)で表され、更に第3波53の計算式は、前半部分がy=j(t)で、後半部分がy=k(t)で、それぞれ表される。また、tは、サンプリング時間であり、1サンプリング周期毎に1/Fだけ増加する値である。ここで、サンプリング時間tがFを超えた場合には、t=0とせず、tからFを減算したものがtとされる。これは、t=Fとならない場合に、その端数を削除せずに残すためである。
【0036】
この第2実施例の楽音発生装置によれば、3波51〜53の合計周期Fを基本として(一定にしつつ)、その合計周期F内においてDuty値37を設定し、そのDuty値37に応じて波形データを変形して楽音信号41(更には音量36に応じて楽音データ42)を生成するので、Duty値37を変更することにより、高次の倍音成分のみならず1オクターブ下の倍音成分をも生成でき、倍音成分を様々に変更することができる。また、3波51〜53を同種または異種の波形データとして設定できると共に、3波51〜53のそれぞれについて、前半部分の割合(Tone値38)を設定できるので、これらの設定により、音色の様々な変更をも行うことができる。
【0037】
なお、Duty値を2以上設定可能に構成し、3波51〜53の割合をそれぞれ個別に設定できるようにしても良い。同様に、Tone値を2又は3以上設定可能に構成して、3波51〜53の前半部分の割合をそれぞれ個別に設定できるようにしても良い。
【0038】
以上、実施例に基づき本発明を説明したが、本発明は上記実施例に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変形が可能であることは容易に推察できるものである。
【0039】
例えば、上記各実施例では、2波又は3波を1組にして、そのデューティ比(Duty値37)を変えることにより、倍音成分の変更を自在にしたものであるが、4波以上の波形データを1組にして、そのデューティ比(Duty値37)を変えるようにしても良い。かかる場合には、各波形データ毎にDuty値やTone値を個別に設定可能に構成しても良い。
【図面の簡単な説明】
【図1】 本発明の一実施例である楽音発生装置の電気的構成を示したブロック図である。
【図2】 楽音発生装置の操作パネルの正面図である。
【図3】 2波で1組の波形データの波形を示した図である。
【図4】 (a)は鋸歯波について、(b)は矩形波について、(c)はサイン波(SIN波)について、(d)は三角波について、(e)は傾斜波について、それぞれの波形とその計算式とを示した図である。
【図5】 DSPの機能ブロック図である。
【図6】 DSPの波形生成部で実行される波形生成処理を示したフローチャートである。
【図7】 第2実施例の楽音発生装置から出力される3波で1組の波形データの波形を示した図である。
【符号の説明】
1 楽音発生装置
3 ROM(波形データ記憶手段)
11 音源(DSP)(楽音データ生成手段)
12 D/Aコンバータ(楽音出力手段の一部)
13 アンプ(楽音出力手段の一部)
14 スピーカ(楽音出力手段の一部)
21 波形生成制御部
22 波形生成部
23 音量制御部
24 波形生成数式記憶部
37 Duty値
38 Tone値
39 前半波形
40 後半波形
81 デューティつまみ(割合設定手段)
82 トーンつまみ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a musical sound generator, and more particularly to a musical sound generator capable of generating not only a higher harmonic component but also a harmonic component one octave below.
[0002]
[Prior art]
In the conventional musical sound generator, when the waveform is a rectangular wave with respect to one cycle of waveform data, the harmonic component is changed by changing the duty ratio. As for the waveform data, the harmonic component is changed by changing the reading speed (phase modulation).
[0003]
[Patent Document 1]
JP-A-8-44365.
[0004]
[Problems to be solved by the invention]
However, in both cases, it is not possible to change the component below the fundamental frequency only by changing the frequency component above the fundamental frequency. Therefore, when a component lower than one octave is required, there is a problem that a new waveform data of that cycle must be generated and mixed.
[0005]
The present invention has been made to solve the above-described problems, and an object thereof is to provide a musical sound generating apparatus capable of generating not only a high-order harmonic component but also a harmonic component one octave lower. .
[0006]
[Means for Solving the Problems]
In order to achieve this object, a musical tone generator according to
[0007]
According to the musical tone generating apparatus of the first aspect, first, the ratio setting means sets the ratio of the period of each waveform data to the total period while keeping the total period of the plurality of waveform data constant . Then, according to the set ratio, the musical sound data generating means, by connecting by modifying the one period of each of the plurality of waveform data, music data having a period of total cycle is generated. The generated tone data is output as a tone by the tone output means.
[0008]
The musical tone generator according to
[0009]
【The invention's effect】
According to the musical sound generating device of
[0010]
According to the musical sound generating device according to
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram showing an electrical configuration of a
[0012]
The musical
[0013]
The input /
[0014]
FIG. 2 is a front view of the
[0015]
The rotary knobs 81 and 82 include a
[0016]
The
[0017]
On the
[0018]
FIG. 3 is a diagram showing the waveform of the waveform data composed of two waves, and corresponds to the setting state of the
[0019]
Here, the variables A to D will be described. The variable D is a length corresponding to two periods (a unit is a sampling period) including the
[0020]
Also, in the calculation formulas f (t) and g (t) in FIG. 3, 0, A, and B are substituted for α, β, and γ in the calculation formulas of the waveforms shown in FIGS. In the same way, the calculation formulas h (t) and i (t) are α, β of the calculation formulas of the waveforms shown in FIGS. , Γ is substituted for B, C, and D, respectively, and the calculation formula of the
[0021]
FIG. 5 is a functional block diagram of the
[0022]
Next, the operation of the
[0023]
When the
[0024]
On the other hand, when the key is released, the
[0025]
Next, with reference to FIG. 6, the waveform generation process executed by the
[0026]
In the waveform generation process, first, each value of the variables D, B, A, and C is obtained from the above formula. That is, the variable D, which is the length of two cycles, is obtained by D = 44100 / (sound generation frequency / 2) (S1), and the variable B, which is the length of the
[0027]
Next, if the sampling time t is t <variable A (S6: Yes), the waveform is the first half of the
[0028]
If the sampling time t is variable B ≦ t (S8: No), the variable B is set as the variable α, the variable C is set as the variable β, and the variable D is set as the variable γ in order to calculate the musical sound signal 41 of the
[0029]
After the music signal 41 is calculated, the sampling time t is updated. That is, 1 / D time is added to the sampling time t (S14), and if the added sampling time t is not the variable D ≦ t (S15: No), the
[0030]
As described above, according to the
[0031]
Next, a second embodiment will be described with reference to FIG. Musical
[0032]
In the second embodiment, since the
[0033]
Therefore, the variables A to F of the second embodiment will be described. The variable F is a length corresponding to three periods including the three
[0034]
Further, in the calculation formulas f (t) and g (t) in FIG. 7, 0, A, and B are substituted for α, β, and γ in the calculation formulas of the waveforms shown in FIGS. Similarly, the calculation formulas h (t) and i (t) are α, which are the calculation formulas of the waveforms shown in FIGS. 4 (a) to 4 (e). The formula for calculating the
[0035]
Assuming that the horizontal axis is t and the vertical axis is y, the calculation formula of the
[0036]
According to the musical sound generating apparatus of the second embodiment, the
[0037]
It should be noted that the duty value may be set to two or more, and the ratio of the three
[0038]
The present invention has been described based on the embodiments. However, the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. It can be guessed.
[0039]
For example, in each of the embodiments described above, two or three waves are combined into one set, and the duty ratio (Duty value 37) is changed to freely change the harmonic component. The data may be set as one set and the duty ratio (Duty value 37) may be changed. In such a case, the Duty value and Tone value may be individually set for each waveform data.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an electrical configuration of a musical sound generator according to an embodiment of the present invention.
FIG. 2 is a front view of an operation panel of the musical sound generating device.
FIG. 3 is a diagram showing a waveform of one set of waveform data with two waves.
4A is a sawtooth wave, FIG. 4B is a rectangular wave, FIG. 4C is a sine wave (SIN wave), FIG. 4D is a triangular wave, and FIG. 4E is a slope wave. And a calculation formula thereof.
FIG. 5 is a functional block diagram of a DSP.
FIG. 6 is a flowchart showing a waveform generation process executed by a waveform generation unit of a DSP.
FIG. 7 is a diagram showing a waveform of a set of three waveform data output from the musical sound generator of the second embodiment.
[Explanation of symbols]
1
11 Sound source (DSP) (musical sound data generation means)
12 D / A converter (part of musical sound output means)
13 Amplifier (part of musical sound output means)
14 Speaker (part of musical sound output means)
21 Waveform
82 Tone knob
Claims (2)
複数の波形データの合計周期を一定にしつつ、各波形データの周期の前記合計周期に対する割合を設定する割合設定手段を備え、
前記楽音データ生成手段は、その割合設定手段により設定された割合に応じて前記複数の各波形データの1周期分を変形して連接することにより、前記合計周期を周期とする楽音データを生成するものであることを特徴とする楽音発生装置。Waveform data storage means for storing waveform data, musical sound data generation means for generating musical sound data based on the waveform data stored in the waveform data storage means, and musical sound data generated by the musical sound data generation means as musical sounds In a musical sound generator having a musical sound output means for outputting,
While the total period of the plurality of waveform data to be constant, it includes a ratio setting means for setting the ratio of the total period of the cycle of the waveform data,
The musical tone data generating means generates musical tone data having the total period as a period by transforming and connecting one period of each of the plurality of waveform data according to the ratio set by the ratio setting means. A musical sound generator characterized by being a thing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002302402A JP4046589B2 (en) | 2002-10-17 | 2002-10-17 | Music generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002302402A JP4046589B2 (en) | 2002-10-17 | 2002-10-17 | Music generator |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004138751A JP2004138751A (en) | 2004-05-13 |
JP4046589B2 true JP4046589B2 (en) | 2008-02-13 |
Family
ID=32450469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002302402A Expired - Fee Related JP4046589B2 (en) | 2002-10-17 | 2002-10-17 | Music generator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4046589B2 (en) |
-
2002
- 2002-10-17 JP JP2002302402A patent/JP4046589B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004138751A (en) | 2004-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4046589B2 (en) | Music generator | |
JPS5925235B2 (en) | electronic musical instruments | |
JP3322131B2 (en) | Waveform processing equipment and sound source | |
JPH1115473A (en) | Musical sound synthesizer | |
JPH086563A (en) | Musical sound generating device | |
JP3357498B2 (en) | Electronic musical instruments using digital filters | |
JPS6024960B2 (en) | Musical sound synthesis method | |
JP3433762B2 (en) | Electronic musical instrument sound generator | |
JP3095323B2 (en) | Electronic musical instrument | |
JP6665541B2 (en) | Electroacoustic device | |
JP3556423B2 (en) | A tone control device for electronic musical instruments using a harmonic synthesis type sound source. | |
JP2003295861A (en) | Effector | |
JP3064560B2 (en) | Music synthesizer | |
JP2537986Y2 (en) | Tone generator | |
JP2532231Y2 (en) | Electronic musical instrument with touch response function | |
JP2001175264A (en) | Musical sound signal synthesizer | |
JP3617921B2 (en) | Electronic musical instrument effect imparting device | |
JPH01214899A (en) | Electronic musical instrument with portamento function | |
JP2888844B2 (en) | Music signal generator | |
JPH07295572A (en) | Sound source device of electronic musical instrument | |
JPH07295569A (en) | Interpolation device of electronic musical instrument | |
JPH09120281A (en) | Effect device | |
JP2007272020A (en) | Musical sound generator | |
JPH10133659A (en) | Digital signal processor | |
JP2000322065A (en) | Electronic musical instrument |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051005 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20061109 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070704 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070717 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070907 |
|
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: 20071120 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071120 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101130 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111130 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121130 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131130 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |