JP2014134602A - Electronic string instrument, musical tone generation method, and program - Google Patents

Electronic string instrument, musical tone generation method, and program Download PDF

Info

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
Application number
JP2013001421A
Other languages
Japanese (ja)
Inventor
Tatsuya Dejima
達也 出嶌
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 JP2013001421A priority Critical patent/JP2014134602A/en
Publication of JP2014134602A publication Critical patent/JP2014134602A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To realize an oscillator synchronization effect by means of a waveform data reading method without compromising a product cost.SOLUTION: A CPU performs: determining a pitch on the basis of a string with which a picking has been detected and a fret located where the string has been pressed; starting operation of repeatedly reading an equivalent of one cycle of a master waveform and a slave wave form that are in mutually different cycle at a speed corresponding to the determined pitch, in response to the detection of picking, and also generating a musical tone of a wave form obtained by reading a start timing of repeatedly reading the slave waveform synchronously with a start timing of repeatedly reading the master waveform; detecting a vibration pitch of the string with which the picking has been detected; and correcting, on the basis of the detected vibration pitch, a pitch to be used for generating a musical tone.

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.

特開2009−42785号公報JP 2009-42785 A

ところで、一般的な波形データ読み出し方式の音源では、複数チャンネルのオシレータ(波形発生装置)を搭載していても、その内の任意の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.

本発明の電子弦楽器の外観を示す正面図である。It is a front view which shows the external appearance of the electronic stringed instrument of this invention. 上記電子弦楽器を構成する電子部のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the electronic part which comprises the said electronic stringed instrument. 押弦センサの信号制御部を示す模式図である。It is a schematic diagram which shows the signal control part of a string-pressing sensor. 静電センサの出力に基づいて弦とフレットとの接触を検出することなく、押弦を検知するタイプの押弦センサが適用されたネックの斜視図である。It is a perspective view of a neck to which a string-pressing sensor of a type that detects string pressing without detecting contact between a string and a fret based on an output of an electrostatic sensor is applied. 本実施形態に係る電子弦楽器において実行されるメインフローを示すフローチャートである。It is a flowchart which shows the main flow performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行されるスイッチ処理を示すフローチャートである。It is a flowchart which shows the switch process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される音色スイッチ処理を示すフローチャートである。It is a flowchart which shows the timbre switch process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される演奏検知処理を示すフローチャートである。It is a flowchart which shows the performance detection process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される押弦位置検知処理を示すフローチャートである。It is a flowchart which shows the string pressing position detection process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される先行トリガ処理を示すフローチャートである。It is a flowchart which shows the advance trigger process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される先行トリガ可否処理を示すフローチャートである。It is a flowchart which shows the precedence trigger availability process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される先行トリガ音源処理を示すフローチャートである。It is a flowchart which shows the prior | preceding trigger sound source process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される弦振動処理を示すフローチャートである。It is a flowchart which shows the string vibration process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行されるノーマルトリガ処理を示すフローチャートである。It is a flowchart which shows the normal trigger process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行されるピッチ抽出処理を示すフローチャートである。It is a flowchart which shows the pitch extraction process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される消音検知処理を示すフローチャートである。It is a flowchart which shows the mute detection process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行される統合処理を示すフローチャートである。It is a flowchart which shows the integration process performed in the electronic stringed instrument which concerns on this embodiment. 本実施形態に係る電子弦楽器において実行されるピッチ反映音源処理を示すフローチャートである。It is a flowchart which shows the pitch reflection sound source process performed in the electronic stringed instrument which concerns on this embodiment. マスター側の波形とスレーブ側の波形との関係を示すである。It shows the relationship between the waveform on the master side and the waveform on the slave side.

以下、本発明の実施形態について、図面を用いて説明する。   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 main body 10, a neck 20, and a head 30.

ヘッド30には、スチール製の弦22の一端が巻かれる糸巻き31が取り付けられており、ネック20は、指板21に複数のフレット23が埋め込まれている。なお、本実施形態において、弦22は6本、フレット23は22個、設けられている。6本の弦22は、各々弦番号と対応付けられている。一番細い弦22が、弦番号「1番」であり、弦22の太さが太くなる順番で弦番号が大きくなる。22個のフレット23は、各々フレット番号と対応付けられている。最もヘッド30寄りのフレット23は、フレット番号「1番」であり、ヘッド30側から遠ざかるに連れて、配置されたフレット23のフレット番号が大きくなる。   A bobbin 31 on which one end of a steel string 22 is wound is attached to the head 30, and the neck 20 has a plurality of frets 23 embedded in a fingerboard 21. In the present embodiment, six strings 22 and 22 frets 23 are provided. Each of the six strings 22 is associated with a string number. The thinnest string 22 is the string number “1”, and the string number increases in the order of increasing the thickness of the string 22. Each of the 22 frets 23 is associated with a fret number. The fret 23 closest to the head 30 has the fret number “1”, and the fret number of the arranged fret 23 increases as the distance from the head 30 side increases.

本体10には、弦22の他端が取り付けられるブリッジ16と、弦22の振動を検出するノーマルピックアップ11と、各々の弦22の振動を独立して検出するヘキサピックアップ12と、放音されるサウンドにトレモロ効果を付加するためのトレモロアーム17と、本体10の内部に内蔵されている電子部13と、各々の弦22と電子部13とを接続するケーブル14と、音色の種類等を表示するための表示部15と、が設けられている。   The main body 10 emits sound from a bridge 16 to which the other end of the string 22 is attached, a normal pickup 11 that detects vibration of the string 22, and a hexapickup 12 that detects vibration of each string 22 independently. A tremolo arm 17 for adding a tremolo effect to the sound, an electronic unit 13 built in the main body 10, a cable 14 for connecting each string 22 and the electronic unit 13, and the type of tone are displayed. A display unit 15 is provided.

図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 electronic unit 13. The electronic unit 13 includes a CPU (Central Processing Unit) 41, a ROM (Read Only Memory) 42, a RAM (Random Access Memory) 43, a string sensor 44, a sound source 45, a normal pickup 11, a hexa pickup 12, The switch 48, the display unit 15, and an I / F (interface) 49 are connected via a bus 50.
Further, the electronic unit 13 includes a DSP (Digital Signal Processor) 46 and a D / A (digital analog converter) 47.

CPU41は、ROM42に記録されているプログラム、又は、記憶部(図示せず)からRAM43にロードされたプログラムに従って各種の処理を実行する。   The CPU 41 executes various processes according to a program recorded in the ROM 42 or a program loaded into the RAM 43 from a storage unit (not shown).

RAM43には、CPU41が各種の処理を実行する上において必要なデータ等も適宜記憶される。   The RAM 43 appropriately stores data necessary for the CPU 41 to execute various processes.

押弦センサ44は、押弦が何番の弦の何番のフレットに対して行われたかを検出する。この押弦センサ44は、後述する静電センサの出力に基づいて、いずれかのフレット23(図1参照)上においていずれの弦22(図1参照)に対して押弦操作が行われたのかを検出する。   The string-pressing sensor 44 detects what number-of-frets of what-numbered strings are pressed. The string-pressing sensor 44 detects which string 22 (see FIG. 1) has been pressed on any fret 23 (see FIG. 1) based on the output of an electrostatic sensor described later. To do.

音源45は、例えばMIDI(Musical Instrument Digital Interface)データで発音が指示された楽音の波形データを生成し、その波形データをD/A変換して得られるオーディオ信号を、DSP46及びD/A47を介して外部音源53に出力して、発音及び消音の指示を出す。なお、外部音源53は、D/A47から出力されたオーディオ信号を増幅して出力するアンプ回路(図示せず)と、アンプ回路から入力されたオーディオ信号により楽音を放音するスピーカ(図示せず)と、を備える。   The sound source 45 generates, for example, waveform data of a musical tone whose sound is instructed by MIDI (Musical Instrument Digital Interface) data, and an audio signal obtained by D / A conversion of the waveform data via the DSP 46 and D / A 47. Are output to the external sound source 53 to issue instructions for sound generation and mute. The external sound source 53 amplifies an audio signal output from the D / A 47 and outputs it, and a speaker (not shown) that emits a musical sound using the audio signal input from the amplifier circuit. And).

ノーマルピックアップ11は、検出された弦22(図1参照)の振動を電気信号に変換してCPU41に出力する。
ヘキサピックアップ12は、検出された各々の弦22(図1参照)の独立した振動を電気信号に変換してCPU41に出力する。
The normal pickup 11 converts the detected vibration of the string 22 (see FIG. 1) into an electrical signal and outputs it to the CPU 41.
The hex pickup 12 converts the detected independent vibration of each string 22 (see FIG. 1) into an electrical signal and outputs it to the CPU 41.

スイッチ48は、本体10(図1参照)に設けられた各種スイッチ(図示せず)からの入力信号をCPU41に出力する。
表示部15は、発音対象となる音色の種類等を表示する。
The switch 48 outputs input signals from various switches (not shown) provided on the main body 10 (see FIG. 1) to the CPU 41.
The display unit 15 displays the type of timbre to be sounded and the like.

図3は、押弦センサ44の信号制御部を示す模式図である。   FIG. 3 is a schematic diagram illustrating a signal control unit of the string-pressing sensor 44.

押弦センサ44においては、Y信号制御部52は、弦22のいずれかを順次指定し、指定された弦に対応する静電センサを指定する。X信号制御部51は、フレット23のいずれかを指定し、指定されたフレットに対応する静電センサを指定する。こうして弦22及びフレット23の両方同時に指定された静電センサのみを動作させ、この動作された静電センサの出力値の変化をCPU41(図2参照)に押弦位置情報として出力する。   In the string-pressing sensor 44, the Y signal control unit 52 sequentially designates one of the strings 22 and designates an electrostatic sensor corresponding to the designated string. The X signal control unit 51 designates one of the frets 23 and designates an electrostatic sensor corresponding to the designated fret. In this way, only the electrostatic sensor designated at the same time for both the string 22 and the fret 23 is operated, and the change in the output value of the operated electrostatic sensor is output to the CPU 41 (see FIG. 2) as the string pressing position information.

図4は、静電センサの出力に基づいて弦22とフレット23との接触を検出することなく、押弦を検知するタイプの押弦センサ44が適用されたネック20の斜視図である。   FIG. 4 is a perspective view of the neck 20 to which a string-pressing sensor 44 of a type that detects string pressing without detecting contact between the string 22 and the fret 23 based on the output of the electrostatic sensor is shown.

図4において、指板21の下部には、静電センサとしての静電パッド26が、各々の弦22、及び各々のフレット23ごとに対応付けられて配置されている。即ち、本実施形態のように、6弦×22フレットである場合、144箇所の静電パッドが配置される。これらの静電パッド26は、弦22が指板21に近づいたときの静電容量を検出してCPU41に送信する。CPU41は、この送信された静電容量の値に基づいて押弦位置に対応する弦22及びフレット23を検出する。   In FIG. 4, an electrostatic pad 26 as an electrostatic sensor is disposed below the fingerboard 21 in association with each string 22 and each fret 23. That is, as in the present embodiment, in the case of 6 strings × 22 frets, 144 electrostatic pads are arranged. These electrostatic pads 26 detect the electrostatic capacity when the string 22 approaches the fingerboard 21 and transmit it to the CPU 41. The CPU 41 detects the string 22 and the fret 23 corresponding to the pressed position based on the transmitted capacitance value.

[メインフロー]
図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 CPU 41 executes initialization by turning on the power. In step S2, the CPU 41 executes switch processing (described later in FIG. 6). In step S3, the CPU 41 executes performance detection processing (described later in FIG. 8). In step S4, the CPU 41 executes a sound generation process. In the sound generation process, the CPU 41 causes the external sound source 53 to execute the sound generation through the sound source 45 and the like. In step S5, the CPU 41 executes other processing. In other processing, the CPU 41 executes processing such as displaying the code name of the output code on the display unit 15, for example. When the process of step S5 ends, the CPU 41 shifts the process to step S2 and repeats the processes of steps S2 to S5.

[スイッチ処理]
図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 CPU 41 executes timbre switch processing (described later in FIG. 7). In step S12, the CPU 41 executes mode switch processing. When the process of step S12 ends, the CPU 41 ends the switch process.

[音色スイッチ処理]
図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 CPU 41 determines whether or not a timbre switch (not shown) is turned on. If it is determined that the timbre switch is turned on, the CPU 41 proceeds to step S22, and if it is not determined that the timbre switch is turned on, the CPU 41 ends the timbre switch. In step S22, the CPU 41 stores the timbre number corresponding to the timbre specified by the timbre switch in the variable TONE. In step S <b> 23, the CPU 41 supplies an event based on the variable TONE to the sound source 45. Here, the sound source 45 has a master channel (ch1) and a slave channel (ch2), and the event is supplied to these two channels. As a result, the tone color to be pronounced is designated for the sound source 45. When the process of step S23 ends, the CPU 41 ends the timbre switch process.

[演奏検知処理]
図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 CPU 41 executes a pressed string position detection process (described later in FIG. 9). In step S32, the CPU 41 executes string vibration processing (described later in FIG. 12). In step S33, the CPU 41 executes integration processing (described later in FIG. 16). When the process of step S33 ends, the CPU 41 ends the performance detection process.

[押弦位置検知処理]
図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 CPU 41 executes initialization. In step S42, the CPU 41 searches for the pressing position (fret number of the fret that is in contact with the string) sequentially from the string with the string number 1 to the string 6 with string number. Here, when the first step S42 is executed, the search is executed for the string having the string number 1, and when the second step S42 is executed, the search is executed for the string having the string number 2. Thereafter, similarly, the search is executed for each string until the loop processing is performed six times.
In step S43, the CPU 41 sequentially searches the pressing position (the fret number of the fret that is in contact with the string) for the string that is the search target in step S42. In step S44, the CPU 41 determines whether or not a pressing position has been detected.
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 CPU 41 determines that the pressing position has been detected.
If it is determined in step S44 that a pressing position has been detected, the CPU 41 registers the detected pressing position (string number and fret number) in the string register in step S45. In step S46, the CPU 41 determines whether all the frets have been searched for the search target string. If it is determined that all the frets have been searched, the CPU 41 proceeds to step S47, and if it is not determined that all the frets have been searched, the process proceeds to step S43. Therefore, the processes in steps S43 to S46 are repeatedly executed until it is determined that all the frets have been searched.
In step S47, the CPU 41 determines the position of the maximum fret number among the pressing positions in the string as the pressing position. That is, it is determined that the fret located closest to the bridge among the pressing positions in the string is pressed.
If it is not determined in step S44 that the pressing position has been detected, the CPU 41 moves the process to step S48. In step S48, the CPU 41 recognizes that the string is not pressed. That is, it is recognized as an open string.
In step S49, the CPU 41 records the pitch of the pressing position in the RAM 43 as an initial pitch (Spt).
In step S50, the CPU 41 determines whether or not the pressing position has been searched for all the strings (all six strings). If it is determined that the full string search has been performed, the CPU 41 shifts the process to step S51. If it is not determined that the full string search has been performed, the CPU 41 shifts the process to step S42. In step S51, the CPU 41 executes a preceding trigger process (described later in FIG. 10). The preceding trigger process may be executed between the process of step S49 and the process of step S50. When the process of step S51 ends, the CPU 41 ends the string-pressing position detection process.

[先行トリガ処理]
図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 CPU 41 receives the output from the hex pickup 12, and acquires the vibration level of each string. In step S62, the CPU 41 executes a preceding trigger availability process (described later in FIG. 11). In step S63, it is determined whether or not a preceding trigger is possible, that is, whether or not a preceding trigger flag is on. The preceding trigger flag is turned on in step S72 of the preceding trigger availability process described later. When the preceding trigger flag is on, the CPU 41 shifts the process to step S64, and when the preceding trigger flag is off, the CPU 41 ends the preceding trigger process.
In step S64, the CPU 41 executes a preceding trigger sound source process (described later in FIG. 12). When the process of step S64 ends, the CPU 41 ends the preceding trigger process.

[先行トリガ可否処理]
図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 CPU 41 determines whether or not the vibration level of each string based on the output from the hexapickup 12 received in step S61 in FIG. 10 is greater than a predetermined threshold (Th1). If this determination is YES, the CPU 41 shifts the processing to step S72, and if NO, the CPU 41 ends the preceding trigger availability processing.
In step S72, the CPU 41 turns on the preceding trigger flag to enable the preceding trigger. In step S73, the CPU 41 executes a velocity determination process.
Specifically, in the velocity determination process, the following process is executed. The CPU 41 calculates the acceleration of the change in the vibration level based on the sampling data of the three vibration levels before the time when the vibration level based on the output of the hex pickup exceeds Th1 (hereinafter referred to as “Th1 time”). To detect. Specifically, the first speed of the vibration level change is calculated based on sampling data one and two times before the Th1 time point. Further, the second speed of the vibration level change is calculated based on the sampling data two and three times before the Th1 time point. And based on the said 1st speed and the said 2nd speed, the acceleration of the change of a vibration level is detected. Further, the CPU 41 interpolates so that the velocity falls within the range of 0 to 127 in the dynamics of the acceleration obtained in the experiment.
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 ROM 42 for each pitch of each string. When observing the waveform of a certain pitch of a certain string, the change in the waveform immediately after the string is removed from the pick has an inherent characteristic. Therefore, the correction value H is acquired based on the detected acceleration K by storing map data of this characteristic in the ROM 42 in advance for each pitch of each string. When the process of step S73 ends, the CPU 41 ends the advance trigger availability process.

[先行トリガ音源処理]
図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 CPU 41 acquires the initial pitch (SPt) recorded in the RAM 43 in step S49 of FIG. In step S <b> 82, the CPU 41 transmits a sound generation instruction to the sound source 45 with a predetermined master tone color and a pitch of the initial pitch (SPt) to the master channel (ch1) of the sound source 45. In step S83, the CPU 41 transmits a sound generation instruction to the sound source 45 with a predetermined slave tone color and a predetermined pitch on the slave channel (ch2) of the sound source 45.
In step S84, the CPU 41 reads out a slave waveform corresponding to the time required for the first cycle among the waveforms on the master side as shown in FIG. 19, and synthesizes the waveform on the master side and the waveform on the slave side. . That is, the waveform on the slave side is read by the length corresponding to one wavelength of the waveform on the master side. At this time, since the master tone has already been generated at the initial pitch (SPt) in step S82, the CPU 41 calculates the elapsed time of the first wavelength in advance at the start of the master tone generation. Further, the CPU 41 sets the read end address of the waveform of the musical tone on the slave side already sounded in step S83 so as to correspond to the calculated elapsed time. Furthermore, the CPU 41 reads out the waveform on the slave side and synthesizes it in synchronization with the first one wavelength of the waveform on the master side. The CPU 41 transmits a sound generation instruction to the sound source 45 based on the synthesized waveform.

[弦振動処理]
図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 CPU 41 receives the output from the hex pickup 12, and acquires the vibration level of each string. In step S92, the CPU 41 executes normal trigger processing (described later in FIG. 14). In step S93, the CPU 41 executes a pitch extraction process (described later in FIG. 15). In step S94, the CPU 41 executes a mute detection process (described later in FIG. 16). When the process of step S94 ends, the CPU 41 ends the string vibration process.

[ノーマルトリガ処理]
図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 CPU 41 determines whether or not a preceding trigger is possible. That is, the CPU 41 determines whether or not the preceding trigger flag is off. When it is determined that the preceding trigger is not possible, the CPU 41 shifts the processing to step S102. When it is determined that the preceding trigger is possible, the CPU 41 ends the normal trigger process. In step S102, the CPU 41 determines whether or not the vibration level of each string based on the output from the hex pickup 12 received in step S91 of FIG. 13 is greater than a predetermined threshold (Th2). If this determination is YES, the CPU 41 shifts the process to step S103, and if NO, the CPU 41 ends the normal trigger process. In step S103, the CPU 41 turns on the normal trigger flag in order to enable the normal trigger. When the process of step S103 ends, the CPU 41 ends the normal trigger process.

[ピッチ抽出処理]
図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 CPU 41 extracts a pitch (Pt) by a known technique and determines a pitch. The determined pitch (Pt) is recorded in the RAM 43. Here, the known technique includes, for example, a technique described in Japanese Patent Laid-Open No. 1-177082.

[消音検知処理]
図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 CPU 41 determines whether or not sound is being generated. If this determination is YES, the CPU 41 shifts the process to step S122, and if this determination is NO, the CPU 41 ends the mute detection process. In step S122, the CPU 41 determines whether or not the vibration level of each string based on the output from the hex pickup 12 received in step S91 of FIG. 13 is smaller than a predetermined threshold (Th3). If this determination is YES, the CPU 41 shifts the process to step S123, and if NO, the CPU 41 ends the mute detection process. In step S123, the CPU 41 turns on the mute flag. When the process of step S123 ends, the CPU 41 ends the mute detection process.

[統合処理]
図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 CPU 41 determines whether or not the preceding pronunciation has been completed. It is determined whether or not the preceding trigger flag is on. When it is determined that the preceding trigger flag is on, the CPU 41 shifts the processing to step S132. On the other hand, if it is not determined in step S131 that the preceding trigger flag is on, the CPU 41 shifts the processing to step S133. In step S133, the CPU 41 determines whether or not the normal trigger flag is on. If the normal trigger flag is on, the CPU 41 transmits a sound generation instruction signal to the sound source 45 in step S134, and the process proceeds to step S132. On the other hand, when the normal trigger flag is off, the CPU 41 shifts the processing to step S135.
In step S132, the CPU 41 executes pitch reflection processing (described later in FIG. 18). Thereafter, the CPU 41 shifts the processing to step S135.
In step S135, the CPU 41 determines whether or not the mute flag is on. If the mute flag is on, the CPU 41 transmits a mute instruction signal to the sound source 45 in step S136. When the mute flag is off, the CPU 41 ends the integration process. When the process of step S136 ends, the CPU 41 ends the integration process.

[ピッチ反映音源処理]
図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 CPU 41 determines whether the pitch extraction has succeeded and the pitch (Pt) has been determined. Specifically, the CPU 41 determines whether or not a pitch (Pt) is recorded in the RAM 43. If this determination is YES, the CPU 41 moves the process to step S142, and if NO, ends the pitch reflection sound source process. In step S142, the CPU 41 transmits an instruction signal to the sound source 45 so as to reflect the pitch (Pt) with respect to the musical sound that is sounded in advance from the master channel (ch1) of the sound source 45.
In step S143, the CPU 41 transmits an instruction signal to the sound source 45 so as to synchronize the read address of the waveform of the slave channel (ch2) of the sound source 45 at the timing of the pitch (Pt). That is, the read address and end address of the slave waveform are changed each time the pitch changes, and the master and slave are synchronized to cause the sound source 45 to sound.
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 CPU 41 determines the pitch based on the string 22 where the string is detected and the fret 23 at the position where the string 22 is pressed, and in response to the detection of the string, Starts an operation to repeatedly read a master waveform and a slave waveform with different periods at a speed corresponding to the determined pitch, and reads the slave waveform repeated readout start timing in synchronization with the master waveform repeated readout start timing. The musical tone of the waveform obtained by this is generated, the vibration pitch of the string detected by the bullet string is detected, and the pitch used for the generation of the musical sound is corrected based on the detected vibration pitch.
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
JP2013001421A 2013-01-08 2013-01-08 Electronic string instrument, musical tone generation method, and program Pending JP2014134602A (en)

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)

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