JPH0363087A - Melody generator - Google Patents

Melody generator

Info

Publication number
JPH0363087A
JPH0363087A JP19866589A JP19866589A JPH0363087A JP H0363087 A JPH0363087 A JP H0363087A JP 19866589 A JP19866589 A JP 19866589A JP 19866589 A JP19866589 A JP 19866589A JP H0363087 A JPH0363087 A JP H0363087A
Authority
JP
Japan
Prior art keywords
signal
data
solenoid
envelope
melody
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
JP19866589A
Other languages
Japanese (ja)
Inventor
Hiroyuki Terao
寺尾 宏之
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 JP19866589A priority Critical patent/JPH0363087A/en
Publication of JPH0363087A publication Critical patent/JPH0363087A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To operate a doll or the like to be accurately interlocked with musical sounds by giving a drive signal prepared on the basis of music sound data of a memory to an operating means and providing a control means for controlling the operation of the operating means to be tuned to a melody generated from a melody generator. CONSTITUTION:A solenoid driving section 13 comprises a circuit for supplying signals for driving a plurality of solenoids 14 to operate a puppet. Every time a note switching signal is applied from an address control section 8, an envelope data from a ROM 9 for memory sound data melody are read-out and the drive signal having pulse width corresponding to then envelope data is supplied to a solenoid 14. For example, 0.98ms pulse width drive signal is supplied in the envelope value 0, and 9.77ms pulse width drive signal which is ten times 0.98ms one is supplied in the envelope value 9. Thus, the pulse width of the drive signal is determined on the basis of the envelope of individual music sounds to be supplied to the solenoid 14, so that a doll or the like can be controllably operated precisely to follow changes in the individual music sounds.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、メロディに合わせて人形等に所望の動作を行
わせるメロディ発生装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a melody generating device that causes a doll or the like to perform desired movements in accordance with a melody.

〔従来技術及びその問題点〕[Prior art and its problems]

従来、楽音に合わせて所望の動作を行わせる装置、例え
ば、メロディに合わせて人形などが動作する玩具、ある
いはからくり時計などでは、アナログの楽音信号を増幅
器で増幅し、その増幅したアナログ信号を駆動信号とし
て駆動部に供給し、人形等にメロディに合わせて種々の
動作を行わせるものが知られている。
Conventionally, in devices that perform desired actions in time with musical sounds, such as toys that make dolls move in time with melodies, or mechanical clocks, analog musical sound signals are amplified by an amplifier, and the amplified analog signals are driven. It is known that the signal is supplied to a drive unit as a signal to cause a doll or the like to perform various movements in accordance with a melody.

しかしながら、アナログの楽音信号を増幅して駆動信号
として駆動部に供給するものでは、駆動部が追従できる
周波数に上限があることから、楽音の周波数があまり高
くなると、楽音に連動させて人形等を動作させることが
できなくなる。また、楽音の音量が小さい場合にも、駆
動部へ供給する駆動信号レベルが低くなり、やはり楽音
に連動させて人形等を動作させることができなくなるな
どの欠点があった。
However, with devices that amplify analog musical tone signals and supply them as drive signals to the drive unit, there is an upper limit to the frequency that the drive unit can follow. It becomes impossible to make it work. Further, even when the volume of the musical tone is low, the level of the drive signal supplied to the driving section becomes low, and there is also a drawback that it is no longer possible to move the doll or the like in conjunction with the musical tone.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、楽音に正確に連動して人形等を動作さ
ることのできるメロディ発生装置を提供することである
SUMMARY OF THE INVENTION An object of the present invention is to provide a melody generating device that can move a doll or the like in accurate synchronization with musical tones.

〔発明の要点〕[Key points of the invention]

本発明は、メロディを発生するために記憶手段に記憶さ
れた楽音の音程データ、音長データ、エンベロープデー
タなどのデジタルの楽音データに基づいて作成した駆動
信号を動作手段に与え、メロディ発生手段において上記
楽音データから作成されるメロディに合わせて上記動作
手段を動作させるものであり、発生するメロディに正確
に連動させて所望の動作を行わせることができる。
The present invention provides driving signals created based on digital musical tone data such as pitch data, tone length data, and envelope data of musical tones stored in a storage means to generate a melody to the operating means. The operation means is operated in accordance with a melody created from the musical sound data, and a desired operation can be performed in precise synchronization with the generated melody.

(実  施  例〕 以下、本発明の実施例を図面を参照しながら説明する。(Example〕 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例のからくり時計の回路構成
図である。
FIG. 1 is a circuit diagram of a mechanical clock according to an embodiment of the present invention.

同図において、発振回路1は一定周期のクロック信号を
生成する回路であり、生成したクロック信号を分周回路
2に出力する。分周回路2は時刻計時の基準となる計時
信号を作成すると共に、後述するソレノイド駆動部13
に供給する1024Hzの信号、及びその1024Hz
と同じ周波数で1024Hzの信号の立ち下がりに同期
した信号Φ。を作成する。
In the figure, an oscillation circuit 1 is a circuit that generates a clock signal with a constant period, and outputs the generated clock signal to a frequency dividing circuit 2. The frequency dividing circuit 2 creates a clock signal that is a reference for time measurement, and also generates a solenoid drive unit 13 which will be described later.
1024Hz signal to be supplied to, and that 1024Hz signal
The signal Φ is synchronized with the falling edge of the 1024Hz signal at the same frequency as . Create.

ステップモータ駆動回路3は上記計時信号からステップ
モータ4を駆動する駆動信号を作成する。
The step motor drive circuit 3 creates a drive signal for driving the step motor 4 from the clock signal.

輪列機構5は、時針、分針、秒針からなる指針6を駆動
する複数の歯車を有し、それらの歯車がステップモータ
4により駆動されて指針6が回転し現在時刻を表示する
The wheel train mechanism 5 has a plurality of gears that drive a pointer 6 consisting of an hour hand, a minute hand, and a second hand, and these gears are driven by the step motor 4 to rotate the pointer 6 and display the current time.

正時検出機構7は、輪列機構5の状態から正時を検出す
る機構であり、正時を検出すると正時信号をアドレス制
御部8に出力する。
The hour detection mechanism 7 is a mechanism that detects the hour from the state of the wheel train mechanism 5, and outputs an hour signal to the address control unit 8 when it detects the hour.

アドレス制御部8は、メロデイ音データ記憶用ROM9
の読み出しアドレスを指定する回路であり、後述するメ
ロデイ音合成回路10からの1音終了信号を受は取る毎
に、歩進したアドレスをメロデイ音データ記憶用ROM
9に出力して次の楽音データの読み出しを指示すると共
に、音符切り換え信号をソレノイド駆動部13に出力し
て、新たな楽音データの読み出しを指示したことを知ら
せる。
The address control section 8 includes a ROM 9 for storing melody sound data.
This is a circuit that specifies the read address of the melody sound data storage ROM, and each time a one-tone end signal is received from the melody sound synthesis circuit 10, which will be described later, the incremented address is sent to the ROM for storing melody sound data.
9 to instruct reading of the next musical tone data, and output a note switching signal to the solenoid driving section 13 to notify that reading of new musical tone data has been instructed.

メロデイ音データ記憶用ROM9は、楽音の1音毎の音
程データ、音長データ、エンベロープデータをデジタル
データとして記憶しているROMであり、アドレス制御
部8により指定されたアドレスのそれらのデータをメロ
デイ音合成回路10に出力すると共に、エンベロープデ
ータをソレノイド駆動部13に出力する。
The melody sound data storage ROM 9 is a ROM that stores pitch data, note length data, and envelope data for each note of musical tones as digital data, and stores these data at the address specified by the address control unit 8 as a melody sound data storage ROM 9. The envelope data is output to the sound synthesis circuit 10, and the envelope data is output to the solenoid drive section 13.

メロデイ音合成回路10は、上記音程データ、音長デー
タ、エンベロープデータからアナログの楽音信号を合成
する回路であり、合成した楽音信号をスピーカドライバ
11に出力すると共に、1音の合成が終了する毎に1音
終了信号をアドレス制御部8に出力する。
The melody tone synthesis circuit 10 is a circuit that synthesizes an analog musical tone signal from the pitch data, tone length data, and envelope data, and outputs the synthesized musical tone signal to the speaker driver 11, and also outputs the synthesized musical tone signal to the speaker driver 11 every time the synthesis of one tone is completed. A one-tone end signal is output to the address control section 8.

スピーカドライバ11は、上記楽音信号をスピーカ12
の駆動可能な信号レベルまで増幅する回路であり、増幅
した信号をスピーカ12に出力して楽音として出力する
The speaker driver 11 transmits the musical tone signal to the speaker 12.
The amplified signal is output to the speaker 12 as a musical tone.

ソレノイド駆動部13は、からくり人形を動作させる複
数のソレノイド14を駆動させる信号を供給する回路で
あり、アドレス制御部8から音符切り換え信号が加わる
毎に、メロディ音データ記[用ROM9からのエンベロ
ープデータを読み取り、その時のエンベロープデータに
応じたパルス幅の駆動信号をソレノイド14に供給する
The solenoid drive unit 13 is a circuit that supplies signals to drive a plurality of solenoids 14 that operate the karakuri doll, and every time a note switching signal is applied from the address control unit 8, the solenoid drive unit 13 converts the envelope data from the ROM 9 into the melody sound data recorder. is read, and a drive signal with a pulse width corresponding to the envelope data at that time is supplied to the solenoid 14.

第2図は、上記ソレノイド駆動部13の詳細な回路構成
図である。
FIG. 2 is a detailed circuit diagram of the solenoid drive section 13.

同図において、クリップフロップf5のセット端子には
、アドレス制御部8からの音符切り換え信号が入力し、
メロデイ音データ記憶用ROM9から読み出される楽音
データが切り換わる毎にフリップフロップf5はセット
される。
In the same figure, a note switching signal from the address control section 8 is input to the set terminal of the clip-flop f5.
The flip-flop f5 is set every time the musical tone data read from the melody tone data storage ROM 9 is switched.

アンドゲート21には、上記フリップフロップf5のQ
出力と、分周回路2からの1024Hzの信号とが入力
し、その出力はフリップフロップf+のT入力端子と、
フリップフロップf6のクロック端子に入力している。
The AND gate 21 includes the Q of the flip-flop f5.
The output and the 1024Hz signal from the frequency divider circuit 2 are input, and the output is connected to the T input terminal of the flip-flop f+,
It is input to the clock terminal of flip-flop f6.

フリップフロップf+のQ出力は、オアゲート22と次
段のフリップフロップf2のT入力端子に人力している
。このフリップフロップf2のQ出力は、オアゲート2
3と次段のフリップフロップf3のT入力端子に入力し
ている。また、フリップフロップf3のQ出力は、オア
ゲート24と次段のフリップフロップr4のT入力端子
に入力している。さらに、フリップフロップf4のQ出
力は、オアゲート25に入力している。
The Q output of the flip-flop f+ is input to the OR gate 22 and the T input terminal of the next-stage flip-flop f2. The Q output of this flip-flop f2 is the OR gate 2
3 and the T input terminal of the next stage flip-flop f3. Further, the Q output of the flip-flop f3 is input to the OR gate 24 and the T input terminal of the next-stage flip-flop r4. Furthermore, the Q output of the flip-flop f4 is input to the OR gate 25.

上記各オアゲート22〜25の他の入力端子にはそれぞ
れメロデイ音データ記憶用ROM9からのエンベロープ
データが人力している。
Envelope data from a ROM 9 for storing melody sound data is input to the other input terminals of each of the OR gates 22-25.

本実施例においては、エンベロープデータは4ビツトの
データで構成されており、最下位の1ビツト目のエンベ
ロープデータがインバータ26で反転されてオアゲート
22に入力し、2ビツト目のデータがインバータ27で
反転されてオアゲート23に入力している。以下同様に
、3ビツト目のデータがインバータ28で反転されてオ
アゲート24に入力し、4ビツト目のデータがインバー
タ29で反転されてオアゲート25に入力している。
In this embodiment, the envelope data is composed of 4-bit data, and the lowest 1st bit of the envelope data is inverted by the inverter 26 and inputted to the OR gate 22, and the 2nd bit of the envelope data is inverted by the inverter 27. It is inverted and input to the OR gate 23. Similarly, the third bit of data is inverted by the inverter 28 and input to the OR gate 24, and the fourth bit of data is inverted by the inverter 29 and input to the OR gate 25.

上記各オアゲート22〜25の出力は、4人力アンドゲ
ート30に入力し、そのアンドゲート30の出力はフリ
ップフロップf6のD入力端子に人力している。
The outputs of each of the OR gates 22 to 25 are input to a four-way AND gate 30, and the output of the AND gate 30 is fed to the D input terminal of the flip-flop f6.

アンドゲート31には、上記フリップフロップf6のQ
出力と、分周回路2からの信号Φ。とが入力し、このア
ンドゲート31の出力は各フリップフロップ鮨〜f4の
リセット端子と、フリップフロップf5のT入力端子に
出力される。
The AND gate 31 includes the Q of the flip-flop f6.
output and signal Φ from frequency divider circuit 2. is input, and the output of this AND gate 31 is output to the reset terminal of each flip-flop f4 and the T input terminal of flip-flop f5.

また、フリップフロップf5のQ出力信号はソレノイド
14の駆動信号として、2つのインバータ32.33を
介して、5個のトランジスタTR1〜TR5のベース抵
抗R1−R5に出力される。
Further, the Q output signal of the flip-flop f5 is output as a drive signal for the solenoid 14 to the base resistors R1 to R5 of the five transistors TR1 to TR5 via two inverters 32 and 33.

各トランジスタTR1〜TR5のコレクタは、他端が正
電源に接続された5個のソレノイドコイル14aの一端
に接続されており、ベースに与えられる駆動信号に従っ
て5個のソレノイド14の制御量を変化させ人形等の動
作を制御する。
The collectors of each of the transistors TR1 to TR5 are connected to one end of five solenoid coils 14a whose other ends are connected to a positive power supply, and change the control amount of the five solenoids 14 according to the drive signal given to the base. Control the movements of dolls, etc.

次に上記回路の動作を第3図のタイミングチャートを参
照しながら説明する。
Next, the operation of the above circuit will be explained with reference to the timing chart of FIG.

1つの音符の出力が終了して、アドレス制御部8から音
符切り換え信号が出力されと、先ずフリップフロップf
5がセットされ、ハイレベルの信号がトランジスタTR
IからTR5のベースに出力されソレノイド14の駆動
が開始される。
When the output of one note is completed and a note switching signal is output from the address control section 8, first, the flip-flop f
5 is set, and a high level signal is sent to the transistor TR.
The signal is output from I to the base of TR5, and the driving of the solenoid 14 is started.

また、このハイレベルの信号はアンドゲート21に与え
られアンドゲート21が開き、1024Hzの信号がフ
リップフロップflのT入力端子に供給される。
Further, this high level signal is applied to the AND gate 21, which opens the AND gate 21, and a 1024 Hz signal is applied to the T input terminal of the flip-flop fl.

ここで、各フリップフロップfI〜f4はT入力端子に
人力する信号の立ち下がりに同期して出力が反転するよ
う構成されており、フリップフロップfl の出力は、
1024Hzの信号の立ち下がりに同期して反転し、1
024&の信号を2分周した512Hzの信号がオアゲ
ート22と次段のフリップフロップf2に出力される。
Here, each of the flip-flops fI to f4 is configured so that its output is inverted in synchronization with the fall of the signal input to the T input terminal, and the output of the flip-flop fl is
It is inverted in synchronization with the falling edge of the 1024Hz signal, and 1
A 512 Hz signal obtained by dividing the frequency of the signal 024 & by 2 is output to the OR gate 22 and the next stage flip-flop f2.

さらに、フリップフロップf2からは、その512)(
zの信号が2分周された信号(256Hzの信号)が、
オアゲート23と次段のフリップフロップf3に出力さ
れる。
Furthermore, from flip-flop f2, 512)(
The signal obtained by dividing the frequency of the z signal by 2 (256Hz signal) is
It is output to the OR gate 23 and the next stage flip-flop f3.

以下同様に、フリップフロップf2から512触の信号
を2分周した信号(128Hzの信号)が、オアゲート
24と次段のフリップフロップf3に出力され、フリッ
プフロップr4からは128血の信号を2分周した信号
(64にの信号)がオアゲート25に出力される。
Similarly, a signal (128Hz signal) obtained by dividing the 512-touch signal by two from the flip-flop f2 is output to the OR gate 24 and the next flip-flop f3, and a 128-touch signal is divided by two from the flip-flop r4. The circulated signal (signal at 64) is output to the OR gate 25.

一方、オアゲート22〜25の他の入力端子には、メロ
デイ音データ記憶用ROM9からのエンベロープデータ
がインバータ26〜29を経て入力しており、オアゲー
ト22には最下位ビットのエンベロープデータが反転さ
れて入力し、オアゲート23には次の2ビツト目のエン
ベロープデ−タが反転されて入力している。また、オア
ゲート24には3ビツト目のエンベロープデータが反転
されて入力し、オアゲート25には4ビツト目のエンベ
ロープデータが反転されて人力する。
On the other hand, the envelope data from the melody sound data storage ROM 9 is input to the other input terminals of the OR gates 22 to 25 via inverters 26 to 29, and the least significant bit of the envelope data is inverted to the OR gate 22. The next second bit of envelope data is inverted and input to the OR gate 23. Further, the 3rd bit envelope data is inverted and input to the OR gate 24, and the 4th bit envelope data is inverted and input to the OR gate 25 manually.

これらのエンベロープデータと上述した各フリップフロ
ップ鮨〜f4から出力される1024Hzを分周したそ
れぞれの信号とのいずれかの信号がハイレベルとなり、
4個のオアゲート22〜25の出力が全てハイレベルと
なったとき、フリップフロップf6の出力がハイレベル
となり、フリップフロップf5の出力がローレベルに反
転し、ソレノイドの駆動信号がローレベルに変化する。
Either of these envelope data and each signal obtained by dividing the frequency of 1024 Hz output from each flip-flop sushi~f4 described above becomes high level,
When the outputs of the four OR gates 22 to 25 all become high level, the output of flip-flop f6 becomes high level, the output of flip-flop f5 is inverted to low level, and the solenoid drive signal changes to low level. .

今、音符切り換え信号がフリップフロップf5に与えら
れると、フリップフロップf5がセットされトランジス
タTRI〜TR5がオンしてソレノイド14が駆動され
る。
Now, when the note switching signal is applied to the flip-flop f5, the flip-flop f5 is set, the transistors TRI to TR5 are turned on, and the solenoid 14 is driven.

この時、メロデイ音データ記憶用ROM9から読み出さ
れたエンベロープデータが、例えば「7」であるとする
と、各オアゲート22〜25には「7」を2進数で表し
たrolllJを反転したデータrlooo」が与えら
れる。
At this time, if the envelope data read from the melody sound data storage ROM 9 is, for example, "7", each OR gate 22 to 25 is filled with data rlooo which is an inverted version of rollJ representing "7" in binary. is given.

そして、10241−[zの信号がフリップフロップf
Then, the signal of 10241-[z is sent to the flip-flop f
.

に供給されて、各フリップフロップf+−faから10
24Hzの信号を分周した信号が対応するオアゲート2
2〜25に出力される。
10 from each flip-flop f+-fa.
OR gate 2 corresponds to the signal obtained by dividing the 24Hz signal.
2 to 25.

この時、エンベロープデータが上記の値であるので、オ
アゲート22〜24の他の入力はローレベル、オアゲー
ト25の他の入力はハイレベルとなっている。そして、
第3図(1)に示すように1024にの信号の7クロツ
ク目の立ち下がり時にフリップフロップf+ の出力が
ハイレベルとなったとき、フリップフロップfl、fz
、f3の各出力が全てハイレベルとなり、4個のオアゲ
ート22〜25の出力が全てハイレベルとなり、第3図
(2)に示すようにアンドゲート30の出力がハイレベ
ルとなる。
At this time, since the envelope data has the above value, the other inputs of the OR gates 22 to 24 are at a low level, and the other inputs of the OR gate 25 are at a high level. and,
As shown in FIG. 3(1), when the output of flip-flop f+ becomes high level at the falling edge of the 7th clock of the signal 1024, flip-flops fl, fz
, f3 all become high level, the outputs of the four OR gates 22 to 25 all become high level, and the output of AND gate 30 becomes high level as shown in FIG. 3(2).

そして、このハイレベルの信号が次の1024Hzの信
号の立ち上がり(8クロツク目)に同期してフリップフ
ロップf6にラッチされアンドゲート31が開き、その
アンドゲート31を経て信号Φ0がフリップフロップf
5に与えられる。この信号Φ。によりフリップフロップ
f5の出力が反転して、ソレノイド14の駆動信号がロ
ーレベルに変化する(第3図(3))。
Then, this high-level signal is latched into the flip-flop f6 in synchronization with the rise of the next 1024 Hz signal (8th clock), and the AND gate 31 is opened.
given to 5. This signal Φ. As a result, the output of the flip-flop f5 is inverted, and the drive signal for the solenoid 14 changes to low level ((3) in FIG. 3).

すなわち、エンベロープデータが「7」のときには、第
3図(3)に示すように信号Φ0の8クロック間、8÷
1024’;7.8 Ins間、ハイレヘ)L/の駆動
信号がソレノイド14に与えられる。
That is, when the envelope data is "7", as shown in FIG. 3 (3), for 8 clocks of signal Φ0, 8÷
1024'; 7.8 Ins, high speed) L/ drive signal is applied to the solenoid 14.

同様に、例えばエンベロープデータが「3」のときには
、2進数の「0O11」を反転したrlloo。
Similarly, for example, when the envelope data is "3", rlloo is the inverted binary number "0O11".

なるデータがオアゲート22〜25に与えられ、1番目
と2番目のフリップフロップ 出力が共にハイレベルとなる、1024Hzの信号の4
クロツク目、すなわち信号Φ0の4クロック間、(4 
+1024#3.91msの間)、ハイレヘ/L/ (
7)駆動信号がソレノイド14に与えられる。
4 of the 1024 Hz signal is given to the OR gates 22 to 25, and the first and second flip-flop outputs both become high level.
During the 4th clock, that is, the 4th clock of the signal Φ0, (4
+1024# for 3.91ms), Hi-Rehe/L/ (
7) A drive signal is provided to the solenoid 14.

上述した回路動作により、第4図に示すようなエンベロ
ープ値に対応したパルス幅の駆動パルスが生成され、ソ
レノイド14に供給される。
Through the circuit operation described above, a drive pulse having a pulse width corresponding to the envelope value as shown in FIG. 4 is generated and supplied to the solenoid 14.

例えば、エンベロープ値rQJの時には0.98msの
パルス幅の駆動信号が供給され、エンベロープ値「9」
の時にはその10倍の9.77msのパルス幅の駆動信
号が供給される。
For example, when the envelope value is rQJ, a drive signal with a pulse width of 0.98 ms is supplied, and the envelope value is "9".
At the time of , a drive signal with a pulse width of 9.77 ms, which is 10 times that, is supplied.

以上のように、個々の楽音のエンベロープ値に基づいて
駆動信号のパルス幅を決め、その駆動信号をソレノイド
14に供給するようにしたので、個々の楽音の変化に追
従させてソレノイドの制御量を微細に変化させることが
でき、より精密に人形等の動作を制御することができる
As described above, since the pulse width of the drive signal is determined based on the envelope value of each musical tone and the drive signal is supplied to the solenoid 14, the control amount of the solenoid can be adjusted to follow the change in each musical tone. It is possible to make minute changes and to control the movements of dolls, etc. more precisely.

次に、エンベロープデータに基づいてソレノイドに流れ
る電流を制御する本発明の第2の実施例を第5図を参照
しながら説明する。
Next, a second embodiment of the present invention will be described with reference to FIG. 5, in which the current flowing through the solenoid is controlled based on envelope data.

第5図は、1個のソレノイドに流れる電流を制御する為
の回路を示しており、人形の動作を制御する5個の各ソ
レノイド14はほぼ同様の構成を有している。
FIG. 5 shows a circuit for controlling the current flowing through one solenoid, and each of the five solenoids 14 that control the operation of the doll has almost the same configuration.

ソレノイドコイル14aには、抵抗Rnとトランジスタ
Trnとが16個並列に接続されている。
16 resistors Rn and 16 transistors Trn are connected in parallel to the solenoid coil 14a.

各トランジスタT r l−T r +bのゲートには
、変換回路41からそれぞれ独立した駆動信号が与えら
れており、並列に接続された16個のトランジスタの内
のオンするトランジスタの個数を変化させることにより
、ソレノイドコイル14aに接続される抵抗値を変化さ
せ、コイル14aに流れる電流を制御している。
An independent drive signal is given to the gate of each transistor T r l - T r +b from the conversion circuit 41, and the number of transistors turned on among the 16 transistors connected in parallel can be changed. By changing the resistance value connected to the solenoid coil 14a, the current flowing through the coil 14a is controlled.

変換回路41は、入力するエンベロープデータの値に応
じた信号を出力するデコーダ回路であり、16個の出力
端子0.〜016にエンベロープ値に応じたハイレベル
の信号を出力し、1個又は複数のトランジスタTr.を
オンさせる。
The conversion circuit 41 is a decoder circuit that outputs a signal according to the value of input envelope data, and has 16 output terminals 0. ~016, a high level signal corresponding to the envelope value is output, and one or more transistors Tr. Turn on.

パルス発生回路42は、音符切り換え信号に同期して一
定幅の駆動信号(例えば、lOfflsの信号)を出力
する回路であり、この駆動信号は抵抗R1を経てトラン
ジスタTRIのベースに与えられ、ソレノイドコイル1
4aが駆動される。
The pulse generating circuit 42 is a circuit that outputs a drive signal of a constant width (for example, a lOffls signal) in synchronization with the note switching signal. 1
4a is driven.

上記回路によれば、例えばエンベロープデータが4ビツ
トのデータとして最大値の「15」のときには、変換回
路41の出力端子01〜016が全てハイレベルとなり
、16個のトランジスタTr。
According to the above circuit, for example, when the envelope data is the maximum value "15" as 4-bit data, all the output terminals 01 to 016 of the conversion circuit 41 become high level, and the 16 transistors Tr.

〜TrIbが全てオンして、ソレノイドコイル14aに
流れる電流は最大となる。また、エンベロープ値が最小
値の「0」であれば、変換回路41の出力端子0.だけ
がハイレベルとなり、1個のトランジスタだけがオンし
て、ソレノイドコイル14aに流れる電流は最小となる
~TrIb are all turned on, and the current flowing through the solenoid coil 14a becomes maximum. Further, if the envelope value is the minimum value "0", the output terminal 0 of the conversion circuit 41. only one transistor is turned on, and the current flowing through the solenoid coil 14a is minimized.

このように、エンベロープ値に応じて各ソレノイドに流
れる電流が変化し、エンベロープ値が小さいときにはソ
レノイドの駆動力が弱くなり人形の動きが小さくなり、
エンベロープ値が大きいときにはソレノイドの駆動力も
強くなり人形の動きも大きくなる。
In this way, the current flowing through each solenoid changes depending on the envelope value, and when the envelope value is small, the driving force of the solenoid becomes weaker and the doll's movement becomes smaller.
When the envelope value is large, the driving force of the solenoid becomes strong and the movement of the doll becomes large.

以上のように、上記第1及び第2の実施例によれば、楽
音を構成する各種のデータの内エンベロープデータに応
じてソレノイドの駆動パルス幅、あるいは駆動電流を変
化させるようにしたので、個々の楽音に追従させて人形
の動作を微細に制御することが可能となる。
As described above, according to the first and second embodiments, the drive pulse width or drive current of the solenoid is changed according to the envelope data among various data constituting a musical tone. It becomes possible to finely control the movements of the puppets by making them follow the musical sounds of the dolls.

尚、実施例ではエンベロープデータに基づいて人形の動
作を制御しているがこれに限らず、音程データ、音長デ
ータなどの他の楽音データにより制御するようにしても
良い。
In the embodiment, the movement of the doll is controlled based on envelope data, but the control is not limited to this, and may be controlled using other musical sound data such as pitch data and note length data.

また、実施例では1種類の楽音が出力される場合につい
て述べているが、複数の楽音が独立して、あるいは台底
されて同時に出力される場合にも本発明は適用できる。
Furthermore, although the embodiment describes a case where one type of musical tone is output, the present invention can also be applied to a case where a plurality of musical tones are output simultaneously or independently or in parallel.

この場合、本発明によれば、複数の楽音のそれぞれの楽
音データに基づいて、複数の人形をそれぞれ独立に制御
することも、あるいは同一の人形の動作を複数の楽音デ
ータにより制御することも可能となり、従来のアナログ
の楽音信号による制御では実現できない複雑な動作制御
を実現することができ、より多様な動作を人形に行わせ
ることができる。
In this case, according to the present invention, it is possible to control the plurality of dolls independently based on the musical tone data of each of the plurality of musical tones, or to control the movement of the same doll using the plurality of musical tone data. As a result, it is possible to realize complex movement control that cannot be achieved with conventional control using analog musical tone signals, and it is possible to make the doll perform a wider variety of movements.

また、本発明は上述したからくり時計に限らずメロディ
に合わせて人形等を動作させる玩具などの他の装置にも
適用できる。
Further, the present invention is applicable not only to the above-mentioned mechanical clock but also to other devices such as toys that move dolls or the like in accordance with a melody.

〔発明の効果] 本発明によれば、メロディを発生するためのデジタルの
楽音データに基づいて人形等の動作を制御するようにし
たので、楽音に連動させて人形等の動作を微細に制御す
ることが可能となる。
[Effects of the Invention] According to the present invention, since the movements of the dolls, etc. are controlled based on digital musical tone data for generating melodies, the movements of the dolls, etc. can be finely controlled in conjunction with the musical sounds. becomes possible.

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

第1図は、本発明の一実施例のからくり時計の回路構成
図、 第2図は、第1図のソレノイド駆動部の回路構成図、 第3図は、ソレノイド駆動部の動作を示すタイミングチ
ャート、 第4図は第1の実施例のエンベロープ値と駆動パルス幅
との関係を説明する図表、 第5図は、第2の実施例の主要部の回路構成図である。 9・・・メロデイ音データ記憶用ROM、メロディ音合
成回路、 スピーカ、 ソレノイド駆動部、 ソレノイド、 変換回路、 パルス発生回路。
Fig. 1 is a circuit diagram of a mechanical clock according to an embodiment of the present invention; Fig. 2 is a circuit diagram of the solenoid drive section of Fig. 1; and Fig. 3 is a timing chart showing the operation of the solenoid drive section. , FIG. 4 is a chart explaining the relationship between the envelope value and the drive pulse width in the first embodiment, and FIG. 5 is a circuit configuration diagram of the main part of the second embodiment. 9...ROM for storing melody sound data, melody sound synthesis circuit, speaker, solenoid drive unit, solenoid, conversion circuit, pulse generation circuit.

Claims (1)

【特許請求の範囲】  楽音データを記憶する記憶手段と、 この記憶手段に記憶された楽音データを順次読み出しメ
ロディを発生するメロディ発生手段と、所定の動作を行
う動作手段と、 前記記憶手段の楽音データに基づいて作成した駆動信号
を前記動作手段に与え、前記メロディ発生手段から出力
されるメロディに合わせて該動作手段の動作を制御する
制御手段とを備えることを特徴とするメロディ発生装置
[Scope of Claims] Storage means for storing musical sound data; melody generation means for sequentially reading the musical sound data stored in the storage means and generating a melody; operating means for performing a predetermined operation; A melody generating device comprising: control means for applying a drive signal created based on data to the operating means and controlling the operation of the operating means in accordance with the melody output from the melody generating means.
JP19866589A 1989-07-31 1989-07-31 Melody generator Pending JPH0363087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19866589A JPH0363087A (en) 1989-07-31 1989-07-31 Melody generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19866589A JPH0363087A (en) 1989-07-31 1989-07-31 Melody generator

Publications (1)

Publication Number Publication Date
JPH0363087A true JPH0363087A (en) 1991-03-19

Family

ID=16395009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19866589A Pending JPH0363087A (en) 1989-07-31 1989-07-31 Melody generator

Country Status (1)

Country Link
JP (1) JPH0363087A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05329272A (en) * 1992-05-29 1993-12-14 Victor Co Of Japan Ltd Musical performance operation toy

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05329272A (en) * 1992-05-29 1993-12-14 Victor Co Of Japan Ltd Musical performance operation toy

Similar Documents

Publication Publication Date Title
JPS6228472B2 (en)
GB2035624A (en) Electronic timepiece
JPH0120756B2 (en)
US4419919A (en) Electronic musical instrument
US4273019A (en) Electronic tone generator
US4164020A (en) Programmable sound synthesizer
US4945805A (en) Electronic music and sound mixing device
JPH0363087A (en) Melody generator
US4314493A (en) Automatic rhythm pattern accompaniment equipment
JPS6041748B2 (en) electronic clock
US4575832A (en) Device for timepiece electronically signalling a time by melody sounds and time striking sounds
US4488820A (en) Time signalling device for a timepiece which produces musical sounds
US4154132A (en) Rhythm pattern variation device
JPS626240B2 (en)
JPS5917437B2 (en) integrated circuit
GB2079013A (en) Electronic timepiece
JPS6331789B2 (en)
JPH01227081A (en) Semiconductor integrated circuit
JPH0624798Y2 (en) Decorative clock
JP2586443B2 (en) Waveform generator
JPS5882298A (en) Envelope control circuit for electronic musical instrument
US4332181A (en) Electronic musical instrument with means for selecting tone clock numbers
JPS6339079B2 (en)
JPS6211892A (en) Electronic pronunciation apparatus
JPS6030950B2 (en) electronic musical instrument device