JPH04324896A - Output control device - Google Patents
Output control deviceInfo
- Publication number
- JPH04324896A JPH04324896A JP3121765A JP12176591A JPH04324896A JP H04324896 A JPH04324896 A JP H04324896A JP 3121765 A JP3121765 A JP 3121765A JP 12176591 A JP12176591 A JP 12176591A JP H04324896 A JPH04324896 A JP H04324896A
- Authority
- JP
- Japan
- Prior art keywords
- fader
- value
- volume
- register
- contents
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【0001】0001
【産業上の利用分野】この発明は、例えば電子機器の操
作パネル等に設けられるフェーダー等の移動操作子の出
力を制御する出力制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output control device for controlling the output of a movable operator such as a fader provided on, for example, an operation panel of an electronic device.
【0002】0002
【従来の技術】従来、電子楽器やミキサー等といった音
響機器、或いは映像機器等においては、該機器を制御す
る際の操作性を向上させるために、操作パネルにスライ
ド式のフェーダーが設けられることが多い。かかるフェ
ーダーの一例を図6に示す。[Prior Art] Conventionally, in audio equipment such as electronic musical instruments and mixers, or video equipment, slide-type faders are often provided on the operation panel in order to improve operability when controlling the equipment. many. An example of such a fader is shown in FIG.
【0003】このフェーダー1は、スライド操作子(以
下「スライダ」という。)2をスリット3に沿って往復
動させることにより、スライダ2の位置に応じて内部に
設けられた可変抵抗器の抵抗値を変化させ、例えば音量
等の出力を所定範囲(図示例では0〜127の範囲)内
で制御するために用いられる。This fader 1 is configured by reciprocating a slide operator (hereinafter referred to as "slider") 2 along a slit 3 to adjust the resistance value of a variable resistor provided inside according to the position of the slider 2. It is used to control output such as volume within a predetermined range (in the illustrated example, a range of 0 to 127).
【0004】このようなフェーダー1により制御される
ものとしては、音量の他に、音響機器の場合には、曲の
テンポ、音程、音色等があり、映像機器の場合は画像の
輝度、コントラスト等がある。In addition to the volume, things controlled by such a fader 1 include the tempo, pitch, and timbre of a song in the case of audio equipment, and the brightness and contrast of images in the case of video equipment. There is.
【0005】ところで、昨今の電子機器においては、プ
ロセッサを用いてその制御を行うものが多く、音響機器
や映像機器においても例外ではない。かかるプロセッサ
を用いた電子機器では、上記フェーダー1による音量等
の制御は、該フェーダー1のスライダ2の位置に応じた
抵抗値により音量信号等を直接制御するのではなく、該
抵抗値を一旦デジタルデータに変換してメモリに記憶し
ておき、このメモリの値を放音すべき実際の音量値とし
て、例えば増幅器等に与えることにより音量制御を行う
ようになっている。かかる構成とすることにより、音量
等は、フェーダーによる場合のみならず、他の要素によ
っても制御できるようになっている。By the way, many of today's electronic devices are controlled using processors, and audio equipment and video equipment are no exception. In an electronic device using such a processor, the control of the volume etc. by the fader 1 does not directly control the volume signal etc. by the resistance value according to the position of the slider 2 of the fader 1, but the resistance value is once digitally controlled. The data is converted into data and stored in a memory, and the volume is controlled by applying the value in the memory to, for example, an amplifier as the actual volume value to be emitted. With this configuration, the volume etc. can be controlled not only by the fader but also by other elements.
【0006】しかしながら、上記のような構成では、メ
モリに記憶されている実際の音量値とフェーダー1のス
ライダ2の位置との対応がずれる場合が発生する。However, with the above configuration, there may be a case where the actual volume value stored in the memory does not correspond to the position of the slider 2 of the fader 1.
【0007】例えば、フェーダーでMIDI情報を操作
しているときに、別のフェーダーを操作することにより
そのMIDI情報が変化することがある。具体的には、
フェーダーで音量情報を操作しているときに、音量情報
が含まれている音色情報をフェーダーで変更すると、メ
モリに記憶されている実際の音量値が変化する場合があ
る。For example, while manipulating MIDI information with a fader, the MIDI information may change by manipulating another fader. in particular,
If you use the fader to change tone information that includes volume information while operating the volume information using the fader, the actual volume value stored in memory may change.
【0008】また、内部パッチを変更することによって
も、実際にメモリ設定されている実際の値が変化する場
合もある。[0008] Furthermore, changing the internal patch may also change the actual value actually set in the memory.
【0009】さらには、1つのフェーダーをモードによ
って違った意味で選択的に使用する構成の場合、或るモ
ードでフェーダーを操作して所定値を設定し、次いで他
のモードに切り換えて同じフェーダーを操作して他の値
を設定し、再び元のモードに戻した時に、メモリ内の実
際の値とフェーダーの現在値との対応がずれてしまう場
合もある。また、振動でフェーダーの値が変化してしま
うこともあった。Furthermore, in the case of a configuration in which one fader is selectively used in different meanings depending on the mode, the fader is operated in one mode to set a predetermined value, and then the same fader is operated in another mode. When you operate the fader to set a different value and then return to the original mode, the actual value in memory may not correspond to the current value of the fader. Also, the fader values sometimes changed due to vibrations.
【0010】かかる事態が発生すると、次にフェーダー
を動かしたときに急激に値が変化してしまう。例えば、
図7に示すように、フェーダーがαの位置にある状態で
、何らかの要素でメモリに記憶している実際の値がβ(
β>α)に変更されると、例えば音量等はβの値で放音
される状態になる。かかる状態で、時刻Tでスライダを
音量等を上げる方向に操作すると、該スライダが示して
いる値αまで一旦音量等が急激に下がり、その後スライ
ダの動きに応じて徐々に上昇するという現象になる。[0010] If such a situation occurs, the value will change rapidly the next time the fader is moved. for example,
As shown in Figure 7, when the fader is at position α, the actual value stored in the memory due to some element is β(
If the value is changed to β>α), for example, the volume etc. will be emitted at the value of β. In such a state, if the slider is operated in the direction of increasing the volume, etc. at time T, the volume, etc. will suddenly decrease to the value α indicated by the slider, and then gradually increase according to the movement of the slider. .
【0011】また、上記と逆の場合も発生し得る。即ち
、フェーダーが高い音量等の位置に設定され、実際の音
量等は低く設定されている場合において、フェーダーを
、例えば音量等を下げる方向に移動させた場合に、一旦
高い音量等まで急激に変化し、そこから徐々に下降する
という現象になる。[0011] Furthermore, the opposite case to the above may also occur. In other words, when the fader is set to a high volume position, etc., but the actual volume is set low, if the fader is moved in the direction of lowering the volume, etc., the volume suddenly changes once to a high volume, etc. Then, it gradually declines from there.
【0012】かかる状態が発生すると、予期しない音量
等が突然発生するので、操作者は聴感上不自然さを感じ
るという問題があった。[0012] When such a situation occurs, there is a problem in that an unexpected sound volume or the like suddenly occurs, and the operator feels that the sound is unnatural.
【0013】そこで、かかる問題を解決するための出力
制御装置が本発明者により考えられている。[0013] Therefore, the present inventor has devised an output control device to solve this problem.
【0014】具体的に説明すると、例えば、図8(A)
に示すようにフェーダーを動かした場合に、時刻t0〜
t3はボリューム値「40」で推移し、時刻t3以降は
ボリューム値が上昇するように変化することを操作者は
期待する。ところが、図8(B)に示すように、メモリ
内の実際のボリューム値が、上記した理由等により、例
えば「80」に変更されていたとすると、時刻t3では
、ボリューム値が「80」から「40」まで急激に変化
し、その後フェーダーの位置に応じて徐々に上昇すると
いう状態が発生する。Specifically, for example, FIG. 8(A)
When the fader is moved as shown in
At time t3, the volume value remains at "40", and the operator expects the volume value to increase after time t3. However, as shown in FIG. 8B, if the actual volume value in the memory has been changed to, for example, "80" due to the above-mentioned reasons, at time t3, the volume value changes from "80" to "80". 40'', and then gradually increases depending on the fader position.
【0015】そこで、この出力制御装置は、図8(c)
に示すように、フェーダー位置(一点鎖線bで示す)が
メモリに記憶されている実際の値(実線aで示す)を越
えるまでは値が出力されないようにしている。[0015] Therefore, this output control device is as shown in Fig. 8(c).
As shown in FIG. 2, no value is output until the fader position (indicated by a dashed line b) exceeds the actual value stored in the memory (indicated by a solid line a).
【0016】この出力制御装置による制御のフローチャ
ートを図9に示す。図は、音量を制御する場合について
記載してある。A flowchart of control by this output control device is shown in FIG. The figure describes the case where the volume is controlled.
【0017】先ず、実際の音量値を記憶しているボリュ
ームバッファReの内容からフェーダーに設定されてい
る音量値を記憶しているフェーダーバッファVolの内
容を減算し、結果をAレジスタに格納する(ステップS
50)。ここで、Aレジスタは、汎用のレジスタである
。次いで、Aレジスタの内容とゼロとを比較する(ステ
ップS51)。First, the contents of the fader buffer Vol, which stores the volume value set on the fader, are subtracted from the contents of the volume buffer Re, which stores the actual volume value, and the result is stored in the A register ( Step S
50). Here, the A register is a general-purpose register. Next, the contents of the A register are compared with zero (step S51).
【0018】そして、Aレジスタの内容がゼロより小さ
い(A<0)、つまりフェーダーバッファVolの内容
がボリュームバッファReの内容より大きいことが判断
されると、Aレジスタの内容に「−1」を乗算してAレ
ジスタに入れる(ステップS52)。Then, when it is determined that the contents of the A register are smaller than zero (A<0), that is, the contents of the fader buffer Vol are larger than the contents of the volume buffer Re, "-1" is added to the contents of the A register. It is multiplied and put into the A register (step S52).
【0019】即ち、負の数であるAレジスタの内容を正
の数に変換する。一方、Aレジスタの内容がゼロ以上(
A≧0)、つまりフェーダーバッファVolがボリュー
ムバッファRe以下であることが判断されると、ステッ
プS52はスキップされる。これにより、Aレジスタに
は、ボリュームバッファReの内容とフェーダーバッフ
ァVolの内容との差の絶対値が記憶されることになる
。That is, the contents of the A register, which is a negative number, are converted to a positive number. On the other hand, if the contents of the A register are greater than or equal to zero (
A≧0), that is, if it is determined that the fader buffer Vol is less than or equal to the volume buffer Re, step S52 is skipped. As a result, the absolute value of the difference between the contents of the volume buffer Re and the contents of the fader buffer Vol is stored in the A register.
【0020】次いで、Aレジスタの内容と所定値nとが
比較される(ステップS53)。ここで、所定値nとは
、フェーダーバッファVolの内容(フェーダーの現在
位置)とボリュームバッファReの内容(実際のボリュ
ーム値)との近接程度を示す閾値である。この閾値nは
、図10に示すように、メインルーチンのループ(ステ
ップS11〜S13)を一回実行する間にスライダ2が
移動する最大の距離より大きい値に選択する。これは、
フェーダーの移動が、如何なる場合も実際のボリューム
値±nの範囲で少なくとも1回は捕捉されるようにする
ためであり、これにより、フェーダーが実際のボリュー
ム値と交差したにもかかわらず実際のボリューム値が変
更されないという誤動作が発生するのを防止している。Next, the contents of the A register and a predetermined value n are compared (step S53). Here, the predetermined value n is a threshold value indicating the degree of proximity between the contents of the fader buffer Vol (current position of the fader) and the contents of the volume buffer Re (actual volume value). As shown in FIG. 10, this threshold value n is selected to be larger than the maximum distance that the slider 2 moves during one execution of the main routine loop (steps S11 to S13). this is,
This is to ensure that the fader movement is captured at least once within the range ±n of the actual volume value, so that even if the fader crosses the actual volume value, the actual volume This prevents malfunctions in which values are not changed.
【0021】そして、Aレジスタの内容が閾値n以下(
A≦n)であることが判断されると、フェーダーの現在
位置と実際のボリューム値とは接近していることを認識
し、フェーダーバッファVolの内容をボリュームバッ
ファReに入れる(ステップS54)。これにより、フ
ェーダー1で指定された新しいボリューム値で放音され
ることになる。この際、フェーダーの現在位置と実際の
ボリューム値とは接近しているので、不自然さ等は感じ
られない。[0021] Then, the contents of the A register are less than or equal to the threshold n (
When it is determined that A≦n), it is recognized that the current position of the fader and the actual volume value are close, and the contents of the fader buffer Vol are stored in the volume buffer Re (step S54). As a result, the sound will be emitted at the new volume value specified by fader 1. At this time, since the current position of the fader and the actual volume value are close to each other, no unnaturalness is felt.
【0022】一方、Aレジスタの内容が閾値nより大き
い(A>n)ことが判断されると、ボリュームバッファ
Reの内容は元の状態を維持してリターンする。On the other hand, if it is determined that the contents of the A register are larger than the threshold value n (A>n), the contents of the volume buffer Re remain in their original state and return.
【0023】以上の処理により、出力される実際のボリ
ューム値とフェーダーの現在位置とが大きくずれている
ときは実際のボリューム値は変化せず、フェーダーの現
在位置が出力されている実際のボリューム値に近づくと
フェーダーの現在位置の値を出力するという機能が実現
されている。[0023] As a result of the above processing, when there is a large deviation between the actual output volume value and the current position of the fader, the actual volume value does not change, and the current position of the fader is used as the actual output volume value. A function has been realized that outputs the value of the fader's current position when it approaches .
【0024】しかしながら、この出力制御装置では、フ
ェーダーを用いて実際のボリューム値を変化させるため
には、スライダを動かして実際のボリューム値に対応す
る位置を探さなければならないという問題が残っていた
。特に、実際のボリューム値から離れる方向に変化させ
たいときは、一度逆の方向へ動かさなければならず、操
作性が悪いという問題があった。However, this output control device still has the problem that in order to change the actual volume value using the fader, it is necessary to move the slider to find a position corresponding to the actual volume value. In particular, if you want to change the volume in a direction away from the actual volume value, you have to move it once in the opposite direction, resulting in poor operability.
【0025】[0025]
【発明が解決しようとする課題】本発明は、上記事情に
鑑みてなされたもので、その目的は、フェーダーを実際
の値から離れる方向へ動かす場合も、一度逆の方向へ動
かす必要のない、操作性に優れた出力制御装置を提供す
ることにある。SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and its purpose is to eliminate the need to move the fader once in the opposite direction even when moving the fader in a direction away from the actual value. An object of the present invention is to provide an output control device with excellent operability.
【0026】[0026]
【課題を解決するための手段】本発明の出力制御装置は
、制御量値を与える移動操作子と、他の制御量値を供給
する供給手段と、前記移動操作子の設定位置に応じた制
御量値又は供給手段から供給された制御量値を記憶する
記憶手段と、前記移動操作子が、前記記憶手段に設定さ
れている制御量値に近づく方向へ移動しているときは前
記移動操作子の設定位置に応じた制御量値の前記記憶手
段への格納を抑止して該記憶手段の制御量値を出力し、
前記記憶手段に設定されている制御量値から離れる方向
へ移動しているときは前記移動操作子の設定位置に応じ
た制御量値を前記記憶手段へ格納して該記憶手段の制御
量値を出力する出力制御手段とを具備したことを特徴と
する。[Means for Solving the Problems] The output control device of the present invention includes a movable operator for supplying a controlled variable value, a supply means for supplying another controlled variable value, and control according to a set position of the movable operator. storage means for storing the quantity value or the controlled quantity value supplied from the supplying means; and when the moving operator is moving in a direction approaching the controlled quantity value set in the storing means, the moving operator; suppressing storage of the controlled variable value in the storage means according to the set position of and outputting the controlled variable value of the storage means;
When moving in a direction away from the control amount value set in the storage means, the control amount value corresponding to the set position of the moving operator is stored in the storage means, and the control amount value of the storage means is The present invention is characterized by comprising an output control means for outputting the output.
【0027】[0027]
【作用】この発明は、記憶手段に記憶された制御量値と
移動操作子の設定位置に応じた制御量値とが相違する場
合に、上記移動操作子が、上記記憶手段に設定されてい
る制御量値に近づく方向へ移動されているときは上記移
動操作子の設定位置に応じた制御量値を上記記憶手段へ
格納する動作を抑止して該記憶手段に記憶されている制
御量値をそのまま出力し、上記記憶手段に設定されてい
る制御量値から離れる方向へ移動されているときは上記
移動操作子の設定位置に応じた制御量値を上記記憶手段
へ格納するとともに、該記憶手段に記憶された制御量値
を出力するようにしたものである。[Operation] In the present invention, when the control amount value stored in the storage means differs from the control amount value corresponding to the set position of the movable operator, the movable operator is set in the storage means. When the control amount value is being moved in a direction approaching the control amount value, the operation of storing the control amount value corresponding to the set position of the moving operator in the storage means is suppressed, and the control amount value stored in the storage means is stored. outputs it as it is, and when the moving operator is moved in a direction away from the control amount value set in the storage means, stores the control amount value corresponding to the set position of the moving operator in the storage means; The control amount value stored in the controller is output.
【0028】これにより、移動操作子としての例えばス
ライダを上下に動かして実際の値を探す必要はなくなり
、どちらか一方にスライダを動かせば、出力値が変化す
るようになる。なお、実際の値から離れる方向にスライ
ダを動かすと出力値が急に変化することになるが、この
変化は、操作者がスライダを操作して音量を変化させよ
うとする方向への変化であるので、或る程度の不自然さ
は残るものの充分実用に耐えうるものである。[0028] This eliminates the need to search for the actual value by moving the slider, for example, as a moving operator up and down, and by moving the slider in either direction, the output value changes. Note that if you move the slider away from the actual value, the output value will change suddenly, but this change is in the direction of the operator trying to change the volume by operating the slider. Therefore, although some degree of unnaturalness remains, it is sufficiently usable for practical use.
【0029】[0029]
【実施例】以下、本発明の実施例につき図面を参照しな
がら説明する。図1は、本発明の出力制御装置の一実施
例が適用される電子楽器の構成を概略的に示すブロック
図である。Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram schematically showing the configuration of an electronic musical instrument to which an embodiment of the output control device of the present invention is applied.
【0030】図において、10は鍵盤部であり、複数の
キーが配列された鍵盤と各々のキーの押下の状態を検知
するためのキースキャン回路とを含むものである。In the figure, reference numeral 10 denotes a keyboard section, which includes a keyboard on which a plurality of keys are arranged and a key scan circuit for detecting the pressed state of each key.
【0031】11は操作パネル部であり、電源スイッチ
、モード指定スイッチ、メロディ選択スイッチ、リズム
選択スイッチ等の各種スイッチ(図示しない)が設けら
れている。また、この操作パネル部11には、この発明
の特徴に直接関係する複数のフェーダー1が設けられて
いる。なお、この実施例においては、フェーダー1は増
幅器18の出力、即ち音量を制御するために使用される
ものとする。各スイッチのセット状態は、上記鍵盤部1
0と同様に、内部に含まれるパネルスキャン回路によっ
て検知されるようになっている。また、フェーダー1の
スライダ2の位置に関するデータは、スライダ2の位置
に応じて0〜127の各段階を示す電圧をA/D変換器
(図示しない)でデジタルデータに変換して得られる。Reference numeral 11 denotes an operation panel section, which is provided with various switches (not shown) such as a power switch, a mode designation switch, a melody selection switch, and a rhythm selection switch. Further, the operation panel section 11 is provided with a plurality of faders 1 that are directly related to the features of the present invention. In this embodiment, it is assumed that the fader 1 is used to control the output of the amplifier 18, that is, the volume. The set state of each switch is shown in the keyboard section 1 above.
0, it is detected by an internal panel scan circuit. Further, data regarding the position of the slider 2 of the fader 1 is obtained by converting voltages representing each stage of 0 to 127 according to the position of the slider 2 into digital data using an A/D converter (not shown).
【0032】12は中央処理装置(CPU)であり、読
出し専用記憶装置(ROM)13のプログラムメモリ部
に記憶されているプログラムに従って当該電子楽器の各
部を制御するものである。このCPU12には、図示し
ないタイマが含まれており、所定時間間隔で割り込みが
発生するようになっている。Reference numeral 12 denotes a central processing unit (CPU), which controls each part of the electronic musical instrument according to a program stored in a program memory section of a read-only storage device (ROM) 13. This CPU 12 includes a timer (not shown), and interrupts are generated at predetermined time intervals.
【0033】上記ROM13は、上述したCPU12を
動作させるプログラムの他、音色データ、その他の種々
の固定データを含んでいる。The ROM 13 contains, in addition to the program for operating the CPU 12 described above, timbre data and other various fixed data.
【0034】14はランダムアクセスメモリ(RAM)
であり、CPU12が使用する作業用のバッファ、該電
子楽器における各種処理を実施するためのレジスタ等が
定義されている。14 is random access memory (RAM)
A working buffer used by the CPU 12, registers for carrying out various processes in the electronic musical instrument, etc. are defined.
【0035】15はシリアル入出力を行うインタフェー
ス回路(I/O)である。このインタフェース回路15
は、本電子楽器と外部装置との間でMIDI(Musi
calInstrument Digital
Interface)情報の送受を行うものである。Reference numeral 15 denotes an interface circuit (I/O) for serial input/output. This interface circuit 15
supports MIDI (Music) communication between this electronic musical instrument and external devices.
calInstrument Digital
(Interface) Sends and receives information.
【0036】16は楽音発生回路であり、図示しない波
形メモリに記憶されている楽音波形データを読み出して
再生することにより、各種楽器に対応した楽音信号を発
生するものである。Reference numeral 16 denotes a musical tone generation circuit, which generates musical tone signals corresponding to various musical instruments by reading and reproducing musical waveform data stored in a waveform memory (not shown).
【0037】この楽音発生回路16から出力されるデジ
タル楽音信号は、D/A変換器17に送出されるように
なっている。D/A変換器17は、入力されたデジタル
楽音信号をアナログ楽音信号に変換するものである。こ
のD/A変換器17で変換されたアナログ楽音信号は、
増幅器18に供給されるようになっている。The digital musical tone signal output from this musical tone generating circuit 16 is sent to a D/A converter 17. The D/A converter 17 converts the input digital musical tone signal into an analog musical tone signal. The analog musical tone signal converted by this D/A converter 17 is
The signal is supplied to an amplifier 18.
【0038】増幅器18は、D/A変換器17からのア
ナログ楽音信号を、ボリュームコントロールに割り当て
られたフェーダー1に応じて増幅を行うものである。こ
の増幅器18の出力は、音響回路19に供給されるよう
になっている。The amplifier 18 amplifies the analog musical tone signal from the D/A converter 17 in accordance with the fader 1 assigned to the volume control. The output of this amplifier 18 is supplied to an acoustic circuit 19.
【0039】音響回路19は、入力された電気信号とし
てのアナログ楽音信号を音響信号に変換するものである
。つまり、音響回路19は、例えばスピーカやヘッドホ
ン等に代表される音響発生手段であり放音を行うもので
ある。The acoustic circuit 19 converts an input analog musical tone signal as an electric signal into an acoustic signal. That is, the acoustic circuit 19 is a sound generating means represented by a speaker, headphones, etc., and emits sound.
【0040】上記鍵盤部10、操作パネル部11、CP
U12、ROM13、RAM14、インタフェース回路
15及び楽音発生回路16は、システムバス30を介し
て相互に接続されるようになっている。[0040]The above keyboard section 10, operation panel section 11, CP
U12, ROM13, RAM14, interface circuit 15, and musical tone generation circuit 16 are interconnected via system bus 30.
【0041】次に、上記構成において、動作を説明する
。Next, the operation of the above configuration will be explained.
【0042】図2は該電子楽器のメインフローチャート
を示す。電源が投入されると、先ず、初期値設定処理が
実行される(ステップS10)。この初期値設定処理で
は、RAM14内の各種バッファ、フラグ、レジスタ等
の初期化処理が行われる。FIG. 2 shows the main flowchart of the electronic musical instrument. When the power is turned on, first, initial value setting processing is executed (step S10). In this initial value setting process, various buffers, flags, registers, etc. in the RAM 14 are initialized.
【0043】次いで、スイッチ処理が実行される(ステ
ップS11)。このスイッチ処理では、スイッチバッフ
ァに記憶されている鍵盤部10又は操作パネル部11か
らのスイッチデータを解析し、該データに応じて、例え
ばモード変更、カーソル移動等の処理を実行する。Next, a switch process is executed (step S11). In this switch processing, switch data from the keyboard section 10 or operation panel section 11 stored in the switch buffer is analyzed, and processes such as mode change and cursor movement are executed according to the data.
【0044】次いで、フェーダー処理が実行される(ス
テップS12)。即ち、RAM14内に設けられたフェ
ーダーバッファの内容に基づいて、そのモードに応じた
処理を行う。このフェーダー処理の詳細については後述
する。Next, fader processing is executed (step S12). That is, based on the contents of the fader buffer provided in the RAM 14, processing according to the mode is performed. Details of this fader processing will be described later.
【0045】次いで、MIDI処理を行う(ステップS
13)。このMIDI処理では、インタフェース回路1
5を介してMIDI情報の入出力処理を行う。Next, MIDI processing is performed (step S
13). In this MIDI processing, interface circuit 1
MIDI information input/output processing is performed via 5.
【0046】次いで、ステップS11へ戻り、以下ステ
ップS11〜13を繰り返し実行することにより、鍵盤
部10又は操作パネル部11のスイッチの操作に応じた
電子楽器の発音処理等が行われる。Next, the process returns to step S11, and by repeatedly executing steps S11 to S13, the electronic musical instrument produces sound in accordance with the operation of the switches on the keyboard section 10 or the operation panel section 11.
【0047】一方、上記メインルーチンの実行と並行し
て割り込み処理が実行される。図3は、この割り込み処
理を示すフローチャートである。On the other hand, interrupt processing is executed in parallel with the execution of the main routine. FIG. 3 is a flowchart showing this interrupt processing.
【0048】割り込みは、CPU12に含まれる図示し
ないカウンタのカウント値が所定値になる度に発生する
ものであり、例えば数ミリ秒間隔で発生する。この割り
込み処理ルーチンは、割り込みが発生することによりコ
ールされることになる。An interrupt occurs every time the count value of a counter (not shown) included in the CPU 12 reaches a predetermined value, and occurs, for example, at intervals of several milliseconds. This interrupt handling routine will be called when an interrupt occurs.
【0049】割り込み処理では、先ず、RAM14に設
けられたカウンタCNTの内容がインクリメントされる
(ステップS20)。In the interrupt processing, first, the contents of the counter CNT provided in the RAM 14 are incremented (step S20).
【0050】次いで、カウンタCNTの内容が所定値m
になったか否かが調べられる(ステップS21)。ここ
で、所定値mは、同時に処理する操作子群の数に相当す
る値である。例えば、「0」はパネルスイッチ、「1」
はフェーダー、…、「m」は他のスイッチ、といった具
合である。なお、パネルスイッチを更に複数に分割し、
また、フェーダーを更に複数に分割して、同時に処理す
る単位を小さくするようにしても良い。Next, the contents of the counter CNT are set to a predetermined value m.
It is checked whether it has become (step S21). Here, the predetermined value m is a value corresponding to the number of control groups to be processed simultaneously. For example, "0" is a panel switch, "1" is a panel switch.
is a fader, ``m'' is another switch, and so on. In addition, the panel switch is further divided into multiple parts,
Furthermore, the fader may be further divided into a plurality of parts to reduce the number of units to be processed simultaneously.
【0051】このステップS21でカウンタCNTの内
容が「m」であることが判断されると、カウンタCNT
をゼロにクリアする(ステップS22)。一方、カウン
タCNTの内容が「m」でないことが判断されると、該
ステップS22はスキップされる。以上の処理により、
カウンタCNTは、割り込みが発生する都度インクリメ
ントされ、0〜mの範囲で循環することになる。If it is determined in this step S21 that the content of the counter CNT is "m", the counter CNT
is cleared to zero (step S22). On the other hand, if it is determined that the content of the counter CNT is not "m", step S22 is skipped. With the above processing,
The counter CNT is incremented each time an interrupt occurs, and cycles within the range of 0 to m.
【0052】次いで、カウンタCNTの内容が調べられ
る(ステップS23)。そして、「0」であることが判
断されると、スイッチバッファの更新が行われる(ステ
ップS24)。「1」であることが判断されると、フェ
ーダーバッファの更新が行われる。「2」であることが
判断されると他の操作子用バッファの更新が行われる。
以下同様に、「m」までの間で判断が行われ、それぞれ
割り当てられた処理が行われる。Next, the contents of the counter CNT are checked (step S23). If it is determined that the value is "0", the switch buffer is updated (step S24). If it is determined that the value is "1", the fader buffer is updated. If it is determined that the value is "2", the buffers for other controls are updated. In the same manner, determination is made up to "m" and the assigned processing is performed.
【0053】そして、これらの処理が完了すると、この
割り込み処理ルーチンからリターンし、メインルーチン
に戻る。When these processes are completed, the interrupt processing routine returns to the main routine.
【0054】次に、メインルーチンのステップS12で
行うフェーダー処理の詳細について、図4のフローチャ
ートを参照しながら説明する。Next, details of the fader processing performed in step S12 of the main routine will be explained with reference to the flowchart of FIG.
【0055】先ず、フェーダーバッファVolとボリュ
ームバッファReの大小関係が調べられる(ステップS
30、31)。ここで、フェーダーバッファVolとは
、フェーダー1のスライダの現在位置に応じた値(0〜
127)を記憶するバッファであり、ボリュームバッフ
ァReとは、出力すべき音量を記憶するバッファである
。このボリュームバッファReの内容が、増幅器18に
供給され発生する楽音の音量が制御されることになる。First, the magnitude relationship between the fader buffer Vol and the volume buffer Re is checked (step S
30, 31). Here, the fader buffer Vol is a value (from 0 to
127), and the volume buffer Re is a buffer that stores the volume to be output. The contents of this volume buffer Re are supplied to the amplifier 18 to control the volume of the generated musical tone.
【0056】具体的には、先ず、ボリュームバッファR
eの内容からフェーダーバッファVolの内容を減算し
、結果をAレジスタに格納する(ステップS30)。
ここで、Aレジスタは、RAM14に定義されるレジス
タである。次いで、Aレジスタの内容とゼロとを比較す
る(ステップS31)。Specifically, first, the volume buffer R
The contents of the fader buffer Vol are subtracted from the contents of e, and the result is stored in the A register (step S30). Here, the A register is a register defined in the RAM 14. Next, the contents of the A register are compared with zero (step S31).
【0057】そして、Aレジスタの内容がゼロより小さ
い(A<0)、つまりフェーダーバッファVolの内容
がボリュームバッファReの内容より大きいことが判断
されると、Bレジスタに「1」を入れる(ステップS3
2)。ここで、BレジスタはRAM14に定義されるレ
ジスタである。次いで、Aレジスタの内容に「−1」を
乗算してAレジスタに入れる(ステップS33)。即ち
、負の数であるAレジスタの内容を、同一絶対値の正の
数に変換する。これにより、Aレジスタには、ボリュー
ムバッファReの内容とフェーダーバッファVolの内
容との差の絶対値が、正の数として記憶されることにな
る。Then, when it is determined that the contents of the A register are smaller than zero (A<0), that is, the contents of the fader buffer Vol are larger than the contents of the volume buffer Re, "1" is put in the B register (step S3
2). Here, the B register is a register defined in the RAM 14. Next, the contents of the A register are multiplied by "-1" and stored in the A register (step S33). That is, the content of the A register, which is a negative number, is converted into a positive number with the same absolute value. As a result, the absolute value of the difference between the contents of the volume buffer Re and the contents of the fader buffer Vol is stored in the A register as a positive number.
【0058】一方、上記ステップS31でAレジスタの
内容がゼロ以上(A≧0)、つまりフェーダーバッファ
VolがボリュームバッファRe以下であることが判断
されると、Bレジスタに「−1」を入れる(ステップS
34)。On the other hand, if it is determined in step S31 that the contents of the A register are greater than or equal to zero (A≧0), that is, that the fader buffer Vol is less than or equal to the volume buffer Re, “-1” is put in the B register ( Step S
34).
【0059】次いで、Aレジスタの内容と所定値nとが
比較される(ステップS35)。ここでいう所定値nは
、図9で説明した閾値nとは異なり、単に実行ステップ
数削減のためのものなので、スライダ移動の最大距離よ
り大きくする必要はなく、場合によってゼロでも構わな
い。Next, the contents of the A register and a predetermined value n are compared (step S35). The predetermined value n here is different from the threshold value n explained in FIG. 9 and is simply for reducing the number of execution steps, so it does not need to be larger than the maximum distance of slider movement and may be zero depending on the case.
【0060】そして、Aレジスタの内容が所定値n以下
であることが判断されると、フェーダーバッファVol
の内容をボリュームバッファReに入れる(ステップS
41)。これにより、フェーダー1で指定された新しい
ボリューム値で放音されることになる。Then, when it is determined that the contents of the A register are less than or equal to the predetermined value n, the fader buffer Vol.
Put the contents of into the volume buffer Re (step S
41). As a result, the sound will be emitted at the new volume value specified by fader 1.
【0061】次いで、現在のフェーダーバッファVol
の内容をCレジスタに記憶する(ステップS42)。こ
こで、CレジスタはRAM14に定義されるレジスタで
あり、1回前の処理で使用したフェーダー1の位置デー
タを記憶するレジスタである。Next, the current fader buffer Vol.
The contents of are stored in the C register (step S42). Here, the C register is a register defined in the RAM 14, and is a register that stores position data of the fader 1 used in the previous process.
【0062】一方、上記ステップS35で、Aレジスタ
の内容が所定値nより大きいことが判断されると、以下
の処理を行う。On the other hand, if it is determined in step S35 that the contents of the A register are greater than the predetermined value n, the following processing is performed.
【0063】先ず、所定値CからフェーダーバッファV
olの内容を減算し、Aレジスタに入れる(ステップS
36)。そして、Aレジスタの内容とゼロとを比較する
(ステップS37)。First, from a predetermined value C, the fader buffer V
Subtract the contents of ol and put it in the A register (step S
36). Then, the contents of the A register are compared with zero (step S37).
【0064】ここで、Aレジスタの内容がゼロ(A=0
)であることが判断されると、フェーダーは前回から移
動していない、つまりフェーダーは止まっていると判断
し、何等処理を行わずに本処理ルーチンからリターンす
る。[0064] Here, the contents of the A register are zero (A=0
), it is determined that the fader has not moved since the last time, that is, the fader is stopped, and the process returns from this processing routine without performing any processing.
【0065】一方、Aレジスタの内容がゼロより小さい
(A<0)であることが判断されると、前回のフェーダ
ーバッファの内容が今回のフェーダーバッファの内容よ
り小さいので、フェーダーは上方向に移動されていると
認識し、Bレジスタの内容から「1」を減算してAレジ
スタに入れる(ステップS38)。この際、Bレジスタ
の内容が「1」、つまり、「ボリュームバッファRe<
フェーダーバッファVol」であれば、Aレジスタには
「0」が格納されることになる。この状態は、図5(c
)に示してある。一方、Bレジスタの内容が「−1」、
つまり、「ボリュームバッファRe≧フェーダーバッフ
ァVol」であれば、Aレジスタには「−2」が格納さ
れることになる。この状態は、図5(a)に示してある
。On the other hand, if it is determined that the contents of the A register are smaller than zero (A<0), the contents of the previous fader buffer are smaller than the contents of the current fader buffer, so the fader moves upward. It is recognized that "1" has been written, and "1" is subtracted from the contents of the B register and placed in the A register (step S38). At this time, the content of the B register is "1", that is, "Volume buffer Re<
Fader buffer Vol", "0" will be stored in the A register. This state is shown in Figure 5(c)
). On the other hand, the content of the B register is "-1",
In other words, if "volume buffer Re≧fader buffer Vol", "-2" will be stored in the A register. This state is shown in FIG. 5(a).
【0066】上記ステップS37で、Aレジスタの内容
がゼロより大きい(A>0)であることが判断されると
、前回のフェーダーバッファの内容は今回のフェーダー
バッファの内容より大きいので、フェーダーは下方向に
移動されていると認識し、Bレジスタの内容に「1」を
加算してAレジスタに入れる(ステップS39)。この
際、Bレジスタの内容が「1」、つまり、「ボリューム
バッファRe<フェーダーバッファVol」であれば、
Aレジスタには「2」が格納されることになる。この状
態は、図5(d)に示してある。一方、Bレジスタの内
容が「−1」、つまり、「ボリュームバッファRe≧フ
ェーダーバッファVol」であれば、Aレジスタには「
0」が格納されることになる。この状態は、図5(b)
に示してある。If it is determined in step S37 that the contents of the A register are larger than zero (A>0), the contents of the previous fader buffer are larger than the contents of the current fader buffer, so the fader is lowered. It is recognized that the object is being moved in the direction, "1" is added to the contents of the B register, and the result is placed in the A register (step S39). At this time, if the content of the B register is "1", that is, "volume buffer Re<fader buffer Vol",
"2" will be stored in the A register. This state is shown in FIG. 5(d). On the other hand, if the content of the B register is "-1", that is, "Volume buffer Re≧Fader buffer Vol", the A register contains "
0" will be stored. This state is shown in Figure 5(b).
It is shown in
【0067】次いで、Aレジスタの内容がゼロであるか
否かが調べられる(ステップS40)。そして、ゼロで
ある(A=0)であることが判断されると、フェーダー
バッファVolの内容をボリュームバッファReに入れ
る(ステップS41)。これにより、フェーダー1で指
定された新しいボリューム値で放音されることになる。
この際、図5(b)、(c)に示すように、実際の値か
ら離れる方向に動かすと、ボリュームの値が急に変化す
ることになるが、操作者が変化させたい方向への音量変
化であるので、問題はない。Next, it is checked whether the contents of the A register are zero (step S40). If it is determined that it is zero (A=0), the contents of the fader buffer Vol are put into the volume buffer Re (step S41). As a result, the sound will be emitted at the new volume value specified by fader 1. At this time, as shown in Figures 5(b) and (c), if the volume is moved away from the actual value, the volume value will change suddenly, but the volume will change in the direction the operator wants to change. Since it is a change, there is no problem.
【0068】次いで、現在のフェーダーバッファVol
の内容をCレジスタに記憶し(ステップS42)、この
フェーダー処理ルーチンからリターンする。Next, the current fader buffer Vol.
The contents of are stored in the C register (step S42), and the process returns from this fader processing routine.
【0069】一方、上記ステップS40でゼロでない(
A≠0)であることが判断されると、フェーダーバッフ
ァVolの内容をボリュームバッファReに入れる処理
(ステップS41)はスキップされる。したがって、こ
の場合は音量の変化はない。この場合、図5(a)、(
d)に示すように、実際の値に近づく方向に動かすと、
実際の値を越えるまでは音量変化はなく、したがって、
従来と同様の操作結果が得られる。On the other hand, in step S40, it is not zero (
If it is determined that A≠0), the process of putting the contents of the fader buffer Vol into the volume buffer Re (step S41) is skipped. Therefore, in this case, there is no change in volume. In this case, Fig. 5(a), (
As shown in d), if you move it in the direction closer to the actual value,
There is no change in volume until the actual value is exceeded, so
The same operational results as before can be obtained.
【0070】そして、現在のフェーダーバッファVol
の内容をCレジスタに記憶し(ステップS42)、この
フェーダー処理ルーチンからリターンする。[0070]Then, the current fader buffer Vol
The contents of are stored in the C register (step S42), and the process returns from this fader processing routine.
【0071】以上の構成により、フェーダーの値と実際
の出力値が離れているときは、フェーダーが、現在の出
力値から離れる方向に動いているときだけスライドボリ
ュームの値を出力する。With the above configuration, when the fader value and the actual output value are far apart, the slide volume value is output only when the fader is moving in a direction away from the current output value.
【0072】なお、上記実施例では、フェーダーを用い
てボリューム情報を制御する場合について説明したが、
これに限定されるのではなく、他の情報の制御にも同様
に適用できることは勿論である。[0072] In the above embodiment, a case was explained in which volume information was controlled using a fader.
It goes without saying that the invention is not limited to this, and can be similarly applied to control of other information.
【0073】また、上記実施例では、1チヤネルのボリ
ューム情報を制御する場合について説明したが、チャネ
ル数は任意である。この場合、各チャネルに対応して上
述した処理を行うように構成すれば良い。Further, in the above embodiment, the case where volume information of one channel is controlled has been explained, but the number of channels is arbitrary. In this case, the configuration may be such that the above-described processing is performed for each channel.
【0074】また、上記実施例では、スライド式のフェ
ーダーについて説明したが、これに限定されるものでは
ない。例えば回転式のボリューム等にも同様に適用でき
るものであり、上記実施例と同様の効果を奏する。Further, in the above embodiment, a sliding type fader was explained, but the present invention is not limited to this. For example, it can be similarly applied to a rotary volume, etc., and produces the same effects as the above embodiment.
【0075】[0075]
【発明の効果】以上詳述したように、本発明によれば、
フェーダーを実際の値から離れる方向へ動かす場合も、
一度逆の方向へ動かす必要のない、操作性に優れた出力
制御装置を提供できる。[Effects of the Invention] As detailed above, according to the present invention,
When moving the fader away from its actual value,
It is possible to provide an output control device with excellent operability that does not need to be moved once in the opposite direction.
【図1】本発明の出力制御装置が適用される電子楽器の
一実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of an electronic musical instrument to which an output control device of the present invention is applied.
【図2】図1に示した電子楽器のメインフローチャート
である。FIG. 2 is a main flowchart of the electronic musical instrument shown in FIG. 1.
【図3】図1に示した電子楽器の割り込み処理を示すフ
ローチャートである。FIG. 3 is a flowchart showing interrupt processing of the electronic musical instrument shown in FIG. 1;
【図4】本発明の出力制御装置の機能を実現するフェー
ダー処理を示すフローチャートである。FIG. 4 is a flowchart showing fader processing that implements the functions of the output control device of the present invention.
【図5】本発明の実施例の動作を説明するための図であ
る。FIG. 5 is a diagram for explaining the operation of the embodiment of the present invention.
【図6】フェーダーの一実施例を示す図である。FIG. 6 is a diagram showing an example of a fader.
【図7】従来の出力制御装置の動作を説明するための図
である。FIG. 7 is a diagram for explaining the operation of a conventional output control device.
【図8】従来の改良された出力制御装置の動作を説明す
るための図である。FIG. 8 is a diagram for explaining the operation of a conventional improved output control device.
【図9】図8に示す出力制御装置の動作を示すフローチ
ャートである。FIG. 9 is a flowchart showing the operation of the output control device shown in FIG. 8;
【図10】従来の出力制御装置に用いられる閾値nを説
明するための図である。FIG. 10 is a diagram for explaining a threshold value n used in a conventional output control device.
1 フェーダー(移動操作子)
2 スライダ
11 操作パネル部
12 CPU(出力制御手段)
13 ROM
14 RAM(記憶手段)
15 インタフェース回路(供給手段)16 楽音
発生回路1 Fader (moving operator) 2 Slider 11 Operation panel section 12 CPU (output control means) 13 ROM 14 RAM (storage means) 15 Interface circuit (supply means) 16 Musical tone generation circuit
Claims (1)
制御量値を供給する供給手段と、前記移動操作子の設定
位置に応じた制御量値又は供給手段から供給された制御
量値を記憶する記憶手段と、前記移動操作子が、前記記
憶手段に設定されている制御量値に近づく方向へ移動し
ているときは前記移動操作子の設定位置に応じた制御量
値の前記記憶手段への格納を抑止して該記憶手段の制御
量値を出力し、前記記憶手段に設定されている制御量値
から離れる方向へ移動しているときは前記移動操作子の
設定位置に応じた制御量値を前記記憶手段へ格納して該
記憶手段の制御量値を出力する出力制御手段とを具備し
たことを特徴とする出力制御装置。1. A movable operator for supplying a controlled variable value, a supply means for supplying another controlled variable value, and a controlled variable value corresponding to a set position of the movable operator or a controlled variable value supplied from the supply means. storage means for storing, and when the movable operator is moving in a direction approaching the control amount value set in the storage means, the storage of a controlled variable value corresponding to the set position of the movable operator; The control amount value of the storage means is suppressed from being stored in the storage means, and when the control amount value is moved in a direction away from the control amount value set in the storage means, the control amount value is output according to the set position of the moving operator. An output control device comprising: output control means for storing a control amount value in the storage means and outputting the control amount value of the storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3121765A JPH04324896A (en) | 1991-04-25 | 1991-04-25 | Output control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3121765A JPH04324896A (en) | 1991-04-25 | 1991-04-25 | Output control device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04324896A true JPH04324896A (en) | 1992-11-13 |
Family
ID=14819335
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3121765A Pending JPH04324896A (en) | 1991-04-25 | 1991-04-25 | Output control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04324896A (en) |
-
1991
- 1991-04-25 JP JP3121765A patent/JPH04324896A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5027689A (en) | Musical tone generating apparatus | |
| EP2866223B1 (en) | Automated music performance time stretch using audio waveform data | |
| US5227573A (en) | Control value output apparatus with an operation member for continuous value change | |
| JP2876359B2 (en) | Electronic musical instrument parameter setting device | |
| JPH04324896A (en) | Output control device | |
| JP3220396B2 (en) | Musical sound wave reproduction device | |
| JP3008419B2 (en) | Electronic musical instrument | |
| JP3320169B2 (en) | Parameter editing device for electronic musical instruments | |
| JPH04324898A (en) | Output control device | |
| JPH04324897A (en) | Output control device | |
| JP2629418B2 (en) | Music synthesizer | |
| JP3801722B2 (en) | Musical sound control parameter generator | |
| JP4229355B2 (en) | Electronic musical instrument parameter setting device | |
| JP3371643B2 (en) | Signal processing device | |
| JPH05289662A (en) | Automatic effect selecting device | |
| JP2786056B2 (en) | Electronic musical instrument | |
| JP3543384B2 (en) | Electronic musical instrument | |
| JP3006977B2 (en) | Performance control information setting device for electronic musical instruments | |
| JPH0744175A (en) | Electronic musical instrument | |
| JP2541867B2 (en) | Velocity value changing device for musical tone information | |
| JP3221987B2 (en) | Delay time modulation effect device | |
| JP3651675B2 (en) | Electronic musical instruments | |
| JP3160934B2 (en) | Music parameter display | |
| JPH0685515U (en) | Tone control device | |
| JP3947806B2 (en) | Waveform synthesizer |