JP5257842B2 - Musical sound generating device and musical sound generating program - Google Patents

Musical sound generating device and musical sound generating program Download PDF

Info

Publication number
JP5257842B2
JP5257842B2 JP2008298927A JP2008298927A JP5257842B2 JP 5257842 B2 JP5257842 B2 JP 5257842B2 JP 2008298927 A JP2008298927 A JP 2008298927A JP 2008298927 A JP2008298927 A JP 2008298927A JP 5257842 B2 JP5257842 B2 JP 5257842B2
Authority
JP
Japan
Prior art keywords
sound
accompaniment
sampling
waveform data
pad
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2008298927A
Other languages
Japanese (ja)
Other versions
JP2010127948A (en
Inventor
洋介 石岡
広 岩瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2008298927A priority Critical patent/JP5257842B2/en
Publication of JP2010127948A publication Critical patent/JP2010127948A/en
Application granted granted Critical
Publication of JP5257842B2 publication Critical patent/JP5257842B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、自動伴奏される各種音色の伴奏音の内、予め指定した特定の音色の伴奏音に同期してサンプリング音を再生する楽音発生装置および楽音発生プログラムに関する。   The present invention relates to a musical sound generating apparatus and a musical sound generating program for reproducing a sampling sound in synchronization with an accompaniment sound of a specific tone color designated in advance among accompaniment sounds of various tone colors automatically accompanied.

従来より、マイクロフォンを介して入力された音声信号に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.

また、例えば特許文献2に開示の装置のように、再生すべき波形データと、この波形データを再生するプログラム(デコーダ)の実行指示とを予めタクトスイッチに割り当てておき、当該タクトスイッチがオン操作されたら、即座にプログラムを実行して対応する波形データを先頭から再生させ、この再生中に再びタクトスイッチがオン操作された場合には、再び先頭から波形再生させるループサンプリングを行ったり、再生中にタクトスイッチがオン操作されなければ、そのまま最後まで波形再生させたりする技術が開示されている。   Further, for example, as in the device disclosed in Patent Document 2, waveform data to be reproduced and an execution instruction of a program (decoder) for reproducing the waveform data are assigned in advance to the tact switch, and the tact switch is turned on. If the tact switch is turned on again during this playback, the program is executed immediately and the corresponding waveform data is played back from the beginning. If the tact switch is not turned on, a technique is disclosed in which the waveform is reproduced as it is.

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

ところで、上述した特許文献1に開示の装置において、打楽器演奏のようにパッド面を叩く操作(以下、パッド操作と称す)に応じてノートオンイベントを発生するパッドを設けた場合、ユーザがパッド操作を行う都度発生するノートオンイベントに従ってサンプリング音を再生させることが可能になる。この場合、例えば特許文献2に開示の技術のように、パッド操作に応じて、サンプリングされた波形データを先頭から順次再生し、その再生中に再びパッド操作された時には再び先頭から波形再生させ、一方、再生中にパッド操作されなければ、読み出し中の波形データを最後まで再生する態様となる。   By the way, in the apparatus disclosed in Patent Document 1 described above, when a pad that generates a note-on event in response to an operation of hitting the pad surface (hereinafter referred to as a pad operation) like a percussion instrument performance is provided, It becomes possible to reproduce the sampling sound according to the note-on event that occurs each time. In this case, for example, as in the technique disclosed in Patent Document 2, the sampled waveform data is sequentially reproduced from the top in response to the pad operation, and when the pad operation is performed again during the reproduction, the waveform is reproduced from the top again. On the other hand, if the pad operation is not performed during reproduction, the waveform data being read is reproduced to the end.

こうした再生態様では、単調なリズム演奏となってしまい、自動伴奏される各種音色の伴奏音の内、予め指定した特定の音色の伴奏音に同期してサンプリング音を再生させるリズム演奏を具現することが出来ない、という問題がある。   In such a reproduction mode, a monotonous rhythm performance is realized, and among the accompaniment sounds of various tones that are automatically accompanied, a rhythm performance that reproduces the sampled sound in synchronization with the accompaniment sound of a specific tone specified in advance is realized. There is a problem that cannot be done.

本発明は、このような事情に鑑みてなされたもので、自動伴奏される各種音色の伴奏音の内、予め指定した特定の音色の伴奏音に同期してサンプリング音を再生させるリズム演奏を具現することができる自動伴奏装置および自動伴奏プログラムを提供することを目的としている。 The present invention has been made in view of such circumstances, and implements a rhythm performance that reproduces a sampled sound in synchronization with an accompaniment sound of a specific tone specified in advance among accompaniment sounds of various tones that are automatically accompanied. An object of the present invention is to provide an automatic accompaniment apparatus and an automatic accompaniment program.

上記目的を達成するため、請求項1に記載の発明では、入力音声をサンプリングして得たサンプリング波形データを記憶する記憶手段と、伴奏パターンを指定する指定手段と、前記指定手段により指定された伴奏パターンを構成する各種音色パートの中から特定音色パートを選択する選択手段と、前記指定手段により指定された伴奏パターンに従って各種音色パートの伴奏音を発音させて自動伴奏する自動伴奏手段と、サンプリング音の発音を指示する発音指示手段と、前記自動伴奏手段による自動伴奏が進行していない時に、前記発音指示手段による発音の指示に応答して前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第1の再生手段と、前記自動伴奏手段が自動伴奏を進行させている時に、前記サンプリング音の発音指示状態が継続的に維持された場合、前記選択手段により選択された特定音色パートの伴奏音の発音タイミングで前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第2の再生手段とを具備することを特徴とする。 In order to achieve the above object, according to the first aspect of the present invention, the storage means for storing the sampling waveform data obtained by sampling the input sound, the designation means for designating the accompaniment pattern, and the designation means designated by the designation means selection means for selecting a specific tone color part from various tone color part constituting the accompaniment pattern, and automatic accompaniment means for automatic accompaniment by pronunciation accompaniment various tone color part according accompaniment pattern specified by the specifying means, the sampling A sound generation instruction means for instructing sound generation; and when automatic accompaniment by the automatic accompaniment means is not in progress, sampling waveform data stored in the storage means is read in response to a sound generation instruction by the sound generation instruction means A first playback means for playing back a sampled sound, and the automatic accompaniment means If pronunciation instruction state of the sampled sound is continuously maintained, to reproduce the sampling sound reads sampling waveform data stored in the storage means in sounding timing of the accompaniment sound of a specific tone color part selected by the selection means And a second reproducing means.

上記請求項1に従属する請求項2に記載の発明では、前記第2の再生手段は、前記選択手段により選択された特定音色パートの伴奏音の発音音高に応じた読み出し速度で前記記憶手段からサンプリング波形データを読み出す読み出し手段を具備することを特徴とする。   In the invention according to claim 2, which is dependent on claim 1, the second reproducing means stores the storage means at a reading speed corresponding to the pitch of the accompaniment sound of the specific timbre part selected by the selecting means. And a reading means for reading sampling waveform data from.

請求項3に記載の発明では、入力音声をサンプリングして得たサンプリング波形データを記憶する記憶手段と、伴奏パターンを指定する指定手段と、押下操作に応じてサンプリング音の発音を指示する発音指示手段と、前記発音指示手段がサンプリング音の発音指示状態を継続的に維持した場合の押下操作圧を検出する操作圧検出手段と、前記指定手段により指定された伴奏パターンを構成する各種音色パートの内、前記操作圧検出手段によって検出される押下操作圧が所定レベル未満および所定レベル以上の各場合にそれぞれ割り当てる第1および第2の音色パートを選択する選択手段と、前記指定手段により指定された伴奏パターンに従って各種音色パートの伴奏音を発音させて自動伴奏する自動伴奏手段と、前記自動伴奏手段による自動伴奏が進行していない時に、前記発音指示手段による発音の指示に応答して前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第1の再生手段と、前記自動伴奏手段が自動伴奏を進行させている時に、サンプリング音の発音指示状態が継続的に維持され、かつ前記操作圧検出手段によって検出される操作圧が所定レベル未満の場合には前記選択手段により選択された第1の音色パートの伴奏音の発音タイミングで前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生し、一方、前記操作圧検出手段によって検出される操作圧が所定レベル以上の場合には前記選択手段により選択された第2の音色パートの伴奏音の発音タイミングで前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第2の再生手段とを具備することを特徴とする。 According to the third aspect of the present invention, a storage means for storing sampling waveform data obtained by sampling the input voice, a designation means for designating an accompaniment pattern, and a sound generation instruction for instructing the sound of the sampling sound in response to a pressing operation An operation pressure detecting means for detecting a pressing operation pressure when the sound generation instruction means continuously maintains the sound generation instruction state of the sampling sound, and various tone parts constituting the accompaniment pattern specified by the specification means A selection means for selecting first and second timbre parts to be assigned in each case where the pressing operation pressure detected by the operation pressure detection means is less than a predetermined level and greater than or equal to a predetermined level, and designated by the designation means and automatic accompaniment means for automatic accompaniment by pronunciation accompaniment various tone color part according accompaniment pattern, the self by the automatic accompaniment means When the accompaniment is not in progress, a first reproducing means for reproducing a sampling sound reads sampling waveform data stored in the storage means in response sounding instruction to the by the sound generation instruction means, said automatic accompaniment means When the automatic accompaniment is progressing, the sound generation instruction state of the sampling sound is continuously maintained , and the operation pressure detected by the operation pressure detection means is less than a predetermined level, the second selected by the selection means Sampling waveform data stored in the storage means is read out at the timing of sound generation of the accompaniment sound of one timbre part, and the sampling sound is reproduced. sampled is stored in the storage means in sounding timing of the accompaniment sound of the second tone color part selected by the selection means Reads grayed waveform data, characterized by comprising a second reproducing means for reproducing sampling sounds.

上記請求項3に従属する請求項4に記載の発明では、前記第2の再生手段は、サンプリング音の発音指示状態が継続的に維持され、かつ前記操作圧検出手段によって検出される操作圧が所定レベル未満の場合には前記選択手段により選択された第1の音色パートの伴奏音の発音音高に応じた読み出し速度で前記記憶手段からサンプリング波形データを読み出す第1の読み出し手段と、前記サンプリング音の発音指示状態が継続的に維持され、かつ前記操作圧検出手段によって検出される操作圧が所定レベル以上の場合には前記選択手段により選択された第2の音色パートの伴奏音の発音音高に応じた読み出し速度で前記記憶手段からサンプリング波形データを読み出す第2の読み出し手段とを具備することを特徴とする。 In the invention according to claim 4, which is dependent on claim 3, the second reproduction means maintains the sound generation instruction state of the sampling sound continuously, and the operation pressure detected by the operation pressure detection means is the same. A first reading means for reading sampling waveform data from the storage means at a reading speed corresponding to the tone pitch of the accompaniment sound of the first timbre part selected by the selection means when the level is less than a predetermined level; and the sampling When the sound generation instruction state is continuously maintained and the operation pressure detected by the operation pressure detection means is equal to or higher than a predetermined level, the sound of the accompaniment sound of the second timbre part selected by the selection means And second reading means for reading sampling waveform data from the storage means at a reading speed corresponding to high.

請求項5に記載の発明では、入力音声をサンプリングして得たサンプリング波形データを記憶する記憶処理と、伴奏パターンを指定する指定処理と、前記指定処理により指定された伴奏パターンを構成する各種音色パートの中から特定音色パートを選択する選択処理と、前記指定処理により指定された伴奏パターンに従って各種音色パートの伴奏音を発音させて自動伴奏する自動伴奏処理と、サンプリング音の発音を指示する発音指示処理と、前記自動伴奏処理による自動伴奏が進行していない時に、前記発音指示処理による発音の指示に応答して前記記憶処理で記憶されたサンプリング波形データを読み出してサンプリング音を再生する第1の再生処理と、前記自動伴奏処理が自動伴奏を進行させている時に、サンプリング音の発音指示状態が継続的に維持された場合、前記選択処理により選択された特定音色パートの伴奏音の発音タイミングで前記記憶処理で記憶されたサンプリング波形データを読み出してサンプリング音を再生する第2の再生処理とをコンピュータで実行させることを特徴とする。 In the invention according to claim 5, a storage process for storing sampling waveform data obtained by sampling an input voice, a designation process for designating an accompaniment pattern, and various timbres constituting the accompaniment pattern designated by the designation process A selection process for selecting a specific timbre part from the parts, an automatic accompaniment process for automatically accompaniment by generating accompaniment sounds of various timbre parts according to the accompaniment pattern specified by the specification process, and a pronunciation for instructing the pronunciation of the sampling sound When the automatic accompaniment by the instruction process and the automatic accompaniment process is not in progress, the sampling waveform data stored in the storage process is read in response to the sound generation instruction by the sound generation instruction process to reproduce the sampling sound a reproduction process, when the automatic accompaniment processing is allowed to proceed automatic accompaniment, sounding instruction shaped sampling sound If but maintained continuously, a second reproduction processing for reproducing the selected sampling sound reads the stored sampled waveform data in the storage process in sounding timing of selected specific tone color part of accompaniment tone by treatment Is executed by a computer.

本発明では、自動伴奏される各種音色の伴奏音の内、予め指定した特定の音色の伴奏音に同期してサンプリング音を再生させるリズム演奏を具現することができる。   In the present invention, it is possible to realize a rhythm performance in which a sampled sound is reproduced in synchronization with an accompaniment sound of a specific tone color specified in advance among accompaniment sounds of various tone colors automatically accompanied.

以下、図面を参照して本発明の実施の形態について説明する。
[第1実施形態]
A.構成
図1は、本発明の第1実施形態による楽音発生装置100の全体構成を示すブロック図である。この図において、CPU10は、操作部14、パッド16および鍵盤17から供給されるイベントに応じて装置各部を制御するものであり、本発明の要旨に係わる特徴的な処理の動作については追って詳述する。ROM11は、プログラムエリアおよびデータエリアを備える。ROM11のプログラムエリアには、CPU10が実行する、後述のメインルーチン、スイッチ処理およびパッド処理のプログラムを含む各種プログラムデータが記憶される。
Embodiments of the present invention will be described below with reference to the drawings.
[First embodiment]
A. Configuration FIG. 1 is a block diagram showing the overall configuration of a musical sound generator 100 according to a first 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, the pad 16, and the keyboard 17, and the detailed processing operations related to the gist of the present invention will be described later. To do. The ROM 11 includes a program area and a data area. The program area of the ROM 11 stores various program data including a main routine, a switch process, and a pad process, which will be described later, executed by the CPU 10.

ROM11のデータエリアには、図示していないが、伴奏パターン番号に対応付けられた伴奏パターン(1)〜(N)が格納される。1つ伴奏パターンは、所定小節分の楽曲を形成する各種伴奏音(音色パート)の音高および発音タイミング等を表わすパターンデータから構成される。パターンデータは、例えば所定小節分の楽曲を表わすノーマルパターン、このノーマルパターンの序奏部に相当するイントロパターン、ノーマルパターンの途中に介挿されるフィルインパターンおよびノーマルパターンの終結部に付加されるエンディングパターンから形成される。   Although not shown, accompaniment patterns (1) to (N) associated with accompaniment pattern numbers are stored in the data area of the ROM 11. One accompaniment pattern is composed of pattern data representing the pitches and pronunciation timings of various accompaniment sounds (tone color parts) that form a music piece for a predetermined measure. The pattern data includes, for example, a normal pattern representing a music piece of a predetermined measure, an intro pattern corresponding to the introduction part of the normal pattern, a fill-in pattern inserted in the middle of the normal pattern, and an ending pattern added to the end part of the normal pattern. It is formed.

RAM12は、図2に図示するように、ワークエリアWEおよびサンプリング波形データエリアSWDEを備える。RAM12のワークエリアWEには、CPU10の処理に用いる各種レジスタ/フラグデータが一時記憶され、一方、サンプリング波形データエリアSWDEには、CPU10の制御の下に、後述するサンプリング入力部15により入力されるサンプリング波形データが格納される。表示部13は、例えばLCDパネル(図示略)と、CPU10から供給される表示制御信号に応じてLCDパネルを表示駆動する表示ドライバ(図示略)とから構成され、操作部14の操作に応じて設定される装置設定状態や動作状態などを画面表示する。 The RAM 12 includes a work area WE and a sampling waveform data area SWDE as shown in FIG. Various register / flag data used for processing of the CPU 10 are temporarily stored in the work area WE of the RAM 12, while being input to the sampling waveform data area SWDE by a sampling input unit 15 described later under the control of the CPU 10. Sampling waveform data is stored. 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.

操作部14は、図示せぬコンソールパネル上に配設される各種スイッチや操作キーから構成され、操作に対応したイベントを発生する。このイベントはCPU10のキースキャンにより取込まれる。操作部14に配設されるスイッチ種類としては、図示されていない電源スイッチの他、自動伴奏に用いる伴奏パターンを選択する伴奏パターン選択スイッチ、自動伴奏の開始/停止を指示するスタート/ストップスイッチ、パッドに割り当てる音色パートを選択するパッドアサインスイッチおよびサンプリングの開始を指示するサンプリングスイッチ等がある。また、操作部14に配設される操作キーとしては、例えばパッドアサインスイッチ操作時に併用されるカーソルキーやエンターキー等を備える。 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 switch types arranged on the operation unit 14, in addition to a power switch (not shown), an accompaniment pattern selection switch for selecting an accompaniment pattern used for automatic accompaniment, a start / stop switch for instructing start / stop of automatic accompaniment, There are a pad assign switch for selecting a timbre part to be assigned to a pad, a sampling switch for instructing the start of sampling, and the like. The operation keys disposed on the operation unit 14 include, for example, a cursor key and an enter key that are used together when the pad assign switch is operated.

サンプリング入力部15は、CPU10からのサンプリング開始指示に応じて、マイクロフォンを介して入力される音声信号あるいはオーディオ入力端子から供給される音声信号を一定レベルに増幅した後、所定のサンプリング周波数でA/D変換してなるサンプリング波形データを出力する。サンプリング入力部15から出力されるサンプリング波形データは、CPU10の制御の下に、上述したRAM12のサンプリング波形データエリアSWDEに格納される。   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 stored in the sampling waveform data area SWDE of the RAM 12 described above under the control of the CPU 10.

パッド16は、パッド面に配設されるパッドスイッチを有し、ユーザのパッド操作に応じた当該パッドスイッチのオンオフ動作を表すON/OFFイベントを発生する。また、パッド16は、パッド操作以外に、パッド面を押下してパッドスイッチをオン状態に維持するパッド長押し操作が行われる。このパッド長押し操作が意図するところについては追って述べる。鍵盤17は、押離鍵操作に応じて、キーオン/キーオフイベント、鍵番号およびベロシティ等を含む演奏情報を発生する。 The pad 16 has a pad switch arranged on the pad surface, and generates an ON / OFF event indicating an on / off operation of the pad switch in accordance with a user's pad operation. In addition to the pad operation, the pad 16 is subjected to a pad long pressing operation for pressing the pad surface and maintaining the pad switch in the on state. The purpose of this pad long press operation will be described later. The keyboard 17 generates performance information including a key-on / key-off event, a key number, a velocity, and the like in response to a key press / release operation.

音源18は、各種音色の波形データを備える周知の波形メモリ読み出し方式で構成され、同時発音可能な複数の発音チャンネルを備える。音源18では、鍵盤17から出力される演奏情報に基づきCPU10が発生する楽音コマンドに応じた楽音出力を発生したり、パッド16のパッド操作に応じてRAM12のサンプリング波形データエリアSWDEからサンプリング波形データを読み出してサンプリング音出力を発生する。また、音源18では、自動伴奏進行中にパッド16が長押し操作された場合、当該パッドにアサインされた特定の音色の伴奏音の発音に同期してサンプリング音出力を発生する。サウンドシステム19は、音源18から出力される楽音出力をD/A変換した後に増幅してスピーカから発音する。 The sound source 18 is configured by a well-known waveform memory reading method including waveform data of various timbres, and includes a plurality of sound generation channels capable of simultaneous sound generation. The tone generator 18 generates a tone output corresponding to a tone command generated by the CPU 10 based on the performance information output from the keyboard 17, or receives sampling waveform data from the sampling waveform data area SWDE of the RAM 12 according to the pad operation of the pad 16. Read to generate sampling sound output. In the sound source 18, when the pad 16 is pressed for a long time while the automatic accompaniment is in progress, a sampling sound output is generated in synchronization with the sound of the accompaniment sound of a specific tone color assigned to the pad. The sound system 19 D / A converts the musical sound output output from the sound source 18 and then amplifies the sound output from the speaker.

B.動作
次に、図3〜図9を参照して上記構成による楽音発生装置100の動作を説明する。なお、図3はCPU10が実行するメインルーチンの動作を示すフローチャート、図4はメインルーチンからコールされるスイッチ処理の動作を示すフローチャート、図5はスイッチ処理からコールされる伴奏パターン選択スイッチ処理の動作を示すフローチャート、図6はスイッチ処理からコールされるスタート/ストップスイッチ処理の動作を示すフローチャート、図7はスイッチ処理からコールされるパッドアサインスイッチ処理の動作を示すフローチャート、図8はスイッチ処理からコールされるパッドスイッチ処理の動作を示すフローチャートおよび図9はメインルーチンからコールされるパッド処理の動作を示すフローチャートである。
B. Operation Next, the operation of the musical tone generator 100 having the above-described configuration will be described with reference to FIGS. 3 is a flowchart showing the operation of the main routine executed by the CPU 10, FIG. 4 is a flowchart showing the operation of the switch process called from the main routine, and FIG. 5 is the operation of the accompaniment pattern selection switch process called from the switch process. 6 is a flowchart showing the operation of the start / stop switch process called from the switch process, FIG. 7 is a flowchart showing the operation of the pad assign switch process called from the switch process, and FIG. 8 is a call from the switch process. FIG. 9 is a flowchart showing the pad processing operation called from the main routine.

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

イニシャライズが完了すると、CPU10はステップSA2に進み、各種スイッチ(伴奏パターン選択スイッチ、スタート/ストップスイッチ、パッドアサインスイッチ、パッドスイッチおよびサンプリングスイッチ)の操作で発生するスイッチイベントに対応したスイッチ処理を実行する。スイッチ処理の詳細については追って述べる。次いで、ステップSA3では、フラグSSFが「1」、つまりサンプリングスイッチの操作によってサンプリング開始を指示された状態であるか否かを判断する。 When the initialization is completed, the CPU 10 proceeds to step SA2 and executes switch processing corresponding to a switch event generated by operating various switches (accompaniment pattern selection switch, start / stop switch, pad assign switch, pad switch, and sampling switch). . Details of the switch processing will be described later. Next, in step SA3, it is determined whether or not the flag SSF is “1”, that is, whether or not the sampling start is instructed by the operation of the sampling switch.

フラグSSFが「0」の場合、すなわちサンプリング開始が指示されていなければ、上記ステップSA3の判断結果は「NO」になり、後述のステップSA5に処理を進めるが、フラグSSFが「1」であると、上記ステップSA3の判断結果は「YES」になり、ステップSA4に進み、サンプリング処理を実行する。 If the flag SSF is “0”, that is, if sampling start is not instructed, the determination result in step SA3 is “NO”, and the process proceeds to step SA5 described later, but the flag SSF is “1”. In step SA3, the determination result is “YES”, and the flow advances to step SA4 to execute sampling processing.

このサンプリング処理では、サンプリング入力部15に対してサンプリング開始を指示し、これに応じてサンプリング入力部15が出力するサンプリング波形データをRAM12のサンプリング波形データエリアSWDEにストアする。そして、当該サンプリング波形データエリアSWDEへの書き込みが満了した時点でサンプリング入力部15に対してサンプリング停止を指示すると共に、フラグSSFをゼロリセットして処理を終える。 In this sampling process, the sampling input unit 15 is instructed to start sampling, and in response to this, the sampling waveform data output from the sampling input unit 15 is stored in the sampling waveform data area SWDE of the RAM 12. Then, when the writing to the sampling waveform data area SWDE is completed, the sampling input unit 15 is instructed to stop sampling, and the flag SSF is reset to zero to finish the processing.

次に、ステップSA5では、鍵盤17から出力される演奏情報に応じた楽音コマンドを発生して音源18に供給する鍵盤処理を実行する。続いて、ステップSA6では、フラグSTFが「1」、つまりスタート/ストップスイッチの操作によって自動伴奏開始が指示された状態(自動伴奏進行中)であるか否かを判断する。フラグSTFが「0」の場合、すなわち自動伴奏停止中ならば、上記ステップSA6の判断結果は「NO」になり、後述のステップSA8に処理を進めるが、自動伴奏進行中(フラグSTFが「1」)であると、上記ステップSA6の判断結果は「YES」になり、ステップSA7に進み、ユーザ選択された伴奏パターンを再生する自動伴奏処理を実行する。 Next, in step SA5, a keyboard process for generating a musical sound command corresponding to the performance information output from the keyboard 17 and supplying it to the tone generator 18 is executed. Subsequently, in step SA6, it is determined whether or not the flag STF is “1”, that is, whether the start of the automatic accompaniment is instructed by operating the start / stop switch (automatic accompaniment is in progress). If the flag STF is “0”, that is, if the automatic accompaniment is stopped, the determination result in step SA6 is “NO” and the process proceeds to step SA8 described later, but the automatic accompaniment is in progress (the flag STF is “1”). ")", The determination result in step SA6 is "YES", and the process proceeds to step SA7 to execute automatic accompaniment processing for reproducing the user-selected accompaniment pattern.

そして、ステップSA8では、後述するように、自動伴奏停止中にパッド操作された場合には、その操作毎にサンプリング音の再生を音源18に指示し、一方、自動伴奏進行中にパッド長押し操作された場合には、パッドアサインスイッチ操作で選択された特定音色パートの発音に合わせて、その発音音高でサンプリング音を再生するよう音源18に指示するパッド処理を実行し、続くステップSA9では、例えば装置設定状態や動作状態などを画面表示する等の、その他の処理を実行する。以後、装置電源がオフされる迄、上述したステップSA2〜SA9を繰り返し実行する。   In step SA8, as will be described later, when a pad operation is performed while automatic accompaniment is stopped, the sound source 18 is instructed to reproduce the sampled sound for each operation, while the pad long press operation is performed while automatic accompaniment is in progress. If so, pad processing is executed to instruct the sound source 18 to play back the sampled sound at the tone pitch in accordance with the tone of the specific tone part selected by the pad assign switch operation. For example, other processes such as displaying the device setting state and the operation state on the screen are executed. Thereafter, steps SA2 to SA9 are repeatedly executed until the apparatus power is turned off.

(2)スイッチ処理の動作
次に、図4を参照してスイッチ処理の動作について説明する。上述したメインルーチンのステップSA2(図3参照)を介してスイッチ処理が実行されると、CPU10は図4に図示する伴奏パターン選択スイッチ処理(ステップSB1)、スタート/ストップスイッチ処理(ステップSB2)、パッドアサインスイッチ処理(ステップSB3)、パッドスイッチ処理(ステップSB4)およびその他のスイッチ処理(ステップSB5)を順次実行する。以下、これら各スイッチ処理毎の動作を説明する。
(2) Operation of Switch Processing Next, the operation of switch processing will be described with reference to FIG. When the switch process is executed through step SA2 (see FIG. 3) of the main routine described above, the CPU 10 performs accompaniment pattern selection switch process (step SB1), start / stop switch process (step SB2) shown in FIG. Pad assignment switch processing (step SB3), pad switch processing (step SB4), and other switch processing (step SB5) are sequentially executed. Hereinafter, the operation for each of these switch processes will be described.

なお、ステップSB5の、その他のスイッチ処理には、サンプリングスイッチ処理が含まれる。サンプリングスイッチ処理では、図示していないが、サンプリングスイッチの操作に応じて、前述したフラグSSFを「1」にセットし、サンプリング開始を指示する状態を表すようになっている。 Note that the other switch processing in step SB5 includes sampling switch processing. In the sampling switch process, although not shown, the flag SSF described above is set to “1” in accordance with the operation of the sampling switch to indicate a state instructing the start of sampling.

(a)伴奏パターン選択スイッチ処理の動作
スイッチ処理のステップSB1(図4参照)を介して本処理が実行されると、CPU10は図5に図示するステップSC1に進み、フラグSTFが「0」、すなわち自動伴奏停止中であるか否かを判断する。フラグSTFが「1」の自動伴奏進行中ならば、判断結果は「NO」となり、本処理を終える。つまり、自動伴奏進行中の場合には伴奏パターン選択スイッチの操作を無効にする。
(A) Accompaniment pattern selection switch processing operation When this processing is executed via step SB1 (see FIG. 4) of the switch processing, the CPU 10 proceeds to step SC1 shown in FIG. That is, it is determined whether or not automatic accompaniment is stopped. If the automatic accompaniment in which the flag STF is “1” is in progress, the determination result is “NO”, and the present process ends. That is, when the automatic accompaniment is in progress, the operation of the accompaniment pattern selection switch is invalidated.

一方、自動伴奏停止中ならば、上記ステップSC1の判断結果は「YES」になり、ステップSC2に進み、伴奏パターン選択スイッチがオン操作されたかどうかを判断する。オン操作されなければ、判断結果は「NO」となり、本処理を終えるが、オン操作された場合には、判断結果が「YES」になり、ステップSC3に進み、伴奏パターン選択スイッチのオン操作により選択された伴奏パターン番号をレジスタACPNにストアして本処理を終える。   On the other hand, if the automatic accompaniment is stopped, the determination result in step SC1 is “YES”, and the process proceeds to step SC2 to determine whether or not the accompaniment pattern selection switch has been turned on. If the operation is not turned on, the determination result is “NO”, and the present process is completed. However, if the operation is turned on, the determination result is “YES”, and the process proceeds to step SC3, and the accompaniment pattern selection switch is turned on. The selected accompaniment pattern number is stored in the register ACPN, and this process is finished.

(b)スタート/ストップスイッチ処理の動作
スイッチ処理のステップSB2(図4参照)を介して本処理が実行されると、CPU10は図6に図示するステップSD1に処理を進め、スタート/ストップスイッチがオン操作されたかどうかを判断する。スタート/ストップスイッチがオン操作されなければ、判断結果は「NO」となり、本処理を完了させる。
(B) Operation of start / stop switch process When this process is executed through step SB2 (see FIG. 4) of the switch process, the CPU 10 advances the process to step SD1 shown in FIG. It is determined whether or not an ON operation has been performed. If the start / stop switch is not turned on, the determination result is “NO”, and this process is completed.

一方、オン操作されると、上記ステップSD1の判断結果は「YES」となり、ステップSD2に進み、フラグSTFを反転させる。フラグSTFは「1」の時に自動伴奏開始(伴奏進行中)を表し、「0」の時に自動伴奏停止中を表す。つまり、スタート/ストップスイッチはオン操作される毎に、オルタネートに開始又は停止を表すようにフラグセットする所謂トグルスイッチなので、オン操作される毎にフラグSTFの値を反転するようになっている。 On the other hand, when the ON operation is performed, the determination result in step SD1 is “YES”, the process proceeds to step SD2, and the flag STF is inverted. The flag STF indicates automatic accompaniment start (accompaniment in progress) when “1”, and automatic accompaniment stop when “0”. That is, every time the start / stop switch is turned on, it is a so-called toggle switch that sets a flag so as to indicate the start or stop of the alternate, so that the value of the flag STF is inverted every time it is turned on.

そして、ステップSD3では反転したフラグSTFが「1」であるかどうかを判断する。ここで、反転したフラグSTFが「0」、つまりスタート/ストップスイッチのオン操作によって自動伴奏の停止を指示する状態に遷移した場合には、判断結果が「NO」となり、ステップSC4に進み、発音中の全ての伴奏音を消音するよう音源18に指示して本処理を終える。 In step SD3, it is determined whether the inverted flag STF is “1”. Here, when the inverted flag STF is “0”, that is, when the start / stop switch is turned on, the judgment result is “NO”, and the process proceeds to step SC4. The sound source 18 is instructed to mute all the accompanying accompaniment sounds, and this process is finished.

一方、反転したスタートフラグSTFが「1」、すなわち自動伴奏の開始を指示する状態に遷移した場合には、上記ステップSD3の判断結果は「YES」となり、ステップSD5に進み、上述した伴奏パターン選択スイッチの操作により選択された伴奏パターンの先頭からパターンデータを読み出す為のアドレスセット等を行う伴奏開始設定を実行して本処理を終える。 On the other hand, when the inverted start flag STF is “1”, that is, when a transition is made to the state instructing the start of automatic accompaniment, the determination result in step SD3 is “YES”, the process proceeds to step SD5, and the accompaniment pattern selection described above is performed. The accompaniment start setting for performing address setting for reading pattern data from the head of the accompaniment pattern selected by the operation of the switch is executed, and this processing is completed.

(c)パッドアサインスイッチ処理の動作
スイッチ処理のステップSB3(図4参照)を介して本処理が実行されると、CPU10は図7に図示するステップSE1に処理を進め、パッドアサインスイッチの操作の有無を判断する。パッドアサインスイッチが操作されなければ、判断結果は「NO」となり、本処理を終えるが、操作された場合には、判断結果が「YES」になり、ステップSE2に進む。ステップSE2では、レジスタACPNにストアされる伴奏パターン番号で指定される伴奏パターンを構成する音色パート(伴奏音の種類)を、ROM11から読み出して表示部13に一覧表示する。
(C) Operation of the pad assign switch process When this process is executed via step SB3 (see FIG. 4) of the switch process, the CPU 10 advances the process to step SE1 shown in FIG. Judgment is made. If the pad assign switch is not operated, the determination result is “NO”, and the present process is terminated. However, if it is operated, the determination result is “YES”, and the process proceeds to step SE2. In step SE2, timbre parts (accompaniment sound types) constituting the accompaniment pattern specified by the accompaniment pattern number stored in the register ACPN are read from the ROM 11 and displayed in a list on the display unit 13.

次いで、ステップSE3では、この一覧表示された音色パートの中からパッド16にアサインする特定音色パートを選択する。具体的には、表示部13の画面上に一覧表示された音色パートの内から所望の音色パートをカーソルキーの操作によって指定し、指定された特定音色パートをエンターキーの操作によって選択設定して本処理を終える。 Next, in step SE3, a specific tone color part to be assigned to the pad 16 is selected from the tone color parts displayed in the list. Specifically, a desired timbre part is designated from among the timbre parts displayed in a list on the screen of the display unit 13 by operating the cursor key, and the specified specific timbre part is selected and set by operating the enter key. This process is finished.

(d)パッドスイッチ処理の動作
スイッチ処理のステップSB4(図4参照)を介して本処理が実行されると、CPU10は図8に図示するステップSF1に処理を進め、パッドスイッチイベントの有無を判定する。パッドスイッチイベントが無ければ、判断結果は「NO」となり、本処理を終えるが、パッド16の操作によりパッドスイッチイベントが発生した場合には、判断結果が「YES」になり、ステップSF2に進む。
(D) Operation of pad switch process When this process is executed via step SB4 (see FIG. 4) of the switch process, the CPU 10 proceeds to step SF1 shown in FIG. 8 to determine whether there is a pad switch event. To do. If there is no pad switch event, the determination result is “NO”, and the present process is finished. However, if a pad switch event is generated by the operation of the pad 16, the determination result is “YES”, and the process proceeds to Step SF2.

ステップSF2では、発生したパッドスイッチイベントがONイベントであるか否かを判断する。ONイベントならば、判断結果は「YES」となり、ステップSF3に進み、オンフラグONFを「1」にセットして本処理を終える。一方、発生したパッドスイッチイベントがOFFイベントであると、上記ステップSF2の判断結果が「NO」になり、ステップSF4に進み、オンフラグONFをゼロリセットして本処理を終える。   In step SF2, it is determined whether or not the generated pad switch event is an ON event. If the event is an ON event, the determination result is “YES”, the process proceeds to step SF 3, the ON flag ONF is set to “1”, and this process is terminated. On the other hand, if the generated pad switch event is an OFF event, the determination result in step SF2 is “NO”, the process proceeds to step SF4, the ON flag ONF is reset to zero, and the present process ends.

(3)パッド処理の動作
次に、図9を参照してパッド処理の動作について説明する。前述したメインルーチンのステップSA8(図3参照)を介してパッド処理が実行されると、CPU10は図9に図示するステップSG1に進み、フラグSTFが「1」であるか否か、すなわち自動伴奏進行中であるかどうかを判断する。以下、自動伴奏停止中の場合と、自動伴奏進行中の場合とに分けて動作説明を進める。
(3) Pad Processing Operation Next, the pad processing operation will be described with reference to FIG. When the pad process is executed via step SA8 (see FIG. 3) of the main routine described above, the CPU 10 proceeds to step SG1 shown in FIG. 9, and determines whether or not the flag STF is “1”, that is, automatic accompaniment. Determine if it is in progress. Hereinafter, the explanation of the operation will be divided into a case where the automatic accompaniment is stopped and a case where the automatic accompaniment is in progress.

<自動伴奏停止中の場合>
自動伴奏停止中(フラグSTFが「0」)ならば、上記ステップSG1の判断結果は「NO」になり、ステップSG2に進む。ステップSG2では、オンフラグONFが「1」であるか否かを判断する。パッド操作に応じてパッド16がONイベントを発生した場合には、判断結果が「YES」になり、ステップSG3に進み、サンプリング音の発音を音源18に指示する。これにより、音源18では、RAM12のサンプリング波形データエリアSWDEからサンプリング波形データを読み出してサンプリング音を再生する。このように、自動伴奏停止中では、打楽器演奏のようにパッド面を叩くパッド操作をパッド16に加えると、パッド操作毎にサンプリング音が再生されるようになっている。
<When automatic accompaniment is stopped>
If the automatic accompaniment is stopped (the flag STF is “0”), the determination result in step SG1 is “NO”, and the process proceeds to step SG2. In step SG2, it is determined whether or not the ON flag ONF is “1”. If the pad 16 generates an ON event in response to the pad operation, the determination result is “YES”, and the process proceeds to step SG3 to instruct the sound source 18 to generate a sampling sound. As a result, the sound source 18 reads the sampling waveform data from the sampling waveform data area SWDE of the RAM 12 and reproduces the sampling sound. As described above, when the automatic accompaniment is stopped, if a pad operation for hitting the pad surface is applied to the pad 16 as in percussion instrument performance, the sampling sound is reproduced for each pad operation.

<自動伴奏進行中の場合>
一方、自動伴奏進行中(フラグSTFが「1」)であると、上記ステップSG1の判断結果が「YES」となり、ステップSG4に進み、オンフラグONFが「1」であるか否かを判断する。ここで、パッド面を押下してパッドスイッチをオン状態に維持するパッド長押し操作がパッド16に加えられたとする。そうすると、上述したパッドスイッチ処理(図8参照)によりパッド長押し操作されている間、オンフラグONFは「1」を維持するので、判断結果は「YES」になり、ステップSG5に進む。
<When automatic accompaniment is in progress>
On the other hand, if automatic accompaniment is in progress (flag STF is “1”), the determination result in step SG1 is “YES”, the process proceeds to step SG4, and it is determined whether or not the ON flag ONF is “1”. Here, it is assumed that a pad long pressing operation for pressing the pad surface and maintaining the pad switch in the ON state is applied to the pad 16. Then, since the ON flag ONF is maintained at “1” while the pad long press operation is performed by the pad switch process (see FIG. 8) described above, the determination result is “YES”, and the process proceeds to Step SG5.

ステップSG5では、この対応するパッドに特定音色パートが割当てられているか否かを判断する。ここで特定パートが割当てられていないとすると、判断結果は「NO」となり、ステップSG3に進む。この場合は、自動伴奏停止中と同じように、パッド操作毎にサンプリング音が再生されるようになっている。一方、対応するパッドに特定音色パートが割当てられていると、判断結果は「YES」となり、ステップSG6に進む。 In step SG5, it is determined whether or not a specific timbre part is assigned to the corresponding pad. Here, if the specific part is not assigned, the determination result is “NO”, and the process proceeds to Step SG3. In this case, the sampling sound is reproduced every time the pad is operated, as in the case where the automatic accompaniment is stopped. On the other hand, if the specific timbre part is assigned to the corresponding pad, the determination result is “YES”, and the flow proceeds to step SG6.

ステップSG6では、特定音色パートが割り当てられたMIDIチャンネルがノートオン中であるか否か、すなわち前述したパッドアサインスイッチ処理(図7参照)において選択した特定音色の伴奏音が発音中であるかどうかを判断する。特定音色の伴奏音が発音中でなければ、判断結果は「NO」となり、本処理を終えるが、発音中ならば、判断結果は「YES」になり、ステップSGに進み、発音中の伴奏音の音高でサンプリング音を発音するよう音源に指示する。これにより、音源18では、発音中の伴奏音の音高に対応した読み出し速度でRAM12のサンプリング波形データエリアSWDEからサンプリング波形データを読み出してサンプリング音出力を発生する。なお、特定音色パートが「ドラム」などの音高を持たない伴奏音の場合には、サンプリング時の原ピッチのままでサンプリング波形データを再生する。 In step SG6, whether or not the MIDI channel to which the specific tone part is assigned is being turned on, that is, whether or not the accompaniment tone of the specific tone selected in the above-described pad assignment switch process (see FIG. 7) is being generated. Judging. If not sounding accompaniment sound of a specific tone color, the judgment result is "NO", but the process is ended, if sounding, the judgment result is "YES", the flow proceeds to step SG 7, accompaniment sounding Instructs the sound source to produce a sampling sound at the pitch of the sound. As a result, the sound source 18 reads sampling waveform data from the sampling waveform data area SWDE of the RAM 12 at a reading speed corresponding to the pitch of the accompaniment sound that is being generated, and generates a sampling sound output. When the specific tone color part is an accompaniment sound such as “drum”, the sampling waveform data is reproduced with the original pitch at the time of sampling.

このように、第1実施形態では、パッド16に自動伴奏される各種音色パートの中から特定音色パートを予め選択しておいた状態で、自動伴奏進行中にこのパッド16が長押し操作されると、選択された特定音色パートの伴奏音の発音に合わせて、その発音音高でサンプリング音を再生する。例えば、ユーザが発した掛け声『ハイハイ』をサンプリング波形データとしてRAM12のサンプリング波形データエリアSWDEに記憶した場合には、自動伴奏進行中にパッド長押し操作すると、特定音色パートの発音に合わせてユーザの掛け声『ハイハイ』がサンプリング音として再生されるので、自動伴奏される各種音色の伴奏音の内、予め指定した特定の音色の伴奏音に同期してサンプリング音を再生させるリズム演奏を具現することが出来る。また、こうすることで楽器演奏に不慣れなユーザであっても気軽にリズム演奏を楽しめるようになる、という効果も奏する。   As described above, in the first embodiment, the pad 16 is operated for a long time during the automatic accompaniment in a state where the specific timbre part is selected from the various timbre parts automatically accompaniment to the pad 16. In response to the sound of the accompaniment sound of the selected specific timbre part, the sampled sound is reproduced at the sound pitch. For example, when the shout “high / high” uttered by the user is stored in the sampling waveform data area SWDE of the RAM 12 as sampling waveform data, if the pad is pressed for a while during automatic accompaniment, the user's sound is played in accordance with the sound of the specific tone part. Since the shout “Hi-Hi” is played back as a sampled sound, it is possible to embody a rhythm performance that plays back the sampled sound in synchronization with the accompaniment sound of a specific tone that is specified in advance, among the accompaniment sounds of various tones that are automatically accompanied I can do it. This also has the effect that even users who are unfamiliar with musical instrument performance can easily enjoy rhythm performance.

また、第1実施形態においては、選択された特定音色パートの伴奏音の発音に合わせて、その発音音高でサンプリング音を再生させるためには自動伴奏進行中にパッド16が長押し操作する必要があるが、本願発明はこれに限るものではない。例えば、パッド16とは別の設定スイッチ等の操作により行われるように構成してもよい。   In the first embodiment, the pad 16 needs to be pressed for a long time during the automatic accompaniment in order to reproduce the sampled sound at the sounding pitch according to the sounding of the accompaniment sound of the selected specific timbre part. However, the present invention is not limited to this. For example, you may comprise so that it may be performed by operation of a setting switch etc. different from the pad 16. FIG.

[第2実施形態]
次に、図10〜図11を参照して第2実施形態について説明する。第2実施形態の構成が上述の第1実施形態と相違する点は、パッド16のパッド面に圧力センサ(例えば圧電素子)を設けてパッド長押し操作時の操作圧力を検出し、検出した操作圧力を表すパッドデータPDを発生することにある。以下、こうした構成による第2実施形態の動作として、第1実施形態と相違するパッドアサインスイッチ処理およびパッド処理の各動作を説明する。
[Second Embodiment]
Next, a second embodiment will be described with reference to FIGS. The configuration of the second embodiment is different from that of the first embodiment described above in that a pressure sensor (for example, a piezoelectric element) is provided on the pad surface of the pad 16 to detect the operation pressure when the pad is pressed and detected. The pad data PD representing the pressure is generated. Hereinafter, as operations of the second embodiment having such a configuration, operations of pad assignment switch processing and pad processing different from those of the first embodiment will be described.

(1)パッドアサインスイッチ処理の動作
図10は、第2実施形態によるパッドアサインスイッチ処理の動作を示すフローチャートである。上述した第1実施形態と同様、スイッチ処理のステップSB3(図4参照)を介して本処理が実行されると、CPU10は図10に図示するステップSH1に処理を進め、パッドアサインスイッチの操作の有無を判断する。パッドアサインスイッチが操作されなければ、判断結果は「NO」となり、本処理を終えるが、操作された場合には、判断結果が「YES」になり、ステップSH2に進む。
(1) Operation of Pad Assign Switch Process FIG. 10 is a flowchart showing the operation of the pad assign switch process according to the second embodiment. As in the first embodiment described above, when this process is executed via the switch process step SB3 (see FIG. 4), the CPU 10 advances the process to step SH1 shown in FIG. Judgment is made. If the pad assign switch is not operated, the determination result is “NO”, and the present process is finished. However, if it is operated, the determination result is “YES”, and the process proceeds to step SH2.

ステップSH2では、レジスタACPNの値(伴奏パターン番号)で指定される伴奏パターンを構成する音色パートをROM11から読み出して表示部13に一覧表示する。続いて、ステップSH3では、一覧表示された音色パートの中からパッドデータPDが所定値未満の場合にパッド16にアサインする第1の音色パートを選択する。次いで、ステップSH4では、一覧表示された音色パートの中からパッドデータPDが所定値以上の場合にパッド16にアサインする第2の音色パートを選択して本処理を終える。 In step SH2, timbre parts constituting the accompaniment pattern specified by the value of the register ACPN (accompaniment pattern number) are read from the ROM 11 and displayed in a list on the display unit 13. Subsequently, in step SH3, the first timbre part to be assigned to the pad 16 is selected from the list-displayed timbre parts when the pad data PD is less than a predetermined value. Next, in step SH4, the second timbre part to be assigned to the pad 16 is selected from the list-displayed timbre parts when the pad data PD is equal to or greater than a predetermined value, and this processing is completed.

(2)パッド処理の動作
図11は、第2実施形態によるパッド処理の動作を示すフローチャートである。上述した第1実施形態と同様、メインルーチンのステップSA8(図3参照)を介してパッド処理が実行されると、CPU10は図11に図示するステップSJ1に進み、フラグSTFが「1」であるか否か、すなわち自動伴奏進行中であるかどうかを判断する。以下、自動伴奏停止中の場合と、自動伴奏進行中の場合とに分けて動作説明を進める。
(2) Pad Processing Operation FIG. 11 is a flowchart showing the pad processing operation according to the second embodiment. As in the first embodiment described above, when pad processing is executed via step SA8 (see FIG. 3) of the main routine, the CPU 10 proceeds to step SJ1 shown in FIG. 11, and the flag STF is “1”. Whether or not automatic accompaniment is in progress. Hereinafter, the explanation of the operation will be divided into a case where the automatic accompaniment is stopped and a case where the automatic accompaniment is in progress.

<自動伴奏停止中の場合>
自動伴奏停止中(フラグSTFが「0」)ならば、上記ステップSJ1の判断結果は「NO」になり、ステップSJ2に進む。ステップSJ2では、オンフラグONFが「1」であるか否かを判断する。パッド操作に応じてパッド16がONイベントを発生した場合には、判断結果が「YES」になり、ステップSJ3に進み、サンプリング音の発音を音源18に指示する。これにより、音源18では、RAM12のサンプリング波形データエリアSWDEからサンプリング波形データを読み出してサンプリング音を再生する。このように、自動伴奏停止中では、打楽器演奏のようにパッド面を叩くパッド操作をパッド16に加えると、パッド操作毎にサンプリング音が再生されるようになっている。
<When automatic accompaniment is stopped>
If the automatic accompaniment is stopped (the flag STF is “0”), the determination result in step SJ1 is “NO”, and the process proceeds to step SJ2. In step SJ2, it is determined whether or not the ON flag ONF is “1”. If the pad 16 generates an ON event in response to the pad operation, the determination result is “YES”, and the process proceeds to step SJ3 to instruct the sound source 18 to generate a sampling sound. As a result, the sound source 18 reads the sampling waveform data from the sampling waveform data area SWDE of the RAM 12 and reproduces the sampling sound. As described above, when the automatic accompaniment is stopped, if a pad operation for hitting the pad surface is applied to the pad 16 as in percussion instrument performance, the sampling sound is reproduced for each pad operation.

<自動伴奏進行中の場合>
一方、自動伴奏進行中(フラグSTFが「1」)であると、上記ステップSJ1の判断結果が「YES」となり、ステップSJ4に進み、オンフラグONFが「1」であるか否かを判断する。ここで、パッド面を押下してパッドスイッチをオン状態に維持するパッド長押し操作がパッド16に加えられたとする。そうすると、上述したパッドスイッチ処理(図8参照)によりパッド長押し操作されている間、オンフラグONFは「1」を維持するので、判断結果は「YES」になり、ステップSJ5に進む。
<When automatic accompaniment is in progress>
On the other hand, if automatic accompaniment is in progress (flag STF is “1”), the determination result in step SJ1 is “YES”, the process proceeds to step SJ4, and it is determined whether the on flag ONF is “1”. Here, it is assumed that a pad long pressing operation for pressing the pad surface and maintaining the pad switch in the ON state is applied to the pad 16. Then, while the pad long press operation is performed by the pad switch process (see FIG. 8) described above, the ON flag ONF maintains “1”, so the determination result becomes “YES”, and the flow proceeds to step SJ5.

ステップSJ5では、パッド長押し操作に応じて発生するパッドデータPDの値が所定値以上であるか否かを判断する。パッドデータPDの値が所定値未満ならば、判断結果は「NO」になり、ステップSJ6に進む。ステップSJ6では、第1の音色パートが割り当てられたMIDIチャンネルがノートオン中であるか否か、つまり第1の音色パートの伴奏音が発音中であるかどうかを判断する。発音中でなければ、判断結果は「NO」となり、本処理を終えるが、発音中ならば、判断結果は「YES」になり、後述のステップSJ8に進む。 In step SJ5, it is determined whether or not the value of the pad data PD generated in response to the pad long press operation is greater than or equal to a predetermined value. If the value of the pad data PD is less than the predetermined value, the determination result is “NO”, and the flow proceeds to step SJ6. In step SJ6, it is determined whether or not the MIDI channel to which the first timbre part is assigned is being turned on, that is, whether or not the accompaniment sound of the first timbre part is being produced. If the sound is not being generated, the determination result is “NO”, and the present process is terminated. If the sound is being sounded, the determination result is “YES”, and the process proceeds to Step SJ8 described later.

これに対し、パッドデータPDの値が所定値以上であると、上記ステップSJ5の判断結果は「NO」になり、ステップSJ7に進み、第2の音色パートが割り当てられたMIDIチャンネルがノートオン中であるか否か、つまり第2の音色パートの伴奏音が発音中であるかどうかを判断する。発音中でなければ、判断結果は「NO」となり、本処理を終えるが、発音中ならば、判断結果は「YES」になり、ステップSJ8に進む。ステップSJ8では、発音中の伴奏音の音高でサンプリング音を発音するよう音源に指示する。 On the other hand, if the value of the pad data PD is equal to or larger than the predetermined value, the determination result in step SJ5 is “NO”, and the process proceeds to step SJ7, and the MIDI channel to which the second timbre part is assigned is in the note-on state. Whether or not the accompaniment sound of the second timbre part is sounding. If the sound is not being generated, the determination result is “NO”, and the present process ends. If the sound is being sounded, the determination result is “YES”, and the process proceeds to step SJ8. In step SJ8, the sound source is instructed to generate a sampling sound at the pitch of the accompaniment sound that is being generated.

これにより、音源18では、発音中の伴奏音の音高に対応した読み出し速度でRAM12のサンプリング波形データエリアSWDEからサンプリング波形データを読み出してサンプリング音を再生する。なお、第1の音色パートまたは第2の音色パートが「ドラム」などの音高を持たない伴奏音の場合には、サンプリング時の原ピッチのままでサンプリング波形データを再生する。 As a result, the sound source 18 reads the sampling waveform data from the sampling waveform data area SWDE of the RAM 12 at a reading speed corresponding to the pitch of the accompaniment sound being sounded, and reproduces the sampling sound. When the first timbre part or the second timbre part is an accompaniment sound such as “drum”, the sampling waveform data is reproduced with the original pitch at the time of sampling.

以上のように、第2実施形態では、自動伴奏される各種音色パートの内、パッド長押し操作時の操作圧力を表すパッドデータPDが所定値未満の場合には第1の音色パートを、パッドデータPDが所定値以上の場合には第2の音色パートを割り当てておき、自動伴奏進行中にパッド16が長押し操作されると、その長押し操作で発生するパッドデータPDが所定値未満であれば、第1の音色パートの発音に合わせて、その発音音高でサンプリング音を再生し、一方、パッドデータPDが所定値以上ならば、第2の音色パートの発音に合わせて、その発音音高でサンプリング音を再生するので、自動伴奏される各種音色の伴奏音の内、ある特定の音色の伴奏音に同期してサンプリング音を再生させるリズム演奏を具現することが出来る。また、パッド長押しする際の押下具合に応じた音色の伴奏音に同期させてサンプリング音を再生することが出来る為、楽器演奏に不慣れなユーザであっても気軽にリズム演奏を楽しめるようになる、という効果も奏する。   As described above, in the second embodiment, among the various timbre parts that are automatically accompanied, when the pad data PD representing the operation pressure at the time of the pad long press operation is less than the predetermined value, the first timbre part is displayed as the pad. If the data PD is greater than or equal to a predetermined value, a second timbre part is assigned, and if the pad 16 is pressed for a long time during automatic accompaniment, the pad data PD generated by the long press operation is less than the predetermined value. If there is, the sampled sound is reproduced with the sound pitch of the first timbre part, and if the pad data PD is greater than or equal to a predetermined value, the sound is sounded with the sound of the second timbre part. Since the sampled sound is reproduced at the pitch, it is possible to realize a rhythm performance in which the sampled sound is reproduced in synchronization with an accompaniment sound of a specific tone color among accompaniment sounds of various timbres automatically accompanied. In addition, since the sampled sound can be reproduced in synchronization with the timbre accompaniment sound according to the degree of pressing when the pad is held down, even a user unfamiliar with musical instrument performance can easily enjoy the rhythm performance. Also has the effect of.

本発明による第1実施形態の構成を示すブロック図である。It is a block diagram which shows the structure of 1st Embodiment by this invention. RAM12の記憶エリアの構成を示すメモリマップである。3 is a memory map showing a configuration of a storage area of a RAM 12; 第1実施形態のメインルーチンの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the main routine of 1st Embodiment. 第1実施形態のスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the switch process of 1st Embodiment. 第1実施形態の伴奏パターン選択スイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the accompaniment pattern selection switch process of 1st Embodiment. 第1実施形態のスタート/ストップスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the start / stop switch process of 1st Embodiment. 第1実施形態のパッドアサインスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the pad assignment switch process of 1st Embodiment. 第1実施形態のパッドスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the pad switch process of 1st Embodiment. 第1実施形態のパッド処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the pad process of 1st Embodiment. 第2実施形態のパッドアサインスイッチ処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the pad assignment switch process of 2nd Embodiment. 第2実施形態のパッド処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the pad process of 2nd Embodiment.

符号の説明Explanation of symbols

10 CPU
11 ROM
12 RAM
13 表示部
14 操作部
15 サンプリング入力部
16 パッド
17 鍵盤
18 音源
19 サウンドシステム
100 楽音発生装置
10 CPU
11 ROM
12 RAM
DESCRIPTION OF SYMBOLS 13 Display part 14 Operation part 15 Sampling input part 16 Pad 17 Keyboard 18 Sound source 19 Sound system 100 Musical sound generator

Claims (5)

入力音声をサンプリングして得たサンプリング波形データを記憶する記憶手段と、
伴奏パターンを指定する指定手段と、
前記指定手段により指定された伴奏パターンを構成する各種音色パートの中から特定音色パートを選択する選択手段と、
前記指定手段により指定された伴奏パターンに従って各種音色パートの伴奏音を発音させて自動伴奏する自動伴奏手段と、
サンプリング音の発音を指示する発音指示手段と、
前記自動伴奏手段による自動伴奏が進行していない時に、前記発音指示手段による発音の指示に応答して前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第1の再生手段と、
前記自動伴奏手段が自動伴奏を進行させている時に、サンプリング音の発音指示状態が継続的に維持された場合、前記選択手段により選択された特定音色パートの伴奏音の発音タイミングで前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第2の再生手段と
を具備することを特徴とする楽音発生装置。
Storage means for storing sampling waveform data obtained by sampling input speech;
A designation means for designating an accompaniment pattern;
Selecting means for selecting a specific timbre part from various timbre parts constituting the accompaniment pattern specified by the specifying means;
And automatic accompaniment means for automatic accompaniment by pronunciation accompaniment various tone color part according accompaniment pattern specified by the specifying means,
Pronunciation instruction means for instructing the pronunciation of the sampling sound;
First reproducing means for reading out sampling waveform data stored in the storage means in response to a sounding instruction by the sounding instruction means and reproducing a sampling sound when automatic accompaniment by the automatic accompaniment means is not progressing ; ,
When the automatic accompaniment means advances the automatic accompaniment and the sound generation instruction state of the sampling sound is continuously maintained , the storage means stores the sound generation timing of the accompaniment sound of the specific timbre part selected by the selection means. And a second reproduction means for reproducing the sampling sound by reading the stored sampling waveform data.
前記第2の再生手段は、前記選択手段により選択された特定音色パートの伴奏音の発音音高に応じた読み出し速度で前記記憶手段からサンプリング波形データを読み出す読み出し手段を具備することを特徴とする請求項1記載の楽音発生装置。   The second reproducing means comprises reading means for reading sampling waveform data from the storage means at a reading speed corresponding to the tone pitch of the accompaniment sound of the specific timbre part selected by the selecting means. The musical tone generator according to claim 1. 入力音声をサンプリングして得たサンプリング波形データを記憶する記憶手段と、
伴奏パターンを指定する指定手段と、
押下操作に応じてサンプリング音の発音を指示する発音指示手段と、
前記発音指示手段がサンプリング音の発音指示状態を継続的に維持した場合の押下操作圧を検出する操作圧検出手段と、
前記指定手段により指定された伴奏パターンを構成する各種音色パートの内、前記操作圧検出手段によって検出される押下操作圧が所定レベル未満および所定レベル以上の各場合にそれぞれ割り当てる第1および第2の音色パートを選択する選択手段と、
前記指定手段により指定された伴奏パターンに従って各種音色パートの伴奏音を発音させて自動伴奏する自動伴奏手段と、
前記自動伴奏手段による自動伴奏が進行していない時に、前記発音指示手段による発音の指示に応答して前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第1の再生手段と、
前記自動伴奏手段が自動伴奏を進行させている時に、サンプリング音の発音指示状態が継続的に維持され、かつ前記操作圧検出手段によって検出される操作圧が所定レベル未満の場合には前記選択手段により選択された第1の音色パートの伴奏音の発音タイミングで前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生し、一方、前記操作圧検出手段によって検出される操作圧が所定レベル以上の場合には前記選択手段により選択された第2の音色パートの伴奏音の発音タイミングで前記記憶手段に記憶されるサンプリング波形データを読み出してサンプリング音を再生する第2の再生手段と
を具備することを特徴とする楽音発生装置。
Storage means for storing sampling waveform data obtained by sampling input speech;
A designation means for designating an accompaniment pattern;
Pronunciation instruction means for instructing the pronunciation of the sampling sound in response to the pressing operation;
An operation pressure detecting means for detecting a pressing operation pressure when the sound generation instruction means continuously maintains the sound generation instruction state of the sampling sound;
Of the various timbre parts constituting the accompaniment pattern designated by the designation means, first and second assigned respectively when the pressing operation pressure detected by the operation pressure detection means is less than a predetermined level and above a predetermined level. A selection means for selecting a timbre part;
Automatic accompaniment means for automatically generating accompaniment sounds of various timbre parts according to the accompaniment pattern designated by the designation means;
First reproducing means for reading out sampling waveform data stored in the storage means in response to a sounding instruction by the sounding instruction means and reproducing a sampling sound when automatic accompaniment by the automatic accompaniment means is not progressing ; ,
When the automatic accompaniment means advances automatic accompaniment, when the sound generation instruction state of the sampling sound is continuously maintained and the operation pressure detected by the operation pressure detection means is less than a predetermined level, the selection means The sampling waveform data stored in the storage means is read out at the sounding timing of the accompaniment sound of the first timbre part selected by the above, and the sampling sound is reproduced, while the operation pressure detected by the operation pressure detection means is predetermined. A second reproduction means for reproducing the sampling sound by reading the sampling waveform data stored in the storage means at the sounding timing of the accompaniment sound of the second timbre part selected by the selection means when the level is higher than the level; A musical sound generator characterized by comprising.
前記第2の再生手段は、サンプリング音の発音指示状態が継続的に維持され、かつ前記操作圧検出手段によって検出される操作圧が所定レベル未満の場合には前記選択手段により選択された第1の音色パートの伴奏音の発音音高に応じた読み出し速度で前記記憶手段からサンプリング波形データを読み出す第1の読み出し手段と、
前記サンプリング音の発音指示状態が継続的に維持され、かつ前記操作圧検出手段によって検出される操作圧が所定レベル以上の場合には前記選択手段により選択された第2の音色パートの伴奏音の発音音高に応じた読み出し速度で前記記憶手段からサンプリング波形データを読み出す第2の読み出し手段と
を具備することを特徴とする請求項3記載の楽音発生装置。
The second reproducing means is selected by the selecting means when the sound generation instruction state of the sampling sound is continuously maintained and the operating pressure detected by the operating pressure detecting means is less than a predetermined level. First reading means for reading sampling waveform data from the storage means at a reading speed corresponding to the tone pitch of the accompaniment sound of the timbre part;
When the sound generation instruction state of the sampling sound is continuously maintained and the operation pressure detected by the operation pressure detection means is equal to or higher than a predetermined level, the accompaniment sound of the second timbre part selected by the selection means 4. The musical tone generator according to claim 3, further comprising: a second reading unit that reads sampling waveform data from the storage unit at a reading speed corresponding to the sound production pitch.
入力音声をサンプリングして得たサンプリング波形データを記憶する記憶処理と、
伴奏パターンを指定する指定処理と、
前記指定処理により指定された伴奏パターンを構成する各種音色パートの中から特定音色パートを選択する選択処理と、
前記指定処理により指定された伴奏パターンに従って各種音色パートの伴奏音を発音させて自動伴奏する自動伴奏処理と、
サンプリング音の発音を指示する発音指示処理と、
前記自動伴奏処理による自動伴奏が進行していない時に、前記発音指示処理による発音の指示に応答して前記記憶処理で記憶されたサンプリング波形データを読み出してサンプリング音を再生する第1の再生処理と、
前記自動伴奏処理が自動伴奏を進行させている時に、サンプリング音の発音指示状態が継続的に維持された場合、前記選択処理により選択された特定音色パートの伴奏音の発音タイミングで前記記憶処理で記憶されたサンプリング波形データを読み出してサンプリング音を再生する第2の再生処理と
をコンピュータで実行させることを特徴とする楽音発生プログラム。
A storage process for storing sampling waveform data obtained by sampling the input voice;
A specification process for specifying an accompaniment pattern;
A selection process for selecting a specific timbre part from various timbre parts constituting the accompaniment pattern specified by the specification process;
Automatic accompaniment processing for automatically accompaniment by generating accompaniment sounds of various timbre parts according to the accompaniment pattern specified by the specification processing;
Pronunciation instruction processing for instructing the pronunciation of the sampling sound;
A first playback process for reading the sampling waveform data stored in the storage process and playing back the sampled sound in response to a sounding instruction by the sounding instruction process when automatic accompaniment by the automatic accompaniment process is not progressing ; ,
When the automatic accompaniment process advances the automatic accompaniment and the sound generation instruction state of the sampling sound is continuously maintained , the storage process is performed at the sound generation timing of the accompaniment sound of the specific tone color part selected by the selection process. A program for generating a musical sound, comprising: causing a computer to execute a second reproduction process of reading stored sampling waveform data and reproducing a sampled sound.
JP2008298927A 2008-11-25 2008-11-25 Musical sound generating device and musical sound generating program Active JP5257842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008298927A JP5257842B2 (en) 2008-11-25 2008-11-25 Musical sound generating device and musical sound generating program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008298927A JP5257842B2 (en) 2008-11-25 2008-11-25 Musical sound generating device and musical sound generating program

Publications (2)

Publication Number Publication Date
JP2010127948A JP2010127948A (en) 2010-06-10
JP5257842B2 true JP5257842B2 (en) 2013-08-07

Family

ID=42328423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008298927A Active JP5257842B2 (en) 2008-11-25 2008-11-25 Musical sound generating device and musical sound generating program

Country Status (1)

Country Link
JP (1) JP5257842B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2586446B2 (en) * 1985-12-13 1997-02-26 カシオ計算機株式会社 Tone generator
JPH0437798A (en) * 1990-06-01 1992-02-07 Matsushita Electric Ind Co Ltd Electronic musical instrument
JP2699652B2 (en) * 1990-11-30 1998-01-19 ヤマハ株式会社 Music signal generator
JP3620467B2 (en) * 2001-05-18 2005-02-16 ヤマハ株式会社 Communication terminal
JP4211650B2 (en) * 2004-03-25 2009-01-21 カシオ計算機株式会社 Accompaniment pattern generation apparatus and accompaniment pattern generation program
JP5458494B2 (en) * 2008-01-28 2014-04-02 カシオ計算機株式会社 Electronic musical instruments
JP5151603B2 (en) * 2008-03-26 2013-02-27 カシオ計算機株式会社 Electronic musical instruments

Also Published As

Publication number Publication date
JP2010127948A (en) 2010-06-10

Similar Documents

Publication Publication Date Title
JP4321476B2 (en) Electronic musical instruments
JP4752425B2 (en) Ensemble system
JP5610235B2 (en) Recording / playback apparatus and program
JP4333592B2 (en) Electronic hi-hat cymbal
JP4650182B2 (en) Automatic accompaniment apparatus and program
JP2010139592A (en) Musical tone generating apparatus and musical tone generating program
JP3684774B2 (en) Performance instruction device and medium recording program
JP5257842B2 (en) Musical sound generating device and musical sound generating program
JP3613935B2 (en) Performance practice device and medium recording program
JP2007086571A (en) Music information display device and program
JP4506147B2 (en) Performance playback device and performance playback control program
JP6528752B2 (en) Tone reproduction apparatus, tone reproduction method, program and electronic musical instrument
JP4534926B2 (en) Image display apparatus and program
JP6790362B2 (en) Electronic acoustic device
JP3887957B2 (en) Karaoke equipment
JP3743993B2 (en) Code determination apparatus, code determination method, and medium recording code determination method
JP4624879B2 (en) Musical sound information generation program and musical sound information generator
JP5949859B2 (en) Electronic musical instruments and programs
JP6402477B2 (en) Sampling apparatus, electronic musical instrument, method, and program
JP4345433B2 (en) Performance device and performance processing program
JP2009198657A (en) Musical performance training apparatus and musical performance training program
JP5648836B2 (en) Musical sound control device and program
JP3543159B2 (en) Automatic accompaniment device
JP5034471B2 (en) Music signal generator and karaoke device
JP2000194370A (en) Automatic accompaniment 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: 20121226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130218

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

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160502

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5257842

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130414