JP2002062873A - Automatic playing device - Google Patents

Automatic playing device

Info

Publication number
JP2002062873A
JP2002062873A JP2000248272A JP2000248272A JP2002062873A JP 2002062873 A JP2002062873 A JP 2002062873A JP 2000248272 A JP2000248272 A JP 2000248272A JP 2000248272 A JP2000248272 A JP 2000248272A JP 2002062873 A JP2002062873 A JP 2002062873A
Authority
JP
Japan
Prior art keywords
performance data
resolution
counter
performance
interrupt signal
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
JP2000248272A
Other languages
Japanese (ja)
Inventor
Noriyuki Ueda
典之 植田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2000248272A priority Critical patent/JP2002062873A/en
Publication of JP2002062873A publication Critical patent/JP2002062873A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To simplify a timing generating means for reproducing musical performance data having different resolution at the same time. SOLUTION: Different kinds of musical performance data with different resolution which are stored in storage parts 16 and 18 are read out to a sound source device 8 according to musical performance timing information and reproduced. Counters 12 and 13 count up in response to an interruption signal generated by a timer device 7 to read the pieces of musical performance data. When a counter value matches the musical performance timing information, the musical performance data are read out. Here, since the period of the interruption signal is determined according to specific resolution D, when musical performance data having other resolution Dm are read out, a count correction part 14 varies the variation quantity of the counter value of the counter 13 in correspondence with one input of the interruption signal according to the resolution Dm.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、自動演奏装置に関
し、特に、互いに分解能の異なる演奏データを共通のク
ロックソースで音源等へ読み出すのに好適な自動演奏装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic performance device, and more particularly to an automatic performance device suitable for reading performance data having different resolutions from a common clock source to a sound source or the like.

【0002】[0002]

【従来の技術】図5は従来の自動演奏装置における楽音
発生装置の要部構成を示すブロック図である。同図にお
いて、周期設定部100はテンポ(1分あたりの4分音
符の数)Tと分解能(4分音符あたりのクロック数)D
とに基づき、次式によってタイマ周期tを算出する。タ
イマ周期t(μ秒)=60000000/T/D。算出されたタイマ
周期tはタイマつまり分周部200にセットされる。タ
イマ200は基準クロックCKに基づき、周期tで割込
信号を出力する。
2. Description of the Related Art FIG. 5 is a block diagram showing a main configuration of a tone generator in a conventional automatic performance device. In the figure, a cycle setting unit 100 has a tempo (the number of quarter notes per minute) T and a resolution (the number of clocks per quarter note) D
, The timer period t is calculated by the following equation. Timer cycle t (μsec) = 60000000 / T / D. The calculated timer cycle t is set in the timer, that is, the frequency dividing unit 200. The timer 200 outputs an interrupt signal at a period t based on the reference clock CK.

【0003】カウンタ300は前記割込信号に応答して
カウンタ値を加算し、そのカウンタ値がステップタイム
設定部400から入力されるステップタイムと一致した
ときに、そのステップタイムで読み出されるべき演奏デ
ータを演奏データ記憶部500から音源装置600に読
み出し、選択されたチャンネルに各種パラメータをセッ
トする。ステップタイム設定部400はカウンタ300
に初期値として「0」を設定し、演奏データを読み出す
ごとにその演奏データに記述されているステップタイム
でカウンタ300のリセット値を更新する。こうして、
カウンタ300のカウントアップ毎に演奏データが読み
出されて自動演奏のシーケンスが進行される。
The counter 300 adds a counter value in response to the interrupt signal. When the counter value coincides with the step time input from the step time setting section 400, the performance data to be read at that step time. Is read from the performance data storage unit 500 to the tone generator 600, and various parameters are set to the selected channel. The step time setting unit 400 includes a counter 300
Is set to "0" as an initial value, and every time performance data is read out, the reset value of the counter 300 is updated at the step time described in the performance data. Thus,
Each time the counter 300 counts up, the performance data is read out, and the sequence of the automatic performance proceeds.

【0004】[0004]

【発明が解決しようとする課題】自動演奏の種類によっ
ては、単純なタイマ割り込みだけでは処理できないこと
がある。例えば、ドラムやベースなどの短い演奏データ
の繰り返し音であるスタイルやストラミング奏法の音色
等のテンポは自動演奏装置に固有の分解能に対応するタ
イマ周期で決定される。したがって、前記スタイルやス
トラミング音色等とSMF(スタンダードMIDIファ
イル)等、分解能が異なるソングデータとを同時に演奏
することができない。
[0005] Depending on the type of automatic performance, processing may not be possible only by a simple timer interrupt. For example, the tempo of the style, which is the repetitive sound of short performance data such as drums and bass, and the timbre of the strumming style, is determined by the timer cycle corresponding to the resolution unique to the automatic performance device. Therefore, it is impossible to simultaneously play the style or strumming tone and the like and song data having different resolutions such as SMF (standard MIDI file).

【0005】互いに分解能が異なる演奏データを同時に
演奏する場合には、それぞれ別個にタイマを使用して互
いに異なる分解能のタイマ割り込みを発生させる必要が
ある。それぞれにタイマを設けない場合は、例えば、ス
トラミング音色のテンポは犠牲にするとか、スタイルの
演奏はソングデータと同時演奏できないよう制限を設け
るなどの処置が必要である。このように、互いに分解能
が異なる演奏データを同時に演奏することは困難である
か、できたとしても構成が複雑になるという問題があ
る。
When simultaneously playing performance data having different resolutions, it is necessary to use separate timers to generate timer interrupts having different resolutions. If a timer is not provided for each of them, it is necessary to take measures such as sacrificing the tempo of the strumming tone color or providing a restriction so that the performance of the style cannot be performed simultaneously with the song data. As described above, there is a problem that it is difficult to simultaneously play performance data having different resolutions from each other, or even if it can be performed, the configuration becomes complicated.

【0006】本発明は、上記問題点を解消し、分解能の
異なる複数の演奏情報を互いに共通のクロック・ソース
に従って再生することができる自動演奏装置を提供する
ことを目的とする。
An object of the present invention is to solve the above-mentioned problems and to provide an automatic performance apparatus capable of reproducing a plurality of pieces of performance information having different resolutions according to a common clock source.

【0007】[0007]

【課題を解決するための手段】上記の課題を解決し、目
的を達成するための本発明は、記憶手段に格納された分
解能の異なる複数種類の演奏データを、該演奏データに
含まれる演奏タイミング情報に従って音源装置に読み出
して再生する自動演奏装置において、予定周期で割込信
号を発生するタイマ手段と、前記各種類の演奏データに
対応してそれぞれ設けられ、前記割込信号に応答して計
数されるカウンタ値が前記演奏タイミング情報に相当す
る値になった時にカウントアップするカウンタ手段と、
前記割込信号の1入力に対する前記カウンタ手段のカウ
ンタ値の変化量を前記各種類の演奏データ毎にその分解
能に応じて変化させるカウント修正手段とを具備し、前
記それぞれのカウンタ手段のカウントアップに応答して
前記記憶手段から分解能の異なる複数種類の演奏データ
をそれぞれ音源装置に読み出すよう構成された点に第1
の特徴がある。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems and to achieve the object, the present invention provides a method for storing a plurality of types of performance data having different resolutions stored in a storage means, using a performance timing included in the performance data. In an automatic performance device which reads out and reproduces the data in a sound source device according to information, a timer means for generating an interrupt signal at a predetermined period, and a timer means provided corresponding to each type of performance data and counting in response to the interrupt signal Counter means for counting up when the counted counter value becomes a value corresponding to the performance timing information;
Count correction means for changing the amount of change in the counter value of the counter means with respect to one input of the interrupt signal in accordance with the resolution of each type of performance data. The first point is that a plurality of types of performance data having different resolutions are read out from the storage means in response to the tone generator.
There is a feature.

【0008】第1の特徴によれば、タイマ手段から出力
される割込信号に応答してカウンタ値が更新されるカウ
ンタ手段では、1回の割り込みに対して更新されるカウ
ンタ値が演奏データの分解能に応じて変化させられる。
したがって、分解能が互いに異なる演奏データの演奏タ
イミングを、各種類の演奏データ毎に設けられたカウン
タ手段のカウンタ値に基づいて決定できる。
According to the first feature, in the counter means in which the counter value is updated in response to an interrupt signal output from the timer means, the counter value updated in response to a single interrupt is based on the performance data. It can be changed according to the resolution.
Therefore, the performance timing of the performance data having different resolutions can be determined based on the counter value of the counter means provided for each type of performance data.

【0009】また、本発明は、前記割込信号の周期を、
テンポおよび前記複数種類の演奏データのうち一の演奏
データの分解能に基づいて算出するよう構成した点に第
2の特徴がある。
[0009] In the present invention, the cycle of the interrupt signal may be set as follows:
A second feature is that the calculation is performed based on the tempo and the resolution of one of the plurality of types of performance data.

【0010】さらに、本発明は、前記カウント修正手段
が、前記一の演奏データの分解能を基準分解能とし、該
基準分解能に対する各種類の演奏データの分解能の割合
で前記カウンタ値の変化量を変化させるよう構成された
点に第3の特徴がある。
Further, according to the present invention, the count correction means sets a resolution of the one performance data as a reference resolution, and changes a change amount of the counter value at a ratio of a resolution of each type of performance data to the reference resolution. There is a third feature in the point configured as described above.

【0011】第2,3の特徴によれば、前記タイマ手段
で発生される割込信号が前記カウンタ手段で計数され、
そのカウンタ値が前記演奏タイミング情報で代表される
値になったときに前記一の演奏データを読み出すタイミ
ングが発生される。一方、前記一の演奏データ以外の演
奏データを読み出すタイミングを発生させるための前記
カウンタ値の変化量は、演奏データの分解能に応じて変
化させられる。
According to the second and third features, the interrupt signal generated by the timer means is counted by the counter means,
When the counter value becomes a value represented by the performance timing information, a timing for reading the one performance data is generated. On the other hand, the change amount of the counter value for generating the timing for reading out the performance data other than the one performance data is changed according to the resolution of the performance data.

【0012】[0012]

【発明の実施の形態】以下に、図面を参照して本発明を
詳細に説明する。図2は本発明の一実施形態に係る自動
演奏装置の構成を示すブロック図である。同図におい
て、CPU1は、バス2を通じてROM3、RAM4,
コントロールパネル5、外部記憶装置6、タイマ装置
7、および音源装置8に接続される。さらに音源装置8
にはサウンドシステム9が接続される。ROM3にはC
PU1の制御プログラムや波形データなどが格納され、
RAM4にはCPU1によるプログラムの実行に必要な
各種レジスタや演奏データを記憶する領域が設定され
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIG. 2 is a block diagram showing the configuration of the automatic performance device according to one embodiment of the present invention. In FIG. 1, a CPU 1 has a ROM 3, a RAM 4,
It is connected to the control panel 5, the external storage device 6, the timer device 7, and the sound source device 8. Further sound source device 8
Is connected to a sound system 9. ROM3 contains C
The control program of PU1 and the waveform data are stored.
In the RAM 4, various registers necessary for executing the program by the CPU 1 and areas for storing performance data are set.

【0013】演奏データは音符単位で記述され、それぞ
れが音高やベロシティなどの楽音情報と演奏タイミング
情報としてのステップタイム(次の音までの時間)とを
含む。演奏データは外部記憶装置6から供給されるもの
でもよいし、MIDIインタフェース10を介して図示
しない外部MIDI機器から供給されるものであっても
よい。コントロールパネル5には、電源のオン・オフス
イッチや音色情報の選択スイッチ等が設けられる。タイ
マ装置7は、テンポと分解能に基づき、RAM4から音
源装置8へ演奏データを読み出すための割込周期を発生
する手段を有する。
The performance data is described in note units, and each includes musical tone information such as pitch and velocity, and step time (time to next sound) as performance timing information. The performance data may be supplied from the external storage device 6 or may be supplied from an external MIDI device (not shown) via the MIDI interface 10. The control panel 5 is provided with a power on / off switch, a tone color information selection switch, and the like. The timer device 7 has a means for generating an interrupt cycle for reading performance data from the RAM 4 to the tone generator 8 based on the tempo and the resolution.

【0014】音源装置8は、例えば、正弦波加算方式で
楽音を合成する機能を有し、前記音色情報や演奏データ
に基づいて楽音信号を出力する。音源装置8は、サウン
ドシステム9に含まれる左スピーカ、右スピーカにそれ
ぞれ楽音信号を供給する。音源装置8から出力される楽
音信号はコンピュータ処理に適したデジタル信号である
ため、この楽音信号をサウンドシステム9に適合するア
ナログ信号に変換するためD/A変換器(図示せず)が
設けられる。
The tone generator 8 has a function of synthesizing a musical tone by, for example, a sine wave addition method, and outputs a musical tone signal based on the tone color information and the performance data. The sound source device 8 supplies a tone signal to each of a left speaker and a right speaker included in the sound system 9. Since the tone signal output from the tone generator 8 is a digital signal suitable for computer processing, a D / A converter (not shown) is provided to convert the tone signal into an analog signal suitable for the sound system 9. .

【0015】図1は、上記自動演奏装置において演奏デ
ータを読み出す割込処理部の要部機能を示すブロック図
である。周期設定部11は当該自動演奏装置に固有の分
解能D(ここでは「96」とする)と所与のテンポTと
によって決定される割込周期tをタイマ装置7に設定す
る。割込周期tは従来技術の項に記載した算出式を使用
して算出される。タイマ装置7は基準クロックCKに基
づき、周期tで割込信号を出力する。
FIG. 1 is a block diagram showing the main functions of an interrupt processing unit for reading out performance data in the automatic performance device. The cycle setting unit 11 sets in the timer device 7 an interrupt cycle t determined by a resolution D (here, “96”) specific to the automatic performance device and a given tempo T. The interrupt cycle t is calculated using the calculation formula described in the section of the related art. The timer device 7 outputs an interrupt signal at a period t based on the reference clock CK.

【0016】周期tの割込信号は、第1カウンタ12お
よび第2カウンタ13に入力される。但し、第2カウン
タ13へ入力される周期tの割込信号はカウント修正部
14で修正された後、該第2カウンタ13へ入力され
る。第1カウンタ12はスタイルやストラミング音色な
ど、当該自動演奏装置の分解能と同じ「96」の分解能
に基づく周期で進行される演奏データを読み出すために
設けられ、第2カウンタ13は、ソングデータなど、個
別の分解能に基づく周期で進行される演奏データを読み
出すために設けられる。
An interrupt signal having a period t is input to the first counter 12 and the second counter 13. However, the interrupt signal of the cycle t input to the second counter 13 is corrected by the count correcting unit 14 and then input to the second counter 13. The first counter 12 is provided for reading out performance data, such as a style and a strumming tone, which progresses in a cycle based on the resolution of "96" which is the same as the resolution of the automatic performance device. It is provided for reading performance data progressing at a cycle based on individual resolution.

【0017】例えば、演奏データがスタイルやストラミ
ングのものであって、その分解能、つまり4分音符あた
りのタイミング・クロック数が、当該自動演奏装置の分
解能と同じ「96」であったならば、割込信号はそのま
ま第1カウンタ12に入力されて第1カウンタ12にカ
ウンタ値「1」が加算される。一方、演奏データがソン
グであって、その分解能が、当該自動演奏装置の分解能
「96」と異なったものであったならば、割込信号はカ
ウント修正部14で修正されて第2カウンタ13に入力
される。
For example, if the performance data is of style or strumming and its resolution, that is, the number of timing clocks per quarter note is "96", which is the same as the resolution of the automatic performance device, The input signal is directly input to the first counter 12 and the counter value “1” is added to the first counter 12. On the other hand, if the performance data is a song and the resolution is different from the resolution “96” of the automatic performance device, the interrupt signal is corrected by the count correction unit 14 and is sent to the second counter 13. Is entered.

【0018】すなわち、カウント修正部14は、タイマ
装置7から出力される割込信号を分解能に応じて修正
し、1回の割込信号によって第2カウンタ13で加算さ
れる値を変更する。分解能をDmとし、カウンタ値
「1」に対する修正割合をdtとした場合、dt=Dm
/D(但しD=96)と計算される。例えば、分解能D
mが「120」であればdt=120/96=1.25
である。ここで、CPUによって浮動小数点演算を行う
には負荷が大きいので、値「1.25」に65536
(0×10000)を乗じ、乗算結果の上位16ビット
を第2カウンタ13のカウンタ値に加算する整数部と
し、下位16ビットを少数部として次回の加算時に使用
する。
That is, the count correction unit 14 corrects the interrupt signal output from the timer device 7 according to the resolution, and changes the value added by the second counter 13 by one interrupt signal. When the resolution is Dm and the correction ratio for the counter value “1” is dt, dt = Dm
/ D (where D = 96). For example, the resolution D
If m is “120”, dt = 120/96 = 1.25
It is. Here, since the load is large to perform the floating point operation by the CPU, 65536 is set to the value “1.25”.
The result is multiplied by (0 × 10000), and the higher 16 bits of the multiplication result are used as the integer part to be added to the counter value of the second counter 13, and the lower 16 bits are used as the decimal part and used in the next addition.

【0019】第1カウンタ12は前記割込信号に応答し
て、そのカウンタ値を加算する。第1カウンタ12は、
そのカウンタ値が第1ステップタイム設定部15から入
力されるステップタイムと一致したときにカウントアッ
プする。このカウントアップに応答して、ステップタイ
ムで読み出されるべき演奏データが第1演奏データ記憶
部16から音源装置8に読み出され、選択されたチャン
ネルに楽音発生のための各種パラメータがセットされ
る。第1演奏データ記憶部16には、自動演奏装置に固
有の分解能「96」で決定されるテンポの演奏データ、
例えばスタイルの演奏データが記憶される。
The first counter 12 adds the counter value in response to the interrupt signal. The first counter 12
It counts up when the counter value matches the step time input from the first step time setting unit 15. In response to the count-up, the performance data to be read in step time is read from the first performance data storage unit 16 to the tone generator 8, and various parameters for generating a musical tone are set in the selected channel. The first performance data storage unit 16 stores performance data at a tempo determined by a resolution “96” unique to the automatic performance device.
For example, performance data of a style is stored.

【0020】一方、第2カウンタ13は前記修正された
割込信号に応答して、そのカウンタ値を加算する。第2
カウンタ13は、そのカウンタ値が第2ステップタイム
設定部17から入力されるステップタイムと一致したと
きにカウントアップする。このカウントアップに応答し
て、そのステップタイムで読み出されるべき演奏データ
が第2演奏データ記憶部18から音源装置8に読み出さ
れ、選択されたチャンネルに楽音発生のための各種パラ
メータがセットされる。第2演奏データ記憶部18に
は、自動演奏装置に固有の分解能「96」と異なる個別
の分解能に基づくテンポの演奏データ、例えばソングの
演奏データが記憶される。
On the other hand, the second counter 13 adds its counter value in response to the corrected interrupt signal. Second
The counter 13 counts up when its counter value matches the step time input from the second step time setting unit 17. In response to the count-up, the performance data to be read at the step time is read from the second performance data storage unit 18 to the tone generator 8, and various parameters for generating a tone are set in the selected channel. . The second performance data storage unit 18 stores performance data of a tempo based on an individual resolution different from the resolution “96” unique to the automatic performance device, for example, song performance data.

【0021】第1ステップタイム設定部15および第2
ステップタイム設定部17は第1カウンタ12および第
2カウンタ13に初期値としてそれぞれ「0」を設定
し、演奏データを読み出すごとに各演奏データに記述さ
れているステップタイムで第1カウンタ12および第2
カウンタ13のリセット値を更新する。こうして、第1
カウンタ12および第2カウンタ13のカウントアップ
毎に演奏データが1つずつ読み出されて自動演奏のシー
ケンスが進行される。
First step time setting section 15 and second step time setting section 15
The step time setting unit 17 sets "0" as an initial value in the first counter 12 and the second counter 13, respectively, and every time the performance data is read out, the first counter 12 and the second counter 13 are set at the step time described in each performance data. 2
The reset value of the counter 13 is updated. Thus, the first
Each time the counter 12 and the second counter 13 count up, the performance data is read out one by one, and the automatic performance sequence proceeds.

【0022】なお、CPU1が、上記カウント修正部1
4の演算に十分な大きさのレジスタを有していない場合
のため、前記カウント修正部14を次のように変形でき
る。すなわち、前記カウント修正部14をテーブルで構
成する。図3はそのテーブルの一例である。同図に示す
ように、各分解能に対応して、前記第1カウンタ12お
よび第2カウンタ13に加算する値を設定してある。カ
ウント修正部14は、第1カウンタ12および第2カウ
ンタ13に共通して設けられ、前記タイマ装置7から出
力される周期tの割込信号に応答して、各分解能毎に設
定されている値を第1カウンタ12および第2カウンタ
13に入力する。
Note that the CPU 1 operates in the
In the case where the register does not have a register large enough for the operation of No. 4, the count correcting unit 14 can be modified as follows. That is, the count correction unit 14 is constituted by a table. FIG. 3 shows an example of the table. As shown in the drawing, values to be added to the first counter 12 and the second counter 13 are set corresponding to each resolution. The count correction unit 14 is provided commonly to the first counter 12 and the second counter 13, and responds to an interrupt signal of the cycle t output from the timer device 7, and sets a value set for each resolution. Is input to the first counter 12 and the second counter 13.

【0023】例えば、分解能が「96」では「1,1,
1,1,…」のように、各割込毎に常に値「1」が読み
出される。しかし、分解能が「96」以外、例えば分解
能「120」では、「1,1,1,2,…」のように、
4回に1回は値「2」が読み出される。このように、第
1カウンタ12および第2カウンタ13に加算される値
の割合を変化させることができる。
For example, if the resolution is "96", "1, 1,
.., "1" is always read out for each interrupt. However, when the resolution is other than “96”, for example, when the resolution is “120”, like “1,1,1,2,.
The value “2” is read once every four times. Thus, the ratio of the value added to the first counter 12 and the second counter 13 can be changed.

【0024】さらに、本実施形態は、次のように変形す
ることができる。図4は変形例に係る要部機能ブロック
図であり、図1と同符号は同一または同等部分を示す。
同図において、タイマ装置7aはテンポTや分解能Dに
かかわらず、予め定めた一定の値毎に割込信号を出力す
るよう構成する。この割込周期は、例えば、コントロー
ルパネル5上に設けられる各種表示灯としてのLED点
滅用等に利用される周期(例えば2m秒)と同じにすれ
ば、タイマ装置7aを互いに兼用できる。第1カウンタ
12に第1カウント修正部14aを、第2カウンタ13
に第2カウント修正部14bをそれぞれ対応させて設け
る。
Further, the present embodiment can be modified as follows. FIG. 4 is a functional block diagram of a main part according to a modification, and the same reference numerals as in FIG. 1 indicate the same or equivalent parts.
In the figure, the timer device 7a is configured to output an interrupt signal at predetermined constant values regardless of the tempo T and the resolution D. If this interrupt cycle is the same as the cycle (for example, 2 msec) used for blinking an LED as various indicator lights provided on the control panel 5, the timer devices 7a can be used as one another. The first counter 12 is provided with a first count correction unit 14a, and the second counter 13
The second count correction units 14b are provided in correspondence with each other.

【0025】分解能をDmとし、カウンタ値「1」に対
する修正割合をdtとした場合、第1カウント修正部1
4aではdt1=2/((60000/T)/D(但し
D=96)と計算される。また、第2カウント修正部1
4bではdt2=2/((60000/T)/Dmと計
算される。例えば、テンポTが「100」、分解能Dm
が「120」であればdt1=0.32、dt2は0.
2である。ここで、CPUによって浮動小数点演算を行
うには負荷が大きいので、この値に65536(0×1
0000)を乗じ、乗算結果の上位16ビットを第2カ
ウンタ13のカウンタ値に加算する整数部とし、下位1
6ビットを少数部として次回の加算時に使用する。
When the resolution is Dm and the correction ratio to the counter value "1" is dt, the first count correction unit 1
In 4a, dt1 is calculated as dt1 = 2 / ((60000 / T) / D (where D = 96).
In 4b, dt2 = 2 / ((60000 / T) / Dm. For example, the tempo T is “100” and the resolution Dm
Is "120", dt1 = 0.32.
2. Here, since the load is large for performing the floating point operation by the CPU, 65536 (0 × 1
0000), and the upper 16 bits of the multiplication result are added to the counter value of the second counter 13 as an integer part.
Six bits are used as a decimal part at the time of the next addition.

【0026】[0026]

【発明の効果】以上の説明から明らかなように、本発明
によれば、分解能の異なる複数種類の演奏データを、共
通のクロック・ソース(タイマ手段)から供給される割
込信号に基づいて音源装置に読み出し、再生させること
ができる。特に請求項2,3の発明によれば、割込信号
の周期を決定するために使用された分解能とは異なる分
解能の演奏データの読み出しに関してのみ、1回の割り
込みにおけるカウンタ値の変化量が修正される。
As is apparent from the above description, according to the present invention, a plurality of types of performance data having different resolutions are generated based on an interrupt signal supplied from a common clock source (timer means). It can be read and played back by the device. In particular, according to the second and third aspects of the present invention, the change amount of the counter value in one interrupt is corrected only for reading performance data having a resolution different from the resolution used for determining the cycle of the interrupt signal. Is done.

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

【図1】 本発明の一実施形態に係る自動演奏装置の要
部機能を示すブロック図である。
FIG. 1 is a block diagram illustrating main functions of an automatic performance device according to an embodiment of the present invention.

【図2】 本発明の一実施形態に係る自動演奏装置のハ
ード構成を示すブロック図である。
FIG. 2 is a block diagram showing a hardware configuration of the automatic performance device according to one embodiment of the present invention.

【図3】 カウント修正部構成するテーブルの一例を示
す図である。
FIG. 3 is a diagram showing an example of a table constituting a count correction unit.

【図4】 変形例に係る自動演奏装置の要部機能を示す
ブロック図である。
FIG. 4 is a block diagram showing main functions of an automatic performance device according to a modification.

【図5】 従来の自動演奏装置の要部機能を示すブロッ
ク図である。
FIG. 5 is a block diagram showing functions of a main part of a conventional automatic performance device.

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

1…CPU、 5…コントロールパネル、 7…タイマ
装置、 11…周期設定部、 12…第1カウンタ、
13…第2カウンタ、 14…カウント修正部、16…
第1演奏データ記憶部、 18…第2演奏データ記憶部
1 CPU, 5 control panel, 7 timer device, 11 cycle setting section, 12 first counter,
13 ... second counter, 14 ... count correction unit, 16 ...
First performance data storage unit, 18... Second performance data storage unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記憶手段に格納された分解能の異なる複
数種類の演奏データを、該演奏データに含まれる演奏タ
イミング情報に従って音源装置に読み出して再生する自
動演奏装置において、 予定周期で割込信号を発生するタイマ手段と、 前記各種類の演奏データに対応してそれぞれ設けられ、
前記割込信号に応答して計数されるカウンタ値が前記演
奏タイミング情報に相当する値になった時にカウントア
ップするカウンタ手段と、 前記割込信号の1入力に対する前記カウンタ手段のカウ
ンタ値の変化量を前記各種類の演奏データ毎にその分解
能に応じて変化させるカウント修正手段とを具備し、 前記それぞれのカウンタ手段のカウントアップに応答し
て前記記憶手段から分解能の異なる複数種類の演奏デー
タをそれぞれ音源装置に読み出すよう構成されたことを
特徴とする自動演奏装置。
1. An automatic performance device which reads out and reproduces a plurality of types of performance data having different resolutions stored in a storage means in accordance with performance timing information included in the performance data and reproduces the interrupt signal at a predetermined period. Timer means for generating, respectively provided corresponding to each type of performance data,
Counter means for counting up when a counter value counted in response to the interrupt signal becomes a value corresponding to the performance timing information; and a change amount of the counter value of the counter means for one input of the interrupt signal. Count correction means for changing the performance data for each type of performance data in accordance with the resolution thereof. In response to the count-up of the respective counter means, a plurality of types of performance data having different resolutions are respectively stored from the storage means. An automatic performance device characterized by being read out to a sound source device.
【請求項2】 前記割込信号の周期は、テンポおよび前
記複数種類の演奏データのうち一の演奏データの分解能
に基づいて算出されたものであることを特徴とする請求
項1記載の自動演奏装置。
2. The automatic performance according to claim 1, wherein the cycle of the interrupt signal is calculated based on a tempo and a resolution of one of the plurality of types of performance data. apparatus.
【請求項3】 前記カウント修正手段が、前記一の演奏
データの分解能を基準分解能とし、該基準分解能に対す
る各種類の演奏データの分解能の割合で前記カウンタ値
の変化量を変化させるよう構成されたことを特徴とする
請求項2記載の自動演奏装置。
3. The apparatus according to claim 1, wherein the count correcting means sets a resolution of the one performance data as a reference resolution, and changes an amount of change of the counter value by a ratio of a resolution of each type of performance data to the reference resolution. 3. The automatic performance apparatus according to claim 2, wherein:
JP2000248272A 2000-08-18 2000-08-18 Automatic playing device Pending JP2002062873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000248272A JP2002062873A (en) 2000-08-18 2000-08-18 Automatic playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000248272A JP2002062873A (en) 2000-08-18 2000-08-18 Automatic playing device

Publications (1)

Publication Number Publication Date
JP2002062873A true JP2002062873A (en) 2002-02-28

Family

ID=18738211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000248272A Pending JP2002062873A (en) 2000-08-18 2000-08-18 Automatic playing device

Country Status (1)

Country Link
JP (1) JP2002062873A (en)

Similar Documents

Publication Publication Date Title
JP2956429B2 (en) Automatic arrangement device
JPH0922287A (en) Musical sound waveform generating method
JPH04146490A (en) Automatic performance device
JPH01179090A (en) Automatic playing device
JP2002062873A (en) Automatic playing device
JPH0769698B2 (en) Automatic accompaniment device
JP2761897B2 (en) Automatic rhythm playing device
JP3219252B2 (en) Automatic accompaniment device
GB2091470A (en) Electronic Musical Instrument
US5260509A (en) Auto-accompaniment instrument with switched generation of various phrase tones
JP3609045B2 (en) Automatic performance device
JP2564811B2 (en) Performance recorder
JP2004287308A (en) Performance control device and its program
JP3740717B2 (en) Tone generator and musical sound generation method
JP2552002B2 (en) Electronic instrument tone color setting method
JP3533482B2 (en) Melody conversion device and method
JP2605377Y2 (en) Automatic accompaniment device
JPH0774951B2 (en) Electronic musical instrument with automatic accompaniment
JPH02134696A (en) Sound generating device
JP2513014B2 (en) Electronic musical instrument automatic performance device
JP2972364B2 (en) Musical information processing apparatus and musical information processing method
JPH05188961A (en) Automatic accompaniment device
JPH04257895A (en) Apparatus and method for code-step recording and automatic accompaniment system
JPH0659676A (en) Automatic accompaniment device
JP2681146B2 (en) Electronic musical instrument automatic performance device and automatic performance method