[go: up one dir, main page]

JPH11119777A - Sampling device - Google Patents

Sampling device

Info

Publication number
JPH11119777A
JPH11119777A JP9277822A JP27782297A JPH11119777A JP H11119777 A JPH11119777 A JP H11119777A JP 9277822 A JP9277822 A JP 9277822A JP 27782297 A JP27782297 A JP 27782297A JP H11119777 A JPH11119777 A JP H11119777A
Authority
JP
Japan
Prior art keywords
pitch
key
sampling
sound
original sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9277822A
Other languages
Japanese (ja)
Inventor
Hiroshi Watanabe
博 渡辺
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 JP9277822A priority Critical patent/JPH11119777A/en
Publication of JPH11119777A publication Critical patent/JPH11119777A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

(57)【要約】 【課題】 サンプリング音を正しい音程関係に基づいて
再生することができるサンプリング装置を実現する。 【解決手段】 サンプリング開始以前に、サンプリング
しようとする原音を割り当てるべく押鍵操作した場合、
その押鍵された鍵に対応した音高の確認音を発生する一
方、当該鍵に原音を割り当てたり、サンプリングした原
音のピッチを抽出し、抽出したピッチと同一音程関係に
ある鍵に原音を割り当てる。また、サンプリングした原
音を自動演奏データに従って自動演奏させる際には、サ
ンプリングした原音を割り当てた鍵の音高、もしくは抽
出した原音ピッチと自動演奏データに含まれる中心音高
との音程差に従って楽曲の音域を移調する。これによ
り、サンプリング音を正しい音程関係に基づいて再生す
ることができる
(57) [Summary] To provide a sampling device capable of reproducing a sampled sound based on a correct pitch relationship. SOLUTION: Before starting sampling, when a key press operation is performed to assign an original sound to be sampled,
While generating a confirmation sound having a pitch corresponding to the depressed key, an original sound is assigned to the key, or a pitch of a sampled original sound is extracted, and the original sound is assigned to a key having the same pitch relationship as the extracted pitch. . When automatically playing the sampled original sound in accordance with the automatic performance data, the music is played according to the pitch of the key to which the sampled original sound is assigned, or the pitch difference between the extracted original sound pitch and the center pitch included in the automatic performance data. Transpose the range. Thereby, the sampled sound can be reproduced based on the correct pitch relationship.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えば電子楽器等
に用いて好適なサンプリング装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sampling device suitable for use in, for example, electronic musical instruments.

【0002】[0002]

【従来の技術】従来より、マイクロフォンを介した音声
入力を、A/D変換してサンプリングデータとして記憶
しておき、音高指定操作(例えば、鍵盤における押鍵操
作)に応じた読み出し速度で当該サンプリングデータを
再生することによって、所望の再生ピッチでサンプリン
グ音を発生するようにしたサンプリング装置が知られて
いる。
2. Description of the Related Art Conventionally, a voice input via a microphone is A / D converted and stored as sampling data, and the voice input is performed at a reading speed corresponding to a pitch specifying operation (for example, a key pressing operation on a keyboard). There is known a sampling device that reproduces sampling data to generate a sampling sound at a desired reproduction pitch.

【0003】[0003]

【発明が解決しようとする課題】さて、従来のサンプリ
ング装置では、サンプリングした原音を所定の鍵に割当
て、その鍵が押鍵された時には、原音をそのままサンプ
リング音として発音させるが、それ以外の他の鍵が押鍵
操作された時には、押鍵操作された鍵が指定する音高に
対応させて原音のピッチを変換してサンプリング音の再
生ピッチを得ている。このため、原音が割当てられる鍵
の音高と原音のピッチとが一致していないと、サンプリ
ング音を正しい音程で再生することができない、という
問題が生じる。
In a conventional sampling device, a sampled original sound is assigned to a predetermined key, and when the key is depressed, the original sound is directly emitted as a sampled sound. When the key is depressed, the pitch of the original sound is converted in accordance with the pitch designated by the depressed key to obtain the reproduction pitch of the sampled sound. Therefore, if the pitch of the key to which the original sound is assigned does not match the pitch of the original sound, a problem occurs that the sampled sound cannot be reproduced at the correct pitch.

【0004】また、従来のサンプリング装置にあって
は、自動演奏データに従ってサンプリングした原音をピ
ッチ変換してサンプリング音による自動演奏を可能とし
た機能を備えるものも知られているが、こうした機能を
備える装置において、サンプリングした原音のピッチ
と、この原音が割当てられる演奏データの音高とが一致
していないと、楽曲を適正な音程関係で自動演奏するこ
とができなくなる、という問題もある。
A conventional sampling device is also known which has a function of enabling pitch conversion of an original sound sampled in accordance with automatic performance data to enable automatic performance using the sampled sound. If the pitch of the sampled original sound does not match the pitch of the performance data to which the original sound is assigned in the device, there is a problem that the music cannot be automatically played with an appropriate pitch relationship.

【0005】そこで本発明は、このような事情に鑑みて
なされたもので、サンプリング音を正しい音程関係に基
づいて再生することができるサンプリング装置を提供す
ることを目的としている。
The present invention has been made in view of such circumstances, and has as its object to provide a sampling device capable of reproducing a sampled sound based on a correct pitch relationship.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の発明では、原音をサンプリングし
てなるサンプリングデータを記憶手段に記憶しておき、
押鍵操作に応じた読み出し速度で当該サンプリングデー
タを記憶手段から読み出して所望の音高のサンプリング
音を発生するサンプリング装置において、サンプリング
開始以前に、サンプリングしようとする原音を割り当て
るべく押鍵操作した場合、その押鍵された鍵に対応した
音高の確認音を発生する一方、当該鍵に原音を割り当て
る鍵割り当て手段を具備することを特徴としている。
In order to achieve the above object, according to the first aspect of the present invention, sampling data obtained by sampling an original sound is stored in a storage means,
When the sampling device reads out the sampling data from the storage means at a reading speed corresponding to the key pressing operation and generates a sampling sound of a desired pitch, and performs a key pressing operation to allocate an original sound to be sampled before starting sampling. And a key allocating means for generating a confirmation sound having a pitch corresponding to the depressed key and allocating an original sound to the key.

【0007】また、請求項2に記載の発明では、原音を
サンプリングしてなるサンプリングデータを記憶手段に
記憶しておき、押鍵操作に応じた読み出し速度で当該サ
ンプリングデータを記憶手段から読み出して所望の音高
のサンプリング音を発生するサンプリング装置におい
て、サンプリングした原音のピッチを抽出し、抽出した
ピッチと同一音程関係にある鍵に原音を割り当てる鍵割
り当て手段を具備することを特徴とする。
According to the second aspect of the present invention, the sampling data obtained by sampling the original sound is stored in the storage means, and the sampled data is read out from the storage means at a reading speed corresponding to the key depression operation, and the desired data is read out. A sampling device for generating a sampled sound having a pitch of (1), characterized by comprising key assigning means for extracting a pitch of the sampled original sound and assigning the original sound to a key having the same pitch relationship as the extracted pitch.

【0008】さらに、請求項3に記載の発明では、サン
プリングした原音を自動演奏データに従ってピッチ変換
してサンプリング音による自動演奏を行うサンプリング
装置において、サンプリングした原音のピッチを抽出す
るピッチ抽出手段と、前記自動演奏データが指定するイ
ベント実行タイミング毎にイベント情報を読み出し、読
み出したイベント情報がノートオンイベントの時には前
記ピッチ抽出手段が抽出した原音ピッチと前記自動演奏
データに含まれる中心音高との音程差に従って当該自動
演奏データを形成するイベント情報中の音高情報を移調
する移調手段とを具備することを特徴としている。
Further, according to the third aspect of the present invention, there is provided a sampling device for performing pitch conversion of a sampled original sound in accordance with automatic performance data and performing automatic performance with the sampled sound, pitch extracting means for extracting a pitch of the sampled original sound, Event information is read at each event execution timing specified by the automatic performance data, and when the read event information is a note-on event, the pitch between the original sound pitch extracted by the pitch extracting means and the center pitch included in the automatic performance data Transposing means for transposing the pitch information in the event information forming the automatic performance data according to the difference.

【0009】また、請求項4に記載の発明では、サンプ
リング開始以前に、サンプリングしようとする原音を割
り当てるべく押鍵操作した場合、その押鍵された鍵に対
応した音高の確認音を発生する一方、当該鍵に原音を割
り当てる鍵割り当て手段と、自動演奏データが指定する
イベント実行タイミング毎に、楽曲の進行に同期してイ
ベント情報を読み出して行き、読み出したイベント情報
がノートオンイベントの時には前記鍵割り当て手段によ
って原音が割り当てられた鍵の音高と自動演奏データに
含まれる中心音高との音程差に従って当該自動演奏デー
タを形成するイベント情報中の音高情報を移調しながら
自動演奏する自動演奏手段とを具備することを特徴とす
る。
According to the fourth aspect of the present invention, if a key-depressing operation is performed to assign an original sound to be sampled before the sampling is started, a confirmation sound of a pitch corresponding to the depressed key is generated. On the other hand, at each event execution timing designated by the automatic performance data, the key information is read out in synchronization with the progress of the music, and the key information is read out when the read out event information is a note-on event. Automatically performing the automatic performance while transposing the pitch information in the event information forming the automatic performance data according to the pitch difference between the key pitch to which the original sound is allocated by the key allocation means and the central pitch included in the automatic performance data. And a performance means.

【0010】本発明では、サンプリング開始以前に、サ
ンプリングしようとする原音を割り当てるべく押鍵操作
した場合、その押鍵された鍵に対応した音高の確認音を
発生する一方、当該鍵に原音を割り当てたり、サンプリ
ングした原音のピッチを抽出し、抽出したピッチと同一
音程関係にある鍵に原音を割り当てるので、サンプリン
グ音を正しい音程関係に基づいて再生することが可能に
なる。また、サンプリングした原音を自動演奏データに
従って自動演奏させる際には、サンプリングした原音を
割り当てた鍵の音高、もしくは抽出した原音ピッチと自
動演奏データに含まれる中心音高との音程差に従って楽
曲の音域を移調するので、サンプリングした原音を自動
演奏データに従ってピッチ変換してサンプリング音によ
る自動演奏を行う時でも、サンプリング音を正しい音程
関係に基づいて再生し得る。
According to the present invention, when a key is pressed to assign an original sound to be sampled before the start of sampling, a confirmation sound having a pitch corresponding to the depressed key is generated, while the original sound is assigned to the key. Since the pitch of the assigned original sound is extracted and the original sound is assigned to a key having the same pitch relationship as the extracted pitch, the sampled sound can be reproduced based on the correct pitch relationship. When automatically playing the sampled original sound in accordance with the automatic performance data, the music is played according to the pitch of the key to which the sampled original sound is assigned, or the pitch difference between the extracted original sound pitch and the center pitch included in the automatic performance data. Since the range is transposed, the sampled sound can be reproduced based on the correct pitch relationship even when the sampled original sound is pitch-converted according to the automatic performance data and the automatic performance using the sampled sound is performed.

【0011】[0011]

【発明の実施の形態】本発明によるサンプリング装置
は、周知の電子楽器の他、パーソナル・コンピュータを
用いたDTM(デスクトップミュージック)装置などに
適用され得る。以下では、本発明の実施の形態であるサ
ンプリング装置を実施例として図面を参照して説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The sampling apparatus according to the present invention can be applied to a DTM (Desktop Music) apparatus using a personal computer in addition to a well-known electronic musical instrument. Hereinafter, a sampling device according to an embodiment of the present invention will be described as an example with reference to the drawings.

【0012】A.第1実施例の構成 図1および図2は、第1実施例によるサンプリング装置
の外観および構成をそれぞれ示す外観図、ブロック図で
ある。これらの図において、1は鍵盤であり、押離鍵操
作に応じたキーオン/キーオフ信号、鍵番号(あるいは
キーコード)および押鍵速度(強度)に対応したベロシ
ティ等からなる演奏情報を発生する。
A. Configuration of First Embodiment FIGS. 1 and 2 are an external view and a block diagram showing the external appearance and configuration of a sampling device according to a first embodiment, respectively. In these figures, reference numeral 1 denotes a keyboard which generates performance information including a key-on / key-off signal in response to a key-release operation, a key number (or a key code), a velocity corresponding to a key-depression speed (strength), and the like.

【0013】2は操作パネル面上に配設される各種スイ
ッチや操作子から構成されるパネルスイッチ部である。
このパネルスイッチ部2には、図1に図示するように、
サンプリングの実行/停止を指示するサンプリングスイ
ッチ2a、動作モードを指定するモードスイッチ2b
や、自動演奏の開始/停止を指示するスタート/ストッ
プスイッチ2c、あるいは装置電源をオンオフする電源
スイッチ2d等が設けられてる。
Reference numeral 2 denotes a panel switch section including various switches and controls provided on the operation panel surface.
As shown in FIG. 1, the panel switch unit 2 includes:
Sampling switch 2a for instructing execution / stop of sampling, mode switch 2b for designating operation mode
Further, a start / stop switch 2c for instructing start / stop of the automatic performance, a power switch 2d for turning on / off the apparatus power, and the like are provided.

【0014】サンプリングスイッチ2aは、押下(オン
操作)された後に離される(オフ操作)とサンプリング
待機状態を指示するスイッチ信号を発生する。また、モ
ードスイッチ2bは押下(オン操作)される毎に、動作
モードを「再生モード」あるいは「サンプリングモー
ド」に交互に指定するスイッチである。なお、本実施例
で言う「再生モード」とは「サンプリングモード」下に
て採録したサンプリング波形を、自動演奏データに応じ
て再生する動作を指す。
When the sampling switch 2a is depressed (on operation) and then released (off operation), it generates a switch signal indicating a sampling standby state. The mode switch 2b is a switch for alternately designating the operation mode to "reproduction mode" or "sampling mode" each time the mode switch 2b is pressed (turned on). The “reproduction mode” in this embodiment refers to an operation of reproducing a sampling waveform recorded under the “sampling mode” in accordance with automatic performance data.

【0015】3はマイクロフォン、4はマイクロフォン
3を介して入力される音声信号を一定レベルに増幅した
後、所定のサンプリング周波数でサンプリングするA/
D変換器である。5は装置各部を制御するCPUであ
り、本発明の要旨にかかわる一連の動作については後述
する。6は上記CPU5にロードされる各種制御プログ
ラムを記憶するROMである。また、このROM6には
データ記憶エリアが設けられており、ここには後述する
サイン波データや自動演奏データが記憶されている。
Reference numeral 3 denotes a microphone, and 4 denotes an A / A that amplifies an audio signal input via the microphone 3 to a predetermined level and then samples the audio signal at a predetermined sampling frequency.
It is a D converter. Reference numeral 5 denotes a CPU that controls each unit of the apparatus. A series of operations relating to the gist of the present invention will be described later. Reference numeral 6 denotes a ROM for storing various control programs loaded on the CPU 5. The ROM 6 is provided with a data storage area, in which sine wave data and automatic performance data described later are stored.

【0016】ROM6のデータ記憶エリアに記憶される
サイン波データとは、基準ピッチ(音高)の確認音(後
述する)を発音させるために用いるものである。また、
同記憶エリアには、複数楽曲分の自動演奏データがプリ
セットされており、この内から所望に楽曲の自動演奏デ
ータが選択されて後述するRAM7に格納し直される。
自動演奏データは、その楽曲の中心音高と、曲進行順に
配列される時系列のタイミング情報およびイベント情報
から構成されている。
The sine wave data stored in the data storage area of the ROM 6 is used to generate a confirmation sound (described later) having a reference pitch (pitch). Also,
In the storage area, automatic performance data of a plurality of music pieces are preset, and automatic performance data of the music pieces are desirably selected from these preset data and stored in the RAM 7 described later.
The automatic performance data is composed of the central pitch of the music, time-series timing information and event information arranged in the music progression order.

【0017】RAM7は上記CPU5のワークエリアと
して用いられ、各種レジスタ・フラグデータを記憶する
レジスタエリアと、上述したサイン波データおよび自動
演奏データを一時記憶するデータエリアとを有する。こ
こで、図3を参照してRAM7のデータエリアについて
説明する。図3において、SWEはサイン波記憶エリア
であり、ROM6より転送されてくる正弦波振幅(1)
〜(N)を一時記憶する。SPEはサンプリングデータ
記憶エリアであり、CPU5の指示の下に、上述のA/
D変換器4が発生するサンプリングデータDS(振幅
(1)〜(N))が格納される。APEはROM6に格
納される自動演奏データ、すなわち、中心音高CP、曲
進行順に配列されたタイミング情報TIME(1)〜
(N)およびイベント情報EVENT(1)〜(N)が
格納される自動演奏データ記憶エリアである。
The RAM 7 is used as a work area of the CPU 5, and has a register area for storing various register / flag data and a data area for temporarily storing the sine wave data and the automatic performance data. Here, the data area of the RAM 7 will be described with reference to FIG. In FIG. 3, SWE is a sine wave storage area, and the sine wave amplitude (1) transferred from the ROM 6
To (N) are temporarily stored. SPE is a sampling data storage area.
The sampling data DS (amplitude (1) to (N)) generated by the D converter 4 is stored. APE is automatic performance data stored in the ROM 6, that is, the timing information TIME (1) to the center pitch CP and the timing information TIME (1) arranged in the music progression order.
The automatic performance data storage area stores (N) and event information EVENT (1) to (N).

【0018】8は周知の波形メモリ読み出し方式によっ
て構成され、時分割動作する複数の同時発音チャンネル
を備える音源である。音源8では、CPU5の制御の下
に、押離鍵操作に応じて発生する演奏情報あるいは上記
RAM7の自動演奏データ記憶エリアAPEから順次読
み出される自動演奏データに基づき、サイン波もしくは
サンプリングした原音を用いて楽音合成し、これを楽音
データWとして出力する。9は音源8から出力される楽
音データWをアナログ波形信号に変換した後、これを増
幅してスピーカSPから発音するサウンドシステムであ
る。
Reference numeral 8 denotes a sound source which is constituted by a well-known waveform memory reading method and has a plurality of simultaneous sounding channels which operate in a time-division manner. Under the control of the CPU 5, the sound source 8 uses a sine wave or sampled original sound based on performance information generated in response to a key press / release operation or automatic performance data sequentially read from the automatic performance data storage area APE of the RAM 7. And synthesizes a musical tone, and outputs this as musical tone data W. Reference numeral 9 denotes a sound system which converts the musical tone data W output from the sound source 8 into an analog waveform signal, amplifies the analog waveform signal, and generates the analog waveform signal from the speaker SP.

【0019】B.第1実施例の動作 次に、図4〜図13を参照して上記構成による第1実施
例の動作について説明する。以下では、最初に、動作概
要としてメインルーチンの動作について説明した後、メ
インルーチンからコールされる一連の処理動作について
述べる。
B. Operation of First Embodiment Next, an operation of the first embodiment having the above configuration will be described with reference to FIGS. Hereinafter, first, the operation of the main routine will be described as an outline of the operation, and then a series of processing operations called from the main routine will be described.

【0020】(1)メインルーチンの動作 先ず、本実施例に電源が投入されると、CPU5はRO
M6から所定の制御プログラムを読み出してロードし、
図4に示すメインルーチンのステップSA1に処理を進
める。ステップSA1では、RAM7のワークエリアに
設けられている各種レジスタ・フラグ類をゼロリセット
したり初期値をセットする他、音源8に対して内部レジ
スタ・フラグの初期化指示を与えるイニシャライズ処理
を行う。
(1) Operation of Main Routine First, when power is turned on in this embodiment, the CPU 5
Read and load a predetermined control program from M6,
The process proceeds to step SA1 of the main routine shown in FIG. In step SA1, various registers and flags provided in the work area of the RAM 7 are reset to zero and initial values are set, and an initialization process for giving the tone generator 8 an instruction to initialize the internal register and flags is performed.

【0021】イニシャライズ処理が完了すると、CPU
5は次のステップSA2に処理を進め、パネルスイッチ
部2におけるスイッチ操作に対応した処理、すなわち、
モードスイッチ2bの操作に応じたモード遷移や、サン
プリングスイッチ2aの操作によるサンプリング開始指
示、またはスタート/ストップスイッチ2cの操作に応
じた自動演奏スタート指示などを行うスイッチ処理を実
行する。
When the initialization process is completed, the CPU
5 advances the process to the next step SA2, a process corresponding to a switch operation on the panel switch unit 2, that is,
A switch process for executing a mode transition according to the operation of the mode switch 2b, a sampling start instruction by the operation of the sampling switch 2a, or an automatic performance start instruction according to the operation of the start / stop switch 2c is executed.

【0022】次いで、ステップSA3に進むと、CPU
5は鍵盤1の各鍵を走査して押離鍵操作による鍵イベン
トの有無を検出すると共に、検出したイベント内容を判
別し、判別したイベントに応じてフラグONTF,ON
F(後述する)をセットしたり、押鍵操作された鍵にサ
ンプリングしようとする原音を割り当て、その割り当て
がなされた鍵の音高で確認音の発音を指示する鍵盤処理
を実行する。
Next, when the flow advances to step SA3, the CPU
Numeral 5 scans each key of the keyboard 1 to detect the presence / absence of a key event due to a key press / release operation, determines the content of the detected event, and sets flags ONTF and ON according to the determined event.
An F (described later) is set or an original sound to be sampled is assigned to a key depressed, and keyboard processing is performed to instruct the generation of a confirmation sound at the pitch of the assigned key.

【0023】続いて、ステップSA4では、一連のスイ
ッチ操作によりサンプリング待機状態となってから、マ
イクロフォン3を介して入力される音声信号が所定レベ
ル以上になった時点で、順次それをサンプリングしてR
AM7のサンプリングデータ記憶エリアSPEに書込
み、サンプリング期間終了と共に採録を停止するサンプ
リング処理を行う。
Subsequently, in step SA4, after a sampling standby state is established by a series of switch operations, when the audio signal input via the microphone 3 becomes higher than a predetermined level, the audio signal is sequentially sampled and R
A sampling process is performed to write the data into the sampling data storage area SPE of the AM 7 and stop the recording at the end of the sampling period.

【0024】次に、ステップSA5に進むと、CPU5
は自動演奏スタート状態にあると、自動演奏データが指
定するイベント実行タイミング毎に、楽曲の進行に同期
してイベント情報を読み出して行き、読み出したイベン
ト情報がノートオンイベントの時にはサンプリングした
原音を割り当てた鍵の音高と自動演奏データの中心音高
CPとの音程差に従って楽曲の音域を移調する自動演奏
処理を実行する。
Next, at step SA5, the CPU 5
In the automatic performance start state, at each event execution timing specified by the automatic performance data, event information is read out in synchronization with the progress of the song, and if the read out event information is a note-on event, the sampled original sound is assigned An automatic performance process for transposing the musical range according to the pitch difference between the pitch of the key and the central pitch CP of the automatic performance data is executed.

【0025】そして、ステップSA6では、上記ステッ
プSA3にて発音指示される確認音や、上記ステップS
A6にて移調される自動演奏データに応じて発音指示さ
れるサンプリング音を発生させる発音処理を行い、続く
ステップSA7では、効果付与等のその他の処理を行
い、この後に再び処理をステップSA1に戻して上述し
た各処理を繰り返す。
Then, in step SA6, the confirmation sound instructed to be sounded in step SA3,
At step A6, a sound generation process for generating a sampled sound instructed to generate a sound in accordance with the automatic performance data transposed is performed. At step SA7, other processes such as effect addition are performed, and thereafter, the process returns to step SA1 again. Each of the above-described processes is repeated.

【0026】(2)スイッチ処理ルーチンの動作 次に、図5を参照してスイッチ処理ルーチンの動作につ
いて説明する。前述したステップSA2を介してスイッ
チ処理ルーチンが実行されると、CPU5は図5に示す
ステップSB1に処理を進める。ステップSB1では、
モードスイッチ2bがオン操作されたか否かを判断す
る。
(2) Operation of Switch Processing Routine Next, the operation of the switch processing routine will be described with reference to FIG. When the switch processing routine is executed through the above-described step SA2, the CPU 5 advances the processing to step SB1 shown in FIG. In step SB1,
It is determined whether or not the mode switch 2b has been turned on.

【0027】ここで、モードスイッチ2bがオン操作さ
れたならば、判断結果が「YES」となり、ステップS
B2に処理を進めてレジスタMFに格納されるモードフ
ラグMFをビット反転させ、次のステップSB3に処理
を進める。一方、モードスイッチ2bがオン操作されな
い時には、上記ステップSB1の判断結果が「NO」と
なり、ステップSB3に処理を進める。以下、サンプリ
ングモードに設定された場合の動作と、再生モードに設
定された場合の動作とに場合分けして説明を進める。
Here, if the mode switch 2b is turned on, the result of the determination is "YES" and step S
The process proceeds to B2 to invert the bit of the mode flag MF stored in the register MF, and proceeds to the next step SB3. On the other hand, when the mode switch 2b is not turned on, the result of the determination in step SB1 is "NO", and the process proceeds to step SB3. Hereinafter, the description will proceed with the operation in the case where the sampling mode is set and the operation in the case where the reproduction mode is set.

【0028】サンプリングモードに設定された場合の
動作 この場合、モードフラグMFが「1」になるので、ステ
ップSB3の判断結果が「YES」となり、次のステッ
プSB4に処理を進め、サンプリングスイッチ2aが押
下中(オン操作中)であるか否かを判断する。そして、
サンプリングスイッチ2aがオン操作中であれば、判断
結果が「YES」となり、ステップSB5に進み、フラ
グセットする。
Operation when the sampling mode is set In this case, since the mode flag MF is set to "1", the result of determination in step SB3 is "YES", the process proceeds to the next step SB4, and the sampling switch 2a is turned on. It is determined whether or not the button is being pressed (on operation). And
If the sampling switch 2a is being turned on, the determination result is "YES", and the routine proceeds to Step SB5 where a flag is set.

【0029】すなわち、ステップSB5では、サンプリ
ングモード下において、サンプリング開始以前の状態で
あることを表わすべく、レジスタORIGINALFに
格納されるフラグORIGINALFを「1」にセット
し、続くステップSB6ではレジスタPITCHFに格
納されるフラグPITCHFを「0」にセットする。な
お、このフラグPITCHFが意図するところについて
は後述する。
That is, in step SB5, the flag ORIGINALF stored in the register ORIGINALF is set to "1" in the sampling mode to indicate the state before the start of the sampling, and in step SB6, the flag PITCHF is stored in the register PITCHF. The flag PITCHF to be executed is set to “0”. The purpose of the flag PITCHF will be described later.

【0030】さて、一方、サンプリングモード下におい
てサンプリングスイッチ2aがオン操作されていない場
合には、上述したステップSB4の判断結果が「NO」
となり、ステップSB7に進む。ステップSB7では、
上記フラグORIGINALFが「1」、つまり、サン
プリングスイッチ2aがオン操作中であるか否かを判断
する。
On the other hand, if the sampling switch 2a is not turned on in the sampling mode, the result of the determination in step SB4 is "NO".
, And the process proceeds to Step SB7. In step SB7,
It is determined whether the flag ORIGINALF is "1", that is, whether the sampling switch 2a is being turned on.

【0031】ここで、サンプリングスイッチ2aがオン
操作され続けていない時には、判断結果が「NO」とな
り、後述するステップSB10に進むが、オン操作中で
あれば、判断結果が「YES」となり、次のステップS
B8に処理を進める。そして、ステップSB8では、フ
ラグORIGINALFをゼロリセットし、続くステッ
プSB9では、サンプリング待機状態を表わすべく、レ
ジスタTAIKIFに格納されるフラグTAIKIFを
「1」にセットした後、ステップSB10に処理を進め
る。
Here, when the sampling switch 2a is not continuously turned on, the determination result is "NO", and the process proceeds to Step SB10 to be described later. Step S
The process proceeds to B8. Then, in a step SB8, the flag ORIGINALF is reset to zero. In a succeeding step SB9, the flag TAIKIF stored in the register TAIKIF is set to "1" to indicate a sampling standby state, and then the process proceeds to a step SB10.

【0032】したがって、サンプリングモード下におい
ては、サンプリングスイッチ2aをオン操作してからオ
フ操作することにより、サンプリング待機状態に設定さ
れるようになっている。
Therefore, in the sampling mode, the sampling switch 2a is turned on after being turned on, thereby setting a sampling standby state.

【0033】再生モードに設定された場合の動作 この場合、モードフラグMFは「0」になるので、ステ
ップSB10の判断結果が「YES」となり、次のステ
ップSB11に処理を進め、自動演奏の開始・停止を指
示するスタート/ストップスイッチ2cがオン操作され
たか否かを判断する。ここで、当該スイッチ2cがオン
操作されれば、判断結果が「YES」となり、次のステ
ップSB12に処理を進めるが、そうでなければ、後述
するステップSB13(図6参照)へ進む。
Operation when the playback mode is set In this case, the mode flag MF is set to "0", so that the determination result in step SB10 is "YES", the process proceeds to the next step SB11, and the automatic performance starts. It is determined whether or not the start / stop switch 2c for instructing stop has been turned on. Here, if the switch 2c is turned on, the determination result is "YES" and the process proceeds to the next step SB12, but if not, the process proceeds to step SB13 (see FIG. 6) described later.

【0034】スタート/ストップスイッチ2cのオン操
作に応じてステップSB12に処理を進めると、CPU
5はレジスタSTARTFに格納されるフラグSTAR
TFをビット反転させ、続くステップSB13ではビッ
ト反転されたフラグSTARTFが「1」、つまり、ス
タート指示であるかどうかを判断する。ここで、ビット
反転されたフラグSTARTFが「1」ではなく、スト
ップ指示を表わす場合には判断結果が「NO」となり、
図6に示すステップSB14に進み、現在発音中にある
自動演奏データについて消音指示し、続くステップSB
15ではタイマ1インタラプト(後述する)を禁止して
自動演奏を停止させる。
When the process proceeds to step SB12 in response to the ON operation of the start / stop switch 2c, the CPU
5 is a flag STAR stored in the register STARTF.
The bit of the TF is inverted, and in the next step SB13, it is determined whether or not the bit-inverted flag STARTF is "1", that is, it is a start instruction. Here, if the bit-inverted flag STARTF is not “1” but indicates a stop instruction, the determination result is “NO”, and
Proceeding to step SB14 shown in FIG. 6, a mute instruction is given for the automatic performance data that is currently sounding.
In step 15, the timer 1 interrupt (described later) is prohibited and the automatic performance is stopped.

【0035】これに対し、スタート指示の場合には、上
記ステップSB13の判断結果が「YES」となり、ス
テップSB16〜ステップSB22を経て自動演奏に必
要な諸設定を行ってからステップSB23を経て自動演
奏をスタートさせる。すなわち、ステップSB16で
は、RAM7の自動演奏データ記憶エリアAPE(図3
参照)の先頭アドレスSTARTをアドレスカウンタA
DDRESS1にストアし、続くステップSB17で
は、このアドレスカウンタADDRESS1に格納され
た先頭アドレスSTARTに応じて自動演奏データ記憶
エリアAPEから読み出される中心音高CPを、レジス
タCHUSINにストアする。
On the other hand, in the case of a start instruction, the result of determination in step SB13 is "YES", and various settings necessary for automatic performance are performed through steps SB16 to SB22, and then automatic performance is performed via step SB23. Start. That is, in step SB16, the automatic performance data storage area APE (FIG.
Address) of the address counter A
In step SB17, the center pitch CP read from the automatic performance data storage area APE in accordance with the start address START stored in the address counter ADDRESS1 is stored in the register CHUSIN.

【0036】次に、ステップSB18では、レジスタP
ITCHFに格納されるフラグPITCHFが「1」で
あるか否か、すなわち、サンプリングした原音を鍵に割
当てた状態にあるかどうかを判断する。そして、原音が
鍵割当てされている時には、判断結果が「YES」とな
り、次のステップSB19に進み、レジスタORIGI
NALに格納される鍵番号、つまり、原音が割当てられ
た鍵の鍵番号から上記レジスタCHUSINに格納され
る中心音高CPを差し引いて、原音が割当てられた鍵の
音高と自動演奏データの中心音高との音高差をレジスタ
SABUNに登録した後、後述するステップSB21に
処理を進める。
Next, at step SB18, the register P
It is determined whether or not the flag PITCHF stored in ITCHF is “1”, that is, whether or not the sampled original sound is assigned to the key. Then, when the original sound is assigned a key, the judgment result is "YES", and the process proceeds to the next Step SB19 where the register ORIGI
By subtracting the center pitch CP stored in the register CHUSIN from the key number stored in the NAL, that is, the key number of the key to which the original sound is assigned, the pitch of the key to which the original sound is assigned and the center of the automatic performance data. After the pitch difference from the pitch is registered in the register SABUN, the process proceeds to step SB21 described later.

【0037】一方、レジスタPITCHFに格納される
フラグPITCHFが「0」の時、すなわち、サンプリ
ングした原音が鍵割り当てされていない状態では、上記
ステップSB18の判断結果は「NO」となり、ステッ
プSB20に処理を進める。ステップSB20では、レ
ジスタSABUNの値を「0」として次のステップSB
21に処理を進める。
On the other hand, when the flag PITCHF stored in the register PITCHF is "0", that is, when no key is assigned to the sampled original sound, the result of the determination in step SB18 is "NO", and the process proceeds to step SB20. Advance. In step SB20, the value of the register SABUN is set to “0”, and the next step SB20 is executed.
The process proceeds to 21.

【0038】そして、ステップSB21に進むと、CP
U5はアドレスカウンタADDRESS1に格納される
アドレスをインクリメントして歩進させ、続くステップ
SB22ではこの歩進されたアドレスに応じて自動演奏
データ記憶エリアAPEからタイミング情報TIME
(1)を読み出し、これをレジスタTIMEにストアす
る。
Then, when the flow advances to step SB21, the CP
U5 increments the address stored in the address counter ADDRESS1 and increments the address. In the next step SB22, the timing information TIME is read from the automatic performance data storage area APE in accordance with the incremented address.
(1) is read out and stored in the register TIME.

【0039】次いで、ステップSB23では、タイマ1
インタラプトの禁止を解除する。これにより、所定テン
ポに同期して自動演奏データを順次読み出すタイマ1イ
ンタラプトが起動され、上記タイミング情報TIME
(1)に対応したイベントタイミングから順次、自動演
奏が進行する。そして、この後、CPU5はステップS
B24に処理を進め、例えば、音色選択スイッチの操作
に応じた音色切替え等、その他のスイッチ処理を実行し
てから本ルーチンを完了して前述のメインルーチンへ処
理を戻す。
Next, at step SB23, the timer 1
Remove interrupt prohibition. As a result, a timer 1 interrupt for sequentially reading out automatic performance data in synchronization with a predetermined tempo is started, and the timing information TIME is output.
Automatic performance proceeds sequentially from the event timing corresponding to (1). Then, after this, the CPU 5 proceeds to step S
The process proceeds to B24, and after executing other switch processing such as tone color switching in accordance with the operation of the tone color selection switch, the present routine is completed, and the process returns to the main routine.

【0040】(3)鍵盤処理ルーチンの動作 次に、図7を参照して鍵盤処理ルーチンの動作について
説明する。前述したステップSA3を介して本ルーチン
が実行されると、CPU5は図7に示すステップSC1
に処理を進め、鍵盤1の各鍵を走査して鍵変化を判別す
る。すなわち、鍵操作が行われず、鍵変化が無い場合に
は、何も処理せずに本ルーチンを完了し、離鍵操作に応
じたキーオフイベントが発生した時にはステップSC7
に処理を進めてレジスタONFに格納されるフラグON
Fを「0」としてキーオフ状態を表わしてから本ルーチ
ンを完了させる。
(3) Operation of Keyboard Processing Routine Next, the operation of the keyboard processing routine will be described with reference to FIG. When this routine is executed through step SA3 described above, CPU 5 executes step SC1 shown in FIG.
The key 1 is scanned to determine a key change. That is, if no key operation is performed and there is no key change, this routine is completed without any processing, and when a key-off event corresponding to the key release operation occurs, step SC7 is performed.
The flag stored in the register ONF is turned on.
This routine is completed after F is set to "0" to indicate the key-off state.

【0041】一方、押鍵操作に応じたキーオンイベント
が発生すると、上記ステップSC1を経てステップSC
2に処理を進め、レジスタONTFに格納されるオント
リガフラグONTFを「1」にセットしてオンイベント
発生を表わし、続くステップSC3では押鍵された鍵の
音高を表わす鍵番号を、レジスタNOTEにストアす
る。
On the other hand, when a key-on event occurs in response to the key depression operation, the process proceeds to step SC1 through step SC1.
The process proceeds to step 2 to set the on-trigger flag ONTF stored in the register ONTF to "1" to indicate the occurrence of an on-event. In the subsequent step SC3, a key number representing the pitch of the depressed key is stored in the register NOTE Store in

【0042】次いで、ステップSC4に進むと、上述し
たフラグORIGINALFが「1」か否か、すなわ
ち、サンプリング開始以前の状態であるか否かを判断す
る。ここで、サンプリング終了後の状態であれば、判断
結果は「NO」となり、本ルーチンを完了させるが、サ
ンプリング開始以前の状態であると、判断結果が「YE
S」となり、次のステップSC5に処理を進める。
Next, in step SC4, it is determined whether or not the above-mentioned flag ORIGINALF is "1", that is, whether or not the state is before the start of sampling. Here, if the state is after sampling is completed, the determination result is “NO”, and this routine is completed. If the state is before sampling is started, the determination result is “YE”.
S ", and proceeds to the next step SC5.

【0043】ステップSC5では、レジスタNOTEに
格納されている鍵番号を、レジスタORIGINALに
格納する。これにより、サンプリングしようとしている
原音を割り当てる鍵が指定され、続くステップSC6で
は、鍵指定された旨を表わすべくレジスタPITCHF
に格納されるフラグPITCHFを「1」にセットして
本ルーチンを完了する。
At step SC5, the key number stored in the register NOTE is stored in the register ORIGINAL. As a result, the key to which the original sound to be sampled is assigned is specified. In the subsequent step SC6, the register PITCHF is set to indicate that the key has been specified.
Is set to "1", and this routine is completed.

【0044】このように、鍵盤処理ルーチンでは、押離
鍵操作に応じてフラグONTF,ONFをセットする一
方で、サンプリングスイッチ2aをオン操作しながら押
鍵操作された場合には、その押鍵された鍵にサンプリン
グしようとする原音を割り当てるようにしている。
As described above, in the keyboard processing routine, while the flags ONTF and ONF are set in accordance with the key press / release operation, if the key is pressed while the sampling switch 2a is turned on, the key is pressed. The original sound to be sampled is assigned to the key.

【0045】(4)サンプリング処理ルーチンの動作 次に、図8を参照してサンプリング処理ルーチンの動作
について説明する。前述したステップSA4を介して本
ルーチンが実行されると、CPU5は図8に示すステッ
プSD1に処理を進め、レジスタTAIKIFに格納さ
れるフラグTAIKIFが「1」、つまり、サンプリン
グ待機状態であるかどうかを判断する。
(4) Operation of Sampling Processing Routine Next, the operation of the sampling processing routine will be described with reference to FIG. When this routine is executed via the above-described step SA4, the CPU 5 advances the processing to step SD1 shown in FIG. 8, and determines whether or not the flag TAIKIF stored in the register TAIKIF is "1", that is, whether or not it is in the sampling standby state. Judge.

【0046】ここで、サンプリングスイッチ2aをオン
操作しながら、サンプリングしようとする原音を割り当
てるべく所望の音高の鍵を押鍵した後に、サンプリング
スイッチ2aをオフ操作したとする。そうすると、前述
のステップSB9(図5参照)を経てフラグTAIKI
Fが「1」にセットされ、サンプリング待機状態になる
ので、ステップSD1の判断結果が「YES」となり、
次のステップSD2に処理を進める。
Here, it is assumed that while the sampling switch 2a is turned on, a key having a desired pitch is depressed in order to allocate an original sound to be sampled, and then the sampling switch 2a is turned off. Then, the flag TAIKI is passed through the above-described step SB9 (see FIG. 5).
Since F is set to "1" and the apparatus enters the sampling standby state, the result of determination in step SD1 becomes "YES",
The process proceeds to the next Step SD2.

【0047】ステップSD2では、A/D変換器4から
のサンプリングデータ入力があるかどうかを判断し、入
力が無い場合には一旦、本ルーチンを完了させるが、入
力がある時には次のステップSD3に処理を進める。そ
して、ステップSD3に進むと、CPU5はA/D変換
器4からのサンプリングデータ入力をレジスタDATA
にストアし、続くステップSD4ではこのレジスタDA
TAに一時記憶したサンプリングデータ(振幅値)がス
レッショルド値より大きいか否かを判断する。
In step SD2, it is determined whether or not there is an input of sampling data from the A / D converter 4. If there is no input, this routine is completed once. Proceed with the process. Then, when proceeding to step SD3, the CPU 5 sends the sampling data input from the A / D converter 4 to the register DATA.
At the subsequent step SD4.
It is determined whether the sampling data (amplitude value) temporarily stored in the TA is larger than a threshold value.

【0048】サンプリングデータがスレッショルド値を
超えない時には、無効入力と見做して判断結果が「N
O」となり、本ルーチンを一旦、完了させるが、スレッ
ショルド値を超えた入力である時には、有効な入力であ
ると判断して次のステップSD5に処理を進め、サンプ
リング期間に相当する設定時間を、レジスタTIME2
にセットする。次いで、ステップSD6では、レジスタ
SAMPLINGFに格納されるフラグSAMPLIN
GFを「1」にセットしてサンプリング実行中の旨を表
わし、続くステップSD7ではフラグTAIKIFを
「0」にセットする。
When the sampling data does not exceed the threshold value, it is regarded as an invalid input and the judgment result is "N".
O ", the routine is once completed, but if the input exceeds the threshold value, it is determined that the input is valid, and the process proceeds to the next Step SD5, where the set time corresponding to the sampling period is set to Register TIME2
Set to. Next, at step SD6, the flag SAMLIN stored in the register SAMLINGF
GF is set to "1" to indicate that sampling is being executed, and in the following step SD7, the flag TAIKIF is set to "0".

【0049】そして、ステップSD8に進むと、CPU
5はRAM7のサンプリングデータ記憶エリアSPE
(図3参照)の先頭アドレスWAVEを、アドレスカウ
ンタADDRESS2にストアし、次のステップSD9
では、このアドレスカウンタADDRESS2に格納さ
れる先頭アドレスWAVEに、レジスタDATAに保持
されているサンプリングデータDSを書き込む。この
後、ステップSD10に進み、アドレスカウンタADD
RESS2に格納される書込みアドレスを歩進させてか
ら一旦、本ルーチンを完了させる。
When the flow advances to step SD8, the CPU
5 is a sampling data storage area SPE of the RAM 7
The start address WAVE (see FIG. 3) is stored in the address counter ADDRESS2, and the next step SD9
Then, the sampling data DS stored in the register DATA is written to the head address WAVE stored in the address counter ADDRESS2. Thereafter, the process proceeds to Step SD10, where the address counter ADD
This routine is completed once the write address stored in RESS2 is incremented.

【0050】こうして、最初のサンプリングデータDS
が書き込まれた後に、再度、本ルーチンが実行される
と、この時、フラグTAIKIFは「0」となっている
ので、上述したステップSD1の判断結果は「NO」と
なり、ステップSD11に処理を進める。ステップSD
11では、フラグSAMPLINGFが「1」、つま
り、サンプリング実行中であるかどうかを判断する。サ
ンプリング実行中であれば、判断結果が「YES」とな
り、次のステップSD12に処理を進めるが、サンプリ
ング期間が終わっている時には判断結果が「NO」とな
り、本ルーチンを完了させる。
Thus, the first sampling data DS
Is written again after this is written, at this time, since the flag TAIKIF is "0", the result of the determination in step SD1 is "NO", and the process proceeds to step SD11. . Step SD
At 11, it is determined whether the flag SAMPLING is "1", that is, whether sampling is being performed. If sampling is being performed, the determination result is “YES”, and the process proceeds to the next Step SD12. However, if the sampling period is over, the determination result is “NO”, and this routine is completed.

【0051】そして、サンプリング実行中では、ステッ
プSD12に進み、A/D変換器4からのサンプリング
データ入力があるかどうかを判断し、入力が無い場合に
は判断結果が「NO」となり、後述するステップSD1
6に処理を進める。一方、入力がある時には次のステッ
プSD13に処理を進め、A/D変換器4からのサンプ
リングデータ入力をレジスタDATAにストアする。続
いて、ステップSD14では、アドレスカウンタADD
RESS2に格納される書込みアドレスに従って、レジ
スタDATAに保持されているサンプリングデータDS
をサンプリングデータ記憶エリアSPEに書き込む。こ
の後、ステップSD15では、アドレスカウンタADD
RESS2の書込みアドレスを歩進させる。
Then, during the execution of the sampling, the process proceeds to step SD12, where it is determined whether or not there is a sampling data input from the A / D converter 4. If there is no input, the determination result is "NO", which will be described later. Step SD1
The process proceeds to 6. On the other hand, if there is an input, the process proceeds to the next step SD13, and the sampling data input from the A / D converter 4 is stored in the register DATA. Subsequently, in step SD14, the address counter ADD
Sampling data DS held in register DATA according to the write address stored in RESS2.
Is written to the sampling data storage area SPE. Thereafter, in step SD15, the address counter ADD
The write address of RESS2 is incremented.

【0052】次に、ステップSD16に進むと、CPU
5はレジスタTIME2にセットされた設定時間が経過
したか否か、つまり、サンプリング期間が終了したかど
うかを判断する。なお、このレジスタTIME2にセッ
トされた設定時間は、図示されていないタイマ2インタ
ラプト処理によって一定時間毎に順次デクリメントされ
ている。
Next, proceeding to step SD16, the CPU
Reference numeral 5 determines whether the set time set in the register TIME2 has elapsed, that is, whether the sampling period has ended. The set time set in the register TIME2 is sequentially decremented at regular intervals by a timer 2 interrupt process (not shown).

【0053】さて、サンプリング期間が未了であれば、
上記ステップSD16の判断結果は「NO」となり、一
旦、本ルーチンを完了させるが、サンプリング期間が終
了している時には判断結果が「YES」となり、次のス
テップSD17に処理を進める。ステップSD17で
は、フラグSAMPLINGFを「0」にセットしてサ
ンプリング終了状態を表わし、続くステップSD18で
は、レジスタTIME2にセットされた設定時間を一定
周期毎に順次デクリメントするタイマ2インタラプト処
理を禁止し、この後に本ルーチンを完了する。
Now, if the sampling period has not ended,
The result of the determination in step SD16 is "NO", and this routine is once completed. However, when the sampling period has ended, the result of the determination is "YES", and the process proceeds to the next step SD17. In step SD17, the flag SAMPLINGF is set to "0" to indicate the sampling end state. In step SD18, the timer 2 interrupt processing for sequentially decrementing the set time set in the register TIME2 at regular intervals is prohibited. This routine will be completed later.

【0054】このように、サンプリング処理ルーチンで
は、サンプリング待機状態となる一連の操作、すなわ
ち、サンプリングスイッチ2aをオン操作しつつ押鍵操
作してサンプリングしようとする原音を割り当てる鍵を
指定した後に、サンプリングスイッチ2aをオフ操作す
ると、サンプリングデータ入力待ちとなり、所定レベル
以上のサンプリングデータDSが入力されたら、予め定
められたサンプリング期間中、順次サンプリングデータ
DSを取込んでRAM7のサンプリングデータ記憶エリ
アSPEに書き込んでいき、サンプリング期間終了と共
に採録を停止するようにしている。
As described above, in the sampling processing routine, after a series of operations in a sampling standby state, that is, a key to which the original sound to be sampled is designated by pressing a key while turning on the sampling switch 2a, and then performing sampling. When the switch 2a is turned off, the input of the sampling data is waited. When the sampling data DS of a predetermined level or more is input, the sampling data DS is sequentially taken in during a predetermined sampling period and written into the sampling data storage area SPE of the RAM 7. The recording is stopped at the end of the sampling period.

【0055】(5)自動演奏処理ルーチンの動作 次に、図9〜図10を参照して自動演奏処理ルーチンの
動作について説明する。前述したステップSA5を介し
て本ルーチンが実行されると、CPU5は図9に示すス
テップSE1に処理を進め、レジスタTIME1の値が
「0」以下であるか否かを判断する。
(5) Operation of Automatic Performance Processing Routine Next, the operation of the automatic performance processing routine will be described with reference to FIGS. When this routine is executed via the above-described step SA5, the CPU 5 advances the processing to step SE1 shown in FIG. 9, and determines whether or not the value of the register TIME1 is "0" or less.

【0056】つまり、レジスタTIME1にはイベント
間隔を表わすタイミング情報TIMEがセットされるよ
うになっており(図6のステップSB22参照)、当該
レジスタTIME1の値は、図示されていないタイマ1
インタラプト処理により一定周期毎にデクリメントさ
れ、これにより次のイベント実行迄のタイミングを管理
している。従って、このステップSE1では、イベント
実行タイミングに達したか否かを判断している。
That is, the timing information TIME indicating the event interval is set in the register TIME1 (see step SB22 in FIG. 6), and the value of the register TIME1 is set to the timer 1 (not shown).
It is decremented at regular intervals by the interrupt processing, thereby managing the timing until the next event execution. Therefore, in step SE1, it is determined whether or not the event execution timing has been reached.

【0057】イベント実行タイミング下になければ、上
記ステップSE1の判断結果は「NO」となり、この場
合、何も処理せずに本ルーチンを完了するが、イベント
実行タイミング下にあると、判断結果が「YES」とな
り、次のステップSE2に処理を進める。ステップSE
2では、アドレスカウンタADDRESS1に格納され
るアドレス値を1インクリメントして歩進させ、続くス
テップSE3では、その歩進されたアドレスに従って、
RAM7の自動演奏データ記憶エリアAPE(図3参
照)からイベント情報EVENTを読み出し、これをレ
ジスタEVENTにストアする。
If it is not at the event execution timing, the result of the determination at step SE1 is "NO". In this case, this routine is completed without performing any processing. "YES" is determined, and the process proceeds to the next step SE2. Step SE
In step 2, the address value stored in the address counter ADDRESS1 is incremented by one and incremented, and in step SE3, according to the incremented address,
The event information EVENT is read from the automatic performance data storage area APE (see FIG. 3) of the RAM 7 and stored in the register EVENT.

【0058】続いて、ステップSE4では、歩進された
アドレス値が曲の終わりを表わす終了アドレスENDで
あるか否かを判断する。ここで、アドレス値が終了アド
レスENDであると、判断結果は「YES」となり、次
のステップSE5に処理を進めてレジスタSTARTF
に格納されるスタートフラグSTARTFを「0」にセ
ットして自動演奏終了の旨を表わして本ルーチンを完了
させる。一方、アドレス値が終了アドレスENDでない
場合には、上記ステップSE4の判断結果は「NO」と
なり、ステップSE6に処理を進める。
Subsequently, in step SE4, it is determined whether or not the incremented address value is an end address END indicating the end of the music piece. Here, if the address value is the end address END, the judgment result is "YES", and the process proceeds to the next step SE5 to set the register STARTF
Is set to "0" to indicate the end of the automatic performance, and this routine is completed. On the other hand, if the address value is not the end address END, the result of the determination in step SE4 is "NO", and the process proceeds to step SE6.

【0059】ステップSE6では、次のタイミング情報
TIMEを読み出すべく、アドレスレジスタADDRE
SS1の値をインクリメントして歩進させ、続くステッ
プSE7では、この歩進されたアドレス値に応じて読み
出されるタイミング情報TIMEを、レジスタTIME
1にストアする。これにより、次のイベントタイミング
が管理される。そして、ステップSE8に進むと、CP
U5はレジスタEVENTに格納されたイベント情報の
内、ノートオン/オフ等のイベント種類を表わす情報を
レジスタSTAUSに、音高情報をレジスタNOTEに
それぞれストアする。
At step SE6, the address register ADDRE is read to read the next timing information TIME.
In step SE7, the timing information TIME read out in accordance with the incremented address value is stored in the register TIME.
Store in 1. Thus, the next event timing is managed. Then, when the process proceeds to step SE8, the CP
U5 stores information representing the event type such as note on / off in the register STAUS and the pitch information in the register NOTE among the event information stored in the register EVENT.

【0060】次に、図10に示すステップSE10に進
むと、レジスタSTATUSに格納されたイベント種類
を判断する。ここで、レジスタSTATUSに格納され
たイベントがノートオフイベントの時には、ステップS
E10に進み、レジスタONFに格納されるフラグON
Fを「0」にセットして消音イベントを表わす。一方、
ノートオンイベントの時にはステップSE11に処理を
進めてオントリガフラグONTFを「1」にセットして
発音イベントを表わす。
Next, when the flow advances to step SE10 shown in FIG. 10, the type of the event stored in the register STATUS is determined. Here, when the event stored in the register STATUS is a note-off event, step S
Proceeds to E10 and turns on the flag stored in register ONF
F is set to "0" to indicate a mute event. on the other hand,
At the time of the note-on event, the process proceeds to step SE11, and the on-trigger flag ONTF is set to "1" to indicate a sounding event.

【0061】そして、発音イベントの場合には、次のス
テップSE12に進み、レジスタNOTEに格納される
音高情報に対して、前述したレジスタSABUNの値を
加算してレジスタNOTEの値を更新する。すなわち、
サンプリングした原音を割り当てた鍵の音高と自動演奏
データの中心音高CPとの音程差に従って自動演奏する
楽曲の音域を移調し、この後に本ルーチンを完了する。
In the case of a sound generation event, the process proceeds to the next step SE12, where the value of the above-mentioned register SABUN is added to the pitch information stored in the register NOTE to update the value of the register NOTE. That is,
The musical range to be automatically played is transposed according to the pitch difference between the key pitch to which the sampled original sound is assigned and the central pitch CP of the automatic performance data, and thereafter, this routine is completed.

【0062】以上のように、自動演奏処理ルーチンで
は、イベント実行タイミング毎に、順次イベント情報を
読み出して行き、読み出したイベント情報がノートオン
イベントの時にはサンプリングした原音を割り当てた鍵
の音高と自動演奏データの中心音高CPとの音程差に従
って自動演奏する楽曲の音域を移調するようにしてい
る。なお、サンプリングした原音を鍵割り当てしていな
い時には、上記レジスタSABUNの値が「0」だか
ら、この場合、移調は行われない。
As described above, in the automatic performance processing routine, the event information is sequentially read out at each event execution timing, and when the read out event information is a note-on event, the pitch of the key to which the sampled original sound is assigned and the automatic According to the pitch difference from the center pitch CP of the performance data, the range of the music to be automatically performed is transposed. When no key is assigned to the sampled original sound, the value of the register SABUN is "0", so that no transposition is performed in this case.

【0063】(6)発音処理ルーチンの動作 次に、図11〜図13を参照して発音処理ルーチンの動
作について説明する。前述したステップSA6を介して
本ルーチンが実行されると、CPU5は図11に示すス
テップSF1に処理を進め、レジスタONTFに格納さ
れるオントリガフラグONTFが「1」であるか否か、
つまり、押鍵に応じたキーオンイベントもしくは自動演
奏データによるノートオンイベントが発生した時点であ
るか否を判断する。以下、オンイベント発生時点の動作
と、オンイベント中の動作とに場合分けして説明する。
(6) Operation of the sound emission processing routine Next, the operation of the sound emission processing routine will be described with reference to FIGS. When this routine is executed via the above-described step SA6, the CPU 5 proceeds to step SF1 shown in FIG. 11, and determines whether or not the on-trigger flag ONTF stored in the register ONTF is “1”.
That is, it is determined whether or not a key-on event corresponding to a key depression or a note-on event based on automatic performance data has occurred. Hereinafter, the operation at the time of occurrence of the on-event and the operation during the on-event will be separately described.

【0064】オンイベント発生時点の処理 この場合、判断結果は「YES」となり、次のステップ
SF2に処理を進め、フラグORIGINALFが
「1」であるか否かを判断する。すなわち、サンプリン
グ開始以前の状態、あるいはサンプリング終了後の状態
のいずれであるかを判断する。
Processing when an ON Event Occurs In this case, the result of the determination is "YES", the processing proceeds to the next step SF2, and it is determined whether or not the flag ORIGINALF is "1". That is, it is determined whether the state is before the start of sampling or after the end of sampling.

【0065】(イ)サンプリング開始以前の状態 サンプリング開始以前の状態では、サンプリングスイッ
チ2aをオン操作しつつ、これからサンプリングしよう
とする原音をどの音高の鍵に割り当るかを選び、割り当
てる鍵を押鍵し、その鍵の音高で確認音(サイン波)を
発音させる。したがって、この確認音を発音させる場合
には、上記ステップSF2の判断結果が「YES」とな
って次のステップSF3に処理を進め、RAM7のサイ
ン波記憶エリアSWE(図3参照)に記憶されるサイン
波振幅値を読み出す為、その先頭アドレスをアドレスカ
ウンタADDRESS2にストアする。
(A) State Before Sampling In the state before sampling is started, while the sampling switch 2a is turned on, a pitch key to which an original sound to be sampled is assigned is selected, and a key to be assigned is pressed. Lock the key and sound a confirmation sound (sine wave) at the pitch of the key. Therefore, when this confirmation sound is to be emitted, the determination result in step SF2 becomes “YES”, the process proceeds to the next step SF3, and is stored in the sine wave storage area SWE of the RAM 7 (see FIG. 3). To read the sine wave amplitude value, the head address is stored in the address counter ADDRESS2.

【0066】続く、ステップSF4ではレジスタNOT
Eの値に対応する歩進アドレス幅をレジスタΔAにスト
アする。なお、このレジスタNOTEには、鍵割り当て
すべく押鍵された鍵の鍵番号が格納されている。したが
って、レジスタΔAには、押鍵された鍵の音高に応じた
読み出し速度を実現する歩進アドレス幅がセットされ
る。次いで、ステップSF5に進むと、アドレスカウン
タADDRESS2に格納された先頭アドレスに従って
サイン波振幅値をRAM7のサイン波記憶エリアSWE
から読み出してレジスタDATAにセットする。
In the following step SF4, the register NOT
The step address width corresponding to the value of E is stored in the register ΔA. In this register NOTE, the key number of the key depressed for key assignment is stored. Therefore, a step address width for realizing a reading speed corresponding to the pitch of a depressed key is set in the register ΔA. Next, when the flow proceeds to step SF5, the sine wave amplitude value is stored in the sine wave storage area SWE of the RAM 7 according to the head address stored in the address counter ADDRESS2.
And sets it in the register DATA.

【0067】そして、ステップSF6では当該レジスタ
DATAにストアされたサイン波振幅値を音源8へ出力
する。この後、CPU5はステップSF7に処理を進
め、レジスタONFに格納されるオンフラグONFを
「1」にセットしてノートオン状態を表わし、続くステ
ップSF8ではオントリガフラグONTFをゼロリセッ
トしてから、一旦、本ルーチンを完了させる。
In step SF6, the sine wave amplitude value stored in the register DATA is output to the sound source 8. Thereafter, the CPU 5 proceeds to step SF7, sets the ON flag ONF stored in the register ONF to “1” to indicate the note-on state, and in step SF8, resets the ON trigger flag ONTF to zero, and then temporarily This routine is completed.

【0068】(ロ)サンプリング終了後の状態 一方、サンプリングが終了し、サンプリングした原音に
基づいてサンプリング音を発音させる場合には、上述し
たステップSF2の判断結果は「NO」となり、ステッ
プSF9に処理を進める。ステップSF9では、RAM
7のサンプリングデータ記憶エリアSPE(図3参照)
に格納されたサンプリングデータDSを読み出す為、そ
の先頭アドレスをアドレスカウンタADDRESS2に
ストアする。
(B) State After Sampling On the other hand, when sampling is completed and the sampled sound is generated based on the sampled original sound, the result of the determination in step SF2 is "NO", and the process proceeds to step SF9. Advance. In step SF9, the RAM
7 sampling data storage area SPE (see FIG. 3)
To read the sampling data DS stored in the address counter ADDRESS2.

【0069】次いで、ステップSF10では発音指示さ
れた音高に対応した歩進アドレス幅をレジスタΔAにス
トアする。すなわち、レジスタNOTEに格納される音
高に対応した歩進アドレス幅をレジスタΔAにストアす
る。そして、ステップSF11では、レジスタNOTE
の値とレジスタORIGINALの値との比、すなわ
ち、現在発音指示されている音高と原音を割り当てた鍵
の音高との比をレジスタΔAにストアされた歩進アドレ
ス幅に乗算する。
Next, at step SF10, the step address width corresponding to the pitch instructed to generate sound is stored in the register ΔA. That is, the step address width corresponding to the pitch stored in the register NOTE is stored in the register ΔA. Then, in step SF11, the register NOTE
Is multiplied by the step address width stored in the register ΔA by the ratio of the value of the register ORIGINAL to the pitch of the key to which the original tone is assigned and the pitch of the key to which the original tone is assigned.

【0070】こうして、サンプリング音を正しい音程で
発音させるよう、読み出し速度を調整してなるピッチ変
換が行われると、上述した(イ)項と同様に、アドレス
カウンタADDRESS2に格納された先頭アドレスに
従ってサンプリングデータをRAM7のサンプリングデ
ータ記憶エリアSPEから読み出してレジスタDATA
にセットした後、当該レジスタDATAにストアされた
サンプリングデータを音源8へ出力する。この後、オン
フラグONFを「1」にセットしてノートオン状態を表
わす一方、オントリガフラグONTFをゼロリセットし
てから、一旦、本ルーチンを完了させる。
As described above, when the pitch conversion is performed by adjusting the reading speed so that the sampled sound is generated at the correct pitch, the sampling is performed in accordance with the head address stored in the address counter ADDRESS2 in the same manner as the above item (a). Data is read from the sampling data storage area SPE of the RAM 7 and the data
After that, the sampling data stored in the register DATA is output to the sound source 8. Thereafter, the on-flag ONF is set to "1" to indicate the note-on state, and the on-trigger flag ONTF is reset to zero, and then this routine is once completed.

【0071】オンイベント中の動作 さて、以上のようにして、オンイベント発生時点での処
理が完了してから再度、本ルーチンが実行されると、オ
ントリガフラグONTFが「0」となるので、り、前述
したステップSF1の判断結果が「NO」になり、図1
2に示すステップSF12に処理を進める。
Operation during ON Event As described above, when this routine is executed again after the processing at the time of occurrence of the ON event is completed, the ON trigger flag ONTF becomes "0". As a result, the determination result of step SF1 described above becomes “NO”, and FIG.
The process proceeds to Step SF12 shown in FIG.

【0072】そして、ステップSF12では、オンフラ
グONFが「1」、つまり、オンイベント中にあるか否
かを判断する。オンイベント中であると、判断結果が
「YES」となり、次のステップSF13に処理を進め
る。なお、オフイベント中の時には上記ステップSF1
2の判断結果が「NO」となり、この場合には何も処理
せずに本ルーチンを完了する。
Then, in a step SF12, it is determined whether or not the ON flag ONF is "1", that is, whether or not the ON event is being performed. If it is during the ON event, the determination result is “YES”, and the process proceeds to the next Step SF13. During the off event, the above-described step SF1 is performed.
The determination result of step 2 is "NO", and in this case, this routine is completed without performing any processing.

【0073】ステップSF13に進むと、CPU5は、
アドレスカウンタADDRESS2をレジスタΔAに格
納されている歩進アドレス幅を加算し、続くステップS
F14では、この歩進されたアドレスカウンタADDR
ESS2の値が、終端アドレスENDを超えたか否かを
判断する。ここで、歩進後のアドレスが終端アドレスE
NDを超えた時には、判断結果が「YES」となり、次
のステップSF15に進む。ステップSF15では、周
知のループ再生を行うべく、アドレスカウンタADDR
ESS2に格納されるアドレスを先頭アドレス側へ戻
し、次のステップSF16に処理を進める。
At step SF13, the CPU 5
The address counter ADDRESS2 is added to the increment address width stored in the register ΔA, and the subsequent step S
In F14, the incremented address counter ADDR
It is determined whether the value of ESS2 has exceeded the end address END. Here, the address after the advance is the end address E
When it exceeds ND, the determination result is “YES”, and the flow proceeds to the next Step SF15. In step SF15, in order to perform a well-known loop reproduction, the address counter ADDR is used.
The address stored in ESS2 is returned to the start address side, and the process proceeds to the next step SF16.

【0074】なお、上記ステップSF15においてアド
レスを先頭アドレス側へ戻す場合、確認音を再生してい
る時にはサイン波データ記憶エリアSWEの先頭アドレ
ス側に戻し、サンプリング音を再生している時にはサン
プリングデータ記憶エリアSPEの先頭アドレス側に戻
すようにし、しかもその際には波形不連続が生じない振
幅値に対応させるようアドレス設定する。
In step SF15, when the address is returned to the start address, the confirmation sound is reproduced, the reproduction is returned to the start address of the sine wave data storage area SWE, and when the sampling sound is reproduced, the sampling data is stored. The address is set to return to the head address side of the area SPE, and at this time, the address is set so as to correspond to an amplitude value at which waveform discontinuity does not occur.

【0075】一方、歩進後のアドレスが終端アドレスE
NDを超えない時には、上記ステップSF14の判断結
果が「NO」となり、ステップSF16に進む。ステッ
プSF16では、アドレスカウンタADDRESS2に
格納されるアドレスの整数部をレジスタSEISUに、
続くステップSF17では小数部をレジスタSYOSU
にそれぞれセットする。次いで、ステップSF18で
は、レジスタSEISUに格納されるアドレス整数部に
対応して読み出した波形振幅値をレジスタDATA1に
ストアする。
On the other hand, the address after the advance is the end address E
If it does not exceed ND, the result of the determination in step SF14 is "NO", and the flow proceeds to step SF16. In step SF16, the integer part of the address stored in the address counter ADDRESS2 is stored in the register SEISU.
In a succeeding step SF17, the decimal part is stored in the register SYOSU.
To each. Next, at step SF18, the read waveform amplitude value corresponding to the address integer part stored in the register SEISU is stored in the register DATA1.

【0076】次に、ステップSF19では、レジスタS
EISUに格納されるアドレス整数部を1インクリメン
ト歩進させ、歩進させたアドレス整数部が終端アドレス
ENDを超えたか否かを判断する。ここで、歩進させた
アドレス整数部が終端アドレスENDを超えていない時
には、判断結果が「NO」となり、次のステップSF2
0に処理を進め、歩進させたアドレス整数部に対応して
読み出した波形振幅値をレジスタDATA2にストアす
るが、そうでない場合には、ステップSF21に処理を
進める。
Next, in step SF19, the register S
The address integer part stored in the EISU is incremented by one, and it is determined whether or not the incremented address integer part exceeds the end address END. Here, when the incremented address integer part does not exceed the end address END, the determination result is “NO”, and the next step SF2
The process proceeds to 0, and the waveform amplitude value read corresponding to the incremented address integer part is stored in the register DATA2. If not, the process proceeds to step SF21.

【0077】ステップSF21では、フラグORIGI
NALFが「1」であるか否か、つまり、確認音を再生
する状態か、あるいはサンプリング音を再生する状態の
いずれかを判別する。ここで、フラグORIGINAL
Fが「1」となり、確認音を再生する状態であると、判
断結果が「YES」となり、ステップSF22に処理を
進めて、レジスタDATA2にサイン波の先頭アドレス
に対応した波形振幅値をストアする。これに対し、サン
プリング音を再生する状態であれば、判断結果が「N
O」となり、ステップSF23に処理を進めて、レジス
タDATA2にサンプリングデータDSの先頭アドレス
に対応した波形振幅値をストアする。
At step SF21, the flag ORIGI
It is determined whether or not NALF is "1", that is, whether the confirmation sound is reproduced or the sampled sound is reproduced. Here, the flag ORIGINAL
If F is "1" and the confirmation sound is being reproduced, the determination result is "YES", the process proceeds to step SF22, and the waveform amplitude value corresponding to the leading address of the sine wave is stored in the register DATA2. . On the other hand, if the sampled sound is being reproduced, the judgment result is “N”.
"O", the process proceeds to step SF23, and the waveform amplitude value corresponding to the start address of the sampling data DS is stored in the register DATA2.

【0078】こうして、ΔA分歩進されたアドレス整数
部と次アドレス整数部とにそれぞれ対応した波形振幅値
がレジスタDATA1,DATA2に各々セットされる
と、CPU5は図13に示すステップSF24に進み、
これらレジスタDATA1,DATA2にセットされた
波形振幅値を小数部で内挿補間する。すなわち、レジス
タDATA2に格納される次アドレス整数部に対応した
波形振幅値とレジスタDATA1に格納されるアドレス
整数部に対応した波形振幅値との差分に小数部を乗算
し、その乗算結果をレジスタDATA1に格納されるア
ドレス整数部に対応した波形振幅値に加算してレジスタ
DATAにストアする。
When the waveform amplitude values respectively corresponding to the address integer part and the next address integer part advanced by ΔA are set in the registers DATA1 and DATA2, the CPU 5 proceeds to step SF24 shown in FIG.
The waveform amplitude values set in these registers DATA1 and DATA2 are interpolated by decimal parts. That is, the difference between the waveform amplitude value corresponding to the next address integer part stored in the register DATA2 and the waveform amplitude value corresponding to the address integer part stored in the register DATA1 is multiplied by the decimal part, and the multiplication result is stored in the register DATA1. Is added to the waveform amplitude value corresponding to the address integer part stored in the register and stored in the register DATA.

【0079】そして、この後、CPU5はステップSF
25に処理を進め、レジスタDATAにストアされた波
形補間された波形振幅値を発生する。これにより、音源
8が当該波形振幅値に基づき楽音合成してなる楽音デー
タWを発生し、サウンドシステム9を介して発音され
る。
Thereafter, the CPU 5 proceeds to step SF
The process advances to step 25 to generate a waveform-interpolated waveform amplitude value stored in the register DATA. As a result, the sound source 8 generates musical sound data W obtained by synthesizing musical sounds based on the waveform amplitude value, and is generated via the sound system 9.

【0080】以上のように、第1実施例によれば、サン
プリングモード下において、サンプリングスイッチ2a
をオン操作しながら、サンプリングしようとする原音を
割り当てるべく押鍵操作すると、その鍵に対応した音高
の確認音(サイン波)が発音する。この為、サンプリン
グしようとする原音を適正な音程関係にある鍵に事前に
割り当てることが可能になっている。そして、この後に
サンプリングスイッチ2aがオフ操作されると、サンプ
リングデータ入力待ちとなり、所定レベル以上のサンプ
リングデータDSが入力されたら、順次それを取込んで
RAM7のサンプリングデータ記憶エリアSPEに書き
込んで行く。
As described above, according to the first embodiment, in the sampling mode, the sampling switch 2a
When a key is pressed to assign an original sound to be sampled while turning ON, a confirmation sound (sine wave) having a pitch corresponding to the key is generated. For this reason, the original sound to be sampled can be assigned in advance to a key having an appropriate pitch relationship. Then, when the sampling switch 2a is turned off after that, the sampling data input waits. When the sampling data DS having a predetermined level or more is input, the sampling data DS is sequentially taken and written into the sampling data storage area SPE of the RAM 7.

【0081】一方、再生モードにおいて自動演奏をスタ
ートさせると、自動演奏データが指定するイベント実行
タイミング毎に、楽曲の進行に同期してイベント情報を
読み出して行き、読み出したイベント情報がノートオン
イベントの時にはサンプリングした原音を割り当てた鍵
の音高と自動演奏データの中心音高CPとの音程差に従
って楽曲の音域を移調しながら自動演奏が進行する。こ
れにより、サンプリング音を正しい音程関係に基づいて
再生される。
On the other hand, when the automatic performance is started in the reproduction mode, the event information is read out in synchronization with the progress of the music at every event execution timing specified by the automatic performance data, and the read out event information is the note-on event. Sometimes, the automatic performance proceeds while transposing the musical range according to the pitch difference between the pitch of the key to which the sampled original sound is assigned and the central pitch CP of the automatic performance data. Thus, the sampled sound is reproduced based on the correct pitch relationship.

【0082】C.第2実施例 次に、図14〜図17を参照して第2実施例について説
明する。上述した第1実施例では、サンプリングしよう
とする原音を適正な音程関係にある鍵に割り当てること
によって、サンプリング音を正しい音程関係で再生し得
るようにしたが、第2実施例では人手を介してサンプリ
ングしようとする原音を適正な音程関係にある鍵に割り
当てるのではなく、サンプリングしようとする原音のピ
ッチを抽出し、それに合致する音高の鍵に自動的に割り
当てる態様にしたことを特徴としている。
C. Second Embodiment Next, a second embodiment will be described with reference to FIGS. In the above-described first embodiment, the original sound to be sampled is assigned to a key having an appropriate pitch relationship, so that the sampled sound can be reproduced in the correct pitch relationship. In the second embodiment, the sample sound is reproduced manually. Rather than assigning the original sound to be sampled to a key having an appropriate pitch relationship, the pitch of the original sound to be sampled is extracted and automatically assigned to a key having a pitch matching the pitch. .

【0083】第2実施例の構成は、上述の第1実施例と
同一なので、その説明については省略する。第2実施例
と第1実施例とが相違する点は、図14に示すメインル
ーチンにおけるステップSG4のピッチ抽出処理を新た
に設け、これに対応してステップSG5の鍵盤処理を変
更したことにあり、これ以外の処理動作については前述
した第1実施例の動作と同一である。これ故、以下では
第1実施例との相違点である、ピッチ抽出処理ルーチン
および鍵盤処理ルーチンの各動作について述べる。
The configuration of the second embodiment is the same as that of the above-described first embodiment, and a description thereof will be omitted. The difference between the second embodiment and the first embodiment is that a pitch extraction process of step SG4 in the main routine shown in FIG. 14 is newly provided, and the keyboard process of step SG5 is changed correspondingly. The other processing operations are the same as those of the first embodiment. Therefore, each operation of the pitch extraction processing routine and the keyboard processing routine, which are different from the first embodiment, will be described below.

【0084】(1)ピッチ抽出処理ルーチンの動作 第2実施例ではメインルーチンのステップSG4(図1
4参照)を介して図15に示すピッチ抽出処理ルーチン
を実行し、ステップSH1に処理を進める。ステップS
H1に進むと、CPU5はフラグPITCHFの値が
「0」、すなわち、サンプリングした原音に対して割り
当てる鍵が定まっている否かを判断し、すでにその鍵が
定まっている時には、本ルーチンの処理を必要としない
から、判断結果が「NO」となり、本ルーチンを完了さ
せる。
(1) Operation of Pitch Extraction Processing Routine In the second embodiment, step SG4 of the main routine (FIG. 1)
4), the pitch extraction processing routine shown in FIG. 15 is executed, and the process proceeds to step SH1. Step S
In H1, the CPU 5 determines whether the value of the flag PITCHF is "0", that is, whether a key to be assigned to the sampled original sound has been determined. If the key has already been determined, the processing of this routine is performed. Since it is not necessary, the determination result is “NO”, and this routine is completed.

【0085】一方、サンプリングした原音に対して割り
当てる鍵が定まっていない場合には、ここでの判断結果
が「YES」となり、次のステップSH2に進む。ステ
ップSH2では、フラグORIGINALFが「0」、
つまり、前述した第1実施例と同様、サンプリング終了
後の状態であるかどうかを判断する。ここで、サンプリ
ングが終了していない場合には、サンプリングした原音
のピチを抽出し得ないので、判断結果が「NO」とな
り、何も処理せずに本ルーチンを完了させる。
On the other hand, if the key to be assigned to the sampled original sound has not been determined, the result of this determination is "YES" and the flow advances to the next step SH2. In step SH2, the flag ORIGINALF is set to "0",
That is, similarly to the above-described first embodiment, it is determined whether or not the state is after sampling is completed. Here, if sampling is not completed, since the pitch of the sampled original sound cannot be extracted, the determination result is “NO”, and this routine is completed without performing any processing.

【0086】これに対し、サンプリングが終了していれ
ば、判断結果が「YES」となり、ステップSH3に処
理を進め、RAM7のサンプリングデータ記憶エリアS
PE(図3参照)の先頭アドレスをアドレスカウンタA
DDRESS2にセットする。そして、ステップSH4
では、データ数をカウントするレジスタNをゼロクリア
し、続くステップSHではレジスタCOUNTに初期値
「1」をストアする。なお、このレジスタCOUNT
は、サンプリングデータDSにおいて、極性反転するゼ
ロクロス近傍(ゼロクロス点を含む)のデータ個数を順
次累算して行くカウンタである。
On the other hand, if the sampling has been completed, the judgment result is "YES", the process proceeds to step SH3, and the sampling data storage area S
The start address of the PE (see FIG. 3) is used as the address counter A.
Set to DDRESS2. Then, step SH4
Then, the register N for counting the number of data is cleared to zero, and in the subsequent step SH, the initial value "1" is stored in the register COUNT. Note that this register COUNT
Is a counter that sequentially accumulates the number of data in the vicinity of the zero cross where the polarity is inverted (including the zero cross point) in the sampling data DS.

【0087】次いで、ステップSH6に進むと、CPU
5はまずアドレスカウンタADDRESS2にセットさ
れている先頭アドレスのサンプリングデータを読み出
し、レジスタDATA1にストアする。次に、ステップ
SH7では、アドレスカウンタADDRESS2のアド
レス値を1インクリメントして歩進させ、この歩進させ
たアドレスに応じて読み出したサンプリングデータをレ
ジスタDATA2にストアする。
Next, when the flow advances to step SH6, the CPU
Reference numeral 5 first reads the sampling data of the head address set in the address counter ADDRESS2 and stores it in the register DATA1. Next, in step SH7, the address value of the address counter ADDRESS2 is incremented by one and incremented, and the sampling data read in accordance with the incremented address is stored in the register DATA2.

【0088】続いて、ステップSH8では、上記レジス
タDATA1,DATA2に各々格納されたサンプリン
グデータ、つまり、互いに隣接するアドレスのサンプリ
ングデータについて、その符号(極性)が異なっている
か否かを判断する。互いの符号が同符号であると、判断
結果が「NO」となり、ステップSH9に処理を進めて
レジスタNの値を1インクリメントして上述のステップ
SH6に処理を戻す。これにより、次に隣接するアドレ
ス同士のサンプリングデータについて極性反転の有無が
判断される。
Subsequently, in step SH8, it is determined whether or not the sign (polarity) of the sampling data stored in the registers DATA1 and DATA2, that is, the sampling data of the addresses adjacent to each other is different. If the signs are the same, the determination result is "NO", the process proceeds to step SH9, the value of the register N is incremented by 1, and the process returns to step SH6. Thus, it is determined whether or not the polarity of the sampling data of the next adjacent address is inverted.

【0089】そして、隣接するアドレス同士のサンプリ
ングデータの符号が異なり、極性反転が検出されると、
上記ステップSH8の判断結果が「YES」となり、ス
テップSH10に処理を進める。ステップSH10で
は、上述したレジスタCOUNTの値が「1」、つま
り、最初のゼロクロス近傍点アドレス(ゼロクロス点直
下アドレスを含む)を検出したかどうかを判断する。
When the sign of the sampling data differs between adjacent addresses and polarity inversion is detected,
The result of the determination in step SH8 is "YES", and the process proceeds to step SH10. In step SH10, it is determined whether or not the value of the above-described register COUNT is "1", that is, whether the first zero-crossing near-point address (including the address immediately below the zero-crossing point) is detected.

【0090】ここで、最初のゼロクロス近傍点アドレス
(ゼロクロス点直下アドレスを含む)を検出した場合に
は、次のステップSH11に進み、レジスタCOUNT
の値を「2」にセットする。この後、ステップSH12
に進むと、レジスNに格納されるデータ個数をレジスタ
FIRSTにストアし、続くステップSH14ではレジ
スタDATA1に格納されるサンプリングデータの符号
をレジスタFUGOにストアした後、上述のステップS
H9に処理を戻す。
If the first zero-crossing near-point address (including the address immediately below the zero-crossing point) is detected, the process proceeds to the next step SH11, where the register COUNT is set.
Is set to “2”. Thereafter, step SH12
In step SH14, the number of data stored in the register N is stored in the register FIRST. In step SH14, the sign of the sampling data stored in the register DATA1 is stored in the register FUGO.
The process returns to H9.

【0091】さて、一方、二度目以降のゼロクロス近傍
点アドレス(ゼロクロス点直下アドレスを含む)を検出
した場合には、上記ステップSH10の判断結果が「N
O」となり、ステップSH15に処理を進める。ステッ
プSH15では、最初にゼロクロス近傍点アドレスを検
出した時に、レジスタFUGOに格納した符号と、レジ
スタDATA1に格納される現サンプリングデータの符
号とが一致するか、すなわち、最初のゼロクロス近傍点
アドレスを起点とし、一周期分のサンプリングデータを
読み出したどうかを判断する。
On the other hand, if the second and subsequent zero-crossing point addresses (including the address immediately below the zero-crossing point) are detected, the result of the determination in step SH10 is “N”.
O ", and the process proceeds to step SH15. In step SH15, when the zero-crossing near-point address is detected for the first time, the code stored in the register FUGO matches the sign of the current sampling data stored in the register DATA1, that is, the first zero-crossing near-point address is used as the starting point. It is determined whether the sampling data for one cycle has been read.

【0092】ここで、一周期分のサンプリングデータを
読み出していない場合には、判断結果が「NO」とな
り、ステップSH9に処理を戻してサンプリングデータ
の読み出しを続けるが、一周期分のサンプリングデータ
を読み出した場合には、判断結果が「YES」となり、
ステップSH16に処理を進める。ステップSH16で
は、レジスタNに格納されているデータ個数を、レジス
タSECONDにストアし直し、次のステップSH17
に処理を進める。
If one cycle of the sampling data has not been read, the determination result is "NO", and the process returns to step SH9 to continue reading the sampling data. In the case of reading, the judgment result is “YES”,
The process proceeds to step SH16. In step SH16, the number of data stored in the register N is stored back in the register SECOND, and the next step SH17
Processing proceeds to

【0093】ステップSH17では、このレジスタSE
CONDとレジスタFIRSTとにそれぞれ格納されて
いるデータ個数の差分、すなわち、サンプリングデータ
一周期分のアドレス離間値を求め、求めたアドレス離間
値に基づき、ピッチテーブルTABLEを参照してサン
プリングデータDSの基本ピッチを抽出してレジスタO
RIGNALにストアする。そして、この後に、フラグ
PITCHFを「1」にセットして本ルーチンを完了さ
せる。なお、ピッチテーブルTABLEとは、予め各種
アドレス離間値に対応したピッチデータ(鍵番号)を記
憶したデータテーブルであり、サンプリングデータ一周
期分のアドレス離間値を読み出しアドレスとして対応す
るピッチデータ(鍵番号)を読み出すものである。
In step SH17, this register SE
The difference between the number of data stored in the COND and the number of data stored in the register FIRST, that is, the address separation value for one cycle of the sampling data is obtained, and based on the obtained address separation value, the pitch table TABLE is referred to and the basics of the sampling data DS are obtained. Extract pitch and register O
Store in SIGNAL. Then, after that, the flag PITCHF is set to "1", and this routine is completed. The pitch table TABLE is a data table in which pitch data (key numbers) corresponding to various address separation values are stored in advance, and the pitch data (key number) corresponding to the address separation value for one cycle of the sampling data as a read address. ) Is read out.

【0094】このように、第2実施例によれば、サンプ
リング完了後に、サンプリングデータ一周期分のアドレ
ス離間値を求め、このアドレス離間値に基づいてサンプ
リングデータDSのピッチを抽出し、抽出したピッチと
同じ音高の鍵に自動的に割り当てることが可能になる。
この結果、第1実施例と同様に、サンプリング音を正し
い音程関係に基づいて再生することができる。
As described above, according to the second embodiment, after sampling is completed, the address separation value for one cycle of the sampling data is obtained, and the pitch of the sampling data DS is extracted based on the address separation value. It is possible to automatically assign a key with the same pitch as.
As a result, similarly to the first embodiment, the sampled sound can be reproduced based on the correct pitch relationship.

【0095】(2)鍵盤処理ルーチンの動作 このように、ピッチ抽出を行う第2実施例の場合、鍵盤
処理ルーチンは図16に示す動作となる。すなわち、前
述したステップSG5(図14参照)を介して鍵盤処理
ルーチンが実行されると、CPU5は図16のステップ
SJ1に処理を進め、鍵盤1の各鍵を走査して鍵変化を
判別する。
(2) Operation of Keyboard Processing Routine As described above, in the case of the second embodiment in which pitch extraction is performed, the keyboard processing routine operates as shown in FIG. That is, when the keyboard processing routine is executed via the above-described step SG5 (see FIG. 14), the CPU 5 advances the process to step SJ1 in FIG. 16, and scans each key of the keyboard 1 to determine a key change.

【0096】鍵操作が行われず、鍵変化が無い場合に
は、何も処理せずに本ルーチンを完了し、離鍵操作に応
じたキーオフイベントが発生した時にはステップSJ2
に処理を進めてレジスタONFに格納されるフラグON
Fを「0」としてキーオフ状態を表わしてから本ルーチ
ンを完了させる。一方、押鍵操作に応じたキーオンイベ
ントが発生すると、ステップSJ3に処理を進め、レジ
スタONTFに格納されるオントリガフラグONTFを
「1」にセットしてオンイベント発生を表わし、続くス
テップSJ4では押鍵された鍵の音高を表わす鍵番号を
レジスタNOTEにストアする。
If no key operation is performed and there is no key change, this routine is completed without performing any processing, and when a key-off event corresponding to the key release operation occurs, step SJ2 is performed.
The flag stored in the register ONF is turned on.
This routine is completed after F is set to "0" to indicate the key-off state. On the other hand, when a key-on event corresponding to the key-pressing operation occurs, the process proceeds to step SJ3, and sets the on-trigger flag ONTF stored in the register ONTF to “1” to indicate that the on-event has occurred. The key number indicating the pitch of the key is stored in the register NOTE.

【0097】さて、こうした第2実施例においては、再
生モード下において自動演奏をスタートさせると、第1
実施例と同様に、自動演奏データが指定するイベント実
行タイミング毎に、楽曲の進行に同期してイベント情報
を読み出して行き、読み出したイベント情報がノートオ
ンイベントの時にはサンプリングした原音を割り当てた
鍵の音高と自動演奏データの中心音高CPとの音程差に
従って楽曲の音域を移調しながら自動演奏が進行する。
In the second embodiment, when the automatic performance starts in the reproduction mode, the first
As in the embodiment, at each event execution timing specified by the automatic performance data, the event information is read out in synchronization with the progress of the music, and when the read out event information is a note-on event, the sampled original sound is assigned to the key. The automatic performance proceeds while transposing the musical range according to the pitch difference between the pitch and the central pitch CP of the automatic performance data.

【0098】例えば、図17(イ)に図示する楽曲が自
動演奏データとして登録されている場合、この自動演奏
データの中心音高CPはE4音(「ミ」)となる。そし
て、前述したピッチ抽出処理ルーチンの動作によってサ
ンプリングした原音のピッチがA4音になると、この原
音ピッチと中心音高CPとの音程差に従って自動演奏デ
ータの各音符がそれぞれ完全5度分移調されて演奏さ
れ、結果、サンプリング音を正しい音程関係に基づいて
再生し得るようになっている。
[0098] For example, if the music to be shown in FIG. 17 (a) is registered as automatic performance data, the center tone pitch CP of the automatic performance data becomes E 4 sound ( "mi"). When the pitch of the original sound sampled by the operation of the pitch extraction process routine described above is A 4 sound, each note of the automatic performance data is transposed fully 5 degrees each in accordance with pitch difference between the original pitch and the center tone pitch CP As a result, the sampled sound can be reproduced based on the correct pitch relationship.

【0099】なお、第2実施例では、サンプリングデー
タ一周期分のアドレス離間値を求め、このアドレス離間
値に基づいてサンプリングデータDSのピッチを抽出す
る態様としたが、これに限らず、例えば、原音をサンプ
リングしながら、サンプリングした原音に対してリアル
タイムに高速フーリエ変換を施して、その基本ピッチを
抽出する手法を用いても良い。
In the second embodiment, the address separation value for one cycle of the sampling data is obtained, and the pitch of the sampling data DS is extracted based on the address separation value. However, the present invention is not limited to this. While sampling the original sound, a method of performing a fast Fourier transform on the sampled original sound in real time to extract the basic pitch may be used.

【0100】また、ピッチ抽出を行う場合には、サンプ
リングする原音の種類に応じて最適なピッチ抽出ポイン
トを選ぶようにしても良く、例えば、打撃音のように波
形が急俊に立上がる場合にはピッチ抽出が困難なので、
その場合には原音波形がある程度落着いたところでピッ
チ抽出する。さらに、人声音をサンプリングする場合に
は、データ減少法等の波形処理や、自己相関法あるいは
AMDF法などの相関処理、あるいはケプストラム等の
スペクトル処理を用いてピッチ抽出することも出来る。
In the case of performing pitch extraction, an optimum pitch extraction point may be selected according to the type of original sound to be sampled. For example, when a waveform suddenly rises like a striking sound, Is difficult to extract pitch,
In that case, the pitch is extracted when the original sound waveform has settled down to some extent. Further, when sampling a human voice, pitch can be extracted using waveform processing such as a data reduction method, correlation processing such as an autocorrelation method or an AMDF method, or spectrum processing such as a cepstrum.

【0101】[0101]

【発明の効果】本発明によれば、サンプリング開始以前
に、サンプリングしようとする原音を割り当てるべく押
鍵操作した場合、その押鍵された鍵に対応した音高の確
認音を発生する一方、当該鍵に原音を割り当てたり、サ
ンプリングした原音のピッチを抽出し、抽出したピッチ
と同一音程関係にある鍵に原音を割り当てるので、サン
プリング音を正しい音程関係に基づいて再生することが
できる。また、サンプリングした原音を自動演奏データ
に従って自動演奏させる際には、サンプリングした原音
を割り当てた鍵の音高、もしくは抽出した原音ピッチと
自動演奏データに含まれる中心音高との音程差に従って
楽曲の音域を移調するので、サンプリングした原音を自
動演奏データに従ってピッチ変換してサンプリング音に
よる自動演奏を行う時でも、サンプリング音を正しい音
程関係に基づいて再生することができる。
According to the present invention, when a key is pressed to assign an original sound to be sampled before the start of sampling, a confirmation sound having a pitch corresponding to the pressed key is generated. The original sound is assigned to the key, the pitch of the sampled original sound is extracted, and the original sound is assigned to the key having the same pitch relationship as the extracted pitch, so that the sampled sound can be reproduced based on the correct pitch relationship. When automatically playing the sampled original sound in accordance with the automatic performance data, the music is played according to the pitch of the key to which the sampled original sound is assigned, or the pitch difference between the extracted original sound pitch and the center pitch included in the automatic performance data. Since the range is transposed, the sampled sound can be reproduced based on the correct pitch relationship even when the sampled original sound is pitch-converted according to the automatic performance data and the automatic performance using the sampled sound is performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明による第1実施例の外観を示す外観図で
ある。
FIG. 1 is an external view showing an external appearance of a first embodiment according to the present invention.

【図2】同実施例の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of the embodiment.

【図3】RAM7のメモリ構成を示すメモリマップであ
る。
FIG. 3 is a memory map showing a memory configuration of a RAM 7;

【図4】同実施例におけるメインルーチンの動作を示す
フローチャートである。
FIG. 4 is a flowchart showing an operation of a main routine in the embodiment.

【図5】スイッチ処理ルーチンの動作を示すフローチャ
ートである。
FIG. 5 is a flowchart showing an operation of a switch processing routine.

【図6】スイッチ処理ルーチンの動作を示すフローチャ
ートである。
FIG. 6 is a flowchart showing an operation of a switch processing routine.

【図7】鍵盤処理ルーチンの動作を示すフローチャート
である。
FIG. 7 is a flowchart showing the operation of a keyboard processing routine.

【図8】サンプリング処理ルーチンの動作を示すフロー
チャートである。
FIG. 8 is a flowchart showing an operation of a sampling processing routine.

【図9】自動演奏処理ルーチンの動作を示すフローチャ
ートである。
FIG. 9 is a flowchart showing the operation of an automatic performance processing routine.

【図10】自動演奏処理ルーチンの動作を示すフローチ
ャートである。
FIG. 10 is a flowchart showing the operation of an automatic performance processing routine.

【図11】発音処理ルーチンの動作を示すフローチャー
トである。
FIG. 11 is a flowchart showing the operation of a sound generation processing routine.

【図12】発音処理ルーチンの動作を示すフローチャー
トである。
FIG. 12 is a flowchart illustrating an operation of a sound generation processing routine.

【図13】発音処理ルーチンの動作を示すフローチャー
トである。
FIG. 13 is a flowchart showing an operation of a sound generation processing routine.

【図14】第2実施例におけるメインルーチンの動作を
示すフローチャートである。
FIG. 14 is a flowchart showing an operation of a main routine in the second embodiment.

【図15】ピッチ抽出処理ルーチンの動作を示すフロー
チャートである。
FIG. 15 is a flowchart showing an operation of a pitch extraction processing routine.

【図16】鍵盤処理ルーチンの動作を示すフローチャー
トである。
FIG. 16 is a flowchart showing the operation of a keyboard processing routine.

【図17】移調動作を説明するための図である。FIG. 17 is a diagram illustrating a transposition operation.

【符号の説明】[Explanation of symbols]

1 鍵盤 2 パネルスイッチ部 3 マイクロフォン 4 A/D変換器 5 CPU(鍵割り当て手段、ピッチ抽出手段、移調手
段、自動演奏手段) 6 ROM 7 RAM 8 音源 9 サウンドシテム
DESCRIPTION OF SYMBOLS 1 Keyboard 2 Panel switch part 3 Microphone 4 A / D converter 5 CPU (Key assignment means, pitch extraction means, transposition means, automatic performance means) 6 ROM 7 RAM 8 Sound source 9 Sound system

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 原音をサンプリングしてなるサンプリン
グデータを記憶手段に記憶しておき、押鍵操作に応じた
読み出し速度で当該サンプリングデータを記憶手段から
読み出して所望の音高のサンプリング音を発生するサン
プリング装置において、 サンプリング開始以前に、サンプリングしようとする原
音を割り当てるべく押鍵操作した場合、その押鍵された
鍵に対応した音高の確認音を発生する一方、当該鍵に原
音を割り当てる鍵割り当て手段を具備することを特徴と
するサンプリング装置。
1. Sampling data obtained by sampling an original sound is stored in a storage means, and the sampling data is read out from the storage means at a reading speed corresponding to a key depression operation to generate a sampling sound having a desired pitch. In the sampling device, if a key press operation is performed to assign an original sound to be sampled before the start of sampling, a confirmation sound of a pitch corresponding to the depressed key is generated, and the original sound is allocated to the key. A sampling device comprising means.
【請求項2】 原音をサンプリングしてなるサンプリン
グデータを記憶手段に記憶しておき、押鍵操作に応じた
読み出し速度で当該サンプリングデータを記憶手段から
読み出して所望の音高のサンプリング音を発生するサン
プリング装置において、 サンプリングした原音のピッチを抽出し、抽出したピッ
チと同一音程関係にある鍵に原音を割り当てる鍵割り当
て手段を具備することを特徴とするサンプリング装置。
2. Sampling data obtained by sampling an original sound is stored in a storage means, and the sampling data is read out from the storage means at a reading speed corresponding to a key depression operation to generate a sampling sound having a desired pitch. A sampling device, comprising: a key assigning means for extracting a pitch of a sampled original sound and assigning the original sound to a key having the same pitch relationship as the extracted pitch.
【請求項3】 サンプリングした原音を自動演奏データ
に従ってピッチ変換してサンプリング音による自動演奏
を行うサンプリング装置において、 サンプリングした原音のピッチを抽出するピッチ抽出手
段と、 前記自動演奏データが指定するイベント実行タイミング
毎にイベント情報を読み出し、読み出したイベント情報
がノートオンイベントの時には前記ピッチ抽出手段が抽
出した原音ピッチと前記自動演奏データに含まれる中心
音高との音程差に従って当該自動演奏データを形成する
イベント情報中の音高情報を移調する移調手段とを具備
することを特徴とするサンプリング装置。
3. A sampling device for performing pitch conversion of a sampled original sound in accordance with automatic performance data and performing automatic performance based on the sampled sound, pitch extracting means for extracting a pitch of the sampled original sound, and executing an event specified by the automatic performance data. Event information is read at each timing, and when the read event information is a note-on event, the automatic performance data is formed according to a pitch difference between the original pitch extracted by the pitch extracting means and the center pitch included in the automatic performance data. Transposing means for transposing pitch information in event information.
【請求項4】 サンプリング開始以前に、サンプリング
しようとする原音を割り当てるべく押鍵操作した場合、
その押鍵された鍵に対応した音高の確認音を発生する一
方、当該鍵に原音を割り当てる鍵割り当て手段と、 自動演奏データが指定するイベント実行タイミング毎
に、楽曲の進行に同期してイベント情報を読み出して行
き、読み出したイベント情報がノートオンイベントの時
には前記鍵割り当て手段によって原音が割り当てられた
鍵の音高と自動演奏データに含まれる中心音高との音程
差に従って当該自動演奏データを形成するイベント情報
中の音高情報を移調しながら自動演奏する自動演奏手段
とを具備することを特徴とするサンプリング装置。
4. When a key is pressed to assign an original sound to be sampled before starting sampling,
A key assigning means for assigning an original sound to the key while generating a confirmation sound having a pitch corresponding to the pressed key, and an event synchronized with the progress of the music at each event execution timing designated by the automatic performance data. When the read event information is a note-on event, the automatic performance data is read according to the pitch difference between the pitch of the key to which the original sound is allocated by the key allocation means and the central pitch included in the automatic performance data. An automatic performance means for automatically performing while transposing pitch information in event information to be formed.
JP9277822A 1997-10-09 1997-10-09 Sampling device Pending JPH11119777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9277822A JPH11119777A (en) 1997-10-09 1997-10-09 Sampling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9277822A JPH11119777A (en) 1997-10-09 1997-10-09 Sampling device

Publications (1)

Publication Number Publication Date
JPH11119777A true JPH11119777A (en) 1999-04-30

Family

ID=17588752

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9277822A Pending JPH11119777A (en) 1997-10-09 1997-10-09 Sampling device

Country Status (1)

Country Link
JP (1) JPH11119777A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003066966A (en) * 2001-08-29 2003-03-05 Roland Corp Encoding process selecting apparatus
JP2006106754A (en) * 2004-10-05 2006-04-20 Sony France Sa Mapped meta-data sound-reproduction device and audio-sampling/sample-processing system usable therewith

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003066966A (en) * 2001-08-29 2003-03-05 Roland Corp Encoding process selecting apparatus
JP2006106754A (en) * 2004-10-05 2006-04-20 Sony France Sa Mapped meta-data sound-reproduction device and audio-sampling/sample-processing system usable therewith

Similar Documents

Publication Publication Date Title
KR960002335A (en) Effect adder
CN100388355C (en) Automatic performance device and automatic performance processing program
JP2705395B2 (en) Electronic musical instrument
JP3684774B2 (en) Performance instruction device and medium recording program
JPH11119777A (en) Sampling device
JPS5855986A (en) Electronic musical instrument
JP2712851B2 (en) Electronic musical instrument
JP2008015315A (en) Musical sound generator and musical sound generation processing program
JP3809789B2 (en) Performance guidance device and performance guidance method
JP3940999B2 (en) Performance device and performance method
JP3554770B2 (en) Tone generator
JP3812729B2 (en) Performance guidance device and performance guidance method
JPH1185153A (en) Playing equipment
JP4345433B2 (en) Performance device and performance processing program
JP2001282243A (en) Electronic musical tone generator, electronic musical tone generating method and recording medium
JP3744667B2 (en) Automatic accompaniment device and automatic accompaniment method
JPH07152372A (en) Playing device
JP2722880B2 (en) Electronic musical instrument
JP2990780B2 (en) Music signal generator
JPH1031486A (en) Performance data storage / reproduction method and apparatus
JP2001282241A (en) Electronic musical tone generator, electronic musical tone generating method and recording medium
JP3298157B2 (en) Effect adding device
JP3543159B2 (en) Automatic accompaniment device
JPH07121162A (en) Electronic musical instrument
JP2007187949A (en) Musical sound generator and musical sound generation processing program