JPS6367194B2 - - Google Patents
Info
- Publication number
- JPS6367194B2 JPS6367194B2 JP55181922A JP18192280A JPS6367194B2 JP S6367194 B2 JPS6367194 B2 JP S6367194B2 JP 55181922 A JP55181922 A JP 55181922A JP 18192280 A JP18192280 A JP 18192280A JP S6367194 B2 JPS6367194 B2 JP S6367194B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- data
- note
- time
- 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.)
- Expired
Links
- 238000001514 detection method Methods 0.000 claims description 11
- 230000006386 memory function Effects 0.000 claims description 2
- 239000011295 pitch Substances 0.000 description 44
- 230000033764 rhythmic process Effects 0.000 description 37
- 230000006870 function Effects 0.000 description 10
- 238000006243 chemical reaction Methods 0.000 description 7
- 238000000034 method Methods 0.000 description 7
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
- Calculators And Similar Devices (AREA)
Description
【発明の詳細な説明】
この発明はメロデイメモリ機能付小型電子機器
に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a small electronic device with a melody memory function.
近年、メモリにメロデイの音階データのみを予
め記憶させておくと共に、特定キーの操作毎に上
記メモリから音階データを順次読出して読出した
各音階データに音長データを付加し、楽音を発生
させる所謂ワンキープレイ機能をもつた小型電子
機器や、また、メモリにメロデイの音階データ、
音長データの相方を予め、記憶させておくと共に
これらのデータを順次自動的に読出してメロデイ
の演奏を行なう所謂オートプレイ機能をもつた小
型電子機器が開発されている。 In recent years, so-called musical tones are generated by storing only the scale data of a melody in a memory in advance, reading the scale data sequentially from the memory each time a specific key is pressed, and adding tone length data to each read scale data. A small electronic device with a one-key play function, and melody scale data in memory,
Small-sized electronic devices have been developed that have a so-called autoplay function in which the companions of tone length data are stored in advance and these data are automatically sequentially read out to perform a melody.
ところで、上述のオートプレイ機能をもつた小
型電子機器においてメモリに音階データ、音長デ
ータを入力する方法としては、第1に音階キーを
実際に演奏して音階データ、音長データを入力す
るものと、また第2に音階キーと音符キーとを交
互に操作して音階データと音長データとを入力す
るものが夫々提案されている。然るに第1の入力
方法では、メロデイを実際に演奏しなければなら
ず、素人では入力方法が困難である欠点がある。
他方、第2の方法では、音符キーを設ける必要が
あり、機器の形状を大型化してしまう欠点があ
る。 By the way, as a method for inputting scale data and note length data into the memory in the above-mentioned small electronic device with the auto-play function, the first method is to input the scale data and note length data by actually playing the scale keys. Second, there have been proposed systems in which scale data and note length data are input by alternately operating scale keys and note keys. However, the first input method has the disadvantage that it is difficult for amateurs to input the melody because it requires actually playing the melody.
On the other hand, the second method requires the provision of musical note keys, which has the disadvantage of increasing the size of the device.
そこで、音階キーを操作して予め1曲分の音階
データを記憶手段に記憶させておき、読出しキー
によりこの音階データを読出すと共に、この読出
しキーの操作時間を音長データとして再び上記記
憶手段に記憶させるようにした技術が提案された
(特開昭55―83094号公報参照)。この技術によれ
ば、音階データ及び音長データを容易に入力する
ことができるが、記憶手段には上述した二つの入
力方法と同様に音階データ及び音長データが各音
符毎に記憶される為、オートプレイ用のメモリの
記憶容量を多く必要とする不都合がある。 Therefore, the scale data for one song is stored in advance in the storage means by operating the scale keys, and this scale data is read out by the readout key, and the operation time of the readout key is used again as note length data in the storage means. A technology has been proposed in which the information is stored in the memory (see Japanese Patent Application Laid-open No. 83094/1983). According to this technique, scale data and note length data can be input easily, but the scale data and note length data are stored for each note in the storage means, similar to the above two input methods. , there is an inconvenience that a large storage capacity of the memory for auto play is required.
この発明は、上述した事情に鑑みて成されたも
ので、その目的とするところは、オートプレイ用
のメモリに記憶されるデータの圧縮が計れ、メモ
リの使用効率を向上させることのできるメロデイ
メモリ機能付小型電子機器を提供することにあ
る。 This invention was made in view of the above-mentioned circumstances, and its purpose is to provide a melody memory that can compress data stored in an autoplay memory and improve memory usage efficiency. Our goal is to provide small electronic devices with functions.
以下、図面を参照してこの発明を楽音発生機能
を有する小型電子式計算機に適用した一実施例を
説明する。第1図において、小型電子式計算機の
ケース1上には、各種キーを備えたキー入力部
2、表示部3、放音部4が夫々設けられ、また、
ケース1内には、第2図に示す各回路を構成する
LSI部品、電池等が設けられている。キー入力部
2には、計算用のキーとメロデイ演奏用のキーと
が夫々設けられている。即ち、操作部2A上のテ
ンキー□0〜□9、フアンクシヨンキー+/−、・□、
…、また操作部2B上のフアンクシヨンキー
AC、…は周知のように計算用のキーである。一
方、操作部2A上のキー+/−、…、=□の17個の
キーはこの実施例では、音階A3〜B5の音高指定
キー(音階キー)としてメロデイ演奏用にも利用
されている。また、操作部2B上のキーACは後
述するアドレスカウンタのクリアキーとして、ま
たキーC□は、後述する音符メモリへの音階デー
タ、音長データの訂正用として夫々、メロデイ演
奏用のキーに利用される。更に、キー 〓 ,%□は
リズムテンポをアツプまたはダウンさせるキーに
利用されている。またキーM−5aはキーACと
共に、操作してオートプレイのスタート指令を出
力するために使用される。更に、キーM+5b
は、ワンキープレイキーとして使用されるが、図
中、参照番号5cのキーもキーM+と全く同一の
機能をもつたワンキープレイキーとして使用され
る。ここで、ワンキープレイとは上記音符メモリ
に書込まれているメロデイの一連の音階データを
キーM+5b、またはワンキープレイキー5cの
各操作毎に1ずつ順次読出して演奏を行なう機能
を意味している。更に、図中6,7,8,9は
夫々、ボリユームスイツチ、オクターブシフトス
イツチ、音色指定スイツチ、モード切替スイツチ
である。モード切替スイツチは、切替位置PL、
REC、CAL、OFFを有し、夫々演奏モード、記
録モード、計算モード、電源オフモード指定を行
なうものである。なお、上記音色指定スイツチ8
のFの位置では、ADSRの各々の時間設定及びワ
ンキープレイ、自動演奏時の音色の指定ができ
る。 Hereinafter, an embodiment in which the present invention is applied to a small electronic calculator having a musical tone generating function will be described with reference to the drawings. In FIG. 1, a key input section 2 with various keys, a display section 3, and a sound emitting section 4 are provided on a case 1 of a small electronic calculator, and
Inside case 1, each circuit shown in Fig. 2 is configured.
LSI parts, batteries, etc. are provided. The key input unit 2 is provided with a calculation key and a melody performance key, respectively. That is, numeric keys □0 to □9, function keys +/-, ・□, on the operation unit 2A.
..., and the function key on the operation panel 2B.
As is well known, AC,... is a key for calculation. On the other hand, in this embodiment, the 17 keys +/-, ..., =□ on the operation unit 2A are also used for melody performance as pitch designation keys (scale keys) for scales A 3 to B 5. ing. In addition, the key AC on the operation unit 2B is used as a clear key for the address counter, which will be described later, and the key C□ is used as a melody performance key for correcting scale data and note length data in the note memory, which will be described later. be done. Furthermore, the keys 〓 and %□ are used to raise or lower the rhythm tempo. Further, the key M-5a is used together with the key AC to output an auto-play start command. Furthermore, key M+5b
is used as a one-key play key, but the key with reference number 5c in the figure is also used as a one-key play key having exactly the same function as key M+. Here, one-key play refers to a function that sequentially reads out a series of scale data of the melody written in the note memory one by one for each operation of key M+5b or one-key play key 5c, and performs the performance. . Furthermore, reference numerals 6, 7, 8, and 9 in the figure are a volume switch, an octave shift switch, a tone designation switch, and a mode changeover switch, respectively. The mode changeover switch is at the changeover position PL,
It has REC, CAL, and OFF, and specifies performance mode, recording mode, calculation mode, and power off mode, respectively. In addition, the above tone designation switch 8
In the F position, you can set each ADSR time and specify the tone for one-key play and automatic play.
上述した17個の音高指定キーのうち、キー
+/−は半音キー、キー・□、0□は第3オクターブ
の音高A,B,キー1□〜7□は第4オクターブの音
高C〜B、キー8□、…=□は第5オクターブの音高
C〜Bの指定キーである。そして半音階のキー操
作例えば音高A3#の場合、キー+/−、・□の順
に2個のキーを操作するようになつている。ま
た、上記キー+/−〜=□のキー配列が、上述した
音階A3〜B5に対応していることを示すために、
操作部2A上には、図示するように、鍵盤楽器に
おける鍵配列の模様が印刷されている。更に、音
高C〜Bを数字1〜7に対応させると共に、第3
オクターブ、第5オクターブでは上記数字の右下
または右上に夫々、バー(−)を付して夫々が第
3オクターブ、または第5オクターブに対応して
いることが示され、また、第4オクターブには、
バーの表示がなされず、第4オクターブであるこ
とが示されている。 Of the 17 pitch specification keys mentioned above, keys +/- are semitone keys, keys □ and 0□ are pitches A and B of the 3rd octave, and keys 1□ to 7□ are pitches of the 4th octave. C~B, keys 8□, . . . =□ are keys specifying pitches C~B of the fifth octave. In the case of chromatic key operation, for example, pitch A 3 #, two keys are operated in the order of keys +/- and □. Also, in order to show that the key arrangement of the above keys +/- ~ = □ corresponds to the above-mentioned scale A 3 to B 5 ,
As shown in the figure, a pattern of the key arrangement of a keyboard instrument is printed on the operation section 2A. Furthermore, pitches C to B are made to correspond to numbers 1 to 7, and the third
For the octave and the 5th octave, a bar (-) is added to the lower right or upper right of the above numbers to indicate that they correspond to the 3rd or 5th octave, respectively. teeth,
No bar is displayed, indicating that it is the fourth octave.
次に、第2図を参照して回路構成を説明する。
キー入力部2上のモード切替スイツチ9の出力は
信号MDとして、また、他の各種キーの出力は、
信号KDとして夫々制御部11に与えられる。な
お、第2図のキー入力部2上には、上述したワン
キープレイ用のキーM+5b、1キープレイキー
5cを共に、キー1keyにより図示し、またその
出力を信号1keyにより表示している。またキー
AC,M−によつて構成されるオートプレイのス
タート指令キーをAUTOにより示し、またその
出力(スタート指令)を信号AUTOにより表示
している。更にキーC□の出力を信号Cにより表示
し、而して上記信号1key、AUTO、Cは共に制
御部11に入力されている。なお、キー入力部2
はモード切替スイツチ9を切替位置OFFから他
の切替位置に切替えて電源をオンしたとき、リセ
ツト信号RSTが出力され、各回路が初期設定さ
れる。 Next, the circuit configuration will be explained with reference to FIG.
The output of the mode changeover switch 9 on the key input section 2 is the signal MD, and the output of other various keys is
Each signal is given to the control unit 11 as a signal KD. Incidentally, on the key input unit 2 in FIG. 2, the one-key play key M+5b and the one-key play key 5c mentioned above are both shown as a key 1key, and their output is indicated as a signal 1key. Also the key
The autoplay start command key composed of AC and M- is indicated by AUTO, and its output (start command) is indicated by the signal AUTO. Further, the output of the key C□ is displayed by the signal C, and the signals 1key, AUTO, and C are all input to the control section 11. In addition, key input section 2
When the mode selection switch 9 is switched from the switching position OFF to another switching position and the power is turned on, a reset signal RST is output and each circuit is initialized.
制御部11は、この小型電子式計算機の各種モ
ードにおける動作を制御するマイクロプログラム
を記憶し、而して上記信号MDを入力して設定さ
れたモードを判別し、判別モードに対する各種マ
イクロ命令を出力するとともに、信号KD、1key
等を入力すると、操作キーの種類を判別して対応
するマイクロ命令を出力する。 The control unit 11 stores microprograms that control the operation of the small electronic calculator in various modes, inputs the signal MD, determines the set mode, and outputs various microinstructions for the determined mode. With signal KD, 1key
etc., the type of operation key is determined and the corresponding microinstruction is output.
演算記憶部12は、演算回路、RAM(ランダ
ムアクセスメモリ)から成り、バスラインB1を
介し数値データを、またバスラインB2を介し命
令データを夫々制御部11から所定のマイクロ命
令として与えられることにより、四則演算、論理
演算、判断演算等、各種演算を実行する。そして
その演演算結果データは、内部のRAM等に格納
し、あるいは他の回路に与え、また表示すべきデ
ータは表示部3に与えて表示させる。 The arithmetic storage section 12 consists of an arithmetic circuit and a RAM (random access memory), and receives numerical data via the bus line B1 and instruction data via the bus line B2 from the control section 11 as predetermined microinstructions. , performs various operations such as four arithmetic operations, logical operations, and judgment operations. The operation result data is stored in an internal RAM or the like or provided to other circuits, and the data to be displayed is provided to the display section 3 for display.
音符メモリ13は、RAMから成り、メロデイ
1曲分の一連の音階データ、音長データおよび後
述するフラグデータを夫々記憶する回路である。
而して音符メモリ13は、アドレスカウンタ14
が出力するアドレスデータによつて上記各データ
を記憶するエリアがアドレス指定され、また制御
部11から出力される読出し/書込み制御信号
R/Wによつて、上記各データの読出し動作、書
込み動作が夫々制御される。即ち、音符メモリ1
3に上記各データを書込む場合には、モード切替
スイツチ9が切替位置RECに切替えられ、記憶
モードが設定される。次いでキーMCが操作さ
れ、制御部11から出力される信号R1によつて
音符メモリ13がクリアされ、且つ信号R2によ
つてアドレスカウンタ14がリセツトされる。次
いでメロデイにしたがつて、音高A3〜B5の音高
指定キーを順次キー操作する。このとき、音高指
定キーのキー操作毎に制御部11から、アドレス
カウンタ14に対して+1信号が出力され、アド
レスデータが更新されるとともに、操作された音
高指定キーに対する音階データが制御部11から
順次出力されてバツフア15に与えられ、また、
これと同時にバツフア15には、比較回路16、
音長カウンタ17によつて夫々作成されたフラグ
データ、音長データが順次与えられ、この結果、
上記音階データ、フラグデータ、音長データが共
にバツフア15を介し音符メモリ13に順次書込
まれる構成となつている。この書込み動作は、ワ
ンキープレイ用の正確な音階データを得る場合の
ものであるが、この発明の場合、オートプレイ用
の正確なフラグデータおよび音長データを得るた
めには、上述した書込み動作に続いて、更にキー
ACを操作してアドレスカウンタ14をリセツト
したのち、ワンキープレイ用のキーM+5bまた
は1キープレイキー5cを、後述するリズム発生
部によるリズムに合わせて操作するようになつて
いる。而してこの場合、キーM+5bまたは1キ
ープレイ5の操作毎にアドレスカウンタ14に対
し+1信号が制御部11から出力されてアドレス
データが更新されるとともに、比較回路16、音
長カウンタ17によつて、正確なフラグデータ、
音長データが夫々作成され、バツフア15を介し
音符メモリ13に順次書込まれる。なお、音符メ
モリ13に、前回の書込み動作で書込まれた音階
データが、音符メモリ13から、このとき、順次
読出されてバツフア15を介し、音符メモリ13
の当該エリアに再び書込まれると同時に、後述す
るコード変換部を介し、楽音発生部にも与えるの
で、上述したオートプレイ用のデータ作成は、ワ
ンキープレイによるメロデイ演奏を行ないなが
ら、実行される構成となつている。一方、音符メ
モリ13に上述の方法にて書込まれたワンキープ
レイ用の各データ、またはオートプレイ用の各デ
ータを音符メモリ13から読出してメロデイ演奏
を行なう場合には、先ず、モード切替スイツチ9
を切替位置PLに切替えて演奏モードを設定し、
次に、ワンキープレイのリズム演奏の場合には、
キーACを先ず、操作してアドレスカウンタ14
をリセツトし、次いで上記キーM+5bまたは1
キープレイ5cを操作し、音階データを1ずつ音
符メモリ13から読出す。一方、オートプレイの
リズム演奏では、キーAC,M−を連続操作すれ
ば、アドレスカウンタ14がリセツトされたの
ち、自動的に順次+1されてゆき、音符メモリ1
3から1組の音階データ、フラグデータ、音長デ
ータが共に1ずつ読出されるものである。なお、
オートプレイの書込み動作の場合、メロデイの各
音符に対する全てのデータの書込みが終了したあ
とに、キーAC、M+5b、1キープレイキー5
cの何れかを操作して区切りコードを書込むよう
になつている。これはこの発明の場合、音符メモ
リ13に1曲分書込まれているメロデイをテンキ
ー、キーC□M−の連続操作によつて指定した回数
分、自動的に繰返し演奏できるようにするためで
ある。 The note memory 13 consists of a RAM, and is a circuit that stores a series of scale data, note length data, and flag data for one melody piece, respectively.
Therefore, the note memory 13 has an address counter 14.
The address data output by the controller specifies the address of the area for storing each of the above data, and the read/write control signal R/W output from the control unit 11 controls the read and write operations of each of the data. controlled respectively. That is, note memory 1
3, the mode changeover switch 9 is switched to the changeover position REC, and the storage mode is set. Next, the key MC is operated, the note memory 13 is cleared by the signal R1 outputted from the control section 11 , and the address counter 14 is reset by the signal R2. Next, according to the melody, pitch designation keys A3 to B5 are operated in sequence. At this time, a +1 signal is output from the control unit 11 to the address counter 14 for each key operation of the pitch designation key, the address data is updated, and the scale data for the operated pitch designation key is transferred to the control unit 11. 11 and are sequentially outputted to the buffer 15, and
At the same time, the buffer 15 includes a comparison circuit 16,
The flag data and tone length data respectively created by the tone length counter 17 are sequentially given, and as a result,
The scale data, flag data, and note length data are sequentially written into the note memory 13 via a buffer 15. This writing operation is for obtaining accurate scale data for one-key play, but in the case of this invention, in order to obtain accurate flag data and note length data for autoplay, the above-mentioned writing operation is necessary. Then, press another key
After operating the AC to reset the address counter 14, the one-key play key M+5b or the one-key play key 5c is operated in accordance with the rhythm generated by the rhythm generating section, which will be described later. In this case, each time the key M+5b or 1 key play 5 is operated, a +1 signal is output from the control unit 11 to the address counter 14 to update the address data, and the comparison circuit 16 and tone length counter 17 output a +1 signal to the address counter 14. Therefore, accurate flag data,
Each tone length data is created and sequentially written into the note memory 13 via a buffer 15. Note that the scale data written in the previous writing operation to the note memory 13 is read out sequentially from the note memory 13 at this time and is transferred to the note memory 13 via the buffer 15.
At the same time, it is written to the relevant area again and is also given to the musical sound generation section via the code conversion section, which will be described later. Therefore, the above-mentioned auto play data creation is executed while the melody is played by one-key play. It is becoming. On the other hand, in order to perform a melody by reading out the data for one-key play or the data for auto-play written in the note memory 13 in the above-described manner from the note memory 13, first switch the mode selector switch 9.
Switch to the switching position PL to set the performance mode,
Next, in the case of one-key play rhythm performance,
First, operate the key AC to enter the address counter 14.
, then press the above key M+5b or 1.
Operate the key play 5c to read scale data one by one from the note memory 13. On the other hand, in auto play rhythm performance, if keys AC and M- are operated continuously, the address counter 14 is reset and then automatically incremented by 1, and the note memory 1
A set of scale data, flag data, and note length data are read out one by one. In addition,
In the case of auto play writing operation, after all data has been written for each note of the melody, press key AC, M+5b, 1 key play key 5.
The delimiter code is written by manipulating either c. In the case of this invention, this is so that the melody written in the note memory 13 for one song can be automatically played repeatedly for a specified number of times by continuous operation of the numeric keypad and keys C□M-. be.
次に、音階データ、フラグデータ、音長データ
について説明する。音階データは上述の如く記録
モードまたは演奏モードにおいて音高A3〜B5ま
での音高指定キーを夫々キー操作するとき、制御
部11から出力される信号であり、而して音高
A3〜B5は夫々、音階データ1〜27に対応づけら
れている。フラグデータは上記音高指定キーのオ
ン時間とオフ時間(なお、このオフ時間は、操作
中の音高指定キーがオフされたのち、次の音高指
定キーがオンされるまでの時間を指す)が後述の
比較回路16にて比較され、その結果、
オン時間≦オフ時間:フラグデータ“0”
オン時間>オフ時間:フラグデータ“1”
として一義的に規定されるデータである。更にま
た音長データは、上記音高指定キーまたはキー
M+5b、1キープレイキー5cの各ワンキープ
レイキーのキー操作時間を後述する音長カウンタ
17によつて、計時して得られるデータである。 Next, scale data, flag data, and tone length data will be explained. The scale data is a signal output from the control unit 11 when each of the pitch designation keys from pitch A 3 to pitch B 5 is operated in the recording mode or the performance mode as described above.
A 3 to B 5 are associated with scale data 1 to 27, respectively. The flag data is the on time and off time of the above pitch specification key (note that this off time refers to the time from when the pitch specification key being operated is turned off until the next pitch specification key is turned on) ) are compared in a comparison circuit 16, which will be described later, and as a result, the data is uniquely defined as: ON time≦OFF time: flag data “0” ON time>OFF time: flag data “1”. Furthermore, the tone length data is obtained by measuring the key operation time of each one-key play key such as the pitch designation key or key M+5b and the one-key play key 5c by a tone length counter 17, which will be described later.
上記バツフア15は、制御部11から読込み信
号RDが出力されると、上記音階データ、フラグ
データ、音長データを読込み、一時記憶する。而
してこのバツフア15は、4桁(1桁は4ビツ
ト)分の容量をもち、またそのエリア15A(8
ビツト)、15B(1ビツト)、15C(7ビツト)
には夫々、上記音階データ、フラグデータ、音長
データが記憶される構成となつている。 When the read signal RD is output from the control unit 11, the buffer 15 reads the scale data, flag data, and note length data and temporarily stores them. This buffer 15 has a capacity for 4 digits (one digit is 4 bits), and its area 15A (8
bit), 15B (1 bit), 15C (7 bit)
The above-mentioned scale data, flag data, and note length data are respectively stored in the .
次に、上記フラグデータ、音長データの作成回
路を説明する。上記音高指定キーおよびワンキー
プレイキー(キーM+5b、1キープレイキー5
c)の各キー操作時にキー入力部2から出力され
る信号KD、1keyが共に、オアゲート18を介
し、音長カウンタ17、ADSバツフア19に与
えられている。音長カウンタ17は、図示しない
タイミング信号作成回路から出力される所定周波
数信号を計数するカウンタであり、オアゲート1
8の出力が“0”から“1”へ反転する都度、リ
セツトされて計数動作を再開する。音長カウンタ
17の計数値データは、音長データとしてバツフ
ア15のエリア15cに与えられるほか、比較回
路16の入力端子Bに与えられ、さらに、オアゲ
ート18の出力が“1”から“0”に反転した時
にADSバツフア19へ送られる。一方、比較回
路16の入力端子Aには、ADSバツフア19に
読込まれた上記計数値データが与えられている。
この結果、比較回路16は音高指定キーまたは、
ワンキープレイキーのオン時間(入力端子Aへの
入力データ)とオフ時間(入力端子Bへの入力デ
ータ)との大小関係を比較する動作を実行し、オ
ン時間≦オフ時間のときには、“0”の、また、
オン時間>オフ時間のときには“1”の比較結果
信号を出力し、上記フラグデータとしてバツフア
15のエリア15Bに与えるものである。 Next, a circuit for creating the flag data and note length data will be explained. The above pitch specification keys and one-key play keys (key M+5b, one-key play key 5)
The signals KD and 1key outputted from the key input section 2 at the time of each key operation in c) are both applied to the note length counter 17 and the ADS buffer 19 via the OR gate 18. The tone length counter 17 is a counter that counts a predetermined frequency signal output from a timing signal generation circuit (not shown), and
Each time the output of 8 is inverted from "0" to "1", it is reset and the counting operation is restarted. The counted value data of the note length counter 17 is given to the area 15c of the buffer 15 as note length data, and is also given to the input terminal B of the comparator circuit 16, and furthermore, the output of the OR gate 18 changes from "1" to "0". When reversed, it is sent to ADS buffer 19. On the other hand, the input terminal A of the comparator circuit 16 is given the count value data read into the ADS buffer 19.
As a result, the comparison circuit 16 selects the pitch designation key or
Executes an operation that compares the magnitude relationship between the on time (input data to input terminal A) and the off time (input data to input terminal B) of the one-key play key, and when on time ≦ off time, “0” of, also,
When on time>off time, a comparison result signal of "1" is output, and is given to area 15B of buffer 15 as the flag data.
ゲート回路20は、オートプレイ時に制御部1
1から出力されるゲート制御信号gによつて開成
されるゲートである。そしてオートプレイ時にお
いては、音符メモリ13から順次読出されるフラ
グデータおよび音長データが上記ゲート回路20
を介し、音長分割部21に与えられる。而して音
長分割部21は、入力したフラグデータが“0”
のときには、入力した音長データを1対1に分割
して共に内容の等しい信号E1,信号E2を出力
する一方、入力したフラグデータが“1”のとき
には、入力した音長データを3対1に分割して割
当てた信号E1、信号E2を夫々出力する。そし
て信号E1,E2は共に、エンベロープ制御部2
2に与えられている。 The gate circuit 20 controls the control unit 1 during auto play.
This gate is opened by the gate control signal g output from 1. During auto play, the flag data and note length data sequentially read out from the note memory 13 are sent to the gate circuit 20.
The signal is applied to the tone length division section 21 via the tone length division section 21. Therefore, the tone length dividing unit 21 determines that the input flag data is “0”.
When , the input tone length data is divided 1:1 and signals E1 and E2 having the same content are outputted, while when the input flag data is "1", the input tone length data is divided 3:1. A signal E1 and a signal E2 which are divided and assigned are output respectively. Both signals E1 and E2 are sent to the envelope control section 2.
It is given to 2.
エンベロープ制御部22には、更に、ワンキー
プレイキーによる信号1keyが入力されている。
而してこのエンベロープ制御部22は、信号
1keyの入力状態(オン時間とオフ時間との比)
に応じて、或いはまたオートプレイ時に自動的に
順次入力されてくる信号E1,E2の内容に応じ
てエンベロープのアタツク、デイケイ、サステイ
ンの各部ADSとリリース部Rとの比が1対1ま
たは、3対1となるような2種類のエンベロープ
制御データを作成して楽音発生部23に与えると
共に、そのエンベロープ制御動作が終了すれば、
終了信号eを出力して制御部11に与え、次の楽
音のために、備えさせる各動作を実行する。 The envelope control unit 22 further receives a signal 1key from the one-key play key.
Therefore, this envelope control section 22 controls the signal
1key input status (ratio of on time to off time)
or depending on the contents of the signals E1 and E2 that are automatically input sequentially during auto play, the ratio of the attack, decay, and sustain parts ADS of the envelope to the release part R may be 1:1 or 3. Two types of envelope control data that are a pair are created and given to the musical tone generator 23, and when the envelope control operation is completed,
The end signal e is outputted and given to the control section 11, and each operation to be prepared for the next musical tone is executed.
コード変換部24は、音高指定キーを使用して
音符メモリ13に音階データを書込むときに、或
いは単にメロデイ演奏を行なうときに夫々、制御
部11から出力される音階データ(1〜27)、更
には、オートプレイ時に音符メモリ13から順次
読出されてくる音階データ(1〜27)を夫々入力
し、この音階データ1〜27を該音階データ1〜27
と所定の関係にある楽音コード信号に変換し、楽
音発生部23に与える。この楽音発生部23には
上記タイミング信号発生部から各オクターブに関
連する周波数信号が更に入力されており、楽音発
生部23は、上記周波数信号を基に、コード変換
部24からの楽音コード信号に応じた音高で、且
つエンベロープ制御データによるエンベロープを
付与したアナログの楽音信号を作成出力し、アン
プ25へ与えるものである。 The code conversion unit 24 converts scale data (1 to 27) output from the control unit 11 when writing scale data into the note memory 13 using the pitch designation key or when simply performing a melody performance. , Furthermore, the scale data (1 to 27) sequentially read out from the note memory 13 during auto play are input, and the scale data 1 to 27 are used as the scale data 1 to 27.
It is converted into a musical tone code signal having a predetermined relationship with , and is provided to the musical tone generating section 23 . A frequency signal related to each octave is further inputted to the musical tone generating section 23 from the timing signal generating section, and the musical tone generating section 23 converts the musical tone code signal from the code converting section 24 based on the frequency signal. An analog musical tone signal with a corresponding pitch and an envelope based on the envelope control data is generated and outputted, and is supplied to the amplifier 25.
一方、コード変換部26は、制御部11から
の、または、音符メモリ13からの音階データ1
〜27を対応する表示用データに変換し、表示部3
に表示させる回路である。この場合、上述したよ
うに、各音階は数値1〜7に対応づけられてお
り、このため、表示部3上には音階が数値や半音
階を示すマーク「#」、オクターブを示すバーに
より表示される。 On the other hand, the code converter 26 receives the scale data 1 from the controller 11 or from the note memory 13.
Convert ~27 into the corresponding display data and display it on the display section 3.
This is the circuit that is displayed. In this case, as mentioned above, each scale is associated with a numerical value 1 to 7, and therefore, the scale is displayed on the display unit 3 by a mark "#" indicating a numerical value or a chromatic scale, and a bar indicating an octave. be done.
区切り検出部27は、オートプレイ時において
音符メモリ13から最後に読出される区切りコー
ドを検出する回路である。そしてその検出信号
EMは、オートプレイ繰返し制御部28に与えら
れている。このオートプレイ繰返し制御部28
は、上記オートプレイ時におけるメロデイの繰返
し演奏を制御する回路であり、上述した信号
AUTO、C、RST、EM、更にキー入力部2に
て設定された演奏回数を表わす数値データが夫々
入力されている。而して信号AUTOの入力時に
メロデイスタート信号STを発生して、制御部1
1に与え、1回目の演奏をスタートさせる。次い
でメロデイの演奏終了前毎に区切り検出部27に
て検出される検出信号EMを入力して計数してゆ
き、また、その計数値が設定された演奏回数に一
致するか否かの検出動作を実行する。そして一致
が検出されるまでの間、演奏の繰返し信号RPを
出力しつづけて制御部11に与え、また一致が検
出されると繰返し信号RPの出力を停止し、繰返
し演奏を終了させる一連の動作を実行するもので
ある。 The delimiter detection section 27 is a circuit that detects the delimiter code read last from the note memory 13 during autoplay. and its detection signal
EM is given to the autoplay repeat control section 28. This auto play repetition control section 28
is a circuit that controls the repeated playing of the melody during the above autoplay, and the above-mentioned signal
AUTO, C, RST, EM, and numerical data representing the number of performances set at the key input section 2 are input respectively. Then, when the signal AUTO is input, the melody start signal ST is generated and the control unit 1
1 and start the first performance. Next, each time before the end of the melody performance, the detection signal EM detected by the break detection section 27 is input and counted, and a detection operation is performed to determine whether the counted value matches the set number of performances. Execute. A series of operations in which the performance repetition signal RP is continuously outputted and given to the control unit 11 until a match is detected, and when a match is detected, the output of the repetition signal RP is stopped to end the repeat performance. It is intended to carry out the following.
リズムパターン記憶部29はマーチ、ワルツ
等、各種リズムのリズムパターンデータを記憶す
るROM(リードオンリメモリ)により構成され
ている。そしてキー入力部2上のリズム指定キー
の操作によりリズムの種類が指定され、リズムス
タートが指令されると、制御部11から指定リズ
ムに対するROMのアドレスを示すデータが出力
され、バスラインB3を介し、リズムパターン記
憶部29へ与えられる。これにより、リズムパタ
ーン記憶部29から指定リズムのリズムパターン
データが読出されるようになり、また、読出され
たリズムパターンデータは、リズム発生部30に
与えられる。而してリズム発生部30は、入力し
たリズムパターンデータにより、そのリズムを発
生し、アナログのリズム信号を出力し、アンプ2
5へ与える。アンプ25は、楽音信号、リズム信
号を共に増幅してスピーカ31に与え、放音部4
から放音させる。 The rhythm pattern storage section 29 is composed of a ROM (read only memory) that stores rhythm pattern data of various rhythms such as march and waltz. When the type of rhythm is designated by operating the rhythm designation key on the key input section 2 and a rhythm start is commanded, the control section 11 outputs data indicating the ROM address for the designated rhythm, and the bus line B 3 is output. The data is provided to the rhythm pattern storage section 29 via the rhythm pattern storage section 29. As a result, the rhythm pattern data of the designated rhythm is read from the rhythm pattern storage section 29, and the read rhythm pattern data is provided to the rhythm generation section 30. The rhythm generator 30 generates a rhythm based on the input rhythm pattern data, outputs an analog rhythm signal, and outputs an analog rhythm signal to the amplifier 2.
Give to 5. The amplifier 25 amplifies both the musical tone signal and the rhythm signal and supplies the amplified signals to the speaker 31.
emit a sound from
次に、上記実施例の動作を説明する。先ず、音
符メモリ13にワンキープレイ用のメロデイをプ
リセツトし、次いで、ワンキープレイの演奏を行
なうときの動作を説明する。この場合、先ずモー
ド切替スイツチ9を切替位置OFFからRECに切
替えて電源をオンして、記録モードを設定する。
このときモード切替スイツチ9の出力信号MDが
制御部11に与えられることにより、リセツト信
号RSTが出力されて各回路がリセツトされ、初
期状態が設定されると共に、以後、記録モードに
対する制御動作が制御部11により実行される。
また、音符メモリ13に対し、書込み指令を与え
る読出し/書込み制御信号R/Wが出力されてい
る。 Next, the operation of the above embodiment will be explained. First, a melody for a one-key play is preset in the note memory 13, and then the operation for performing a one-key play will be explained. In this case, first, the mode changeover switch 9 is switched from the switching position OFF to REC, the power is turned on, and the recording mode is set.
At this time, the output signal MD of the mode changeover switch 9 is given to the control section 11, so that the reset signal RST is outputted, each circuit is reset, the initial state is set, and the control operation for the recording mode is thereafter controlled. This is executed by the unit 11.
Further, a read/write control signal R/W is outputted to the note memory 13 to give a write command.
次に音高指定キーを操作し、音符メモリ13に
対しメロデイの各音符に対する音階データを順次
書込むキー操作を開始する。この場合、先ず、キ
ーMCを操作する。このとき、キー入力部2から
信号KDが出力されて制御部11に与えられ、而
して制御部11は信号KDから操作キーの種類を
判別し、音符メモリ13、アドレスカウンタ14
に対し、夫々信号R1,R2を出力する。このため、
音符メモリ13がクリアされると共に、アドレス
カウンタ14がリセツトされる。次にメロデイの
第1音符の音高が例えばA3であつたとすると、
キー・□をオンし、音高を指定する。すると、この
キー・□のオン操作中、信号KDが制御部11、オ
アゲート18に夫々与えられる。制御部11はこ
れに応じ、音高A3に対する音階データ1を出力
し、バスラインB1を介し、バツフア15のエリ
ア15Aに与える。方、オアゲート18の出力
は、上記キー・□のオン操作中“1”となり、
ADSバツフア19、音長カウンタ17に夫々与
えられている。このため、音長カウンタ17は、
キー・□のオン操作中、所定周波数信号の計数動作
を実行する。そしてキー・□がオフされると、オア
ゲート18の出力は“0”となり、この時点での
音長カウンタ17の計数値データ(オン時間)が
ADSバツフア19に記憶されると共に、音長カ
ウンタ17は次のキーが押されるまでそのまま計
数動作を続ける。第2音符の音高が例えばB3で
あるとすると、次に音高B3に対するキー0□がオ
ン操作されるまでの間、音長カウンタ17はキー
・□の音長を計時している。そして音高B3のキー
0□がオンされると、再び信号KDが出力され、オ
アゲート18の出力が再び“1”となつて、
ADSバツフア19、音長カウンタ17に与えら
れる。而してキー0□のオン時において、比較回路
16の入力端子A,Bには夫々、第1音符のキー
・□のオン時間に対する計数値データ、及びキー・□
に対する全音長時間を表わす計数値データが入力
されており、したがつて、比較回路16は、両者
を比較してオン時間≦オフ時間であれば“0”
の、オン時間>オフ時間であれば“1”の比較結
果信号を出力し、バツフア15のエリア15Bに
与える。また、キー0□のオン時にエリア15Cに
はキー・□に対する全計数値データが入力されてお
り、上記オン時に制御部11から信号RDが出力
されることにより、キー0□のオン時にバツフア1
5のエリア15A,15B,15Cには夫々、第
1音符の音高A3に対する音階データ1、フラグ
データ(“0”か“1”)、音長データが読込まれ、
次いで音符メモリ13の0番地に書込まれる。更
にこののち、アドレスカウンタ14に対し、制御
部11から+1信号が出力され、次回から1番地
がアドレスされるようになる。更に上記キー0□の
オン時に音長カウンタ17がリセツトされてキー
0□に対する計時動作を開始するようになる。 Next, the pitch designation key is operated to start key operations for sequentially writing scale data for each note of the melody into the note memory 13. In this case, first operate the key MC. At this time, a signal KD is outputted from the key input section 2 and given to the control section 11, and the control section 11 determines the type of operation key from the signal KD and inputs the note memory 13, address counter 14, etc.
The signals R 1 and R 2 are output respectively for the signals R 1 and R 2 . For this reason,
The note memory 13 is cleared and the address counter 14 is reset. Next, if the pitch of the first note of the melody is, for example, A 3 , then
Turn on the key □ and specify the pitch. Then, during the ON operation of this key □, a signal KD is given to the control section 11 and the OR gate 18, respectively. In response, the control section 11 outputs scale data 1 for pitch A3 , and provides it to area 15A of buffer 15 via bus line B1. On the other hand, the output of the OR gate 18 becomes "1" while the above key □ is turned on,
The signal is given to the ADS buffer 19 and note length counter 17, respectively. Therefore, the tone length counter 17 is
While the key □ is turned on, a counting operation of a predetermined frequency signal is executed. Then, when the key □ is turned off, the output of the OR gate 18 becomes "0", and the count value data (on time) of the tone length counter 17 at this point is
The number is stored in the ADS buffer 19, and the tone length counter 17 continues counting until the next key is pressed. For example, if the pitch of the second note is B 3 , the note length counter 17 measures the duration of the key □ until the key 0 □ for pitch B 3 is turned on next time. . Then, when key 0□ of pitch B3 is turned on, signal KD is output again, and the output of OR gate 18 becomes "1" again.
The signal is applied to the ADS buffer 19 and note length counter 17. Therefore, when the key 0□ is on, the input terminals A and B of the comparison circuit 16 receive count value data for the on time of the key □ of the first note, and key □.
Therefore, the comparator circuit 16 compares the two and returns "0" if on time ≦ off time.
If on time>off time, a comparison result signal of "1" is output and applied to area 15B of buffer 15. Furthermore, when the key 0□ is turned on, all the count value data for the key □ is input to the area 15C, and when the above-mentioned turn on, the signal RD is output from the control unit 11, so that when the key 0□ is turned on, the buffer 1
5 areas 15A, 15B, and 15C are read with scale data 1, flag data (“0” or “1”), and tone length data for pitch A 3 of the first note, respectively.
Next, it is written to address 0 of the note memory 13. Furthermore, after this, a +1 signal is output from the control section 11 to the address counter 14, so that address 1 will be addressed from the next time onwards. Furthermore, when the key 0□ is turned on, the note length counter 17 is reset and starts counting the time for the key 0□.
第2音符のキー0□以後の各キーに対する音階デ
ータの音符メモリ13に対する書込み動作は、上
述した第1音符のキー・□のオン操作、オフ操作、
次いで次のキーのオン操作時における上述した各
動作によつて実行されたことと同様であり、第2
音符のキーの場合、第3音符のキーがオンされた
とき、第2音符の音階データがフラグデータ、音
長データと共に、音符メモリ13の1番地に書込
まれ、次いで第3音符のキーでは、第4音符のオ
ン時に第3音符の音階データ等が音符メモリの2
番地に書込まれ、以下、同様である。また、各音
高指定キーのオン操作ごとに制御部11から出力
される音階データは夫々、コード変換部24,2
6にも与えられるので、コード変換部24では、
入力した音階データを対応する楽音コード信号に
変換して楽音発生部23に与え、これにより操作
キーの音高をもつた楽音がスピーカ31から放音
されて、音高を聴覚的に確認することができる。
またコード変換部26では入力した音階データを
対応する表示用データに変換して表示部3に与え
る動作が実行され、これにより操作キーの音高を
表わす表示が数字等によりなされ、目視により確
認できる。 The writing operation of the scale data for each key after the second note key 0□ to the note memory 13 includes the above-mentioned ON and OFF operations of the first note key □,
Then, the second
In the case of a note key, when the third note key is turned on, the scale data of the second note is written to address 1 of the note memory 13 along with flag data and note length data, and then the third note key is turned on. , when the fourth note is turned on, the scale data of the third note, etc. is stored in the note memory 2.
The address is written, and the same applies hereafter. In addition, the scale data output from the control unit 11 each time a pitch designation key is turned on is stored in the code conversion units 24 and 2, respectively.
6 is also given, so in the code conversion section 24,
Converting the input scale data into a corresponding musical tone code signal and providing it to the musical tone generating section 23, whereby a musical tone having the pitch of the operation key is emitted from the speaker 31, and the pitch is aurally confirmed. I can do it.
In addition, the code converting unit 26 converts the input scale data into corresponding display data and provides the same to the display unit 3. As a result, the pitches of the operation keys are displayed using numbers, etc., and can be confirmed visually. .
以上説明したことによつて、音符メモリ13に
対するワンキープレイ用のメロデイの音階データ
の書込み操作が完了する。第3図aは、この操作
を説明するものである。 With the above explanation, the writing operation of the scale data of the one-key play melody to the note memory 13 is completed. Figure 3a explains this operation.
次に、上述のようにして音符メモリ13に書込
まれた音階データを読出し、ワンキープレイによ
るメロデイ演奏を開始するに際し、先ず、モード
切替スイツチ9を切替位置RECからPLに切替え、
演奏モードを設定する。これにより、制御部11
は以後演奏モードに対する制御動作を開始する。 Next, when reading the scale data written in the note memory 13 as described above and starting a melody performance by one-key play, first switch the mode changeover switch 9 from the changeover position REC to PL,
Set the performance mode. As a result, the control section 11
Thereafter, the control operation for the performance mode is started.
次にキーACを操作する。このとき制御部11
から信号Rが出力されて、アドレスカウンタ14
がリセツトされ、音符メモリ13の先頭番地であ
る0番地がアドレスされる。次にワンキープレイ
キーであるキーM+5bまたは1キープレイキー
5c、或いは相方のキーを交互に操作してワンキ
ープレイによるメロデイ演奏を開始する。例えば
1キープレイキー5cを先ずオンすると、キー入
力部2から信号1key(“1”)が出力され、オアゲ
ート18、エンベロープ制御部22に与えられ
る。一方、音符メモリ13の0番地から第1音符
の音階データ1が読出されてコード変換部24に
与えられており、このため、楽音発生部23には
音階データ1に対応する楽音コード信号が入力さ
れている。また、エンベロープ制御部22では
“1”の信号1keyが入力されている間、エンベロ
ープのADS(アタツク、デイケイ、サステイン)
部を制御するエンベロープ制御データを作成し、
楽音発生部23に与える。したがつて、楽音発生
部23は1キープレイキー5cのオン操作中、音
階コード1に対する音高A3の楽音にエンベロー
プのADS部を付与した楽音信号を作成し、アン
プ25に与え、これに応じてスピーカ31から音
高A3の楽音が放音される。 Next, operate the key AC. At this time, the control section 11
A signal R is output from the address counter 14.
is reset, and address 0, which is the starting address of the note memory 13, is addressed. Next, the one-key play key M+5b or the one-key play key 5c, or the partner key is operated alternately to start a one-key play melody performance. For example, when the 1 key play key 5c is first turned on, a signal 1key (“1”) is output from the key input section 2 and is applied to the OR gate 18 and the envelope control section 22. On the other hand, the scale data 1 of the first note is read from address 0 of the note memory 13 and is given to the code converter 24. Therefore, the musical tone code signal corresponding to the scale data 1 is input to the musical tone generator 23. has been done. In addition, while the envelope control unit 22 is inputting the “1” signal 1key, the envelope ADS (Attack, Decay, Sustain)
Create envelope control data to control the
It is given to the musical sound generating section 23. Therefore, during the ON operation of the 1-key play key 5c, the musical tone generating section 23 creates a musical tone signal in which the ADS part of the envelope is added to the musical tone of pitch A3 for scale code 1, and supplies it to the amplifier 25. In response, a musical tone of pitch A3 is emitted from the speaker 31.
1キープレイキー5cがオフされると信号
1keyが“0”となる。このため、エンベロープ
制御部22はエンベロープのR(リリース)部を
制御するエンベロープ制御データを作成して楽音
発生部23に与え、これに応じて上記音高A3の
楽音が次第に消音するようになる。また、1キー
プレイキー5cのオフ操作時にアドレスカウンタ
14が+1されて1番地をアドレスするようにな
る。 1 When key play key 5c is turned off, signal
1key becomes “0”. For this reason, the envelope control section 22 creates envelope control data for controlling the R (release) part of the envelope and supplies it to the musical tone generating section 23, and in response to this, the musical tone of pitch A3 is gradually muted. . Further, when the 1 key play key 5c is turned off, the address counter 14 is incremented by 1 and the address 1 is addressed.
次に、キーM+5bをオン操作したとすると、
再び“1”の信号1keyが出力され、エンベロー
プ制御部22に与えられる。このため、上記キー
M+5bのオン操作中、エンベロープ制御部22
は、エンベロープのADS部を制御するエンベロ
ープ制御データを作成する。一方、コード変換部
24には、音符メモリ13から読出された第2音
符の音階データ3(音高B3)が与えられており、
これにより、音高B3の楽音が放音される。また、
キーM+5bがオフされると信号1keyが“0”
となり、音高B3の楽音が消音する。 Next, if you turn on key M+5b,
The signal 1key of “1” is outputted again and given to the envelope control section 22. Therefore, during the ON operation of the key M+5b, the envelope control section 22
creates envelope control data that controls the ADS part of the envelope. On the other hand, the code conversion unit 24 is given the scale data 3 (pitch B 3 ) of the second note read from the note memory 13,
As a result, a musical tone of pitch B3 is emitted. Also,
When key M+5b is turned off, signal 1key is “0”
As a result, the musical tone of pitch B3 is muted.
以下、上述同様にして、上記何れかのワンキー
プレイキーをオン操作する毎に、音符メモリ13
から音階データが1音ずつ読出され、またオフ操
作する毎に、アドレスカウンタ14が+1されて
次アドレスを指定する動作が夫々繰返され、ワン
キープレイによるメロデイ演奏が実行される。第
3図bは、上述した動作を説明するものである。 Thereafter, in the same manner as described above, each time one of the one-key play keys is turned on, the note memory 13
The scale data is read out one note at a time, and each time the off operation is performed, the address counter 14 is incremented by 1 and the operation of specifying the next address is repeated, and a melody performance by one-key play is executed. FIG. 3b illustrates the operation described above.
次に、音符メモリ13にオートプレイ用のメロ
デイをプリセツトしたのち、オートプレイによる
メロデイ演奏を行なう場合の動作を説明する。こ
の場合、先ず、音符メモリ13に音階データを書
込むが、この書込み動作は、上述したワンキープ
レイ用のメロデイを音符メモリ13に書込む際の
動作と同様に実行され、音高指定キーを操作して
メロデイを演奏しながら、音階データ、フラグデ
ータ、音長データを同時に音符メモリ13に書込
む動作が実行されるものである。而してオートプ
レイ用のメロデイのプリセツトの際には、メロデ
イの最後にキーAC,M+5b、1キープレイキ
ー5cのうち何れかをオン操作し、これにより音
符メモリ13に書込まれたメロデイの最後に区切
りコードを書込んでおく。第4図aは、上記動作
を説明するものである。 Next, a description will be given of the operation when a melody for autoplay is preset in the note memory 13 and then a melody is performed by autoplay. In this case, first, scale data is written into the note memory 13, but this writing operation is performed in the same way as the operation when writing the melody for one-key play into the note memory 13, and the pitch specification key is operated. While playing the melody, the operation of simultaneously writing scale data, flag data, and note length data into the note memory 13 is executed. When presetting a melody for auto play, turn on any one of the keys AC, M+5b, and 1 key play key 5c at the end of the melody, and thereby the melody written in the note memory 13 will be preset. Finally, write the delimiter code. FIG. 4a explains the above operation.
次に、オートプレイ用の正確なフラグデータ、
音長データを夫々音符メモリ13に書込むため
に、モード切替スイツチ9を切替位置RECに引
続き切替えたままにして記録モードを設定してお
き、またリズムを発生させてこのリズムに合わせ
てワンキープレイによるメロデイ演奏を行なう。
この場合、先ず、キーACを操作してアドレスカ
ウンタ14をリセツトし、音符メモリ13の0番
地をアドレスする。次に、リズムをマーチとする
場合、このマーチのリズムをキーRHY、1□によ
り指定する。このとき、制御部13からリズムパ
ターン記憶部29に対し、マーチのリズムパター
ンを記憶するエリアに対するアドレスデータが出
力され、これに応じてリズムパターン記憶部29
から以後、マーチのリズムパターンが読出し開始
され、リズム発生部30に与えられる。したがつ
て、スピーカー31から、マーチが放音開始され
る。 Next, accurate flag data for autoplay,
In order to write each note length data to the note memory 13, set the recording mode by keeping the mode changeover switch 9 switched to the changeover position REC, and also generate a rhythm and perform one-key play according to this rhythm. A melody performance will be performed.
In this case, first, the address counter 14 is reset by operating the key AC, and address 0 of the note memory 13 is addressed. Next, when the rhythm is a march, the rhythm of this march is specified by the keys RHY, 1□. At this time, the control section 13 outputs address data for the area for storing the march rhythm pattern to the rhythm pattern storage section 29, and the rhythm pattern storage section 29
From then on, reading of the march rhythm pattern is started and provided to the rhythm generating section 30. Therefore, the march sound starts to be emitted from the speaker 31.
次に、ワンキープレイ用のキーM+5bまたは
1キーキープレイキー5cを使用して、既に説明
したワンキープレイのメロデイ演奏を放音中のリ
ズムとあわせて正確に実行する。而してこの場合
に演奏するメロデイは、音符メモリ13に先に書
込んだメロデイである。そして例えば、最初にキ
ーM+5bをオンしたとすると、これに応じて
“1”の信号1keyが出力され、オアゲート18、
エンベロープ制御部22に夫々与えられる。ま
た、音符メモリ13の0番地からは、第1音符の
音階データ1が読出され、バツフア15のエリア
15A、コード変換部24,26に夫々与えられ
る。これにより、音高A3の楽音がキーM+5b
のオン操作中、そのエンベロープのADS部を作
成されて放音されている。またこの間、音長カウ
ンタ17は音高A3(音階データ1)に対するオン
時間を計時している。そしてキーM+5bがオフ
されると、信号1keyが“0”となり、これに応
じてエンベロープ制御部22は、リリース部の作
成に入る一方、音長カウンタ17のオン時間が
ADSバツフア19に取込まれ、次いで音長カウ
ンタ17は、さらに計時動作を続ける。次いで例
えば、1キープレイキー5cがオンされたとする
と、信号1keyが“1”に反転する。このとき、
アドレスカウンタ14が+1されて、1番地を以
後アドレスする。また、1キープレイ5cのオン
時に、第1音符の音高A3に対するオン時間と全
音長時間とが比較回路16にて比較され、上述し
たように、オン時間≦オフ時間なら“0”の、ま
たオン時間>オフ時間なら“1”の比較結果デー
タを出力し、フラグデータとしてバツフア15の
エリア15Bに与える。また、エリア15Cに
は、全音長時間が入力されており、これにより1
キープレイキー5cのオン時に、音符メモリ13
の0番地には、音階データ1、フラグデータ
(“0”か“1”)、音長データがバツフア15を介
し書込まれることになる。而してこの際に、書込
まれたフラグデータ、および音長データは共に、
演奏者が望んだ正確な、楽音情報となつている。 Next, the one-key play key M+5b or the one-key play key 5c is used to accurately perform the one-key play melody performance described above in conjunction with the rhythm being emitted. The melody played in this case is the melody previously written in the note memory 13. For example, if key M+5b is first turned on, a "1" signal 1key is output in response, and OR gate 18,
The signals are respectively given to the envelope control section 22 . Further, the scale data 1 of the first note is read from address 0 of the note memory 13 and is applied to the area 15A of the buffer 15 and the code converters 24 and 26, respectively. As a result, the musical tone of pitch A 3 becomes key M+5b.
During the on operation, the ADS section of the envelope is created and emitted. Also, during this time, the tone length counter 17 measures the ON time for pitch A 3 (scale data 1). Then, when key M+5b is turned off, the signal 1key becomes "0", and in response to this, the envelope control section 22 starts creating the release section, while the on-time of the tone length counter 17 is
The signal is taken into the ADS buffer 19, and then the note length counter 17 continues its timekeeping operation. Next, for example, if the 1 key play key 5c is turned on, the signal 1key is inverted to "1". At this time,
The address counter 14 is incremented by 1, and address 1 will be addressed from now on. Also, when the 1 key play 5c is turned on, the on time and whole tone duration for the first note pitch A3 are compared in the comparison circuit 16, and as described above, if the on time ≦ the off time, the on time is set to "0". , if on time>off time, the comparison result data of "1" is output and given to area 15B of buffer 15 as flag data. In addition, the whole tone duration is input in area 15C, which causes 1
When the key play key 5c is turned on, the note memory 13
At address 0, scale data 1, flag data (“0” or “1”), and tone length data are written via the buffer 15. At this time, both the written flag data and note length data are
This provides accurate musical tone information desired by the performer.
音長カウンタ17は1キープレイキー5cのオ
ン操作時にリセツトされて、第2音符の楽音に対
するオン時間を計時開始し、またスピーカ31か
らは、第2音符の音高B3の楽音のADS部が作成
放音されている。そして以下のワンキープレイキ
ーによるメロデイ演奏の動作は上述同様であり、
ワンキープレイキーのオン操作毎に、音符メモリ
13からあらたな音階データが読出されて、その
正確なフラグデータ、音長データの作成が開始さ
れると共に、次のワンキープレイキーの操作時に
作成されたフラグデータ、音長データは、その音
階データと共に、音符メモリ13の元のアドレス
エリアに書込まれるものである。そして、メロデ
イ演奏が終了すると、最後に、上述したキー操作
により、区切りコードを再度、音符メモリ13に
書込んでおく。而して、以上の操作によつてオー
トプレイ用のフラグデータ、音長データの書込み
動作が終了する。第4図bは上述した動作を説明
するものである。 The note length counter 17 is reset when the 1 key play key 5c is turned on, and starts counting the on time for the musical tone of the second note, and the ADS part of the musical tone of pitch B3 of the second note is output from the speaker 31. is being created and emitted. The melody playing operation using the following one-key play keys is the same as above,
Each time the one-key play key is turned on, new scale data is read out from the note memory 13, and the creation of accurate flag data and note length data is started. The flag data and note length data are written into the original address area of the note memory 13 together with the scale data. When the melody performance is finished, the delimiter code is finally written into the note memory 13 again by the above-mentioned key operation. With the above operations, the writing operation of the autoplay flag data and tone length data is completed. FIG. 4b explains the above-mentioned operation.
次に、オートプレイのメロデイ演奏を1回だけ
行なう場合には、モード切替スイツチ9を切替位
置PLに切替え、演奏モードを設定する。そして
キーAC、M−を連続操作する。このとき、オー
トプレイのスタート指令である信号AUTO
(“1”)が出力され、制御部11、オートプレイ
繰返し制御部28に夫々与えられる。また、アド
レスカウンタ14がリセツトされ、音符メモリ1
3の0番地がアドレスされる。而してこの場合、
オートプレイ繰返し制御部28は以後、メロデイ
演奏を1回だけ実行させる動作を実行し、即ち、
上記信号AUTOの出力時に1回だけ、メロデイ
スタート信号STを出力して制御部11に与え、
また繰返し信号RPは出力しない。 Next, if the autoplay melody performance is to be performed only once, the mode changeover switch 9 is switched to the switching position PL and the performance mode is set. Then, operate keys AC and M- continuously. At this time, the signal AUTO, which is the start command for auto play, is activated.
(“1”) is output and given to the control unit 11 and the auto-play repetition control unit 28, respectively. Also, the address counter 14 is reset and the note memory 1
Address 0 of 3 is addressed. In this case,
Thereafter, the autoplay repeat control section 28 executes an operation to perform the melody performance only once, that is,
Outputting a melody start signal ST and giving it to the control unit 11 only once when the signal AUTO is output,
Also, the repetitive signal RP is not output.
上記メロデイスタート信号STの出力以後、制
御部11は+1信号を、エンベロープ制御部22
からの終了信号eの出力毎、即ち、1楽音の作成
放音終了毎に出力するようになり、これに応じて
1音符(1楽音)毎の1組の音階データ、フラグ
データ、音長データが音符メモリ13から順次読
出される。この場合、読出された音階データは、
コード変換部24,26および区切り検出部27
へ与えられて、上述した各処理を受ける。また、
このオートプレイ時には、制御部11から“1”
のゲート制御信号gが出力されてゲート回路20
が開成されており、このため音符メモリ13から
読出されるフラグデータおよび音長データは共に
ゲート回路20を介し、音長分割部21へ与えら
れる。そして音長分割部21は、入力したフラグ
データが“0”のときには、エンベロープの
ADS部とR部とが共に等しくなるように、その
音長データを分割し、内容の等しい信号E1,E
2を得て、エンベロープ制御部22に与え、入力
したフラグデータが“1”のときには、上記
ADS部とR部との比が3対1となるように、音
長データを分割して得られる信号E1,E2を出
力し、エンベロープ制御部22に与える。このた
め、前者の場合には、ADS部とRとが等しい楽
音が放音される一方、後者の場合には、ADS部
がR部より3倍長い楽音が放音される。 After outputting the melody start signal ST, the control section 11 sends a +1 signal to the envelope control section 22.
It is now output every time the end signal e is output from , that is, every time one musical tone is created and emitted, and accordingly, one set of scale data, flag data, and tone length data for each note (one musical tone) is output. are sequentially read out from the note memory 13. In this case, the read scale data is
Code conversion units 24, 26 and break detection unit 27
and undergoes the various processes described above. Also,
During this auto play, “1” is sent from the control unit 11.
The gate control signal g is output to the gate circuit 20.
Therefore, both the flag data and the note length data read from the note memory 13 are provided to the note length dividing section 21 via the gate circuit 20. Then, when the input flag data is “0”, the tone length dividing unit 21 divides the envelope into
The tone length data is divided so that the ADS part and the R part are both equal, and the signals E1 and E with the same content are
2 is obtained and given to the envelope control unit 22, and when the input flag data is "1", the above
Signals E1 and E2 obtained by dividing the note length data so that the ratio of the ADS part to the R part is 3:1 are outputted and given to the envelope control part 22. Therefore, in the former case, a musical tone in which the ADS portion and the R portion are equal is emitted, while in the latter case, a musical tone in which the ADS portion is three times longer than the R portion is emitted.
上述のようにして、オートプレイによるメロデ
イ演奏が実行され、また、メロデイ演奏が終了す
ると区切りコードが区切り検出部27により検出
されて、信号EM(“1”)が出力され、オートプ
レイ繰返し制御部28に与えられ、オートプレイ
の動作が完全に終了する。第4図cは上述した動
作を説明するものである。 As described above, the melody performance by autoplay is executed, and when the melody performance ends, the delimiter code is detected by the delimiter detection section 27, the signal EM ("1") is output, and the autoplay repeat control section 28, and the autoplay operation is completely completed. FIG. 4c explains the above-mentioned operation.
他方、オートプレイのメロデイ演奏を、例えば
4回繰返して行なうときには、演奏モードの設定
後、キー4□、C□、M−のキー操作を実行する。而
して、このキー操作により、オートプレイ繰返し
制御部28には、演奏回数4が設定され、またア
ドレスカウンタ14がリセツトされて、メロデイ
演奏が開始される。そして上述した1回のオート
プレイの場合と同様な動作にしたがつて、メロデ
イ演奏が実行される。そして、メロデイ演奏の終
了毎に、区切り検出部27から出力される信号
EMがオートプレイ繰返し制御部28によつて計
数されると共に、その計数値が設定回数4と一致
するまでの間、オートプレイ繰返し制御部28は
繰返し信号RP(“1”)を出力して制御部11に与
えつづけ、メロデイ演奏を続行させる。そして4
回のメロデイ演奏が終了すると、オートプレイ繰
返し制御部28において、上記計数値が設定回数
4に一致したことが検出され、これに応じて、繰
返し信号RPが“0”となる。このため、制御部
11は+1信号の出力を停止し、メロデイ演奏の
繰返し動作が終了する。 On the other hand, when performing an autoplay melody performance repeatedly, for example four times, after setting the performance mode, the keys 4□, C□, and M- are operated. As a result of this key operation, the number of performances (4) is set in the autoplay repeat control section 28, the address counter 14 is reset, and the melody performance is started. Then, the melody performance is performed in accordance with the same operation as in the case of one autoplay described above. Then, each time the melody performance ends, a signal is output from the break detection section 27.
While EM is counted by the auto-play repeat control unit 28, the auto-play repeat control unit 28 outputs a repeat signal RP (“1”) and performs control until the counted value matches the set number of times 4. 11 to continue playing the melody. and 4
When the melody performance is completed, the autoplay repeat control section 28 detects that the count value matches the set number of times 4, and accordingly, the repeat signal RP becomes "0". Therefore, the control section 11 stops outputting the +1 signal, and the repeating operation of the melody performance ends.
なお、上記実施例では音符メモリ13にメロデ
イが1曲だけしか記憶できないようにしたが、勿
論、曲数は複数であつてもよい。そして、この場
合には、曲の終りには区切りコードを必ず書込ん
でおき、繰返し演奏の場合には、一連の複数曲を
複数回繰返し演奏したり、あるいは、指定した曲
だけを複数回繰返し演奏したりするようにしても
よい。また、上記実施例では、エンベロープの
ADS部とR部との比を1対1または、3対1と
したが、勿論これに限定されるものではない。更
に楽音発生機能をもつた小型電子式計算機に限ら
ず、他の同様な種々の小型電子機器にこの発明を
適用可能である。 In the above embodiment, only one melody can be stored in the note memory 13, but of course a plurality of melodies may be stored. In this case, be sure to write a delimiter code at the end of the song, and if you want to play it repeatedly, you can play a series of multiple songs multiple times, or you can repeat only a specified song multiple times. It is also possible to play the music. In addition, in the above embodiment, the envelope
Although the ratio of the ADS part to the R part is set to 1:1 or 3:1, it is of course not limited to this. Furthermore, the present invention is applicable not only to small-sized electronic calculators having a musical sound generation function but also to various other similar small-sized electronic devices.
この発明は、以上説明したように、音階データ
を記憶手段から読出す読出しキーのオン操作時間
とオフ操作時間との比に対応するコードデータを
出力させ、このコードデータをエンベロープ制御
データとして音階データに対応させて記憶するよ
うにしたので、簡単に音長を入力できると共にオ
ートプレイ用のメモリに記憶されるデータの圧縮
が計れ、メモリの使用効率が向上するという利点
がある。 As explained above, the present invention outputs code data corresponding to the ratio of the on-operation time and the off-operation time of a read key for reading scale data from a storage means, and uses this code data as envelope control data to generate the scale data. Since the notes are stored in correspondence with the notes, the note length can be easily inputted, and the data stored in the autoplay memory can be compressed, which improves memory usage efficiency.
第1図はこの発明の一実施例の小型電子式計算
機の外観斜視図、第2図は要部の回路構成図、第
3図はワンキープレイの動作を説明するフローチ
ヤート、第4図はオートプレイの動作を説明する
フローチヤートである。
2…キー入力部、3…表示部、4…放音部、
5,M+…ワンキープレイキー、M−…オートプ
レイキー、9…モード切替スイツチ、11…制御
部、12…演算記憶部、13…音符メモリ、14
…アドレスカウンタ、15…バツフア、16…比
較回路、17…音長カウンタ、19…ADSバツ
フア、21…音長分割部、22…エンベロープ制
御部、23…楽音発生部、24,27…コード変
換部、27…区切り検出部、28…オートプレイ
繰返し制御部、29…リズムパターン記憶部、3
0…リズム発生部。
Fig. 1 is an external perspective view of a small electronic calculator according to an embodiment of the present invention, Fig. 2 is a circuit diagram of the main parts, Fig. 3 is a flowchart explaining the operation of one-key play, and Fig. 4 is an automatic This is a flowchart explaining the operation of the play. 2...Key input section, 3...Display section, 4...Sound emitting section,
5, M+...One-key play key, M-...Auto play key, 9...Mode changeover switch, 11...Control unit, 12...Calculation storage unit, 13...Musical note memory, 14
...Address counter, 15...Buffer, 16...Comparison circuit, 17...Tone length counter, 19...ADS buffer, 21...Tone length division section, 22...Envelope control section, 23...Tone generation section, 24, 27...Code conversion section , 27... Separation detection section, 28... Auto play repetition control section, 29... Rhythm pattern storage section, 3
0...Rhythm generation section.
Claims (1)
を記憶する記憶手段と、 読出しキーが操作されるごとに上記記憶手段か
ら音階データを順次読出し、対応する楽音を発生
させるように制御する読出し制御手段と、 上記読出しキーがオン操作されている間のオン
時間を検出する第1の時間検出手段と、 今回の読出しキーのオン操作から次回の読出し
キーのオン操作までの操作時間を検出する第2の
時間検出手段と、 上記オン時間及び上記操作時間に基づいて、今
回の読出しキーのオン操作時間とオフ操作時間と
の比に対応するコードデータを出力する出力手段
と、 上記操作時間を音長データとし、上記コードデ
ータをエンベロープ制御データとして、今回の読
出しキーの操作により読出された音階データに対
応させて上記記憶手段に記憶させる記憶制御手段
と、 を有することを特徴とするメロデイメモリ機能付
小型電子機器。[Scope of Claims] 1. A storage means for storing scale data input by operating a scale key, and a device for sequentially reading scale data from the storage means each time a read key is operated, and generating a corresponding musical tone. a readout control means for controlling; a first time detection means for detecting the on time while the readout key is being operated; and an operation time from the current readout key on operation to the next readout key on operation; a second time detection means for detecting the on-time and the operation time; an output means for outputting code data corresponding to the ratio of the on-operation time and the off-operation time of the current read key, based on the on-time and the operation time; and storage control means for storing the operation time as tone length data and the code data as envelope control data in the storage means in correspondence with the scale data read out by the current operation of the readout key. A small electronic device with a melody memory function.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55181922A JPS57105790A (en) | 1980-12-24 | 1980-12-24 | Small-sized electronic apparatus having melody memory function |
| GB8137721A GB2091470B (en) | 1980-12-24 | 1981-12-15 | Electronic musical instrument |
| DE19813150799 DE3150799C2 (en) | 1980-12-24 | 1981-12-22 | Electronic device with a sound generating function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55181922A JPS57105790A (en) | 1980-12-24 | 1980-12-24 | Small-sized electronic apparatus having melody memory function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57105790A JPS57105790A (en) | 1982-07-01 |
| JPS6367194B2 true JPS6367194B2 (en) | 1988-12-23 |
Family
ID=16109245
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55181922A Granted JPS57105790A (en) | 1980-12-24 | 1980-12-24 | Small-sized electronic apparatus having melody memory function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57105790A (en) |
-
1980
- 1980-12-24 JP JP55181922A patent/JPS57105790A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57105790A (en) | 1982-07-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6367193B2 (en) | ||
| JP2623809B2 (en) | Automatic key press indicating device | |
| JPS6157640B2 (en) | ||
| JPH079586B2 (en) | Automatic musical instrument accompaniment device | |
| JPH0584920B2 (en) | ||
| US4475429A (en) | Electronic equipment with tone generating function | |
| JPH03287199A (en) | automatic performance device | |
| JP2522337B2 (en) | Automatic playing device | |
| JP3625914B2 (en) | Arpeggiator | |
| JPS6367194B2 (en) | ||
| JPH0411880B2 (en) | ||
| JPH10149164A (en) | Automatic arpeggio playing device | |
| GB2091470A (en) | Electronic Musical Instrument | |
| US5283388A (en) | Auto-play musical instrument with an octave shifter for editing phrase tones | |
| JP3609045B2 (en) | Automatic performance device | |
| JP2565152B2 (en) | Automatic accompaniment device | |
| JP3625913B2 (en) | Arpeggiator | |
| JP3902207B2 (en) | Arpeggiator | |
| JPH06337674A (en) | Electronic musical instrument automatic performance device | |
| JPH0464073B2 (en) | ||
| JPH0631964B2 (en) | Electronic musical instrument | |
| JP3630266B2 (en) | Automatic accompaniment device | |
| JP2674331B2 (en) | Automatic accompaniment device | |
| JP3324881B2 (en) | Automatic performance device | |
| JP2572317B2 (en) | Automatic performance device |