Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5488976B2 - Tone generator and program - Google Patents
[go: Go Back, main page]

JP5488976B2 - Tone generator and program - Google Patents

Tone generator and program Download PDF

Info

Publication number
JP5488976B2
JP5488976B2 JP2010001049A JP2010001049A JP5488976B2 JP 5488976 B2 JP5488976 B2 JP 5488976B2 JP 2010001049 A JP2010001049 A JP 2010001049A JP 2010001049 A JP2010001049 A JP 2010001049A JP 5488976 B2 JP5488976 B2 JP 5488976B2
Authority
JP
Japan
Prior art keywords
signal
sound source
unit
time
path delay
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.)
Active
Application number
JP2010001049A
Other languages
Japanese (ja)
Other versions
JP2011141358A (en
Inventor
益男 横田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010001049A priority Critical patent/JP5488976B2/en
Publication of JP2011141358A publication Critical patent/JP2011141358A/en
Application granted granted Critical
Publication of JP5488976B2 publication Critical patent/JP5488976B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

本発明は、電子楽器などに用いて好適な音源装置およびプログラムに関する。   The present invention relates to a sound source device and a program suitable for use in an electronic musical instrument or the like.

従来よりデジタル信号処理専用のプロセッサであるDSPを用いて構成された音源装置が知られている。DSPを用いた音源装置では、DSP内部に記憶されるプログラム(マイクロコード)によって音源仕様が決まる為、例えば高調波合成方式やFM演算方式など各様な音源方式を具現するプログラムを記憶しておけば、同一のハードウェアでありながらも複数種の音源方式によって楽音波形を発生させ得る。   2. Description of the Related Art Conventionally, a sound source device configured using a DSP that is a processor dedicated to digital signal processing is known. In a sound source device using a DSP, the sound source specifications are determined by a program (microcode) stored in the DSP, and therefore, a program that embodies various sound source methods such as a harmonic synthesis method and an FM calculation method can be stored. For example, a musical sound waveform can be generated by a plurality of types of sound source methods even with the same hardware.

この種の装置として、例えば特許文献1には、複数の音源方式に共通して機能する要素をハードウェアで構成する一方、各音源方式毎に機能する要素をDSP内のソフトウェアで構成することによって、複数の音源方式に対応しながらも同時発音チャンネル数の低減を回避して自由度の高い楽音形成を可能にした音源装置が開示されている。   As this type of device, for example, in Patent Document 1, elements that function in common with a plurality of sound source systems are configured by hardware, while elements that function for each sound source system are configured by software in the DSP. In addition, a sound source device is disclosed in which it is possible to form a musical sound with a high degree of freedom by avoiding a reduction in the number of simultaneous sound generation channels while supporting a plurality of sound source methods.

特許第3858187号公報Japanese Patent No. 3858187

ところで、DSPを用いた音源装置では、上述したように、各様な音源方式に柔軟に対応可能な反面、機能拡張性に欠ける弊害がある。ここで言う機能拡張性とは、音源内部で処理中の信号を抽出し、抽出した信号について音源外部において所定の処理を施した後に再び音源内部に戻すことを指す。この為、音源内部から取り出した信号を、音源外部において遅延させるディレイ処理を施して再び音源内部に戻したり、音源からの信号抽出および音源への信号帰還に伴う経路遅延を有効活用するディレイ処理を具現することが出来ないという問題がある。   By the way, as described above, the sound source device using the DSP can flexibly cope with various sound source methods, but has a problem of lack of function expandability. The function extensibility here refers to extracting a signal being processed inside the sound source, performing predetermined processing on the extracted signal outside the sound source, and then returning it to the inside of the sound source again. For this reason, delay processing that delays the signal extracted from the inside of the sound source outside the sound source and returns it to the inside of the sound source again, or delay processing that effectively utilizes the path delay associated with signal extraction from the sound source and signal feedback to the sound source. There is a problem that it cannot be realized.

本発明は、このような事情に鑑みてなされたもので、音源内部から取り出した信号を遅延させるディレイ処理を施して再び音源内部に戻したり、音源からの信号抽出および音源への信号帰還に伴う経路遅延を有効活用するディレイ処理を具現することができる音源装置およびプログラムを提供することを目的としている。   The present invention has been made in view of such circumstances, and performs delay processing for delaying a signal extracted from the sound source to return it to the sound source again, accompanying signal extraction from the sound source and signal feedback to the sound source. An object of the present invention is to provide a sound source device and a program that can implement a delay process that effectively uses a path delay.

上記目的を達成するため、請求項1に記載の発明では、 楽音修飾する各種モジュールを備えた音源装置において、前記各種モジュールの何れかの出力を抽出する抽出手段と、前記抽出手段により抽出された信号を送信する送信手段と、前記送信手段により送信された信号が外部装置で所定時間遅延されて帰還する信号を受信する受信手段と、前記受信手段により受信される信号を前記各種モジュールの何れかに入力する入力手段と、前記抽出手段が信号抽出してから前記入力手段が信号入力するまでの経路遅延時間を取得する経路遅延取得手段とを具備することを特徴とする。   In order to achieve the above object, according to the first aspect of the present invention, in the sound source device provided with various modules for modifying the musical sound, the extraction means for extracting any output of the various modules and the extraction means A transmitting means for transmitting a signal; a receiving means for receiving a signal that is delayed by a predetermined time in an external device for feedback; and a signal received by the receiving means from any of the various modules. And a path delay acquisition means for acquiring a path delay time from when the extraction means extracts a signal to when the input means inputs a signal.

上記請求項1に従属する請求項2に記載の発明では、前記送信手段は、前記抽出手段により抽出された信号をバイフェーズマーク方式によってエンコードしたSPDIF信号を送信することを特徴とする。   The invention according to claim 2 dependent on claim 1 is characterized in that the transmission means transmits an SPDIF signal obtained by encoding the signal extracted by the extraction means by a biphase mark method.

上記請求項1に従属する請求項3に記載の発明では、前記受信手段は、外部装置がバイフェーズマーク方式によってエンコードしたSPDIF信号を受信してデコード出力することを特徴とする。   The invention according to claim 3 that depends on claim 1 is characterized in that the receiving means receives and decodes the SPDIF signal encoded by the external apparatus by the biphase mark method.

上記請求項1に従属する請求項4に記載の発明では、前記経路遅延取得手段は、前記抽出手段が信号抽出した時点から前記入力手段が信号入力する時点までの総遅延時間を計時する計時手段と、前記計時手段により計時された総遅延時間から外部装置での遅延時間を減算して経路遅延時間を算出する経路遅延算出手段とを具備することを特徴とする。   In the invention according to claim 4 subordinate to claim 1, the path delay acquisition means counts the total delay time from the time when the extraction means extracts the signal to the time when the input means inputs the signal. And a path delay calculating means for calculating a path delay time by subtracting the delay time in the external device from the total delay time measured by the time measuring means.

請求項5に記載の発明では、楽音修飾する各種モジュールを備えた音源装置で実行されるプログラムであって、前記各種モジュールの何れかの出力を抽出する抽出ステップと、前記抽出ステップにより抽出された信号を送信する送信ステップと、前記送信ステップにより送信された信号が外部装置で所定時間遅延されて帰還する信号を受信する受信ステップと、前記受信ステップにより受信される信号を前記各種モジュールの何れかに入力する入力ステップと、前記抽出ステップで信号抽出してから前記入力ステップで信号入力するまでの経路遅延時間を取得する経路遅延取得ステップとをコンピュータに実行させることを特徴とする。   The invention according to claim 5 is a program that is executed by a sound source device including various modules for modifying musical sounds, and is extracted by the extraction step of extracting any output of the various modules, and the extraction step. A transmission step of transmitting a signal; a reception step of receiving a signal that is delayed by a predetermined time in an external device for feedback; and a signal received by the reception step of any of the various modules And a path delay acquisition step of acquiring a path delay time from signal extraction in the extraction step to signal input in the input step.

本発明では、音源内部から取り出した信号を遅延させるディレイ処理を施して再び音源内部に戻したり、音源からの信号抽出および音源への信号帰還に伴う経路遅延を有効活用するディレイ処理を具現することが出来る。   In the present invention, delay processing that delays a signal extracted from the inside of the sound source and returns it to the inside of the sound source again, or implements delay processing that effectively uses the path delay associated with signal extraction from the sound source and signal feedback to the sound source. I can do it.

実施の一形態による楽音発生装置100の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the musical tone generator 100 by one Embodiment. 信号処理部16と音源17との間で授受されるSPDIF信号のフォーマットを示す図である。It is a figure which shows the format of the SPDIF signal transmitted / received between the signal processing part 16 and the sound source 17. FIG. 音源17の構成を示すブロック図である。3 is a block diagram showing a configuration of a sound source 17. FIG. CPU10が実行する経路遅延計測処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the path | route delay measurement process which CPU10 performs. 経路遅延時間を説明するための図である。It is a figure for demonstrating path | route delay time.

以下、図面を参照して本発明の実施形態について説明する。
A.構成
(1)全体構成
図1は、本発明の実施の一形態による音源装置を備えた楽音発生装置100の全体構成を示すブロック図である。図1において、CPU10は、操作部14が発生するスイッチイベントに応じて装置各部を制御したり、鍵盤13が発生する演奏情報に応じて音源17を制御する。本発明の要旨に係わるCPU10の特徴的な処理動作については追って述べる。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
A. Configuration (1) Overall configuration
FIG. 1 is a block diagram showing an overall configuration of a musical sound generating apparatus 100 including a sound source device according to an embodiment of the present invention. In FIG. 1, the CPU 10 controls each part of the apparatus according to a switch event generated by the operation unit 14, and controls the sound source 17 according to performance information generated by the keyboard 13. A characteristic processing operation of the CPU 10 according to the gist of the present invention will be described later.

ROM11には、CPU10にロードされる各種プログラムデータが記憶される。ここで言う各種プログラムとは、後述する経路遅延計測処理を含む。RAM12には、CPU10の処理に用いられる各種レジスタ・フラグデータが一時記憶される。鍵盤13は、演奏操作(押離鍵操作)に応じたキーオン/キーオフ信号、鍵番号およびベロシティ等の演奏情報を発生する。操作部14は、装置パネルに配設される各種操作スイッチを有し、操作されたスイッチ種に対応したスイッチイベントを発生する。   The ROM 11 stores various program data loaded into the CPU 10. The various programs referred to here include path delay measurement processing described later. The RAM 12 temporarily stores various register / flag data used for processing of the CPU 10. The keyboard 13 generates performance information such as a key-on / key-off signal, a key number, and velocity according to a performance operation (press / release key operation). The operation unit 14 has various operation switches arranged on the apparatus panel, and generates a switch event corresponding to the operated switch type.

表示部15は、CPU10から供給される表示制御信号に応じて、装置の動作状態や設定状態などを画面表示する。信号処理部16は、SPDIFトランシーバを備え、音源17から出力されるSPDIF信号を受信復調して得た復号データに対して遅延処理を施し、これにより得られる遅延データをSPDIF信号に符号化して音源17に出力する。   The display unit 15 displays the operation state and setting state of the apparatus on the screen in accordance with the display control signal supplied from the CPU 10. The signal processing unit 16 includes an SPDIF transceiver, performs delay processing on decoded data obtained by receiving and demodulating the SPDIF signal output from the sound source 17, and encodes the delay data obtained thereby into a SPDIF signal to generate a sound source. 17 to output.

音源17は、DSPを用いた周知の波形メモリ読み出し方式で構成され、鍵盤13から出力される演奏情報に基づきCPU10が発生する楽音パラメータに従って楽音データを形成して出力する。また、音源17では、後述するように、ユーザ指定のモジュール(後述する)から出力されるデータをSPDIF信号に符号化して信号処理部16に供給すると共に、当該信号処理部16から出力されるSPDIF信号を復号化してユーザ指定のモジュールに入力する機能も備える。サウンドシステム18は、音源17から出力される楽音データをD/A変換し、これにより得られるアナログ形式の出力信号から不要ノイズを除去する等のフィルタリングを施した後、信号増幅してスピーカから発音させる。   The tone generator 17 is configured by a well-known waveform memory reading method using a DSP, and forms and outputs musical tone data according to musical tone parameters generated by the CPU 10 based on performance information output from the keyboard 13. Further, as will be described later, the sound source 17 encodes data output from a user-specified module (described later) into an SPDIF signal and supplies it to the signal processing unit 16 and also outputs the SPDIF output from the signal processing unit 16. It also has a function of decoding a signal and inputting it to a user-specified module. The sound system 18 performs D / A conversion on the musical sound data output from the sound source 17 and performs filtering such as removing unnecessary noise from the resulting analog output signal, and then amplifies the signal to generate sound from the speaker. Let

(2)SPDIF信号の信号フォーマット
次に、図2を参照して、信号処理部16と音源17との間で授受されるSPDIF信号のフォーマットについて説明する。図2は、2chステレオデータをトランスポートするSPDIFフォーマットの一例を示す図である。SPDIF信号は、ブロック単位に区切られ、1つのブロックは192個のフレーム#0〜#191から構成される。
(2) Signal Format of SPDIF Signal Next, the format of the SPDIF signal exchanged between the signal processing unit 16 and the sound source 17 will be described with reference to FIG. FIG. 2 is a diagram illustrating an example of an SPDIF format for transporting 2ch stereo data. The SPDIF signal is divided into block units, and one block is composed of 192 frames # 0 to # 191.

1つのフレームの期間は、転送するデータのサンプリング周期(1/fs)に相当する。1つのフレームは、2つのサブフレーム(LchサブフレームおよびRchサブフレーム)から構成される。1つのサブフレームは、0SB〜31SBの32ビット幅を有し、その内、0SB〜3SBにはプリアンブルと呼ばれる4ビットの同期コードSync Codeと、4SB〜27SBの最大24ビット長のオーディオサンプルAudio Sampleと、28SB〜31SBの4ビットの制御信号とを備える。サブフレーム中の同期コードSync Code(プリアンブル)を除く、4SB〜31SBの転送データは、1ビットを2ビットで表すバイフェーズマーク方式によってエンコード(BMCエンコード)される。   One frame period corresponds to a sampling period (1 / fs) of data to be transferred. One frame is composed of two subframes (Lch subframe and Rch subframe). One subframe has a 32-bit width of 0SB to 31SB. Among them, a 0-bit to 3SB includes a 4-bit synchronization code Sync Code called a preamble, and an audio sample Audio Sample with a maximum length of 24 bits of 4SB to 27SB. And a 4-bit control signal of 28SB to 31SB. The transfer data of 4SB to 31SB, excluding the synchronization code Sync Code (preamble) in the subframe, is encoded (BMC encoded) by the biphase mark method in which 1 bit is represented by 2 bits.

フレーム#0中の先頭サブフレームにおける同期コードSync Codeはスタートビットに相当する「B」、次のサブフレームにおける同期コードSync Codeは「W」、次フレーム#1中の先頭サブフレームにおける同期コードSync Codeは「M」、以降はフレーム#191に達するまで「W」と「M」が交互に繰り返される。オーディオサンプルAudio Sampleは、通常、1サンプル20ビット長のデータであるが、予備AUXの4ビットを用いれば24ビット長のデータでも対応可能となる。   The synchronization code Sync Code in the first subframe in frame # 0 is “B” corresponding to the start bit, the synchronization code Sync Code in the next subframe is “W”, and the synchronization code Sync in the first subframe in the next frame # 1 The code is “M”, and thereafter “W” and “M” are alternately repeated until the frame # 191 is reached. The audio sample Audio Sample is usually 20-bit data per sample. However, if 4-bit spare AUX is used, even 24-bit data can be handled.

4ビットの制御信号は、28SB目のバリディティV、29SB目のユーザデータU、30SB目のチャンネルステータスCおよび31SB目の偶数パリティPから構成される。バリディティVは、オーディオサンプルAudio Sampleの有効・無効を表すビットであり、有効ならば「0(L)」、無効ならば「1(H)」となる。ユーザデータUはユーザ定義情報であり、例えば1ブロック中192ビットでCD記録時の先頭からの経過時間や曲中の経過時間などの時間情報を表すのに用いられる。   The 4-bit control signal is composed of the 28SB validity V, the 29SB user data U, the 30SB channel status C, and the 31SB even parity P. The validity V is a bit indicating validity / invalidity of the audio sample Audio Sample, and is “0 (L)” if valid, and “1 (H)” if invalid. The user data U is user-defined information, and is used, for example, to represent time information such as an elapsed time from the beginning at the time of CD recording or an elapsed time in a song with 192 bits in one block.

チャンネルステータスCは、オーディオサンプルAudio Sampleやフレームに関する属性(例えばサンプリング周期や著作権を表す情報など)を表すのに用いられる。偶数パリティPには、サブフレーム中の同期コードSync Code(プリアンブル)を除く、4SB〜31SBまでの転送データのパリティチェック値がセットされる。   The channel status C is used to indicate an audio sample Audio Sample or an attribute relating to a frame (for example, information indicating a sampling period or copyright). In the even parity P, the parity check value of the transfer data from 4SB to 31SB excluding the synchronization code Sync Code (preamble) in the subframe is set.

(3)音源17の構成
次に、図3を参照して音源17の構成について説明する。音源17は周知のDSPから構成される。したがって、図3はそのDSPにおいて実行されるマイクロプログラムの各機能をハードウェアイメージとして捉らえた機能ブロック図である。この図に示す音源17は、各モジュール(波形発生部30、フィルタ部31、エンベロープ発生部32、ミキサ部33および効果付与部34)と、入出力部(マルチプレクサ35、SPDIF送信部36、SPDIF受信部37およびデマルチプレクサ38)とを備える。
(3) Configuration of Sound Source 17 Next, the configuration of the sound source 17 will be described with reference to FIG. The sound source 17 is composed of a known DSP. Therefore, FIG. 3 is a functional block diagram in which each function of the microprogram executed in the DSP is regarded as a hardware image. The sound source 17 shown in this figure includes modules (a waveform generator 30, a filter 31, an envelope generator 32, a mixer 33, and an effect applying unit 34) and an input / output unit (multiplexer 35, SPDIF transmitter 36, SPDIF receiver). Unit 37 and demultiplexer 38).

波形発生部30は、各種音色の波形データを記憶する周知の波形メモリ読み出し方式で構成され、演奏情報に応じてCPU10が発生する楽音パラメータに従い、指定音色の波形データを指定音高で読み出す。フィルタ部31は、周知のDCF(デジタル制御フィルタ)から構成され、CPU10から供給されるフィルタ係数に応じて、例えばDCFのカットオフ周波数を変更してローパス特性を変化させ、これにより波形発生部50から出力される波形データの音色を制御する。   The waveform generator 30 is configured by a well-known waveform memory reading method for storing waveform data of various timbres, and reads out waveform data of a specified tone color at a specified pitch according to a musical tone parameter generated by the CPU 10 according to performance information. The filter unit 31 is composed of a well-known DCF (digital control filter), and changes the low-pass characteristic by changing the cutoff frequency of the DCF, for example, according to the filter coefficient supplied from the CPU 10, thereby the waveform generation unit 50. Controls the tone of the waveform data output from.

エンベロープ発生部32は、CPU10から供給されるADSR型エンベロープレベル/レートに従った音量制御用のエンベロープ波形を発生し、それをフィルタ部51から入力される波形データに乗算して出力する。以上の構成要素30〜32は、1つの発音チャンネルに対応する構成であり、その構成を時分割動作させることによって複数の発音チャンネルからの同時発音(ポリフォニック発音)を実現する。   The envelope generating unit 32 generates an envelope waveform for volume control according to the ADSR type envelope level / rate supplied from the CPU 10, and multiplies the waveform waveform input from the filter unit 51 for output. The above components 30 to 32 are components corresponding to one sounding channel, and realize simultaneous sounding (polyphonic sounding) from a plurality of sounding channels by operating the structure in a time-sharing manner.

ミキサ部33は、エンベロープ発生部32から出力される各発音チャンネル毎の波形データについて、CPU10から供給される混合比率に従ってミキシングした楽音データを出力する。効果付与部34は、CPU10から供給されるエフェクト種により指定される種類の効果をミキサ部33の出力に付与した楽音データを出力する。   The mixer unit 33 outputs musical tone data obtained by mixing the waveform data for each tone generation channel output from the envelope generation unit 32 according to the mixing ratio supplied from the CPU 10. The effect applying unit 34 outputs musical sound data in which the effect of the type specified by the effect type supplied from the CPU 10 is applied to the output of the mixer unit 33.

マルチプレクサ35は、各モジュール(波形発生部30、フィルタ部31、エンベロープ発生部32、ミキサ部33および効果付与部34)の内、ユーザ操作(スイッチ操作)で指定されるモジュールの出力を選択してSPDIF送信部36に供給する。SPDIF送信部36は、マルチプレクサ35を介して抽出されるモジュール出力をSPDIF信号に符号化して信号処理部16(図1参照)に伝送する。   The multiplexer 35 selects the output of the module specified by the user operation (switch operation) among the modules (the waveform generation unit 30, the filter unit 31, the envelope generation unit 32, the mixer unit 33, and the effect applying unit 34). This is supplied to the SPDIF transmission unit 36. The SPDIF transmission unit 36 encodes the module output extracted via the multiplexer 35 into an SPDIF signal and transmits it to the signal processing unit 16 (see FIG. 1).

SPDIF受信部37は、信号処理部16から伝送されるSPDIF信号を復号化して出力する。デマルチプレクサ38は、SPDIF受信部37が出力する受信データを、各モジュール(波形発生部30、フィルタ部31、エンベロープ発生部32、ミキサ部33および効果付与部34)の内、ユーザ操作(スイッチ操作)で指定されるモジュールに入力させる。   The SPDIF receiving unit 37 decodes and outputs the SPDIF signal transmitted from the signal processing unit 16. The demultiplexer 38 converts the received data output from the SPDIF receiving unit 37 into user operation (switch operation) among the modules (the waveform generation unit 30, the filter unit 31, the envelope generation unit 32, the mixer unit 33, and the effect applying unit 34). ) Input to the module specified by.

このような構成によれば、例えばフィルタ部31の出力を抽出して信号処理部16に伝送し、当該信号処理部16において高域減衰させながら遅延を繰り返すディレイ処理を施し、それをエンベロープ発生部32に入力させるには、図5(a)に図示する経路で信号処理部16と音源17とがSPDIF信号を授受する。   According to such a configuration, for example, the output of the filter unit 31 is extracted and transmitted to the signal processing unit 16, and the signal processing unit 16 performs delay processing that repeats the delay while performing high-frequency attenuation, and outputs the delay processing to the envelope generation unit. In order to input to 32, the signal processing unit 16 and the sound source 17 transmit and receive the SPDIF signal through the path shown in FIG.

すなわち、フィルタ部31の出力を、マルチプレクサ35を介してSPDIF送信部36に供給し、当該SPDIF送信部36により符号化されたSPDIF信号を信号処理部16に伝送する。信号処理部16では、伝送されたSPDIF信号を復号化して得られる受信データについてローパスフィルタリングLPFを施した後、遅延メモリを介して遅延付加する。   That is, the output of the filter unit 31 is supplied to the SPDIF transmission unit 36 via the multiplexer 35, and the SPDIF signal encoded by the SPDIF transmission unit 36 is transmitted to the signal processing unit 16. The signal processing unit 16 applies low-pass filtering LPF to the received data obtained by decoding the transmitted SPDIF signal, and then adds a delay via a delay memory.

遅延付加されたデータは、信号処理部16においてSPDIF信号に符号化され、SPDIF受信部37に伝送される。そして、SPDIF受信部37では、受信したSPDIF信号を復号化してデマルチプレクサ38に供給する。デマルチプレクサ38では、SPDIF受信部37が出力する受信データをエンベロープ発生部32に供給する。これにより、音源内部から取り出した信号を遅延させるディレイ処理を施して再び音源内部に戻すことが可能になる。   The delayed data is encoded into an SPDIF signal by the signal processing unit 16 and transmitted to the SPDIF receiving unit 37. Then, the SPDIF receiving unit 37 decodes the received SPDIF signal and supplies it to the demultiplexer 38. The demultiplexer 38 supplies the reception data output from the SPDIF receiver 37 to the envelope generator 32. As a result, it is possible to perform a delay process for delaying the signal extracted from the inside of the sound source and return it to the inside of the sound source again.

B.動作
次に、上記構成による楽音発生装置100の動作として、図4〜図5を参照してCPU10が実行する経路遅延計測処理について述べる。上述した一例のように、フィルタ部31の出力を信号処理部16において高域減衰させながら遅延を繰り返すディレイ処理を施した後、エンベロープ発生部32に入力させるには、図5(a)に図示する経路で信号処理部16と音源17とがSPDIF信号を授受するが、その際の符号化および復号化に要する処理時間などを含む経路遅延時間を予め計測しておく必要がある。
B. Operation Next, as the operation of the tone generator 100 having the above-described configuration, a path delay measurement process executed by the CPU 10 will be described with reference to FIGS. As shown in FIG. 5 (a), as shown in FIG. 5 (a), in order to cause the output of the filter unit 31 to be input to the envelope generation unit 32 after being subjected to delay processing that repeats the delay while the signal processing unit 16 attenuates the high frequency band. The signal processing unit 16 and the sound source 17 exchange the SPDIF signal through the path to be transmitted, and it is necessary to measure the path delay time including the processing time required for encoding and decoding at that time in advance.

そこで、CPU10では、その経路遅延時間を計測する経路遅延計測処理を実行する。経路遅延計測処理が実行されると、CPU10は図4に図示するフローチャートのステップS1に進み、タイマをクリアし、続くステップS2では、タイマスタートと同時に、遅延計測用データの出力を音源17に指示する。具体的には、例えば音源17の波形発生部30から1サンプル分の波形データの読み出しを指示する。   Therefore, the CPU 10 executes a path delay measurement process for measuring the path delay time. When the path delay measurement process is executed, the CPU 10 proceeds to step S1 in the flowchart shown in FIG. 4 to clear the timer, and in the subsequent step S2, instructs the sound source 17 to output delay measurement data simultaneously with the start of the timer. To do. Specifically, for example, reading of waveform data for one sample is instructed from the waveform generator 30 of the sound source 17.

次いで、ステップS3では、データ受信するまで待機する。このデータ受信待機とは、音源17の波形発生部30から出力された波形データが、図3に図示される「マルチプレクサ35」→「SPDIF送信部36」→「信号処理部16」→「SPDIF受信部37」→「デマルチプレクサ38」を一巡して音源17の楽音データとして出力されるまでを指す。   Next, in step S3, the process waits until data is received. This data reception standby means that the waveform data output from the waveform generator 30 of the sound source 17 is “multiplexer 35” → “SPDIF transmitter 36” → “signal processor 16” → “SPDIF reception” shown in FIG. Section 37 ”→“ Demultiplexer 38 ”means a cycle until the sound data of the sound source 17 is output.

そして、データを受信すると、上記ステップS3の判断結果が「YES」となり、ステップS4に進み、タイマを停止する。この後、ステップS5に進み、タイマスタートからタイマ停止するまでのタイマカウント値に対応する総遅延時間から信号処理部16の遅延メモリの遅延時間を減算した結果に基づき経路遅延時間(遅延段数換算)を算出する。この後、ステップS6に進み、算出した経路遅延時間(遅延段数換算)をRAM12の遅延時間テーブル(不図示)に登録して本処理を終える。なお、CPU10は、RAM12の遅延時間テーブルに登録された経路遅延時間(遅延段数換算)を参照して実際に必要な遅延段数を信号処理部16に指示する。   When the data is received, the determination result in step S3 is “YES”, the process proceeds to step S4, and the timer is stopped. Thereafter, the process proceeds to step S5, where the path delay time (delay stage number conversion) is based on the result of subtracting the delay time of the delay memory of the signal processing unit 16 from the total delay time corresponding to the timer count value from the timer start to the timer stop. Is calculated. Thereafter, the process proceeds to step S6, where the calculated path delay time (delayed in the number of delay stages) is registered in a delay time table (not shown) of the RAM 12, and the present process ends. The CPU 10 refers to the path delay time (delayed in the number of delay stages) registered in the delay time table of the RAM 12 and instructs the signal processing unit 16 of the actually required delay stage number.

図5(a)に図示した経路遅延の無い理想的な一例ならば、信号処理部16においてサンプリングレート44KHzの楽音データを1sec遅延させる為には、44100ステップの遅延段数を備えた遅延メモリが必要になる。ところが、実際には同図(b)に図示するように経路遅延が存在する。例えば上述した経路遅延計測処理により得られ、RAM12の遅延時間テーブルに登録された経路遅延時間(遅延段数)が22050ステップであったとすると、CPU10はRAM12の遅延時間テーブルに登録された経路遅延時間(遅延段数)を参照し、その分を相殺した22050ステップの遅延段数を信号処理部16に指示する。つまり、信号処理部16では、22050ステップの遅延段数を有する遅延メモリであれば、サンプリングレート44KHzの楽音データを1sec遅延させることが可能になるので、音源からの信号抽出および音源への信号帰還に伴う経路遅延を有効活用するディレイ処理を具現することが出来る。   In the ideal example with no path delay shown in FIG. 5A, a delay memory having a delay stage number of 44100 steps is required in order to delay the musical sound data of sampling rate 44 KHz by 1 sec in the signal processing unit 16. become. However, there is actually a path delay as shown in FIG. For example, if the path delay time (the number of delay stages) obtained by the above-described path delay measurement process and registered in the delay time table of the RAM 12 is 22050 steps, the CPU 10 stores the path delay time (registered in the delay time table of the RAM 12 ( The number of delay stages is referred to, and the signal processor 16 is instructed by the number of delay stages of 22050 steps, which is offset by that amount. That is, in the signal processing unit 16, if the delay memory has a delay stage number of 22050 steps, it is possible to delay musical sound data with a sampling rate of 44 KHz for 1 sec, so that signal extraction from the sound source and signal feedback to the sound source are possible. It is possible to implement a delay process that effectively uses the accompanying path delay.

以上のように、本実施形態では、各モジュール(波形発生部30、フィルタ部31、エンベロープ発生部32、ミキサ部33および効果付与部34)の内、ユーザ操作(スイッチ操作)で指定されるモジュールの出力を選択するマルチプレクサ35と、マルチプレクサ35を介して抽出されるモジュール出力をSPDIF信号に符号化して信号処理部16に伝送するSPDIF送信部36と、ディレイ処理する信号処理部16から伝送されるSPDIF信号を復号化して出力するSPDIF受信部37と、SPDIF受信部37が出力する受信データを、各モジュール(波形発生部30、フィルタ部31、エンベロープ発生部32、ミキサ部33および効果付与部34)の内、ユーザ操作(スイッチ操作)で指定されるモジュールに入力するデマルチプレクサ38とを設けたので、音源内部から取り出した信号を遅延させるディレイ処理を施して再び音源内部に戻すことができる。   As described above, in this embodiment, among the modules (the waveform generation unit 30, the filter unit 31, the envelope generation unit 32, the mixer unit 33, and the effect imparting unit 34), a module specified by a user operation (switch operation). Is transmitted from the multiplexer 35 that selects the output of the signal, the SPDIF transmission unit 36 that encodes the module output extracted via the multiplexer 35 into the SPDIF signal, and transmits the SPDIF signal to the signal processing unit 16. The SPDIF receiving unit 37 that decodes and outputs the SPDIF signal, and the reception data output from the SPDIF receiving unit 37 are converted into modules (waveform generating unit 30, filter unit 31, envelope generating unit 32, mixer unit 33, and effect applying unit 34). ) Input to the module specified by the user operation (switch operation) Since there is provided a multiplexer 38 can be again returned to the internal sound by performing delay processing for delaying the signal extracted from the internal tone generator.

また、「マルチプレクサ35」→「SPDIF送信部36」→「信号処理部16」→「SPDIF受信部37」→「デマルチプレクサ38」を一巡する経路遅延時間を取得し、取得した経路遅延時間分を、ディレイ処理に必要な遅延段数に組み入れる為、音源からの信号抽出および音源への信号帰還に伴う経路遅延を有効活用するディレイ処理を具現することが出来る。   Also, a path delay time for making a round of “multiplexer 35” → “SPDIF transmission section 36” → “signal processing section 16” → “SPDIF reception section 37” → “demultiplexer 38” is acquired, and the acquired path delay time is obtained. In order to incorporate this into the number of delay stages necessary for the delay process, it is possible to implement a delay process that effectively utilizes the path delay associated with signal extraction from the sound source and signal feedback to the sound source.

なお、上述した実施形態では、音源17を制御する上位のCPU10が経路遅延計測処理(図4参照)を実行する一例について述べたが、これに限らず、経路遅延計測処理を音源10が実行する態様であっても構わない。この場合、取得された経路遅延時間(遅延段数換算)を音源10がCPU10に送出し、CPU10では音源10から受領した経路遅延時間(遅延段数換算)をRAM12の遅延時間テーブルに登録すると共に、当該遅延時間テーブルに登録された経路遅延時間(遅延段数換算)を参照して実際に必要な遅延段数を信号処理部16に指示することになる。   In the above-described embodiment, an example in which the host CPU 10 that controls the sound source 17 executes the path delay measurement process (see FIG. 4) is described. However, the present invention is not limited to this, and the sound source 10 executes the path delay measurement process. It may be an aspect. In this case, the sound source 10 sends the acquired path delay time (delayed in the number of delay stages) to the CPU 10, and the CPU 10 registers the path delay time (converted in the number of delay stages) received from the sound source 10 in the delay time table of the RAM 12, and With reference to the path delay time (delayed in the number of delay stages) registered in the delay time table, the signal processor 16 is instructed to determine the actually required number of delay stages.

10 CPU
11 ROM
12 RAM
13 鍵盤
14 操作部
15 表示部
16 信号処理部
17 音源
18 サウンドシステム
30 波形発生部
31 フィルタ部
32 エンベロープ発生部
33 ミキサ部
34 効果付与部
35 マルチプレクサ
36 SPDIF送信部
37 SPDIF受信部
38 デマルチプレクサ
100 楽音発生装置
10 CPU
11 ROM
12 RAM
DESCRIPTION OF SYMBOLS 13 Keyboard 14 Operation part 15 Display part 16 Signal processing part 17 Sound source 18 Sound system 30 Waveform generation part 31 Filter part 32 Envelope generation part 33 Mixer part 34 Effect imparting part 35 Multiplexer 36 SPDIF transmission part 37 SPDIF reception part 38 Demultiplexer 100 Musical sound Generator

Claims (5)

楽音修飾する各種モジュールを備えた音源装置において、
前記各種モジュールの何れかの出力を抽出する抽出手段と、
前記抽出手段により抽出された信号を送信する送信手段と、
前記送信手段により送信された信号が外部装置で所定時間遅延されて帰還する信号を受信する受信手段と、
前記受信手段により受信される信号を前記各種モジュールの何れかに入力する入力手段と、
前記抽出手段が信号抽出してから前記入力手段が信号入力するまでの経路遅延時間を取得する経路遅延取得手段と
を具備することを特徴とする音源装置。
In a sound source device equipped with various modules that modify music,
Extraction means for extracting any output of the various modules;
Transmitting means for transmitting the signal extracted by the extracting means;
Receiving means for receiving a signal that the signal transmitted by the transmitting means is delayed by a predetermined time in an external device and returned;
Input means for inputting a signal received by the receiving means to any of the various modules;
A sound source device comprising: a path delay acquisition unit that acquires a path delay time from when the extraction unit extracts a signal to when the input unit inputs a signal.
前記送信手段は、前記抽出手段により抽出された信号をバイフェーズマーク方式によってエンコードしたSPDIF信号を送信することを特徴とする請求項1記載の音源装置。   2. The sound source device according to claim 1, wherein the transmission unit transmits an SPDIF signal obtained by encoding the signal extracted by the extraction unit by a biphase mark method. 前記受信手段は、外部装置がバイフェーズマーク方式によってエンコードしたSPDIF信号を受信してデコード出力することを特徴とする請求項1記載の音源装置。   2. The sound source device according to claim 1, wherein the receiving unit receives and decodes an SPDIF signal encoded by an external device using a biphase mark method. 前記経路遅延取得手段は、
前記抽出手段が信号抽出した時点から前記入力手段が信号入力する時点までの総遅延時間を計時する計時手段と、
前記計時手段により計時された総遅延時間から外部装置での遅延時間を減算して経路遅延時間を算出する経路遅延算出手段と
を具備することを特徴とする請求項1記載の音源装置。
The route delay acquisition means is
Time measuring means for measuring the total delay time from the time when the extracting means extracts the signal to the time when the input means inputs the signal;
The sound source device according to claim 1, further comprising: a path delay calculating unit that calculates a path delay time by subtracting a delay time in an external device from a total delay time measured by the time measuring unit.
楽音修飾する各種モジュールを備えた音源装置で実行されるプログラムであって、
前記各種モジュールの何れかの出力を抽出する抽出ステップと、
前記抽出ステップにより抽出された信号を送信する送信ステップと、
前記送信ステップにより送信された信号が外部装置で所定時間遅延されて帰還する信号を受信する受信ステップと、
前記受信ステップにより受信される信号を前記各種モジュールの何れかに入力する入力ステップと、
前記抽出ステップで信号抽出してから前記入力ステップで信号入力するまでの経路遅延時間を取得する経路遅延取得ステップと
をコンピュータに実行させることを特徴とするプログラム。
A program that is executed by a sound source device equipped with various modules for modifying musical sounds,
An extraction step of extracting any output of the various modules;
A transmission step of transmitting the signal extracted by the extraction step;
A reception step of receiving a signal in which the signal transmitted in the transmission step is delayed by a predetermined time in an external device and returned;
An input step of inputting the signal received in the reception step into any of the various modules;
A program causing a computer to execute a path delay acquisition step of acquiring a path delay time from signal extraction in the extraction step to signal input in the input step.
JP2010001049A 2010-01-06 2010-01-06 Tone generator and program Active JP5488976B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010001049A JP5488976B2 (en) 2010-01-06 2010-01-06 Tone generator and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010001049A JP5488976B2 (en) 2010-01-06 2010-01-06 Tone generator and program

Publications (2)

Publication Number Publication Date
JP2011141358A JP2011141358A (en) 2011-07-21
JP5488976B2 true JP5488976B2 (en) 2014-05-14

Family

ID=44457262

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010001049A Active JP5488976B2 (en) 2010-01-06 2010-01-06 Tone generator and program

Country Status (1)

Country Link
JP (1) JP5488976B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6079982B2 (en) * 2012-03-05 2017-02-15 カシオ計算機株式会社 Musical sound generating apparatus, musical sound generating method and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3225796B2 (en) * 1995-06-22 2001-11-05 ヤマハ株式会社 Signal processing device and tone processing device
JPH1027113A (en) * 1996-07-11 1998-01-27 Ricoh Co Ltd Firmware development support method and apparatus
JP2001229046A (en) * 2000-02-14 2001-08-24 Oki Electric Ind Co Ltd Test circuit
JP2004045871A (en) * 2002-07-12 2004-02-12 Kawai Musical Instr Mfg Co Ltd Electronic tone generator with rehearsal function
JP4115264B2 (en) * 2002-12-10 2008-07-09 ローランド株式会社 Delay device

Also Published As

Publication number Publication date
JP2011141358A (en) 2011-07-21

Similar Documents

Publication Publication Date Title
EP2261896B1 (en) Performance-related information output device, system provided with performance-related information output device, and electronic musical instrument
JP3915585B2 (en) DATA GENERATION METHOD, PROGRAM, RECORDING MEDIUM, AND DATA GENERATION DEVICE
EP1431955A1 (en) Coding heart rate information
JP6391265B2 (en) Electronic keyboard instrument
JP5953687B2 (en) Information processing apparatus and program
EP1569199A4 (en) Musical composition data creation device and method
JP5556075B2 (en) Performance information output device and performance system
JP5488976B2 (en) Tone generator and program
KR20150080740A (en) Method and apparatus for generating audio signal and vibration signal based on audio signal
JP5556076B2 (en) Sequence data output device, sound processing system, and electronic musical instrument
JP6079982B2 (en) Musical sound generating apparatus, musical sound generating method and program
JPH06195075A (en) Musical tone generating device
JP5488977B2 (en) Musical sound generator and program
JP7073709B2 (en) Electronic devices, control methods and programs for electronic devices, and audio systems
JP2005274597A (en) Electronic music apparatus and program
JP2004085609A (en) Apparatus and method for performing synchronous reproduction of audio data and performance data
JP3042314B2 (en) Music signal generator
JP3969249B2 (en) Apparatus and method for synchronous reproduction of audio data and performance data
JP2661508B2 (en) Tone control data communication method for electronic musical instruments
JP6683236B2 (en) Information transmission method and information transmission system
JP5434445B2 (en) Music signal control apparatus and program
JP2017058621A (en) Control information transmission/reception system, transmitter, receiver, control information transmission/reception method, transmission method, reception method, program and electronic music instrument
JPWO2019146285A1 (en) Electronic keyboard instrument, sound signal generating device, and sound signal generating method
JP2007122085A (en) Device and method for performing synchronous playback of voice data and performance data
KR101268994B1 (en) Midi replaying apparatus and method coordinating external apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121221

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140131

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140213

R150 Certificate of patent (=grant) or registration of utility model

Ref document number: 5488976

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150