JPH07152372A - Playing device - Google Patents

Playing device

Info

Publication number
JPH07152372A
JPH07152372A JP5325858A JP32585893A JPH07152372A JP H07152372 A JPH07152372 A JP H07152372A JP 5325858 A JP5325858 A JP 5325858A JP 32585893 A JP32585893 A JP 32585893A JP H07152372 A JPH07152372 A JP H07152372A
Authority
JP
Japan
Prior art keywords
data
register
stored
pitch
note
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5325858A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Matsumoto
光広 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP5325858A priority Critical patent/JPH07152372A/en
Publication of JPH07152372A publication Critical patent/JPH07152372A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To provide a playing device in which one key playing is easily made. CONSTITUTION:In an SF3, data (ADR) stored in an address ADR indicated by a current value of a register ADR are stored in a register P. In an SF6, data (ADR), which are stored in the address ADR indicated by a current value of the register ADR that is incremented, are set in a time T. Whenever the timer T becomes '0', (every time a note length time corresponding to one note is lapsed) pitch data (P) corresponding to a next note are successively set to a register P and note length data (T) corresponding to the same note are successivley set to a timer T. Thus, automatic playing data of a selected music are successively read employing this flow and an automatic playing of the music progresses internally. When a one key SW is operated, a sound is instructed with the pitch specified by the pitch data stored in the P register.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、所謂ワンキープレイに
より演奏可能な演奏装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a performance device that can be played by so-called one-key play.

【0002】[0002]

【従来の技術】従来の演奏装置としては、ワンキープレ
イにより演奏可能な電子楽器が知られている。この電子
楽器には、単一のワンキーSWが設けられているととも
に、所定のメロディを構成する音高データがアドレス順
に記憶されている。そして、ユーザーがワンキーSWを
操作すると、操作したタイミングで音高データが順次読
み出されて、発音処理される。したがって、ユーザーが
当該メロディの発音タイミングでワンキーSWを操作す
れば、操作毎にメロディを構成する音高の楽音が当該メ
ロディの発音タイミングで順次発生し、この順次発生す
る楽音により上記所定のメロディが形成される。よっ
て、困難な鍵盤操作を行わずとも、単に当該メロディの
発音タイミングで単一のワンキーSWを連続的に操作す
ることにより、容易にメロディ演奏を行うことができ
る。
2. Description of the Related Art As a conventional playing device, an electronic musical instrument which can be played by one-key play is known. This electronic musical instrument is provided with a single one-key SW, and pitch data that forms a predetermined melody is stored in the order of addresses. When the user operates the one-key SW, the pitch data is sequentially read out at the timing of the operation, and the sound generation processing is performed. Therefore, if the user operates the one-key SW at the sounding timing of the melody, musical tones having pitches forming the melody are sequentially generated at the sounding timing of the melody for each operation, and the predetermined melody is generated by the sequentially generated musical sounds. It is formed. Therefore, even if a difficult keyboard operation is not performed, a melody performance can be easily performed by simply operating a single one-key SW at the sounding timing of the melody.

【0003】[0003]

【発明が解決しようとする課題】このように従来の電子
楽器にあっては、メロディを構成する音高データのみを
記憶しておき、ワンキーSWの操作タイミングで順次音
高データを読み出して発音処理するように構成されてい
る。したがって、タイミング的な誤りなくワンキーSW
をメロディの発音タイミングに合わせて正しく操作した
場合には、操作タイミング毎に読み出された音高データ
に基づいて発生する楽音により、所定のメロディが形成
される。
As described above, in the conventional electronic musical instrument, only the pitch data forming the melody is stored, and the pitch data is sequentially read at the operation timing of the one-key SW to perform the tone generation processing. Is configured to. Therefore, one-key SW can be used without timing errors.
When is correctly operated in accordance with the sounding timing of the melody, a predetermined melody is formed by the musical sound generated based on the pitch data read at each operation timing.

【0004】しかし、例えばメロディの発音タイミング
でないにも拘わらず、ワンキーSWを操作してしまう等
のタイミング的な誤操作が発生すると、混乱し、その結
果以降は正しいタイミングでワンキーSWの操作を行う
ことができなくなってしまう。このため、ワンキープレ
イによりメロディを最後まで演奏するためには、途中で
の誤操作なくメロディの発音タイミングでワンキーSW
を操作しなければならず、かかる操作は初心者にとって
は困難となるものであった。
However, for example, if the timing error operation such as the operation of the one-key SW occurs even when the melody is not sounded, it is confusing, and after that, the one-key SW is operated at the correct timing. Will not be possible. Therefore, in order to play the melody to the end by the one-key play, the one-key SW can be played at the melody sounding timing without an erroneous operation in the middle.
Had to be operated, which was difficult for a beginner.

【0005】本発明の課題は、ワンキープレイによる演
奏の容易化を図った演奏装置を提供することにある。
An object of the present invention is to provide a performance device which facilitates performance by one-key play.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するため
に本発明にあっては、楽曲を構成する自動演奏データを
記憶する記憶手段と、この記憶手段から上記自動演奏デ
ータを順次読み出す読出手段と、使用者により操作され
るマニュアル操作子と、このマニュアル操作子が操作さ
れると、上記読出手段により読み出された自動演奏デー
タに基づいて発音指示を行う発音指示手段とを有してい
る。
In order to solve the above-mentioned problems, according to the present invention, a storage means for storing automatic performance data constituting music and a reading means for sequentially reading out the automatic performance data from the storage means. And a manual operator operated by the user, and a sounding instruction means for issuing a sounding instruction based on the automatic performance data read by the reading means when the manual operator is operated. .

【0007】[0007]

【作用】上記構成において、読出手段は記憶手段に記憶
されている自動演奏データを順次読み出し、よってこの
読出手段による自動演奏データの読み出しにより、発音
のない状態で内部的に自動演奏が進行して行く。そし
て、このように内部的に自動演奏が進行している状態
で、使用者がマニュアル操作子を操作すると、発音手段
は読出手段により読み出された自動演奏データに基づい
て発音指示を行う。したがって、使用者が楽曲の発音タ
イミングに合った正しいタイミングでマニュアル操作子
を操作した場合は無論のこと、発音タイミング以上の頻
繁なタイミングでマニュアル操作子を操作した場合であ
っても、発音指示に基づく楽音の音高は内部的に進行し
ている自動演奏に依存して変化する。
In the above structure, the reading means sequentially reads the automatic performance data stored in the storage means. Therefore, by reading the automatic performance data by the reading means, the automatic performance internally progresses in a state where no sound is produced. go. Then, when the user operates the manual operator in the state where the automatic performance is internally progressing in this way, the sounding means gives a sounding instruction based on the automatic performance data read by the reading means. Therefore, it goes without saying that the user operates the manual control at the correct timing that matches the sound generation timing of the music. The pitch of the based musical tone changes depending on the automatic performance that is internally progressing.

【0008】[0008]

【実施例】以下、本発明の一実施例について図にしたが
って説明する。すなわち、図2は本発明を適用した電子
楽器の要部平面図であり、楽器本体1にはワンキーSW
2とスタート/ストップSW3等が設けられている。こ
れら各SW2,3、及び図示しない鍵盤の各鍵毎に配設
された鍵盤スイッチ等の操作情報は、図1に示した全体
ブロック図において、スイッチ部4からCPU5に入力
される。CPU5は、ワンキープレイ等の当該電子楽器
が有する機能の実現に必要となる全ての制御を実行する
のみならず、楽音生成用の音源回路ハードウェアを用い
ることなく、プログラム制御により楽音を生成する処理
も実行する。
An embodiment of the present invention will be described below with reference to the drawings. That is, FIG. 2 is a plan view of a main part of an electronic musical instrument to which the present invention is applied.
2 and start / stop SW3 are provided. Operation information of each of the SWs 2 and 3, and a keyboard switch or the like provided for each key of the keyboard (not shown) is input from the switch unit 4 to the CPU 5 in the overall block diagram shown in FIG. The CPU 5 not only executes all the controls necessary for realizing the functions of the electronic musical instrument such as one-key play, but also generates a musical tone by program control without using tone generator circuit hardware for musical tone generation. Also run.

【0009】すなわち、ROM6には、後述するメイン
ルーチンによって示される全体処理プログラムと共に、
タイマーインタラプトルーチンによって示される音源処
理プログラムが記憶されており、さらにはエンベロープ
データ(レート、レベル等)、ピッチデータ等の各種楽
音制御パラメータ、PCMの波形データ、及び自動伴奏
データ等が記憶されている。上記ピッチデータは、波形
データを読み出す際のアドレス加算値であって、押鍵に
より鍵盤スイッチがオンとなった際、あるいはワンキー
SW1の操作が有った際には、発生させるべき楽音の音
高に対応するピッチデータと波形スタートアドレス、波
形エンドアドレス、波形ループアドレスがワーキング用
のRAM7に用意されている中間データ記憶領域にセッ
トされる。
That is, in the ROM 6, together with the overall processing program shown by the main routine described later,
A sound source processing program indicated by a timer interrupt routine is stored, and further, various tone control parameters such as envelope data (rate, level, etc.), pitch data, PCM waveform data, automatic accompaniment data, etc. are stored. . The pitch data is an address addition value when reading the waveform data, and is the pitch of the musical tone to be generated when the keyboard switch is turned on by pressing a key or when the one-key SW1 is operated. The pitch data, the waveform start address, the waveform end address, and the waveform loop address corresponding to are set in the intermediate data storage area prepared in the working RAM 7.

【0010】RAM7には、タイマーインタラプトルー
チンにおける音源処理により生成される各チャンネルの
楽音波形データ(8チャンネル分の累算波形値)を一時
記憶するための累算用レジスタRが用意されている。上
記タイマーインタラプトルーチンにより生成された楽音
波形データは、CPU5中の特に図示していないインス
トラクションデコーダ等からなる制御部からの信号CO
Mに応答して動作するラッチAにラッチされ、ラッチB
に入力される。該ラッチBは、上記タイマーインタラプ
トルーチンの実行を要求する信号INTの周波数fsに
従ったタイミングで動作する。この信号INTは、ハー
ドクロックにより分周生成される通常40KHz程度の
安定した信号であって、よって、ラッチBからはINT
の周波数fsに依存した一定のサンプリング周期をもっ
て、D/A変換器8に楽音波形データが出力される。
The RAM 7 is provided with an accumulation register R for temporarily storing the musical tone waveform data of each channel (accumulated waveform value for 8 channels) generated by the sound source processing in the timer interrupt routine. The musical tone waveform data generated by the timer interrupt routine is a signal CO from a control unit in the CPU 5 including an instruction decoder (not shown) or the like.
Latch A operated in response to M, latch B
Entered in. The latch B operates at a timing according to the frequency fs of the signal INT requesting execution of the timer interrupt routine. This signal INT is a stable signal of about 40 KHz, which is generated by frequency division by a hard clock, and therefore the latch B outputs INT.
The musical tone waveform data is output to the D / A converter 8 at a constant sampling period depending on the frequency fs.

【0011】上記タイマーインタラプトルーチンは、I
NTの周波数に従った一定の時間間隔でメインルーチン
に割り込んで実行されるが、タイマーインタラプトルー
チンが実際に開始されるタイミング及び終了するタイミ
ングは変動し得る。つまり、CPU5は割り込みがかか
っても、実行中のオペレーションを即時に中断すること
は不可能であり、その実行が終了してからインタラプト
処理に入る。また、タイマーインタラプト処理に要する
時間もそのプロセスに依存することから、楽音波形デー
タの生成周期は不安定なものとなる。そこで、上記CO
M信号によって制御されるラッチAとD/A変換器8と
の間に、正確なタイミング信号である上記INTで制御
されるラッチBを設けてある。これにより、ラッチAの
ラッチタイミングが、インタラプト処理の処理時間等に
より変動しても、INTのタイミングで動作するラッチ
Bの存在により、D/A変換器8の入力データが切り替
わるタイミングはINTと同期する。つまり、D/A変
換器8にはINTの1周期分だけ遅れた信号がINTの
タイミングにて入力され、アナログ変換される。該D/
A変換器8によりアナログ変換された音声波形信号は、
ローパスフィルタ9でフィルタリングされ、その後アン
プ10で増幅され、スピーカ11を介して放音される。
The timer interrupt routine is I
The main routine is interrupted and executed at regular time intervals according to the frequency of NT, but the timing at which the timer interrupt routine is actually started and the timing at which it is ended may vary. That is, the CPU 5 cannot immediately interrupt the operation being executed even if an interrupt occurs, and the interrupt process is started after the execution is completed. Further, the time required for the timer interrupt process also depends on the process, and therefore the generation period of the musical tone waveform data becomes unstable. Therefore, the above CO
Between the latch A controlled by the M signal and the D / A converter 8, a latch B controlled by the above-mentioned INT which is an accurate timing signal is provided. As a result, even if the latch timing of the latch A fluctuates due to the processing time of the interrupt processing or the like, the timing at which the input data of the D / A converter 8 is switched is synchronized with INT due to the existence of the latch B operating at the INT timing. To do. That is, a signal delayed by one INT cycle is input to the D / A converter 8 at the INT timing and converted into analog. The D /
The voice waveform signal analog-converted by the A converter 8 is
The sound is filtered by the low-pass filter 9, amplified by the amplifier 10, and then emitted through the speaker 11.

【0012】ROM6の一部には、図3に示すように、
曲A,B・・・のメロディを構成する自動演奏データが
各曲毎に記憶されている。この自動演奏データは、発音
すべき楽音の音高を示す音高データ(P)と音長を示す
符長データ(T)とをアドレス順をもって交互に記憶し
たものであって、一対の音高データ(P)と符長データ
(T)とがメロディを構成する1個の音符に対応してい
る。また、各曲の自動演奏データが記憶されたエリアの
最終アドレスには、曲の終わりを示すENDデータが記
憶されている。なお、符長データ(T)は、4分音符長
を“24”とした値で記憶されており、よって、各音符
は下記の符長データで表され、96分音符長が最小単位
である。
In a part of the ROM 6, as shown in FIG.
The automatic performance data that constitutes the melody of the songs A, B, ... Is stored for each song. The automatic performance data is composed of pitch data (P) indicating the pitch of a musical tone to be pronounced and note length data (T) indicating the pitch alternately stored in an address order. The data (P) and the note length data (T) correspond to one note forming a melody. Further, END data indicating the end of the music is stored at the final address of the area where the automatic performance data of each music is stored. The note length data (T) is stored as a value in which the quarter note length is "24". Therefore, each note is represented by the following note length data, and the 96th note length is the minimum unit. .

【0013】96分音符・・・1 48分音符・・・2 24分音符・・・4 12分音符・・・8 8分音符・・・12 4分音符・・・24 2分音符・・・48 全音符・・・96 次に、以上の構成にかかる本実施例の動作について、C
PU5によって実行されるプログラムの概容を示したフ
ローチャートに従って説明する。すなわち、図4は本実
施例の全体処理プログラムを示すメインルーチンであ
り、電源の投入に伴って開始され、先ずイニシャライズ
処理(SA1)により、RAM7に設けられたレジスタ
群のクリア等を行う。次に、スイッチ部4に設けられて
いる鍵盤スイッチ以外のワンキーSW2、スタート/ス
トップSW3等の機能スイッチをスキャンし(SA
2)、このSA2におけるスキャン結果により前回の状
態から変化した機能スイッチを識別し、これに応じた処
理を行う(SA3)。引き続きスイッチ部4における鍵
盤スイッチのスキャンを行い(SA4)、このSA4に
おけるスキャン結果に応じてノートオン、ノートオフ等
の対応する処理を行う(SA5)。さらに、SA3及び
SA5にて実行された以外の、その他の処理を実行し
(SA6)、以降電源がオン状態にある間SA2〜SA
6の処理を繰り返す。このメインルーチンに対して、図
5に示した音源処理プログラム(タイマーインタラプト
ルーチン)が信号INTの周波数fsに従ったタイミ
ング、つまり1/fs秒経過毎に割り込んで実行され、
音源処理(SB1)を行う。なお、このタイマーインタ
ラプトルーチンは、優先順位1であって後述する他の
タイマーインタラプトルーチンより最優先に実行され
る。音源処理(SB1)は、図6に示したフローに従っ
て実行され、まずRAM5中に設けられている上記累算
用レジスタRをクリアする(SC1)。これにより、前
回の音源処理にて記憶された1ch〜8chまでの累算
波形値を消去した後、1ch〜8chまでの全チャンネ
ルの音源処理を順次実行する(SC2〜SC9)。すな
わち、SC2では1chの波形値を求めてこれをRにセ
ットし、SC3では同様にして2chの波形値を求めて
Rに累算する。さらに、SC4及びSC5では、各々前
のステップで累算されたRの値に順次3chと4chの
波形値を累算する。よって、SC9の処理が終了した時
点において、Rには1ch〜8chまでの累算波形値が
格納されている。そして、このRに格納された累算波形
値を、図6のSB2にてラッチAにラッチし、これによ
りラッチAには音源処理(SB1)が終了するタイミン
グにて1ch〜8chの累算波形値がラッチされる。さ
らに、このラッチAにラッチされた累算波形値は、前述
のようにハードクロックにより分周生成された正確な一
定サンプリング周期をもってラッチBにラッチされ、A
/D変換器8に入力されてアナログ値に変換され、これ
によりスピーカ11からは歪みのない楽音が放音され
る。
96th notes ... 1 48th notes ... 2 24th notes ... 4 12th notes ... 8 8th notes ... 12 4th notes ... 24 2nd notes ... .48 whole notes ... 96 Next, regarding the operation of the present embodiment according to the above configuration, C
A description will be given according to the flowchart showing the outline of the program executed by the PU 5. That is, FIG. 4 is a main routine showing an overall processing program of the present embodiment, which is started when power is turned on, and first, initialization processing (SA1) is performed to clear the register group provided in the RAM 7. Next, the function switches other than the keyboard switch provided in the switch unit 4 such as the one-key SW2 and the start / stop SW3 are scanned (SA
2) The function switch that has changed from the previous state is identified based on the scan result in SA2, and the corresponding process is performed (SA3). Subsequently, the keyboard switch in the switch unit 4 is scanned (SA4), and corresponding processing such as note-on and note-off is performed according to the scan result in SA4 (SA5). Further, other processing than that executed in SA3 and SA5 is executed (SA6), and thereafter, while the power is on, SA2 to SA2.
The process of 6 is repeated. The sound source processing program (timer interrupt routine) shown in FIG. 5 is executed by interrupting the main routine at a timing according to the frequency fs of the signal INT, that is, every 1 / fs seconds.
Sound source processing (SB1) is performed. It should be noted that this timer interrupt routine has a priority of 1 and is executed with the highest priority over other timer interrupt routines described later. The sound source processing (SB1) is executed according to the flow shown in FIG. 6, and first, the accumulation register R provided in the RAM 5 is cleared (SC1). As a result, the accumulated waveform values of 1ch to 8ch stored in the previous sound source processing are deleted, and then the sound source processing of all channels of 1ch to 8ch is sequentially executed (SC2 to SC9). That is, in SC2, the waveform value of 1ch is obtained and set in R, and in SC3, the waveform value of 2ch is similarly obtained and accumulated in R. Further, in SC4 and SC5, waveform values of 3ch and 4ch are sequentially accumulated to the value of R accumulated in the previous step. Therefore, when the processing of SC9 is completed, the accumulated waveform values of 1ch to 8ch are stored in R. Then, the accumulated waveform value stored in this R is latched in the latch A at SB2 in FIG. 6, whereby the accumulated waveform of 1ch to 8ch is latched at the timing at which the sound source processing (SB1) ends. The value is latched. Further, the accumulated waveform value latched in the latch A is latched in the latch B with an accurate constant sampling period divided and generated by the hard clock as described above.
It is input to the / D converter 8 and converted into an analog value, whereby a musical sound without distortion is emitted from the speaker 11.

【0014】また、図7のタイマー処理(タイマーイン
タラプトルーチン)は、前述のタイマーインタラプト
ルーチンより低い優先順位をもって、符長データの最
小単位である96分音符長経過毎に実行される。そし
て、フラグFがセット状態にあるか否かを判別し(SD
1)、フラグFがセット状態にあり後述するように内部
的に自動演奏が実行中である場合には、タイマーTをデ
クリメントする(SD2)したがって、タイマーTは、
内部的な自動演奏の実行中において、96分音符時間間
隔で、カウントダウンして行く。
Further, the timer process (timer interrupt routine) of FIG. 7 has a lower priority than the above-mentioned timer interrupt routine, and is executed every time a 96th note length, which is the minimum unit of the note length data, elapses. Then, it is determined whether or not the flag F is in the set state (SD
1) When the flag F is in the set state and the automatic performance is being executed internally as will be described later, the timer T is decremented (SD2).
During the execution of the internal automatic performance, it counts down at 96th note time intervals.

【0015】一方、図4のSA3では、図8〜10に示
したフローに従ってその一部の処理が実行される。すな
わち、図8に示したフローでは、機能スイッチのスキャ
ン結果に基づき、スタート/ストップSW3が操作され
たか否かを判別し(SE1)、操作されたならばレジス
タFがリセット状態にあるか否かを判別する(SE
2)。レジスタFがリセット状態にある場合にはセット
し(SE3)、セット状態にある場合にはリセットする
(SE4)。したがって、レジスタFはスタート/スト
ップSW3が操作される毎に変化し、また、レジスタF
に変化がある都度SE5〜SE7の処理を行う。すなわ
ち、曲選択スイッチ(図示せず)の操作により現在選択
されている何れかの曲A,B・・・の先頭アドレス、つ
まり選択曲の自動演奏データが記憶されているエリアの
先頭アドレスをレジスタADRにセットし(SE5)、
引き続きレジスタPとタイマーTとをリセットする(S
E6,SE7)。
On the other hand, in SA3 of FIG. 4, a part of the processing is executed according to the flow shown in FIGS. That is, in the flow shown in FIG. 8, it is determined whether or not the start / stop SW3 has been operated based on the scan result of the function switch (SE1), and if so, whether or not the register F is in the reset state. Discriminate (SE
2). If the register F is in the reset state, it is set (SE3), and if it is in the set state, it is reset (SE4). Therefore, the register F changes each time the start / stop SW3 is operated, and the register F
Whenever there is a change in, the processing of SE5 to SE7 is performed. That is, the start address of any of the songs A, B, ... Currently selected by the operation of the song selection switch (not shown), that is, the start address of the area in which the automatic performance data of the selected song is stored, is registered. Set to ADR (SE5),
Subsequently, the register P and the timer T are reset (S
E6, SE7).

【0016】また、図9に示したフローでは、レジスタ
Fがセット状態にあるか否かを判別し(SF1)、リセ
ット状態にある場合には以降の判別処理を実行すること
なくこのフローを通過する。レジスタFがセット状態に
ある場合にはタイマーTが“0”であるか否かを判別し
(SF2)、“0”でない場合には同様に以降の判別処
理を実行することなく、このフローを通過する。したが
って、SF3以降の処理は、レジスタFがセットされて
いる状態において、タイマーTが“0”となる都度実行
される。
Further, in the flow shown in FIG. 9, it is determined whether or not the register F is in the set state (SF1), and if it is in the reset state, this flow is passed without executing the subsequent determination processing. To do. When the register F is in the set state, it is determined whether or not the timer T is "0" (SF2), and when it is not "0", this flow is similarly executed without executing the subsequent determination processing. pass. Therefore, the processing after SF3 is executed every time the timer T becomes "0" while the register F is set.

【0017】そして、SF3ではレジスタADRの現在
値が示すアドレスADRに記憶されているデータ(AD
R)を、レジスタPに格納し、このレジスタPに格納し
たデータがENDデータであるか否かを判別する(SF
4)。ENDデータでない場合にはレジスタADRをイ
ンクリメントし(SF5)、このインクリメントしたレ
ジスタADRの現在値が示すアドレスADRに記憶され
ているデータ(ADR)をタイマーTにセットした後
(SF6)、更にレジスタADRをインクリメントして
おく(SF7)。
Then, in SF3, the data stored in the address ADR indicated by the current value of the register ADR (AD
R) is stored in the register P, and it is determined whether the data stored in the register P is END data (SF).
4). If it is not END data, the register ADR is incremented (SF5), and the data (ADR) stored in the address ADR indicated by the incremented register ADR is set in the timer T (SF6), and then the register ADR is further set. Is incremented (SF7).

【0018】よって、この図9に示したフローにより、
タイマーTが“0”となる毎に、つまり1個の音符に対
応する符長時間が経過する毎に、レジスタPには次の音
符1個に対応する音高データ(P)が、タイマーTには
同一音符に対応する符長データ(T)が順次セットされ
て行く。したがって、このフローにより、選択された曲
の自動演奏データが順次読み出され、これにより内部的
に当該楽曲の自動演奏が進行して行く。そして、SF3
で当該曲の自動演奏データにおける最終データであるE
NDデータがレジスタPに格納され、これにより当該曲
の内部的な自動演奏が終了すると、SF4から図8のS
E4に進み上述したSE5〜SE7の処理を実行して、
内部的な自動演奏を曲の始めから開始可能な状態を形成
する。
Therefore, according to the flow shown in FIG.
Every time the timer T becomes “0”, that is, every time a note corresponding to one note elapses, the pitch data (P) corresponding to the next note is stored in the register P by the timer T. Is set to note length data (T) corresponding to the same note. Therefore, according to this flow, the automatic performance data of the selected music piece is sequentially read out, whereby the automatic performance of the music piece progresses internally. And SF3
Is E, which is the final data in the automatic performance data of the song.
When the ND data is stored in the register P and the internal automatic performance of the music is completed by this, SF4 to S in FIG.
Proceed to E4, execute the above-mentioned steps SE5-SE7,
Form a state where internal automatic performance can start from the beginning of the song.

【0019】また、図10に示すフローでは、機能スイ
ッチのスキャン結果に基づき、ワンキーSW2が操作さ
れたか否かを判別し(SG1)、操作されたならばレジ
スタFがセット状態にあるか否かを判別する(SG
2)。そして、レジスタFがセット状態にあり、内部的
に自動演奏が実行中である場合には、音高データが格納
されているレジスタPが示す音高を予め設定されている
所定の音色で発音指示する(SG3)。この発音指示に
従って上述の音源処理が実行されることにより、スピー
カ11からはワンキーSW2が操作されたタイミング
で、レジスタPの示す音高の楽音が発生する。このと
き、上述した図9のフローにより、レジスタPには自動
演奏される曲の発音タイミングをもって当該発音タイミ
ングで発音させるべき音高データが順次格納されてい
る。したがって、ユーザーが予め選択した曲の発音タイ
ミングで正しくワンキーSW2を操作した場合には、当
該曲を構成する音符に対応する発音タイミング及び音高
で楽音が順次発生し、この順次発生する楽音により予め
選択した曲が形成される。
Further, in the flow shown in FIG. 10, it is determined whether or not the one-key SW2 is operated based on the scan result of the function switch (SG1), and if so, whether or not the register F is in the set state. Is determined (SG
2). When the register F is in the set state and the automatic performance is being executed internally, the pitch indicated by the register P in which the pitch data is stored is instructed to be emitted with a predetermined tone color. Yes (SG3). By executing the above-described sound source processing in accordance with this sounding instruction, a musical tone of the pitch indicated by the register P is generated from the speaker 11 at the timing when the one-key SW2 is operated. At this time, according to the flow of FIG. 9 described above, the pitch data to be sounded at the sounding timing of the music automatically played is sequentially stored in the register P. Therefore, when the user correctly operates the one-key SW2 at the sounding timing of the music selected in advance, musical tones are sequentially generated at the sounding timings and pitches corresponding to the notes constituting the music, and the sequentially generated musical tones are used in advance. The selected song is formed.

【0020】一方、図4に示したSA6では、図11に
示したフローに従って、一部の処理が実行される。すな
わち、レジスタFがセット状態にあるか否かを判別し
(SH1)、レジスタFセット状態にあり、内部的に自
動演奏が進行している場合には、レジスタPに格納され
ている音高データに変化が有るか否かを判別する(SH
2)。そして、レジスタPに格納されている音高データ
に変化が有った場合、つまり次の音符に対応する音高デ
ータが読み出された場合には、発音中であるか否かを判
別する(SH3)。この判別の結果、発音中であった場
合には当該発音中の楽音の音高をレジスタPの示す音高
に変更指示する(SH4)。よって、例えば曲の発音タ
イミングに合致しない誤ったタイミングでワンキーSW
2を操作し、その結果SG3での処理による発音中に次
の発音タイミングとなって、次の音高データがレジスタ
Pに格納されても、SH4の処理により発生中の楽音の
音高が次の発音タイミングで発生させるべき楽音の音高
に変化する。
On the other hand, in SA6 shown in FIG. 4, a part of the processing is executed according to the flow shown in FIG. That is, it is determined whether or not the register F is in the set state (SH1), and when the register F is in the set state and the automatic performance is internally progressing, the pitch data stored in the register P is stored. Discriminates whether there is a change (SH
2). When there is a change in the pitch data stored in the register P, that is, when the pitch data corresponding to the next note is read, it is determined whether or not the sound is being generated ( SH3). If the result of this determination is that the tone is being sounded, an instruction to change the tone pitch of the tone being sounded to the tone pitch indicated by the register P (SH4). Therefore, for example, the one-key switch is executed at an incorrect timing that does not match the sounding timing of the song.
2 is operated, and as a result, even if the next tone generation timing is reached during the tone generation by the process of SG3 and the next tone pitch data is stored in the register P, the tone pitch of the musical tone being generated by the process of SH4 is next. Changes to the pitch of the musical sound to be generated at the sounding timing of.

【0021】つまり、操作途中で操作タイミングが判ら
なくなってしまった場合であっても、連続的にワンキー
SW2を操作すれば、発生する楽音の音高が内部的な自
動演奏に依存して順次変化する。したがって、この順次
変化する楽音の音高により、内部的に進行している自動
演奏の曲部分を認識することができ、さらには、この認
識した曲部分から次の発音タイミングも認識することが
できる。よって、この認識した発音タイミングに従って
ワンキーSW2の操作を行うことにより、当該楽曲の発
音タイミングに合致した正しい操作タイミングでワンキ
ーSW2の操作を再開することができる。
That is, even if the operation timing is not known in the middle of the operation, if the one-key SW2 is operated continuously, the pitch of the generated musical tone sequentially changes depending on the internal automatic performance. To do. Therefore, it is possible to recognize the music portion of the automatic performance that is progressing internally based on the pitch of the tone that changes in sequence, and also to recognize the next sounding timing from the recognized music portion. . Therefore, by operating the one-key SW2 in accordance with the recognized sounding timing, the operation of the one-key SW2 can be restarted at the correct operation timing that matches the sounding timing of the music.

【0022】[0022]

【発明の効果】以上説明したように本発明は、楽曲を構
成する自動演奏データを順次読み出して内部的に自動演
奏を進行させる一方、使用者によりマニュアル操作子が
操作された際には、読み出された自動演奏データに基づ
いて発音指示を行うようにした。したがって、この発音
指示に基づく楽音が内部的に進行している自動演奏に依
存して発生することから、この自動演奏に依存して発生
する楽音により当該楽曲の部分及び以降の発音タイミン
グを認識することができる。よって、途中で操作タイミ
ングが判らなくなってしまった場合であっても混乱する
ことなく、再度正しい操作タイミングでマニュアル操作
子を操作しつつ当該楽曲の演奏を行うことができる。
As described above, according to the present invention, the automatic performance data constituting a music piece is sequentially read out and the automatic performance is internally progressed. On the other hand, when the user operates the manual operator, the reading is performed. The sound generation instruction is given based on the issued automatic performance data. Therefore, since the musical sound based on this pronunciation instruction is generated depending on the automatic performance that is internally progressing, the musical tone generated depending on this automatic performance recognizes the part of the music piece and the subsequent pronunciation timing. be able to. Therefore, even if the operation timing is not known on the way, it is possible to play the musical piece while operating the manual operator again at the correct operation timing without confusion.

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

【図1】本発明の一実施例にかかる電子楽器の全体構造
を示すブロック図である。
FIG. 1 is a block diagram showing the overall structure of an electronic musical instrument according to an embodiment of the present invention.

【図2】同実施例にかかる電子楽器の要部平面図であ
る。
FIG. 2 is a main part plan view of the electronic musical instrument according to the embodiment.

【図3】ROMの一部に記憶されている自動演奏データ
の一部を示す概念図である。
FIG. 3 is a conceptual diagram showing a part of automatic performance data stored in a part of a ROM.

【図4】メインルーチンを示すフローチャートである。FIG. 4 is a flowchart showing a main routine.

【図5】タイマーインタラプトルーチンを示すフロー
チャートである。
FIG. 5 is a flowchart showing a timer interrupt routine.

【図6】タイマーインタラプトルーチンにおける音源
処理の内容を示すフローチャートである。
FIG. 6 is a flowchart showing the contents of sound source processing in a timer interrupt routine.

【図7】タイマーインタラプトルーチンを示すフロー
チャートである。
FIG. 7 is a flowchart showing a timer interrupt routine.

【図8】図4に示したメインルーチンにおけるSA3の
処理の一部を示すフローチャートである。
8 is a flowchart showing a part of the processing of SA3 in the main routine shown in FIG.

【図9】同メインルーチンにおけるSA3の処理の一部
を示すフローチャートである。
FIG. 9 is a flowchart showing a part of processing of SA3 in the same main routine.

【図10】同メインルーチンにおけるSA3の処理の一
部を示すフローチャートである。
FIG. 10 is a flowchart showing a part of processing of SA3 in the same main routine.

【図11】図4に示したメインルーチンにおけるSA6
の処理の一部を示すフローチャートである。
FIG. 11 is an SA6 in the main routine shown in FIG.
It is a flowchart which shows a part of process of.

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

2 ワンキーSW 3 スタート/ストップSW 4 スイッチ部 5 CPU 6 ROM 7 RAM 2 One-key SW 3 Start / Stop SW 4 Switch section 5 CPU 6 ROM 7 RAM

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 楽曲を構成する自動演奏データを記憶す
る記憶手段と、 この記憶手段から上記自動演奏データを順次読み出す読
出手段と、 使用者により操作されるマニュアル操作子と、 このマニュアル操作子が操作されると、上記読出手段に
より読み出された自動演奏データに基づいて発音指示を
行う発音指示手段と、 を有することを特徴とする演奏装置。
1. A storage means for storing automatic performance data constituting a musical composition, a reading means for sequentially reading the automatic performance data from the storage means, a manual operator operated by a user, and a manual operator. A musical performance apparatus comprising: a sounding instructing means which, when operated, gives a sounding instruction based on the automatic performance data read by the reading means.
【請求項2】 上記自動演奏データは、上記楽曲構成す
る各音符の音高を示す音高データと符長を示す符長デー
タとで構成されていることを特徴とする請求項1記載の
演奏装置。
2. The performance according to claim 1, wherein the automatic performance data is composed of pitch data indicating a pitch of each note constituting the music and note length data indicating a note length. apparatus.
JP5325858A 1993-11-30 1993-11-30 Playing device Pending JPH07152372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5325858A JPH07152372A (en) 1993-11-30 1993-11-30 Playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5325858A JPH07152372A (en) 1993-11-30 1993-11-30 Playing device

Publications (1)

Publication Number Publication Date
JPH07152372A true JPH07152372A (en) 1995-06-16

Family

ID=18181411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5325858A Pending JPH07152372A (en) 1993-11-30 1993-11-30 Playing device

Country Status (1)

Country Link
JP (1) JPH07152372A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5777251A (en) * 1995-12-07 1998-07-07 Yamaha Corporation Electronic musical instrument with musical performance assisting system that controls performance progression timing, tone generation and tone muting
JP2008020876A (en) * 2006-06-15 2008-01-31 Casio Comput Co Ltd Performance apparatus, performance implementing method and program
JP2008020875A (en) * 2006-06-15 2008-01-31 Casio Comput Co Ltd Performance apparatus, performance implementation method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5777251A (en) * 1995-12-07 1998-07-07 Yamaha Corporation Electronic musical instrument with musical performance assisting system that controls performance progression timing, tone generation and tone muting
JP2008020876A (en) * 2006-06-15 2008-01-31 Casio Comput Co Ltd Performance apparatus, performance implementing method and program
JP2008020875A (en) * 2006-06-15 2008-01-31 Casio Comput Co Ltd Performance apparatus, performance implementation method and program

Similar Documents

Publication Publication Date Title
KR100297674B1 (en) Automatic playing device and processing method of automatic playing data
JP3239411B2 (en) Electronic musical instrument with automatic performance function
JP3684774B2 (en) Performance instruction device and medium recording program
JPH07152372A (en) Playing device
US20030004701A1 (en) Automatic performing apparatus and electronic instrument
JP3613935B2 (en) Performance practice device and medium recording program
JPH0627960A (en) Automatic accompaniment playing device
JP3613062B2 (en) Musical sound data creation method and storage medium
JP6528752B2 (en) Tone reproduction apparatus, tone reproduction method, program and electronic musical instrument
JP2006065186A (en) Device and method for tempo information output, computer program for tempo information output, device and method for touch information output, and computer program for touch information output
JPH05204297A (en) Syllable name generator
JP2674452B2 (en) Music player
JPH1185153A (en) Playing device
JP2694788B2 (en) Electronic musical instrument
JP2722880B2 (en) Electronic musical instrument
JP2643277B2 (en) Automatic performance device
JP2601039B2 (en) Electronic musical instrument
JP2000259154A (en) Code judging device
JPH10143177A (en) Karaoke device (sing-along machine)
JP2738217B2 (en) Electronic musical instrument
JPH04274297A (en) Automatic musical performance device
JP3005911B2 (en) Performance control device
JP3329030B2 (en) Music signal generator
JP3861886B2 (en) Musical sound waveform data creation method and storage medium
JP2961675B2 (en) Electronic musical instrument