JP3900869B2 - Quantity adjusting device and computer program - Google Patents
Quantity adjusting device and computer program Download PDFInfo
- Publication number
- JP3900869B2 JP3900869B2 JP2001234419A JP2001234419A JP3900869B2 JP 3900869 B2 JP3900869 B2 JP 3900869B2 JP 2001234419 A JP2001234419 A JP 2001234419A JP 2001234419 A JP2001234419 A JP 2001234419A JP 3900869 B2 JP3900869 B2 JP 3900869B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- determined
- pressing operation
- volume
- pressed
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Control Of Amplification And Gain Control (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、たとえばオーディオ機器などにおける音量を調整するための数量調整装置、およびこれを制御するためのコンピュータプログラムに関する。
【0002】
【従来の技術】
最近のオーディオ機器には、音量調整用の操作キーとしてボリュームアップキーとボリュームダウンキーとが設けられ、これらのボリュームキーを押すごとにワンステップずつ音量を増減させるディジタル式のボリュームコントローラを備えたものが多い。
【0003】
この種のボリュームコントローラによれば、ボリュームキーを押すごとに規則的にワンステップずつ音量が増減変化させられる。また、ボリュームキーをある程度の時間押し続けた場合、連続的に音量が変化させられる。
【0004】
【発明が解決しようとする課題】
しかしながら、上記したボリュームコントローラでは、ボリュームキーを何度連打しても、常に連打した回数と同数のステップ数しか音量を変化させることができない。そのため、所望とする音量レベルに至るまでには、ある程度の時間をかけてボリュームキーを連打したり長押し状態としなければならず、敏速に連打するにしても限界があり、速やかに音量調整を行うことができなかった。
【0005】
【発明の開示】
本発明は、このような事情のもとで考え出されたものであって、操作キーを連打する状況に応じて、速やかに所望とする数量に調整することができる数量調整装置、およびコンピュータプログラムを提供することを、その課題としている。
【0006】
上記の課題を解決するため、本発明では、次の技術的手段を講じている。
【0007】
本発明の第1の側面によれば、操作キーを押下して所望とする数量に調整するための数量調整装置であって、使用者による操作キーの押下操作毎に前回の押下操作から今回の押下操作まで押下操作間隔を計時する第1の計時手段と、使用者により操作キーの押下操作が行われると、第1の計時手段により計時される押下操作間隔に基づいて当該押下操作が単打であるか否かを判断するとともに、単打でないと判断された場合は、その判断の連続回数に基づいて連打であるか否かを判断する操作状況判断手段と、操作状況判断手段により連打でないと判断される場合は、数量を単位ステップ数だけ変化させ、操作状況判断手段により連打と判断される場合は、数量を単位ステップ数よりも大きい第1のステップ数だけ変化させる第1の数量変更手段と、使用者による操作キーの押下操作毎に当該押下操作が継続している押下操作継続時間を計時する第2の計時手段と、第2の計時手段により計時される押下操作継続時間が所定の継続時間閾値を越えたか否かにより操作キーの押下操作が長押しされているか否かを判別する判別手段と、判別手段により操作キーの押下操作が長押しされていると判別されると、所定の時間間隔で数量を所定の第2のステップ数ずつ連続的に変化させる第2の数量変更手段と、操作状況判断手段により連打であると判断される押下操作が判別手段により長押しされていると判別された場合は、操作状況判断手段により連打でないと判断される押下操作が判別手段により長押しされていると判別された場合よりも、第2の数量変更手段による数量の連続的な変化の速度を速くする数量変化速度制御手段とを備えたことを特徴とする、数量調整装置が提供される。
【0008】
好ましい実施の形態によれば、操作状況判断手段は、単打ではないと3回連続して判断されると、3回目の単打ではないと判断される押下操作から連打であると判断する。
【0009】
他の好ましい実施の形態によれば、数量変化速度制御手段は、連打であると判断される押下操作が長押しされている場合の第2の数量変更手段による数量の変更間隔である所定の時間間隔を、連打でないと判断される押下操作が長押しされている場合の所定の時間間隔よりも短くする。
【0010】
他の好ましい実施の形態によれば、数量変化速度制御手段は、連打であると判断される押下操作が長押しされている場合の第2の数量変更手段による数量の変更量である所定の第2のステップ数を、連打でないと判断される押下操作が長押しされている場合の所定の第2のステップ数よりも大きくする。
【0011】
他の好ましい実施の形態によれば、操作状況判断手段により連打であると判断される押下操作が長押しされている場合の所定の継続時間閾値を、操作状況判断手段により連打でないと判断される押下操作が長押しされている場合の所定の継続時間閾値よりも小さい値に設定する継続時間閾値設定手段を更に備える。
【0012】
他の好ましい実施の形態によれば、操作キーには、前記数量を増減させるためのアップキーとダウンキーとがあり、アップキーの押下操作が連打と判断されたときの第1の数量変更手段による数量の変更量である第1のステップ数は、ダウンキーの押下操作が連打と判断されたときの第1の数量変更手段による数量の変更量である第1のステップ数と異なる。
【0013】
他の好ましい実施の形態によれば、操作キーは、オーディオ機器の音量を調整するための操作キーである。
【0014】
本発明の第2の側面によれば、コンピュータを、使用者による操作キーの押下操作毎に前回の押下操作から今回の押下操作まで押下操作間隔を計時する第1の計時手段と、使用者により操作キーの押下操作が行われると、第1の計時手段により計時される押下操作間隔に基づいて当該押下操作が単打であるか否かを判断するとともに、単打でないと判断された場合は、その判断の連続回数に基づいて連打であるか否かを判断する操作状況判断手段と、操作状況判断手段により連打でないと判断される場合は、数量を単位ステップ数だけ変化させ、操作状況判断手段により連打と判断された場合は、数量を単位ステップ数よりも大きい第1のステップ数だけ変化させる第1の数量変更手段と、使用者による操作キーの押下操作毎に当該押下操作が継続している押下操作継続時間を計時する第2の計時手段と、第2の計時手段により計時される押下操作継続時間が所定の継続時間閾値を越えたか否かにより操作キーの押下操作が長押しされているか否かを判別する判別手段と、判別手段により操作キーの押下操作が長押しされていると判別されると、所定の時間間隔で数量を所定の第2のステップ数ずつ連続的に変化させる第2の数量変更手段と、操作状況判断手段により連打であると判断される押下操作が判別手段により長押しされていると判別された場合は、操作状況判断手段により連打でないと判断される押下操作が判別手段により長押しされていると判別された場合よりも、第2の数量変更手段による数量の連続的な変化の速度を速くする数量変化速度制御手段として機能させるためのコンピュータプログラムが提供される。
【0015】
本発明によれば、数量をいち早く調整するために操作キーを連打すると、単打に応じた基本ステップ数よりも大幅な変量となる、変則ステップ数をもって数量が変化させられるので、操作キーを連打する状況では、数量の変化のしかたが急ピッチとなり、速やかに所望の数量に調整することができる。
【0016】
本発明のその他の特徴および利点は、添付図面を参照して以下に行う発明の実施の形態の説明によって、より明らかになるであろう。
【0017】
【発明の実施の形態】
以下、本発明の好ましい実施の形態を、図面を参照して具体的に説明する。
【0018】
図1は、本発明に係る数量調整装置の一実施形態を示すブロック図である。図1に示すように、数量調整装置は、一例としてオーディオ機器に内蔵された音量調整用のボリュームコントローラ1である。このボリュームコントローラ1には、インターフェイス回路12を介してボリュームアップキー2Aおよびボリュームダウンキー2B、ならびに表示部3が接続されている。ボリュームアップキー2Aは、音量を上げる場合に直接押下するようにして操作され、ボリュームダウンキー2Bは、音量を下げる場合に直接押下するようにして操作されるものである。表示部3は、ボリュームコントローラ1の制御に応じて音量レベルを表示する。
【0019】
ボリュームコントローラ1は、オーディオ信号の振幅を変化させ、このオーディオ信号をスピーカ(図示省略)に供給することで音量を調整するものである。このようなボリュームコントローラ1は、図示しないCPU、ROM、RAMなどを集積したマイクロコンピュータにより構成されている。CPUは、ROMに記憶されたコンピュータプログラムに基づいてボリュームコントローラ1全体の動作を制御する。
【0020】
機能的に言うと、CPUは、ボリュームアップキー2Aやボリュームダウンキー2Bが所定の短時間内に連打されたか、あるいは単打されたか、さらには所定の長時間以上にわたって長押し状態とされたかなどのキー操作状況を判断する操作状況判断手段10と、単打の場合、音量を単位ステップ数だけ変化させ、連打の場合、単位ステップ数よりも多い変則ステップ数をもって音量を変化させ、長押し状態の場合、音量を連続的に変化させるステップ数可変制御手段11といった機能を実現している。なお、本実施形態において、音量レベルは、たとえば「0」から「40」までの整数値をとり得るものとされ、単位ステップ数としては、音量レベルの最小単位とした「1」が採用されている。また、変則ステップ数は、音量レベルを上げる際には「+2」とされる一方、音量レベルを下げる際には「−4」とされる。
【0021】
図2は、一例として音量レベルを上げる際のタイミングチャートであって、この図に基づいてCPUの機能を具体的に説明する。
【0022】
基本的に、ボリュームアップキー2Aからは、押した状態と離した状態とで異なる電圧レベルのキー信号がCPUに対して出力される。CPUは、キー信号の電圧レベルを極めて短いタイムスライスレベルの下で定期的に監視している。CPUは、キー信号に基づいてボリュームアップキー2Aが押された状態と判断するごとに、その時点での音量レベルが最大の「40」でない限り、音量レベルを少なくとも「1」は増加させる。
【0023】
また、CPUは、ボリュームアップキー2Aが一度押されてから次に押されるまでの操作時間間隔や、継続して押し続けられる間の長押し時間を逐次計時している。このような操作時間間隔や長押し時間は、ボリュームアップキー2Aが連打されたのか、単打されたのか、あるいは長押し状態とされたのかを判断するために用いられる。そのため、操作時間間隔に対するしきい値としての連打時間間隔と、長押し時間に対するしきい値としての長押し時間間隔とがあらかじめプログラム中に規定されている。連打時間間隔は、所定の短時間を規定すべくたとえば200msと定められ、ボリュームアップキー2Aが一度押されてから次に押されるまでの操作時間間隔が200ms以内の場合、CPUが連打と判断するために用いられる。
【0024】
一方、長押し時間間隔は、所定の長時間を規定すべくたとえば500msと定められ、ボリュームアップキー2Aが一旦押された後、500ms以上経過しても押し続けられている場合、CPUが長押し状態と判断するために用いられる。ちなみに、ボリュームアップキー2Aが一度押されてから次に押されるまでの操作時間間隔が連打時間間隔の200msを超えた場合には、CPUにより単打と判断される。このような連打時間間隔や長押し時間間隔は、CPUの計時機能による連打タイマやキーリピートタイマに適当なタイミングで設定される。たとえば連打タイマについては、ボリュームアップキー2Aを押すごとに200msとした連打時間間隔が設定される。一方、キーリピートタイマについても、ボリュームアップキー2Aを押すごとに500msとした長押し時間間隔が設定されるが、連打中にあっては、500msより短いたとえば160msとした長押し時間間隔が設定される。また、継続して長押し状態とされる最中にあっては、たとえば200msとした長押し時間間隔が設定され、200msごとに音量レベルが基本ステップ数ずつ連続的に変化させられる。なお、キーリピートタイマにより実際に計時される長押し時間は、ボリュームアップキー2Aから指を離して元の状態(これを、以下「キーオフ」と呼ぶ)となるごとに、CPUによってクリアされる。
【0025】
実際、図2に示すようなタイミングでボリュームアップキー2Aが操作された場合について説明する。まず、音量レベルが「10」の時点でボリュームアップキー2Aが押されると、CPUは、基本ステップ数の「1」だけ繰り上げて音量レベルを「11」とする。その後、ボリュームアップキー2Aがキーオフの状態にある間、CPUは、音量レベルを「11」に保つ。
【0026】
同様に、音量レベルが「11」の時点でボリュームアップキー2Aが押されると、CPUは、基本ステップ数の「1」だけ繰り上げて音量レベルを「12」とする。これは、前回ボリュームアップキー2Aが押された時点から連打時間間隔(200ms)よりも長い時間が経過しており、ボリュームアップキー2Aが単打されたものとCPUにより判断されたためである。
【0027】
続いて、連打時間間隔よりも短い100ms経過した時にボリュームアップキー2Aが押されると、CPUは、2打目の連打と判断するが、この時点では、基本ステップ数の「1」だけ繰り上げて音量レベルを「13」とする。つまり、ボリュームアップキー2Aを瞬間的に2度押ししただけでは、音量レベルは変則的に増加することはなく、基本ステップ数に基づき「1」だけ増えることとなる。
【0028】
さらに続いて、連打時間間隔よりも短い120ms経過した時にボリュームアップキー2Aが押されると、CPUは、3打目の連打と判断し、この時点で始めて変則ステップ数の「+2」を加えて音量レベルを「15」とする。さらに引き続いて同様に、連打時間間隔よりも短い90ms経過した時にボリュームアップキー2Aが押されると、CPUは、前回から続く連打と判断し、この時点でも変則ステップ数の「+2」を加えて音量レベルを「17」とする。要するに、ボリュームアップキー2Aを瞬間的なタイミングで3回以上連打した場合に限り、3打目から音量レベルの上がり具合が急ピッチとなるのである。
【0029】
以上図2に基づいて説明した内容は、ボリュームアップキー2Aを操作して音量レベルを上げる場合の一例であるが、ボリュームダウンキー2Bを操作して音量レベルを下げる場合についても、変則ステップ数を「−4」として音量レベルを下げるほかは上記した説明の内容とほぼ同様である。
【0030】
次に、基本的な動作の流れを図面に基づいて説明する。
【0031】
図3は、音量調整メイン処理を示すフローチャートである。この図に示すように、音量調整メイン処理においては、キーオフチェック(S1)、ボリュームアップキー2Aの入力チェック(S3)、ボリュームダウンキー2Bの入力チェック(S5)、および各キー2A,2Bの長押し状態についての入力チェック(S7)といった各動作がボリュームコントローラ1により行われる。なお、S1,S3,S5,S7の一連の動作は、一定時間間隔ごと(例えば、100msごと)に実行される。
【0032】
図4は、キーオフチェックを示すフローチャートである。キーオフチェックでは、まず、ボリュームアップキー2Aについてキー入力(押すという操作)が無い状態か否かが監視される(S10)。
【0033】
ボリュームアップキー2Aについてキー入力が無ければ(S10:YES)、ボリュームアップのキーリピートタイマによる計時がストップする(S11)。
【0034】
また、ボリュームダウンキー2Bについてもキー入力(押すという操作)が無い状態か否かが監視される(S12)。
【0035】
ボリュームダウンキー2Bについてもキー入力が無ければ(S12:YES)、ボリュームダウンのキーリピートタイマによる計時がストップし(S13)、キーオフチェックが終わる。
【0036】
S10において、ボリュームアップキー2Aのキー入力がある場合(S10:NO)、S11を実行することなくS12に進む。
【0037】
S12において、ボリュームダウンキー2Bのキー入力がある場合(S12:NO)、S13を実行することなくキーオフチェックを終える。
【0038】
図5は、ボリュームアップキー2Aの入力チェックを示すフローチャートである。ボリュームアップキー2Aの入力チェックでは、ボリュームアップキー2Aについてキー入力(押すという操作)がなされた場合(S30:YES)、キー入力前の音量レベルが最大の「40」でない限り(S31:NO)、その音量レベルに基本ステップ数の「1」が加えられる(S32)。なお、キー入力がなされるごとに連打タイマの計時動作が始められ、次のキー入力がなされた時点で連打タイマにより計時された操作時間間隔が取得される。同様に、キー入力がなされるごとにキーリピートタイマの計時動作も始められるが、このキーリピートタイマは、キーオフとなるまで計時を続ける。
【0039】
また、音量レベルが「30」未満の場合(S33:YES)、連打時間間隔として規定された200ms以内のタイミングでキー入力が3打以上続いたか否かが判断される(S34)。
【0040】
200ms以内のタイミングでキー入力が3打以上続いた場合(S34:YES)、音量レベルにさらに基本ステップ数の「1」が追加される(S35)。つまり、S32の追加分と合わせて音量レベルが2ステップ繰り上がるのである。
【0041】
その後、キーリピートタイマには、たとえば160msとした長押し時間間隔が設定され、このキーリピートタイマによる計時がスタートし(S36)、ボリュームアップキー2Aの入力チェックが終わる。この160msとした長押し時間間隔は、連打に続いて長押し状態とされたか否かを判断するために用いられるものである。つまり、連打に続いて160ms以上長押し状態とすると、その直後から音量レベルが連続的に増加することとなる。
【0042】
S34において、200ms以内のタイミングでキー入力が3打以上続くことがない場合、または、200ms以内のタイミングであっても2打限りの連打の場合(S34:NO)、キーリピートタイマには、たとえば500msとした長押し時間間隔が設定され、このキーリピートタイマによる計時がスタートし(S40)、その後、ボリュームアップキー2Aの入力チェックが終わる。この際に設定された500msの長押し時間間隔は、単に長押し状態とされたか否かを判断するために用いられる。なお、2打目までは、キー入力ごとに音量レベルが1ステップずつ繰り上がることとなる。
【0043】
S33において、音量レベルが「30」以上の場合にも(S33:NO)、S40に進む。
【0044】
S31において、音量レベルが最大の「40」の場合には(S31:YES)、それ以上音量レベルを上げることはできないため、ボリュームアップキー2Aの入力チェックが終わる。
【0045】
S30において、キー入力がない場合にも(S30:NO)、ボリュームアップキー2Aの入力チェックが終わる。
【0046】
図6は、ボリュームダウンキー2Bの入力チェックを示すフローチャートである。ボリュームダウンキー2Bの入力チェックでは、ボリュームダウンキー2Bについてキー入力(押すという操作)がなされた場合(S50:YES)、キー入力前の音量レベルが最低の「0」でない限り(S51:NO)、その音量レベルが基本ステップ数の「1」だけ減らされる(S52)。なお、連打タイマやキーリピートタイマの計時動作は、ボリュームアップキー2Aの入力チェックの場合と同様である。
【0047】
また、連打時間間隔として規定された200ms以内のタイミングでキー入力が3打以上続いたか否かが判断される(S53)。
【0048】
200ms以内のタイミングでキー入力が3打以上続いた場合(S53:YES)、音量レベルが最低の「0」でない限り(S54:NO)、その音量レベルからさらに基本ステップ数の「1」が減算される(S55)。
【0049】
上記したS54,S55からなる一連の動作は、3回繰り返され(S56:YES)、これにより、S52の減少分と合わせて音量レベルが4ステップ繰り下がることとなる。その後、キーリピートタイマには、たとえば160msとした長押し時間間隔が設定され、このキーリピートタイマによる計時がスタートし(S57)、ボリュームダウンキー2Bの入力チェックが終わる。この160msとした長押し時間間隔も、先述したのと同様に、連打に続いて長押し状態とされたか否かを判断するために用いられるものである。つまり、連打に続いて160ms以上長押し状態とすると、その直後から音量レベルが連続的に減少することとなる。
【0050】
S56において、S54,S55からなる一連の動作が3回繰り返されていない場合(S56:NO)、S54に戻る。
【0051】
S54において、音量レベルが最低の「0」の場合には(S54:YES)、それ以上音量レベルを下げることはできないため、ボリュームダウンキー2Bの入力チェックが終わる。
【0052】
S53において、200ms以内のタイミングでキー入力が3打以上続くことがない場合、または、200ms以内のタイミングであっても2打限りの連打の場合(S53:NO)、キーリピートタイマには、たとえば500msとした長押し時間間隔が設定され、このキーリピートタイマによる計時がスタートし(S61)、その後、ボリュームダウンキー2Bの入力チェックが終わる。なお、2打目までは、キー入力ごとに音量レベルが1ステップずつ繰り下がることとなる。
【0053】
S51において、音量レベルが最低の「0」の場合には(S51:YES)、それ以下に音量レベルを下げることはできないため、ボリュームダウンキー2Bの入力チェックが終わる。
【0054】
S50において、キー入力がない場合にも(S50:NO)、ボリュームダウンキー2Bの入力チェックが終わる。
【0055】
図7は、キー2A,2Bの長押し状態の入力チェックを示すフローチャートである。この入力チェックでは、まず、ボリュームアップキー2Aが長押しされた状態か否か、キーリピートタイマに設定された長押し時間間隔を基準として判断される(S70)。このとき、単に長押しされた状態と、連打に続いて長押しされた状態とでは、基準となる長押し時間間隔が異なる。そのため、単に長押しされた状態では、500ms以上継続して押し続けることで長押し状態と判断されるが、連打に続いて長押しされた状態では、単なる長押し状態よりも短い160ms以上押し続けるだけで長押し状態と判断される。
【0056】
いずれにしてもボリュームアップキー2Aが長押し状態と判断された場合(S70:YES)、その直後には、現時点での音量レベルが最大の「40」でない限り(S71:NO)、音量レベルに基本ステップ数の「1」が加えられる(S72)。
【0057】
その後、キーリピートタイマには、たとえば200msとした長押し時間間隔が設定され、このキーリピートタイマによる計時がスタートする(S73)。この200msとした長押し時間間隔は、その時間間隔ごとに音量レベルをワンステップずつ上げるために設定されたものである。つまり、ボリュームアップキー2Aを長押し状態としている限りは、音量レベルが200msごとにワンステップずつ増加し、連続的に音量レベルがアップするのである。その後、ボリュームアップキー2Aがキーオフとされて長押し状態が解除されると、長押し状態の入力チェックが終わる。なお、長押し状態が解除されない場合には、音量レベルの連続増加が続行されることとなる。
【0058】
S71において、音量レベルが最大の「40」の場合には(S71:YES)、この入力チェックが終わる。つまり、この場合には、音量レベルをそれ以上アップさせることはできないため、長押し状態とされても音量レベルが上がることはない。
【0059】
一方、S70において、ボリュームアップキー2Aが長押し状態ではない場合(S70:NO)、他方のボリュームダウンキー2Bが長押しされた状態か否か、キーリピートタイマに設定された長押し時間間隔を基準として判断される(S76)。このとき、単に長押しされた状態と、連打に続いて長押しされた状態とでは、基準となる長押し時間間隔が異なるのは、先述した通りである。
【0060】
いずれにしてもボリュームダウンキー2Bが長押し状態と判断された場合(S76:YES)、その直後には、現時点での音量レベルが最低の「0」でない限り(S77:NO)、音量レベルが基本ステップ数の「1」だけ減らされる(S78)。
【0061】
その後、キーリピートタイマには、たとえば200msとした長押し時間間隔が設定され、このキーリピートタイマによる計時がスタートする(S79)。この200msとした長押し時間間隔は、その時間間隔ごとに音量レベルをワンステップずつ下げるために設定されたものである。つまり、ボリュームダウンキー2Bを長押し状態としている限りは、音量レベルが200msごとにワンステップずつ減少し、連続的に音量レベルがダウンするのである。
【0062】
ここで、連打直後の長押し状態の場合であって(S90:YES)、音量レベルが最低でない場合には(S91:NO)、さらに基本ステップ数の「1」だけ音量レベルをダウンする(S92)。つまり、連打直後に長押し状態とした場合には、S78の減少分と合わせて音量レベルが2ステップずつ連続的に繰り下がることとなる。その後、ボリュームダウンキー2Bがキーオフとされて長押し状態が解除されると、長押し状態の入力チェックが終わる。なお、長押し状態が解除されない場合には、音量レベルの連続減少が続行されることとなる。
【0063】
S91において、音量レベルが最低の「0」の場合には(S91:YES)、この入力チェックが終わる。つまり、この場合には、音量レベルを現状以下にダウンさせることはできないため、長押し状態とされても音量レベルが下がることはない。
【0064】
S90において、連打直後の長押し状態でない場合にも(S90:NO)、この入力チェックが終わる。
【0065】
S77において、音量レベルが最低の「0」の場合にも(S77:YES)、この入力チェックが終わる。
【0066】
S76において、ボリュームダウンキー2Bについても長押しのタイマオーバ状態が検出されず、長押し状態ではない場合(S76:NO)、この入力チェックが終わる。
【0067】
したがって、本実施形態によれば、音量レベルをいち早く増減させようとしてボリュームアップキー2Aやボリュームダウンキー2Bを所定回数連打すれば、基本ステップ数「1」を倍加した変則ステップ数「+2」または「−4」ずつ音量レベルが上げ下げさせられるので、ボリュームアップキー2Aやボリュームダウンキー2Bを連打する状況では、音量レベルの変動幅が急ピッチとなり、速やかに所望の音量レベルに調整することができる。
【0068】
なお、他の実施形態としては、図8に示すような動作の流れとしても良い。
【0069】
図8は、キー2A,2Bの長押し状態の入力チェックに関して変形例を示すフローチャートであって、この図8に示すフローチャートは、図7のAからBまでの一連の動作を部分的に変更したものである。以下、図7と同一のステップ番号で示す動作については説明を省略し、異なる動作内容に重点を置いて説明する。
【0070】
S90において、ボリュームダウンキー2Bが連打直後に長押し状態とされた場合(S90:YES)、キーリピートタイマには、たとえば100msとした長押し時間間隔が設定され、その後、キーリピートタイマによる計時がスタートする(S93)。つまり、ボリュームダウンキー2Bを連打直後に長押し状態とした場合には、音量レベルが100msごとにワンステップずつ減少し、連続的に音量レベルがダウンするのである。その後、ボリュームダウンキー2Bがキーオフとされて長押し状態が解除されると、長押し状態の入力チェックが終わる。
【0071】
一方、ボリュームダウンキー2Bが単に長押し状態とされた場合には(S90:NO)、S79に進む。つまり、音量レベルがワンステップずつ減少する時間間隔は、ボリュームダウンキー2Bを単に長押し状態とした場合よりも、連打直後に長押し状態とした場合の方が短かくされている。そのため、ボリュームダウンキー2Bを連打直後に長押しした場合には、単なる長押し状態よりも一層速い調子で連続的に音量レベルがダウンすることとなる。
【0072】
したがって、この実施形態によれば、音量レベルをいち早く減少させるべく、ボリュームダウンキー2Bを連打した直後に続けて長押し状態とすれば、連続的としつつも単なる長押し状態より高速に音量レベルを下げることができ、より一層速やかに所望の音量レベルに調整することができる。
【0073】
なお、本発明は、上記の各実施形態に限定されるものではない。
【0074】
各実施形態中に示した数値は、あくまでも一例であって、本発明の特徴事項から逸脱しない限りは、設計仕様に応じて適当な数値を採用することができる。
【0075】
また、音量レベルを上げる場合と下げる場合とで若干動作が異なるが、音量レベルが上がるか下がるかの違い以外は同一の動作としても良い。
【0076】
オーディオ機器にて音量レベルを上下調整するために、ボリュームアップキー2Aとボリュームダウンキー2Bとの2種類のキーがあるとしたが、たとえば、調整事項としてディジタル時計などの時刻合わせに応用し、一方向のみに時刻を一巡させるキー操作に対して本発明を適用しても良い。
【0077】
もちろん、調整対象としての数量は、オーディオ機器における音量レベルやディジタル時計の時刻などに限らず、数量調整用の操作キーがある全ての電子機器における可変数量とすることができる。
【図面の簡単な説明】
【図1】本発明に係る数量調整装置の一実施形態を示すブロック図である。
【図2】一例として音量レベルを上げる際のタイミングチャートである。
【図3】音量調整メイン処理を示すフローチャートである。
【図4】キーオフチェックを示すフローチャートである。
【図5】ボリュームアップキーの入力チェックを示すフローチャートである。
【図6】ボリュームダウンキーの入力チェックを示すフローチャートである。
【図7】キーの長押し状態の入力チェックを示すフローチャートである。
【図8】キーの長押し状態の入力チェックに関して変形例を示すフローチャートである。
【符号の説明】
1 ボリュームコントローラ
2A ボリュームアップキー
2B ボリュームダウンキー
3 表示部
10 操作状況判断手段
11 ステップ数可変制御手段
12 インターフェイス回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a quantity adjusting device for adjusting the volume of audio equipment, for example, and a computer program for controlling the same.
[0002]
[Prior art]
Recent audio equipment is equipped with a volume up key and volume down key as volume control operation keys, and a digital volume controller that increases or decreases the volume one step each time these volume keys are pressed. There are many.
[0003]
According to this type of volume controller, the volume is regularly increased or decreased by one step each time the volume key is pressed. When the volume key is kept pressed for a certain period of time, the volume can be continuously changed.
[0004]
[Problems to be solved by the invention]
However, in the above-described volume controller, the volume can be changed only by the same number of steps as the number of repeated hits, no matter how many times the volume key is repeatedly hit. Therefore, it takes a certain amount of time to hit the volume key repeatedly or keep it in a long-pressed state until the desired volume level is reached. Could not do.
[0005]
DISCLOSURE OF THE INVENTION
The present invention has been conceived under such circumstances, and a quantity adjusting device and a computer program that can be quickly adjusted to a desired quantity in accordance with a situation where the operation keys are repeatedly hit. The challenge is to provide
[0006]
In order to solve the above problems, the present invention takes the following technical means.
[0007]
According to a first aspect of the present invention, there is provided a quantity adjusting device for adjusting a desired quantity by pressing an operation key, When the user presses the operation key, the first timekeeping unit that measures the pressing operation interval from the previous pressing operation to the current pressing operation, and when the user presses the operating key, the first timekeeping is performed. It is determined whether or not the pressing operation is a single stroke based on the pressing operation interval timed by the means, and if it is determined that it is not a single stroke, whether or not it is a continuous stroke based on the number of consecutive determinations. The operation situation judgment means for judging the situation and the operation situation judgment means repeatedly Not Determined Ru Case Is , Change the quantity by the number of unit steps When the operation status determining means determines that the hit is repeated, the first quantity changing means for changing the quantity by a first step number larger than the unit step number, and the pressing for each pressing operation key by the user. A second time-counting unit that counts the time for which the pressing operation is continued, and a pressing operation of the operation key depending on whether or not the pressing operation duration time measured by the second timing unit exceeds a predetermined threshold value A determination means for determining whether or not the key is long-pressed, and if the determination means determines that the operation key pressing operation is long-pressed, the quantity is incremented by a predetermined second number of steps at a predetermined time interval. If it is determined that the pressing operation that is determined to be repeated by the second quantity changing means that continuously changes and the operation status determining means is being pressed for a long time by the determining means, the operation status determining means A quantity change speed control means for increasing the speed of continuous change of the quantity by the second quantity change means, compared to the case where it is determined that the pressing operation determined not to be hit is long pressed by the determination means; Prepared A quantity adjusting device is provided.
[0008]
According to a preferred embodiment, Operation status judgment Means If it is determined that it is not a single shot for three consecutive times, it is determined that it is a continuous hit from a pressing operation that is determined not to be the third single shot. .
[0009]
According to another preferred embodiment, The quantity change speed control means presses a predetermined time interval, which is a quantity change interval by the second quantity changing means when a pressing operation determined to be repeated hitting is long pressed, that is determined not to be repeated hitting. Shorter than the predetermined time interval when the operation is held down .
[0010]
According to another preferred embodiment, The quantity change speed control means determines that the predetermined second step number that is the quantity change amount by the second quantity change means when the pressing operation that is determined to be repeated hits is long pressed is not repeated hits. Larger than the predetermined second step number when the pressed operation is held down .
[0011]
According to another preferred embodiment, The predetermined duration threshold when the pressing operation that is determined to be repeated hitting by the operation status determining means is long pressed, and the pressing operation that is determined not to be repeated hit by the operating status determining means is long Further provided is a duration threshold setting means for setting a value smaller than a predetermined duration threshold. .
[0012]
According to another preferred embodiment, the operation keys include an up key and a down key for increasing or decreasing the quantity, The first number of steps, which is the amount of change by the first quantity changing means when it is determined that the up key pressing operation is repeated, is the first quantity when the down key pressing operation is determined to be repeated. Different from the first step number, which is the amount of change by the changing means .
[0013]
According to another preferred embodiment, The operation key is an operation key for adjusting the volume of the audio device. .
[0014]
According to a second aspect of the present invention, When the user performs the first operation of pressing the operation key from the previous pressing operation to the current pressing operation every time the user presses the operation key, and when the user performs the operation key pressing operation, It is determined whether or not the pressing operation is a single stroke based on the pressing operation interval timed by one timing means, and if it is determined that the single stroke is not a single stroke, is it a continuous hit based on the number of consecutive determinations? If the operation status determination means and the operation status determination means determine that it is not repeated, the quantity is changed by the number of unit steps. If the operation status determination means determines that it is repeated, the quantity is expressed in units. The first quantity changing means for changing the first step number larger than the step number, and the pressing operation is continued every time the user presses the operation key. Whether or not the operation key pressing operation has been pressed for a long time is determined depending on whether or not the second time measuring means for measuring the time and the pressing operation duration time measured by the second time measuring means exceeds a predetermined duration threshold value And a second quantity change for continuously changing the quantity by a predetermined second number of steps at a predetermined time interval when it is determined by the determining means that the operation key has been pressed for a long time. If the pressing operation determined to be repeated hitting by the means and the operation status determining means is determined to be long pressed by the determining means, the pressing operation determined not to be repeated by the operation status determining means is determined by the determining means. For functioning as a quantity change speed control means for increasing the speed of the continuous change of the quantity by the second quantity change means, compared to the case where it is determined that the button is pressed for a long time. A computer program is provided.
[0015]
According to the present invention, if the operation key is repeatedly struck to quickly adjust the quantity, the quantity can be changed with the number of irregular steps, which is a larger variable than the number of basic steps corresponding to a single stroke. Under certain circumstances, the quantity changes rapidly and can be quickly adjusted to a desired quantity.
[0016]
Other features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.
[0018]
FIG. 1 is a block diagram showing an embodiment of a quantity adjusting device according to the present invention. As shown in FIG. 1, the quantity adjusting device is a
[0019]
The
[0020]
Functionally speaking, the CPU indicates whether the volume up key 2A and the volume down key 2B have been repeatedly hit within a predetermined short time, or have been pressed for a predetermined long time or more. In the case of a single press, the volume is changed by the number of unit steps, and in the case of continuous hit, the volume is changed with an irregular number of steps larger than the number of unit steps, and the key is pressed for a long time. A function such as step number variable control means 11 for continuously changing the volume is realized. In the present embodiment, the volume level can take an integer value from “0” to “40”, for example, and “1” as the minimum unit of the volume level is adopted as the unit step number. Yes. The number of irregular steps is “+2” when the volume level is increased, and is “−4” when the volume level is decreased.
[0021]
FIG. 2 is a timing chart when raising the volume level as an example, and the function of the CPU will be specifically described based on this figure.
[0022]
Basically, the volume up key 2A outputs to the CPU key signals having different voltage levels depending on whether it is pressed or released. The CPU periodically monitors the voltage level of the key signal under a very short time slice level. Whenever the CPU determines that the volume up key 2A is pressed based on the key signal, the CPU increases the volume level by at least “1” unless the volume level at that time is the maximum “40”.
[0023]
Further, the CPU sequentially counts the operation time interval from the time when the volume up key 2A is pressed once until the next time it is pressed and the long press time during which the volume up key 2A is continuously pressed. Such an operation time interval and long press time are used to determine whether the volume up key 2A is continuously hit, single hit, or long press. Therefore, a continuous hitting time interval as a threshold value for the operation time interval and a long pressing time interval as a threshold value for the long pressing time are defined in the program in advance. The continuous hitting time interval is set to 200 ms, for example, in order to define a predetermined short time. If the operation time interval from the time when the volume up key 2A is pressed once to the next time is within 200 ms, the CPU determines that the hitting is repeated. Used for.
[0024]
On the other hand, the long press time interval is set to 500 ms, for example, to define a predetermined long time. When the volume up key 2A is pressed once and then continues to be pressed even after 500 ms or more, the long press time interval is long. Used to determine the state. Incidentally, if the operation time interval from the time when the volume up key 2A is pressed once until the next time press exceeds 200 ms of the continuous hitting time interval, the CPU determines that it is a single hit. Such a continuous hitting time interval or a long press time interval is set at an appropriate timing in a continuous hitting timer or a key repeat timer by a time measuring function of the CPU. For example, for the continuous hit timer, a continuous hit time interval of 200 ms is set every time the volume up key 2A is pressed. On the other hand, for the key repeat timer, a long press time interval of 500 ms is set every time the volume up key 2A is pressed, but a long press time interval of, for example, 160 ms shorter than 500 ms is set during continuous hitting. The Further, during the long pressing state, a long pressing time interval of, for example, 200 ms is set, and the volume level is continuously changed by the number of basic steps every 200 ms. The long press time actually counted by the key repeat timer is cleared by the CPU every time the finger is released from the volume up key 2A to return to the original state (hereinafter referred to as “key-off”).
[0025]
Actually, the case where the volume up key 2A is operated at the timing shown in FIG. 2 will be described. First, when the volume up key 2A is pressed when the volume level is “10”, the CPU raises the volume level by “1”, which is the basic step number, to “11”. Thereafter, while the volume up key 2A is in the key-off state, the CPU keeps the volume level at “11”.
[0026]
Similarly, when the volume up key 2A is pressed when the volume level is “11”, the CPU raises the volume level by “1” as the basic step number to “12”. This is because a time longer than the continuous hitting time interval (200 ms) has elapsed since the time when the volume up key 2A was pressed last time, and the CPU determines that the volume up key 2A has been pressed once.
[0027]
Subsequently, when the volume up key 2A is pressed when 100 ms, which is shorter than the continuous hit time interval, has been pressed, the CPU determines that the second hit is repeated, but at this point, the volume is increased by “1” as the basic step number. The level is “13”. That is, simply pressing the volume up key 2A twice instantaneously does not increase the volume level irregularly, but increases it by “1” based on the number of basic steps.
[0028]
Subsequently, when the volume up key 2A is pressed when 120 ms, which is shorter than the continuous hit time interval, has elapsed, the CPU determines that the third hit is repeated, and at this point in time, the irregular step number “+2” is added and the volume is increased. The level is “15”. Similarly, if the volume up key 2A is pressed when 90 ms shorter than the continuous hitting time interval has elapsed, the CPU determines that the continuous hit is continued from the previous time, and also adds “+2” as the number of irregular steps at this time. The level is “17”. In short, only when the volume up key 2A is repeatedly hit three times or more at a momentary timing, the volume level increases from the third hit at a rapid pitch.
[0029]
The content described above with reference to FIG. 2 is an example in which the volume level is increased by operating the volume up key 2A, but the number of irregular steps is also increased when the volume level is decreased by operating the volume down key 2B. The contents are substantially the same as described above except that the volume level is lowered to “−4”.
[0030]
Next, a basic operation flow will be described with reference to the drawings.
[0031]
FIG. 3 is a flowchart showing the main volume adjustment process. As shown in this figure, in the volume adjustment main process, the key-off check (S1), the input check of the volume up key 2A (S3), the input check of the volume down key 2B (S5), and the length of each key 2A, 2B Each operation such as an input check (S7) regarding the pressed state is performed by the
[0032]
FIG. 4 is a flowchart showing the key-off check. In the key-off check, first, it is monitored whether or not there is no key input (operation of pressing) for the volume up key 2A (S10).
[0033]
If there is no key input for the volume up key 2A (S10: YES), the time counting by the volume up key repeat timer is stopped (S11).
[0034]
Further, it is monitored whether there is no key input (operation of pressing) for the volume down key 2B (S12).
[0035]
If there is no key input for the volume down key 2B (S12: YES), the time measurement by the volume down key repeat timer is stopped (S13), and the key-off check is completed.
[0036]
In S10, when there is a key input of the volume up key 2A (S10: NO), the process proceeds to S12 without executing S11.
[0037]
In S12, when there is a key input of the volume down key 2B (S12: NO), the key-off check is finished without executing S13.
[0038]
FIG. 5 is a flowchart showing the input check of the volume up key 2A. In the input check of the volume up key 2A, when the key input (operation of pressing) is performed for the volume up key 2A (S30: YES), unless the volume level before the key input is the maximum “40” (S31: NO) The basic step number “1” is added to the volume level (S32). Each time a key is input, the time counting operation of the continuous hit timer is started, and the operation time interval timed by the continuous hit timer is acquired when the next key input is made. Similarly, the time measurement operation of the key repeat timer is started each time a key is input, but this key repeat timer keeps counting until the key is turned off.
[0039]
If the volume level is less than “30” (S33: YES), it is determined whether or not the key input continues for 3 or more strokes at a timing within 200 ms defined as a continuous hitting time interval (S34).
[0040]
If the key input continues for three or more strokes within the timing of 200 ms (S34: YES), the basic step number “1” is further added to the volume level (S35). That is, the volume level is incremented by two steps together with the additional amount of S32.
[0041]
Thereafter, the key repeat timer is set to a long press time interval of 160 ms, for example, and the time measurement by the key repeat timer is started (S36), and the input check of the volume up key 2A is completed. The long press time interval of 160 ms is used to determine whether or not the long press state has been made following continuous hitting. That is, if a long press state is continued for 160 ms or more following continuous hitting, the sound volume level continuously increases immediately after that.
[0042]
In S34, when the key input does not continue for three or more strokes within the timing of 200 ms, or in the case of repeated strokes of only two strokes even within the timing of 200 ms (S34: NO), the key repeat timer includes, for example, A long press time interval of 500 ms is set, the time measurement by this key repeat timer starts (S40), and then the input check of the volume up key 2A is completed. The long pressing time interval of 500 ms set at this time is used to determine whether or not the long pressing state has been made. Until the second hit, the volume level is incremented by one step for each key input.
[0043]
If the volume level is “30” or higher in S33 (S33: NO), the process proceeds to S40.
[0044]
In S31, when the volume level is “40” which is the maximum (S31: YES), the volume level cannot be increased any more, so the input check of the volume up key 2A is completed.
[0045]
Even when there is no key input in S30 (S30: NO), the input check of the volume up key 2A is completed.
[0046]
FIG. 6 is a flowchart showing the input check of the volume down key 2B. In the input check of the volume down key 2B, when a key input (operation of pressing) is performed for the volume down key 2B (S50: YES), unless the volume level before the key input is the lowest “0” (S51: NO) The volume level is reduced by the basic step number “1” (S52). Note that the counting operation of the continuous hit timer and the key repeat timer is the same as that for the input check of the volume up key 2A.
[0047]
Further, it is determined whether or not the key input has continued for three or more strokes at a timing within 200 ms defined as a continuous hitting time interval (S53).
[0048]
If key input continues for three or more strokes within 200 ms (S53: YES), the basic step number “1” is further subtracted from the volume level unless the volume level is “0” (S54: NO). (S55).
[0049]
The series of operations consisting of S54 and S55 described above is repeated three times (S56: YES), whereby the volume level is lowered by 4 steps together with the decrease of S52. Thereafter, the key repeat timer is set to a long press time interval of 160 ms, for example, and the time measurement by the key repeat timer is started (S57). Volume down key 2B This completes the input check. The long press time interval of 160 ms is also used to determine whether or not the long press state has been made following continuous hits, as described above. That is, if a long press state is continued for 160 ms or more following continuous hitting, the sound volume level continuously decreases immediately after that.
[0050]
In S56, when the series of operations composed of S54 and S55 is not repeated three times (S56: NO), the process returns to S54.
[0051]
If the volume level is “0”, which is the lowest in S54 (S54: YES), the volume level cannot be lowered any further, so the input check of the volume down key 2B is completed.
[0052]
In S53, when the key input does not continue for three or more strokes within the timing of 200 ms, or in the case of repeated strokes of only two strokes even within the timing of 200 ms (S53: NO), the key repeat timer includes, for example, A long press time interval of 500 ms is set, the time measurement by this key repeat timer starts (S61), and then the input check of the volume down key 2B is completed. Until the second hit, the volume level is lowered by one step for each key input.
[0053]
In S51, when the volume level is the lowest “0” (S51: YES), the volume level cannot be lowered below that, and therefore the input check of the volume down key 2B is completed.
[0054]
Even when there is no key input in S50 (S50: NO), the input check of the volume down key 2B is completed.
[0055]
FIG. 7 is a flowchart showing the input check of the long press state of the
[0056]
In any case, if it is determined that the volume up key 2A is in the long-pressed state (S70: YES), immediately after that, unless the current volume level is the maximum “40” (S71: NO), the volume level is set to the volume level. The basic step number “1” is added (S72).
[0057]
After that, the key repeat timer is set with a long press time interval of 200 ms, for example, and the time measurement by this key repeat timer starts (S73). The long press time interval of 200 ms is set to increase the volume level by one step for each time interval. That is, as long as the volume up key 2A is kept pressed, the volume level increases by one step every 200 ms, and the volume level is continuously increased. Thereafter, when the volume up key 2A is turned off and the long press state is released, the input check of the long press state is completed. If the long press state is not released, the continuous increase in the volume level will be continued.
[0058]
In S71, when the volume level is the maximum “40” (S71: YES), this input check is completed. That is, in this case, the volume level cannot be increased any further, so that the volume level does not increase even when the button is held down for a long time.
[0059]
On the other hand, if the volume up key 2A is not in the long-pressed state in S70 (S70: NO), whether or not the other volume down key 2B is in the long-pressed state, the long press time interval set in the key repeat timer is set. It is determined as a reference (S76). At this time, as described above, the reference long-pressing time interval is different between the state where the button is simply pressed and the state where the button is pressed after the continuous hit.
[0060]
In any case, when it is determined that the volume down key 2B is in the long-pressed state (S76: YES), immediately after that, unless the current volume level is the lowest “0” (S77: NO), the volume level is The basic step number is reduced by “1” (S78).
[0061]
After that, the key repeat timer is set with a long press time interval of 200 ms, for example, and the time measurement by this key repeat timer starts (S79). The long press time interval of 200 ms is set to decrease the volume level by one step for each time interval. That is, as long as the volume down key 2B is held down, the volume level is decreased by one step every 200 ms, and the volume level is continuously decreased.
[0062]
Here, in the case of a long press state immediately after continuous hitting (S90: YES) and the volume level is not the lowest (S91: NO), the volume level is further lowered by “1” as the basic step number (S92). ). That is, when the long press state is set immediately after repeated hitting, the volume level is continuously lowered by two steps together with the decrease in S78. Thereafter, when the volume down key 2B is turned off and the long press state is released, the input check of the long press state is completed. If the long press state is not released, the continuous decrease in the volume level will be continued.
[0063]
In S91, when the volume level is the lowest “0” (S91: YES), this input check is completed. That is, in this case, since the volume level cannot be lowered below the current level, the volume level does not decrease even when the button is held down.
[0064]
In S90, this input check is completed even when the state is not the long-pressed state immediately after continuous hitting (S90: NO).
[0065]
Even in the case where the volume level is the lowest “0” in S77 (S77: YES), this input check is completed.
[0066]
In S76, if the long press timer over state is not detected for the volume down key 2B and the long press state is not reached (S76: NO), this input check is completed.
[0067]
Therefore, according to the present embodiment, if the volume up key 2A or the volume down key 2B is repeatedly pressed a predetermined number of times in order to quickly increase or decrease the volume level, the irregular step number “+2” or “ Since the volume level is increased or decreased by -4 ", in a situation where the volume up key 2A or the volume down key 2B is repeatedly hit, the fluctuation range of the volume level becomes a steep pitch and can be quickly adjusted to a desired volume level.
[0068]
As another embodiment, an operation flow as shown in FIG. 8 may be used.
[0069]
FIG. 8 is a flowchart showing a modification of the input check of the long press state of the
[0070]
In S90, when the volume down key 2B is held down immediately after repeated hits (S90: YES), the key repeat timer is set to a long press time interval of, for example, 100 ms, and then the time is measured by the key repeat timer. Start (S93). That is, when the volume down key 2B is held down immediately after repeated hits, the volume level decreases by one step every 100 ms, and the volume level continuously decreases. Thereafter, when the volume down key 2B is turned off and the long press state is released, the input check of the long press state is completed.
[0071]
On the other hand, if the volume down key 2B is simply pressed (S90: NO), the process proceeds to S79. That is, the time interval at which the volume level decreases by one step is shorter in the case where the volume down key 2B is held down immediately after repeated hits than in the case where the volume down key 2B is simply held down. For this reason, when the volume down key 2B is pressed for a long time immediately after repeated hitting, the volume level is continuously decreased at a faster speed than a simple long press state.
[0072]
Therefore, according to this embodiment, in order to quickly reduce the volume level, if the long press state is continued immediately after the volume down key 2B is continuously pressed, the volume level can be increased at a higher speed than the simple long press state while being continuous. And can be adjusted to a desired volume level more quickly.
[0073]
The present invention is not limited to the above embodiments.
[0074]
The numerical values shown in the embodiments are merely examples, and appropriate numerical values can be adopted according to the design specifications as long as they do not depart from the features of the present invention.
[0075]
The operation is slightly different between when the volume level is raised and when it is lowered, but the same operation may be performed except for the difference between whether the volume level is raised or lowered.
[0076]
There are two types of keys, the volume up key 2A and the volume down key 2B, for adjusting the volume level up and down in an audio device. You may apply this invention with respect to the key operation which makes time go around only to a direction.
[0077]
Of course, the quantity to be adjusted is not limited to the volume level in the audio equipment or the time of the digital clock, but can be a variable quantity in all electronic equipment having operation keys for quantity adjustment.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of a quantity adjusting device according to the present invention.
FIG. 2 is a timing chart when raising the volume level as an example.
FIG. 3 is a flowchart showing a main volume adjustment process.
FIG. 4 is a flowchart showing a key-off check.
FIG. 5 is a flowchart showing a volume up key input check.
FIG. 6 is a flowchart showing a volume down key input check.
FIG. 7 is a flowchart showing an input check when a key is pressed long.
FIG. 8 is a flowchart showing a modified example regarding an input check in a long-press state of a key.
[Explanation of symbols]
1 Volume controller
2A Volume up key
2B Volume down key
3 Display section
10 Operation status judgment means
11 Step number variable control means
12 Interface circuit
Claims (8)
使用者による前記操作キーの押下操作毎に前回の押下操作から今回の押下操作まで押下操作間隔を計時する第1の計時手段と、
前記使用者により前記操作キーの押下操作が行われると、前記第1の計時手段により計時される押下操作間隔に基づいて当該押下操作が単打であるか否かを判断するとともに、単打でないと判断された場合は、その判断の連続回数に基づいて連打であるか否かを判断する操作状況判断手段と、
前記操作状況判断手段により連打でないと判断される場合は、前記数量を単位ステップ数だけ変化させ、前記操作状況判断手段により連打と判断される場合は、前記数量を単位ステップ数よりも大きい第1のステップ数だけ変化させる第1の数量変更手段と、
前記使用者による前記操作キーの押下操作毎に当該押下操作が継続している押下操作継続時間を計時する第2の計時手段と、
前記第2の計時手段により計時される押下操作継続時間が所定の継続時間閾値を越えたか否かにより前記操作キーの押下操作が長押しされているか否かを判別する判別手段と、
前記判別手段により前記操作キーの押下操作が長押しされていると判別されると、所定の時間間隔で前記数量を所定の第2のステップ数ずつ連続的に変化させる第2の数量変更手段と、
前記操作状況判断手段により連打であると判断される押下操作が前記判別手段により長押しされていると判別された場合は、前記操作状況判断手段により連打でないと判断される押下操作が前記判別手段により長押しされていると判別された場合よりも、前記第2の数量変更手段による数量の連続的な変化の速度を速くする数量変化速度制御手段と、
を備えたことを特徴とする、数量調整装置。A quantity adjusting device for adjusting to a desired quantity by pressing an operation key,
A first time measuring means for measuring a pressing operation interval from a previous pressing operation to a current pressing operation every time the user presses the operation key;
When the operation key is pressed by the user, it is determined whether or not the pressing operation is a single stroke based on the pressing operation interval timed by the first timing unit, and is determined not to be a single stroke. If it is, the operation status determination means for determining whether or not the continuous hit based on the continuous number of times of the determination,
When said operating condition determining means by Ru is determined not to be repeated pressing, the volume is changed by the number of unit step of, if it is determined that battered by the operating condition determining means, first the quantity greater than the unit number of steps First quantity changing means for changing the number of steps,
A second timing unit that counts a pressing operation duration time during which the pressing operation continues for each pressing operation of the operation key by the user;
A discriminating unit for discriminating whether or not the pressing operation of the operation key is held down for a long time depending on whether or not the pressing operation duration time measured by the second timing unit exceeds a predetermined duration threshold;
Second quantity changing means for continuously changing the quantity by a predetermined second number of steps at a predetermined time interval when it is determined by the determining means that the pressing operation of the operation key is long-pressed; ,
When it is determined that the pressing operation that is determined to be repeated hits by the operation status determining unit is being pressed for a long time by the determining unit, the pressing operation that is determined not to be repeated hits is determined by the determining unit. Quantity change speed control means for increasing the speed of continuous change of the quantity by the second quantity change means, compared with the case where it is determined that the second quantity change means is pressed for a long time,
A quantity adjustment device comprising:
使用者による操作キーの押下操作毎に前回の押下操作から今回の押下操作まで押下操作 間隔を計時する第1の計時手段と、
前記使用者により前記操作キーの押下操作が行われると、前記第1の計時手段により計時される押下操作間隔に基づいて当該押下操作が単打であるか否かを判断するとともに、単打でないと判断された場合は、その判断の連続回数に基づいて連打であるか否かを判断する操作状況判断手段と、
前記操作状況判断手段により連打でないと判断される場合は、数量を単位ステップ数だけ変化させ、前記操作状況判断手段により連打と判断された場合は、前記数量を単位ステップ数よりも大きい第1のステップ数だけ変化させる第1の数量変更手段と、
前記使用者による前記操作キーの押下操作毎に当該押下操作が継続している押下操作継続時間を計時する第2の計時手段と、
前記第2の計時手段により計時される押下操作継続時間が所定の継続時間閾値を越えたか否かにより前記操作キーの押下操作が長押しされているか否かを判別する判別手段と、
前記判別手段により前記操作キーの押下操作が長押しされていると判別されると、所定の時間間隔で前記数量を所定の第2のステップ数ずつ連続的に変化させる第2の数量変更手段と、
前記操作状況判断手段により連打であると判断される押下操作が前記判別手段により長押しされていると判別された場合は、前記操作状況判断手段により連打でないと判断される押下操作が前記判別手段により長押しされていると判別された場合よりも、前記第2の数量変更手段による数量の連続的な変化の速度を速くする数量変化速度制御手段と、
して機能させるためのコンピュータプログラム。 Computer
A first timing unit that counts the pressing operation interval from the previous pressing operation to the current pressing operation every time the user presses the operation key ;
When the operation key is pressed by the user, it is determined whether or not the pressing operation is a single stroke based on the pressing operation interval timed by the first timing unit, and is determined not to be a single stroke. If it is, the operation status determination means for determining whether or not the continuous hit based on the continuous number of times of the determination,
When it is determined by the operation status determining means that the number of hits is not repeated, the quantity is changed by the number of unit steps. First quantity changing means for changing the number of steps;
A second timing unit that counts a pressing operation duration time during which the pressing operation continues for each pressing operation of the operation key by the user;
A discriminating unit for discriminating whether or not the pressing operation of the operation key is held down for a long time depending on whether or not the pressing operation duration time measured by the second timing unit exceeds a predetermined duration threshold;
Second quantity changing means for continuously changing the quantity by a predetermined second number of steps at a predetermined time interval when it is determined by the determining means that the pressing operation of the operation key is long-pressed; ,
When it is determined that the pressing operation that is determined to be repeated hits by the operation status determining unit is being pressed for a long time by the determining unit, the pressing operation that is determined not to be repeated hits is determined by the determining unit. Quantity change speed control means for increasing the speed of continuous change of the quantity by the second quantity change means, compared with the case where it is determined that the second quantity change means is pressed for a long time,
Computer program to make it function .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001234419A JP3900869B2 (en) | 2001-08-02 | 2001-08-02 | Quantity adjusting device and computer program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001234419A JP3900869B2 (en) | 2001-08-02 | 2001-08-02 | Quantity adjusting device and computer program |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2003046351A JP2003046351A (en) | 2003-02-14 |
| JP2003046351A5 JP2003046351A5 (en) | 2005-03-03 |
| JP3900869B2 true JP3900869B2 (en) | 2007-04-04 |
Family
ID=19066029
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001234419A Expired - Fee Related JP3900869B2 (en) | 2001-08-02 | 2001-08-02 | Quantity adjusting device and computer program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3900869B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4502610B2 (en) * | 2003-09-01 | 2010-07-14 | ジーイー・メディカル・システムズ・グローバル・テクノロジー・カンパニー・エルエルシー | Ultrasonic diagnostic equipment |
| JP5566338B2 (en) * | 2011-05-30 | 2014-08-06 | 三菱電機株式会社 | Information input device and navigation device |
| JP5544336B2 (en) * | 2011-07-26 | 2014-07-09 | 京セラドキュメントソリューションズ株式会社 | Symbol input device and image forming apparatus having the same |
| JP5962152B2 (en) * | 2012-04-02 | 2016-08-03 | ヤマハ株式会社 | Parameter control device, parameter control program, and terminal device |
| JP6390938B2 (en) * | 2013-11-22 | 2018-09-19 | Necディスプレイソリューションズ株式会社 | MULTI VIDEO SYSTEM, MULTI VIDEO SYSTEM CONTROL METHOD AND DISPLAY DEVICE |
| JP6499630B2 (en) * | 2016-10-27 | 2019-04-10 | 株式会社ソフイア | Game machine |
-
2001
- 2001-08-02 JP JP2001234419A patent/JP3900869B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2003046351A (en) | 2003-02-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10296092B2 (en) | Generating haptic effects while minimizing cascading | |
| JP3900869B2 (en) | Quantity adjusting device and computer program | |
| CN105700752B (en) | A game value adjustment control method and device | |
| CN100539660C (en) | A kind of television set sound volume control regulating method | |
| US20100089224A1 (en) | Method and apparatus for adjusting the cadence of music on a personal audio device | |
| CN104866078B (en) | Control method and control device of electronic equipment and electronic equipment | |
| US20050064916A1 (en) | User cognitive electronic device | |
| JP2003220180A (en) | Gaming machine and its information providing method | |
| CN105072273B (en) | A kind of mobile terminal loudness adjusting method and system | |
| CN104978163B (en) | The sound-volume control system and its method for controlling volume of electronic device | |
| CN110623768A (en) | Method, device, equipment and readable medium for determining control of motor vibration variable speed | |
| CN103106021B (en) | Hand-held device and control method thereof | |
| CN105653093A (en) | Method and device for adjusting screen brightness in portable terminal | |
| CN107170423A (en) | Mobile terminal and mobile terminal screen luminance regulating method | |
| KR100490408B1 (en) | Volume control apparatus and method thereof | |
| CN112445358A (en) | Adjusting method, terminal and computer storage medium | |
| JP3988561B2 (en) | Volume control device | |
| TWI850001B (en) | Touch control device and touch sensing method thereof | |
| US20210200158A1 (en) | Contact responsive metronome | |
| US20100031805A1 (en) | Method and apparatus for adjusting the cadence of music on a personal audio device | |
| CN219477951U (en) | Sensitivity self-adaptive module based on capacitive touch key and key circuit thereof | |
| JPH071860Y2 (en) | Signal level adjuster | |
| KR20000025539A (en) | Method of cooking popcorn in microwave oven | |
| JP7619374B2 (en) | Signal generating device, electronic musical instrument, electronic keyboard device, electronic device, signal generating method and program | |
| CN115940919B (en) | Touch key combination detection method, device, electrical equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040401 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040401 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060830 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060912 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061113 |
|
| 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: 20061212 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061225 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 3900869 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100112 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130112 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130112 Year of fee payment: 6 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |