JP2002032083A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP2002032083A
JP2002032083A JP2000216464A JP2000216464A JP2002032083A JP 2002032083 A JP2002032083 A JP 2002032083A JP 2000216464 A JP2000216464 A JP 2000216464A JP 2000216464 A JP2000216464 A JP 2000216464A JP 2002032083 A JP2002032083 A JP 2002032083A
Authority
JP
Japan
Prior art keywords
key
time
release
musical instrument
electronic musical
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
JP2000216464A
Other languages
Japanese (ja)
Inventor
Kazunori Matsuda
寿徳 松田
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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing 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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2000216464A priority Critical patent/JP2002032083A/en
Publication of JP2002032083A publication Critical patent/JP2002032083A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an inexpensive electronic musical instrument which can be played music with staccatos. SOLUTION: This electronic musical instrument is equipped with a measuring means which measures the time from key depression to key release, a staccato playing detecting means which detects staccato playing when the measured time is shorter than a specific value, and a muting means which mutes a sound being generated in a specific time in response to the key release when the staccato playing detecting means does not detect staccato laying and mutes the sound being generated in a time shorter than the specific time in response to the key release when the staccato playing is detected.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は電子楽器に関し、特
にスタッカート演奏を可能にするための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument, and more particularly to a technique for enabling staccato performance.

【0002】[0002]

【従来の技術】従来、鍵操作に応じて音を発生する電子
楽器が知られている。この電子楽器は、押鍵に応答して
音を発生し、離鍵に応答して発生中の音を消すように構
成されている。近年は、より自然楽器に近い音を発生す
るために、押鍵の強さ(速さ)をイニシャルタッチ検出
回路で検出し、検出された押鍵の強さに応じて音色を変
化させることも行われている。
2. Description of the Related Art Conventionally, there is known an electronic musical instrument that generates a sound in response to a key operation. This electronic musical instrument is configured to generate a sound in response to a key press and to cancel a sound being generated in response to a key release. In recent years, in order to generate a sound closer to a natural musical instrument, the intensity (speed) of key presses is detected by an initial touch detection circuit, and the timbre can be changed according to the detected key press intensity. Is being done.

【0003】しかしながら、このような従来の電子楽器
では、離鍵されてから実際に消音されるまでの時間は一
定である。従って、スタッカート奏法で鍵を操作しても
離鍵後に余韻が残ってしまい、歯切れが悪いのでスタッ
カート演奏にならないという問題があった。
However, in such a conventional electronic musical instrument, the time from when the key is released until the sound is actually muted is constant. Therefore, even if a key is operated by the staccato playing method, a lingering sound remains after the key is released, and there is a problem that the staccato performance is not performed because the crispness is poor.

【0004】このような問題を解消するために、近年
は、スタッカート演奏を可能にした電子楽器が開発され
ている。例えば、特公昭63−34473号公報に開示
された電子楽器は、キーの離鍵時の動作スピードを検出
し、検出結果に応じて楽音信号のリリース時間を制御す
ることによりスタッカート演奏を可能にしている。
In order to solve such a problem, an electronic musical instrument capable of performing staccato performance has been developed in recent years. For example, an electronic musical instrument disclosed in Japanese Patent Publication No. 63-34473 detects a key release operation speed, and controls a release time of a tone signal in accordance with the detection result to enable staccato performance. I have.

【0005】また、特許第2580795号に開示され
た電子楽器は、鍵情報発生手段が離鍵時のタッチ情報を
含む楽音情報を出力すると、この楽音情報に応じて発生
された楽音信号を、フィルタエンベロープに基づいて特
性が制御されたフィルタ手段でフィルタリングする。こ
の際、エンベロープ制御手段は、フィルタエンベロープ
の時間的な変化速度を離鍵時のタッチ情報が大きいほど
速くなるように制御する。これにより、離鍵速度が大き
くなるに連れて消音までの時間が短くなるので、スタッ
カート演奏が可能になる。
In the electronic musical instrument disclosed in Japanese Patent No. 2580795, when the key information generating means outputs musical information including touch information at the time of key release, the musical signal generated according to the musical information is filtered. Filtering is performed by filter means whose characteristics are controlled based on the envelope. At this time, the envelope control means controls the temporal change speed of the filter envelope to be faster as the touch information at the time of key release is larger. Thus, as the key release speed increases, the time until silencing becomes shorter, so that staccato performance becomes possible.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た従来の電子楽器は、離鍵速度を検出するリリースタッ
チ検出回路を備えており、このリリースタッチ検出回路
で検出された離鍵速度に応じて消音時間を変化させるこ
とによりスタッカート演奏を可能にしている。従って、
リリースタッチ検出回路を各鍵に備える必要があるの
で、電子楽器が高価になってしまうという問題がある。
However, the above-mentioned conventional electronic musical instrument has a release touch detection circuit for detecting a key release speed, and silences according to the key release speed detected by the release touch detection circuit. The staccato performance is made possible by changing the time. Therefore,
Since it is necessary to provide a release touch detection circuit for each key, there is a problem that the electronic musical instrument becomes expensive.

【0007】本発明は、上記問題を解消するためになさ
れたものであり、スタッカート演奏を行うことができる
廉価な電子楽器を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to provide an inexpensive electronic musical instrument capable of performing staccato performances.

【0008】[0008]

【課題を解決するための手段】本発明に係る電子楽器
は、上記目的を達成するために、押鍵から離鍵までの時
間を計測する計測手段と、該計測手段で計測された時間
が所定値以下であればスタッカート演奏であることを検
出するスタッカート演奏検出手段と、該スタッカート演
奏検出手段によりスタッカート演奏であることが検出さ
れなかった場合に、離鍵に応答して発生中の音を所定時
間で消し、スタッカート演奏であることが検出された場
合に、離鍵に応答して発生中の音を前記所定時間より短
い時間で消す消音手段、とを備えている。
In order to achieve the above object, an electronic musical instrument according to the present invention has a measuring means for measuring a time from a key depression to a key release, and a predetermined time measured by the measuring means. A staccato performance detection means for detecting staccato performance if the value is equal to or less than a predetermined value; Mute means for silencing in time and, when it is detected that a staccato performance is detected, muting a sound being generated in response to a key release in a time shorter than the predetermined time.

【0009】この電子楽器では、前記計測手段は、押鍵
を検出する押鍵検出手段と、離鍵を検出する離鍵検出手
段、とを備え、前記押鍵検出手段で押鍵が検出された時
に時間の計測を開始し、前記離鍵検出手段で離鍵が検出
された時に前記時間の計測を停止するように構成でき
る。
In this electronic musical instrument, the measuring means includes a key depression detecting means for detecting a key depression, and a key release detection means for detecting a key release, and the key depression detection means detects the key depression. The time measurement may be started at a certain time, and the time measurement may be stopped when the key release detecting means detects a key release.

【0010】また、この電子楽器では、前記計測手段で
計測された時間を順次記憶する記憶手段を更に備え、前
記スタッカート演奏検出手段は、該記憶手段に記憶され
た複数の時間の平均値が所定値以下であればスタッカー
ト演奏であることを検出するように構成できる。
The electronic musical instrument may further include storage means for sequentially storing the time measured by the measurement means, and the staccato performance detection means may determine that an average value of the plurality of times stored in the storage means is a predetermined value. If the value is equal to or less than the value, the staccato performance can be detected.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照しながら詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0012】図1は、本発明に係る電子楽器の概略的な
構成を示すブロック図である。この電子楽器は、中央処
理装置(以下、「CPU」という)10、プログラムメ
モリ13、ワークメモリ14、鍵盤スキャン回路15及
び音源17が、システムバス30で相互に接続されて構
成されている。システムバス30は、例えばアドレスバ
ス、データバス及び制御信号バス等から構成されてお
り、上記各構成要素間でデータを転送するために使用さ
れる。
FIG. 1 is a block diagram showing a schematic configuration of an electronic musical instrument according to the present invention. The electronic musical instrument includes a central processing unit (hereinafter, referred to as a “CPU”) 10, a program memory 13, a work memory 14, a keyboard scan circuit 15, and a sound source 17 which are interconnected by a system bus 30. The system bus 30 includes, for example, an address bus, a data bus, a control signal bus, and the like, and is used to transfer data between the above-described components.

【0013】CPU10には操作パネル11及び外部イ
ンタフェース(I/F)12が接続されている。また、
鍵盤スキャン回路15には鍵盤装置16が接続されてい
る。更に、音源17には波形メモリ18及び増幅器19
が接続され、増幅器19にはスピーカ20が接続されて
いる。
An operation panel 11 and an external interface (I / F) 12 are connected to the CPU 10. Also,
A keyboard device 16 is connected to the keyboard scanning circuit 15. Further, the sound source 17 includes a waveform memory 18 and an amplifier 19.
Are connected, and a speaker 20 is connected to the amplifier 19.

【0014】CPU10は、プログラムメモリ13に格
納されている制御プログラムに従って電子楽器の全体を
制御する。このCPU10は、タイマ10aを含んでい
る。このタイマ10aは、タイマスタート指令に応答し
て一定周期で割込信号を発生し、タイマストップ指令に
応答して割込信号の発生を停止する。このタイマ10a
は、本発明の計測手段に対応し、後述する鍵盤処理にお
いて、押鍵から離鍵までの時間を計測するために使用さ
れる。このCPU10で行われる処理の詳細は後にフロ
ーチャートを参照しながら詳細に説明する。
The CPU 10 controls the entire electronic musical instrument according to a control program stored in the program memory 13. This CPU 10 includes a timer 10a. The timer 10a generates an interrupt signal at a constant cycle in response to a timer start command, and stops generating an interrupt signal in response to a timer stop command. This timer 10a
Corresponds to the measuring means of the present invention, and is used to measure the time from key depression to key release in keyboard processing described later. Details of the processing performed by the CPU 10 will be described later in detail with reference to flowcharts.

【0015】このCPU10に接続された操作パネル1
1は、何れも図示を省略するが、音色選択スイッチ、リ
ズム選択スイッチ、テンポ設定スイッチ、音量制御スイ
ッチ、音響効果選択スイッチといったスイッチ、各スイ
ッチのオン又はオフ状態を示すLED、メッセージを表
示するための表示器等が含まれている。
The operation panel 1 connected to the CPU 10
Although not shown, 1 is a switch such as a tone selection switch, a rhythm selection switch, a tempo setting switch, a volume control switch, a sound effect selection switch, an LED indicating an ON or OFF state of each switch, and a message. And the like.

【0016】また、CPU10に接続された外部インタ
フェース(I/F)12は、例えばMIDIインタフェ
ースから構成され、この電子楽器の内部で発生した楽音
データを外部に送信し、また、外部から送られてくる楽
音データを受信するために使用される。
An external interface (I / F) 12 connected to the CPU 10 is composed of, for example, a MIDI interface, and transmits musical tone data generated inside the electronic musical instrument to the outside, and is transmitted from the outside. Used to receive incoming music data.

【0017】プログラムメモリ13は、リードオンリメ
モリ(ROM)から構成されている。このプログラムメ
モリ13は、上述した制御プログラムの他に、音色パラ
メータ、自動演奏データ等を格納する。
The program memory 13 comprises a read only memory (ROM). The program memory 13 stores tone color parameters, automatic performance data, and the like, in addition to the above-described control programs.

【0018】音色パラメータは、複数の音色及び音域の
各々に対応して用意されており、種々の音色の楽音を発
生させるために使用される。各音色パラメータは、波形
アドレス、周波数データ、フィルタ係数、エンベロープ
データ等から構成されている。波形アドレスは、音色選
択スイッチで選択された音色の音を発生させるための波
形データが格納されている波形メモリ18のアドレスで
ある。周波数データは、押された鍵の音高を指定するた
めに使用され、波形メモリ18から波形データを読み出
す速度を規定する。フィルタ係数は、音源17に内蔵さ
れるフィルタの特性を決定するために使用される。
The tone color parameters are prepared for each of a plurality of tone colors and tone ranges, and are used to generate musical tones of various tone colors. Each tone color parameter includes a waveform address, frequency data, a filter coefficient, envelope data, and the like. The waveform address is an address of the waveform memory 18 in which waveform data for generating the tone of the tone selected by the tone selection switch is stored. The frequency data is used to specify the pitch of a pressed key, and defines the speed at which waveform data is read from the waveform memory 18. The filter coefficient is used to determine characteristics of a filter built in the sound source 17.

【0019】エンベロープデータは、波形メモリ18か
ら読み出された波形データに付加するエンベロープの形
状を規定する。このエンベロープデータは、図2に示す
ように、アタック、ディケイ、サスティーン及びリリー
スといった4つのフェーズデータから構成されている。
各フェーズデータは、目標レベル及び該目標レベルに到
達するまでの時間(又は速度)から構成されている。例
えば、ノーマルのリリースのフェーズデータβは、目標
レベルがゼロで到達時間がT1である。これに対し、ス
タッカートのリリースのフェーズデータαは、目標レベ
ルがゼロで到達時間がT2(T2<T1)である。
The envelope data defines the shape of the envelope added to the waveform data read from the waveform memory 18. This envelope data is composed of four phase data such as attack, decay, sustain and release, as shown in FIG.
Each phase data includes a target level and a time (or speed) required to reach the target level. For example, in the phase data β of the normal release, the target level is zero and the arrival time is T1. In contrast, the staccato release phase data α has a target level of zero and an arrival time of T2 (T2 <T1).

【0020】ワークメモリ14は、ランダムアクセスメ
モリ(RAM)から構成され、CPU10が各種処理に
使用する種々のデータを一時的に記憶する。このワーク
メモリ14内には、この電子楽器を制御するためのレジ
スタ、カウンタ、フラグ等が定義される。この実施の形
態で使用されるタイムカウンタ(後述)は、このワーク
メモリ14に設けられている。
The work memory 14 is composed of a random access memory (RAM), and temporarily stores various data used by the CPU 10 for various processes. Registers, counters, flags, and the like for controlling the electronic musical instrument are defined in the work memory 14. The time counter (to be described later) used in this embodiment is provided in the work memory 14.

【0021】鍵盤装置16は、発音及び消音を指示する
ための複数の鍵を有している。この鍵盤装置16には、
例えば2接点方式が採用されており、オン/オフされた
鍵を表すキーデータ及び打鍵の強さ(速さ)を表すイニ
シャルタッチデータを検出する。即ち、鍵盤装置16の
各鍵は、第1の押圧深さでオンになる第1キースイッチ
及びこの第1の押圧深さより深い第2の押圧深さでオン
になる第2キースイッチを備えている(何れも図示しな
い)。この鍵盤装置16は、鍵盤スキャン回路15に接
続されている。
The keyboard device 16 has a plurality of keys for instructing sound generation and mute. This keyboard device 16 includes:
For example, a two-contact method is adopted, and key data representing a key turned on / off and initial touch data representing the strength (speed) of keying are detected. That is, each key of the keyboard device 16 includes a first key switch that is turned on at a first pressing depth and a second key switch that is turned on at a second pressing depth deeper than the first pressing depth. (Neither is shown). The keyboard device 16 is connected to the keyboard scanning circuit 15.

【0022】鍵盤スキャン回路15は、本発明の押鍵検
出手段及び離鍵検出手段に対応し、鍵盤装置16とCP
U10との間のデータの送受を制御する。鍵盤スキャン
回路15は、鍵盤装置16に対してスキャン信号を送出
し、このスキャン信号に応答して鍵盤装置16から返送
される第1及び第2キースイッチのオン/オフ状態を示
すデータを受け取る。そして、受け取ったデータから、
キーデータ及びイニシャルタッチデータを生成する。キ
ーデータは、各鍵に対応したビット列から構成されてい
る。
The keyboard scan circuit 15 corresponds to the key press detection means and the key release detection means of the present invention, and the keyboard device 16 and the CP
Controls transmission and reception of data to and from U10. The keyboard scan circuit 15 sends a scan signal to the keyboard device 16 and receives data indicating the on / off state of the first and second key switches returned from the keyboard device 16 in response to the scan signal. And from the received data,
Generate key data and initial touch data. The key data is composed of a bit string corresponding to each key.

【0023】具体的には、キーデータの生成は以下のよ
うにして行われる。即ち、第2キースイッチがオンにな
った時に、その第2キースイッチが設けられている鍵が
押されたことが検出され、その鍵に対応するビットが
「1」にセットされる。また、第1キースイッチがオフ
になった時に、その第1キースイッチが設けられている
鍵が離されたことが検出され、その鍵に対応するビット
が「0」にクリアされる。
Specifically, the generation of key data is performed as follows. That is, when the second key switch is turned on, it is detected that the key provided with the second key switch is pressed, and the bit corresponding to the key is set to "1". When the first key switch is turned off, it is detected that the key provided with the first key switch has been released, and the bit corresponding to the key is cleared to "0".

【0024】また、イニシャルタッチデータの生成は以
下のようにして行われる。即ち、第1キースイッチがオ
ンにされてから第2キースイッチがオンにされるまでの
時間が計測される。そして、この計測により得られた値
がイニシャルタッチデータとして使用される。このよう
にして生成されたキーデータ及びイニシャルタッチデー
タは、システムバス30を介してCPU10に送られ
る。
The generation of the initial touch data is performed as follows. That is, the time from when the first key switch is turned on to when the second key switch is turned on is measured. Then, the value obtained by this measurement is used as initial touch data. The key data and the initial touch data thus generated are sent to the CPU 10 via the system bus 30.

【0025】音源17は、複数のオシレータを備えてい
る。この音源17には、例えばROMで構成された波形
メモリ18が接続されている。この波形メモリ18に
は、複数の音色の複数の鍵域の各々に対応する複数のパ
ルスコード変調(PCM)された波形データが記憶され
ている。
The sound source 17 has a plurality of oscillators. The sound source 17 is connected to a waveform memory 18 composed of, for example, a ROM. The waveform memory 18 stores a plurality of pulse code modulated (PCM) waveform data corresponding to a plurality of key ranges of a plurality of timbres.

【0026】音源17は、CPU10から受け取った音
色パラメータに基づき波形メモリ18に記憶された波形
データを読み出し、これにエンベロープを付加して楽音
信号を生成する。また、CPU10から受け取ったリリ
ースのフェーズデータに基づき楽音信号の振幅を徐々に
ゼロに近づけ、ゼロになった時に楽音信号の生成を停止
する。この音源17で生成された楽音信号は、増幅器1
9に送られる。
The sound source 17 reads out the waveform data stored in the waveform memory 18 based on the timbre parameters received from the CPU 10, and adds an envelope thereto to generate a tone signal. Further, based on the release phase data received from the CPU 10, the amplitude of the tone signal gradually approaches zero, and when the tone signal reaches zero, generation of the tone signal is stopped. The tone signal generated by the sound source 17 is supplied to the amplifier 1
9

【0027】増幅器19は、入力された楽音信号を増幅
して出力する。この増幅器19からの楽音信号はスピー
カ20に送られる。スピーカ20は、電気信号としての
楽音信号を音響信号に変換する。このスピーカ20によ
り、鍵盤装置16の鍵の押下又はプログラムメモリ13
から読み出された自動演奏データに応じた楽音が発生さ
れる。
The amplifier 19 amplifies and outputs the input tone signal. The tone signal from the amplifier 19 is sent to a speaker 20. The speaker 20 converts a tone signal as an electric signal into an acoustic signal. The speaker 20 is used to depress a key of the keyboard device 16 or the program memory 13.
A tone is generated according to the automatic performance data read from the CPU.

【0028】次に、上記のように構成される本発明の実
施の形態に係る電子楽器の動作を、フローチャートを参
照しながら詳細に説明する。
Next, the operation of the electronic musical instrument according to the embodiment of the present invention configured as described above will be described in detail with reference to flowcharts.

【0029】(1)メイン処理 図3は、この電子楽器のメイン処理を示すフローチャー
トであり、電源が投入されることにより起動される。電
源が投入されると、先ず、初期化処理が行われる(ステ
ップS10)。この初期化処理では、CPU10の内部
状態が初期状態に設定される。また、ワークメモリ14
に定義されているレジスタ、カウンタ或いはフラグ等に
初期値が設定される。
(1) Main Processing FIG. 3 is a flowchart showing the main processing of the electronic musical instrument, which is started when the power is turned on. When the power is turned on, first, an initialization process is performed (step S10). In this initialization process, the internal state of the CPU 10 is set to the initial state. Also, the work memory 14
Initial values are set in the registers, counters, flags, and the like defined in.

【0030】この初期化処理が終了すると、パネル処理
が行われる(ステップS11)。このパネル処理では、
操作パネル11のスイッチの操作に応答して、該操作さ
れたスイッチに割り当てられている機能が実現される。
例えば、このパネル処理では、音色選択スイッチの操作
に応じた音色選択処理、リズム選択スイッチの操作に応
じたリズム選択処理、テンポ設定スイッチの操作に応じ
たテンポ設定処理、音量制御スイッチの操作に応じた音
量制御処理、音響効果選択スイッチの操作に応じた音響
効果選択処理等が行われる。
When the initialization process is completed, a panel process is performed (step S11). In this panel processing,
In response to the operation of the switch on the operation panel 11, the function assigned to the operated switch is realized.
For example, in this panel processing, a timbre selection process according to an operation of a timbre selection switch, a rhythm selection process according to an operation of a rhythm selection switch, a tempo setting process according to an operation of a tempo setting switch, and an operation of a volume control switch Volume control processing, sound effect selection processing in response to operation of the sound effect selection switch, and the like.

【0031】次いで、鍵盤処理が行われる(ステップS
12)。この鍵盤処理では、押鍵に応じた発音処理及び
離鍵に応じた消音処理が行われる。この鍵盤処理の詳細
は後に詳細に説明する。
Next, keyboard processing is performed (step S).
12). In this keyboard processing, sound generation processing according to key depression and mute processing according to key release are performed. The details of this keyboard processing will be described later in detail.

【0032】次いで、自動演奏処理が行われる(ステッ
プS13)。この自動演奏処理では、プログラムメモリ
13に格納されている自動演奏データに基づいて自動演
奏音を発生させる処理が行われる。
Next, automatic performance processing is performed (step S13). In this automatic performance processing, processing for generating an automatic performance sound based on the automatic performance data stored in the program memory 13 is performed.

【0033】次いで、その他の処理が行われる(ステッ
プS14)。この「その他の処理」には、MIDIデー
タの送受信処理等が含まれる。その後、ステップS11
に戻り、以下同様の処理が繰り返される。上記ステップ
S11〜S14の繰り返し実行の過程で、操作パネル1
1や鍵盤装置16の操作に基づくイベントが発生する
と、そのイベントに対応する処理が行われることにより
電子楽器としての各種機能が発揮される。
Next, other processing is performed (step S14). The “other processing” includes MIDI data transmission / reception processing and the like. Then, step S11
And the same processing is repeated thereafter. In the process of repeatedly executing steps S11 to S14, the operation panel 1
When an event based on the operation of the keyboard 1 or the keyboard device 16 occurs, various functions as an electronic musical instrument are exhibited by performing processing corresponding to the event.

【0034】(2)割込処理 図4は割込処理を示すフローチャートである。この割込
処理は、タイマ10aから一定周期で発生される割込信
号に応答して起動される。この割込処理では、タイムカ
ウンタの内容がインクリメントされる(ステップS2
0)。その後、シーケンスは割り込まれた位置にリター
ンする。
(2) Interrupt processing FIG. 4 is a flowchart showing the interrupt processing. This interrupt processing is started in response to an interrupt signal generated from the timer 10a at a constant cycle. In this interrupt processing, the content of the time counter is incremented (step S2).
0). Thereafter, the sequence returns to the interrupted position.

【0035】(3)鍵盤処理 図5は、鍵盤処理の詳細を示すフローチャートであり、
メイン処理ルーチンのステップS12からコールされ
る。
(3) Keyboard Processing FIG. 5 is a flowchart showing details of the keyboard processing.
It is called from step S12 of the main processing routine.

【0036】この鍵盤処理では、先ず、鍵盤イベントの
有無が調べられる(ステップS30)。これは、次のよ
うにして行われる。即ち、鍵盤スキャン回路15で鍵盤
装置16をスキャンすることにより、各鍵の押下状態を
示すキーデータ(以下、「新キーデータ」という)が取
り込まれる。
In this keyboard processing, first, the presence or absence of a keyboard event is checked (step S30). This is performed as follows. That is, by scanning the keyboard device 16 with the keyboard scanning circuit 15, key data indicating the pressed state of each key (hereinafter, referred to as "new key data") is captured.

【0037】次いで、前回読み込んで既にワークメモリ
14に記憶されているキーデータ(以下、「旧キーデー
タ」という)と新キーデータとが比較され、相違するビ
ットがオンにされた鍵イベントマップが作成される。鍵
盤イベントの有無はこの鍵イベントマップを参照するこ
とにより判断される。即ち、鍵イベントマップ中にオン
になっているビットが1つでも存在すると鍵盤イベント
があった旨が判断される。
Next, the key data (hereinafter referred to as "old key data") which has been read last time and already stored in the work memory 14 is compared with the new key data. Created. The presence or absence of a keyboard event is determined by referring to this key event map. That is, if there is at least one bit that is on in the key event map, it is determined that a keyboard event has occurred.

【0038】このステップS20で鍵盤イベントがあっ
たことが判断されると、その鍵盤イベントは押鍵イベン
トであるかどうかが調べられる(ステップS31)。そ
して、押鍵イベントであることが判断されると、発音処
理(ステップS32〜S35)が行われる。
If it is determined in step S20 that a keyboard event has occurred, it is determined whether the keyboard event is a key press event (step S31). When it is determined that the event is a key pressing event, a sound generation process (steps S32 to S35) is performed.

【0039】発音処理では、先ず、タイムカウンタの内
容がゼロにクリアされる(ステップS32)。次いで、
タイマ10aが起動される(ステップS33)。即ち、
CPU10はタイマ10aにタイマスタート命令を送
る。これにより、タイマ10aは動作を開始する。以後
は、一定周期でタイマ10aから割込が発生されるの
で、上述した割込処理ルーチンにおいて一定周期でタイ
ムカウンタの内容がインクリメントされる。
In the sound generation process, first, the content of the time counter is cleared to zero (step S32). Then
The timer 10a is started (Step S33). That is,
The CPU 10 sends a timer start command to the timer 10a. As a result, the timer 10a starts operating. Thereafter, since an interrupt is generated from the timer 10a at a constant cycle, the content of the time counter is incremented at a constant cycle in the above-described interrupt processing routine.

【0040】次いで、発音割当が行われる(ステップS
34)。即ち、アサイナによって音源17に含まれる1
〜数個のオシレータに発音が割り当てられる。そして、
押鍵イベントのあった鍵に対応する音色パラメータがプ
ログラムメモリ13から読み出され、音源17に送られ
る(ステップS35)。音源17に送られる音色パラメ
ータは、押鍵イベントのあった鍵のキーナンバ、イニシ
ャルタッチデータ及びその時点で選択されている音色ナ
ンバ等に基づいて決定される。これにより、音源17の
割り当てられたオシレータで、上記音色パラメータに基
づいた楽音信号が生成され、これが増幅器19及びスピ
ーカ20を順次経由して発音される。
Next, tone generation is performed (step S).
34). That is, 1 included in the sound source 17 by the assigner
Tones are assigned to several oscillators. And
The tone color parameters corresponding to the key having the key press event are read from the program memory 13 and sent to the sound source 17 (step S35). The timbre parameter sent to the sound source 17 is determined based on the key number of the key having the key press event, the initial touch data, the timbre number selected at that time, and the like. As a result, a tone signal based on the tone color parameter is generated by the oscillator to which the sound source 17 is assigned, and is generated via the amplifier 19 and the speaker 20 in sequence.

【0041】一方、上記ステップS31で押鍵イベント
でないことが判断されると離鍵イベントであることが認
識され、消音処理(ステップS36〜S39)が行われ
る。
On the other hand, if it is determined in step S31 that the event is not a key press event, it is recognized that the event is a key release event, and a mute process (steps S36 to S39) is performed.

【0042】この消音処理では、先ず、タイマ10aが
停止される(ステップS36)。即ち、CPU10はタ
イマ10aにタイマストップ命令を送る。これにより、
タイマ10aは動作を停止する。以後は、タイマ10a
からの割込が抑止される。次いで、タイムカウンタに格
納されているタイマ値が所定値より大きいかどうかが調
べられる(ステップS37)。そして、タイマ値が所定
値以下であることが判断されると、リリースのフェーズ
データが変更される(ステップS38)。即ち、音色パ
ラメータに含まれるノーマルのリリースのフェーズデー
タβが、スタッカート用のリリースのフェーズデータα
に変更される。
In this silencing process, first, the timer 10a is stopped (step S36). That is, the CPU 10 sends a timer stop command to the timer 10a. This allows
The timer 10a stops operating. Thereafter, the timer 10a
The interruption from is suppressed. Next, it is checked whether the timer value stored in the time counter is larger than a predetermined value (step S37). When it is determined that the timer value is equal to or less than the predetermined value, the release phase data is changed (step S38). That is, the normal release phase data β included in the timbre parameter is the staccato release phase data α
Is changed to

【0043】そして、この変更されたリリースのフェー
ズデータαが音源に送られる(ステップS39)。これ
により、図2に示すように、リリースのエンベロープは
通常の離鍵時より早くゼロに到達するので、通常の離鍵
時より早く消音される。その結果、打鍵時間を短くする
ことにより歯切れのよいスタッカート演奏を行うことが
できる。その後、シーケンスはメイン処理ルーチンにリ
ターンする。
Then, the changed release phase data α is sent to the sound source (step S39). As a result, as shown in FIG. 2, the release envelope reaches zero earlier than at the time of normal key release, so that the sound is muted earlier than at the time of normal key release. As a result, the crisp staccato performance can be performed by shortening the keying time. Thereafter, the sequence returns to the main processing routine.

【0044】上記ステップS37で、タイマ値が所定値
より大きいことが判断されると、ステップS38及びS
39の処理はスキップされる。従って、この場合は、従
来と同様の速度で消音されることになる。
If it is determined in step S37 that the timer value is larger than the predetermined value, steps S38 and S38 are executed.
Step 39 is skipped. Therefore, in this case, the sound is muted at the same speed as the conventional one.

【0045】以上説明したようにこの実施の形態に係る
電子楽器によれば、押鍵されている時間が所定値以下で
あれば通常の消音に要する時間より短い時間で消音する
ようにしたので、離鍵速度を検出することなく、スタッ
カート演奏を行うことができる。その結果、離鍵速度を
検出するためのリリースタッチ検出回路は不要であるの
で、スタッカート演奏機能を備えた電子楽器を安価に構
成できる。
As described above, according to the electronic musical instrument of this embodiment, if the time during which the key is depressed is equal to or less than the predetermined value, the sound is muted in a shorter time than the time required for normal muting. The staccato performance can be performed without detecting the key release speed. As a result, since a release touch detection circuit for detecting a key release speed is not required, an electronic musical instrument having a staccato performance function can be configured at low cost.

【0046】なお、上述した実施の形態では、1つの鍵
の押鍵から離鍵までの時間を計測し、計測により得られ
たタイマ値に基づいてリリース時間を変更するように構
成したが、上記タイマ値を順次ワークメモリ14に格納
しておき、このワークメモリ14に格納された複数のタ
イマ値の平均値を算出し、この算出されたタイマ値に基
づいてリリース時間を変更するように構成することもで
きる。
In the above-described embodiment, the time from one key press to the key release is measured, and the release time is changed based on the timer value obtained by the measurement. The timer values are sequentially stored in the work memory 14, an average value of the plurality of timer values stored in the work memory 14 is calculated, and the release time is changed based on the calculated timer value. You can also.

【0047】この場合、ワークメモリ14にスタックを
形成し、図5に示したステップS36とS37との間
に、測定により得られたタイマ値をスタックに格納する
ステップを追加し、ステップS37では、スタックに格
納されている複数のタイマ値の平均値と所定値とを比較
するように構成できる。この構成によれば、演奏者がス
タッカート演奏を意図しているかどうかを推定できるの
で、演奏者の意図に即した音を発生できる。
In this case, a stack is formed in the work memory 14, and a step of storing the timer value obtained by the measurement in the stack is added between steps S36 and S37 shown in FIG. It can be configured to compare an average value of a plurality of timer values stored in the stack with a predetermined value. According to this configuration, it is possible to estimate whether or not the player intends to perform a staccato performance, so that it is possible to generate a sound that matches the intention of the player.

【0048】また、上述した実施の形態では、タイムカ
ウンタのタイマ値が所定値以下である場合に、通常の消
音速度より早い一定の速度で消音するように構成した
が、タイマ値に応じた速度で消音するように構成するこ
ともできる。
In the above-described embodiment, when the timer value of the time counter is equal to or less than the predetermined value, the sound is muted at a constant speed higher than the normal muffling speed. It can also be configured to mute the sound.

【0049】[0049]

【発明の効果】以上詳述したように、本発明によれば、
スタッカート演奏を行うことができる廉価な電子楽器を
提供できる。
As described in detail above, according to the present invention,
An inexpensive electronic musical instrument capable of performing staccato performance can be provided.

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

【図1】本発明の実施の形態に係る電子楽器の実施の形
態の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of an electronic musical instrument according to an embodiment of the present invention.

【図2】本発明の実施の形態に係る電子楽器で使用され
るエンベロープデータを説明するための図である。
FIG. 2 is a diagram for explaining envelope data used in the electronic musical instrument according to the embodiment of the present invention.

【図3】本発明の実施の形態に係る電子楽器のメイン処
理を示すフローチャートである。
FIG. 3 is a flowchart showing main processing of the electronic musical instrument according to the embodiment of the present invention.

【図4】本発明の実施の形態に係る電子楽器の割込処理
を示すフローチャートである。
FIG. 4 is a flowchart showing an interrupt process of the electronic musical instrument according to the embodiment of the present invention.

【図5】本発明の実施の形態に係る電子楽器の鍵盤処理
を示すフローチャートである。
FIG. 5 is a flowchart showing keyboard processing of the electronic musical instrument according to the embodiment of the present invention.

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

10 CPU 11 操作パネル 12 外部インタフェース(I/F) 13 プログラムメモリ 14 ワークメモリ 15 鍵盤スキャン回路 16 鍵盤装置 17 音源 18 増幅器 19 スピーカ 20 システムバス Reference Signs List 10 CPU 11 Operation panel 12 External interface (I / F) 13 Program memory 14 Work memory 15 Keyboard scan circuit 16 Keyboard device 17 Sound source 18 Amplifier 19 Speaker 20 System bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 押鍵から離鍵までの時間を計測する計測
手段と、 該計測手段で計測された時間が所定値以下であればスタ
ッカート演奏であることを検出するスタッカート演奏検
出手段と、 該スタッカート演奏検出手段によりスタッカート演奏で
あることが検出されなかった場合に、離鍵に応答して発
生中の音を所定時間で消し、スタッカート演奏であるこ
とが検出された場合に、離鍵に応答して発生中の音を前
記所定時間より短い時間で消す消音手段、とを含む電子
楽器。
A measuring means for measuring a time from a key depression to a key release; a staccato performance detecting means for detecting a staccato performance if the time measured by the measuring means is a predetermined value or less; If the staccato performance detection means does not detect staccato performance, the sound being generated is erased in response to the key release for a predetermined period of time, and if the staccato performance is detected, the response to the key release is performed. And a silencer for silencing the sound being generated in a time shorter than the predetermined time.
【請求項2】 前記計測手段は、 押鍵を検出する押鍵検出手段と、 離鍵を検出する離鍵検出手段、とを備え、 前記押鍵検出手段で押鍵が検出された時に時間の計測を
開始し、前記離鍵検出手段で離鍵が検出された時に前記
時間の計測を停止する、請求項1に記載の電子楽器。
2. The method according to claim 1, wherein the measuring unit includes a key-press detection unit that detects a key-depression, and a key-release detection unit that detects a key-release. The electronic musical instrument according to claim 1, wherein measurement is started, and the measurement of the time is stopped when a key release is detected by the key release detection unit.
【請求項3】 前記計測手段で計測された時間を順次記
憶する記憶手段を更に備え、 前記スタッカート演奏検出手段は、該記憶手段に記憶さ
れた複数の時間の平均値が所定値以下であればスタッカ
ート演奏であることを検出する、請求項1又は2に記載
の電子楽器。
3. A storage means for sequentially storing the time measured by said measuring means, wherein said staccato performance detecting means is provided when an average value of a plurality of times stored in said storing means is equal to or less than a predetermined value. 3. The electronic musical instrument according to claim 1, wherein the electronic musical instrument detects a staccato performance.
JP2000216464A 2000-07-17 2000-07-17 Electronic musical instrument Pending JP2002032083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000216464A JP2002032083A (en) 2000-07-17 2000-07-17 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000216464A JP2002032083A (en) 2000-07-17 2000-07-17 Electronic musical instrument

Publications (1)

Publication Number Publication Date
JP2002032083A true JP2002032083A (en) 2002-01-31

Family

ID=18711727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000216464A Pending JP2002032083A (en) 2000-07-17 2000-07-17 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2002032083A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007060766A1 (en) * 2005-11-24 2007-05-31 Konami Digital Entertainment Co., Ltd. Game program, game device, and game method
JP2009031457A (en) * 2007-07-26 2009-02-12 Casio Comput Co Ltd Musical sound generator and musical sound generation processing program
JP2009198797A (en) * 2008-02-21 2009-09-03 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2009251261A (en) * 2008-04-07 2009-10-29 Roland Corp Electronic musical instrument

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007060766A1 (en) * 2005-11-24 2007-05-31 Konami Digital Entertainment Co., Ltd. Game program, game device, and game method
JP2009031457A (en) * 2007-07-26 2009-02-12 Casio Comput Co Ltd Musical sound generator and musical sound generation processing program
JP2009198797A (en) * 2008-02-21 2009-09-03 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2009251261A (en) * 2008-04-07 2009-10-29 Roland Corp Electronic musical instrument
US8053658B2 (en) 2008-04-07 2011-11-08 Roland Corporation Electronic musical instrument using on-on note times to determine an attack rate

Similar Documents

Publication Publication Date Title
JP4232882B2 (en) Electronic musical instrument demo song playing apparatus and demo song playing method
JP2002032083A (en) Electronic musical instrument
JP3844286B2 (en) Automatic accompaniment device for electronic musical instruments
JP3192597B2 (en) Automatic musical instrument for electronic musical instruments
JP3192579B2 (en) Automatic performance device and automatic performance method
JP3226268B2 (en) Concert magic automatic performance device
JP4412618B2 (en) Electronic musical instrument demo song playing apparatus and demo song playing method
JP3150580B2 (en) Automatic performance device and automatic performance method
JPH10319949A (en) Electronic musical instrument
JPH06348258A (en) Automatic playing device of electronic musical instrument
JP2956924B2 (en) Automatic accompaniment device for electronic musical instruments
JP4214845B2 (en) Automatic arpeggio device and computer program applied to the device
JP3169535B2 (en) Automatic performance device and automatic performance method
JPH11184465A (en) Playing device
JPH0542475Y2 (en)
JPH06242781A (en) Electronic musical instrument
JPH06337674A (en) Automatic musical performance device for electronic musical instrument
JP3549083B2 (en) Volume control device
JP2953937B2 (en) Electronic musical instrument volume control device
JP2513014B2 (en) Electronic musical instrument automatic performance device
JPH06314096A (en) Device for detecting front code of electronic musical instrument
JPH07199940A (en) Demonstrative playing controller for electronic musical instrument
JP3097888B2 (en) Electronic musical instrument volume setting device
JP2004163987A (en) Chord distinguishing device
JPH08106285A (en) Automatic playing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080804

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081126