JP2014134602A - Electronic string instrument, musical tone generation method, and program - Google Patents
Electronic string instrument, musical tone generation method, and program Download PDFInfo
- Publication number
- JP2014134602A JP2014134602A JP2013001421A JP2013001421A JP2014134602A JP 2014134602 A JP2014134602 A JP 2014134602A JP 2013001421 A JP2013001421 A JP 2013001421A JP 2013001421 A JP2013001421 A JP 2013001421A JP 2014134602 A JP2014134602 A JP 2014134602A
- Authority
- JP
- Japan
- Prior art keywords
- string
- pitch
- waveform
- cpu
- detecting
- 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
Links
Images
Abstract
Description
本発明は、電子弦楽器、楽音生成方法及びプログラムに関する。 The present invention relates to an electronic stringed instrument, a musical sound generation method, and a program.
従来、マスター側およびスレーブ側の2系統のオシレータを備え、スレーブオシレータの波形発生開始タイミングを、マスターオシレータの波形発生開始タイミングに強制的に同期させる、いわゆるオシレータ同期型の波形発生装置が知られている。この種の波形発生装置では、例えばスレーブ波形出力のピッチを一定にして、マスター波形出力のピッチのみを変化させると、スレーブ波形出力の波形形状が変形され、これによりピッチ変化と音色変化とが同時に得られる独特な音響効果(オシレータシンクロナイズ効果)を備えた波形を生成し得るようになっており、この種の装置については例えば特許文献1に開示されている。 2. Description of the Related Art Conventionally, there is known a so-called oscillator-synchronized waveform generator that has two systems of oscillators on the master side and slave side and forcibly synchronizes the waveform generation start timing of the slave oscillator with the waveform generation start timing of the master oscillator. Yes. In this type of waveform generator, for example, if the pitch of the slave waveform output is made constant and only the pitch of the master waveform output is changed, the waveform shape of the slave waveform output is deformed, thereby causing the pitch change and the timbre change simultaneously. A waveform having a unique acoustic effect (oscillator synchronization effect) obtained can be generated, and this type of device is disclosed in, for example, Patent Document 1.
ところで、一般的な波形データ読み出し方式の音源では、複数チャンネルのオシレータ(波形発生装置)を搭載していても、その内の任意の2組のオシレータをマスターオシレータとスレーブオシレータとに割り当て、スレーブオシレータが発生する波形の先頭をマスターオシレータの波形読み出し周期に強制的に同期させようとすると、ハードウェア構成が非常に複雑になり製品コスト高を招致してしまう。つまり、換言すれば、製品コスト高を招致せずに波形データ読み出し方式でオシレータシンクロナイズ効果を具現することが出来ないという問題がある。 By the way, even if a general waveform data readout type sound source is equipped with a multi-channel oscillator (waveform generator), any two sets of oscillators are assigned to a master oscillator and a slave oscillator, and a slave oscillator is provided. If it is attempted to forcibly synchronize the top of the waveform in which the error occurs with the waveform read cycle of the master oscillator, the hardware configuration becomes very complicated and the product cost increases. In other words, there is a problem that the oscillator synchronization effect cannot be realized by the waveform data reading method without incurring high product cost.
本発明は、このような事情に鑑みてなされたもので、製品コスト高を招致することなく波形データ読み出し方式でオシレータシンクロナイズ効果を具現することを目的とする。 The present invention has been made in view of such circumstances, and an object thereof is to realize an oscillator synchronization effect by a waveform data reading method without incurring high product costs.
上記目的を達成するため、本発明の一態様の電子弦楽器は、
複数のフレットが設けられた指板部上に張設された複数の弦と、
前記複数のフレットのいずれかの位置において、複数の弦のいずれかが押弦されたことを検出する押弦検出手段と、
前記複数の弦のいずれかが弾弦されたことを検出する弾弦検出手段と、
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定するピッチ決定手段と、
前記弾弦検出手段による弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記ピッチ決定手段にて決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成する楽音生成手段と、
前記弾弦検出手段によって弾弦の検出された弦の振動ピッチを検出するピッチ検出手段と、
前記楽音生成手段にて用いられる前記ピッチを、前記ピッチ検出手段により検出された振動ピッチに基づいて補正する補正手段と、
を有する。
In order to achieve the above object, an electronic stringed musical instrument according to one aspect of the present invention is provided.
A plurality of strings stretched on a fingerboard portion provided with a plurality of frets;
A string detection means for detecting that any of the plurality of strings is pressed at any position of the plurality of frets;
String detection means for detecting that one of the plurality of strings has been stringed;
Pitch determining means for determining a pitch based on a string in which the string is detected and a fret at a position where the string is pressed by the string detecting means;
In response to the detection of the string by the string detecting means, an operation of repeatedly reading out one period of the master waveform and the slave waveform having different periods at a speed corresponding to the pitch determined by the pitch determining means is started. And a musical tone generating means for generating a musical tone of a waveform obtained by reading the slave waveform repeated readout start timing in synchronization with the repeated readout start timing of the master waveform;
Pitch detection means for detecting the vibration pitch of the string detected by the string detection means;
Correction means for correcting the pitch used in the musical sound generation means based on the vibration pitch detected by the pitch detection means;
Have
本発明によれば、製品コスト高を招致することなく波形データ読み出し方式でオシレータシンクロナイズ効果を具現することができる。 According to the present invention, the oscillator synchronization effect can be realized by the waveform data reading method without incurring high product costs.
以下、本発明の実施形態について、図面を用いて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[電子弦楽器1の概要]
初めに、図1を参照して、本発明の一実施形態としての電子弦楽器1の概要について説明する。
[Outline of electronic stringed instrument 1]
First, an outline of an electronic stringed musical instrument 1 as an embodiment of the present invention will be described with reference to FIG.
図1は、電子弦楽器1の外観を示す正面図である。図1に示す如く、電子弦楽器1は、本体10と、ネック20と、ヘッド30とに大別される。
FIG. 1 is a front view showing an external appearance of the electronic stringed instrument 1. As shown in FIG. 1, the electronic stringed instrument 1 is roughly divided into a
ヘッド30には、スチール製の弦22の一端が巻かれる糸巻き31が取り付けられており、ネック20は、指板21に複数のフレット23が埋め込まれている。なお、本実施形態において、弦22は6本、フレット23は22個、設けられている。6本の弦22は、各々弦番号と対応付けられている。一番細い弦22が、弦番号「1番」であり、弦22の太さが太くなる順番で弦番号が大きくなる。22個のフレット23は、各々フレット番号と対応付けられている。最もヘッド30寄りのフレット23は、フレット番号「1番」であり、ヘッド30側から遠ざかるに連れて、配置されたフレット23のフレット番号が大きくなる。
A
本体10には、弦22の他端が取り付けられるブリッジ16と、弦22の振動を検出するノーマルピックアップ11と、各々の弦22の振動を独立して検出するヘキサピックアップ12と、放音されるサウンドにトレモロ効果を付加するためのトレモロアーム17と、本体10の内部に内蔵されている電子部13と、各々の弦22と電子部13とを接続するケーブル14と、音色の種類等を表示するための表示部15と、が設けられている。
The
図2は、電子部13のハードウェア構成を示すブロック図である。電子部13は、CPU(Central Processing Unit)41と、ROM(Read Only Memory)42と、RAM(Random Access Memory)43と、押弦センサ44と、音源45と、ノーマルピックアップ11と、ヘキサピックアップ12と、スイッチ48と、表示部15と、I/F(インターフェース)49と、がバス50を介して接続されている。
さらに、電子部13は、DSP(Digital Signal Processor)46と、D/A(デジタルアナログコンバータ)47と、を備える。
FIG. 2 is a block diagram illustrating a hardware configuration of the
Further, the
CPU41は、ROM42に記録されているプログラム、又は、記憶部(図示せず)からRAM43にロードされたプログラムに従って各種の処理を実行する。
The
RAM43には、CPU41が各種の処理を実行する上において必要なデータ等も適宜記憶される。
The
押弦センサ44は、押弦が何番の弦の何番のフレットに対して行われたかを検出する。この押弦センサ44は、後述する静電センサの出力に基づいて、いずれかのフレット23(図1参照)上においていずれの弦22(図1参照)に対して押弦操作が行われたのかを検出する。
The string-pressing
音源45は、例えばMIDI(Musical Instrument Digital Interface)データで発音が指示された楽音の波形データを生成し、その波形データをD/A変換して得られるオーディオ信号を、DSP46及びD/A47を介して外部音源53に出力して、発音及び消音の指示を出す。なお、外部音源53は、D/A47から出力されたオーディオ信号を増幅して出力するアンプ回路(図示せず)と、アンプ回路から入力されたオーディオ信号により楽音を放音するスピーカ(図示せず)と、を備える。
The
ノーマルピックアップ11は、検出された弦22(図1参照)の振動を電気信号に変換してCPU41に出力する。
ヘキサピックアップ12は、検出された各々の弦22(図1参照)の独立した振動を電気信号に変換してCPU41に出力する。
The
The
スイッチ48は、本体10(図1参照)に設けられた各種スイッチ(図示せず)からの入力信号をCPU41に出力する。
表示部15は、発音対象となる音色の種類等を表示する。
The
The
図3は、押弦センサ44の信号制御部を示す模式図である。
FIG. 3 is a schematic diagram illustrating a signal control unit of the string-pressing
押弦センサ44においては、Y信号制御部52は、弦22のいずれかを順次指定し、指定された弦に対応する静電センサを指定する。X信号制御部51は、フレット23のいずれかを指定し、指定されたフレットに対応する静電センサを指定する。こうして弦22及びフレット23の両方同時に指定された静電センサのみを動作させ、この動作された静電センサの出力値の変化をCPU41(図2参照)に押弦位置情報として出力する。
In the string-pressing
図4は、静電センサの出力に基づいて弦22とフレット23との接触を検出することなく、押弦を検知するタイプの押弦センサ44が適用されたネック20の斜視図である。
FIG. 4 is a perspective view of the
図4において、指板21の下部には、静電センサとしての静電パッド26が、各々の弦22、及び各々のフレット23ごとに対応付けられて配置されている。即ち、本実施形態のように、6弦×22フレットである場合、144箇所の静電パッドが配置される。これらの静電パッド26は、弦22が指板21に近づいたときの静電容量を検出してCPU41に送信する。CPU41は、この送信された静電容量の値に基づいて押弦位置に対応する弦22及びフレット23を検出する。
In FIG. 4, an
[メインフロー]
図5は、本実施形態に係る電子弦楽器1において実行されるメインフローを示すフローチャートである。
[Main flow]
FIG. 5 is a flowchart showing a main flow executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS1では、CPU41は、電源の投入によりイニシャライズを実行する。ステップS2では、CPU41は、スイッチ処理(図6で後述する)を実行する。ステップS3では、CPU41は、演奏検知処理(図8で後述する)を実行する。ステップS4では、CPU41は、発音処理を実行する。発音処理では、CPU41は、音源45等を介して、外部音源53に楽音の発音を実行させる。ステップS5では、CPU41は、その他の処理を実行する。その他の処理では、CPU41は、例えば、表示部15に出力コードのコード名を表示するなどの処理を実行する。ステップS5の処理が終了すると、CPU41は、処理をステップS2に移行させて、ステップS2〜S5の処理を繰り返す。
First, in step S1, the
[スイッチ処理]
図6は、本実施形態に係る電子弦楽器1において実行されるスイッチ処理を示すフローチャートである。
[Switch processing]
FIG. 6 is a flowchart showing a switch process executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS11では、CPU41は、音色スイッチ処理(図7で後述する)を実行する。ステップS12では、CPU41は、モードスイッチ処理を実行する。ステップS12の処理が終了すると、CPU41は、スイッチ処理を終了する。
First, in step S11, the
[音色スイッチ処理]
図7は、本実施形態に係る電子弦楽器1において実行される音色スイッチ処理を示すフローチャートである。
[Tone switch processing]
FIG. 7 is a flowchart showing a timbre switch process executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS21では、CPU41は、音色スイッチ(図示せず)がオンされたか否かを判断する。音色スイッチがオンされたと判断された場合、CPU41は、処理をステップS22に移し、オンされたと判断されなかった場合、CPU41は、音色スイッチを終了する。ステップS22では、CPU41は、音色スイッチにより指定された音色に対応する音色番号を、変数TONEに格納する。ステップS23では、CPU41は、変数TONEに基づくイベントを音源45に供給する。ここで、音源45は、マスターチャンネル(ch1)と、スレーブチャンネル(ch2)とを有しており、当該イベントは、これらの2つのチャンネルに供給される。これにより、音源45に、発音されるべき音色が指定される。ステップS23の処理が終了すると、CPU41は、音色スイッチ処理を終了する。
First, in step S21, the
[演奏検知処理]
図8は、本実施形態に係る電子弦楽器1において実行される演奏検知処理を示すフローチャートである。
[Performance detection processing]
FIG. 8 is a flowchart showing a performance detection process executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS31では、CPU41は、押弦位置検出処理(図9で後述する)を実行する。ステップS32では、CPU41は、弦振動処理(図12で後述する)を実行する。ステップS33では、CPU41は、統合処理(図16で後述する)を実行する。ステップS33の処理が終了すると、CPU41は、演奏検知処理を終了する。
First, in step S31, the
[押弦位置検知処理]
図9は、本実施形態に係る電子弦楽器1において実行される押弦位置検知処理(図8のステップS31の処理)を示すフローチャートである。
[Pushing position detection processing]
FIG. 9 is a flowchart showing a string-pressing position detection process (the process in step S31 in FIG. 8) executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS41では、CPU41は、イニシャライズを実行する。ステップS42では、CPU41は、弦番号が1の弦から6の弦まで順次に押さえ位置(弦と接触しているフレットのフレット番号)のサーチを行う。ここで、初回のステップS42の実行時には、弦番号が1の弦について当該サーチが実行され、2回目のステップS42の実行時には、弦番号が2の弦について当該サーチが実行される。以下、同様に、ループ処理が6回行われるまで、各々の弦について当該サーチが実行される。
ステップS43では、CPU41は、ステップS42においてサーチ対象となった弦について、押さえ位置(弦と接触しているフレットのフレット番号)を順次サーチする。ステップS44では、CPU41は、押さえ位置が検出されたか否かを判断する。
当該判断において、各々のフレット番号に対応する静電パッド26(図7参照)により検出された静電容量が所定の閾値以上である場合、CPU41は、押さえ位置が検出されたと判断する。
ステップS44において、押さえ位置が検出されたと判断された場合、CPU41は、ステップS45において、検出された押さえ位置(弦番号及びフレット番号)を押弦レジスタに登録する。ステップS46において、CPU41は、サーチ対象となった弦について全フレットをサーチしたか否かを判断する。当該全フレットがサーチされたと判断された場合、CPU41は、処理をステップS47に移し、当該全フレットがサーチされたと判断されない場合、処理をステップS43に移す。したがって、当該全フレットがサーチされたと判断されるまで、ステップS43〜S46の処理が繰り返し実行される。
ステップS47において、CPU41は、弦の中の押さえ位置のうち、最大フレット数の位置を押さえ位置と決定する。即ち、弦の中の押さえ位置のうち、最もブリッジ寄りに位置するフレットが押さえられた、と決定される。
ステップS44において、押さえ位置が検出されたと判断されない場合、CPU41は、ステップS48に処理を移す。ステップS48では、CPU41は、非押弦と認定する。即ち、開放弦と認定する。
ステップS49では、CPU41は、押さえ位置のピッチを初期ピッチ(Spt)として、RAM43に記録する。
ステップS50では、CPU41は、全弦(6つの弦全て)について押さえ位置をサーチしたか否かを判定する。全弦サーチしたと判定された場合、CPU41は、ステップS51に処理を移行させ、全弦サーチしたと判定されない場合、CPU41は、処理をステップS42に移行させる。ステップS51では、CPU41は、先行トリガ処理(図10で後述)を実行する。なお、この先行トリガ処理は、ステップS49の処理と、ステップS50の処理との間で実行されてもよい。ステップS51の処理が終了すると、CPU41は、押弦位置検出処理を終了する。
First, in step S41, the
In step S43, the
In this determination, when the electrostatic capacitance detected by the electrostatic pad 26 (see FIG. 7) corresponding to each fret number is equal to or greater than a predetermined threshold, the
If it is determined in step S44 that a pressing position has been detected, the
In step S47, the
If it is not determined in step S44 that the pressing position has been detected, the
In step S49, the
In step S50, the
[先行トリガ処理]
図10は、本実施形態に係る電子弦楽器1において実行される先行トリガ処理(図9のステップS51の処理)を示すフローチャートである。ここで、先行トリガとは、演奏者による弾弦前の押弦が検出されたタイミングでの発音のトリガのことである。
[Advance trigger processing]
FIG. 10 is a flowchart showing a preceding trigger process (the process in step S51 in FIG. 9) executed in the electronic stringed instrument 1 according to the present embodiment. Here, the preceding trigger is a trigger for sound generation at the timing when the player presses the string before the string.
まず、ステップS61では、CPU41は、ヘキサピックアップ12からの出力を受信し、各々の弦の振動レベルを取得する。ステップS62では、CPU41は、先行トリガ可否処理(図11で後述)を実行する。ステップS63では、先行トリガが可能であるか否か、即ち、先行トリガフラグがオンであるか否かを判断する。この先行トリガフラグは、後述する先行トリガ可否処理のステップS72において、オンされる。先行トリガフラグがオンである場合、CPU41は、ステップS64に処理を移行させ、先行トリガフラグがオフである場合、CPU41は、先行トリガ処理を終了する。
ステップS64では、CPU41は、先行トリガ音源処理(図12で後述)を実行する。ステップS64の処理が終了すると、CPU41は、先行トリガ処理を終了する。
First, in step S61, the
In step S64, the
[先行トリガ可否処理]
図11は、本実施形態に係る電子弦楽器1において実行される先行トリガ可否処理(図10のステップS62の処理)を示すフローチャートである。
[Precedence trigger availability processing]
FIG. 11 is a flowchart showing the preceding trigger availability processing (processing in step S62 in FIG. 10) executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS71では、CPU41は、図10のステップS61で受信したヘキサピックアップ12からの出力に基づいた各々の弦の振動レベルが、所定の閾値(Th1)より大きいか否かを判断する。この判断がYESの場合、CPU41は、処理をステップS72に移行させ、NOの場合、CPU41は、先行トリガ可否処理を終了する。
ステップS72では、CPU41は、先行トリガを可能にするために、先行トリガフラグをオンにする。ステップS73では、CPU41は、ベロシティ確定処理を実行する。
具体的には、ベロシティ確定処理では、以下の処理が実行される。CPU41は、ヘキサピックアップの出力に基づいた振動レベルがTh1を超えた時点(以下、「Th1時点」と呼ぶ)より前の、3つの振動レベルのサンプリングデータに基づいて、振動レベルの変化の加速度を検出する。具体的には、Th1時点より1つ前及び2つ前のサンプリングデータに基づいて、振動レベルの変化の第1速度を算出する。さらに、Th1時点より2つ前及び3つ前のサンプリングデータに基づいて、振動レベルの変化の第2速度を算出する。そして、当該第1速度及び当該第2速度に基づいて、振動レベルの変化の加速度を検出する。さらに、CPU41は、実験で得られた加速度のダイナミクス内にベロシティが0〜127に収まるように内挿補間する。
具体的には、ベロシティを「VEL」、検出された加速度を「K」、実験で得られた加速度のダイナミクスを「D」、補正値を「H」とすると、ベロシティは、以下の式(1)で算出される。
VEL=(K/D)×128×H・・・(1)
加速度Kと補正値Hとの関係を示すマップ(図示せず)のデータは、各弦の音高ごとにROM42に格納されている。ある弦のある音高の波形を観測すると、弦がピックから離れた直後の波形の変化には固有の特性がある。したがって、この特性のマップのデータが各弦の音高ごとに予めROM42に格納されることで、検出された加速度Kに基づいて補正値Hが取得される。ステップS73の処理が終了すると、CPU41は、先行トリガ可否処理を終了する。
First, in step S71, the
In step S72, the
Specifically, in the velocity determination process, the following process is executed. The
Specifically, assuming that the velocity is “VEL”, the detected acceleration is “K”, the acceleration dynamics obtained in the experiment is “D”, and the correction value is “H”, the velocity is expressed by the following equation (1). ).
VEL = (K / D) × 128 × H (1)
Map (not shown) data indicating the relationship between the acceleration K and the correction value H is stored in the
[先行トリガ音源処理]
図12は、本実施形態に係る電子弦楽器1において実行される先行トリガ音源処理(図10のステップS64の処理)を示すフローチャートである。
[Advance trigger sound source processing]
FIG. 12 is a flowchart showing a preceding trigger sound source process (the process of step S64 in FIG. 10) executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS81において、CPU41は、図9のステップS49でRAM43に記録された初期ピッチ(SPt)を取得する。ステップS82において、CPU41は、音源45のマスターチャンネル(ch1)に所定のマスター音色、かつ初期ピッチ(SPt)の音高で、音源45に発音指示を送信する。ステップS83において、CPU41は、音源45のスレーブチャンネル(ch2)に所定のスレーブ音色、かつ所定の音高で、音源45に発音指示を送信する。
ステップS84では、CPU41は、図19に示すような、マスター側の波形のうち、最初の一周期に要する時間に相当するスレーブ波形を読み出して、マスター側の波形とスレーブ側の波形とを合成する。即ち、マスター側の波形の一波長分の長さの分だけ、スレーブ側の波形を読み出す。この際、マスター側の楽音は、既にステップS82にて初期ピッチ(SPt)で発音されているので、CPU41は、最初の一波長の経過時間を、マスター音色の発音開始時点において前もって算出する。さらに、CPU41は、既にステップS83にて発音されているスレーブ側の楽音の波形の読出し終了アドレスを、算出された当該経過時間に対応するように設定する。さらに、CPU41は、スレーブ側の波形を読み出して、マスター側の波形の最初の一波長分と同期させて合成する。CPU41は、合成された波形に基づいて音源45に発音指示を送信する。
First, in step S81, the
In step S84, the
[弦振動処理]
図13は、本実施形態に係る電子弦楽器1において実行される弦振動処理(図8のステップS32の処理)を示すフローチャートである。
[String vibration processing]
FIG. 13 is a flowchart showing a string vibration process (the process of step S32 in FIG. 8) executed in the electronic stringed musical instrument 1 according to the present embodiment.
まず、ステップS91では、CPU41は、ヘキサピックアップ12からの出力を受信し、各々の弦の振動レベルを取得する。ステップS92では、CPU41は、ノーマルトリガ処理(図14で後述)を実行する。ステップS93では、CPU41は、ピッチ抽出処理(図15で後述)を実行する。ステップS94では、CPU41は、消音検知処理(図16で後述)を実行する。ステップS94の処理が終了すると、CPU41は、弦振動処理を終了する。
First, in step S91, the
[ノーマルトリガ処理]
図14は、本実施形態に係る電子弦楽器1において実行されるノーマルトリガ処理(図13のステップS92の処理)を示すフローチャートである。ノーマルトリガとは、演奏者による弾弦が検出されたタイミングでの発音のトリガのことである。
[Normal trigger processing]
FIG. 14 is a flowchart showing a normal trigger process (the process in step S92 in FIG. 13) executed in the electronic stringed instrument 1 according to the present embodiment. The normal trigger is a sound generation trigger at the timing when a string is detected by the performer.
まず、ステップS101では、CPU41は、先行トリガが可能でないか否かを判断する。即ち、CPU41は、先行トリガフラグがオフであるか否かを判断する。先行トリガが可能でないと判断された場合、CPU41は、ステップS102に処理を移行させる。先行トリガが可能であると判断された場合、CPU41は、ノーマルトリガ処理を終了する。ステップS102では、CPU41は、図13のステップS91で受信したヘキサピックアップ12からの出力に基づいた各々の弦の振動レベルが、所定の閾値(Th2)より大きいか否かを判断する。この判断がYESの場合、CPU41は、処理をステップS103に移行させ、NOの場合、CPU41は、ノーマルトリガ処理を終了する。ステップS103では、CPU41は、ノーマルトリガを可能にするために、ノーマルトリガフラグをオンにする。ステップS103の処理が終了すると、CPU41は、ノーマルトリガ処理を終了する。
First, in step S101, the
[ピッチ抽出処理]
図15は、本実施形態に係る電子弦楽器1において実行されるピッチ抽出処理(図13のステップS93の処理)を示すフローチャートである。
[Pitch extraction processing]
FIG. 15 is a flowchart showing the pitch extraction process (the process of step S93 in FIG. 13) executed in the electronic stringed instrument 1 according to this embodiment.
ステップS111において、CPU41は、公知技術によりピッチ(Pt)を抽出して、音高を決定する。決定されたピッチ(Pt)は、RAM43に記録される。ここで、当該公知技術は、例えば、特開平1−177082号公報に記載の技術等がある。
In step S111, the
[消音検知処理]
図16は、本実施形態に係る電子弦楽器1において実行される消音検知処理(図13のステップS94の処理)を示すフローチャートである。
[Mute detection processing]
FIG. 16 is a flowchart showing a mute detection process (the process of step S94 in FIG. 13) executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS121において、CPU41は、発音中であるか否かを判断する。この判断がYESの場合、CPU41は、処理をステップS122に移行させ、この判断がNOの場合、CPU41は、消音検知処理を終了する。ステップS122では、CPU41は、図13のステップS91で受信したヘキサピックアップ12からの出力に基づいた各々の弦の振動レベルが、所定の閾値(Th3)より小さいか否かを判断する。この判断がYESの場合、CPU41は、処理をステップS123に移行させ、NOの場合、CPU41は、消音検知処理を終了する。ステップS123では、CPU41は、消音フラグをオンにする。ステップS123の処理が終了すると、CPU41は、消音検知処理を終了する。
First, in step S121, the
[統合処理]
図17は、本実施形態に係る電子弦楽器1において実行される統合処理(図8のステップS33の処理)を示すフローチャートである。統合処理では、押弦位置検出処理(図8のステップS31の処理)の結果と弦振動処理(図8のステップS32の処理)の結果とが統合される。
[Integration processing]
FIG. 17 is a flowchart showing an integration process (the process in step S33 in FIG. 8) executed in the electronic stringed musical instrument 1 according to the present embodiment. In the integration process, the result of the pressed string position detection process (the process of step S31 in FIG. 8) and the result of the string vibration process (the process of step S32 in FIG. 8) are integrated.
まず、ステップS131において、CPU41は、先行発音済みか否かを判断する。先行トリガフラグがオンか否かを判断する。先行トリガフラグがオンと判断された場合、CPU41は、処理をステップS132に移行させる。一方、ステップS131において、先行トリガフラグがオンと判断されない場合、CPU41は、処理をステップS133に移行させる。ステップS133において、CPU41は、ノーマルトリガフラグがオンであるか否かを判断する。ノーマルトリガフラグがオンである場合、CPU41は、ステップS134において、音源45に発音指示信号を送信し、処理をステップS132に移行させる。一方、ノーマルトリガフラグがオフである場合、CPU41は、ステップS135に処理を移行させる。
ステップS132において、CPU41は、ピッチ反映処理(図18で後述)を実行する。その後、CPU41は、ステップS135に処理を移行させる。
ステップS135では、CPU41は、消音フラグがオンであるか否かを判断する。消音フラグがオンである場合、CPU41は、ステップS136において、音源45に消音指示信号を送信する。消音フラグがオフである場合、CPU41は、統合処理を終了する。ステップS136の処理が終了すると、CPU41は、統合処理を終了する。
First, in step S131, the
In step S132, the
In step S135, the
[ピッチ反映音源処理]
図18は、本実施形態に係る電子弦楽器1において実行されるピッチ反映音源処理(図17のステップS132の処理)を示すフローチャートである。
[Pitch reflection sound source processing]
FIG. 18 is a flowchart showing the pitch reflection sound source process (the process of step S132 in FIG. 17) executed in the electronic stringed instrument 1 according to the present embodiment.
まず、ステップS141において、CPU41は、ピッチ抽出は成功して、ピッチ(Pt)が決定しているか否かを判断する。具体的には、CPU41は、RAM43にピッチ(Pt)が記録されているか否かを判断する。この判断がYESの場合、CPU41は、処理をステップS142に移し、NOの場合、ピッチ反映音源処理を終了する。ステップS142では、CPU41は、音源45のマスターチャンネル(ch1)から先行発音されている楽音に対して、ピッチ(Pt)を反映するように、音源45に指示信号を送信する。
ステップS143では、CPU41は、音源45のスレーブチャンネル(ch2)の波形の読出しアドレスを、ピッチ(Pt)のタイミングにシンクロさせるように音源45に指示信号を送信する。即ち、スレーブの波形の読出しアドレスとエンドアドレスとをピッチが変化するごとに変化させて、マスターとスレーブをシンクロさせて音源45に発音させる。
具体的には、波形データ読み出し方式で構成される2組のマスターチャンネルおよびスレーブチャンネルを用い、スレーブチャンネルのエンドアドレスを、マスターチャンネルの波形読み出し周期に合致するよう制御する。スレーブチャンネルの波形がマスターチャンネルの波形と同じ周期で先頭アドレスに戻るオシレータシンク機能が実現する。この結果、製品コスト高を招致せずに波形データ読み出し方式でオシレータシンクロナイズ効果を具現することができる。
First, in step S141, the
In step S143, the
Specifically, two sets of master channels and slave channels configured by the waveform data reading method are used, and the end address of the slave channel is controlled to match the waveform reading cycle of the master channel. This realizes an oscillator sync function in which the slave channel waveform returns to the start address in the same cycle as the master channel waveform. As a result, the oscillator synchronization effect can be realized by the waveform data reading method without incurring high product costs.
以上、本実施形態の電子弦楽器1の構成及び処理について説明した。
本実施形態においては、CPU41は、弾弦が検知された弦22と、当該弦22が押弦された位置にあるフレット23とに基づいてピッチを決定し、弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつスレーブ波形の繰り返し読出し開始タイミングをマスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成し、弾弦の検出された弦の振動ピッチを検出し、楽音の生成に用いられるピッチを、検出された振動ピッチに基づいて補正する。
したがって、製品コスト高を招致することなく波形データ読み出し方式でオシレータシンクロナイズ効果を具現することができる。
Heretofore, the configuration and processing of the electronic stringed instrument 1 of the present embodiment have been described.
In the present embodiment, the
Therefore, the oscillator synchronization effect can be realized by the waveform data reading method without incurring high product cost.
以上、本発明の実施形態について説明したが、実施形態は例示に過ぎず、本発明の技術的範囲を限定するものではない。本発明はその他の様々な実施形態を取ることが可能であり、さらに、本発明の要旨を逸脱しない範囲で、省略や置換など種々の変更を行うことができる。これら実施形態やその変形は、本明細書などに記載された発明の範囲や要旨に含まれると共に、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 As mentioned above, although embodiment of this invention was described, embodiment is only an illustration and does not limit the technical scope of this invention. The present invention can take other various embodiments, and various modifications such as omission and replacement can be made without departing from the gist of the present invention. These embodiments and modifications thereof are included in the scope and gist of the invention described in this specification and the like, and are included in the invention described in the claims and the equivalents thereof.
以下に、本願の出願当初の特許請求の範囲に記載された発明を付記する。
[付記1]
複数のフレットが設けられた指板部上に張設された複数の弦と、
前記複数のフレットのいずれかの位置において、複数の弦のいずれかが押弦されたことを検出する押弦検出手段と、
前記複数の弦のいずれかが弾弦されたことを検出する弾弦検出手段と、
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定するピッチ決定手段と、
前記弾弦検出手段による弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記ピッチ決定手段にて決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成する楽音生成手段と、
前記弾弦検出手段によって弾弦の検出された弦の振動ピッチを検出するピッチ検出手段と、
前記楽音生成手段にて用いられる前記ピッチを、前記ピッチ検出手段により検出された振動ピッチに基づいて補正する補正手段と、
を有する電子弦楽器。
[付記2]
複数のフレットが設けられた指板部上に張設された複数の弦と、前記複数のフレットのいずれかの位置において、複数の弦のいずれかが押弦されたことを検出する押弦検出手段と、前記複数の弦のいずれかが弾弦されたことを検出する弾弦検出手段と、を有する電子弦楽器に用いられる楽音生成方法であって、
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定し、
前記弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成し、
前記弾弦の検出された弦の振動ピッチを検出し、
前記楽音の生成に用いられる前記ピッチを、前記検出された振動ピッチに基づいて補正する、楽音生成方法。
[付記3]
複数のフレットが設けられた指板部上に張設された複数の弦と、前記複数のフレットのいずれかの位置において、複数の弦のいずれかが押弦されたことを検出する押弦検出手段と、前記複数の弦のいずれかが弾弦されたことを検出する弾弦検出手段と、を有する電子弦楽器に用いられるコンピュータに、
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定するピッチ決定ステップと、
前記弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記ピッチ決定手段にて決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成する楽音生成ステップと、
前記弾弦の検出された弦の振動ピッチを検出するピッチ検出ステップと、
前記楽音生成ステップにて用いられる前記ピッチを、前記検出された振動ピッチに基づいて補正する補正ステップと、
を実行させるプログラム。
The invention described in the scope of claims at the beginning of the filing of the present application will be appended.
[Appendix 1]
A plurality of strings stretched on a fingerboard portion provided with a plurality of frets;
A string detection means for detecting that any of the plurality of strings is pressed at any position of the plurality of frets;
String detection means for detecting that one of the plurality of strings has been stringed;
Pitch determining means for determining a pitch based on a string in which the string is detected and a fret at a position where the string is pressed by the string detecting means;
In response to the detection of the string by the string detecting means, an operation of repeatedly reading out one period of the master waveform and the slave waveform having different periods at a speed corresponding to the pitch determined by the pitch determining means is started. And a musical tone generating means for generating a musical tone of a waveform obtained by reading the slave waveform repeated readout start timing in synchronization with the repeated readout start timing of the master waveform;
Pitch detection means for detecting the vibration pitch of the string detected by the string detection means;
Correction means for correcting the pitch used in the musical sound generation means based on the vibration pitch detected by the pitch detection means;
Electronic stringed instrument with
[Appendix 2]
A plurality of strings stretched on a fingerboard portion provided with a plurality of frets, and a string-pressing detecting means for detecting that one of the plurality of strings is pushed at any position of the plurality of frets; A musical tone generating method used for an electronic stringed instrument having a string detecting means for detecting that one of the plurality of strings has been played,
The pitch is determined based on the string where the string is detected and the fret where the string is pressed by the string detection means,
In response to the detection of the string, the master waveform and one slave waveform having different periods are started to be repeatedly read at a speed corresponding to the determined pitch, and the slave waveform is repeatedly read. To generate a musical tone of the waveform obtained by reading out in synchronization with the read start timing of the master waveform,
Detecting the vibration pitch of the detected string of the string;
A musical sound generating method for correcting the pitch used for generating the musical sound based on the detected vibration pitch.
[Appendix 3]
A plurality of strings stretched on a fingerboard portion provided with a plurality of frets, and a string-pressing detecting means for detecting that one of the plurality of strings is pushed at any position of the plurality of frets; A computer used for an electronic stringed instrument having a string detecting means for detecting that one of the plurality of strings has been struck,
A pitch determination step for determining a pitch based on the string in which the string is detected and the fret at the position where the string is pressed by the string detection means;
In response to the detection of the string, the master waveform and the slave waveform having different periods are started to be read repeatedly at a speed corresponding to the pitch determined by the pitch determining means, and the slave waveform A musical sound generating step for generating a musical tone of a waveform obtained by reading out the repeated reading start timing in synchronization with the repeated reading start timing of the master waveform;
A pitch detection step for detecting a vibration pitch of the detected string of the string;
A correction step of correcting the pitch used in the musical sound generation step based on the detected vibration pitch;
A program that executes
1・・・電子弦楽器、10・・・本体、11・・・ノーマルピックアップ、12・・・ヘキサピックアップ、13・・・電子部、14・・・ケーブル、15・・・表示部、16・・・ブリッジ、161・・・駒部、162・・・開口部、17・・・トレモロアーム、20・・・ネック、21・・・指板、22・・・弦、23・・・フレット、24・・・ネックPCB、25・・・弾性誘電体、26・・・静電パッド、30・・・ヘッド、31・・・糸巻き、51・・・X信号制御部、52・・・Y信号制御部、53・・・外部音源 DESCRIPTION OF SYMBOLS 1 ... Electronic string instrument, 10 ... Main body, 11 ... Normal pickup, 12 ... Hexa pickup, 13 ... Electronic part, 14 ... Cable, 15 ... Display part, 16 ...・ Bridge, 161 ... piece, 162 ... opening, 17 ... tremolo arm, 20 ... neck, 21 ... fingerboard, 22 ... string, 23 ... fret, 24 ... Neck PCB, 25 ... Elastic dielectric, 26 ... Electrostatic pad, 30 ... Head, 31 ... Thread winding, 51 ... X signal control unit, 52 ... Y signal control Part, 53 ... external sound source
Claims (3)
前記複数のフレットのいずれかの位置において、複数の弦のいずれかが押弦されたことを検出する押弦検出手段と、
前記複数の弦のいずれかが弾弦されたことを検出する弾弦検出手段と、
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定するピッチ決定手段と、
前記弾弦検出手段による弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記ピッチ決定手段にて決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成する楽音生成手段と、
前記弾弦検出手段によって弾弦の検出された弦の振動ピッチを検出するピッチ検出手段と、
前記楽音生成手段にて用いられる前記ピッチを、前記ピッチ検出手段により検出された振動ピッチに基づいて補正する補正手段と、
を有する電子弦楽器。 A plurality of strings stretched on a fingerboard portion provided with a plurality of frets;
A string detection means for detecting that any of the plurality of strings is pressed at any position of the plurality of frets;
String detection means for detecting that one of the plurality of strings has been stringed;
Pitch determining means for determining a pitch based on a string in which the string is detected and a fret at a position where the string is pressed by the string detecting means;
In response to the detection of the string by the string detecting means, an operation of repeatedly reading out one period of the master waveform and the slave waveform having different periods at a speed corresponding to the pitch determined by the pitch determining means is started. And a musical tone generating means for generating a musical tone of a waveform obtained by reading the slave waveform repeated readout start timing in synchronization with the repeated readout start timing of the master waveform;
Pitch detection means for detecting the vibration pitch of the string detected by the string detection means;
Correction means for correcting the pitch used in the musical sound generation means based on the vibration pitch detected by the pitch detection means;
Electronic stringed instrument with
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定し、
前記弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成し、
前記弾弦の検出された弦の振動ピッチを検出し、
前記楽音の生成に用いられる前記ピッチを、前記検出された振動ピッチに基づいて補正する、楽音生成方法。 A plurality of strings stretched on a fingerboard portion provided with a plurality of frets, and a string-pressing detecting means for detecting that one of the plurality of strings is pushed at any position of the plurality of frets; A musical tone generating method used for an electronic stringed instrument having a string detecting means for detecting that one of the plurality of strings has been played,
The pitch is determined based on the string where the string is detected and the fret where the string is pressed by the string detection means,
In response to the detection of the string, the master waveform and one slave waveform having different periods are started to be repeatedly read at a speed corresponding to the determined pitch, and the slave waveform is repeatedly read. To generate a musical tone of the waveform obtained by reading out in synchronization with the read start timing of the master waveform,
Detecting the vibration pitch of the detected string of the string;
A musical sound generating method for correcting the pitch used for generating the musical sound based on the detected vibration pitch.
前記弾弦が検知された弦と、前記押弦検出手段により当該弦が押弦された位置にあるフレットとに基づいてピッチを決定するピッチ決定ステップと、
前記弾弦の検出に応答して、それぞれ周期の異なるマスター波形及びスレーブ波形一周期分を、前記ピッチ決定手段にて決定されたピッチに対応した速度で繰り返し読み出す動作を開始し、かつ前記スレーブ波形の繰り返し読出し開始タイミングを前記マスター波形の繰り返し読出し開始タイミングに同期させて読み出すことにより得られる波形の楽音を生成する楽音生成ステップと、
前記弾弦の検出された弦の振動ピッチを検出するピッチ検出ステップと、
前記楽音生成ステップにて用いられる前記ピッチを、前記検出された振動ピッチに基づいて補正する補正ステップと、
を実行させるプログラム。 A plurality of strings stretched on a fingerboard portion provided with a plurality of frets, and a string-pressing detecting means for detecting that one of the plurality of strings is pushed at any position of the plurality of frets; A computer used for an electronic stringed instrument having a string detecting means for detecting that one of the plurality of strings has been struck,
A pitch determination step for determining a pitch based on the string in which the string is detected and the fret at the position where the string is pressed by the string detection means;
In response to the detection of the string, the master waveform and the slave waveform having different periods are started to be read repeatedly at a speed corresponding to the pitch determined by the pitch determining means, and the slave waveform A musical sound generating step for generating a musical tone of a waveform obtained by reading out the repeated reading start timing in synchronization with the repeated reading start timing of the master waveform;
A pitch detection step for detecting a vibration pitch of the detected string of the string;
A correction step of correcting the pitch used in the musical sound generation step based on the detected vibration pitch;
A program that executes
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013001421A JP2014134602A (en) | 2013-01-08 | 2013-01-08 | Electronic string instrument, musical tone generation method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013001421A JP2014134602A (en) | 2013-01-08 | 2013-01-08 | Electronic string instrument, musical tone generation method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014134602A true JP2014134602A (en) | 2014-07-24 |
Family
ID=51412933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013001421A Pending JP2014134602A (en) | 2013-01-08 | 2013-01-08 | Electronic string instrument, musical tone generation method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014134602A (en) |
-
2013
- 2013-01-08 JP JP2013001421A patent/JP2014134602A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6171347B2 (en) | Electronic stringed instrument, musical sound generation method and program | |
US8723011B2 (en) | Musical sound generation instrument and computer readable medium | |
US8664506B2 (en) | Electronic percussion instrument and recording medium with program recorded therein | |
JP5652415B2 (en) | Touch detection device, touch detection method, and electronic musical instrument | |
JP6127519B2 (en) | Musical sound control device, musical sound control method and program | |
US8525006B2 (en) | Input device and recording medium with program recorded therein | |
US9384724B2 (en) | Music playing device, electronic instrument, music playing method, and storage medium | |
US9047853B2 (en) | Electronic stringed instrument, musical sound generation method and storage medium | |
JP6390082B2 (en) | Electronic stringed instrument, finger position detection method and program | |
JP5732982B2 (en) | Musical sound generation device and musical sound generation program | |
JP6048151B2 (en) | Electronic stringed instrument, musical sound generation method and program | |
JP2014134602A (en) | Electronic string instrument, musical tone generation method, and program | |
US10482858B2 (en) | Generation and transmission of musical performance data | |
JP6135311B2 (en) | Musical sound generating apparatus, musical sound generating method and program | |
JP5742592B2 (en) | Musical sound generation device, musical sound generation program, and electronic musical instrument | |
JP2019144360A (en) | Performance support system and control method | |
JP2015011134A (en) | Electronic stringed musical instrument, musical sound generating method and program | |
JP6387643B2 (en) | Electronic stringed instrument, musical sound generation method and program | |
JP5151603B2 (en) | Electronic musical instruments | |
JP6387642B2 (en) | Electronic stringed instrument, musical sound generation method and program | |
JP2015148820A (en) | Musical sound generation device and musical sound generation program | |
JP6102975B2 (en) | Musical sound generation device, musical sound generation program, and electronic musical instrument | |
JP2018097157A (en) | Electronic percussion instrument, tempo setting method, and tempo setting program | |
JP2015152776A (en) | Electronic stringed instrument, musical sound generation method, and program |