JPH071497U - Function setting device for electronic devices - Google Patents
Function setting device for electronic devicesInfo
- Publication number
- JPH071497U JPH071497U JP117492U JP117492U JPH071497U JP H071497 U JPH071497 U JP H071497U JP 117492 U JP117492 U JP 117492U JP 117492 U JP117492 U JP 117492U JP H071497 U JPH071497 U JP H071497U
- Authority
- JP
- Japan
- Prior art keywords
- switch
- mode
- function switch
- lighting
- function
- 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
Links
- 238000000034 method Methods 0.000 claims description 32
- 230000006870 function Effects 0.000 description 34
- 230000005540 biological transmission Effects 0.000 description 4
- 230000004397 blinking Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 description 1
- ZYXYTGQFPZEUFX-UHFFFAOYSA-N benzpyrimoxan Chemical compound O1C(OCCC1)C=1C(=NC=NC=1)OCC1=CC=C(C=C1)C(F)(F)F ZYXYTGQFPZEUFX-UHFFFAOYSA-N 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Abstract
(57)【要約】
【目的】 電子楽器などの電子装置の機能設定装置にお
いて、機能スイッチの操作方法を覚えることが容易で、
操作性の優れたものを提供する。
【構成】 電子装置のパネルに自己復帰型でプッシュボ
タン式の機能スイッチK1、K2およびK3を設け、機
能スイッチに対応して点灯手段を設けた。ある機能スイ
ッチが1回目に押された場合、該機能スイッチに対応し
た第1の処理を行うと共に前記点灯手段を第1の点灯状
態とする。前記点灯手段が第1の点灯状態の際に機能ス
イッチが再度所定時間以上押された場合、前記点灯手段
を第2の点灯状態とする。前記点灯手段が第2の点灯状
態の際に機能スイッチが再々度押された場合、該機能ス
イッチに対応した第2の処理を行うと共に前記点灯手段
を第3の点灯状態とする。
(57) [Abstract] [Purpose] It is easy to learn how to operate function switches in the function setting device for electronic devices such as electronic musical instruments.
We provide products with excellent operability. [Constitution] A self-reset type push-button function switch K1, K2 and K3 is provided on a panel of an electronic device, and a lighting means is provided corresponding to the function switch. When a certain function switch is pressed for the first time, the first processing corresponding to the function switch is performed and the lighting means is brought into the first lighting state. When the function switch is pressed again for a predetermined time or longer while the lighting means is in the first lighting state, the lighting means is set to the second lighting state. When the function switch is pressed again while the lighting means is in the second lighting state, the second processing corresponding to the function switch is performed and the lighting means is set to the third lighting state.
Description
【0001】[0001]
本考案は電子楽器等の電子装置に係り、特に使用者が機能スイッチにより所望 の機能を設定することができる電子装置に関する。 The present invention relates to an electronic device such as an electronic musical instrument, and more particularly to an electronic device that allows a user to set a desired function with a function switch.
【0002】[0002]
電子装置のパネル面の面積に比べ、電子装置が有する機能の種類が多く、それ らの機能に対応した数の機能スイッチを設けることが困難な場合がある。このよ うな場合、従来、電子装置の機能設定部として下記2通りのタイプのものが用い られてきた。 <第1のタイプ> 2種類の機能スイッチが押された場合にそれらの組み合わせに対応した機能を 設定するようにした電子装置。 <第2のタイプ> ある機能スイッチが短時間押された場合と長時間押された場合とで別の機能を 設定するようにした電子装置。 The electronic device has many types of functions compared to the area of the panel surface of the electronic device, and it may be difficult to provide the number of function switches corresponding to those functions. In such a case, conventionally, the following two types of function setting units for electronic devices have been used. <First type> An electronic device configured to set a function corresponding to a combination of two types of function switches when they are pressed. <Second type> An electronic device that sets different functions depending on whether a certain function switch is pressed for a short time or when it is pressed for a long time.
【0003】[0003]
ところで、上述した第1のタイプの電子装置においては、所望の機能に対応し た2つのスイッチ間の距離が離れている場合、それらのスイッチを押し難いとい う欠点があった。そのうえ使用者は所望の機能を動作させるには、どのスイッチ とどのスイッチを押せば良いかなどのスイッチの組み合わせを覚えておかなけれ ばならず、使用者の操作に関する負担が大きいという問題があった。 また、上述した第2のタイプの電子装置においては、使用者の誤操作を防止す るために、そのスイッチを短時間押した場合に設定される機能と長時間にわたっ て押し続けた場合に設定される機能とは関連したものにする必要があるという制 約があった。 本考案は、このような背景の下になされたもので、1つのスイッチにより多く の機能を指示することができ、しかも使用者がスイッチの操作方法を覚えること が容易な操作性に優れた電子装置の機能設定装置を提供することを目的とする。 By the way, the above-mentioned electronic device of the first type has a drawback that it is difficult to push the switches when the distance between the two switches corresponding to the desired function is large. In addition, the user must remember the combination of switches, such as which switch to press and which switch to operate the desired function, which poses a problem that the user's operational burden is heavy. . In addition, in the second type of electronic device described above, in order to prevent erroneous operation by the user, the function set when the switch is pressed for a short time and the function set when the switch is pressed for a long time are set. There was a constraint that it had to be related to the function being performed. The present invention has been made under such a background, and an electronic device with excellent operability in which many functions can be instructed by one switch and the user can easily learn how to operate the switch. An object is to provide a device function setting device.
【0004】[0004]
本考案による電子装置の機能設定装置は、電子装置のパネルに設けられ、使用 者の操作によってオン/オフ状態が切り換えられる機能スイッチと、 前記機能スイッチに対応して設けられた点灯手段と、 (1)前記機能スイッチが1回目に押された場合、該機能スイッチに対応した第 1の処理を行うと共に前記点灯手段を第1の点灯状態とし、 (2)前記第1の処理状態に設定されている際に、前記機能スイッチが再度所定 時間以上押された場合に、前記点灯手段を第2の点灯状態とし、 (3)前記第2の点灯状態で前記機能スイッチが再々度押された場合、前記第1 の処理とは異なる第2の処理を行うと共に前記点灯手段を第3の点灯状態とする 処理制御手段と を具備することを特徴としている。 A function setting device for an electronic device according to the present invention is provided on a panel of the electronic device, a function switch that is turned on / off by a user's operation, and a lighting means provided corresponding to the function switch. 1) When the function switch is pressed for the first time, the first processing corresponding to the function switch is performed and the lighting means is set to the first lighting state, and (2) the first processing state is set. When the function switch is pressed again for a predetermined time or more, the lighting means is set to the second lighting state, and (3) the function switch is pressed again in the second lighting state. And processing control means for performing the second processing different from the first processing and for setting the lighting means in the third lighting state.
【0005】[0005]
上記構成において、1回目に機能スイッチが押下されると機能スイッチに対応 した第1の処理が実行され、点灯手段は第1の点灯状態となる。第1の処理状態 が設定されている時に同じ機能スイッチが所定時間以上押下されると、点灯手段 の点灯状態は第2の点灯状態となり、この状態において再度同じ機能スイッチが 押下されると、前述した第1の処理とは別の第2の処理が実行される。このパネ ルに設けられた機能スイッチの操作方法は点灯手段の点灯態様によって判別でき るので電子装置の機能設定装置としての操作性は向上する。 In the above configuration, when the function switch is pressed for the first time, the first processing corresponding to the function switch is executed and the lighting means is brought into the first lighting state. When the same function switch is pressed for a predetermined time or longer while the first processing state is set, the lighting state of the lighting means becomes the second lighting state, and when the same function switch is pressed again in this state, A second process different from the first process performed is executed. Since the method of operating the function switch provided in this panel can be determined by the lighting mode of the lighting means, the operability as a function setting device of the electronic device is improved.
【0006】[0006]
以下、図面を参照して、この考案の実施例について説明する。 図1は本考案の一実施例による音源モジュール装置の構成を示すブロック図で ある。図2は同装置のフロントパネルを表す正面図であり、図3はリアパネルを 表す背面図である。この音源モジュール装置はGM(GM−L1)規格、DO( ディスク・オーケストラ)規格およびCM(コンピュータ・ミュージック)規格 の3種類の規格に対応した音源をエミュレートするものである。 図1において1はCPU(中央処理装置)であり、この音源モジュール装置全 体の制御を行う。 11はROM(リード・オンリー・メモリ)であり、CPU1が実行する制御 プログラムおよび各種制御データが格納されている。 2はパネルスイッチ群であり、図2に示すようにフロントパネルに配備された GMモードスイッチK1,DOモードスイッチK2,およびCMモードスイッチ K3等からなる。モードスイッチK1〜K3は各々自己復帰型でプッシュボタン 式のスイッチであり、これらのモードスイッチK1〜K3はCPU1に対して上 述したGM規格、DO規格およびCM規格の各エミュレーションを指示するため の操作子として設けられたものである。各スイッチのオン/オフ状態の変化はパ ネルスイッチ・インターフェイス3を通してCPU1にイベントとして検知され る。図1において4はLED群であり、これらの各LEDはモードスイッチK1 ,K2およびK3の各々と共にフロントパネルに取り付けられている。CPU1 はLEDインターフェイス5を介し、LED群4を構成する各LEDの点灯制御 を行う。 12はRAM(ランダム・アクセス・メモリ)であり、このRAM12の各記 憶エリアは各種制御情報を記憶するためのレジスタ、フラグ類として使用される 。これらのレジスタ、フラグ類のうち主なものを以下列挙する。 モードレジスタMODE : モードスイッチK1、K2およびK3のいずれか がON状態となった場合に更新されるレジスタであり、ON状態となったモード スイッチに対応した値が書き込まれる。 タイマフラグTMF : 同一のモードスイッチが続けて2回押された場合に更 新されるフラグである。このタイマフラグTMFには、いずれのモードスイッチ が押下されたかを示す値が書き込まれる。 レディフラグREADY : 前回操作されたものと同一のモードスイッチが押 され、スイッチが一定時間以上押し続けられた場合にセットされるフラグである 。 図1において10はタイマであり、CPU1に対し所定周期毎にタイマ割り込 み信号を出力する。 6はコンピュータであり、図3に示すホスト用端子HJを介し、この音源モジ ュールのホストインターフェース7と接続される。図3におけるHSはホスト選 択モードスイッチであり、音源モジュールと接続されるホスト・コンピュータ6 の機種を指定するのに使用される。 また13は音源回路であり、楽音信号を形成する。サウンドシステムSPは音 源回路13によって形成された楽音信号を楽音として発音する。 MIDI端子Mは、外部からの入力信号を受信するためのIN端子MI、外部 に対し信号を出力するOUT端子MOおよびIN端子を介して受信した信号を外 部へ出力するTHRU端子MTからなる(図3参照)。図1の構成ではシーケン サ9の出力端がIN端子MIに接続され、シーケンサ9の入力端はOUT端子M Oに接続されており、MIDIインターフェイス8を介して送受信される。 An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a sound source module device according to an embodiment of the present invention. FIG. 2 is a front view showing a front panel of the device, and FIG. 3 is a rear view showing a rear panel. This sound source module device emulates a sound source corresponding to three kinds of standards, a GM (GM-L1) standard, a DO (disk orchestra) standard and a CM (computer music) standard. In FIG. 1, reference numeral 1 denotes a CPU (central processing unit), which controls the entire sound source module device. Reference numeral 11 denotes a ROM (Read Only Memory), which stores a control program executed by the CPU 1 and various control data. Reference numeral 2 denotes a panel switch group, which includes a GM mode switch K1, a DO mode switch K2, a CM mode switch K3 and the like arranged on the front panel as shown in FIG. Each of the mode switches K1 to K3 is a self-reset type push button type switch, and these mode switches K1 to K3 are used to instruct the CPU 1 to emulate the GM standard, DO standard and CM standard described above. It is provided as an operator. The change in the on / off state of each switch is detected as an event by the CPU 1 through the panel switch interface 3. In FIG. 1, reference numeral 4 denotes an LED group, and each of these LEDs is attached to the front panel together with each of the mode switches K1, K2 and K3. The CPU 1 controls the lighting of each LED that constitutes the LED group 4 via the LED interface 5. Reference numeral 12 is a RAM (random access memory), and each storage area of the RAM 12 is used as a register and flags for storing various control information. The main ones of these registers and flags are listed below. Mode register MODE: This register is updated when any one of the mode switches K1, K2, and K3 is turned on, and the value corresponding to the mode switch turned on is written. Timer flag TMF: This flag is updated when the same mode switch is pressed twice in succession. A value indicating which mode switch is pressed is written in the timer flag TMF. Ready flag READY: This flag is set when the same mode switch as the one operated last time is pressed and the switch is kept pressed for a certain time or longer. In FIG. 1, reference numeral 10 is a timer, which outputs a timer interrupt signal to the CPU 1 at predetermined intervals. Reference numeral 6 denotes a computer, which is connected to the host interface 7 of this sound source module through the host terminal HJ shown in FIG. HS in FIG. 3 is a host selection mode switch, and is used to specify the model of the host computer 6 connected to the sound source module. Reference numeral 13 is a tone generator circuit, which forms a tone signal. The sound system SP produces the tone signal formed by the sound source circuit 13 as a tone. The MIDI terminal M includes an IN terminal MI for receiving an input signal from the outside, an OUT terminal MO for outputting a signal to the outside, and a THRU terminal MT for outputting a signal received via the IN terminal to the outside ( (See FIG. 3). In the configuration of FIG. 1, the output end of the sequencer 9 is connected to the IN terminal MI and the input end of the sequencer 9 is connected to the OUT terminal M O, and transmission / reception is performed via the MIDI interface 8.
【0007】 以下、本実施例の動作を図4〜図10に示すフローチャートに従って説明する 。 この音源モジュール装置の電源が投入されると、CPU1は図4に示すメイン ・ルーチンの処理を実行する。まずステップS1に進み、RAM4内の制御用の 各レジスタ、フラグ類の初期化を行う。この初期化によりモードレジスタMOD Eにはいずれのモードスイッチにも対応しない値が書き込まれる。また、タイマ フラグTMFには「0」、レディフラグREADYには「0」が初期値としてセ ットされる。次にステップS2に進み、図5〜図7にフローを示すパネル処理ル ーチンを実行する。このパネル処理ルーチンは、GMモードスイッチK1の操作 に対応したステップSA1〜SA17からなる処理(図5)、DOモードスイッ チK2の操作に対応したステップSB1〜SB17からなる処理(図6)、およ びCMモードスイッチK3の操作に対応したステップSC1〜SC17からなる 処理(図7)を順次編成したものである。ここで、DOモードスイッチK2およ びCMモードスイッチK3の操作に対応した各処理は、GMモードスイッチK1 に対応した処理において「GMモードスイッチ」とあるのを「DOモードスイッ チ」および「CMモードスイッチ」に各々変更した処理内容となっている。すな わち、これらの各モードスイッチに対応した各処理は対象とするモードスイッチ の種類が違うのみであって全く同じ内容の処理であり、DOモードスイッチK2 およびCMモードスイッチK3に対応したステップSBnおよびSCn(n=1 〜17)は、GMモードスイッチに対応した処理におけるステップSAn(n= 1〜17)に各々対応しているので、ここでは主にステップSA1〜SA17か らなる処理について詳述する。 まず、ステップSA1に進み、CPU1はGMモードスイッチK1がOFF状 態からON状態となったか否かを判断する。使用者がモードスイッチを操作して いない場合は、この判断結果が「NO」となってステップSA6に進み、タイマ フラグTMFにGMモードに対応した情報が記憶されているか否かを判断する。 使用者がパネルスイッチを操作していない場合はステップSA6の判断結果は「 NO」となってステップSA9に進み、CPU1はGMモードスイッチK1がO FF状態になったか否かを判断する。使用者がモードスイッチの押圧操作を解除 した場合は、この判断結果が「YES」となり、ステップSA10に進み、タイ マフラグTMFにGMモードに対した情報が記憶されているか否かを判断する。 ここでは、後述するように継続押しの状態が途中で解除されたか否かを判断して いる。ただ単にモード設定の場合は「NO」と判断される。そして、使用者がい ずれのモードスイッチをも操作していない場合には、ステップSB1、SB6、 SB9、SC1、SC6およびSC9の判断結果がすべて「NO」となってパネ ル処理ルーチンを終了する。 パネル処理が終了してメインルーチンに戻るとステップS3に進んでMIDI 処理ルーチンを実行し、MIDIイベントの送受信、MIDIイベントに基づく 発音制御等の処理を行う。 次にステップS4に進んでコンピュータ処理ルーチンを実行し、コンピュータ ・ホストと音源モジュールとの間のMIDI信号の送受信を行う。そして、再び ステップS2に戻る。以後、ステップS2〜S4を繰り返す。The operation of this embodiment will be described below with reference to the flow charts shown in FIGS. When the power source of the sound source module device is turned on, the CPU 1 executes the processing of the main routine shown in FIG. First, in step S1, each control register and flags in the RAM 4 are initialized. By this initialization, a value that does not correspond to any mode switch is written in the mode register MODE. Also, the timer flag TMF is set to "0" and the ready flag READY is set to "0" as initial values. Next, in step S2, the panel processing routine whose flow is shown in FIGS. 5 to 7 is executed. This panel processing routine includes steps SA1 to SA17 corresponding to the operation of the GM mode switch K1 (FIG. 5), steps SB1 to SB17 corresponding to the operation of the DO mode switch K2 (FIG. 6), In addition, the processing (FIG. 7) including steps SC1 to SC17 corresponding to the operation of the CM mode switch K3 is sequentially organized. Here, in each process corresponding to the operation of the DO mode switch K2 and the CM mode switch K3, the “GM mode switch” in the process corresponding to the GM mode switch K1 is the “DO mode switch” and the “CM mode”. The processing contents are changed to "mode switch". That is, each process corresponding to each of these mode switches has exactly the same contents except for the type of the target mode switch, and the steps corresponding to the DO mode switch K2 and the CM mode switch K3. Since SBn and SCn (n = 1 to 17) respectively correspond to step SAn (n = 1 to 17) in the processing corresponding to the GM mode switch, here, the processing mainly including steps SA1 to SA17 will be described. Detailed description. First, in step SA1, the CPU 1 determines whether the GM mode switch K1 has changed from the OFF state to the ON state. If the user has not operated the mode switch, the result of this determination is "NO" and the operation proceeds to step SA6, where it is determined whether or not the information corresponding to the GM mode is stored in the timer flag TMF. If the user has not operated the panel switch, the determination result of step SA6 is "NO", and the process proceeds to step SA9, and the CPU 1 determines whether or not the GM mode switch K1 is in the OFF state. When the user releases the pressing operation of the mode switch, the result of this determination is "YES", the flow proceeds to step SA10, and it is determined whether or not the information for the GM mode is stored in the timer flag TMF. Here, as will be described later, it is determined whether or not the continuously pressed state is canceled halfway. In the case of simply setting the mode, "NO" is determined. If the user has not operated any of the mode switches, the judgment results of steps SB1, SB6, SB9, SC1, SC6 and SC9 are all "NO", and the panel processing routine is ended. When the panel processing ends and returns to the main routine, the process proceeds to step S3 to execute the MIDI processing routine to perform transmission / reception of MIDI events, sound generation control based on MIDI events, and the like. Next, in step S4, a computer processing routine is executed to transmit / receive MIDI signals between the computer / host and the sound source module. Then, the process returns to step S2 again. After that, steps S2 to S4 are repeated.
【0008】 一方、CPU1はタイマ10から割り込み信号が供給され、かつ、その時点に おいて割り込みマスクがなされていない場合、図10に示すタイマ割り込みルー チンを実行してタイムカウンタTCをインクリメントする。なお、割り込みマス クを行う処理については後述する。On the other hand, when the interrupt signal is supplied from the timer 10 and the interrupt mask is not made at that time, the CPU 1 executes the timer interrupt routine shown in FIG. 10 to increment the time counter TC. The process of executing the interrupt mask will be described later.
【0009】 さて、使用者がGMモードスイッチK1を押下すると、GMモードスイッチK 1がOFF状態からON状態になったことを示すONイベントがCPU1によっ て検知される。この結果、メインルーチンのステップS2を介してパネル処理ル ーチンに進んだ時、ステップSA1の判断結果が「YES」となって、ステップ SA2に進む。そして、モードレジスタMODEにGMモードに対応した情報が 記憶されているか否かを判断する。この判断結果が「NO」の場合には、ステッ プSA14に進み、レディフラグREADYの値が「1」であるか否かを判断す る。この判断結果が「NO」となった場合は、単にGMモードを選択した場合な のでステップSA15に進み、MODEレジスタにGMモードに対応した情報を セットする。 次にステップSA16に進んで、GMモード処理を実行し、この音源モジュー ルをGM規格対応の音源として機能させるのに必要な下記の処理を行う。 (1)演奏データに含まれる音色番号を、GM規格に対応した音色番号に変換 する変換テーブルを作成する。 (2)マルチ・パラメータの初期値設定処理、すなわちMIDI端子を接続し た際にGM音源に対応した信号の送受信の環境設定を行うこと。 (3)GM音源のフォーマットによるデータを記憶、再生、編集する等の環境 設定をすること。When the user presses the GM mode switch K1, the CPU 1 detects an ON event indicating that the GM mode switch K 1 has changed from the OFF state to the ON state. As a result, when the process proceeds to the panel processing routine via step S2 of the main routine, the determination result of step SA1 becomes "YES" and the process proceeds to step SA2. Then, it is determined whether or not the information corresponding to the GM mode is stored in the mode register MODE. If the result of this determination is "NO", the flow proceeds to step SA14 and it is determined whether or not the value of the ready flag READY is "1". If the result of this determination is "NO", it means that the GM mode has simply been selected, so the routine proceeds to step SA15, where information corresponding to the GM mode is set in the MODE register. Next, in step SA16, GM mode processing is executed, and the following processing necessary for causing this sound source module to function as a sound source compatible with the GM standard is performed. (1) A conversion table for converting the tone color numbers included in the performance data into the tone color numbers corresponding to the GM standard is created. (2) Initial setting process of multi-parameters, that is, environment setting for signal transmission / reception corresponding to GM sound source when MIDI terminal is connected. (3) To set environment such as storing, playing, and editing data in the GM sound source format.
【0010】 使用者が2回目にGMモードスイッチK1を押下すると、GMモードスイッチ K1のONイベントがCPU1によって検知される。この結果、ステップSA1 の判断結果が「YES」となって、ステップSA2に進む。この場合、モードレ ジスタMODEにGMモードに対応した情報がセットされているので(前述のス テップSA15)、ステップSA2の判断結果が「YES」となり、ステップS A3に進む。 次にステップSA3に進むとレディフラグREADYが「1」であるか否かを 判断する。当初はレディフラグREADYがクリアされているため、この判断結 果は「NO」となって、つぎのステップSA12に進んでタイマフラグTMFに GMモードに対応した情報をセットする。ステップSA13では、タイマ・スタ ート・ルーチンを実行する。このタイマ・スタート・ルーチンに進むと、まずタ イマ・カウンタTCをゼロクリアする(ステップS101)。次にタイマ割り込 みマスクを解除する(ステップS102)。この結果、以後割り込み信号がタイ マ10から出力される毎に、CPU1はタイマ割り込みルーチンを実行する。タ イマスタートルーチンが終了すると、メインルーチンに戻ってステップSA6に 進む。この場合、ステップSA6の判断結果が「YES」となって次のステップ SA7に進み、GMモードスイッチK1が押され続けて2秒たったか否か、すな わちタイマ・カウンタTCの値が時間に換算して2秒以上カウント・アップされ ているか否かを判断する。When the user presses the GM mode switch K1 for the second time, the CPU 1 detects the ON event of the GM mode switch K1. As a result, the determination result of step SA1 becomes "YES", and the process proceeds to step SA2. In this case, since information corresponding to the GM mode is set in the mode register MODE (step SA15 described above), the determination result of step SA2 becomes "YES", and the process proceeds to step SA3. Next, in step SA3, it is determined whether or not the ready flag READY is "1". Since the ready flag READY is initially cleared, the result of this determination is "NO" and the routine proceeds to the next step SA12, where information corresponding to the GM mode is set in the timer flag TMF. In step SA13, a timer start routine is executed. When proceeding to this timer start routine, the timer counter TC is first cleared to zero (step S101). Next, the timer interrupt mask is released (step S102). As a result, the CPU 1 executes the timer interrupt routine each time an interrupt signal is subsequently output from the timer 10. When the timer start routine ends, the process returns to the main routine and proceeds to step SA6. In this case, the determination result of step SA6 becomes "YES", and the process proceeds to the next step SA7, and it is determined whether or not 2 seconds have elapsed since the GM mode switch K1 was continuously pressed, that is, the value of the timer counter TC indicates the time. It is determined whether or not it has been counted up for 2 seconds or more.
【0011】 その後使用者がGMモードスッチK1を押し続けている間は、パネル処理ルー チンのステップSA1に進むと、その判断結果が「NO」となる。そしてステッ プSA6に進んで、この判断結果が「YES」となり、ステップSA7に進む。 使用者がGMモードスイッチを押下して2秒以内の場合、判断結果が「NO」と なる。After that, while the user continues to press the GM mode switch K1, when the process proceeds to step SA1 of the panel processing routine, the determination result is “NO”. Then, the process proceeds to step SA6, the determination result is "YES", and the process proceeds to step SA7. If the user presses the GM mode switch for less than 2 seconds, the judgment result is "NO".
【0012】 使用者がGMモードスイッチK1を2秒以上押し続けた場合、ステップSA7 の判断結果は「YES」となってステップSA8に進み、フロントパネル上のス イッチのうちGMモードスイッチK1に対応したLED4を等間隔で点滅させ、 図9にフローを示すタイマ・ストップ処理ルーチンに進み、タイマ・カウンタT Cをゼロクリアし(ステップS201)、タイマ割り込みマスクを解除する(ス テップS202)。 また、タイマフラグTMFに「0」を書き込み、レディフラグREADYに「 1」を書き込む。When the user continues to press the GM mode switch K1 for 2 seconds or more, the result of the determination in step SA7 is “YES” and the process proceeds to step SA8, and corresponds to the GM mode switch K1 of the switches on the front panel. The blinking LEDs 4 are blinked at equal intervals, the process proceeds to the timer stop processing routine shown in the flow chart of FIG. 9, the timer counter TC is cleared to zero (step S201), and the timer interrupt mask is released (step S202). Further, "0" is written in the timer flag TMF and "1" is written in the ready flag READY.
【0013】 以上のような処理によりレディフラグREADY=”1”となった後、使用者 がGMモードボタンを再度押下(3回目の押下)すると、ステップSA1、SA 2の判断結果が「YES」となって、ステップSA3に進む。そして、レディフ ラグREADYの値が「1」であるのでステップSA3の判断結果が「YES」 となって、つぎのステップSA4に進む。ステップSA4に進むと、外部装置と のデータの通信に関するバルクダンプ処理ルーチンを実行する。 このバルクダンプ処理ルーチンでは、以下の処理を行う。 (1)ホストコンピュータ6およびMIDIインターフェース8を通して外部 装置に現在エミュレートしている音源のパラメータ状況(SYSTEM、MUL TI COMMON、...)をエクスクルーシブ・メッセージ形式で出力を開 始する。 (2)GMモードスイッチに対応したLEDを等間隔の点滅から不等間隔の点 滅に変えて、バルクダンプ処理中を意味する表示状態にする。 (3)送信処理を開始する前にMIDIあるいはコンピュータなどの外部装置 に内部設定情報を一時退避させている。送信処理終了後、内部設定状態は退避さ れていた状態に戻し、LEDを点灯状態に戻す。After the ready flag READY = "1" is set by the above-described processing, when the user presses the GM mode button again (third press), the determination results of steps SA1 and SA2 are "YES". Then, the process proceeds to step SA3. Since the value of the ready flag READY is "1", the determination result of step SA3 is "YES", and the process proceeds to the next step SA4. When the processing proceeds to step SA4, a bulk dump processing routine relating to data communication with an external device is executed. In this bulk dump processing routine, the following processing is performed. (1) Output of the parameter status (SYSTEM, MUL TI COMMON, ...) Of the sound source currently emulated to the external device through the host computer 6 and the MIDI interface 8 in the exclusive message format. (2) The LED corresponding to the GM mode switch is changed from blinking at regular intervals to blinking at irregular intervals so that the display state means that the bulk dump process is in progress. (3) The internal setting information is temporarily saved in an external device such as MIDI or a computer before starting the transmission process. After the transmission process is completed, the internal setting state is returned to the saved state, and the LED is turned on again.
【0014】 使用者が2回目にGMモードスイッチK1を押し、その後2秒以内に手を離し た場合は、ステップSA1を介し、ステップSA6に進んで、この判断結果が「 YES」となり、ステップSA7に進む。ここでは判断結果が「NO」となるの でステップSA9に進む。ステップSA9、SA10の判断結果は「YES」と なってステップSA11に進み、タイマフラグTMFをゼロ・クリアし、前述の タイマ・ストップ・ルーチンを実行する。 そして、次のDOモードスイッチに対応した処理およびCMモードスイッチに 対応した処理を行い、メインルーチンに戻る。When the user presses the GM mode switch K1 for the second time and then releases the hand within 2 seconds, the process proceeds to step SA6 via step SA1 and the result of this determination becomes “YES” and step SA7 Proceed to. In this case, the determination result is "NO", so the flow proceeds to step SA9. The determination result of steps SA9 and SA10 is "YES", and the process proceeds to step SA11 to clear the timer flag TMF to zero and execute the above-mentioned timer stop routine. Then, the process corresponding to the next DO mode switch and the process corresponding to the CM mode switch are performed, and the process returns to the main routine.
【0015】 レディフラグREADY=”1”となった状態において別のモードスイッチ、 例えばDOモードスイッチK2が押下された場合、ステップSB1に進み、この 判断結果は「YES」となる。次のステップSB2では、モードレジスタMOD EにDOモードに対応した情報が記憶されているか否かを判断する。いまモード レジスタMODEにはGMモードに対応した情報が記憶されているので、この判 断結果が「NO」となり、ステップSB14に進む。そしてレディフラグREA DYの値が「1」であるか否かを判断する。この判断結果は「YES」になって 、ステップSB17に進み、レディフラグREADYに「0」をセットし、点滅 状態だったGMモードスイッチに対応したLEDを点灯にかえる。 このように、2回目に前回押下したモードスイッチと異なるスイッチが押され た場合、READY状態がキャンセルされる。この時レディフラグREADY= ”0”であり、モードレジスタMODEではGMモードに対応した値がセットさ れている。When another mode switch, for example, the DO mode switch K2 is pressed while the ready flag READY = “1”, the process proceeds to step SB1 and the determination result is “YES”. In the next step SB2, it is determined whether or not the information corresponding to the DO mode is stored in the mode register MOD E. Since information corresponding to the GM mode is now stored in the mode register MODE, the result of this determination is "NO", and the routine proceeds to step SB14. Then, it is determined whether or not the value of the ready flag REA DY is "1". The result of this determination is "YES", the flow proceeds to step SB17, the ready flag READY is set to "0", and the LED corresponding to the blinking GM mode switch is turned on. In this way, when a switch different from the previously pressed mode switch is pressed for the second time, the READY state is canceled. At this time, the ready flag READY = "0", and the value corresponding to the GM mode is set in the mode register MODE.
【0016】 なお、本考案は電子楽器のパネルスイッチに限らず、他の電子装置にも適用可 能である。The present invention can be applied not only to the panel switch of the electronic musical instrument but also to other electronic devices.
【0017】[0017]
以上説明したように、本考案によればスイッチを増やす余裕がない場合に、使 用者はスイッチと機能の対応を覚えなくても点灯したLEDに従ってスイッチを 押せばよいので、操作性があがるという効果がある。 また、1つのスイッチが複数の機能に対応しているので、限られたスペースで より多くの機能を作動させることが可能である。 As described above, according to the present invention, when there is no room to increase the number of switches, the user can press the switch according to the lighted LED without having to remember the correspondence between the switch and the function, which improves the operability. effective. Moreover, since one switch corresponds to a plurality of functions, it is possible to operate more functions in a limited space.
【図1】 本考案の一実施例による音源モジュール装置
の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a sound source module device according to an embodiment of the present invention.
【図2】 同実施例におけるパネルスイッチ表面の構成
を示す正面図である。FIG. 2 is a front view showing the configuration of the surface of the panel switch in the embodiment.
【図3】 同実施例におけるパネルスイッチ裏面の構成
を示す背面図である。FIG. 3 is a rear view showing the configuration of the back surface of the panel switch in the embodiment.
【図4】 同実施例のメイン・ルーチンの動作を示すフ
ローチャートである。FIG. 4 is a flowchart showing an operation of a main routine of the same embodiment.
【図5】 同実施例のパネル処理の動作を示すフローチ
ャートである。FIG. 5 is a flowchart showing an operation of panel processing of the embodiment.
【図6】 同実施例のパネル処理の動作を示すフローチ
ャートである。FIG. 6 is a flowchart showing an operation of panel processing of the embodiment.
【図7】 同実施例のパネル処理の動作を示すフローチ
ャートである。FIG. 7 is a flowchart showing an operation of panel processing of the embodiment.
【図8】 同実施例のタイマ処理の動作を示すフローチ
ャートである。FIG. 8 is a flowchart showing an operation of timer processing of the embodiment.
【図9】 同実施例のタイマ処理の動作を示すフローチ
ャートである。FIG. 9 is a flowchart showing an operation of timer processing of the embodiment.
【図10】 同実施例のタイマ処理の動作を示すフロー
チャートである。FIG. 10 is a flowchart showing an operation of timer processing of the embodiment.
1……CPU、2……パネルスイッチ、3……パネルス
イッチ・インターフェース、4……LED、5……LE
Dインターフェース、M……MIDI端子、8……MI
DIインターフェース、10……タイマ1 ... CPU, 2 ... Panel switch, 3 ... Panel switch interface, 4 ... LED, 5 ... LE
D interface, M ... MIDI terminal, 8 ... MI
DI interface, 10 ... timer
Claims (1)
操作によってオン/オフ状態が切り換えられる機能スイ
ッチと、 前記機能スイッチに対応して設けられた点灯手段と、 (1)前記機能スイッチが1回目に押された場合、該機
能スイッチに対応した第1の処理を行うと共に前記点灯
手段を第1の点灯状態とし、 (2)前記第1の処理状態に設定されている際に、前記
機能スイッチが再度所定時間以上押された場合に、前記
点灯手段を第2の点灯状態とし、 (3)前記第2の点灯状態で前記機能スイッチが再々度
押された場合、前記第1の処理とは異なる第2の処理を
行うと共に前記点灯手段を第3の点灯状態とする処理制
御手段とを具備することを特徴とする電子装置の機能設
定装置。1. A function switch provided on a panel of an electronic device, which is turned on / off by a user's operation, a lighting means provided corresponding to the function switch, and (1) the function switch. When the switch is pressed for the first time, the first processing corresponding to the function switch is performed and the lighting means is set to the first lighting state, and (2) when the first processing state is set, When the function switch is pressed again for a predetermined time or more, the lighting means is brought into the second lighting state, and (3) when the function switch is pressed again in the second lighting state, the first processing is performed. And a processing control unit that sets the lighting unit to a third lighting state while performing a second process different from the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1992001174U JP2560397Y2 (en) | 1992-01-16 | 1992-01-16 | Function setting device for electronic devices |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1992001174U JP2560397Y2 (en) | 1992-01-16 | 1992-01-16 | Function setting device for electronic devices |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH071497U true JPH071497U (en) | 1995-01-10 |
| JP2560397Y2 JP2560397Y2 (en) | 1998-01-21 |
Family
ID=11494079
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1992001174U Expired - Lifetime JP2560397Y2 (en) | 1992-01-16 | 1992-01-16 | Function setting device for electronic devices |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2560397Y2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS56117795U (en) * | 1980-02-09 | 1981-09-09 |
-
1992
- 1992-01-16 JP JP1992001174U patent/JP2560397Y2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS56117795U (en) * | 1980-02-09 | 1981-09-09 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2560397Y2 (en) | 1998-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5296642A (en) | Auto-play musical instrument with a chain-play mode for a plurality of demonstration tones | |
| JP3992243B2 (en) | Performance data processing system | |
| JP2560397Y2 (en) | Function setting device for electronic devices | |
| CN111308148A (en) | System and method for setting parameters of test instrument | |
| GB2038518A (en) | Music tone generating system | |
| JPH0430640Y2 (en) | ||
| JPH03145400A (en) | Signal processor for sound field reproduction | |
| JPH07506467A (en) | PC controlled direct digital synthesizer | |
| JP2741831B2 (en) | Electronic musical instrument | |
| JP2992295B2 (en) | Waveform signal generator for tone control | |
| JP2000132316A (en) | Input device using keyboard device | |
| JPH0683337A (en) | Electronic musical instrument | |
| JPH02103099A (en) | musical tone generator | |
| JP2590262Y2 (en) | Key scaling data display device and tone generator | |
| JPH0298399U (en) | ||
| JP3177423B2 (en) | Peripheral device testing system | |
| JPH0298392U (en) | ||
| JPH11109967A (en) | Electronic musical instrument data input device and data input method | |
| JPH0675574A (en) | Tone control device for electronic musical instruments | |
| JPWO1992009070A1 (en) | Electronic musical instrument control device | |
| JPS58214955A (en) | card type calculator | |
| JPS63144694U (en) | ||
| JPH03146998A (en) | Command input system | |
| JP2004287342A (en) | Mixer device | |
| JPH06324674A (en) | Panning control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19970902 |
|
| EXPY | Cancellation because of completion of term |