JP2010128257A - Apparatus and program for producing musical sound - Google Patents

Apparatus and program for producing musical sound Download PDF

Info

Publication number
JP2010128257A
JP2010128257A JP2008303834A JP2008303834A JP2010128257A JP 2010128257 A JP2010128257 A JP 2010128257A JP 2008303834 A JP2008303834 A JP 2008303834A JP 2008303834 A JP2008303834 A JP 2008303834A JP 2010128257 A JP2010128257 A JP 2010128257A
Authority
JP
Japan
Prior art keywords
pad
sampling
sound
empty
waveform data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008303834A
Other languages
Japanese (ja)
Other versions
JP5481843B2 (en
Inventor
Yosuke Ishioka
洋介 石岡
Hiroshi Iwase
広 岩瀬
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 JP2008303834A priority Critical patent/JP5481843B2/en
Publication of JP2010128257A publication Critical patent/JP2010128257A/en
Application granted granted Critical
Publication of JP5481843B2 publication Critical patent/JP5481843B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an apparatus for producing musical sound for reproducing sampling sounds of types corresponding to the number of a plurality of installed pads even if a sampling sound registered in a memory is one kind. <P>SOLUTION: When sampling waveform data stored in a sampling buffer BUF are transferred to a pad area PE designated by user control (a step SD2), a flag expressing conditions (occupied pad/unoccupied pad) of PAD1-PAD4 corresponding to the registered/unregistered conditions of pad areas PE1-PE4 of a RAM12 is maintained. From contents of a register PADF, presence/absence of an unoccupied pad is determined (a step SD5), and if there is an unoccupied pad, according to a predetermined allocation rule and an arrangement position of the unoccupied pad to the occupied pad, a sampling waveform data reading start address to be assigned to the unoccupied pad and an effect parameter (effect data reading start address) are selected to be sent to a sound source 17 (a step SD6). <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

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

従来より、マイクロフォンを介して入力された音声信号にA/D変換を施してサンプリングした波形データをメモリに記憶しておき、音高指定操作(例えば、鍵盤における押鍵操作)に応じた読み出し速度で当該メモリから波形データを読み出すことによって、所望のピッチでサンプリング音を再生するようにした、所謂サンプリング機能を備えた楽音発生装置が知られており、この種の装置については、例えば特許文献1に開示されている。 Conventionally, waveform data sampled by performing A / D conversion on an audio signal input via a microphone is stored in a memory, and a reading speed corresponding to a pitch designation operation (for example, a key pressing operation on a keyboard) is stored. There is known a musical tone generator having a so-called sampling function that reads out waveform data from the memory so as to reproduce a sampled sound at a desired pitch. Is disclosed.

特開平11−119777号公報Japanese Patent Laid-Open No. 11-119777

ところで、上述した特許文献1に開示の装置において、打楽器演奏のようにパッド面を叩く操作(以下、パッド操作と称す)に応じてノートオンイベントを発生するパッドを複数設け、これら複数のパッドのそれぞれに対応付けてサンプリング音(サンプリングした波形データ)を記憶する複数のメモリ領域を備えれば、パッド操作されたパッドの種類に対応したサンプリング音を再生する電子打楽器となる。   By the way, in the apparatus disclosed in Patent Document 1 described above, a plurality of pads that generate note-on events in response to an operation of hitting the pad surface (hereinafter referred to as pad operation) like percussion instrument performance are provided. If a plurality of memory areas for storing sampling sounds (sampled waveform data) are provided in association with each other, an electronic percussion instrument that reproduces the sampling sounds corresponding to the type of pad operated.

こうした電子打楽器では、サンプリング音を記憶するメモリ領域とパッドとを一対一に対応付けているので、サンプリング音が登録済みのメモリ領域に対応付けられたパッド(以下、占有パッドと称す)のパッド操作ではサンプリング音を再生するが、サンプリング音が未登録のメモリ領域に対応付けられたパッド(以下、空きパッドと称す)のパッド操作ではサンプリング音は再生されない。したがって、例えば複数備えるパッドの中で占有パッドが一つだけならば、一種類のサンプリング音しか再生できないという問題がある。 In such an electronic percussion instrument, the memory area for storing the sampling sound and the pad are associated with each other in a one-to-one relationship. Therefore, the pad operation of the pad (hereinafter referred to as the occupied pad) associated with the memory area in which the sampling sound is registered. The sampling sound is reproduced, but the sampling sound is not reproduced by the pad operation of the pad (hereinafter referred to as an empty pad) associated with the memory area where the sampling sound is not registered. Therefore, for example, if there is only one occupied pad among a plurality of pads, there is a problem that only one type of sampling sound can be reproduced.

本発明は、このような事情に鑑みてなされたもので、メモリ登録されたサンプリング音が一種類であっても、複数備えるパッドの数に相当する種類のサンプリング音を再生することができる楽音発生装置および楽音発生プログラムを提供することを目的としている。 The present invention has been made in view of such circumstances, and even if there is only one type of sampling sound registered in the memory, musical tone generation that can reproduce the type of sampling sound corresponding to the number of pads provided in plurality is provided. An object is to provide a device and a musical tone generation program.

上記目的を達成するため、請求項1に記載の発明では、複数のパッドを有し、いずれかのパッドの操作に応じて発音を指示する発音指示手段と、入力音声をサンプリングして得たサンプリング音を、前記発音指示手段が備える複数のパッドにそれぞれ対応付けた記憶エリアのいずれかに記憶する記憶手段と、対応する記憶エリアにサンプリング音が登録された占有パッドもしくは未登録の空きパッドのいずれであるかを前記発音指示手段の複数のパッドについて判別し、空きパッドが存在する場合には、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング音と付与する効果とを選定する選定手段と、前記発音指示手段が占有パッドの操作に応じて発音を指示した場合には、当該占有パッドに対応する記憶エリアのサンプリング音を再生し、一方、空きパッドの操作に応じて発音を指示した場合には、前記選定手段により当該空きパッドに割り当てられたサンプリング音に効果付与して再生する再生手段とを具備することを特徴とする。 In order to achieve the above object, according to the first aspect of the present invention, sound generation instruction means having a plurality of pads and instructing sound generation according to an operation of any one of the pads, and sampling obtained by sampling the input sound Storage means for storing the sound in any of the storage areas respectively associated with the plurality of pads provided in the sound generation instruction means, and either an occupied pad in which the sampling sound is registered in the corresponding storage area or an unregistered empty pad If there is a vacant pad, the sampling sound to be assigned to the vacant pad and the effect to be applied are determined according to the position of the vacant pad relative to the occupied pad. When the selection means for selecting and the sound generation instruction means instruct the sound generation in response to the operation of the occupied pad, the corresponding sound corresponding to the occupied pad is selected. Reproducing means for reproducing the sampling sound in the storage area, and on the other hand, when instructing the sound generation in response to the operation of the empty pad, the selecting means provides an effect to the sampling sound assigned to the empty pad and reproduces it. It is characterized by comprising.

上記請求項1に従属する請求項2に記載の発明では、前記選定手段は、所定の割り当てルールに従い、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング音と付与する効果とを選定することを特徴とする。 In the invention according to claim 2 subordinate to claim 1, the selecting means provides the sampling sound to be assigned to the empty pad and the effect to be given according to the arrangement position of the empty pad with respect to the occupied pad according to a predetermined assignment rule. And selecting.

請求項3に記載の発明では、複数のパッドを有し、いずれかのパッドの操作に応じて発音を指示する発音指示手段と、入力音声をサンプリングして得たサンプリング波形データを、前記発音指示手段が備える複数のパッドにそれぞれ対応付けた記憶エリアのいずれかに記憶する波形データ記憶手段と、効果付与する態様を指定する複数種のエフェクトデータを記憶するエフェクトデータ記憶手段と、前記発音指示手段が備える複数のパッドのそれぞれについて、前記波形データ記憶手段の対応する記憶エリアにサンプリング波形データが登録された占有パッドもしくは前記波形データ記憶手段の対応する記憶エリアにサンプリング波形データが未登録の空きパッドのいずれであるかを判別するパッド判別手段と、前記パッド判別手段により複数のパッドの中に空きパッドが存在すると判別された場合に、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データとエフェクトデータの種類とを選定する選定手段と、前記発音指示手段が占有パッドの操作に応じて発音を指示した場合には、当該占有パッドに対応する記憶エリアのサンプリング波形データを波形データ記憶手段から読み出してサンプリング音を再生し、一方、空きパッドの操作に応じて発音を指示した場合には、前記選定手段により当該空きパッドに割り当てられたサンプリング波形データを前記波形データ記憶手段から読み出してサンプリング音を形成すると共に、前記選定手段により当該空きパッドに割り当てられた種類のエフェクトデータを前記エフェクトデータ記憶手段から読み出し、当該エフェクトデータに従った効果をその形成したサンプリング音に付与して再生する再生手段とを具備することを特徴とする。 According to a third aspect of the present invention, sound generation instruction means having a plurality of pads and instructing sound generation in response to an operation of any one of the pads, and sampling waveform data obtained by sampling the input voice are used as the sound generation instruction. Waveform data storage means for storing in any one of storage areas respectively associated with a plurality of pads provided in the means, effect data storage means for storing a plurality of types of effect data for designating a mode for applying an effect, and the sound generation instruction means For each of the plurality of pads included in the occupancy pad, an occupied pad in which sampling waveform data is registered in a corresponding storage area of the waveform data storage means or an empty pad in which sampling waveform data is not registered in a corresponding storage area of the waveform data storage means A pad discriminating means for discriminating between the two and the pad discriminating means Selecting means for selecting the sampling waveform data and the type of effect data to be assigned to the empty pad according to the arrangement position of the empty pad with respect to the occupied pad when it is determined that there is an empty pad among the pads, When the sound generation instruction means instructs the sound generation according to the operation of the occupied pad, the sampling waveform data in the storage area corresponding to the occupied pad is read from the waveform data storage means to reproduce the sampling sound, When sounding is instructed in accordance with an operation, the sampling waveform data assigned to the empty pad by the selecting means is read from the waveform data storage means to form a sampling sound, and the selecting means applies the empty pad to the empty pad. Assign the assigned effect data to the effect data Reading from the storage means, characterized by comprising a reproducing means for reproducing by applying the effect in accordance with the effect data in the form the sampling sound.

上記請求項3に従属する請求項4に記載の発明では、前記パッド判別手段は、入力音声をサンプリングしてサンプリング波形データを入力するサンプリング入力手段と、前記サンプリング入力手段により入力されたサンプリング波形データを、前記波形データ記憶手段の複数の記憶エリアの中からユーザ操作で指定される記憶エリアに格納する格納手段とを更に備え、前記格納手段がユーザ操作で指定される記憶エリアにサンプリング波形データを格納する毎に、前記発音指示手段の複数のパッドのそれぞれについて占有パッドもしくは空きパッドのいずれであるかを判別することを特徴とする。   In the invention according to claim 4, which is dependent on claim 3, the pad discriminating means samples the input voice and inputs the sampling waveform data, and the sampling waveform data inputted by the sampling input means. Is stored in a storage area designated by a user operation from among a plurality of storage areas of the waveform data storage means, and the storage means stores sampling waveform data in a storage area designated by a user operation. Each time it is stored, it is determined whether each of the plurality of pads of the sound generation instruction means is an occupied pad or an empty pad.

請求項5に記載の発明では、複数のパッドを有し、いずれかのパッドの操作に応じて発音を指示する発音指示処理と、入力音声をサンプリングして得たサンプリング音を、前記複数のパッドにそれぞれ対応付けた記憶エリアのいずれかに記憶する記憶処理と、対応する記憶エリアにサンプリング音が登録された占有パッドもしくは未登録の空きパッドのいずれであるかを前記複数のパッドについて判別し、空きパッドが存在する場合には、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング音と付与する効果とを選定する選定処理と、前記発音指示処理が占有パッドの操作に応じて発音を指示した場合には、当該占有パッドに対応する記憶エリアのサンプリング音を再生し、一方、空きパッドの操作に応じて発音を指示した場合には、前記選定処理により当該空きパッドに割り当てられたサンプリング音に効果付与して再生する再生処理とをコンピュータで実行させることを特徴とする。 According to the fifth aspect of the present invention, a sound generation instruction process for instructing sound generation in response to an operation of any one of the pads, and a sampling sound obtained by sampling the input sound are used as the plurality of pads. A storage process for storing in any of the storage areas associated with each of the plurality of pads, and determining whether the pad is an occupied pad or a non-registered empty pad in which the sampling sound is registered in the corresponding storage area, When there is a vacant pad, a selection process for selecting a sampling sound to be assigned to the vacant pad and an effect to be added according to the position of the vacant pad with respect to the occupied pad, and the sound generation instruction process is used for the operation of the occupied pad. If a sound is instructed accordingly, the sampled sound in the storage area corresponding to the occupied pad is played, while the empty pad is operated. Depending on the when instructed sound is characterized by executing a reproduction process of reproducing in effect applied to a sampling sound allocated to the empty pad by the selection process in a computer.

本発明では、メモリ登録されたサンプリング音が一種類であっても、複数備えるパッドの数に相当する種類のサンプリング音を再生することができる。   In the present invention, even if there is only one type of sampling sound registered in the memory, it is possible to reproduce the type of sampling sound corresponding to the number of pads provided.

以下、図面を参照して本発明の実施の形態について説明する。
A.構成
図1は、本発明の一実施形態による楽音発生装置100の全体構成を示すブロック図である。この図において、CPU10は、操作部14およびパッド16(PAD1〜PAD4)から供給されるイベントに応じて装置各部を制御するものであり、本発明の要旨に係わる特徴的な処理の動作については追って詳述する。
Embodiments of the present invention will be described below with reference to the drawings.
A. Constitution
FIG. 1 is a block diagram showing the overall configuration of a musical sound generating apparatus 100 according to an embodiment of the present invention. In this figure, the CPU 10 controls each part of the apparatus in accordance with an event supplied from the operation unit 14 and the pad 16 (PAD1 to PAD4). The characteristic processing operation according to the gist of the present invention will be described later. Detailed description.

ROM11は、図2に図示するように、プログラムエリアPDEおよびエフェクトデータエリアEDEを備える。ROM11のプログラムエリアPDEには、CPU10が実行する後述のメインルーチン、サンプリング処理、パッドパラメータアサイン処理およびパッド処理のプログラムを含む各種プログラムデータが記憶される。 As shown in FIG. 2, the ROM 11 includes a program area PDE and an effect data area EDE. The program area PDE of the ROM 11 stores various program data including a main routine, a sampling process, a pad parameter assignment process, and a pad process program, which will be described later, executed by the CPU 10.

ROM11のエフェクトデータエリアEDEには、複数種のエフェクトデータが格納される。エフェクトデータは、後述する音源17に供給され、当該音源17において生成されるサンプリング音を変調して効果付与する態様を指定する。本実施形態では、効果付与する態様が異なる6種類のエフェクトデータ(−3エフェクトデータ〜+3エフェクトデータ)がエフェクトデータエリアEDEに格納される。これら6種類のエフェクトデータの読み出しアドレスAD(−3)〜AD(+3)は、それぞれエフェクトパラメータとして扱われる。エフェクトパラメータで指定される6種類のエフェクトデータが意図するところについては追って述べる。   A plurality of types of effect data are stored in the effect data area EDE of the ROM 11. The effect data is supplied to a sound source 17 to be described later, and designates a mode in which an effect is imparted by modulating a sampling sound generated by the sound source 17. In the present embodiment, six types of effect data (-3 effect data to +3 effect data) having different effects are stored in the effect data area EDE. These six types of effect data read addresses AD (−3) to AD (+3) are each handled as an effect parameter. The purpose of the six types of effect data specified by the effect parameters will be described later.

RAM12は、図3に図示するように、ワークエリアWE、サンプリングバッファBUFおよびサンプリング波形データエリアSWDEを備える。ワークエリアWEには、CPU10の処理に用いる各種レジスタ/フラグデータが一時記憶される。サンプリングバッファBUFには、CPU10の制御の下に、後述するサンプリング入力部15によって一つのPADに割り当てるべく取り込まれたサンプリング波形データが一時記憶される。 As shown in FIG. 3, the RAM 12 includes a work area WE, a sampling buffer BUF, and a sampling waveform data area SWDE. In the work area WE, various register / flag data used for processing of the CPU 10 are temporarily stored. In the sampling buffer BUF, under the control of the CPU 10, sampling waveform data that has been taken in by the sampling input unit 15 described later to be assigned to one PAD is temporarily stored.

サンプリング波形データエリアSWDEは、パッド16に配設される4つのPAD1〜PAD4に各々対応したパッドエリアPE1〜PE4を備える。各パッドエリアPE1〜PE4には、それぞれサンプリング波形データ読み出し開始アドレスAD(PAD1)〜AD(PAD4)が割り当てられる。これらパッドエリアPE1〜PE4の内、ユーザ操作により指定されるパッドエリアPEにサンプリングバッファBUFのサンプリング波形データが転送格納される。 The sampling waveform data area SWDE includes pad areas PE1 to PE4 corresponding to the four PAD1 to PAD4 arranged on the pad 16, respectively. Sampling waveform data read start addresses AD (PAD1) to AD (PAD4) are assigned to the pad areas PE1 to PE4, respectively. Among these pad areas PE1 to PE4, the sampling waveform data of the sampling buffer BUF is transferred and stored in the pad area PE designated by the user operation.

表示部13は、例えばLCDパネル(図示略)と、CPU10から供給される表示制御信号に応じてLCDパネルを表示駆動する表示ドライバ(図示略)とから構成され、操作部14の操作に応じて設定される装置設定状態や動作状態などを画面表示する。操作部14は、図示せぬコンソールパネル上に配設される各種スイッチや操作キーから構成され、操作に対応したイベントを発生する。このイベントはCPU10のキースキャンにより取込まれる。操作部14に配設されるスイッチ種類としては、図示されていない電源スイッチの他、サンプリングの開始を指示するサンプリングスイッチや、サンプリングバッファBUFに取り込んだサンプリング波形データを格納するパッドエリアを指定するスイッチ等がある。 The display unit 13 includes, for example, an LCD panel (not shown) and a display driver (not shown) that drives the LCD panel in response to a display control signal supplied from the CPU 10. The device setting status and operation status to be set are displayed on the screen. The operation unit 14 includes various switches and operation keys arranged on a console panel (not shown), and generates an event corresponding to the operation. This event is captured by the CPU 10 key scan. As a switch type arranged in the operation unit 14, in addition to a power switch (not shown), a sampling switch for instructing the start of sampling, and a switch for designating a pad area for storing sampling waveform data taken into the sampling buffer BUF Etc.

サンプリング入力部15は、CPU10からのサンプリング開始指示に応じて、マイクロフォンを介して入力される音声信号あるいはオーディオ入力端子から供給される音声信号を一定レベルに増幅した後、所定のサンプリング周波数でA/D変換してなるサンプリング波形データを出力する。サンプリング入力部15から出力されるサンプリング波形データは、CPU10の制御の下に、上述したRAM12のサンプリングバッファBUFに取り込まれる。   The sampling input unit 15 amplifies the audio signal input via the microphone or the audio signal supplied from the audio input terminal to a certain level in accordance with a sampling start instruction from the CPU 10, and then performs A / A at a predetermined sampling frequency. Sampling waveform data obtained by D conversion is output. The sampling waveform data output from the sampling input unit 15 is taken into the sampling buffer BUF of the RAM 12 described above under the control of the CPU 10.

パッド16は、横一列に配置された4つのPAD1〜PAD4を備える。各PADはパッド面に配設されるパッドスイッチを有し、ユーザのパッド操作に応じてノートオンイベントを発生する。なお、これら4つのPAD1〜PAD4において、上述したRAM12のサンプリング波形データエリアSWDE中の対応するパッドエリアPEにサンプリング波形データが登録されていれば占有パッドと称し、一方、対応するパッドエリアPEにサンプリング波形データが未登録ならば空きパッドと称する。 The pad 16 includes four PAD1 to PAD4 arranged in a horizontal row. Each PAD has a pad switch disposed on the pad surface, and generates a note-on event in response to a user's pad operation. In these four PAD1 to PAD4, if the sampling waveform data is registered in the corresponding pad area PE in the sampling waveform data area SWDE of the RAM 12 described above, it is referred to as an occupied pad, while the sampling is performed in the corresponding pad area PE. If the waveform data is not registered, it is called an empty pad.

音源17は、周知の波形メモリ読み出し方式で構成され、同時発音可能な複数の発音チャンネルを備える。本実施形態では、PAD1〜PAD4にアサインされる4つの発音チャンネルを備える。これら発音チャンネルの内、占有パッドの発音チャンネルでは、パッド操作に応じてRAM12の対応するパッドエリアPEからサンプリング波形データを再生してサンプリング音を出力する。一方、空きパッドの発音チャンネルでは、後述のパッドパラメータアサイン処理にて指定されるパッドエリアPEのサンプリング波形データをパッド操作に応じて再生してサンプリング音を形成し、形成したサンプリング音について、パラメータアサイン処理により指定されるエフェクトデータに従った効果を付与して出力する。サウンドシステム18は、音源17の出力をD/A変換した後に増幅してスピーカから発音する。 The sound source 17 is configured by a well-known waveform memory reading method, and includes a plurality of sound generation channels capable of simultaneous sound generation. In the present embodiment, four tone generation channels assigned to PAD1 to PAD4 are provided. Among these sound generation channels, the sound generation channel of the occupied pad reproduces the sampling waveform data from the corresponding pad area PE of the RAM 12 in accordance with the pad operation and outputs the sampling sound. On the other hand, in the sound channel of an empty pad, the sampling waveform data of the pad area PE specified by the pad parameter assignment process described later is reproduced according to the pad operation to form a sampling sound, and the parameter assignment is performed on the formed sampling sound. An effect according to the effect data specified by the process is given and output. The sound system 18 D / A-converts the output of the sound source 17 and amplifies it to generate sound from the speaker.

B.動作
次に、図4〜図11を参照して上記構成による楽音発生装置100の動作を説明する。なお、図4はCPU10が実行するメインルーチンの動作を示すフローチャート、図5はメインルーチンからコールされるサンプリング処理の動作を示すフローチャート、図6はタイマ割り込み処理の動作を示すフローチャート、図7はメインルーチンからコールされるパッドパラメータアサイン処理の動作を示すフローチャート、図8〜図10はパッドパラメータアサイン処理の動作の一例を説明するための図および図11はメインルーチンからコールされるパッド処理の動作を示すフローチャートである。
B. Action
Next, the operation of the musical sound generating device 100 having the above configuration will be described with reference to FIGS. 4 is a flowchart showing the operation of the main routine executed by the CPU 10, FIG. 5 is a flowchart showing the operation of the sampling process called from the main routine, FIG. 6 is a flowchart showing the operation of the timer interrupt process, and FIG. FIG. 8 to FIG. 10 are diagrams for explaining an example of the operation of the pad parameter assignment process, and FIG. 11 shows the operation of the pad process called from the main routine. It is a flowchart to show.

(1)メインルーチンの動作
装置電源がパワーオンされると、CPU10は図4に示すメインルーチンを実行してステップSA1に処理を進め、RAM12のワークエリアWEに格納される各種レジスタやフラグ類をリセットしたり初期値をセットしたりする他、サンプリングバッファBUFをゼロクリアするイニシャライズを行う。また、このステップSA1では、音源17に対して各種レジスタやフラグ類を初期化するよう指示する。
(1) Main Routine Operating Device When the power supply is turned on, the CPU 10 executes the main routine shown in FIG. 4 and proceeds to step SA1 to store various registers and flags stored in the work area WE of the RAM 12. In addition to resetting and setting an initial value, the sampling buffer BUF is initialized to zero. In step SA1, the sound source 17 is instructed to initialize various registers and flags.

イニシャライズが完了すると、CPU10はステップSA2に進み、サンプリング処理を実行する。サンプリング処理では、後述するように、サンプリング実行中でなければ、サンプリングスイッチのオン操作に応じてサンプリング入力部15に対してサンプリング開始を指示し、これによりサンプリング入力部15から出力されるサンプリング波形データをRAM12のサンプリングバッファBUFに格納する。 When the initialization is completed, the CPU 10 proceeds to step SA2 and executes a sampling process. In the sampling process, as will be described later, if the sampling is not being executed, the sampling input unit 15 is instructed to start sampling in response to the ON operation of the sampling switch, and thereby the sampling waveform data output from the sampling input unit 15 Is stored in the sampling buffer BUF of the RAM 12.

続いて、ステップSA3では、パッドパラメータアサイン処理を実行する。この処理では、後述するように、上記ステップSA2のサンプリング処理によってサンプリングバッファBUFに格納されたサンプリング波形データを、ユーザ操作で指定されるパッドエリアPEに転送すると、RAM12のパッドエリアPE1〜PE4(図3参照)の登録/未登録の状態に対応したPAD1〜PAD4の状態(占有パッド/空きパッド)を表すフラグを保持するレジスタPADFの内容から空きパッドの有無を判断し、空きパッドが存在する場合には、所定の割り当てルールに従い、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データ読み出し開始アドレスと、エフェクトパラメータ(エフェクトデータ読み出し開始アドレス)とを選定して音源17に送付する。   Subsequently, in step SA3, pad parameter assignment processing is executed. In this process, as described later, when the sampling waveform data stored in the sampling buffer BUF by the sampling process in step SA2 is transferred to the pad area PE designated by the user operation, the pad areas PE1 to PE4 (see FIG. 3), if there is an empty pad by determining the presence or absence of an empty pad from the contents of the register PADF that holds a flag indicating the state of PAD1 to PAD4 (occupied pad / empty pad) corresponding to the registered / unregistered state In accordance with a predetermined allocation rule, the sampling waveform data read start address and the effect parameter (effect data read start address) to be assigned to the empty pad are selected according to the arrangement position of the empty pad with respect to the occupied pad, and the sound source 17 is selected. Send to.

そして、ステップSA4では、ノートオンイベントを発生するパッド操作がなされた場合に、操作されたパッドが占有パッド又は空きパッドのいずれであるかを判別し、占有パッドであったならば、当該占有パッドに対応するサンプリング音の発音を音源17に指示し、一方、空きパッドならば、その空きパッドに割り当てられたサンプリング波形データを用いたサンプリング音の発音を音源17に指示すると共に、当該空きパッドに割り当てられたエフェクトデータに従った効果付与を音源17に指示するパッド処理を実行する。次いで、ステップSA5では、例えばレジスタPADFの内容に基づき占有パッド/空きパッドの割り当て状態や動作状態などを画面表示する等の、その他の処理を実行する。以後、装置電源がオフされる迄、上述したステップSA2〜SA9を繰り返し実行する。   In step SA4, when a pad operation that generates a note-on event is performed, it is determined whether the operated pad is an occupied pad or an empty pad. On the other hand, if it is an empty pad, the sound source 17 is instructed to generate the sampling sound using the sampling waveform data assigned to the empty pad, and the empty pad is also instructed. Pad processing for instructing the sound source 17 to apply an effect according to the assigned effect data is executed. Next, in step SA5, for example, other processing such as screen display of the assignment state / operating state of the occupied pad / free pad based on the contents of the register PADF is executed. Thereafter, steps SA2 to SA9 are repeatedly executed until the apparatus power is turned off.

(2)サンプリング処理の動作
次に、図5〜図6を参照してサンプリング処理の動作について説明する。上述したメインルーチンのステップSA2(図4参照)を介して本処理が実行されると、CPU10は図5に図示するステップSB1に進み、フラグSMPFが「0」であるか否かを判断する。フラグSMPFは、後述するように、「1」の場合にサンプリング実行中を表し、「0」の場合にサンプリング停止中を表すフラグである。したがって、ステップSB1では、サンプリング停止中であるかどうかを判断する。
(2) Operation of Sampling Process Next, the operation of the sampling process will be described with reference to FIGS. When this process is executed via step SA2 (see FIG. 4) of the main routine described above, the CPU 10 proceeds to step SB1 shown in FIG. 5 and determines whether or not the flag SMPF is “0”. As will be described later, the flag SMPF is a flag indicating that sampling is being executed when it is “1”, and that sampling is being stopped when it is “0”. Therefore, in step SB1, it is determined whether sampling is stopped.

ここで、フラグSMPFが「1」(サンプリング実行中)であると、判断結果は「NO」になり、本処理を終える。つまり、サンプリング実行中では、サンプリングの開始を指示するサンプリングスイッチの操作を無効にする。これに対し、フラグSMPFが「0」(サンプリング停止中)ならば、上記ステップSB1の判断結果が「YES」になり、次のステップSB2に進み、サンプリングスイッチのオン操作の有無を判断する。サンプリングスイッチがオン操作されなければ、判断結果は「NO」になり、本処理を終えるが、オン操作された場合には、判断結果が「YES」となり、ステップSB3に進む。   Here, if the flag SMPF is “1” (sampling is being executed), the determination result is “NO”, and the present process ends. That is, during sampling execution, the operation of the sampling switch that instructs the start of sampling is invalidated. On the other hand, if the flag SMPF is “0” (sampling is stopped), the determination result in step SB1 is “YES”, and the process proceeds to the next step SB2, where it is determined whether or not the sampling switch is turned on. If the sampling switch is not turned on, the determination result is “NO”, and the present process is completed. If the sampling switch is turned on, the determination result is “YES”, and the process proceeds to Step SB3.

ステップSB3では、サンプリング入力部15にサンプリング開始を指示する。これにより、サンプリング入力部15は、マイクロフォンを介して入力される音声信号あるいはオーディオ入力端子から供給される音声信号を一定レベルに増幅した後、所定のサンプリング周波数でA/D変換してなるサンプリング波形データを出力する。次いで、ステップSB4では、タイマ割り込み禁止を解除する。これにより、CPU10では、図6に図示するタイマ割り込み処理をタイマクロック毎に実行し、ステップSC1においてタイマカウンタTIMEを歩進させて計時する。   In step SB3, the sampling input unit 15 is instructed to start sampling. As a result, the sampling input unit 15 amplifies the audio signal input via the microphone or the audio signal supplied from the audio input terminal to a certain level and then performs A / D conversion at a predetermined sampling frequency. Output data. Next, in step SB4, the timer interrupt prohibition is canceled. As a result, the CPU 10 executes the timer interrupt processing shown in FIG. 6 for each timer clock, and increments the timer counter TIME in step SC1 to measure time.

さて、こうしてタイマカウンタTIMEがサンプリング期間を計時し始めると、CPU10は図5に図示するステップSB5に進み、フラグSMPFに「1」をセットしてサンプリング実行中を表す。続いて、ステップSB6〜SB7では、タイマカウンタTIMEの値が所定値に達するまでの間、つまりサンプリング期間が経過するまでサンプリング入力部15から出力されるサンプリング波形データをRAM12のサンプリングバッファBUFに順次ストアする。   When the timer counter TIME starts to measure the sampling period in this way, the CPU 10 proceeds to step SB5 shown in FIG. 5 and sets “1” in the flag SMPF to indicate that sampling is being performed. Subsequently, in steps SB6 to SB7, the sampling waveform data output from the sampling input unit 15 is sequentially stored in the sampling buffer BUF of the RAM 12 until the value of the timer counter TIME reaches a predetermined value, that is, until the sampling period elapses. To do.

そして、タイマカウンタTIMEの値が所定値に達してサンプリング期間が経過すると、ステップSB7の判断結果が「YES」になり、ステップSB8に進み、タイマカウンタTIMEをゼロリセットすると共に、タイマ割り込み禁止に設定する。これにより、図6に図示したタイマ割り込み処理が完了する。次いで、ステップSB9では、フラグBFFに「1」をセットすると共に、フラグSMPFをゼロリセットして本処理を終える。なお、フラグBFFは、「1」の場合にサンプリングバッファBUFにサンプリング波形データがストアされた状態を表し、「0」の場合にバッファクリアの状態を表す。 When the value of the timer counter TIME reaches a predetermined value and the sampling period elapses, the determination result in step SB7 becomes “YES”, the process proceeds to step SB8, the timer counter TIME is reset to zero, and the timer interrupt is disabled. To do. Thereby, the timer interrupt process shown in FIG. 6 is completed. Next, at step SB9, “1” is set to the flag BFF, and the flag SMPF is reset to zero, and this process is finished. The flag BFF indicates that the sampling waveform data is stored in the sampling buffer BUF when “1”, and indicates the buffer clear state when “0”.

(3)パッドパラメータアサイン処理の動作
次に、図7を参照してパッドパラメータアサイン処理の動作について説明する。上述したメインルーチンのステップSA3(図4参照)を介して本処理が実行されると、CPU10は図7に図示するステップSD1に進み、フラグBFFが「1」、すなわち上述のサンプリング処理によりRAM12のサンプリングバッファBUFにサンプリング波形データが格納された状態であるか否かを判断する。フラグBFFが「0」のバッファクリア状態ならば、判断結果は「NO」となり、本処理を終えるが、サンプリング波形データが格納された状態であるならば、判断結果は「YES」になり、ステップSD2に進む。
(3) Operation of Pad Parameter Assignment Process Next, the operation of the pad parameter assignment process will be described with reference to FIG. When this process is executed through step SA3 (see FIG. 4) of the main routine described above, the CPU 10 proceeds to step SD1 shown in FIG. 7, and the flag BFF is “1”, that is, the sampling process of the RAM 12 is performed. It is determined whether or not the sampling waveform data is stored in the sampling buffer BUF. If the flag BFF is “0” in the buffer clear state, the determination result is “NO”, and this processing ends. If the sampling waveform data is stored, the determination result is “YES”, and the step Proceed to SD2.

ステップSD2では、RAM12のサンプリングバッファBUFに格納されたサンプリング波形データを、ユーザ操作で指定されるパッドエリアPEに転送する。なお、ユーザ操作で指定されるパッドエリアPEに、既にサンプリング波形データが格納済みであった場合には、サンプリングバッファBUFに格納された新たなサンプリング波形データが上書きされる。続いて、ステップSD3では、サンプリングバッファBUFをゼロクリアしてフラグBFFをゼロリセットする。   In step SD2, the sampling waveform data stored in the sampling buffer BUF of the RAM 12 is transferred to the pad area PE designated by the user operation. If the sampling waveform data has already been stored in the pad area PE designated by the user operation, the new sampling waveform data stored in the sampling buffer BUF is overwritten. In step SD3, the sampling buffer BUF is cleared to zero and the flag BFF is reset to zero.

次いで、ステップSD4では、RAM12のパッドエリアPE1〜PE4(図3参照)の登録/未登録の状態に対応したPAD1〜PAD4の状態(占有パッド/空きパッド)を表すフラグをレジスタPADFにセットする。レジスタPADFは4ビット長のレジスタであり、そのMSBにPAD1の状態、3SBにPAD2の状態、2SBにPAD3の状態およびLSBにPAD4の状態を表すフラグが保持される。このフラグは「1」が占有パッドを、「0」が空きパッドを表す。例えばパッドエリアPE1だけにサンプリング波形データが登録されている場合には、PAD1が占有パッドで他のPAD2〜PAD4は空きパッドなので、レジスタPADFの内容は「1000(2進表示)」となる。   Next, in step SD4, flags representing the states of PAD1 to PAD4 (occupied pads / empty pads) corresponding to the registered / unregistered states of the pad areas PE1 to PE4 (see FIG. 3) of the RAM 12 are set in the register PADF. The register PADF is a 4-bit register, and the MSB holds a flag indicating the PAD1 state, 3SB the PAD2 state, 2SB the PAD3 state, and LSB the PAD4 state. In this flag, “1” indicates an occupied pad and “0” indicates an empty pad. For example, when sampling waveform data is registered only in the pad area PE1, the contents of the register PADF are "1000 (binary display)" because PAD1 is an occupied pad and the other PAD2 to PAD4 are empty pads.

続いて、ステップSD5では、レジスタPADFの内容に基づき空きパッドの有無を判断する。RAM12のパッドエリアPE1〜PE4の全てにそれぞれサンプリング波形データが登録済みで空きパッドが存在しない場合には、判断結果が「NO」になり、本処理を終える。   Subsequently, in step SD5, the presence / absence of an empty pad is determined based on the contents of the register PADF. If the sampling waveform data has already been registered in all the pad areas PE1 to PE4 of the RAM 12 and there is no empty pad, the determination result is “NO”, and the present process is terminated.

一方、空きパッドが存在する場合には、上記ステップSD5の判断結果が「YES」になり、ステップSD6に進む。ステップSD6では、所定の割り当てルールに従い、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データ読み出し開始アドレスと、エフェクトパラメータ(エフェクトデータ読み出しアドレス)とを選定して音源17に送付する。 On the other hand, if there is an empty pad, the determination result in step SD5 is “YES”, and the flow proceeds to step SD6. In step SD6, the sampling waveform data read start address assigned to the empty pad and the effect parameter (effect data read address) are selected according to the arrangement position of the empty pad with respect to the occupied pad according to a predetermined assignment rule, and the sound source 17 is selected. Send to.

ここで、図8〜図10を参照してステップSD6の具体的な割り当て動作について説明する。なお、割り当て動作は、横一列に配置されたPAD1〜PAD4の位置関係において、下記の割り当てルール(a)〜(c)に基づき空きパッドに対してサンプリング波形データ読み出し開始アドレスと、エフェクトパラメータ(エフェクトデータ読み出しアドレス)とを割り当てる。
(a)最も近い占有パッドのサンプリング波形データ読み出し開始アドレスを空きパッドに割り当てる。
(b)空きパッドには、占有パッドから何番目のパッドに位置するかで定まる種類のエフェクトパラメータ(エフェクトデータ読み出しアドレス)を割り当てる。
(c)空きパッドに対して左右同じ位置に占有パッドが存在する場合には、空きパッドから見て左方の占有パッドを優先して割り当ての基準に設定する。
Here, a specific assignment operation in step SD6 will be described with reference to FIGS. Note that the allocation operation is based on the positional relationship of PAD1 to PAD4 arranged in a horizontal row, and the sampling waveform data read start address and the effect parameter (effect parameter) for the empty pad based on the following allocation rules (a) to (c) Data read address).
(A) The sampling waveform data read start address of the nearest occupied pad is assigned to an empty pad.
(B) A kind of effect parameter (effect data read address) determined by the position of the pad from the occupied pad is assigned to the empty pad.
(C) When an occupied pad exists at the same position on the left and right with respect to the empty pad, the occupied pad on the left side as viewed from the empty pad is preferentially set as a reference for assignment.

以下、割り当て動作の典型例として、ケース1(占有パッドPAD1、空きパッドPAD2〜PAD4の場合)、ケース2(占有パッドPAD1,3、空きパッドPAD2,4の場合)およびケース3(占有パッドPAD4、空きパッドPAD1〜PAD3の場合)について説明する。 Hereinafter, as typical examples of the allocation operation, case 1 (in the case of occupied pad PAD1, empty pads PAD2 to PAD4), case 2 (in the case of occupied pads PAD1, 3 and empty pads PAD2, 4) and case 3 (occupied pad PAD4, The case of empty pads PAD1 to PAD3 will be described.

<ケース1(占有パッドPAD1、空きパッドPAD2〜PAD4の場合)>
この場合、占有パッドPAD1のサンプリング波形データ読み出し開始アドレスAD(PAD1)が空きパッドPAD2〜PAD4に共通して割り当てられる。占有パッドPAD1の1つ右隣に配置される空きパッドPAD2には、+1エフェクトデータの読み出しアドレスAD(+1)が割り当てられる。同様に、空きパッドPAD3〜PAD4は、占有パッドPAD1の2つ右隣、3つ右隣にそれぞれ配置される為、+2エフェクトデータの読み出しアドレスAD(+2)、+3エフェクトデータの読み出しアドレスAD(+3)が各々割り当てられる。
<Case 1 (in the case of occupied pad PAD1, vacant pads PAD2 to PAD4)>
In this case, the sampling waveform data read start address AD (PAD1) of the occupied pad PAD1 is commonly assigned to the empty pads PAD2 to PAD4. The read address AD (+1) of the +1 effect data is assigned to the empty pad PAD2 arranged immediately to the right of the occupied pad PAD1. Similarly, the vacant pads PAD3 to PAD4 are arranged on the right side and the right side of the occupied pad PAD1, respectively, so that the +2 effect data read address AD (+2) and the +3 effect data read address AD (+3 ) Are assigned to each.

<ケース2(占有パッドPAD1,3、空きパッドPAD2,4の場合)>
この場合、空きパッドPAD2の左隣に占有パッドPAD1が存在する為、占有パッドPAD1のサンプリング波形データ読み出し開始アドレスAD(PAD1)が空きパッドPAD2に割り当てられる。同様にして、占有パッドPAD3のサンプリング波形データ読み出し開始アドレスAD(PAD3)が空きパッドPAD4に割り当てられる。占有パッドPAD1の1つ右隣に配置される空きパッドPAD2には、+1エフェクトデータの読み出しアドレスAD(+1)が割り当てられる。占有パッドPAD3の1つ右隣に配置される空きパッドPAD4には、+1エフェクトデータの読み出しアドレスAD(+1)が割り当てられる。
<Case 2 (in the case of occupied pads PAD1, 3 and empty pads PAD2, 4)>
In this case, since the occupied pad PAD1 exists to the left of the empty pad PAD2, the sampling waveform data read start address AD (PAD1) of the occupied pad PAD1 is assigned to the empty pad PAD2. Similarly, the sampling waveform data read start address AD (PAD3) of the occupied pad PAD3 is assigned to the empty pad PAD4. The read address AD (+1) of the +1 effect data is assigned to the empty pad PAD2 arranged immediately to the right of the occupied pad PAD1. The read address AD (+1) of the +1 effect data is assigned to the empty pad PAD4 arranged to the right of the occupied pad PAD3.

<ケース3(占有パッドPAD4、空きパッドPAD1〜PAD3の場合)>
この場合、占有パッドPAD4のサンプリング波形データ読み出し開始アドレスAD(PAD4)が空きパッドPAD1〜PAD3に共通して割り当てられる。占有パッドPAD4の1つ左隣に配置される空きパッドPAD3には、−1エフェクトデータの読み出しアドレスAD(−1)が割り当てられる。占有パッドPAD4の2つ左隣に配置される空きパッドPAD2には、−2エフェクトデータの読み出しアドレスAD(−2)が割り当てられる。占有パッドPAD4の3つ左隣に配置される空きパッドPAD1には、−3エフェクトデータの読み出しアドレスAD(−3)が割り当てられる。
<Case 3 (in the case of occupied pad PAD4, empty pads PAD1 to PAD3)>
In this case, the sampling waveform data read start address AD (PAD4) of the occupied pad PAD4 is commonly assigned to the empty pads PAD1 to PAD3. The read address AD (−1) of the −1 effect data is assigned to the vacant pad PAD3 arranged to the left of the occupied pad PAD4. The read address AD (−2) of the −2 effect data is assigned to the empty pad PAD2 arranged to the left of the occupied pad PAD4 by two. The read address AD (−3) of the −3 effect data is assigned to the empty pad PAD1 that is arranged three adjacent to the left of the occupied pad PAD4.

このように、パッドパラメータアサイン処理では、RAM12のサンプリングバッファBUFに格納されたサンプリング波形データを、ユーザ操作で指定されるパッドエリアPEに転送すると、RAM12のパッドエリアPE1〜PE4(図3参照)の登録/未登録の状態に対応したPAD1〜PAD4の状態(占有パッド/空きパッド)を表すフラグを保持するレジスタPADFの内容から空きパッドの有無を判断し、空きパッドが存在する場合には、所定の割り当てルールに従い、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データ読み出し開始アドレスと、エフェクトパラメータ(エフェクトデータ読み出しアドレス)とを選定して音源17に送付する。   Thus, in the pad parameter assignment process, when the sampling waveform data stored in the sampling buffer BUF of the RAM 12 is transferred to the pad area PE specified by the user operation, the pad areas PE1 to PE4 (see FIG. 3) of the RAM 12 are transferred. The presence / absence of an empty pad is determined from the contents of the register PADF that holds a flag indicating the states of PAD1 to PAD4 (occupied pad / empty pad) corresponding to the registered / unregistered state. The sampling waveform data read start address assigned to the empty pad and the effect parameter (effect data read address) are selected and sent to the sound source 17 in accordance with the assignment rule of the empty pad with respect to the occupied pad.

(4)パッド処理の動作
次に、図11を参照してパッド処理の動作について説明する。前述したメインルーチンのステップSA4(図4参照)を介して本処理が実行されると、CPU10は図11に図示するステップSE1に進み、パッド操作の有無、つまりノートオンイベントが発生したかどうかを判断する。ノートオンイベントの発生が無ければ、判断結果は「NO」になり、本処理を終える。
(4) Pad Processing Operation Next, the pad processing operation will be described with reference to FIG. When this processing is executed via step SA4 (see FIG. 4) of the main routine described above, the CPU 10 proceeds to step SE1 shown in FIG. 11 to determine whether there is a pad operation, that is, whether a note-on event has occurred. to decide. If no note-on event has occurred, the determination result is “NO”, and the process ends.

これに対し、パッド操作に応じてノートオンイベントが発生した場合には、そのノートオンイベントを発生したパッドが占有パッド又は空きパッドのいずれであるかをレジスタPADFの内容を参照して判別する。ノートオンイベントを発生したパッドが占有パッドであると、ステップSE3に進み、操作された占有パッドに対応するサンプリング音の発音を音源17に指示する。   On the other hand, when a note-on event occurs in response to a pad operation, it is determined by referring to the contents of the register PADF whether the pad that generated the note-on event is an occupied pad or an empty pad. If the pad on which the note-on event has occurred is an occupied pad, the process proceeds to step SE3, and the sound source 17 is instructed to generate a sampling sound corresponding to the operated occupied pad.

例えば図8に図示した一例において、占有パッドであるPAD1がパッド操作に応じてノートオンイベントを発生した場合には、音源17はCPU10から与えられたサンプリング波形データ読み出し開始アドレスAD(PAD1)に従ってRAM12のパッドエリアPE1からサンプリング波形データを読み出してサンプリング音を再生する。 For example, in the example shown in FIG. 8, when the pad PAD 1 that is the occupied pad generates a note-on event in response to the pad operation, the sound source 17 is stored in the RAM 12 according to the sampling waveform data read start address AD (PAD 1) given from the CPU 10. The sampling waveform data is read out from the pad area PE1 and the sampling sound is reproduced.

一方、ノートオンイベントを発生したパッドが空きパッドであると、ステップSE4に進み、操作された空きパッドに割り当てられたサンプリング波形データを用いたサンプリング音の発音を音源17に指示し、続くステップSE5では、操作された空きパッドに割り当てられたエフェクトデータに従った効果付与を音源17に指示する。   On the other hand, if the pad on which the note-on event has occurred is an empty pad, the process proceeds to step SE4 to instruct the sound source 17 to generate a sampling sound using the sampling waveform data assigned to the operated empty pad, and the subsequent step SE5. Then, the sound source 17 is instructed to apply the effect according to the effect data assigned to the operated empty pad.

例えば図8に図示した一例において、空きパッドであるPAD4がパッド操作に応じてノートオンイベントを発生した場合には、音源17はCPU10から与えられたサンプリング波形データ読み出し開始アドレスAD(PAD1)に従ってRAM12のパッドエリアPE1からサンプリング波形データを読み出してサンプリング音を形成し、形成したサンプリング音について+3エフェクトデータに従った効果を付与して出力する。 For example, in the example shown in FIG. 8, when PAD 4 that is a vacant pad generates a note-on event in response to a pad operation, the sound source 17 uses the RAM 12 according to the sampling waveform data read start address AD (PAD 1) given from the CPU 10. The sampling waveform data is read out from the pad area PE1 to form a sampling sound, and an effect according to the +3 effect data is applied to the formed sampling sound and output.

このように、パッド処理では、パッド操作されたパッドが占有パッド又は空きパッドのいずれであるかを判別し、占有パッドのパッド操作ならば、その占有パッドに対応するサンプリング音の発音を音源17に指示し、一方、空きパッドのパッド操作であると、その空きパッドに割り当てられたサンプリング波形データを用いたサンプリング音の発音を音源17に指示すると共に、当該空きパッドに割り当てられたエフェクトデータに従った効果付与を音源17に指示する。   As described above, in the pad processing, it is determined whether the pad operated pad is an occupied pad or an empty pad. If the pad operation is performed for the occupied pad, the sound source 17 outputs the sampling sound corresponding to the occupied pad. On the other hand, if it is a pad operation of an empty pad, the sound source 17 is instructed to generate a sampling sound using the sampling waveform data assigned to the empty pad, and the effect data assigned to the empty pad is followed. The sound source 17 is instructed to apply the effect.

以上のように、本実施形態では、RAM12のパッドエリアPE1〜PE4(図3参照)の登録/未登録の状態に対応したPAD1〜PAD4の状態(占有パッド/空きパッド)を表すフラグを保持するレジスタPADFの内容から空きパッドの有無を判断し、空きパッドが存在する場合には、所定の割り当てルールに従い、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データ読み出し開始アドレスと、エフェクトパラメータ(エフェクトデータ読み出し開始アドレス)とを選定して音源17に送付する。   As described above, in the present embodiment, the flags indicating the states of PAD1 to PAD4 (occupied pads / empty pads) corresponding to the registered / unregistered states of the pad areas PE1 to PE4 (see FIG. 3) of the RAM 12 are retained. Whether or not there is an empty pad is determined from the contents of the register PADF, and if there is an empty pad, reading of sampling waveform data to be assigned to the empty pad is started according to the arrangement position of the empty pad with respect to the occupied pad according to a predetermined allocation rule. An address and an effect parameter (effect data read start address) are selected and sent to the sound source 17.

そして、ノートオンイベントを発生するパッド操作がなされると、操作されたパッドが占有パッド又は空きパッドのいずれであるかを判別し、占有パッドならば、当該占有パッドに対応するサンプリング音の発音を音源17に指示し、一方、空きパッドならば、その空きパッドに割り当てられたサンプリング波形データを用いたサンプリング音の発音を音源17に指示すると共に、当該空きパッドに割り当てられたエフェクトデータに従った効果付与を音源17に指示する。従って、空きパッドをパッド操作すると、当該空きパッドに割り当てられた占有パッドのサンプリング音に効果付与した音が発音される為、メモリ登録されたサンプリング音が一種類であっても、複数備えるパッドの数に相当する種類のサンプリング音を再生することが可能になる。 When a pad operation that generates a note-on event is performed, it is determined whether the operated pad is an occupied pad or an empty pad, and if it is an occupied pad, the sampling sound corresponding to the occupied pad is pronounced. The sound source 17 is instructed. On the other hand, if it is an empty pad, the sound source 17 is instructed to generate a sampling sound using the sampling waveform data assigned to the empty pad, and the effect data assigned to the empty pad is followed. The sound source 17 is instructed to give an effect. Therefore, when a pad operation is performed on a vacant pad, a sound imparted to the sampling sound of the occupied pad assigned to the vacant pad is generated, so even if there is only one type of sampling sound registered in the memory, a plurality of pads are provided. It is possible to play back a type of sampling sound corresponding to the number.

また、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるエフェクトパラメータの種類を異ならせるので、パッド操作する空きパッドの配置位置に応じて発生するサンプリング音が変化する結果、多彩なパッド演奏を楽しむことも出来るという効果も奏する。 In addition, since the type of effect parameter assigned to the empty pad varies depending on the position of the empty pad relative to the occupied pad, the sampling sound generated varies depending on the position of the empty pad to be operated. There is also an effect that you can enjoy playing the pad.

さらに、上述した実施形態では、RAM12のサンプリングバッファBUFに格納されたサンプリング波形データを、ユーザ操作で指定されるパッドエリアPEに転送すると、RAM12のパッドエリアPE1〜PE4(図3参照)の登録/未登録の状態に対応したPAD1〜PAD4の状態(占有パッド/空きパッド)を表すフラグを保持するレジスタPADFの内容から空きパッドの有無を判断するので、新たなサンプリング波形データをパッドエリアPEに取り込む毎にPAD1〜PAD4の状態(占有パッド/空きパッド)を更新することができる。 Further, in the above-described embodiment, when the sampling waveform data stored in the sampling buffer BUF of the RAM 12 is transferred to the pad area PE designated by the user operation, the registration / registration of the pad areas PE1 to PE4 (see FIG. 3) of the RAM 12 is performed. Since the presence / absence of an empty pad is determined from the contents of the register PADF that holds a flag indicating the states of PAD1 to PAD4 (occupied pad / empty pad) corresponding to the unregistered state, new sampling waveform data is taken into the pad area PE. The state (occupied pad / empty pad) of PAD1 to PAD4 can be updated every time.

なお、上述した実施形態では、空きパッドに対して左右同じ位置に占有パッドが存在する場合には、空きパッドから見て左方の占有パッドを優先して割り当てるルールとしたが、これに限らず空きパッドから見て右方の占有パッドを優先して割り当てるルールであっても構わない。   In the above-described embodiment, when there is an occupied pad at the same position on the left and right with respect to the empty pad, the rule is to preferentially assign the left occupied pad as viewed from the empty pad. It may be a rule to give priority to the right occupied pad as viewed from the empty pad.

また、本実施形態では、説明の簡略化を図る為、パッド16に配設されるPAD1〜PAD4が横一列に配置された場合を想定したが、本発明の要旨はこれに限定されず、例えば複数のPADがn行m列に配置された場合には、各行の列毎に占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データ読み出し開始アドレスと、エフェクトパラメータ(エフェクトデータ読み出し開始アドレス)とを選定して音源17に送付する態様とすればよい。   Further, in the present embodiment, in order to simplify the description, it is assumed that PAD1 to PAD4 arranged on the pad 16 are arranged in a horizontal row, but the gist of the present invention is not limited to this, for example, When a plurality of PADs are arranged in n rows and m columns, the sampling waveform data read start address to be assigned to the empty pad and the effect parameter (effect parameter) according to the arrangement position of the empty pad with respect to the occupied pad for each column of each row. The data read start address) may be selected and sent to the sound source 17.

本発明の一実施形態の構成を示すブロック図である。It is a block diagram which shows the structure of one Embodiment of this invention. ROM11の記憶エリアの構成を示すメモリマップである。3 is a memory map showing a configuration of a storage area of a ROM 11. RAM12の記憶エリアの構成を示すメモリマップである。3 is a memory map showing a configuration of a storage area of a RAM 12; メインルーチンの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a main routine. サンプリング処理の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a sampling process. タイマ割り込み処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a timer interruption process. パッドパラメータアサイン処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a pad parameter assignment process. パッドパラメータアサイン処理の動作の一例を説明するための図である。It is a figure for demonstrating an example of operation | movement of a pad parameter assignment process. パッドパラメータアサイン処理の動作の一例を説明するための図である。It is a figure for demonstrating an example of operation | movement of a pad parameter assignment process. パッドパラメータアサイン処理の動作の一例を説明するための図である。It is a figure for demonstrating an example of operation | movement of a pad parameter assignment process. パッド処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a pad process.

符号の説明Explanation of symbols

10 CPU
11 ROM
12 RAM
13 表示部
14 操作部
15 サンプリング入力部
16 パッド(PAD1〜PAD4)
17 音源
18 サウンドシステム
100 楽音発生装置
10 CPU
11 ROM
12 RAM
13 Display unit 14 Operation unit 15 Sampling input unit 16 Pad (PAD1 to PAD4)
17 Sound source 18 Sound system 100 Musical sound generator

Claims (5)

複数のパッドを有し、いずれかのパッドの操作に応じて発音を指示する発音指示手段と、
入力音声をサンプリングして得たサンプリング音を、前記発音指示手段が備える複数のパッドにそれぞれ対応付けた記憶エリアのいずれかに記憶する記憶手段と、
対応する記憶エリアにサンプリング音が登録された占有パッドもしくは未登録の空きパッドのいずれであるかを前記発音指示手段の複数のパッドについて判別し、空きパッドが存在する場合には、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング音と付与する効果とを選定する選定手段と、
前記発音指示手段が占有パッドの操作に応じて発音を指示した場合には、当該占有パッドに対応する記憶エリアのサンプリング音を再生し、一方、空きパッドの操作に応じて発音を指示した場合には、前記選定手段により当該空きパッドに割り当てられたサンプリング音に効果付与して再生する再生手段と
を具備することを特徴とする楽音発生装置。
A sound generation instruction means having a plurality of pads and instructing sound generation according to an operation of any one of the pads;
Storage means for storing the sampling sound obtained by sampling the input sound in any of the storage areas respectively associated with the plurality of pads provided in the pronunciation instruction means;
It is determined for the plurality of pads of the sound generation instruction means whether the sampling sound is registered in the corresponding storage area or an unregistered empty pad, and if there is an empty pad, a free space for the occupied pad is found. A selection means for selecting a sampling sound to be assigned to the empty pad and an effect to be provided according to the arrangement position of the pad,
When the sounding instruction means instructs to sound in accordance with the operation of the occupied pad, the sampled sound in the storage area corresponding to the occupied pad is reproduced, while on the other hand, the sounding is instructed in response to the operation of the empty pad. Comprises a reproducing means for effecting and reproducing the sampling sound assigned to the empty pad by the selecting means.
前記選定手段は、所定の割り当てルールに従い、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング音と付与する効果とを選定することを特徴とする請求項1記載の楽音発生装置。   2. The musical tone generation according to claim 1, wherein the selecting means selects a sampling sound to be assigned to the empty pad and an effect to be applied according to a position of the empty pad with respect to the occupied pad according to a predetermined assignment rule. apparatus. 複数のパッドを有し、いずれかのパッドの操作に応じて発音を指示する発音指示手段と、
入力音声をサンプリングして得たサンプリング波形データを、前記発音指示手段が備える複数のパッドにそれぞれ対応付けた記憶エリアのいずれかに記憶する波形データ記憶手段と、
効果付与する態様を指定する複数種のエフェクトデータを記憶するエフェクトデータ記憶手段と、
前記発音指示手段が備える複数のパッドのそれぞれについて、前記波形データ記憶手段の対応する記憶エリアにサンプリング波形データが登録された占有パッドもしくは前記波形データ記憶手段の対応する記憶エリアにサンプリング波形データが未登録の空きパッドのいずれであるかを判別するパッド判別手段と、
前記パッド判別手段により複数のパッドの中に空きパッドが存在すると判別された場合に、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング波形データとエフェクトデータの種類とを選定する選定手段と、
前記発音指示手段が占有パッドの操作に応じて発音を指示した場合には、当該占有パッドに対応する記憶エリアのサンプリング波形データを前記波形データ記憶手段から読み出してサンプリング音を再生し、一方、空きパッドの操作に応じて発音を指示した場合には、前記選定手段により当該空きパッドに割り当てられたサンプリング波形データを前記波形データ記憶手段から読み出してサンプリング音を形成すると共に、前記選定手段により当該空きパッドに割り当てられた種類のエフェクトデータを前記エフェクトデータ記憶手段から読み出し、当該エフェクトデータに従った効果をその形成したサンプリング音に付与して再生する再生手段と
を具備することを特徴とする楽音発生装置。
A sound generation instruction means having a plurality of pads and instructing sound generation according to an operation of any one of the pads;
Waveform data storage means for storing sampling waveform data obtained by sampling input speech in any of storage areas respectively associated with a plurality of pads provided in the sound generation instruction means;
Effect data storage means for storing a plurality of types of effect data for designating the mode of effect application;
For each of the plurality of pads provided in the sound generation instruction unit, the sampling waveform data is not stored in the occupied pad in which the sampling waveform data is registered in the corresponding storage area of the waveform data storage unit or in the storage area corresponding to the waveform data storage unit. Pad discriminating means for discriminating which of the registered free pads,
When the pad determining means determines that there are empty pads among the plurality of pads, the sampling waveform data assigned to the empty pad and the type of effect data are selected according to the position of the empty pad with respect to the occupied pad. Selection means to
When the sound generation instruction means instructs sound generation in response to the operation of the occupied pad, the sampling waveform data in the storage area corresponding to the occupied pad is read from the waveform data storage means and the sampling sound is reproduced. When sounding is instructed according to the operation of the pad, the sampling means reads the sampling waveform data assigned to the empty pad from the waveform data storage means to form a sampling sound, and the selection means Musical tone generation comprising: a reproduction means for reading out the effect data of the type assigned to the pad from the effect data storage means and adding the effect according to the effect data to the formed sampling sound for reproduction apparatus.
前記パッド判別手段は、
入力音声をサンプリングしてサンプリング波形データを入力するサンプリング入力手段と、
前記サンプリング入力手段により入力されたサンプリング波形データを、前記波形データ記憶手段の複数の記憶エリアの中からユーザ操作で指定される記憶エリアに格納する格納手段とを更に備え、
前記格納手段がユーザ操作で指定される記憶エリアにサンプリング波形データを格納する毎に、前記発音指示手段の複数のパッドのそれぞれについて占有パッドもしくは空きパッドのいずれであるかを判別することを特徴とする請求項3記載の楽音発生装置。
The pad discriminating means is
Sampling input means for sampling input sound and inputting sampling waveform data;
Storage means for storing the sampling waveform data input by the sampling input means in a storage area designated by a user operation from a plurality of storage areas of the waveform data storage means;
Each time the storage means stores sampling waveform data in a storage area designated by a user operation, it is determined whether each of the plurality of pads of the sound generation instruction means is an occupied pad or an empty pad. The musical tone generator according to claim 3.
複数のパッドを有し、いずれかのパッドの操作に応じて発音を指示する発音指示処理と、
入力音声をサンプリングして得たサンプリング音を、前記複数のパッドにそれぞれ対応付けた記憶エリアのいずれかに記憶する記憶処理と、
対応する記憶エリアにサンプリング音が登録された占有パッドもしくは未登録の空きパッドのいずれであるかを前記複数のパッドについて判別し、空きパッドが存在する場合には、占有パッドに対する空きパッドの配置位置に応じて、当該空きパッドに割り当てるサンプリング音と付与する効果とを選定する選定処理と、
前記発音指示処理が占有パッドの操作に応じて発音を指示した場合には、当該占有パッドに対応する記憶エリアのサンプリング音を再生し、一方、空きパッドの操作に応じて発音を指示した場合には、前記選定処理により当該空きパッドに割り当てられたサンプリング音に効果付与して再生する再生処理と
をコンピュータで実行させることを特徴とする楽音発生プログラム。
A sound generation instruction process having a plurality of pads and instructing sound generation according to an operation of any one of the pads;
A storage process for storing the sampling sound obtained by sampling the input sound in any of the storage areas respectively associated with the plurality of pads;
It is determined for the plurality of pads whether the sampling sound is registered in the corresponding storage area or an unregistered empty pad. If there is an empty pad, the position of the empty pad relative to the occupied pad is determined. And a selection process for selecting the sampling sound to be assigned to the empty pad and the effect to be applied,
When the sound generation instruction process instructs sound generation according to the operation of the occupied pad, the sampled sound in the storage area corresponding to the occupied pad is played, while when sound generation is specified according to the operation of the empty pad A program for generating a musical sound, comprising: causing a computer to execute a reproduction process of adding an effect to the sampling sound assigned to the empty pad by the selection process and reproducing the sampled sound.
JP2008303834A 2008-11-28 2008-11-28 Musical sound generating device and musical sound generating program Active JP5481843B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008303834A JP5481843B2 (en) 2008-11-28 2008-11-28 Musical sound generating device and musical sound generating program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008303834A JP5481843B2 (en) 2008-11-28 2008-11-28 Musical sound generating device and musical sound generating program

Publications (2)

Publication Number Publication Date
JP2010128257A true JP2010128257A (en) 2010-06-10
JP5481843B2 JP5481843B2 (en) 2014-04-23

Family

ID=42328688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008303834A Active JP5481843B2 (en) 2008-11-28 2008-11-28 Musical sound generating device and musical sound generating program

Country Status (1)

Country Link
JP (1) JP5481843B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108831422A (en) * 2017-03-22 2018-11-16 卡西欧计算机株式会社 Operation processing device, transcriber, operation processing method and recording medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0997073A (en) * 1995-09-28 1997-04-08 Roland Corp Timber assignment device of electronic musical instrument
JPH11212564A (en) * 1998-01-28 1999-08-06 Roland Corp Electronic musical instrument
JPH11212559A (en) * 1998-01-28 1999-08-06 Roland Corp Electronic musical instrument
JPH11212563A (en) * 1998-01-28 1999-08-06 Roland Corp Electronic musical instrument
JPH11305773A (en) * 1998-04-23 1999-11-05 Roland Corp Electronic instrument

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0997073A (en) * 1995-09-28 1997-04-08 Roland Corp Timber assignment device of electronic musical instrument
JPH11212564A (en) * 1998-01-28 1999-08-06 Roland Corp Electronic musical instrument
JPH11212559A (en) * 1998-01-28 1999-08-06 Roland Corp Electronic musical instrument
JPH11212563A (en) * 1998-01-28 1999-08-06 Roland Corp Electronic musical instrument
JPH11305773A (en) * 1998-04-23 1999-11-05 Roland Corp Electronic instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108831422A (en) * 2017-03-22 2018-11-16 卡西欧计算机株式会社 Operation processing device, transcriber, operation processing method and recording medium
CN108831422B (en) * 2017-03-22 2024-02-13 卡西欧计算机株式会社 Operation processing device, reproduction device, operation processing method, and recording medium

Also Published As

Publication number Publication date
JP5481843B2 (en) 2014-04-23

Similar Documents

Publication Publication Date Title
JP2010139592A (en) Musical tone generating apparatus and musical tone generating program
JP2013068657A (en) Image generation device, method and program for generating image, performance support apparatus, and method and program for supporting performance
JP5481843B2 (en) Musical sound generating device and musical sound generating program
JP5181495B2 (en) Performance control device
CN103226943A (en) Processing device and method for displaying a state of tone generation apparatus
JP4585473B2 (en) Electronic sampler
JP6268674B2 (en) Musical sound generating device, electronic musical instrument, musical sound generating method and program
JP5458494B2 (en) Electronic musical instruments
JP6132052B2 (en) Electronic musical instruments and programs
JP2008015315A (en) Musical sound generating apparatus and musical sound generating program
JP7331915B2 (en) Information processing device, electronic musical instrument, sound capturing system, method and program
JP2006267667A (en) Device for displaying musical note information and program
JP4255871B2 (en) Electronic musical instrument display device
JP6410345B2 (en) Sound preview apparatus and program
JP2008165098A (en) Electronic musical instrument
JP4239937B2 (en) Composition support apparatus and program
JP2012220861A (en) Musical sound generating device and program
JPH11219175A (en) Automatic music playing device
JP6505398B2 (en) Effect giving device
JP3682691B2 (en) Electronic music apparatus having musical tone information assigning operator
JP6728703B2 (en) Signal generator
WO2011030761A1 (en) Music game system, computer program of same, and method of generating sound effect data
JP4159439B2 (en) Electronic musical instrument, musical sound generation method, and computer program
JP4161996B2 (en) Multimedia control device
JPH08185170A (en) Musical sound generating device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110530

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130402

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130531

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140203

R150 Certificate of patent or registration of utility model

Ref document number: 5481843

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150