JP2009198797A - Electronic musical instrument - Google Patents

Electronic musical instrument Download PDF

Info

Publication number
JP2009198797A
JP2009198797A JP2008040146A JP2008040146A JP2009198797A JP 2009198797 A JP2009198797 A JP 2009198797A JP 2008040146 A JP2008040146 A JP 2008040146A JP 2008040146 A JP2008040146 A JP 2008040146A JP 2009198797 A JP2009198797 A JP 2009198797A
Authority
JP
Japan
Prior art keywords
key
tone
output
output time
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.)
Granted
Application number
JP2008040146A
Other languages
Japanese (ja)
Other versions
JP5265941B2 (en
Inventor
Seiji Kushimiya
清路 串宮
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 JP2008040146A priority Critical patent/JP5265941B2/en
Publication of JP2009198797A publication Critical patent/JP2009198797A/en
Application granted granted Critical
Publication of JP5265941B2 publication Critical patent/JP5265941B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic musical instrument capable of making a musical sound outputted when played by a staccato get close to a musical sound outputted when played by a staccato in an acoustic piano. <P>SOLUTION: A CPU stops the output of the musical sound under the output from a loudspeaker, by controlling a sound source circuit and a digital signal processing circuit to start the attenuation of an output value of the musical sound (S730), when determined to be the staccato by the lapse of output time after key push after determining the key push (S72:YES). The lapse of the output time after the key push is set to silence the musical sound outputted by the key push, by starting the attenuation of the output of the musical sound after the lapse of a delay time from key release up to the start of attenuation of a sound volume value of the musical sound, when played by the staccato. The musical sound outputted by the key push is silenced by starting the attenuation of the musical sound after the delay time lapses from the key release, when played with the staccato. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、演奏者による鍵操作に対応して楽音を出力する電子楽器に関し、特に、スタッカート演奏されたときに出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づけるための技術に関する。   The present invention relates to an electronic musical instrument that outputs a musical sound in response to a key operation by a performer, and more particularly to a technique for bringing a musical sound that is output when a staccato performance is performed closer to a musical sound that is emitted when the acoustic piano is staccato performed. .

従来、鍵盤が備える複数の鍵に対応して押鍵と離鍵とを検出するセンサが設けられ、センサが押鍵を検出するとその押鍵された鍵に付与されたキーコードに基づいて楽音を出力し、センサが離鍵を検出するとその離鍵された鍵に付与されたキーコードに基づいて出力中の楽音を消音する電子楽器が知られている。   Conventionally, a sensor for detecting key depression and key release corresponding to a plurality of keys provided on a keyboard is provided, and when the sensor detects a key depression, a musical tone is generated based on a key code assigned to the depressed key. There is known an electronic musical instrument that outputs and silences a musical tone being output based on a key code assigned to the key that has been released when the sensor detects the key release.

ところで、楽器の演奏法の一つとして、音と音との間を切って、歯切れよく演奏する技法であるスタッカート演奏が知られている。上述のような従来の電子楽器では、スタッカート演奏されたときに出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づけるために、離鍵時の動作速度を検出し、その検出結果に応じ離鍵から出力中の楽音を消音するまでの減衰時間を制御する技術が知られている(特許文献1参照)。また、スタッカート演奏であることが検出された場合に、出力中の楽音をスタッカート演奏でない場合の消音時間より短い時間で消音する技術が知られている(特許文献2参照)。なお、この特許文献1,2に記載された電子楽器においては、スタッカート演奏されたときに出力する楽音を、離鍵後に余韻が残ることで歯切れが悪くならないように離鍵を検出すると直ちに楽音の出力の減衰を開始して消音している。
特公昭63−34473号公報(第6頁、図5) 特開2002−32083号公報(第5頁、図2)
By the way, as one of musical instrument performance methods, staccato performance is known, which is a technique for performing crisply by cutting between sounds. In the conventional electronic musical instrument as described above, the operation speed at the time of key release is detected in order to bring the musical sound output when the staccato performance is performed closer to the musical sound emitted when the acoustic piano is performed, and the detection result is Accordingly, a technique for controlling the decay time from the key release until the musical tone being output is muted is known (see Patent Document 1). Further, a technique is known in which when a staccato performance is detected, the musical sound being output is silenced in a shorter time than the silence time when the staccato performance is not performed (see Patent Document 2). In the electronic musical instruments described in Patent Documents 1 and 2, when the key release is detected so that the lingering sound remains after the key is released, the musical sound output when the staccato performance is performed is immediately detected. The output starts to decay and mute.
Japanese Examined Patent Publication No. 63-34473 (page 6, FIG. 5) JP 2002-32083 A (page 5, FIG. 2)

しかし、アコースティックピアノにおいては、図9(b)に示すように、スタッカート演奏されたときに発する楽音は、その音量値が離鍵から遅れて減衰を開始して消音する。この離鍵から楽音の音量値が減衰を開始するまでの時間を遅延時間とも称する。この遅延時間が発生する理由としては、押鍵された鍵に対応するダンパーが離鍵から弦の振動の減衰を開始するまでに遅れが発生することや、押鍵によりピアノ本体が共鳴したり打弦された弦以外のダンパーのない弦が共鳴したりしてそれらの共鳴が押鍵により打弦された弦の振動と誤認されるとともに離鍵から減衰を開始するまでに遅れが発生することなどが挙げられる。   However, in the acoustic piano, as shown in FIG. 9 (b), the musical sound generated when the staccato performance is performed is attenuated after the volume value is delayed after the key is released. The time from when the key is released until the volume value of the musical sound starts to decay is also referred to as a delay time. The reason for this delay time is that there is a delay before the damper corresponding to the pressed key starts to attenuate the vibration of the string from the key release, and the piano body resonates or strikes due to the key pressing. Strings without dampers other than the strings that have been struck resonate, and those resonances are mistaken as vibrations of the strings that are struck by key presses, and there is a delay between the start of key release and the start of damping, etc. Is mentioned.

上述の特許文献1または特許文献2に記載されたような電子楽器においては、スタッカート演奏されたときには、離鍵を検出すると直ちに楽音の出力の減衰を開始して消音している。そのため、上述のような電子楽器からスタッカート演奏されたときに出力する楽音は、アコースティックピアノにおいてスタッカート演奏されたときに発する楽音と比較して、演奏者に違和感を与えるおそれがある。   In the electronic musical instrument described in Patent Document 1 or Patent Document 2 described above, when a staccato performance is performed, the output of the musical sound starts to be attenuated immediately after the key release is detected, and the sound is muted. Therefore, the musical sound that is output when the staccato performance is performed from the electronic musical instrument as described above may give the player a sense of discomfort compared to the musical sound that is generated when the staccato performance is performed on the acoustic piano.

本発明は、このような課題に鑑みなされたものであり、その目的とするところは、スタッカート演奏されたときに出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づける電子楽器を提供することにある。   The present invention has been made in view of such problems, and an object of the present invention is to provide an electronic musical instrument that approximates a musical sound that is output when a staccato performance is performed to a musical sound that is generated when the acoustic piano performs a staccato performance. There is to do.

上述した課題を解決するためになされた請求項1に係る電子楽器は、押鍵を示す押鍵情報および離鍵を示す離鍵情報に基づき、前記押鍵により出力された楽音がスタッカート演奏であることを検出するスタッカート演奏検出手段(10)と、前記押鍵情報を取得してから楽音の出力の減衰を開始するまでの時間として予め設定されている押鍵後出力時間を記憶する押鍵後出力時間記憶手段(11)と、前記スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、前記押鍵後出力時間記憶手段に記憶されている前記押鍵後出力時間を読み出し、押鍵により出力された楽音を、前記押鍵情報を取得してから前記読み出した前記押鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段(10)と、を備えることを特徴とする。   The electronic musical instrument according to claim 1, which has been made to solve the above-described problem, is based on key press information indicating key press and key release information indicating key release, and the musical sound output by the key press is a staccato performance. A staccato performance detection means (10) for detecting this and a post-key-pressing output time which is preset as a time from when the key-pressing information is acquired until the decay of the output of the musical sound is started When the output time storage means (11) and the staccato performance detection means detect that the staccato performance is a staccato performance, the output time after key depression stored in the output time storage means after key depression is read out and pressed. A tone muffling means (10) for muting the tone output from the key by starting attenuation of the output of the tone after the read-out output time after the key press has elapsed after acquiring the key pressing information. , Characterized in that it comprises a.

このように構成された請求項1に係る電子楽器によれば、スタッカート演奏である場合には、押鍵により出力された楽音を、押鍵情報を取得してから押鍵後出力時間が経過した後に楽音の出力の減衰を開始して消音する。なお、押鍵後出力時間とは、スタッカート演奏されたときに、押鍵により出力された楽音を、離鍵から楽音の音量値が減衰を開始するまでの遅延時間が経過した後に楽音の出力の減衰を開始して消音するように、押鍵情報を取得してから楽音の出力の減衰を開始するまでの予め設定された時間を言う。そのため、スタッカート演奏されたときには、押鍵により出力された楽音を、離鍵から遅延時間が経過した後に楽音の出力の減衰を開始して消音する。したがって、スタッカート演奏されたときに出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づけることができるので、演奏者にアコースティックピアノで演奏したときに近い印象を与えることができる。   According to the electronic musical instrument according to claim 1 configured as described above, in the case of the staccato performance, the output time after the key depression has elapsed since the key depression information is obtained for the musical sound output by the key depression. Later, attenuation of the output of the musical sound is started and the sound is muted. Note that the output time after key press refers to the output of a musical sound after a delay time from when the key is released until the volume value of the musical sound starts to decay, when a staccato performance is performed. It means a preset time from when the key depression information is acquired until the output of the musical sound starts to be attenuated so that the attenuation starts and the sound is muted. For this reason, when the staccato performance is performed, the musical sound output by the key depression is muted by starting the attenuation of the musical sound output after a delay time elapses from the key release. Therefore, since the musical sound output when the staccato performance is performed can be brought close to the musical sound generated when the staccato performance is performed on the acoustic piano, it is possible to give the performer a similar impression when the acoustic piano is performed.

ところで、押鍵後出力時間は、次の(イ)、(ロ)、及び(ハ)のように予め設定されていることが考えられる。
(イ)まず、請求項2に記載のように、電子楽器は、さらに、楽音の音色の種類を設定する音色設定手段を備える。また、押鍵後出力時間は、楽音の音色の種類それぞれに対応して予め設定されている。押鍵後出力時間記憶手段が、楽音の音色の種類と楽音の音色の種類それぞれに対応する押鍵後出力時間とを関連付けて記憶する。そして、楽音消音手段が、スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、音色設定手段によって設定された楽音の音色の種類と関連付けられて押鍵後出力時間記憶手段に記憶されている押鍵後出力時間を読み出し、押鍵により出力された楽音を、押鍵情報を取得してから前記読み出した押鍵後出力時間が経過した後に楽音の出力の減衰を開始して消音することが考えられる。
By the way, it is conceivable that the output time after key depression is set in advance as shown in the following (a), (b), and (c).
(A) First, as described in claim 2, the electronic musical instrument further includes tone color setting means for setting the type of tone color of the musical tone. Further, the output time after key pressing is set in advance corresponding to each type of tone color. The post-key-pressing output time storage means stores the tone color type of the musical tone and the post-key-pressing output time corresponding to each tone color type of the musical tone in association with each other. When the tone mute means detects that the staccato performance detection means is a staccato performance, it is stored in the post-keypress output time storage means in association with the tone type of the tone set by the tone color setting means. The output time after the key is pressed is read, and the tone output by the key press is muted by starting the decay of the tone output after the key output information has been acquired and the read output time after the key press has elapsed. It is possible.

このように構成された電子楽器によれば、楽音の音色の種類と楽音の音色の種類それぞれに対応する押鍵後出力時間とを関連付けて記憶し、設定された楽音の音色の種類と関連付けられて記憶されている押鍵後出力時間を読み出す。この楽音の音色の種類とは、例えばピアノ、ハープシコード、オルガン、シンセサイザーなどの楽器において演奏されたときに発する楽音を構成する周波数とその強度の分布とを示す音のスペクトルの種類を言う。ところで、これらの楽器においてスタッカート演奏されたときに、離鍵から楽音の音量値が減衰を開始するまでの時間(遅延時間)が楽器によって相違することがある。このような場合であっても、楽器それぞれに対応する楽音の音色の種類が設定されることによって、その設定された楽音の音色の種類と関連付けられて記憶されている押鍵後出力時間を読み出すことができる。したがって、スタッカート演奏されたときに、楽音の音色の種類に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から楽音の音色の種類に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者に設定された楽音の音色の種類が対応する楽器で演奏したときに近い印象を与えることができる。   According to the electronic musical instrument configured as described above, the tone type of the musical tone and the output time after the key press corresponding to each tone type of the musical tone are stored in association with each other, and are associated with the set tone type of the musical tone. Reads the output time after key press stored. The musical tone color type refers to the type of sound spectrum indicating the frequency and intensity distribution of the musical tone that is emitted when played on an instrument such as a piano, harpsichord, organ, or synthesizer. By the way, when a staccato performance is performed on these musical instruments, the time (delay time) from when the key is released until the volume value of the musical sound starts to decay may be different depending on the musical instrument. Even in such a case, by setting the tone color type corresponding to each musical instrument, the post-keypress output time stored in association with the set tone color type is read. be able to. Therefore, when a staccato performance is performed, the sound output from the key release to the sound is reduced compared to the case where the output of the music sound begins to decay after the same delay time has elapsed from the key release regardless of the tone type of the music. After the delay time corresponding to the tone type has elapsed, the music output begins to decay and mute, so that the musician's tone type set to the performer has a similar impression when playing with the corresponding instrument. Can do.

(ロ)また、請求項3に記載のように、押鍵情報には、音高を指定する音高指定情報が含まれており、押鍵後出力時間は、楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている。押鍵後出力時間記憶手段が、音域と音域それぞれに対応する押鍵後出力時間とを関連付けて記憶する。電子楽器は、さらに、押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段を備える。そして、楽音消音手段は、スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、音域抽出手段によって抽出された音域と関連付けられて押鍵後出力時間記憶手段に記憶されている押鍵後出力時間を読み出し、押鍵により出力された楽音を、押鍵情報を取得してから前記読み出した押鍵後出力時間が経過した後に楽音の出力の減衰を開始して消音することが考えられる。   (B) Further, as described in claim 3, the key pressing information includes pitch specifying information for specifying the pitch, and the output time after the key pressing is a pitch value of the musical tone. It is set in advance corresponding to each of the sound ranges divided based on the pitch value. The post-key press output time storage means stores the tone range and the post-key press output time corresponding to each tone range in association with each other. The electronic musical instrument further includes a sound range extracting unit that extracts a sound range in which a pitch value corresponding to a pitch specified by the pitch specifying information included in the key pressing information exists. Then, when the staccato performance detecting means detects that the staccato performance detection means is a staccato performance, the musical tone mute means is associated with the range extracted by the range extraction means and stored in the post-key press output time storage means. It is conceivable that the post-output time is read out, and the musical sound output by the key depression is muted by starting to attenuate the output of the musical sound after the read out post-key-pressing output time elapses after the key depression information is acquired. .

このように構成された電子楽器によれば、楽音の音高値に基づいて区分けされた音域と音域それぞれに対応する押鍵後出力時間とを関連付けて記憶し、押鍵情報の音高値が存在する音域と関連付けられて記憶されている押鍵後出力時間を読み出す。この音域とは、例えば一オクターブごとに区分けされた音高の範囲を言う。ところで、アコースティックピアノにおいて、音高値の小さい音域に存在する鍵がスタッカート演奏されたときに離鍵から楽音の音量値が減衰を開始するまでの時間(遅延時間)は、音高値の大きい音域に存在する鍵がスタッカート演奏されたときに離鍵から楽音の音量値が減衰を開始するまでの時間よりも大きいことがある。このような場合であっても、押鍵情報の音高値が存在する音域を抽出し、その抽出された音域と関連付けられて記憶されている押鍵後出力時間を読み出すことができる。したがって、スタッカート演奏されたときに、押鍵情報の音高値が存在する音域に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から押鍵情報の音高値が存在する音域に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者にアコースティックピアノで演奏したときにより近い印象を与えることができる。   According to the electronic musical instrument configured as described above, the range divided based on the pitch value of the musical tone and the output time after the key press corresponding to each range are stored in association with each other, and the pitch value of the key press information exists. The output time after key depression stored in association with the range is read. This range refers to a range of pitches divided into, for example, one octave. By the way, in an acoustic piano, when a key that exists in the low pitch range is played staccato, the time from when the key is released until the volume value of the musical sound starts to decay (delay time) exists in the high pitch range. When the key to be played is staccato played, the volume value of the musical tone may be longer than the time from when the key is released until the attenuation starts. Even in such a case, it is possible to extract a pitch range in which the pitch value of the key press information exists, and to read the output time after key press stored in association with the extracted pitch range. Therefore, when the staccato performance is performed, compared to the case where the decay of the output of the musical sound is started and muted after the same delay time has elapsed from the key release regardless of the pitch range in which the key press information exists, After the delay time corresponding to the range in which the pitch value of the key depression information exists from the release of the key, the musical sound output begins to decay and mute so that the player has a closer impression when playing on the acoustic piano. Can do.

(ハ)さらに、請求項4に記載のように、電子楽器は、さらに、楽音の音色の種類を設定する音色設定手段を備える。また、押鍵情報には、音高を指定する音高指定情報が含まれており、押鍵後出力時間は、楽音の音色の種類それぞれにおける楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている。押鍵後出力時間記憶手段が、楽音の音色の種類と音域と楽音の音色の種類それぞれにおける音域それぞれに対応する押鍵後出力時間とを関連付けて記憶する。電子楽器は、さらに、押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段を備える。そして、楽音消音手段は、スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、音色設定手段によって設定された楽音の音色の種類と音域抽出手段によって抽出された音域とに関連付けられて押鍵後出力時間記憶手段に記憶されている押鍵後出力時間を読み出し、押鍵により出力された楽音を、押鍵情報を取得してから読み出した押鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音することが考えられる。   (C) Further, as described in claim 4, the electronic musical instrument further includes timbre setting means for setting the tone color type of the musical tone. The key pressing information includes pitch specifying information for specifying the pitch, and the output time after the key pressing is based on the pitch value that is the pitch value of the musical tone for each tone type. It is set in advance corresponding to each of the divided sound ranges. The post-key-pressing output time storage means stores the tone color type and tone range of the musical tone in association with the post-key-pressing output time corresponding to each tone range in the tone color type of the musical tone. The electronic musical instrument further includes a sound range extracting unit that extracts a sound range in which a pitch value corresponding to a pitch specified by the pitch specifying information included in the key pressing information exists. When the staccato performance detecting means detects that the staccato performance detection means is a staccato performance, the musical tone mute means is associated with the tone type of the musical tone set by the tone color setting means and the tone range extracted by the tone range extracting means. The output time after key depression stored in the output time storage means after key depression is read, and the musical sound output by the key depression is changed to the musical sound after the output time after key depression read out after acquiring the key depression information. It is conceivable to start the attenuation of the output and mute.

このように構成された電子楽器によれば、楽音の音色の種類と楽音の音高値に基づいて区分けされた音域と楽音の音色の種類それぞれにおける音域それぞれに対応する押鍵後出力時間とを関連付けて記憶し、設定された楽音の音色の種類と押鍵情報の音高値が存在する音域とに関連付けられて記憶されている押鍵後出力時間を読み出す。したがって、スタッカート演奏されたときに、楽音の音色の種類と押鍵情報の音高値が存在する音域とに関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から楽音の音色の種類と押鍵情報の音高値が存在する音域とに対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者に設定された楽音の音色の種類が対応する楽器で演奏したときにより近い印象を与えることができる。   According to the electronic musical instrument configured in this way, the musical tone color type and the range divided based on the musical tone pitch value are associated with the post-keypress output time corresponding to each musical tone type tone range. And reading the output time after the key press stored in association with the tone type of the set musical tone and the pitch range where the pitch value of the key press information exists. Therefore, when a staccato performance is performed, the output of the musical sound begins to decay after the same delay time has elapsed from the release of the key, regardless of the tone type of the musical tone and the pitch range of the key press information. Compared to the case where the key is released, the sound output starts to decay after the delay time corresponding to the tone type of the tone from the key release and the pitch range of the key press information exists, and the sound is muted. It is possible to give an impression that is closer to that of the musical tone color set for the user when playing with the corresponding musical instrument.

また、上述した課題を解決するためになされた請求項5に係る電子楽器は、押鍵により出力される楽音の音色の種類を設定する音色設定手段(320a)と、押鍵を示す押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段(10)と、離鍵を示す離鍵情報を取得してから楽音の出力の減衰を開始するまでの時間であり、前記楽音の音色の種類それぞれにおける楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている離鍵後出力時間を記憶する離鍵後出力時間記憶手段(11)と、前記離鍵情報を検出した場合には、前記音色設定手段によって設定された楽音の音色の種類と前記音域抽出手段によって抽出された音域とに関連付けられて前記離鍵後出力時間記憶手段に記憶されている前記離鍵後出力時間を読み出し、押鍵により出力された楽音を、前記離鍵情報を取得してから前記読み出した前記離鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段(10)と、を備えることを特徴とする。   An electronic musical instrument according to claim 5 for solving the above-described problem includes a tone color setting means (320a) for setting a tone color type of a musical tone output by a key press, and key press information indicating the key press. A pitch range extraction means (10) for extracting a pitch range in which a pitch value corresponding to the pitch specified by the pitch specification information included in the sound is present; This is the time until the start, and the output time after key release that is set in advance corresponding to each of the ranges divided based on the pitch value that is the pitch value of the musical tone in each tone type of the musical tone is stored. And a post-key-release output time storage means (11), and when the key-release information is detected, the musical tone color type set by the tone color setting means is associated with the tone range extracted by the tone range extraction means. Being released The output time after the key release stored in the output time storage means is read out, and the musical sound output by the key press is acquired after the read out output time after the key release after the key release information is acquired. And a music sound muffling means (10) for starting the attenuation of the output of the music sound and muting it.

このように構成された請求項5に係る電子楽器によれば、離鍵情報を検出した場合には、楽音消音手段(10)が、音色設定手段によって設定された楽音の音色の種類と音域抽出手段によって抽出された音域とに関連付けられて離鍵後出力時間記憶手段に記憶されている離鍵後出力時間を読み出し、押鍵により出力された楽音を、離鍵情報を取得してから読み出した前記離鍵後出力時間が経過した後に楽音の出力の減衰を開始して消音する。なお、離鍵後出力時間とは、押鍵により出力された楽音を、離鍵から楽音の音量値が減衰を開始するまでの遅延時間が経過した後に楽音の出力の減衰を開始して消音するように、離鍵情報を取得してから楽音の出力の減衰を開始するまでの予め設定された時間を言い、楽音の音色の種類それぞれにおける楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている。   According to the electronic musical instrument of the fifth aspect configured as described above, when the key release information is detected, the tone muffling means (10) extracts the tone type and tone range of the tone set by the tone setting means. The output time after key release stored in the output time storage means after key release associated with the range extracted by the means is read, and the tone output by the key press is read after acquiring the key release information. After the output time after the key release, the decay of the output of the musical sound is started and the sound is muted. Note that the output time after key release means that the tone output from the key press is muted by starting the decay of the output of the tone after the delay time from when the key is released until the volume value of the tone begins to decay. In this way, the preset time from when the key release information is acquired until the decay of the musical sound output is started, and is divided based on the pitch value that is the pitch value of the musical tone for each musical tone type. It is set in advance corresponding to each of the set sound ranges.

そのため、押鍵により出力された楽音を、離鍵から遅延時間が経過した後に楽音の出力の減衰を開始して消音する。したがって、押鍵により出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づけることができるので、演奏者にアコースティックピアノで演奏したときに近い印象を与えることができる。   Therefore, the musical sound output by the key depression is muted by starting the attenuation of the musical sound output after the delay time has elapsed from the key release. Therefore, since the musical sound output by pressing the key can be brought close to the musical sound generated when the staccato performance is performed on the acoustic piano, it is possible to give the player a close impression when the musical instrument is played on the acoustic piano.

また、上述した課題を解決するためになされた請求項6に係る電子楽器は、押鍵により出力される楽音の音色の種類を設定する音色設定手段(320a)と、離鍵を示す離鍵情報を取得してから楽音の出力の減衰を開始するまでの時間であり、前記楽音の音色の種類と前記楽音の音色の種類それぞれに対応して予め設定されている離鍵後出力時間を記憶する離鍵後出力時間記憶手段(11)と、前記離鍵情報を検出した場合には、前記音色設定手段によって設定された楽音の音色の種類に関連付けられて前記離鍵後出力時間記憶手段に記憶されている前記離鍵後出力時間を読み出し、押鍵により出力された楽音を、前記離鍵情報を取得してから前記読み出した前記離鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段と、を備えることを特徴とする。   An electronic musical instrument according to claim 6 for solving the above-described problem includes a tone color setting means (320a) for setting a tone color type of a musical tone output by pressing a key, and key release information indicating key release. Is the time from when the tone is acquired until the decay of the output of the musical tone is started, and the type of tone color of the musical tone and the output time after key release set in advance corresponding to the tone type of the musical tone are stored. When the key release output time storage means (11) and the key release information are detected, it is stored in the post-key release output time storage means in association with the tone color type set by the tone color setting means. The output time after the key release is read out, and the output of the musical sound is reduced after the read out output time after the key release after the key release information has been acquired. Music to start and mute Characterized in that it comprises a sound unit.

このように構成された請求項6に係る電子楽器によれば、楽音の音色の種類と楽音の音色の種類それぞれに対応する押鍵後出力時間とを関連付けて記憶し、設定された楽音の音色の種類と関連付けられて記憶されている押鍵後出力時間を読み出す。この楽音の音色の種類とは、例えばピアノ、ハープシコード、オルガン、シンセサイザーなどの楽器において演奏されたときに発する楽音を構成する周波数とその強度の分布とを示す音のスペクトルの種類を言う。ところで、これらの楽器においてスタッカート演奏されたときに、離鍵から楽音の音量値が減衰を開始するまでの時間(遅延時間)が楽器によって相違することがある。このような場合であっても、楽器それぞれに対応する楽音の音色の種類が設定されることによって、その設定された楽音の音色の種類と関連付けられて記憶されている離鍵後出力時間を読み出すことができる。したがって、楽音の音色の種類に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から楽音の音色の種類に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者に設定された楽音の音色の種類が対応する楽器で演奏したときに近い印象を与えることができる。   According to the electronic musical instrument of the sixth aspect configured as described above, the musical tone color type and the output time after the key press corresponding to each musical tone color type are stored in association with each other, and the musical tone color set is stored. The output time after key depression stored in association with the type of the key is read. The musical tone color type refers to the type of sound spectrum indicating the frequency and intensity distribution of the musical tone generated when played on an instrument such as a piano, harpsichord, organ or synthesizer. By the way, when a staccato performance is performed on these musical instruments, the time (delay time) from when the key is released until the volume value of the musical sound starts to decay may be different depending on the musical instrument. Even in such a case, by setting the tone color type corresponding to each musical instrument, the post-key-release output time stored in association with the set tone color type is read. be able to. Therefore, the delay corresponding to the tone color of the musical tone from the key release is compared to the case where the decay of the output of the musical tone is started and muted after the same delay time from the key release regardless of the tone color of the musical tone. Since the decay of the musical sound output starts after the passage of time and the sound is muted, it is possible to give an impression close to that when the musical instrument is set to the corresponding musical tone type.

また、上述した課題を解決するためになされた請求項7に係る電子楽器は、押鍵を示す押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段(10)と、離鍵を示す離鍵情報を取得してから楽音の出力の減衰を開始するまでの時間であり、前記楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている離鍵後出力時間を記憶する離鍵後出力時間記憶手段(11)と、前記離鍵情報を検出した場合には、前記音域抽出手段によって抽出された音域と関連付けられて前記離鍵後出力時間記憶手段に記憶されている前記離鍵後出力時間を読み出し、押鍵により出力された楽音を、前記離鍵情報を取得してから前記読み出した前記離鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段と、を備えることを特徴とする。   The electronic musical instrument according to claim 7, which has been made in order to solve the above-described problem, has a pitch range in which a pitch value corresponding to a pitch specified by pitch specifying information included in key pressing information indicating key pressing exists. The range extraction means (10) to be extracted and the time from when the key release information indicating the key release is acquired until the decay of the output of the musical tone is started, based on the pitch value which is the pitch value of the musical tone After the key release output time storage means (11) for storing a preset key release output time corresponding to each of the divided sound ranges, and when the key release information is detected, the sound range extraction means Reads the output time after key release stored in the post-key release output time storage means in association with the extracted tone range, and reads the musical sound output by the key press after obtaining the key release information. The output time after the key release has elapsed Characterized in that it comprises a musical tone muffler for muffling the start of the decay of the output of the tone to.

このように構成された請求項7に係る電子楽器によれば、楽音の音高値に基づいて区分けされた音域と音域それぞれに対応する離鍵後出力時間とを関連付けて記憶し、押鍵情報の音高値が存在する音域と関連付けられて記憶されている離鍵後出力時間を読み出す。この音域とは、例えば一オクターブごとに区分けされた音高の範囲を言う。ところで、アコースティックピアノにおいて、音高値の小さい音域に存在する鍵がスタッカート演奏されたときに離鍵から楽音の音量値が減衰を開始するまでの時間(遅延時間)は、音高値の大きい音域に存在する鍵がスタッカート演奏されたときに離鍵から楽音の音量値が減衰を開始するまでの時間よりも大きいことがある。このような場合であっても、押鍵情報の音高値が存在する音域を抽出し、その抽出された音域と関連付けられて記憶されている離鍵後出力時間を読み出すことができる。したがって、押鍵情報の音高値が存在する音域に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から押鍵情報の音高値が存在する音域に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者にアコースティックピアノで演奏したときにより近い印象を与えることができる。   According to the electronic musical instrument of the seventh aspect configured as described above, the range divided based on the pitch value of the musical sound and the output time after key release corresponding to each range are stored in association with each other, and the key press information The post-key-release output time stored in association with the pitch range in which the pitch value exists is read. This range refers to a range of pitches divided into, for example, one octave. By the way, in an acoustic piano, when a key that exists in a low pitch range is played staccato, the time from when the key is released until the volume level of the musical sound starts to decay (delay time) exists in the high pitch range. When the key to be played is staccato played, the volume value of the musical tone may be longer than the time from when the key is released until the attenuation starts. Even in such a case, it is possible to extract the range where the pitch value of the key depression information exists, and to read the output time after key release stored in association with the extracted range. Therefore, compared to the case in which the decay of the output of the musical sound is started after the same delay time has elapsed from the key release regardless of the range in which the pitch value of the key press information exists, After the delay time corresponding to the pitch range in which the pitch value exists, the decay of the output of the musical sound is started and the sound is muted, so that it is possible to give the player a closer impression when playing on the acoustic piano.

以下、本発明の実施形態を図面に基づいて説明する。
[1.電子オルガンの構成の説明]
図1(a)は電子オルガン1の構成を示すブロック図であり、図1(b)は電子オルガン1を上方から見た外観図であり、図1(c)は図1(b)における操作パネル30を拡大して示す説明図である。なお、図1(b)において、演奏者から電子オルガン1の鍵盤20を見た場合における鍵盤20の左側を「左」とし、その反対側を「右」とし、鍵盤20の手前側を「前」とし、その反対側を「後」とする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[1. Description of electronic organ configuration]
FIG. 1A is a block diagram showing a configuration of the electronic organ 1, FIG. 1B is an external view of the electronic organ 1 as viewed from above, and FIG. 1C is an operation in FIG. It is explanatory drawing which expands and shows the panel 30. FIG. In FIG. 1B, when the player views the keyboard 20 of the electronic organ 1, the left side of the keyboard 20 is “left”, the opposite side is “right”, and the front side of the keyboard 20 is “front”. ”And the other side as“ rear ”.

電子オルガン1は、図1(a)に示すように、CPU10、ROM11、RAM12、音源回路(TGとも称する。)14、波形メモリ15、デジタル信号処理回路(DSPとも称する。)16、D/A変換回路(D/Aとも称する。)17、スピーカ出力回路18、スピーカ19、鍵盤20、操作パネル30、及びシステムバス50を備える。また、これらのうち、CPU10、ROM11、RAM12、TG14、DSP16、鍵盤20、及び操作パネル30は、システムバス50によりそれぞれデータ送受信可能に接続されている。   As shown in FIG. 1A, the electronic organ 1 includes a CPU 10, a ROM 11, a RAM 12, a sound source circuit (also referred to as TG) 14, a waveform memory 15, a digital signal processing circuit (also referred to as DSP) 16, and a D / A. A conversion circuit (also referred to as D / A) 17, a speaker output circuit 18, a speaker 19, a keyboard 20, an operation panel 30, and a system bus 50 are provided. Of these, the CPU 10, ROM 11, RAM 12, TG 14, DSP 16, keyboard 20, and operation panel 30 are connected via a system bus 50 so that data can be transmitted and received.

ROM11には、各種処理をCPU10が実行するためのプログラムなどが記憶されている。なお、ROM11のメモリ領域については後述する。
RAM12は、各種情報を一時記憶する。また、RAM12には、時間に対応する数値を記憶するタイムレジスタ12aが設けられている。さらに、RAM12には、タイムレジスタ12aに記憶された数値が数値「0」ではないことを示すフラグを記憶するためのフラグレジスタ12cが設けられている。
The ROM 11 stores programs for the CPU 10 to execute various processes. The memory area of the ROM 11 will be described later.
The RAM 12 temporarily stores various information. Further, the RAM 12 is provided with a time register 12a for storing a numerical value corresponding to time. Further, the RAM 12 is provided with a flag register 12c for storing a flag indicating that the numerical value stored in the time register 12a is not the numerical value “0”.

波形メモリ15は、例えばROMなどの読み出し専用メモリから構成されており、種々の音色を実現するべく、各音色、各鍵域、押鍵速度等に対応した種々の波形データを記憶する。   The waveform memory 15 is composed of, for example, a read-only memory such as a ROM, and stores various waveform data corresponding to each tone color, each key range, key pressing speed, etc. in order to realize various tone colors.

TG14は、種々の波形データを格納している波形メモリ15から読み込んだ波形データに基づいて楽音波形及び効果音波形を生成してDSP16に出力する。
DSP16は、TG14によって出力された楽音波形及び効果音波形にエフェクト付与してD/A17に出力する。
The TG 14 generates a musical sound waveform and an effect sound waveform based on the waveform data read from the waveform memory 15 storing various waveform data, and outputs the sound waveform to the DSP 16.
The DSP 16 gives an effect to the musical sound waveform and the effect sound waveform output by the TG 14 and outputs them to the D / A 17.

D/A17は、DSP16が出力するエフェクト付与された楽音波形及び効果音波形に関するデジタル信号をアナログ信号に変換してスピーカ出力回路18に出力する。
スピーカ出力回路18は、D/A17によって出力されたアナログ信号を増幅してスピーカ19に出力する。
The D / A 17 converts the musical sound waveform to which the effect is applied and the digital signal related to the effect sound waveform output from the DSP 16 into an analog signal and outputs the analog signal to the speaker output circuit 18.
The speaker output circuit 18 amplifies the analog signal output from the D / A 17 and outputs it to the speaker 19.

スピーカ19は、例えばコーンスピーカなどの音声出力装置から構成されており、スピーカ出力回路18から出力されたアナログ信号に基づいて楽音を出力する。
鍵盤20は、図1(b)に示すように、出力すべき楽音の音高を選択するための複数の鍵210を備えている。各鍵210に対応して番号(キーコード)が付与されている。このキーコードは、楽音の音高を指定する。また、鍵盤20には、各鍵210に対応して、その鍵210の押鍵・離鍵を検出するための鍵スイッチ(図示せず)が設けられている。この鍵スイッチは、接点を備えており、押鍵の場合には接点がオンされ、一方、離鍵の場合には接点がオフされるように構成されている。鍵スイッチの接点がオンまたはオフされた旨の情報は、内蔵するスキャン回路が各鍵スイッチをスキャンすることにより検出され、そのキーコードとともに、バスライン50に送出される。
The speaker 19 is composed of an audio output device such as a cone speaker, for example, and outputs a musical sound based on an analog signal output from the speaker output circuit 18.
As shown in FIG. 1B, the keyboard 20 includes a plurality of keys 210 for selecting the pitches of musical sounds to be output. A number (key code) is assigned to each key 210. This key code specifies the pitch of the musical sound. Further, the keyboard 20 is provided with a key switch (not shown) for detecting key depression / release of the key 210 corresponding to each key 210. This key switch includes a contact, and is configured such that the contact is turned on when the key is pressed and the contact is turned off when the key is released. Information that the contact of the key switch is turned on or off is detected by the built-in scan circuit scanning each key switch, and is sent to the bus line 50 together with the key code.

操作パネル30は、図1(c)に示すように、入力パネル310、及び表示パネル330を備えている。
このうち、入力パネル310は、電子オルガン1に各種の情報、指令を入力するための複数の操作子320から構成されている。複数の操作子320として、例えば楽音の音色の種類を選択するための音色スイッチ320a、エフェクトを選択するためのエフェクトスイッチ、ボリュームコントローラなどが設けられている。入力パネル310の操作子320が操作された旨の情報は、内蔵するスキャン回路が各操作子320をスキャンすることにより検出され、バスライン50に送出される。
The operation panel 30 includes an input panel 310 and a display panel 330 as shown in FIG.
Among these, the input panel 310 includes a plurality of operating elements 320 for inputting various information and commands to the electronic organ 1. As the plurality of operators 320, for example, a tone color switch 320a for selecting a tone color type of a musical tone, an effect switch for selecting an effect, a volume controller, and the like are provided. Information indicating that the operation element 320 of the input panel 310 has been operated is detected by the built-in scanning circuit scanning each operation element 320, and is sent to the bus line 50.

また、表示パネル330は、例えば液晶ディスプレイなどの画像表示装置から構成されており、CPU10の指示を受けて各種案内情報などを表示する。
CPU10は、ROM11内に記憶されたプログラムに従って、メイン処理、イベント処理、キーイベント処理、押鍵処理(1)、タイマ10a割込処理(1)、離鍵処理(1)、定常処理などの各種処理を実行する。なお、このメイン処理、イベント処理、キーイベント処理、押鍵処理(1)、タイマ10a割込処理(1)、離鍵処理(1)、定常処理については後述する。また、CPU10は、上述した鍵盤20によってバスライン50に送出された鍵スイッチの接点がオン又はオフされた旨の情報及びキーコードを取り込み、RAM12に記憶する。さらに、CPU10は、上述した操作パネル30によってバスライン50に送出された入力パネル310の操作子320が操作された旨の情報を取り込む。また、CPU10は、タイマ10aを有している。このタイマ10aは、CPU10によるタイマスタート指令に応答して一定周期で割込信号を発生し、CPU10によるタイマストップ指令に応答して割込信号の発生を停止する。
Further, the display panel 330 is composed of an image display device such as a liquid crystal display, for example, and displays various types of guidance information in response to an instruction from the CPU 10.
The CPU 10 performs various processes such as main processing, event processing, key event processing, key pressing processing (1), timer 10a interrupt processing (1), key release processing (1), steady processing, etc., according to programs stored in the ROM 11. Execute the process. The main process, event process, key event process, key press process (1), timer 10a interrupt process (1), key release process (1), and steady process will be described later. Further, the CPU 10 takes in information and a key code indicating that the contact of the key switch sent to the bus line 50 by the keyboard 20 is turned on or off, and stores it in the RAM 12. Further, the CPU 10 takes in information indicating that the operation element 320 of the input panel 310 sent to the bus line 50 by the operation panel 30 is operated. The CPU 10 has a timer 10a. The timer 10a generates an interrupt signal at a constant period in response to a timer start command from the CPU 10, and stops generating an interrupt signal in response to a timer stop command from the CPU 10.

[1−1.ROM11のメモリ領域の説明]
図2(a)はROM11に設けられたメモリ領域を示す説明図であり、図2(b)は押鍵後出力時間関連データのメモリ領域(1)111を示す説明図であり、図2(c)は押鍵後出力時間関連データのメモリ領域(2)112を示す説明図であり、図2(d)は押鍵後出力時間関連データのメモリ領域(3)113を示す説明図である。
[1-1. Explanation of the memory area of the ROM 11]
2A is an explanatory view showing a memory area provided in the ROM 11, and FIG. 2B is an explanatory view showing a memory area (1) 111 of post-key-pressing output time related data. FIG. 2C is an explanatory diagram showing a memory area (2) 112 for output time related data after key pressing, and FIG. 2D is an explanatory diagram showing a memory area (3) 113 for output time related data after key pressing. .

ROM11には、図2(a)に示すように、押鍵後出力時間関連データのメモリ領域(1)111、押鍵後出力時間関連データのメモリ領域(2)112、及び押鍵後出力時間関連データのメモリ領域(3)113などが設けられている。押鍵後出力時間関連データのメモリ領域(1)111には、図2(b)に示すように、本実施形態ではアコースティックピアノにおいて演奏されたときに発する楽音の音色の種類を示す音色データ(A1)に対応する押鍵後出力時間関連データが記録されている。押鍵後出力時間関連データのメモリ領域(2)112には、図2(c)に示すように、本実施形態ではハープシコードにおいて演奏されたときに発する楽音の音色の種類を示す音色データ(A2)に対応する押鍵後出力時間関連データが記録されている。押鍵後出力時間関連データのメモリ領域(3)113には、図2(d)に示すように、本実施形態ではオルガンにおいて演奏されたときに発する楽音の音色の種類を示す音色データ(A3)に対応する押鍵後出力時間関連データが記録されている。以下押鍵後出力時間関連データを説明する。   As shown in FIG. 2A, the ROM 11 includes a memory area (1) 111 for output time related data after key press, a memory area (2) 112 for output time related data after key press, and an output time after key press. A memory area (3) 113 for related data is provided. In the memory area (1) 111 of the post-key-pressing output time related data, as shown in FIG. 2B, in this embodiment, tone color data (in this embodiment, indicating the tone type of a musical tone generated when played on an acoustic piano) The post-keypress output time related data corresponding to A1) is recorded. In the memory area (2) 112 of the post-keypress output time related data, as shown in FIG. 2 (c), in this embodiment, timbre data (A2) indicating the type of timbre of a musical tone emitted when played in a harpsichord is used. ), The output time related data after key press is recorded. In the memory area (3) 113 for the output time related data after key pressing, as shown in FIG. 2 (d), in this embodiment, tone data (A3) indicating the tone type of a tone generated when played on the organ. ), The output time related data after key press is recorded. The post-keypress output time related data will be described below.

(イ)押鍵後出力時間関連データ
押鍵後出力時間関連データは、楽音の音色の種類と楽音の音高の値である音高値に基づいて区分けされた音域と楽音の音色の種類それぞれにおける音域それぞれに対応する押鍵後出力時間とを関連付けたデータであり、スタッカート演奏されたときに押鍵により出力された楽音を、楽音の出力の減衰を開始して消音する際に用いられる。この押鍵後出力時間は、スタッカート演奏されたときに、押鍵により出力された楽音を、離鍵から楽音の音量値が減衰を開始するまでの遅延時間が経過した後に楽音の出力の減衰を開始して消音するように設定されている。この押鍵後出力時間関連データは、図2(b)、図2(c)、及び図2(d)に示すように、楽音の音色の種類を示す音色データ(A1〜A3)と音域を示す音域データ(B1〜Bn)と押鍵後出力時間を示す押鍵後出力時間データ(C11〜C3n)とを関連付けている。一例を挙げると、図2(b)に示すように、楽音の音色の種類を示す音色データ(A1)と音域を示す音域データ(B1)と押鍵後出力時間を示す押鍵後出力時間データ(C11)とを関連付けている押鍵後出力時間関連データは、押鍵後出力時間関連データのメモリ領域(1)111(1)に記憶されている。
(A) Output time related data after key press The output time related data after key press is for each of the types of musical tones and musical tones that are divided based on the tone value and the pitch value that is the pitch value of the musical tone. This data is associated with the post-key press output time corresponding to each tone range, and is used when the musical sound output by the key press when the staccato performance is performed starts attenuation of the output of the musical sound and is muted. The output time after the key is pressed is to reduce the musical sound output when the staccato is played, after the delay time from when the key is released until the musical sound volume value starts to attenuate, after the delay time has elapsed. It is set to start and mute. As shown in FIGS. 2 (b), 2 (c), and 2 (d), the post-keypress output time related data includes tone color data (A1 to A3) indicating the tone type of the musical tone and the tone range. The indicated range data (B1 to Bn) and the post-key press output time data (C11 to C3n) indicating the post-key press output time are associated with each other. As an example, as shown in FIG. 2B, tone color data (A1) indicating the type of tone color of the musical tone, tone range data (B1) indicating the tone range, and output time data after pressing the key indicating the output time after key pressing. The post-key press output time related data associated with (C11) is stored in the memory area (1) 111 (1) of the post-key press output time related data.

[2.対応関係の説明]
以上、電子オルガン1の構成について説明したが、本実施形態における電子オルガン1の構成と、特許請求の範囲に記載した構成との対応は次のとおりである。本実施形態の電子オルガン1が、特許請求の範囲における電子楽器に相当する。また、ROM11が、押鍵後出力時間記憶手段、及び離鍵後出力時間記憶手段に相当する。音色スイッチ320aが、音色設定手段に相当する。さらに、CPU10が、スタッカート演奏検出手段、楽音消音手段、及び音域抽出手段に相当する。また、電子オルガン1の「鍵スイッチの接点がオンされた旨の情報」が、「押鍵情報」に相当し、電子オルガン1の「鍵スイッチの接点がオフされた旨の情報」が、「離鍵情報」に相当し、電子オルガン1の「キーコード」が、「音高指定情報」に相当する。
[2. Explanation of correspondence]
Although the configuration of the electronic organ 1 has been described above, the correspondence between the configuration of the electronic organ 1 in the present embodiment and the configuration described in the claims is as follows. The electronic organ 1 of the present embodiment corresponds to an electronic musical instrument in the claims. The ROM 11 corresponds to an output time storage unit after key depression and an output time storage unit after key release. The tone color switch 320a corresponds to tone color setting means. Further, the CPU 10 corresponds to a staccato performance detection means, a musical sound silencer means, and a sound range extraction means. The “information that the key switch contact is turned on” of the electronic organ 1 corresponds to “key pressing information”, and the “information that the key switch contact is turned off” of the electronic organ 1 is “ It corresponds to “key release information”, and “key code” of the electronic organ 1 corresponds to “pitch designation information”.

[3.電子オルガン1のCPU10が実行するメイン処理の説明]
次に、電子オルガン1のCPU10が実行するメイン処理の手順を図4(a)のフローチャートに基づいて説明する。本処理は、電子オルガン1が起動されている場合に実行される。
[3. Description of main processing executed by CPU 10 of electronic organ 1]
Next, a procedure of main processing executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is executed when the electronic organ 1 is activated.

まず、本処理が起動されると、各種の初期化処理を行う(S110)。具体的には、RAM12のタイムレジスタ12a、及びフラグレジスタ12cをクリアにするなどの初期化処理を行う。S110の処理が終了したらS120の処理へ移行する。   First, when this process is activated, various initialization processes are performed (S110). Specifically, initialization processing such as clearing the time register 12a and the flag register 12c of the RAM 12 is performed. When the processing of S110 ends, the process proceeds to S120.

S120の処理においては、イベントが発生したか否かを判断する。具体的には、鍵盤20によってバスライン50に送出された鍵スイッチの接点がオン又はオフされた旨の情報及びキーコードに基づいてキーイベントが発生したか否かや、操作パネル30によってバスライン50に送出された入力パネル310の操作子320が操作された旨の情報に基づいてパネルイベントが発生したか否かを判断する。イベントが発生したと判断した場合には(S120:YES)、S130の処理へ移行する。一方、イベントが発生していないと判断した場合には(S120:NO)、S140の処理へ移行する。   In the process of S120, it is determined whether an event has occurred. Specifically, whether or not a key event has occurred based on information and a key code indicating that the contact of the key switch sent to the bus line 50 by the keyboard 20 is turned on or off, and the operation panel 30 It is determined whether or not a panel event has occurred based on the information indicating that the operator 320 of the input panel 310 sent to 50 is operated. If it is determined that an event has occurred (S120: YES), the process proceeds to S130. On the other hand, if it is determined that no event has occurred (S120: NO), the process proceeds to S140.

S130の処理においては、発生したイベントに対応するイベント処理を実行する。このイベント処理については後述する。S130の処理が終了したらS140の処理へ移行する。   In the process of S130, an event process corresponding to the event that has occurred is executed. This event processing will be described later. When the process of S130 is completed, the process proceeds to S140.

S140の処理においては、定常処理を実行する。この定常処理については後述する。S140の処理が終了したら上述のS120の処理へ戻る。
[4.電子オルガン1のCPU10が実行するイベント処理の説明]
次に、電子オルガン1のCPU10が実行するイベント処理の手順を図4(b)のフローチャートに基づいて説明する。本処理は、メイン処理のS130の処理へ移行した際に実行される。
In the process of S140, a steady process is executed. This steady process will be described later. When the process of S140 ends, the process returns to the above-described process of S120.
[4. Description of event processing executed by CPU 10 of electronic organ 1]
Next, the procedure of event processing executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is executed when the process proceeds to S130 of the main process.

まず、キーイベントが発生したか否かを判断する(S210)。具体的には、鍵盤20によってバスライン50に送出された鍵スイッチの接点がオン又はオフされた旨の情報及びキーコードに基づいてキーイベントが発生したか否かを判断する。キーイベントが発生したと判断した場合には(S210:YES)、S220の処理へ移行する。一方、キーイベントが発生していないと判断した場合には(S210:NO)、S230の処理へ移行する。   First, it is determined whether a key event has occurred (S210). Specifically, it is determined whether or not a key event has occurred based on information and a key code indicating that the contact of the key switch sent to the bus line 50 by the keyboard 20 is turned on or off. If it is determined that a key event has occurred (S210: YES), the process proceeds to S220. On the other hand, if it is determined that a key event has not occurred (S210: NO), the process proceeds to S230.

S220の処理においては、キーイベント処理を実行する。このキーイベント処理については後述する。S220の処理が終了したらリターンする。
S230の処理においては、パネルイベントが発生したか否かを判断する。具体的には、操作パネル30によってバスライン50に送出された入力パネル310の操作子320が操作された旨の情報に基づいてパネルイベントが発生したか否かを判断する。パネルイベントが発生したと判断した場合には(S230:YES)、S240の処理へ移行する。一方、パネルイベントが発生していないと判断した場合には(S230:NO)、S250の処理へ移行する。
In the process of S220, key event processing is executed. This key event processing will be described later. When the process of S220 ends, the process returns.
In the process of S230, it is determined whether or not a panel event has occurred. Specifically, it is determined whether or not a panel event has occurred based on information indicating that the operator 320 of the input panel 310 sent to the bus line 50 by the operation panel 30 has been operated. When it is determined that a panel event has occurred (S230: YES), the process proceeds to S240. On the other hand, if it is determined that a panel event has not occurred (S230: NO), the process proceeds to S250.

S240の処理においては、発生したパネルイベントに対応するパネルイベント処理を実行する。S240の処理が終了したらリターンする。
S250の処理においては、その他のイベント処理を実行する。S250の処理が終了したらリターンする。
In the process of S240, a panel event process corresponding to the generated panel event is executed. When the process of S240 ends, the process returns.
In the processing of S250, other event processing is executed. When the process of S250 is completed, the process returns.

[5.電子オルガン1のCPU10が実行するキーイベント処理の説明]
次に、電子オルガン1のCPU10が実行するキーイベント処理の手順を図5(a)のフローチャートに基づいて説明する。本処理は、イベント処理のS220の処理へ移行した際に実行される。
[5. Description of key event processing executed by CPU 10 of electronic organ 1]
Next, a procedure of key event processing executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is executed when the process proceeds to S220 of the event process.

まず、各鍵スイッチをスキャンする(S310)。具体的には、上述した鍵盤20によってバスライン50に送出された鍵スイッチの接点がオン又はオフされた旨の情報及びキーコードを取り込み、RAM12の所定の領域(図示せず)に記憶する。S310の処理が終了したらS320の処理へ移行する。   First, each key switch is scanned (S310). Specifically, information indicating that the contact of the key switch sent to the bus line 50 by the keyboard 20 is turned on or off and a key code are taken in and stored in a predetermined area (not shown) of the RAM 12. When the process of S310 is completed, the process proceeds to S320.

S320の処理においては、各鍵210が押鍵されたか否かを判断する。具体的には、S310の処理においてRAM12の所定の領域に記憶された鍵スイッチの接点がオンされた旨の情報であるときには、その鍵スイッチが設けられている鍵210が押鍵されたと判断し、一方、鍵スイッチの接点がオフされた旨の情報であるときには、その鍵スイッチが設けられている鍵210が離鍵されたと判断する。鍵210が押鍵されたと判断した場合には(S320:YES)、S330の処理へ移行する。一方、鍵210が離鍵されたと判断した場合には(S320:NO)、S340の処理へ移行する。ここで、鍵スイッチの接点がオンされた旨の情報を取り込んでからその鍵スイッチが設けられている鍵210が押鍵されたと判断するまでの処理時間は、上述した各種処理を実行する処理時間と比較して小さため、「鍵スイッチが設けられている鍵210が押鍵されたと判断したとき」を「押鍵情報を取得するとき」とみなす。また、鍵スイッチの接点がオフされた旨の情報を取り込んでからその鍵スイッチが設けられている鍵210が離鍵されたと判断するまでの処理時間は、上述した各種処理を実行する処理時間と比較して小さいため、「鍵スイッチが設けられている鍵210が離鍵されたと判断したとき」を「離鍵情報を取得するとき」とみなす。   In the process of S320, it is determined whether or not each key 210 has been pressed. Specifically, when the information of the key switch contact stored in a predetermined area of the RAM 12 is turned on in the process of S310, it is determined that the key 210 provided with the key switch has been depressed. On the other hand, when the information indicates that the contact of the key switch has been turned off, it is determined that the key 210 provided with the key switch has been released. If it is determined that the key 210 is depressed (S320: YES), the process proceeds to S330. On the other hand, if it is determined that the key 210 has been released (S320: NO), the process proceeds to S340. Here, the processing time from when the information indicating that the contact of the key switch is turned on to when it is determined that the key 210 provided with the key switch has been pressed is the processing time for executing the various processes described above. Therefore, “when it is determined that the key 210 provided with the key switch has been depressed” is regarded as “when the key depression information is acquired”. In addition, the processing time from when the information indicating that the contact of the key switch is turned off to when it is determined that the key 210 provided with the key switch is released is the processing time for executing the various processes described above. Since it is relatively small, “when it is determined that the key 210 provided with the key switch has been released” is regarded as “when key release information is acquired”.

S330の処理においては、押鍵処理(1)を実行する。この押鍵処理(1)については後述する。S330の処理が終了したらリターンする。
S340の処理においては、離鍵処理(1)を実行する。この離鍵処理(1)については後述する。S340の処理が終了したらリターンする。
In the process of S330, the key pressing process (1) is executed. This key pressing process (1) will be described later. When the process of S330 ends, the process returns.
In the process of S340, the key release process (1) is executed. This key release process (1) will be described later. When the process of S340 ends, the process returns.

[6.電子オルガン1のCPU10が実行する押鍵処理(1)の説明]
次に、電子オルガン1のCPU10が実行する押鍵処理(1)の手順を図5(b)のフローチャートに基づいて説明する。本処理は、キーイベント処理のS330の処理へ移行した際に実行される。
[6. Description of key pressing process (1) executed by CPU 10 of electronic organ 1]
Next, the procedure of the key pressing process (1) executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is executed when the process proceeds to S330 of the key event process.

まず、選択された楽音の音色の種類を取り込む(S410)。具体的には、操作パネル30によってバスライン50に送出された音色スイッチ320aを介して選択された楽音の音色の種類を示す音色データを取り込む。S410の処理が終了したらS420の処理へ移行する。   First, the type of tone color of the selected musical tone is captured (S410). Specifically, timbre data indicating the timbre type of the musical tone selected via the timbre switch 320a sent to the bus line 50 by the operation panel 30 is captured. When the process of S410 is completed, the process proceeds to S420.

S420の処理においては、押鍵された鍵210に対応するキーコードが指定する音高に対応する音高値が存在する音域を抽出する。具体的には、RAM12の所定の領域に鍵スイッチの接点がオンされた旨の情報とともに記憶されているキーコードが指定する音高に対応する音高値が存在する音域を抽出する。S420の処理が終了したらS430の処理へ移行する。   In the process of S420, a pitch range in which a pitch value corresponding to the pitch specified by the key code corresponding to the pressed key 210 is extracted is extracted. Specifically, a pitch range in which a pitch value corresponding to a pitch specified by a key code stored together with information indicating that the contact of the key switch is turned on in a predetermined area of the RAM 12 exists is extracted. When the process of S420 is completed, the process proceeds to S430.

S430の処理においては、選択された楽音の音色の種類と押鍵された鍵210の音域とから押鍵後出力時間を読み出す。具体的には、S410の処理によって取り込まれた楽音の音色の種類を示す音色データとS420の処理によって抽出された音域を示す音域データとを含み、ROM11に記憶されている押鍵後出力時間関連データにおける押鍵後出力時間データを読み出す。なお、詳細に説明すると、押鍵後出力時間関連データは、ROM11に設けられた押鍵後出力時間関連データのメモリ領域(1)111、押鍵後出力時間関連データのメモリ領域(2)112、及び押鍵後出力時間関連データのメモリ領域(3)113に記憶されている。S430の処理が終了したらS440の処理へ移行する。   In the process of S430, the output time after key pressing is read from the tone type of the selected musical tone and the range of the key 210 pressed. Specifically, the post-keypress output time-related information stored in the ROM 11 includes tone color data indicating the tone color type of the musical sound captured by the processing of S410 and tone range data indicating the tone range extracted by the processing of S420. Reads output time data after key press in the data. More specifically, the post-key-pressing output time-related data includes the post-key-pressing output time-related data memory area (1) 111 and the post-key-pressing output time-related data memory area (2) 112 provided in the ROM 11. , And the post-keypress output time related data are stored in the memory area (3) 113. When the process of S430 is completed, the process proceeds to S440.

S440の処理においては、RAM12に設けられたタイムレジスタ12aに押鍵後出力時間をセットする。具体的には、S430の処理において読み出した押鍵後出力時間データが示す押鍵後出力時間に対応する数値をRAM12に設けられたタイムレジスタ12aに記憶する。この押鍵後出力時間に対応する数値とは、例えば押鍵後出力時間が100msであり、タイマ10aから発生される割込信号の周期が2msの場合には、100msの数値「100」を2msの数値「2」で除算して算出した数値「50」を言う。S440の処理が終了したらS450の処理へ移行する。   In the process of S440, the output time after key pressing is set in the time register 12a provided in the RAM 12. Specifically, a numerical value corresponding to the post-keypress output time data indicated by the post-keypress output time data read in the process of S430 is stored in the time register 12a provided in the RAM 12. The numerical value corresponding to the output time after the key press is, for example, the output time after the key press is 100 ms, and when the period of the interrupt signal generated from the timer 10a is 2 ms, the numerical value “100” of 100 ms is 2 ms. The numerical value “50” calculated by dividing by the numerical value “2”. When the process of S440 ends, the process proceeds to S450.

S450の処理においては、CPU10が有するタイマ10aを起動する。具体的には、タイマ10aにタイマスタート指令を送る。これにより、タイマ10aは動作を開始する。以後は、一定周期でタイマ10aから割込信号が発生されるので、タイマ10a割込処理(1)を実行する。このタイマ10a割込処理(1)については後述する。S450の処理が終了したらS460の処理へ移行する。   In the process of S450, the timer 10a of the CPU 10 is activated. Specifically, a timer start command is sent to the timer 10a. Thereby, the timer 10a starts operation. Thereafter, since an interrupt signal is generated from the timer 10a at a constant cycle, the timer 10a interrupt process (1) is executed. The timer 10a interrupt process (1) will be described later. When the process of S450 is completed, the process proceeds to S460.

S460の処理においては、スピーカ19から発音する。具体的には、TG14、及びDSP16を制御してRAM12の所定の領域に鍵スイッチの接点がオンされた旨の情報とともに記憶されているキーコードが指定する音高に基づいてスピーカ19から楽音を出力させる。S430の処理が終了したらリターンする。   In the process of S460, sound is generated from the speaker 19. Specifically, the TG 14 and the DSP 16 are controlled, and a musical sound is output from the speaker 19 based on the pitch specified by the key code stored together with information that the key switch contact is turned on in a predetermined area of the RAM 12. Output. When the process of S430 is completed, the process returns.

[7.電子オルガン1のCPU10が実行するタイマ10a割込処理(1)の説明]
次に、電子オルガン1のCPU10が実行するタイマ10a割込処理(1)の手順を図6のフローチャートに基づいて説明する。本処理は、押鍵処理(1)のS450の処理へ移行した際に、タイマ10aから一定周期で発生される割込信号に応答して起動される。
[7. Description of timer 10a interrupt process (1) executed by CPU 10 of electronic organ 1]
Next, the procedure of the timer 10a interrupt process (1) executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is started in response to an interrupt signal generated at a constant cycle from the timer 10a when the process proceeds to S450 of the key pressing process (1).

まず、タイムレジスタ12aに記憶された数値をデクリメントする(S4110)。具体的には、RAM12に設けられたタイムレジスタ12aに記憶された数値から数値「1」を減算した数値を記憶する。S4110の処理が終了したらS4120の処理へ移行する。   First, the numerical value stored in the time register 12a is decremented (S4110). Specifically, a numerical value obtained by subtracting the numerical value “1” from the numerical value stored in the time register 12 a provided in the RAM 12 is stored. When the process of S4110 is completed, the process proceeds to S4120.

S4120の処理においては、タイムレジスタ12aに記憶された数値が数値「0」以下か否かを判断する。具体的には、RAM12に設けられたタイムレジスタ12aに記憶された数値が数値「0」以下か否かを判断する。タイムレジスタ12aに記憶された数値が数値「0」以下であると判断した場合には(S4120:YES)、S4130の処理へ移行する。一方、タイムレジスタ12aに記憶された数値が数値「0」以下ではないと判断した場合には、リターンする。   In the process of S4120, it is determined whether or not the numerical value stored in the time register 12a is equal to or smaller than the numerical value “0”. Specifically, it is determined whether or not the numerical value stored in the time register 12 a provided in the RAM 12 is a numerical value “0” or less. When it is determined that the numerical value stored in the time register 12a is equal to or smaller than the numerical value “0” (S4120: YES), the process proceeds to S4130. On the other hand, if it is determined that the numerical value stored in the time register 12a is not equal to or smaller than the numerical value “0”, the process returns.

S4130の処理においては、タイムレジスタ12aに数値「0」をセットする。具体的には、RAM12に設けられたタイムレジスタ12aに数値「0」を記憶する。S4130の処理が終了したらリターンする。   In the process of S4130, a numerical value “0” is set in the time register 12a. Specifically, the numerical value “0” is stored in the time register 12 a provided in the RAM 12. When the process of S4130 is completed, the process returns.

[8.電子オルガン1のCPU10が実行する離鍵処理(1)の説明]
次に、電子オルガン1のCPU10が実行する離鍵処理(1)の手順を図7(a)のフローチャート、図3(a)、及び図3(b)に基づいて説明する。本処理は、キーイベント処理のS340の処理へ移行した際に実行される。図3(a)は押下時間と押鍵後出力時間との関係を示す説明図(1)であり、図3(b)は押下時間と押鍵後出力時間との関係を示す説明図(2)である。なお、押下時間とは、押鍵を示す押鍵情報を取得してから離鍵を示す離鍵情報を取得するまでの時間である。
[8. Description of Key Release Process (1) Performed by CPU 10 of Electronic Organ 1]
Next, the procedure of the key release process (1) executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. 7 (a), FIG. 3 (a), and FIG. 3 (b). This process is executed when the process proceeds to S340 of the key event process. FIG. 3A is an explanatory diagram (1) showing the relationship between the pressing time and the output time after key pressing, and FIG. 3B is an explanatory diagram (2) showing the relationship between the pressing time and the output time after key pressing. ). Note that the pressing time is the time from acquisition of key pressing information indicating key pressing until acquisition of key releasing information indicating key release.

まず、RAM12に設けられたタイムレジスタ12aに記憶された数値が数値「0」か否かを判断する(S510)。具体的には、タイムレジスタ12aに記憶された数値が数値「0」であると判断した場合には(S510:YES)、図3(b)に示すように、押鍵されたと判断してから押鍵処理(1)のS440の処理においてタイムレジスタ12aにセットした数値に対応する押鍵後出力時間が、離鍵処理を開始した時点で既に経過しており、この押鍵がスタッカート演奏ではないと判断し、S520の処理へ移行する。一方、タイムレジスタ12aに記憶された数値が数値「0」でないと判断した場合には(S510:NO)、図3(a)に示すように、押鍵されたと判断してから押鍵処理(1)のS440の処理においてタイムレジスタ12aにセットした数値に対応する押鍵後出力時間が経過していないと判断し、S530の処理へ移行する。   First, it is determined whether or not the numerical value stored in the time register 12a provided in the RAM 12 is a numerical value “0” (S510). Specifically, when it is determined that the numerical value stored in the time register 12a is the numerical value “0” (S510: YES), it is determined that the key has been depressed as shown in FIG. 3B. The output time after the key press corresponding to the value set in the time register 12a in the process of S440 of the key press process (1) has already passed when the key release process is started, and this key press is not a staccato performance. Is determined, and the process proceeds to S520. On the other hand, if it is determined that the numerical value stored in the time register 12a is not the numerical value “0” (S510: NO), as shown in FIG. In the process of S440 of 1), it is determined that the output time after key pressing corresponding to the numerical value set in the time register 12a has not elapsed, and the process proceeds to S530.

S520の処理においては、楽音の出力値の減衰を開始して消音する。具体的には、RAM12の所定の領域に鍵スイッチの接点がオフされた旨の情報とともに記憶されているキーコードが指定する音高に基づいてスピーカ19から楽音を出力させていたときには、TG14、及びDSP16を制御して楽音の出力値の減衰を開始して出力を停止させる。S520の処理が終了したらリターンする。   In the process of S520, attenuation of the output value of the musical sound is started and the sound is muted. Specifically, when the musical sound is output from the speaker 19 based on the pitch specified by the key code stored together with the information that the key switch contact is turned off in a predetermined area of the RAM 12, the TG 14, And the DSP 16 is controlled to start attenuation of the output value of the musical sound and stop the output. When the process of S520 ends, the process returns.

S530の処理においては、離鍵した時点では押鍵後出力時間が経過していないため、この押鍵がスタッカート演奏であると判断し、後述する定常処理にて消音を行うために、このことを示すフラグをセットする。具体的には、タイムレジスタ12aに記憶された数値が数値「0」ではないことを示すフラグをRAM12に設けられたフラグレジスタ12cに記憶する。S530の処理が終了したらリターンする。   In the processing of S530, since the output time after the key depression has not elapsed when the key is released, it is determined that this key depression is a staccato performance, and this is performed in order to mute the sound in the steady process described later. Set the flag to indicate. Specifically, a flag indicating that the numerical value stored in the time register 12 a is not the numerical value “0” is stored in the flag register 12 c provided in the RAM 12. When the processing of S530 ends, the process returns.

[9.電子オルガン1のCPU10が実行する定常処理の説明]
次に、電子オルガン1のCPU10が実行する定常処理の手順を図7(b)のフローチャートに基づいて説明する。本処理は、メイン処理のS140の処理へ移行した際に実行される。
[9. Description of steady process executed by CPU 10 of electronic organ 1]
Next, a procedure of steady processing executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is executed when the process proceeds to S140 of the main process.

まず、フラグがあるか否かを判断する(S710)。具体的には、タイムレジスタ12aに記憶された数値が数値「0」ではないことを示すフラグが、RAM12に設けられたフラグレジスタ12cに記憶されているか否かを判断する。フラグがあると判断した場合には(S710:YES)、S720の処理へ移行する。一方、フラグがないと判断した場合には(S710:NO)、S740の処理へ移行する。   First, it is determined whether there is a flag (S710). Specifically, it is determined whether or not a flag indicating that the numerical value stored in the time register 12 a is not the numerical value “0” is stored in the flag register 12 c provided in the RAM 12. If it is determined that there is a flag (S710: YES), the process proceeds to S720. On the other hand, if it is determined that there is no flag (S710: NO), the process proceeds to S740.

S720の処理においては、RAM12に設けられたタイムレジスタ12aに記憶された数値が数値「0」か否かを判断する。タイムレジスタ12aに記憶された数値が数値「0」であると判断した場合には(S720:YES)、図3(a)に示すように、押鍵されたと判断してから押鍵処理(1)のS440の処理においてタイムレジスタ12aにセットした数値に対応する押鍵後出力時間が経過したと判断し、S730の処理へ移行する。一方、タイムレジスタ12aに記憶された数値が数値「0」ではないと判断した場合には(S720:NO)、押鍵されたと判断してから押鍵処理(1)のS440の処理においてタイムレジスタ12aにセットした数値に対応する押鍵後出力時間が経過していないと判断し、S740の処理へ移行する。   In the process of S720, it is determined whether or not the numerical value stored in the time register 12a provided in the RAM 12 is a numerical value “0”. When it is determined that the numerical value stored in the time register 12a is the numerical value “0” (S720: YES), as shown in FIG. 3A, the key pressing process (1 ) In S440, it is determined that the output time after the key press corresponding to the numerical value set in the time register 12a has elapsed, and the process proceeds to S730. On the other hand, if it is determined that the numerical value stored in the time register 12a is not the numerical value “0” (S720: NO), it is determined that the key has been pressed and then the time register in the process of S440 of the key pressing process (1). It is determined that the post-keypress output time corresponding to the numerical value set in 12a has not elapsed, and the process proceeds to S740.

S730の処理においては、楽音の出力値の減衰を開始して消音する。具体的には、RAM12の所定の領域に鍵スイッチの接点がオフされた旨の情報とともに記憶されているキーコードが指定する音高に基づいてスピーカ19から楽音を出力させていたときには、図3(a)に示すように、押鍵されたと判断してから押鍵後出力時間が経過した後にTG14、及びDSP16を制御して楽音の出力値の減衰を開始して出力を停止させる。S730の処理が終了したらS740の処理へ移行する。   In the process of S730, attenuation of the output value of the musical sound is started and the sound is muted. Specifically, when the musical sound is output from the speaker 19 based on the pitch specified by the key code stored together with the information that the key switch contact is turned off in a predetermined area of the RAM 12, FIG. As shown in (a), the TG 14 and the DSP 16 are controlled to start attenuation of the output value of the musical sound and stop the output after the output time after the key is pressed after it is determined that the key is pressed. When the process of S730 is completed, the process proceeds to S740.

S740の処理においては、その他の定常処理を実行する。具体的には、例えばスピーカ19から音声により出力している場合には、TG14が種々の波形データを格納している波形メモリ15から読み込んだ波形データに基づいて楽音波形及び効果音波形を生成してDSP16に出力し、DSP16がTG14によって出力された楽音波形及び効果音波形にエフェクト付与してD/A17に出力するなどその他の定常処理を実行する。S740の処理が終了したらリターンする。   In the process of S740, other steady processes are executed. Specifically, for example, when outputting from the speaker 19 by voice, the TG 14 generates a musical sound waveform and an effect sound waveform based on the waveform data read from the waveform memory 15 storing various waveform data. The DSP 16 outputs to the DSP 16, and the DSP 16 executes other steady processing such as applying an effect to the musical sound waveform and the effect sound waveform output by the TG 14 and outputting to the D / A 17. When the process of S740 ends, the process returns.

[10.効果の説明]
(1)本実施形態の電子オルガン1によれば、次のような作用効果を奏する。すなわち、CPU10は、押鍵されたと判断してからROM11に設けられたタイムレジスタ12aにセットした数値に対応する押鍵後出力時間が経過することにより、スタッカート演奏であると判断した場合には(S720:YES)、スピーカ19から出力中の楽音を、TG14、及びDSP16を制御して楽音の出力値の減衰を開始して出力を停止させる(S730)。なお、この押鍵後出力時間は、スタッカート演奏されたときに、押鍵により出力された楽音を、離鍵から楽音の音量値が減衰を開始するまでの遅延時間が経過した後に楽音の出力の減衰を開始して消音するように設定されている。そのため、スタッカート演奏されたときには、押鍵により出力された楽音を、離鍵から遅延時間が経過した後に楽音の出力の減衰を開始して消音する。したがって、スタッカート演奏されたときに出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づけることができるので、演奏者にアコースティックピアノで演奏したときに近い印象を与えることができる。
[10. Explanation of effect]
(1) According to the electronic organ 1 of the present embodiment, the following operational effects can be obtained. That is, when the CPU 10 determines that the key has been pressed and the output time after key pressing corresponding to the value set in the time register 12a provided in the ROM 11 has elapsed, it is determined that the staccato performance is ( S720: YES), the musical sound being output from the speaker 19 is controlled by the TG 14 and DSP 16 to start attenuation of the output value of the musical sound, and the output is stopped (S730). Note that the output time after the key press is the same as the output of the tone after the delay time from the release of the key to the start of the decay of the tone volume value. It is set to start attenuation and mute. For this reason, when the staccato performance is performed, the musical sound output by the key depression is muted by starting the attenuation of the musical sound output after a delay time elapses from the key release. Therefore, since the musical sound output when the staccato performance is performed can be brought close to the musical sound generated when the staccato performance is performed on the acoustic piano, it is possible to give the performer a close impression when the acoustic piano is performed.

(2)また、本実施形態の電子オルガン1によれば、次のような作用効果を奏する。すなわち、楽音の音色の種類を示す音色データと音域を示す音域データと音色データそれぞれにおける音域データそれぞれに対応する押鍵後出力時間データとを関連付けたデータ押鍵後出力時間関連データが、ROM11に記録されている。そして、CPU10は、選択された楽音の音色の種類を示す音色データと押鍵された鍵210の音域を示す音域データとを含み、ROM11に記憶されている押鍵後出力時間関連データにおける押鍵後出力時間データを読み出す(S430)。したがって、スタッカート演奏されたときに、楽音の音色の種類と押鍵された鍵210の音域とに関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から楽音の音色の種類と押鍵された鍵210の音域とに対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者に設定された楽音の音色の種類が対応する楽器で演奏したときにより近い印象を与えることができる。   (2) Moreover, according to the electronic organ 1 of this embodiment, there exist the following effects. That is, the post-key-pressing output time-related data in which the tone-tone data indicating the tone type of the musical tone, the tone range data indicating the tone range, and the key-pressing output time data corresponding to the tone range data in each tone color data are associated with the ROM 11. It is recorded. Then, the CPU 10 includes tone color data indicating the tone type of the selected musical tone and tone range data indicating the range of the key 210 that has been pressed, and the key press in the post-key press output time related data stored in the ROM 11. The post-output time data is read (S430). Therefore, when a staccato performance is performed, when the same delay time elapses from the key release regardless of the type of tone color of the musical tone and the range of the key 210 pressed, the output of the musical tone starts to be attenuated and muted. Compared with the key release, since the tone output starts to decay after the delay time corresponding to the tone color of the tone from the key release and the range of the key 210 pressed, the sound is muted and set to the performer. You can give a closer impression when you play with a musical instrument that corresponds to the type of tone you want.

[11.他の実施形態]
以上、本発明の一実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、以下のような様々な態様にて実施することができる。
[11. Other Embodiments]
As mentioned above, although one Embodiment of this invention was described, this invention is not limited to the said embodiment, It can implement in the following various aspects.

(1)上記実施形態の電子オルガン1では、楽音の音色の種類を示す音色データと音域を示す音域データと音色データそれぞれにおける音域データそれぞれに対応する押鍵後出力時間データとを関連付けた押鍵後出力時間関連データが、ROM11に記録されているが、これには限らない。楽音の音色の種類を示す音色データと音色データそれぞれに対応する押鍵後出力時間データとを関連付けた押鍵後出力時間関連データが、ROM11に記録されていてもよい。このように構成された実施形態によれば、楽器それぞれに対応する楽音の音色の種類が設定されることによって、その設定された楽音の音色の種類と関連付けられて記憶されている押鍵後出力時間を読み出すことができる。したがって、スタッカート演奏されたときに、楽音の音色の種類に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から楽音の音色の種類に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者に設定された楽音の音色の種類が対応する楽器で演奏したときに近い印象を与えることができる。   (1) In the electronic organ 1 of the above-described embodiment, the key depression in which the tone color data indicating the tone color type of the musical tone, the tone range data indicating the tone range, and the post-key press output time data corresponding to each tone range data in each tone color data are associated. Although the post-output time related data is recorded in the ROM 11, it is not limited to this. The post-key-pressing output time-related data in which the timbre data indicating the tone color of the musical tone and the post-key-pressing output time data corresponding to each timbre data may be recorded in the ROM 11. According to the embodiment configured as described above, by setting the tone type of the musical tone corresponding to each musical instrument, the post-keypress output stored in association with the set musical tone color type is stored. The time can be read out. Therefore, when a staccato performance is performed, the sound output from the key release to the sound is reduced compared to the case where the output of the music sound begins to decay after the same delay time has elapsed from the key release regardless of the tone type of the music. After the delay time corresponding to the tone type has elapsed, the music output begins to decay and mute, so that the musician's tone type set to the performer has a similar impression when playing with the corresponding instrument. Can do.

また、音域を示す音域データと音域データそれぞれに対応する押鍵後出力時間データとを関連付けた押鍵後出力時間関連データが、ROM11に記録されていてもよい。このように構成された実施形態によれば、押鍵された鍵210の音域を抽出し、その抽出された音域と関連付けられて記憶されている押鍵後出力時間を読み出すことができる。したがって、スタッカート演奏されたときに、押鍵された鍵210の音域に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から押鍵された鍵210の音域に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者にアコースティックピアノで演奏したときにより近い印象を与えることができる。   Further, post-key-pressing output time related data in which the tone range data indicating the tone range and post-key-pressing output time data corresponding to each of the tone range data are associated may be recorded in the ROM 11. According to the embodiment configured as described above, it is possible to extract the tone range of the depressed key 210 and read the output time after the key depression stored in association with the extracted tone range. Therefore, when the staccato performance is performed, the key release is compared with the case where the decay of the output of the musical sound is started and muted after the same delay time has elapsed from the key release regardless of the key range of the key 210 pressed. Since the decay of the output of the musical sound is started and the sound is muted after the delay time corresponding to the key range of the key 210 pressed from has elapsed, it is possible to give the player a closer impression when playing on the acoustic piano.

さらに、押鍵された鍵210のキーコードと鍵210のキーコードそれぞれに対応する押鍵後出力時間データとを関連付けた押鍵後出力時間関連データが、ROM11に記録され、CPU10が、押鍵された鍵210のキーコードを抽出し、その抽出された鍵210のキーコードと関連付けられて記憶されている押鍵後出力時間を読み出すようにしてもよい。このように構成された実施形態によれば、押鍵された鍵210のキーコードを抽出し、その抽出された鍵210のキーコードと関連付けられて記憶されている押鍵後出力時間を読み出すことができる。したがって、スタッカート演奏されたときに、押鍵された鍵210のキーコードに関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から押鍵された鍵210のキーコードに対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、さらに演奏者にアコースティックピアノで演奏したときにより近い印象を与えることができる。   Further, post-key press output time related data in which the key code of the pressed key 210 and the post-key press output time data corresponding to each key code of the key 210 are recorded in the ROM 11, and the CPU 10 presses the key press. The key code of the extracted key 210 may be extracted, and the post-keypress output time stored in association with the extracted key code of the key 210 may be read. According to the embodiment configured as described above, the key code of the key 210 that has been pressed is extracted, and the post-key press output time that is stored in association with the key code of the extracted key 210 is read out. Can do. Therefore, when a staccato performance is performed, the release of the tone output is started after the same delay time has elapsed from the release of the key regardless of the key code of the depressed key 210, as compared to the case where the sound output is attenuated and muted. After the delay time corresponding to the key code of the key 210 pressed from the key elapses, the decay of the output of the musical sound is started and the sound is muted, so that it is possible to give the player a closer impression when playing on the acoustic piano. it can.

(2)上記実施形態の電子オルガン1では、図3(a)に示すように、CPU10が、押鍵されたと判断してから押鍵後出力時間が経過することにより、スタッカート演奏であると判断した場合には(S720:YES)、スピーカから出力中の楽音を、音源回路、デジタル信号処理回路を制御して楽音の出力値の減衰を開始して出力を停止させるが(S730)、これには限らない。離鍵されたと判断してから、音色の種類や音域に応じて設定された離鍵後出力時間が経過した後に、CPU10が、スピーカ19から出力中の楽音を、TG14、及びDSP16を制御して楽音の出力値の減衰を開始して出力を停止させてもよい。   (2) In the electronic organ 1 of the above-described embodiment, as shown in FIG. 3A, the CPU 10 determines that the staccato performance is performed when the output time after the key pressing has elapsed after determining that the key has been pressed. If this is the case (S720: YES), the tone output from the speaker is controlled by the tone generator circuit and digital signal processing circuit to start attenuation of the output value of the tone and stop the output (S730). Is not limited. After determining that the key has been released and after the output time after key release set according to the type and range of the timbre has elapsed, the CPU 10 controls the TG 14 and DSP 16 to output the musical sound being output from the speaker 19. The attenuation of the output value of the musical sound may be started and the output may be stopped.

具体的には、図10(a)に例示するような離鍵後出力時間データが記憶される離鍵後出力時間データのメモリ領域をROM11に設け、離鍵後の時間に対応する数値を記憶するタイムレジスタ12d(図示せず)をRAM12に設け、CPU10がタイマ10b(図示せず)を有するように構成する。この離鍵後出力時間とは、押鍵により出力された楽音を、離鍵から楽音の音量値が減衰を開始するまでの遅延時間が経過した後に楽音の出力の減衰を開始して消音するように設定されている。また、このタイマ10bは、CPU10によるタイマスタート指令に応答して一定周期で割込信号を発生し、CPU10によるタイマストップ指令に応答して割込信号の発生を停止する。そして、CPU10は、ROM11内に記憶されたプログラムに従って、上述した押鍵処理(1)、離鍵処理(1)、及びタイマ10a割込処理(1)それぞれに代えて後述する押鍵処理(2)、離鍵処理(2)、及びタイマ10b割込処理(2)それぞれを実行する。   Specifically, the memory area of the post-key release output time data in which the post-key release output time data is stored as illustrated in FIG. 10A is provided in the ROM 11, and a numerical value corresponding to the time after the key release is stored. A time register 12d (not shown) is provided in the RAM 12 so that the CPU 10 has a timer 10b (not shown). The output time after key release means that the tone output from the key press is muted by starting the decay of the tone output after the delay time from the key release until the tone volume value starts decaying. Is set to The timer 10b generates an interrupt signal at a constant period in response to a timer start command from the CPU 10, and stops generating an interrupt signal in response to a timer stop command from the CPU 10. Then, according to the program stored in the ROM 11, the CPU 10 replaces each of the above-described key pressing process (1), key release process (1), and timer 10a interrupt process (1) with a key pressing process (2 described later). ), A key release process (2), and a timer 10b interrupt process (2).

図10(a)はROM11に設けられたメモリ領域を示す説明図であり、図10(b)は離鍵後出力時間関連データのメモリ領域(1)121を示す説明図であり、図10(c)は離鍵後出力時間関連データのメモリ領域(2)122を示す説明図であり、図10(d)は離鍵後出力時間関連データのメモリ領域(3)123を示す説明図である。   FIG. 10A is an explanatory view showing a memory area provided in the ROM 11, and FIG. 10B is an explanatory view showing a memory area (1) 121 of post-key release output time related data. FIG. 10C is an explanatory diagram showing a memory area (2) 122 of output time related data after key release, and FIG. 10D is an explanatory diagram showing a memory area (3) 123 of output time related data after key release. .

ROM11には、図10(a)に示すように、離鍵後出力時間関連データのメモリ領域(1)121、離鍵後出力時間関連データのメモリ領域(2)122、及び離鍵後出力時間関連データのメモリ領域(3)123などが設けられている。離鍵後出力時間関連データのメモリ領域(1)121には、図10(b)に示すように、本実施形態ではアコースティックピアノにおいて演奏されたときに発する楽音の音色の種類を示す音色データ(A1)に対応する離鍵後出力時間関連データが記録されている。離鍵後出力時間関連データのメモリ領域(2)122には、図10(c)に示すように、本実施形態ではハープシコードにおいて演奏されたときに発する楽音の音色の種類を示す音色データ(A2)に対応する押鍵後出力時間関連データが記録されている。離鍵後出力時間関連データのメモリ領域(3)123には、図10(d)に示すように、本実施形態ではオルガンにおいて演奏されたときに発する楽音の音色の種類を示す音色データ(A3)に対応する離鍵後出力時間関連データが記録されている。以下離鍵後出力時間関連データを説明する。   As shown in FIG. 10A, the ROM 11 includes a memory area (1) 121 for post-key release output time related data, a memory area (2) 122 for post-key release output time related data, and an output time after key release. A memory area (3) 123 for related data is provided. In the memory area (1) 121 of the output time-related data after key release, as shown in FIG. 10B, in this embodiment, timbre data indicating the type of timbre of a musical tone generated when played on an acoustic piano ( The post-key-release output time related data corresponding to A1) is recorded. In the memory area (2) 122 of the post-key release output time-related data, as shown in FIG. 10C, in this embodiment, tone data (A2) indicating the tone type of the tone generated when played in the harpsichord. ), The output time related data after key press is recorded. In the memory area (3) 123 of post-key release output time related data, as shown in FIG. 10 (d), in this embodiment, tone data (A3) indicating the tone type of a musical tone generated when played on an organ. ) Is output data related to the output time after key release corresponding to. The post-key release output time related data will be described below.

(ロ)離鍵後出力時間関連データ
離鍵後出力時間関連データは、楽音の音色の種類と楽音の音高の値である音高値に基づいて区分けされた音域と楽音の音色の種類それぞれにおける音域それぞれに対応する離鍵後出力時間とを関連付けたデータであり、押鍵により出力された楽音を、楽音の出力の減衰を開始して消音する際に用いられる。この離鍵後出力時間は、押鍵により出力された楽音を、離鍵から楽音の音量値が減衰を開始するまでの遅延時間が経過した後に楽音の出力の減衰を開始して消音するように設定されている。この離鍵後出力時間関連データは、図10(b)、図10(c)、及び図10(d)に示すように、楽音の音色の種類を示す音色データ(A1〜A3)と音域を示す音域データ(B1〜Bn)と離鍵後出力時間を示す押鍵後出力時間データ(D11〜D3n)とを関連付けている。一例を挙げると、図10(b)に示すように、楽音の音色の種類を示す音色データ(A1)と音域を示す音域データ(B1)と離鍵後出力時間を示す押鍵後出力時間データ(D11)とを関連付けている離鍵後出力時間関連データは、離鍵後出力時間関連データのメモリ領域(1)121(1)に記憶されている。
(B) Output time related data after key release The output time related data after key release is for each of the types of musical tones and musical tones that are divided based on the tone value and the pitch value that is the pitch value of the musical tone. This data is associated with the post-key release output time corresponding to each of the ranges, and is used when the musical sound output by the key depression is muted by starting to attenuate the output of the musical sound. The output time after the key release is such that the tone output from the key press is muted by starting the decay of the tone output after the delay time from the key release until the tone volume value starts to decay. Is set. As shown in FIGS. 10 (b), 10 (c), and 10 (d), the post-key release output time related data includes tone color data (A1 to A3) indicating the tone type of a musical tone and a tone range. The indicated range data (B1 to Bn) and the post-key press output time data (D11 to D3n) indicating the post-key release output time are associated with each other. As an example, as shown in FIG. 10B, tone color data (A1) indicating the type of tone color of the musical tone, tone range data (B1) indicating the tone range, and output time data after key depression indicating the output time after key release. The post-key output time related data associated with (D11) is stored in the memory area (1) 121 (1) of the post-key output time related data.

[電子オルガン1のCPU10が実行する押鍵処理(2)の説明]
次に、電子オルガン1のCPU10が実行する押鍵処理(2)の手順を図8(a)のフローチャートに基づいて説明する。本処理は、キーイベント処理のS330の処理へ移行した際に実行される。
[Description of Key-Pressing Process (2) Performed by CPU 10 of Electronic Organ 1]
Next, the procedure of the key pressing process (2) executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. This process is executed when the process proceeds to S330 of the key event process.

まず、選択された楽音の音色の種類を取り込む(S810)。具体的には、操作パネル30によってバスライン50に送出された音色スイッチ320aを介して選択された楽音の音色の種類を示す音色データを取り込む。S810の処理が終了したらS820の処理へ移行する。   First, the type of tone color of the selected musical tone is captured (S810). Specifically, timbre data indicating the timbre type of the musical tone selected via the timbre switch 320a sent to the bus line 50 by the operation panel 30 is captured. When the process of S810 is completed, the process proceeds to S820.

S820の処理においては、押鍵された鍵210に対応するキーコードが指定する音高に対応する音高値が存在する音域を抽出する。具体的には、RAM12の所定の領域に鍵スイッチの接点がオンされた旨の情報とともに記憶されているキーコードが指定する音高に対応する音高値が存在する音域を抽出する。S820の処理が終了したらS830の処理へ移行する。   In the process of S820, a pitch range in which a pitch value corresponding to the pitch specified by the key code corresponding to the depressed key 210 is extracted is extracted. Specifically, a pitch range in which a pitch value corresponding to a pitch specified by a key code stored together with information indicating that the contact of the key switch is turned on in a predetermined area of the RAM 12 exists is extracted. When the process of S820 is completed, the process proceeds to S830.

S830の処理においては、選択された楽音の音色の種類と押鍵された鍵210の音域とから離鍵後出力時間を読み出す。具体的には、S810の処理によって取り込まれた楽音の音色の種類を示す音色データとS820の処理によって抽出された音域を示す音域データとを含み、ROM11に記憶されている離鍵後出力時間関連データにおける離鍵後出力時間データを読み出す。なお、詳細に説明すると、離鍵後出力時間関連データは、ROM11に設けられた離鍵後出力時間関連データのメモリ領域(1)121、離鍵後出力時間関連データのメモリ領域(2)122、及び離鍵後出力時間関連データのメモリ領域(3)123に記憶されている。S830の処理が終了したらS840の処理へ移行する。   In the process of S830, the output time after key release is read out from the tone color type of the selected musical tone and the range of the key 210 pressed. Specifically, the output time after key release including the timbre data indicating the tone color of the musical tone captured by the processing of S810 and the timbre data indicating the timbre extracted by the processing of S820 and stored in the ROM 11 Reads output time data after key release in data. More specifically, the post-key release output time related data includes the post-key release output time related data memory area (1) 121 and the post-key release output time related data memory area (2) 122 provided in the ROM 11. , And post-key release output time related data is stored in the memory area (3) 123. When the process of S830 is completed, the process proceeds to S840.

S840の処理においては、タイムレジスタ12dに離鍵後出力時間に対応する数値をセットする。具体的には、RAM12には、タイムレジスタ12dが設けられており、このタイムレジスタ12dにS830の処理において読み出した離鍵後出力時間データが示す離鍵後出力時間に対応する数値を記憶する。この離鍵後出力時間に対応する数値とは、例えば離鍵後出力時間が30msであり、タイマ10bから発生される割込信号の周期が2msの場合には、30msの数値「30」を2msの数値「2」で除算して算出した数値「15」を言う。S840の処理が終了したらS850の処理へ移行する。   In the process of S840, a numerical value corresponding to the output time after key release is set in the time register 12d. Specifically, the RAM 12 is provided with a time register 12d, and a numerical value corresponding to the post-key release output time indicated by the post-key release output time data read in the processing of S830 is stored in the time register 12d. The numerical value corresponding to the output time after the key release is, for example, the output time after the key release is 30 ms, and when the period of the interrupt signal generated from the timer 10b is 2 ms, the numerical value “30” of 30 ms is set to 2 ms. The numerical value “15” calculated by dividing by the numerical value “2”. When the process of S840 is completed, the process proceeds to S850.

S850の処理においては、スピーカ19から発音する。具体的には、TG14、及びDSP16を制御してRAM12の所定の領域に鍵スイッチの接点がオンされた旨の情報とともに記憶されているキーコードが指定する音高に基づいてスピーカ19から楽音を出力させる。S850の処理が終了したらリターンする。   In the process of S850, sound is generated from the speaker 19. Specifically, the TG 14 and the DSP 16 are controlled, and a musical sound is output from the speaker 19 based on the pitch specified by the key code stored together with information that the key switch contact is turned on in a predetermined area of the RAM 12. Output. When the process of S850 is completed, the process returns.

[電子オルガン1のCPU10が実行する離鍵処理(2)の説明]
次に、電子オルガン1のCPU10が実行する離鍵処理(2)の手順を図8(b)のフローチャート、図9(a)に基づいて説明する。本処理は、キーイベント処理のS340の処理へ移行した際に実行される。図9(a)は押下時間と離鍵後出力時間との関係を示す説明図である。
[Description of Key Release Process (2) Performed by CPU 10 of Electronic Organ 1]
Next, the procedure of the key release process (2) executed by the CPU 10 of the electronic organ 1 will be described based on the flowchart of FIG. 8B and FIG. 9A. This process is executed when the process proceeds to S340 of the key event process. FIG. 9A is an explanatory diagram showing the relationship between the pressing time and the post-key release output time.

まず、タイマ10bを起動する(S910)。具体的には、CPU10は、タイマ10bを有しており、このタイマ10bは、タイマスタート指令に応答して一定周期で割込信号を発生し、タイマストップ指令に応答して割込信号の発生を停止する。そして、タイマ10bにタイマスタート指令を送る。これにより、タイマ10bは動作を開始する。以後は、一定周期でタイマ10bから割込信号が発生されるので、タイマ10b割込処理(2)を実行する。このタイマ10b割込処理(2)については後述する。S910の処理が終了したらS920の処理へ移行する。   First, the timer 10b is started (S910). Specifically, the CPU 10 has a timer 10b. The timer 10b generates an interrupt signal at a constant period in response to a timer start command, and generates an interrupt signal in response to a timer stop command. To stop. Then, a timer start command is sent to the timer 10b. Thereby, the timer 10b starts operation. Thereafter, since an interrupt signal is generated from the timer 10b at a constant cycle, the timer 10b interrupt process (2) is executed. The timer 10b interrupt process (2) will be described later. When the process of S910 is completed, the process proceeds to S920.

S920の処理においては、RAM12に設けられたタイムレジスタ12dに記憶された数値が数値「0」か否かを判断する。具体的には、タイムレジスタ12dに記憶された数値が数値「0」であると判断した場合には(S920:YES)、図9(a)に示すように、離鍵されたと判断してから離鍵後出力時間が経過したと判断し、S930の処理へ移行する。一方、タイムレジスタ12dに記憶された数値が数値「0」でないと判断した場合には(S920:NO)、離鍵後出力時間が経過していないと判断し、S940の処理へ移行する。   In the process of S920, it is determined whether or not the numerical value stored in the time register 12d provided in the RAM 12 is a numerical value “0”. Specifically, when it is determined that the numerical value stored in the time register 12d is the numerical value “0” (S920: YES), it is determined that the key has been released as shown in FIG. 9A. It is determined that the output time after the key release has elapsed, and the process proceeds to S930. On the other hand, when it is determined that the numerical value stored in the time register 12d is not the numerical value “0” (S920: NO), it is determined that the output time after the key release has not elapsed, and the process proceeds to S940.

S930の処理においては、楽音の出力値の減衰を開始して消音する。具体的には、RAM12の所定の領域に鍵スイッチの接点がオフされた旨の情報とともに記憶されているキーコードが指定する音高に基づいてスピーカ19から楽音を出力させていたときには、図3(b)に示すように、離鍵されたと判断してからTG14、及びDSP16を制御して楽音の出力値の減衰を開始して出力を停止させる。S930の処理が終了したらリターンする。   In the process of S930, attenuation of the output value of the musical sound is started and the sound is muted. Specifically, when the musical sound is output from the speaker 19 based on the pitch specified by the key code stored together with the information that the key switch contact is turned off in a predetermined area of the RAM 12, FIG. As shown in (b), after determining that the key is released, the TG 14 and DSP 16 are controlled to start attenuation of the output value of the musical sound and stop the output. When the process of S930 ends, the process returns.

S940の処理においては、フラグをセットする。具体的には、具体的には、RAM12には、タイムレジスタ12dに記憶された数値が数値「0」ではないことを示すフラグを記憶可能なフラグレジスタ12eが設けられており、このフラグレジスタ12eにタイムレジスタ12dに記憶された数値が数値「0」ではないことを示すフラグを記憶する。S940の処理が終了したらリターンする。   In the process of S940, a flag is set. Specifically, the RAM 12 is provided with a flag register 12e capable of storing a flag indicating that the numerical value stored in the time register 12d is not the numerical value “0”. The flag register 12e A flag indicating that the numerical value stored in the time register 12d is not the numerical value “0” is stored. When the process of S940 ends, the process returns.

[電子オルガン1のCPU10が実行するタイマ10b割込処理(2)の説明]
次に、電子オルガン1のCPU10が実行するタイマ10b割込処理(2)の手順を図8(c)のフローチャートに基づいて説明する。本処理は、離鍵処理(2)のS910の処理へ移行した際に、タイマ10bから一定周期で発生される割込信号に応答して起動される。
[Description of timer 10b interrupt process (2) executed by CPU 10 of electronic organ 1]
Next, the procedure of the timer 10b interrupt process (2) executed by the CPU 10 of the electronic organ 1 will be described with reference to the flowchart of FIG. This process is started in response to an interrupt signal generated at a constant cycle from the timer 10b when the process proceeds to S910 of the key release process (2).

まず、タイムレジスタ12dに記憶された数値をデクリメントする(S9110)。具体的には、RAM12に設けられたタイムレジスタ12dに記憶された数値から数値「1」を減算した数値を記憶する。S9110の処理が終了したらS9120の処理へ移行する。   First, the numerical value stored in the time register 12d is decremented (S9110). Specifically, a numerical value obtained by subtracting the numerical value “1” from the numerical value stored in the time register 12 d provided in the RAM 12 is stored. When the process of S9110 is completed, the process proceeds to S9120.

S9120の処理においては、タイムレジスタ12dに記憶された数値が数値「0」以下か否かを判断する。具体的には、RAM12に設けられたタイムレジスタ12dに記憶された数値が数値「0」以下か否かを判断する。タイムレジスタ12dに記憶された数値が数値「0」以下であると判断した場合には(S9120:YES)、S9130の処理へ移行する。一方、タイムレジスタ12dに記憶された数値が数値「0」以下ではないと判断した場合には、リターンする。   In the processing of S9120, it is determined whether or not the numerical value stored in the time register 12d is equal to or smaller than the numerical value “0”. Specifically, it is determined whether or not the numerical value stored in the time register 12d provided in the RAM 12 is equal to or smaller than the numerical value “0”. When it is determined that the numerical value stored in the time register 12d is equal to or smaller than the numerical value “0” (S9120: YES), the process proceeds to S9130. On the other hand, if it is determined that the numerical value stored in the time register 12d is not equal to or smaller than the numerical value “0”, the process returns.

S9130の処理においては、タイムレジスタ12dに数値「0」をセットする。具体的には、RAM12に設けられたタイムレジスタ12dに数値「0」を記憶する。S9130の処理が終了したらリターンする。   In the processing of S9130, a numerical value “0” is set in the time register 12d. Specifically, the numerical value “0” is stored in the time register 12 d provided in the RAM 12. When the process of S9130 is completed, the process returns.

このように構成された実施形態によれば、押鍵により出力された楽音を、離鍵から遅延時間が経過した後に楽音の出力の減衰を開始して消音する。したがって、押鍵により出力する楽音をアコースティックピアノにおいてスタッカート演奏されたときに発する楽音に近づけることができるので、演奏者にアコースティックピアノで演奏したときに近い印象を与えることができる。   According to the embodiment configured as described above, the musical sound output by the key depression is muted by starting the attenuation of the musical sound output after the delay time has elapsed from the key release. Therefore, since the musical sound output by pressing the key can be brought close to the musical sound generated when the staccato performance is performed on the acoustic piano, it is possible to give the player a close impression when the musical instrument is played on the acoustic piano.

(3)上記他の実施形態(2)の電子オルガン1では、楽音の音色の種類を示す音色データと音域を示す音域データと音色データそれぞれにおける音域データそれぞれに対応する離鍵後出力時間データとを関連付けた離鍵後出力時間関連データが、ROM11に記録されているが、これには限らない。楽音の音色の種類を示す音色データと音色データそれぞれに対応する離鍵後出力時間データとを関連付けた離鍵後出力時間関連データが、ROM11に記録されていてもよい。このように構成された実施形態によれば、楽器それぞれに対応する楽音の音色の種類が設定されることによって、その設定された楽音の音色の種類と関連付けられて記憶されている離鍵後出力時間を読み出すことができる。したがって、楽音の音色の種類に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から楽音の音色の種類に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者に設定された楽音の音色の種類が対応する楽器で演奏したときに近い印象を与えることができる。   (3) In the electronic organ 1 of the other embodiment (2), the tone color data indicating the tone color type of the musical tone, the tone range data indicating the tone range, and the post-key-release output time data corresponding to the tone range data in each tone color data, Is stored in the ROM 11, but the present invention is not limited to this. The post-key-release output time related data in which the timbre data indicating the tone color of the musical tone and the post-key-release output time data corresponding to each timbre data may be recorded in the ROM 11. According to the embodiment configured as described above, by setting the tone color type corresponding to each musical instrument, the post-key-release output stored in association with the set tone color type. The time can be read out. Therefore, the delay corresponding to the tone color of the musical tone from the key release is compared to the case where the decay of the output of the musical tone is started and muted after the same delay time from the key release regardless of the tone color of the musical tone. Since the decay of the musical sound output starts after the passage of time and the sound is muted, it is possible to give an impression close to that when the musical instrument is set to the corresponding musical tone type.

また、音域を示す音域データと音域データそれぞれに対応する離鍵後出力時間データとを関連付けた離鍵後出力時間関連データが、ROM11に記録されていてもよい。このように構成された実施形態によれば、押鍵された鍵210の音域を抽出し、その抽出された音域と関連付けられて記憶されている離鍵後出力時間を読み出すことができる。したがって、押鍵された鍵210の音域に関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から押鍵された鍵210の音域に対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、演奏者にアコースティックピアノで演奏したときにより近い印象を与えることができる。   Further, post-key-release output time-related data in which the range data indicating the range and the post-key-release output time data corresponding to each of the range data may be recorded in the ROM 11. According to the embodiment configured as described above, the tone range of the depressed key 210 can be extracted, and the post-key-release output time stored in association with the extracted tone range can be read. Therefore, the key 210 pressed from the released key is compared with the case where the decay of the output of the musical sound is started and muted after the same delay time has elapsed from the released key regardless of the key range of the depressed key 210. Since the decay of the output of the musical sound is started and the sound is muted after the delay time corresponding to the sound range elapses, it is possible to give a closer impression to the performer when playing with the acoustic piano.

さらに、押鍵された鍵210のキーコードと鍵210のキーコードそれぞれに対応する離鍵後出力時間データとを関連付けた離鍵後出力時間関連データが、ROM11に記録され、CPU10が、押鍵された鍵210のキーコードを抽出し、その抽出された鍵210のキーコードと関連付けられて記憶されている離鍵後出力時間を読み出すようにしてもよい。このように構成された実施形態によれば、押鍵された鍵210のキーコードを抽出し、その抽出された鍵210のキーコードと関連付けられて記憶されている離鍵後出力時間を読み出すことができる。したがって、押鍵された鍵210のキーコードに関わりなく離鍵から同一の遅延時間が経過した後に楽音の出力の減衰を開始して消音する場合と比較して、離鍵から押鍵された鍵210のキーコードに対応する遅延時間が経過した後に楽音の出力の減衰を開始して消音するので、さらに演奏者にアコースティックピアノで演奏したときにより近い印象を与えることができる。   Further, post-key release output time related data in which the key code of the key 210 pressed and the post-key release output data corresponding to each key code of the key 210 are recorded in the ROM 11, and the CPU 10 presses the key press. The key code of the extracted key 210 may be extracted, and the post-key-release output time stored in association with the key code of the extracted key 210 may be read. According to the embodiment configured as described above, the key code of the depressed key 210 is extracted, and the output time after the key release stored in association with the extracted key code of the key 210 is read out. Can do. Therefore, the key pressed from the released key is compared with the case where the decay of the output of the musical sound is started and the sound is muted after the same delay time has elapsed from the released key regardless of the key code of the depressed key 210. After the delay time corresponding to the key code 210 has elapsed, the decay of the output of the musical sound is started and the sound is muted, so that it is possible to give the player a closer impression when playing on the acoustic piano.

(4)上記実施形態の電子オルガン1では、楽音の音色の種類を示す音色データ(A1〜A3)は三つであるが、これには限らない。音色データは、一つ以上であればよく、音色スイッチ320aによって選択可能な種類数に対応するとよい。このように構成された実施形態によれば、上記実施形態の電子オルガン1と同様の作用効果を奏する。   (4) In the electronic organ 1 of the above embodiment, there are three timbre data (A1 to A3) indicating the types of timbres of musical tones, but the present invention is not limited to this. The timbre data may be one or more and may correspond to the number of types that can be selected by the timbre switch 320a. According to the embodiment configured as described above, the same operational effects as those of the electronic organ 1 of the above-described embodiment can be obtained.

(a)は電子オルガン1の構成を示すブロック図であり、(b)は電子オルガン1を上方から見た外観図であり、(c)は(b)における操作パネル30を拡大して示す説明図である。(A) is a block diagram showing a configuration of the electronic organ 1, (b) is an external view of the electronic organ 1 as viewed from above, and (c) is an explanation showing an enlarged operation panel 30 in (b). FIG. (a)はROM11に設けられたメモリ領域を示す説明図であり、(b)は押鍵後出力時間関連データのメモリ領域(1)111を示す説明図であり、(c)は押鍵後出力時間関連データのメモリ領域(2)112を示す説明図であり、(d)は押鍵後出力時間関連データのメモリ領域(3)113を示す説明図である。(A) is explanatory drawing which shows the memory area provided in ROM11, (b) is explanatory drawing which shows memory area (1) 111 of the output time related data after key pressing, (c) is after key pressing It is explanatory drawing which shows the memory area (2) 112 of output time related data, (d) is explanatory drawing which shows the memory area (3) 113 of output time related data after key pressing. (a)は押下時間と押鍵後出力時間との関係を示す説明図であり、(b)は押下時間と押鍵後出力時間との関係を示す説明図である。(A) is explanatory drawing which shows the relationship between pressing time and the output time after key pressing, (b) is explanatory drawing which shows the relationship between pressing time and the output time after key pressing. (a)は電子オルガン1のCPU10が実行するメイン処理の手順を示すフローチャートであり、(b)は電子オルガン1のCPU10が実行するイベント処理の手順を示すフローチャートである。(A) is a flowchart which shows the procedure of the main process which CPU10 of the electronic organ 1 performs, (b) is a flowchart which shows the procedure of the event process which CPU10 of the electronic organ 1 performs. (a)は電子オルガン1のCPU10が実行するキーイベント処理の手順を示すフローチャートであり、(b)は電子オルガン1のCPU10が実行する押鍵処理(1)の手順を示すフローチャートである。(A) is a flowchart which shows the procedure of the key event process which CPU10 of the electronic organ 1 performs, (b) is a flowchart which shows the procedure of the key pressing process (1) which CPU10 of the electronic organ 1 performs. 電子オルガン1のCPU10が実行するタイマ10a割込処理(1)の手順を示すフローチャートである。It is a flowchart which shows the procedure of the timer 10a interruption process (1) which CPU10 of the electronic organ 1 performs. (a)は電子オルガン1のCPU10が実行する離鍵処理(1)の手順を示すフローチャートであり、(b)は電子オルガン1のCPU10が実行する定常処理の手順を示すフローチャートである。(A) is a flowchart which shows the procedure of the key release process (1) which CPU10 of the electronic organ 1 performs, (b) is a flowchart which shows the procedure of the steady process which CPU10 of the electronic organ 1 performs. (a)は他の実施形態の電子オルガン1のCPU10が実行する押鍵処理(2)の手順を示すフローチャートであり、(b)は他の実施形態の電子オルガン1のCPU10が実行する離鍵処理(2)の手順を示すフローチャートであり、(c)は他の実施形態の電子オルガン1のCPU10が実行するタイマ10b割込処理(2)の手順を示すフローチャートである。(A) is a flowchart which shows the procedure of the key pressing process (2) which CPU10 of the electronic organ 1 of other embodiment performs, (b) is the key release which CPU10 of the electronic organ 1 of other embodiment performs. It is a flowchart which shows the procedure of a process (2), (c) is a flowchart which shows the procedure of the timer 10b interruption process (2) which CPU10 of the electronic organ 1 of other embodiment performs. (a)は他の実施形態の電子オルガン1の押下時間と離鍵後出力時間との関係を示す説明図であり、(b)はアコースティックピアノにおいてスタッカート演奏されたときに発する楽音の音圧値を示す説明図である。(A) is explanatory drawing which shows the relationship between the pressing time of the electronic organ 1 of another embodiment, and the output time after a key release, (b) is a sound pressure value of the musical sound emitted when a staccato performance is performed in an acoustic piano. It is explanatory drawing which shows. (a)はROM11に設けられたメモリ領域を示す説明図であり、(b)は離鍵後出力時間関連データのメモリ領域(1)121を示す説明図であり、(c)は離鍵後出力時間関連データのメモリ領域(2)122を示す説明図であり、(d)は離鍵後出力時間関連データのメモリ領域(3)123を示す説明図である。(A) is explanatory drawing which shows the memory area provided in ROM11, (b) is explanatory drawing which shows the memory area (1) 121 of the output time related data after key release, (c) is after key release It is explanatory drawing which shows the memory area (2) 122 of output time related data, (d) is explanatory drawing which shows the memory area (3) 123 of output time related data after a key release.

符号の説明Explanation of symbols

1…電子オルガン、10…CPU、10a…タイマ、10b…タイマ、11…ROM、12…RAM、12a…タイムレジスタ、12c…フラグレジスタ、12d…タイムレジスタ、12e…フラグレジスタ、14…音源回路(TG)、15…波形メモリ、16…デジタル信号処理回路(DSP)、17…D/A変換回路(D/A)、18…スピーカ出力回路、19…スピーカ、20…鍵盤、210…鍵、30…操作パネル、50…システムバス、111…押鍵後出力時間関連データのメモリ領域(1)、112…押鍵後出力時間関連データのメモリ領域(2)、113…押鍵後出力時間関連データのメモリ領域(3)、121…離鍵後出力時間関連データのメモリ領域(1)、122…離鍵後出力時間関連データのメモリ領域(2)、123…離鍵後出力時間関連データのメモリ領域(3)、310…入力パネル、320…操作子、320a…音色スイッチ、330…表示パネル。   DESCRIPTION OF SYMBOLS 1 ... Electronic organ, 10 ... CPU, 10a ... Timer, 10b ... Timer, 11 ... ROM, 12 ... RAM, 12a ... Time register, 12c ... Flag register, 12d ... Time register, 12e ... Flag register, 14 ... Sound source circuit ( TG), 15 ... waveform memory, 16 ... digital signal processing circuit (DSP), 17 ... D / A conversion circuit (D / A), 18 ... speaker output circuit, 19 ... speaker, 20 ... keyboard, 210 ... key, 30 ... Operation panel, 50 ... System bus, 111 ... Memory area for output time related data after key press (1), 112 ... Memory area for output time related data after key press (2), 113 ... Output time related data after key press Memory area (3), 121... Memory area (1) of output time related data after key release, 122... Memory area (2), 12 of data related to output time after key release ... memory area (3) of the output time-related data after key-release, 310 ... input panel, 320 ... operating element, 320a ... tone switch, 330 ... display panel.

Claims (7)

押鍵を示す押鍵情報および離鍵を示す離鍵情報に基づき、前記押鍵により出力された楽音がスタッカート演奏であることを検出するスタッカート演奏検出手段と、
前記押鍵情報を取得してから楽音の出力の減衰を開始するまでの時間として予め設定されている押鍵後出力時間を記憶する押鍵後出力時間記憶手段と、
前記スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、前記押鍵後出力時間記憶手段に記憶されている前記押鍵後出力時間を読み出し、押鍵により出力された楽音を、前記押鍵情報を取得してから前記読み出した前記押鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段と、
を備えることを特徴とする電子楽器。
A staccato performance detection means for detecting that the musical sound output by the key depression is a staccato performance based on key depression information indicating key depression and key release information indicating key release;
An after-key-pressing output time storage means for storing a post-key-pressing output time set in advance as a time from when the key-pressing information is acquired until the decay of the output of the musical sound is started;
When the staccato performance detection means detects that the staccato performance is a staccato performance, the post-key press output time stored in the post-key press output time storage means is read, and the musical sound output by the key press is A musical sound silencer that starts attenuation of the output of the musical sound after the read output time after the key depression has elapsed after obtaining the key depression information;
An electronic musical instrument characterized by comprising:
請求項1に記載の電子楽器において、
さらに、楽音の音色の種類を設定する音色設定手段を備え、
前記押鍵後出力時間は、前記楽音の音色の種類それぞれに対応して予め設定されており、
前記押鍵後出力時間記憶手段は、前記楽音の音色の種類と前記楽音の音色の種類それぞれに対応する押鍵後出力時間とを関連付けて記憶し、
前記楽音消音手段は、前記スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、前記音色設定手段によって設定された楽音の音色の種類と関連付けられて前記押鍵後出力時間記憶手段に記憶されている前記押鍵後出力時間を読み出し、押鍵により出力された楽音を、前記押鍵情報を取得してから前記読み出した前記押鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音することを特徴とする電子楽器。
The electronic musical instrument according to claim 1,
Furthermore, a tone color setting means for setting the tone type of the musical tone is provided,
The output time after the key press is set in advance corresponding to each kind of tone color of the musical tone,
The after-key press output time storage means stores the tone color type of the musical tone and the post-key press output time corresponding to each tone type of the musical tone,
When the stuttering performance detecting means detects that the staccato performance detecting means is a staccato performance, the musical tone mute means associates with the tone type of the musical tone set by the timbre setting means and stores it in the post-keypress output time storage means. The stored output time after the key press is read, and the tone output by the key press after the key output information has been acquired and the read output time after the key press has elapsed is attenuated. Electronic musical instrument characterized by starting and muting.
請求項1に記載の電子楽器において、
前記押鍵情報には、音高を指定する音高指定情報が含まれており、
前記押鍵後出力時間は、楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されており、
前記押鍵後出力時間記憶手段は、前記音域と前記音域それぞれに対応する押鍵後出力時間とを関連付けて記憶し、
さらに、前記押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段を備え、
前記楽音消音手段は、前記スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、前記音域抽出手段によって抽出された音域と関連付けられて前記押鍵後出力時間記憶手段に記憶されている前記押鍵後出力時間を読み出し、押鍵により出力された楽音を、前記押鍵情報を取得してから前記読み出した前記押鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音することを特徴とする電子楽器。
The electronic musical instrument according to claim 1,
The key press information includes pitch designation information for designating a pitch,
The output time after the key press is set in advance corresponding to each of the ranges divided based on the pitch value which is the pitch value of the musical tone,
The post-key press output time storage means stores the sound range and the post-key press output time corresponding to each of the sound ranges in association with each other,
Furthermore, a pitch range extracting means for extracting a pitch range in which a pitch value corresponding to a pitch specified by the pitch specification information included in the key pressing information exists,
When the staccato performance detection means detects that the staccato performance detection means is a staccato performance, the musical tone mute means is associated with the range extracted by the range extraction means and stored in the post-keypress output time storage means. The output time after the key press is read out, and the tone output from the key press is started after the key output information has been acquired and the read out output time after the key press has elapsed. An electronic musical instrument characterized by mute.
請求項1に記載の電子楽器において、
さらに、楽音の音色の種類を設定する音色設定手段を備え、
前記押鍵情報には、音高を指定する音高指定情報が含まれており、
前記押鍵後出力時間は、前記楽音の音色の種類それぞれにおける楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されており、
前記押鍵後出力時間記憶手段は、前記楽音の音色の種類と前記音域と前記楽音の音色の種類それぞれにおける前記音域それぞれに対応する押鍵後出力時間とを関連付けて記憶し、
さらに、前記押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段を備え、
前記楽音消音手段は、前記スタッカート演奏検出手段がスタッカート演奏であることを検出した場合には、前記音色設定手段によって設定された楽音の音色の種類と前記音域抽出手段によって抽出された音域とに関連付けられて前記押鍵後出力時間記憶手段に記憶されている前記押鍵後出力時間を読み出し、押鍵により出力された楽音を、前記押鍵情報を取得してから前記読み出した前記押鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音することを特徴とする電子楽器。
The electronic musical instrument according to claim 1,
Furthermore, a tone color setting means for setting the tone type of the musical tone is provided,
The key press information includes pitch designation information for designating a pitch,
The output time after the key press is set in advance corresponding to each of the ranges divided based on the pitch value which is the value of the pitch of the musical tone in each of the musical tone types.
The post-key-pressing output time storage means stores the tone color type of the musical tone and the post-key-pressing output time corresponding to each of the tone ranges in the tone range and the tone color type of the tone,
Furthermore, a pitch range extracting means for extracting a pitch range in which a pitch value corresponding to a pitch specified by the pitch specification information included in the key pressing information exists,
When the musical tone mute means detects that the staccato performance detection means is a staccato performance, the musical tone mute means associates the musical tone color set by the tone color setting means with the tone range extracted by the tone range extraction means. The post-key-press output time stored in the post-key-press output time storage means is read, and the musical tone output by the key press is acquired after the key press information is acquired and the post-key-press output is read. An electronic musical instrument characterized in that after the elapse of time, the output of the musical sound starts to be attenuated and muted.
押鍵により出力される楽音の音色の種類を設定する音色設定手段と、
押鍵を示す押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段と、
離鍵を示す離鍵情報を取得してから楽音の出力の減衰を開始するまでの時間であり、前記楽音の音色の種類それぞれにおける楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている離鍵後出力時間を記憶する離鍵後出力時間記憶手段と、
前記離鍵情報を検出した場合には、前記音色設定手段によって設定された楽音の音色の種類と前記音域抽出手段によって抽出された音域とに関連付けられて前記離鍵後出力時間記憶手段に記憶されている前記離鍵後出力時間を読み出し、押鍵により出力された楽音を、前記離鍵情報を取得してから前記読み出した前記離鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段と、
を備えることを特徴とする電子楽器。
Timbre setting means for setting the timbre of the tone output by pressing the key;
A pitch range extracting means for extracting a pitch range in which a pitch value corresponding to the pitch specified by the pitch specification information included in the key press information indicating the key press exists;
This is the time from when the key release information indicating the key release is acquired until the decay of the output of the musical tone is started, and is divided based on the pitch value which is the pitch value of the musical tone for each of the musical tone types. A post-key release output time storage means for storing a preset post-key release output time corresponding to each of the ranges;
When the key release information is detected, it is stored in the post-key release output time storage unit in association with the tone type of the musical tone set by the tone color setting unit and the tone range extracted by the tone range extraction unit. The output time after the key release is read out, and the musical sound output by pressing the key is started to attenuate the output of the musical sound after the read out output time after the key release after the key release information is acquired. And a sound mute means to mute,
An electronic musical instrument characterized by comprising:
押鍵により出力される楽音の音色の種類を設定する音色設定手段と、
離鍵を示す離鍵情報を取得してから楽音の出力の減衰を開始するまでの時間であり、前記楽音の音色の種類と前記楽音の音色の種類それぞれに対応して予め設定されている離鍵後出力時間を記憶する離鍵後出力時間記憶手段と、
前記離鍵情報を検出した場合には、前記音色設定手段によって設定された楽音の音色の種類に関連付けられて前記離鍵後出力時間記憶手段に記憶されている前記離鍵後出力時間を読み出し、押鍵により出力された楽音を、前記離鍵情報を取得してから前記読み出した前記離鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段と、
を備えることを特徴とする電子楽器。
Timbre setting means for setting the timbre of the tone output by pressing the key;
This is the time from when the key release information indicating the key release is acquired until the decay of the output of the musical tone is started, and the release key set in advance corresponding to each of the musical tone type and the musical tone type. A post-key output time storage means for storing the post-key output time;
When the key release information is detected, the post-key release output time stored in the post-key release output time storage unit in association with the tone color type set by the tone color setting unit is read out, A musical sound muting means for muting the musical sound output by pressing the key after starting the decay of the output of the musical sound after the read output time after the key release after the key release information has been acquired;
An electronic musical instrument characterized by comprising:
押鍵を示す押鍵情報に含まれる音高指定情報が指定する音高に対応する音高値が存在する音域を抽出する音域抽出手段と、
離鍵を示す離鍵情報を取得してから楽音の出力の減衰を開始するまでの時間であり、前記楽音の音高の値である音高値に基づいて区分けされた音域それぞれに対応して予め設定されている離鍵後出力時間を記憶する離鍵後出力時間記憶手段と、
前記離鍵情報を検出した場合には、前記音域抽出手段によって抽出された音域と関連付けられて前記離鍵後出力時間記憶手段に記憶されている前記離鍵後出力時間を読み出し、押鍵により出力された楽音を、前記離鍵情報を取得してから前記読み出した前記離鍵後出力時間が経過した後に前記楽音の出力の減衰を開始して消音する楽音消音手段と、
を備えることを特徴とする電子楽器。
A pitch range extracting means for extracting a pitch range in which a pitch value corresponding to the pitch specified by the pitch specification information included in the key press information indicating the key press exists;
This is the time from when the key release information indicating the key release is acquired until the decay of the output of the musical sound is started, in advance corresponding to each of the ranges divided based on the pitch value which is the pitch value of the musical sound. A post-key-release output time storage means for storing the set post-key-release output time;
When the key release information is detected, the output time after key release stored in the output time storage unit after key release associated with the range extracted by the range extraction unit is read and output by pressing the key Musical sound mute means for starting the attenuation of the output of the musical sound after the output time after the key release after the key release information has elapsed after acquiring the key release information,
An electronic musical instrument characterized by comprising:
JP2008040146A 2008-02-21 2008-02-21 Electronic musical instruments Expired - Fee Related JP5265941B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008040146A JP5265941B2 (en) 2008-02-21 2008-02-21 Electronic musical instruments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008040146A JP5265941B2 (en) 2008-02-21 2008-02-21 Electronic musical instruments

Publications (2)

Publication Number Publication Date
JP2009198797A true JP2009198797A (en) 2009-09-03
JP5265941B2 JP5265941B2 (en) 2013-08-14

Family

ID=41142348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008040146A Expired - Fee Related JP5265941B2 (en) 2008-02-21 2008-02-21 Electronic musical instruments

Country Status (1)

Country Link
JP (1) JP5265941B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011064728A (en) * 2009-09-15 2011-03-31 Yamaha Corp Electronic keyboard instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02146596A (en) * 1988-11-28 1990-06-05 Yamaha Corp Musical sound control method for electronic musical instrument
JPH0468399A (en) * 1990-07-10 1992-03-04 Yamaha Corp Envelope waveform generating device
JPH0643869A (en) * 1993-03-16 1994-02-18 Yamaha Corp Electronic keyboard instrument
JP2002032083A (en) * 2000-07-17 2002-01-31 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02146596A (en) * 1988-11-28 1990-06-05 Yamaha Corp Musical sound control method for electronic musical instrument
JPH0468399A (en) * 1990-07-10 1992-03-04 Yamaha Corp Envelope waveform generating device
JPH0643869A (en) * 1993-03-16 1994-02-18 Yamaha Corp Electronic keyboard instrument
JP2002032083A (en) * 2000-07-17 2002-01-31 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011064728A (en) * 2009-09-15 2011-03-31 Yamaha Corp Electronic keyboard instrument

Also Published As

Publication number Publication date
JP5265941B2 (en) 2013-08-14

Similar Documents

Publication Publication Date Title
JP4539590B2 (en) Keyboard instrument
JP2009251477A (en) Electronic drum
JP5732982B2 (en) Musical sound generation device and musical sound generation program
JP5265941B2 (en) Electronic musical instruments
JP5030016B2 (en) Musical sound generator and musical sound generation processing program
JP2020064187A (en) Electronic keyboard instrument, method and program
JP6421459B2 (en) Musical sound generating device, electronic musical instrument, musical sound generating method and program
JP6410345B2 (en) Sound preview apparatus and program
JP4785052B2 (en) Music generator
JP6149890B2 (en) Musical sound generation device and musical sound generation program
JP5742592B2 (en) Musical sound generation device, musical sound generation program, and electronic musical instrument
JP5151603B2 (en) Electronic musical instruments
JP5560574B2 (en) Electronic musical instruments and automatic performance programs
JP3821117B2 (en) Wind instrument type electronic musical instrument
JP5600968B2 (en) Automatic performance device and automatic performance program
JP3931847B2 (en) Waveform selection device and waveform selection program
JP4499941B2 (en) Electronic musical instruments
JP6102975B2 (en) Musical sound generation device, musical sound generation program, and electronic musical instrument
JP6305275B2 (en) Voice assist device and program for electronic musical instrument
JP5151523B2 (en) Electronic musical instruments
JP3931848B2 (en) Waveform selection device and waveform selection program
JP4207884B2 (en) Musical sound control device and musical sound control processing program
JP5935380B2 (en) Electronic musical instrument, resonance sound applying method and program
JP4073597B2 (en) Electronic percussion instrument
JP2009223256A (en) Music player and performance processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120717

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120821

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121019

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130502

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees