JP2001005455A - Melody sound generating device - Google Patents

Melody sound generating device

Info

Publication number
JP2001005455A
JP2001005455A JP11176912A JP17691299A JP2001005455A JP 2001005455 A JP2001005455 A JP 2001005455A JP 11176912 A JP11176912 A JP 11176912A JP 17691299 A JP17691299 A JP 17691299A JP 2001005455 A JP2001005455 A JP 2001005455A
Authority
JP
Japan
Prior art keywords
melody sound
data
sound
scale
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
JP11176912A
Other languages
Japanese (ja)
Inventor
Yukihiro Imai
幸弘 今井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP11176912A priority Critical patent/JP2001005455A/en
Publication of JP2001005455A publication Critical patent/JP2001005455A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a melody sound generating device capable of generating sound composed of plural music scales by a simple circuit as melody sound, and generating it in a sufficient volume and also high quality. SOLUTION: This melody sound generating device comprises a scale data generating circuit 1 for generating music scale data composed of predetermined bits based on a predetermined scale, a melody sound data creating circuit 2 for creating melody sound data composed of plural music scales by summing the plural highest bits of the music scale data generated by the music scale generating circuit 1, a DA converter 7 for converting digital data created by the melody sound data creating circuit 2 into an analog signal, and a piezo-electric buzzer 9 for generating sound by vibrating a piezo-electric vibrator 92 based on the output of this DA converter 7.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ディジタル携帯
電話並びにPHSの着信音や保留音、更には玩具等に内
蔵される簡易メロディ音を発生するメロディ音発生装置
であって、特に、同時に複数の音階からなるメロディ音
を発生するメロディ音発生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a melody sound generator for generating a ring tone or a holding tone of a digital cellular phone or a PHS, and a simple melody sound built in a toy or the like. The present invention relates to a melody sound generating device that generates a melody sound having a musical scale.

【0002】[0002]

【従来の技術】近年、ディジタル携帯電話やPHSが急
速に普及しており、ユーザーに着信があったことを知ら
せる着信音等として、メロディ音を利用するメロディ音
発生装置を搭載した携帯電話等が多く用いられている。
2. Description of the Related Art In recent years, digital mobile phones and PHSs have rapidly spread, and as a ring tone or the like for notifying a user of an incoming call, a mobile phone equipped with a melody sound generator using a melody sound has been proposed. Many are used.

【0003】上記した携帯電話等に内蔵されているメロ
ディ音発生装置としては、そのままのデータ又は圧縮符
号化後のデータを格納した読み出し専用メモリを備え、
この読み出し専用メモリからデータを読み出し、読み出
したデータをそのまま又は伸張符号化してディジタル・
アナログ変換器へ出力するように構成したものがある。
この装置においては、数十キロバイト程度の読み出し専
用メモリを必要とし、回路規模が大きくなるという問題
がある。
A melody sound generator built in the above-mentioned portable telephone or the like is provided with a read-only memory storing data as it is or data after compression encoding.
Data is read from this read-only memory, and the read data is directly
Some are configured to output to an analog converter.
This device requires a read-only memory of about several tens of kilobytes, and has a problem that the circuit scale becomes large.

【0004】また、回路規模を小さくするため、ビジー
・トーンなどの各種単一トーンを発生するトーン・ジェ
ネレータと同一の構成のメロディ音発生装置を搭載した
携帯電話等がある。また、メロディ音を発生するものと
して、印加される電圧により圧電振動子を振動させる圧
電ブザーを用いるものもある。
Further, in order to reduce the circuit scale, there is a portable telephone equipped with a melody sound generator having the same configuration as a tone generator for generating various single tones such as a busy tone. There is also a device that generates a melody sound using a piezoelectric buzzer that vibrates a piezoelectric vibrator by an applied voltage.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
たトーン・ジェネレータと同一の構成のメロディ音発生
装置または圧電ブザーを用いたメロディ音発生装置にお
いては、単一音階からなる主旋律音のみを発生させるも
のであり、聴覚的に貧弱なメロディ音しか発生できない
のが実情である。
However, a melody sound generator having the same configuration as the above tone generator or a melody sound generator using a piezoelectric buzzer generates only a main melody tone having a single scale. In fact, only a poor melody sound can be generated.

【0006】ユーザーにとっては、通常音楽等として耳
にするような複数の音階からなるメロディ音からなる着
信音等が望まれているが、このようなメロディ音を作成
するためには、回路規模が大きくなるという問題があっ
た。また、回路規模が大きくなると、消費電力も多くな
る。しかし、携帯用機器に用いる場合には、消費電力は
できるだけ少ないことが望まれている。
[0006] For a user, a ring tone or the like composed of a plurality of melody sounds that are usually heard as music or the like is desired. However, in order to create such a melody sound, a circuit scale is required. There was a problem of becoming larger. Also, as the circuit size increases, the power consumption also increases. However, when used in portable equipment, it is desired that power consumption be as low as possible.

【0007】ところで、上記した圧電ブザーはスピーカ
に比べて発生音量が少ないため、音量を十分に確保でき
るように使用する必要がある。そこで、従来の圧電ブザ
ーは音の周波数に基づいてパルス信号を発生させ、この
パルス信号により圧電振動子を振動させることで音量を
確保している。圧電ブザーは、単一音階の周波数に基づ
くパルス信号により駆動させると、その周波数に対して
精度良く追従できる。従って、単一音階からなる主旋律
音のみを発生するものに使用する場合には、パルス信号
により駆動させても雑音の少ない音を発生できる。
Since the above-mentioned piezoelectric buzzer generates a lower volume than a speaker, it is necessary to use the buzzer so that the volume can be sufficiently secured. Therefore, the conventional piezoelectric buzzer generates a pulse signal based on the frequency of the sound, and vibrates the piezoelectric vibrator with the pulse signal to secure a sound volume. When the piezoelectric buzzer is driven by a pulse signal based on the frequency of a single musical scale, it can accurately follow the frequency. Therefore, when used for generating only the main melody tone composed of a single scale, a sound with little noise can be generated even when driven by a pulse signal.

【0008】しかし、複数の音階の周波数に基づくパル
ス信号により圧電ブザーを駆動させると、圧電ブザーは
それらの周波数に対して精度良く追従できない。そのた
め、圧電ブザーから発生される音には不要な周波数成
分、即ち雑音を多く含んでしまい、音質が悪くなる。そ
こで、パルス信号により圧電ブザーを駆動させるのでは
なく、所定の周波数を有する音の波形そのものにより圧
電ブザーを駆動させることで音質の低下を回避すること
も考えられる。しかし、音の波形そのものにより圧電ブ
ザーを駆動させた場合、音量が小さくなるという問題が
発生する。
However, if the piezoelectric buzzer is driven by a pulse signal based on the frequencies of a plurality of scales, the piezoelectric buzzer cannot accurately follow those frequencies. Therefore, the sound generated from the piezoelectric buzzer contains many unnecessary frequency components, that is, a lot of noise, and the sound quality deteriorates. Therefore, it is conceivable to avoid the deterioration of sound quality by driving the piezoelectric buzzer with the sound waveform itself having a predetermined frequency instead of driving the piezoelectric buzzer with a pulse signal. However, when the piezoelectric buzzer is driven by the sound waveform itself, there is a problem that the sound volume is reduced.

【0009】この発明は、上述した従来の問題点に鑑み
なされたものにして、圧電ブザーを利用し、簡単で尚且
つ消費電力が少ない回路により、複数の音階から構成さ
れるメロディ音を十分な音量で且つ音質良く発生するメ
ロディ音発生装置の提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned conventional problems, and provides a simple and low power consumption circuit utilizing a piezoelectric buzzer to sufficiently produce a melody sound composed of a plurality of musical scales. It is an object of the present invention to provide a melody sound generating device that generates a sound with high volume and good sound quality.

【0010】[0010]

【課題を解決するための手段】この発明のメロディ音発
生装置は、所定の音階からなるメロディ音を発生するメ
ロディ音発生装置において、所定の音階に基づき所定ビ
ットからなる音階データを発生する音階データ発生手段
と、当該音階データ発生手段より発生される複数の音階
データの上位所定ビットをそれぞれ加算することによっ
て複数音階からなるメロディ音データを作成するメロデ
ィ音データ作成手段と、当該メロディ音データ作成手段
で作成されたディジタルデータをアナログ信号に変換す
るディジタル・アナログ変換手段と、当該ディジタル・
アナログ変換手段の出力に基づいて圧電振動子を振動さ
せてメロディ音を発生する圧電ブザー手段と、を備える
ことを特徴とする。
A melody sound generating device according to the present invention is a melody sound generating device for generating a melody sound having a predetermined scale, wherein the melody sound generating device generates scale data including predetermined bits based on a predetermined scale. Generating means, melody sound data creating means for creating melody sound data composed of a plurality of scales by respectively adding upper predetermined bits of a plurality of scale data generated by the scale data generating means, and melody sound data creating means Digital-to-analog conversion means for converting the digital data created in
A piezoelectric buzzer for generating a melody sound by vibrating the piezoelectric vibrator based on an output of the analog converter.

【0011】また、前記メロディ音データ作成手段は前
記音階データ発生手段より発生される音階データの最上
位ビットを加算することによりメロディ音データを作成
するように構成することができる。
Further, the melody sound data creating means may be configured to create melody sound data by adding the most significant bit of the scale data generated by the scale data generating means.

【0012】上記のように構成することで、複数の音階
から構成される音を、低消費電力の圧電ブザーからメロ
ディ音として発生できる。そして、このメロディ音は、
パルス信号に基づいて圧電ブザーを駆動させて発生され
るのではなく、アナログ信号に基づき圧電ブザーを駆動
させて発生されるものである。これにより、圧電ブザー
は複数の音階の周波数に対して精度良く追従できること
で、雑音を抑えることができ、音質の良いメロディ音を
発生できる。また、複数の音階データの上位所定ビット
のみを加算することに基づいて得られる段階的なアナロ
グ波形によりメロディ音が発生されるため、十分な音量
を得ることができる。重み付けが大きい上位所定ビッ
ト、特に最上位ビットは、音階の特徴を大きく反映す
る。従って、この上位所定ビットが加算されることに基
づいて得られるアナログ信号によりメロディ音が発生さ
れることで、聴覚上高音質の音をメロディ音として発生
できる。
With the above configuration, a sound composed of a plurality of musical scales can be generated as a melody sound from a low-power-consumption piezoelectric buzzer. And this melody sound
It is not generated by driving a piezoelectric buzzer based on a pulse signal, but is generated by driving a piezoelectric buzzer based on an analog signal. Thus, the piezoelectric buzzer can accurately follow the frequencies of a plurality of scales, thereby suppressing noise and generating a melody sound with good sound quality. Further, since a melody sound is generated by a stepwise analog waveform obtained based on adding only upper predetermined bits of a plurality of scale data, a sufficient volume can be obtained. Higher-order predetermined bits, especially higher-order bits, with a large weight largely reflect the characteristics of the scale. Therefore, a melody sound is generated by an analog signal obtained based on the addition of the upper predetermined bits, so that a sound with high auditory quality can be generated as a melody sound.

【0013】[0013]

【発明の実施の形態】以下、この発明の実施の形態を、
図1乃至図3に基づいて説明する。ここで、この実施の
形態においては、ユーザーによって、主旋律音及びコー
ドからなるメロディ音の音階がプログラムされるメロデ
ィ音発生装置について説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described.
This will be described with reference to FIGS. Here, in the present embodiment, a melody sound generating device in which the scale of a melody sound composed of a main melody sound and a chord is programmed by a user will be described.

【0014】図1は、この発明に係るメロディ音発生装
置を、携帯電話やPHSに適用した場合の回路構成図で
ある。このメロディ音発生装置は、音階データ発生回路
1、メロディ音データ作成回路2、シーケンス制御回路
3、テンキー4、デジタル・アナログ変換器6、7(以
下、「D/A変換器6、7」と呼ぶ。)、スピーカ8、
圧電ブザー9、音声符号化/復号化装置10(以下、
「音声CODEC10」と呼ぶ。)及び送信回路11か
ら構成される。
FIG. 1 is a circuit diagram showing a case where the melody sound generating apparatus according to the present invention is applied to a portable telephone or a PHS. This melody sound generator includes a scale data generation circuit 1, a melody sound data creation circuit 2, a sequence control circuit 3, a numeric keypad 4, digital / analog converters 6 and 7 (hereinafter referred to as "D / A converters 6 and 7"). Call.), Speaker 8,
Piezoelectric buzzer 9, audio encoding / decoding device 10 (hereinafter, referred to as
Called "voice CODEC10". ) And a transmission circuit 11.

【0015】音階データ発生回路1は、主旋律音の音階
データ及びコードを構成する音階データを発生するもの
であり、図2に示すように、波形メモリ101、アドレ
ス発生器102及びゲイン調整回路103から構成され
る。一般に、携帯電話等に利用される音階データとして
14ビットからなるディジタルデータが利用されている
ことを踏まえて、本実施形態では、上記主旋律音の音階
データ及びコードを構成する音階データはいずれも14
ビットからなるディジタルデータとして扱うが、本発明
の実施に際しては、これに限定されるものではなく、変
更して実施しても問題ない。
The scale data generation circuit 1 generates scale data of the main melody and scale data constituting a chord. As shown in FIG. 2, a waveform memory 101, an address generator 102, and a gain adjustment circuit 103 generate the scale data. Be composed. In general, in consideration of the fact that 14-bit digital data is used as scale data used in mobile phones and the like, in the present embodiment, the scale data of the main melody and the scale data forming the code are all 14 bits.
Although the digital data is treated as digital data composed of bits, the present invention is not limited to this, and there is no problem even if the present invention is modified.

【0016】上記した波形メモリ101は、単一の正弦
波形の1周期分のデータを記憶している。アドレス発生
器102は、シーケンス制御回路3からの命令に基づい
て、波形メモリ101に記憶された単一の正弦波データ
を、周波数の異なる正弦波データ(14ビット)、即ち
音階データとしてゲイン調整回路103に送ることがで
きるように、波形メモリ101のアドレスを指定する。
ここで、音階データはビットが上位である程、重みが大
きくなっており、最上位ビットの重みが最も大きくなっ
ている。このため、最上位ビットが音階の特徴を最も大
きく反映しており、この最上位ビットを加算して得られ
たメロディ音データに基づきメロディ音を発生させるこ
とで、ユーザーにより要求されている音階にほぼ等しい
音階を圧電ブザー9で発生させることができる。また、
このようにして得られるメロディ音データが後述するD
/A変換器7により変換されて得られるアナログ信号に
は、後述するように不要な音の周波数成分も含まれる
が、この周波数は必要な音の周波数の整数倍であること
が多いため、聴覚上極めて高音質の音をメロディ音とし
て発生できる。ゲイン調整回路103は、波形メモリ1
01から送られてきた音階データのゲインを調整するも
のであり、ゲイン調整をすることによって、メロディ音
の音量を調整することができ、音量が減衰していくよう
なメロディ音を発生することが可能になる。
The waveform memory 101 stores data of one cycle of a single sine waveform. The address generator 102 converts the single sine wave data stored in the waveform memory 101 into sine wave data (14 bits) having different frequencies, ie, scale data, based on a command from the sequence control circuit 3. The address of the waveform memory 101 is designated so that the address can be sent to the address 103.
Here, the scale data has a higher weight as the bit is higher, and the weight of the most significant bit is the highest. For this reason, the most significant bit most strongly reflects the characteristics of the scale, and by generating a melody sound based on the melody sound data obtained by adding this most significant bit, the scale requested by the user can be changed. A substantially equal scale can be generated by the piezoelectric buzzer 9. Also,
The melody sound data obtained in this way is D
The analog signal obtained by the conversion by the / A converter 7 includes unnecessary sound frequency components as described later, but since this frequency is often an integral multiple of the required sound frequency, A very high quality sound can be generated as a melody sound. The gain adjustment circuit 103 includes the waveform memory 1
This is to adjust the gain of the scale data sent from 01. By adjusting the gain, the volume of the melody sound can be adjusted, and a melody sound whose volume decreases is generated. Will be possible.

【0017】メロディ音データ作成回路2は、上記音階
データ発生回路1より発生された複数の音階データに基
づいて、複数音階からなるメロディ音データを作成する
ものであり、図3に示すように、音階データ保持レジス
タ201、セレクタ202、加算器203及び204か
ら構成される。後述するように、この加算器203は音
階データの全ビットを加算してメロディ音データを作成
し、このメロディ音データをスピーカ8に接続されるD
/A変換器6へ送るものである。また、加算器204は
音階データの最上位ビットを加算してメロディ音データ
を作成し、このメロディ音データを圧電ブザー9に接続
されるD/A変換器7へ送るものである。特に、本実施
形態においては、圧電ブザー9からメロディ音を発生さ
せる場合には、音階データ発生回路1より発生された複
数の音階データの最上位ビットを加算することによっ
て、複数音階からなるメロディ音データを作成してい
る。このように、音階データの重みが最も大きい最上位
ビットのみを加算することで、波形の段階を少なくし十
分な音量を得ることを可能にした。
The melody sound data creating circuit 2 creates melody sound data composed of a plurality of scales based on a plurality of scale data generated by the scale data generating circuit 1 as shown in FIG. It comprises a scale data holding register 201, a selector 202, and adders 203 and 204. As will be described later, the adder 203 adds all the bits of the scale data to create melody sound data, and outputs the melody sound data to the D connected to the speaker 8.
/ A converter 6. The adder 204 adds the most significant bit of the scale data to create melody sound data, and sends the melody sound data to the D / A converter 7 connected to the piezoelectric buzzer 9. In particular, in the present embodiment, when the melody sound is generated from the piezoelectric buzzer 9, the most significant bit of the plurality of scale data generated by the scale data generation circuit 1 is added, so that the melody sound including the plurality of scales is added. Creating data. As described above, by adding only the most significant bit having the largest weight of the scale data, it is possible to reduce the number of waveform steps and obtain a sufficient volume.

【0018】上記した音階データ保持レジスタ201
は、後述するシーケンス制御回路3の指示により、ゲイ
ン調整回路103から送られた主旋律音の音階データ及
びこれに伴うコードを構成する音階のデータを一時的に
保持する。保持された音階データの所定ビットは、シー
ケンス制御回路3の指示によりセレクタ202を介し
て、後述する加算器203或いは204に送られる。こ
こで、保持された音階データがセレクタ202を介して
加算器203に送られる場合には、音階データの全ビッ
ト(14ビット)が送られる。一方、保持された音階デ
ータがセレクタ202を介して加算器204に送られる
場合には、音階データの最上位ビットが送られる。
The above-mentioned scale data holding register 201
Temporarily stores the scale data of the main melody tone transmitted from the gain adjustment circuit 103 and the data of the scales constituting the chord accompanying the scale data in accordance with an instruction from the sequence control circuit 3 described later. The predetermined bits of the held scale data are sent to an adder 203 or 204, which will be described later, via a selector 202 according to an instruction from the sequence control circuit 3. Here, when the held scale data is sent to the adder 203 via the selector 202, all bits (14 bits) of the scale data are sent. On the other hand, when the held scale data is sent to the adder 204 via the selector 202, the most significant bit of the scale data is sent.

【0019】なお、音階データ保持レジスタ201に保
持されるデータの所定ビットを、セレクタ202によ
り、加算器203或いは204のいずれかに選択して与
えることとしているのは以下の理由による。圧電ブザー
9は、低消費電力であるが、スピーカ8に比べると、発
生音量等が少ない。また、スピーカ8は、比較的大きな
音量を出すことはできるが、振動板をマグネットで駆動
する必要があるため、消費電力は多くなる。そこで、そ
れぞれの用途に応じて、この実施の形態においては、テ
ンキー4等を用いてユーザーがスピーカ8又は圧電ブザ
ー9を選択することにより、セレクタ202が音階デー
タ保持レジスタ201に保持されるデータの所定ビット
を加算器203、D/A変換器6を介してスピーカ8に
与えるか、加算器204、D/A変換器7を介して圧電
ブザー9に与えるか選択して切り換えることができるよ
うに構成している。なお、本実施形態におけるスピーカ
8は、受話側スピーカとしても使用され、特に図示しな
いが、マグネット、振動板及びその駆動アンプ等を備え
る。圧電ブザー9については、後述する。
The reason why a predetermined bit of the data held in the scale data holding register 201 is selectively given to either the adder 203 or 204 by the selector 202 is as follows. The piezoelectric buzzer 9 has low power consumption, but generates less sound volume than the speaker 8. Although the speaker 8 can output a relatively large volume, the power consumption increases because the diaphragm needs to be driven by a magnet. Therefore, in this embodiment, the user selects the loudspeaker 8 or the piezoelectric buzzer 9 using the numeric keypad 4 or the like according to the respective applications, so that the selector 202 stores the data held in the scale data holding register 201. It is possible to selectively switch between providing a predetermined bit to the speaker 8 via the adder 203 and the D / A converter 6 or providing the predetermined bit to the piezoelectric buzzer 9 via the adder 204 and the D / A converter 7. Make up. Note that the speaker 8 in the present embodiment is also used as a speaker on the receiving side, and includes a magnet, a diaphragm, and a drive amplifier thereof, although not particularly shown. The piezoelectric buzzer 9 will be described later.

【0020】加算器203は音階データ保持レジスタ2
01より送られた音階データの全ビット、本実施形態で
は14ビットを複数加算してメロディ音データを作成
し、このメロディ音データをスピーカ8に接続されるD
/A変換器6へ送る。また、加算器204は音階データ
保持レジスタ201より送られた音階データの最上位ビ
ットを複数加算してメロディ音データを作成し、このメ
ロディ音データを圧電ブザー9に接続されるD/A変換
器7へ送る。従って、加算器204で加算されることに
より得られるメロディ音データのビット数は、加算器2
03で加算されることにより得られるメロディ音データ
のビット数より少なくなる。この具体的説明については
後述する。
The adder 203 is a scale data holding register 2
The melody sound data is created by adding a plurality of all bits of the scale data sent from 01, in this embodiment, 14 bits, and this melody sound data is connected to the speaker 8 connected to the D.
/ A converter 6 The adder 204 adds a plurality of the most significant bits of the scale data sent from the scale data holding register 201 to create melody sound data, and converts the melody sound data to a D / A converter connected to the piezoelectric buzzer 9. Send to 7. Therefore, the number of bits of the melody sound data obtained by the addition by the adder 204 is
03 is smaller than the bit number of the melody sound data obtained by addition. This specific description will be described later.

【0021】シーケンス制御回路3は、予めユーザーに
よりテンキー4を介して記憶させられた制御手順に基づ
いて、前記音階データ発生回路1及びメロディ音データ
作成回路2をシーケンス制御するものである。具体的に
は、このシーケンス制御回路3は、主旋律音の音階デー
タとコードを構成する音階データとを発生すべき旨の指
示を、音階データ発生回路1に対して行う。ここで、シ
ーケンス制御回路3は、メロディ音の主旋律音の音階
と、コードを構成する音階の一つとが一致するときは、
その一致する音階のうち主旋律音の音階のデータのみを
メロディ音データとして発生するように、音階データ発
生回路1を制御する。また、このシーケンス制御回路3
は、メロディ音データ作成回路2を構成する音階データ
保持レジスタ201に保持される音階データのビット中
で、どれだけのビットを加算器203、或いは加算器2
04に送るかを、音階データ保持レジスタ201に指示
する。具体的には、加算器203に送る場合には、音階
データ保持レジスタ201に保持される音階データの全
ビットを送るように指示し、加算器204に送る場合に
は、音階データ保持レジスタ201に保持される音階デ
ータの最上位ビットを送るように指示する。また、シー
ケンス制御回路3は、このような音階データを加算器2
03に送るか、或いは加算器204に送るかの選択につ
いて、セレクタ202を制御する。
The sequence control circuit 3 controls the sequence of the scale data generation circuit 1 and the melody sound data creation circuit 2 based on a control procedure previously stored by the user via the numeric keypad 4. Specifically, the sequence control circuit 3 instructs the scale data generation circuit 1 to generate the scale data of the main melody and the scale data forming the chord. Here, when the scale of the main melody note of the melody sound matches one of the scales of the chord,
The scale data generation circuit 1 is controlled so that only the data of the scale of the main melody note among the matched scales is generated as melody sound data. The sequence control circuit 3
Is the number of bits of the scale data held in the scale data holding register 201 included in the melody sound data creation circuit 2, and how many bits are added to the adder 203 or the adder 2.
04 is instructed to the scale data holding register 201. Specifically, when sending to the adder 203, it is instructed to send all bits of the scale data held in the scale data holding register 201, and when sending to the adder 204, the scale data holding register 201 is instructed. Indicates that the most significant bit of the scale data to be retained is sent. Further, the sequence control circuit 3 adds such scale data to the adder 2.
The selector 202 is controlled to select whether to send to the adder 03 or to the adder 204.

【0022】このシーケンス制御回路3が行う音階デー
タ発生回路1及びメロディ音データ作成回路2の制御手
順は、ユーザーにより記憶させられる。特に本実施形態
では、テンキー4の操作によってコード指示されること
により、シーケンス制御回路3は指示されたコードの音
階データを発生させるための制御手順を記憶する。
The control procedure of the scale data generation circuit 1 and the melody sound data creation circuit 2 performed by the sequence control circuit 3 is stored by the user. In particular, in the present embodiment, when a chord is designated by operating the numeric keypad 4, the sequence control circuit 3 stores a control procedure for generating scale data of the designated chord.

【0023】テンキー4は、通常は相手側の電話番号等
を入力するものであるが、特に本実施形態においては、
このテンキー4を所定の手続きに従って操作することに
より、ユーザーは自分の好むメロディ音を作成すること
が可能になる。具体的には、メロディ音を構成する主旋
律音を作成するときは、ユーザーは所定の手続きに従っ
て、音階を一つずつ指定して行く。一方、メロディ音を
構成するコードを指定するときは、所定の手続きに従っ
て、コード指定することにより、コードを構成する和音
等のプログラムを行う。また、このテンキー4は、所定
の手続きに従って操作することにより、メロディ音の発
生先の変更を指示できる。即ち、スピーカ8よりメロデ
ィ音を発生するか、圧電ブザー9より発生するかを選択
し、その選択に従ってセレクタ202が切り換えられ
る。
The numeric keypad 4 is usually used for inputting a telephone number or the like of the other party, but in this embodiment, in particular,
By operating the numeric keypad 4 in accordance with a predetermined procedure, the user can create his favorite melody sound. Specifically, when creating the main melody tone that constitutes the melody tone, the user specifies the scale one by one according to a predetermined procedure. On the other hand, when a chord constituting a melody tone is designated, a chord constituting chord or the like is constituted by designating the chord according to a predetermined procedure. By operating the numeric keypad 4 according to a predetermined procedure, it is possible to instruct a change of a melody sound generation destination. That is, a selection is made as to whether a melody sound is generated from the speaker 8 or a melody sound is generated from the piezoelectric buzzer 9, and the selector 202 is switched according to the selection.

【0024】D/A変換器6は、メロディ音データ作成
回路2の加算器203から送られてきたディジタルのメ
ロディ音データを、アナログ信号へ変換するものであ
る。このアナログ信号はメロディ音データのビット数に
応じた段階レベルにより表されるが、加算器203から
送られてくるメロディ音データのビット数が上述したよ
うに多いため、この段階レベルも多くなり極めて滑らか
な波形になる。そして、このアナログ信号へ変換された
メロディ音データはスピーカ8に与えられ、このスピー
カ8を介して着信音や保留音として発生される。これに
よってユーザーに着信があったこと等を告知する。ま
た、ディジタル信号としてのメロディ音データは、音声
CODEC10及び送信回路11を介して、出力させる
ことができ、相手側端末の受話側スピーカに保留音とし
て発生させることができる。
The D / A converter 6 converts the digital melody sound data sent from the adder 203 of the melody sound data creation circuit 2 into an analog signal. This analog signal is represented by a step level corresponding to the number of bits of the melody sound data. However, since the number of bits of the melody sound data sent from the adder 203 is large as described above, the level of the melody sound also increases, and It has a smooth waveform. Then, the melody sound data converted into the analog signal is given to the speaker 8, and is generated as a ringtone or a hold tone via the speaker 8. Thus, the user is notified that there is an incoming call. Also, the melody sound data as a digital signal can be output via the sound CODEC 10 and the transmission circuit 11, and can be generated as a hold sound in the receiving speaker of the partner terminal.

【0025】D/A変換器7は、メロディ音データ作成
回路2の加算器204から送られてきたメロディ音デー
タを、アナログ信号へ変換するものである。このアナロ
グ信号は、加算器204から送られてきたメロディ音デ
ータのビット数に応じた段階レベルにより表される。こ
こで、加算器204から送られてきたメロディ音データ
の取り得る値は、後に具体的に説明するように、メロデ
ィ音を構成する音の数に1を足したパターンある。従っ
て、このメロディ音データをD/A変換器7により変換
すると、そのアナログ信号の段階レベルはメロディ音を
構成する音の数に1を足したものとなり、D/A変換器
6により変換されて得られるアナログ信号の段階レベル
より遙に小さくなる。このため、圧電ブザー9から十分
な音量でメロディ音を発生させることができる。
The D / A converter 7 converts the melody sound data sent from the adder 204 of the melody sound data creation circuit 2 into an analog signal. This analog signal is represented by a step level corresponding to the number of bits of the melody sound data sent from the adder 204. Here, the possible value of the melody sound data sent from the adder 204 is a pattern obtained by adding one to the number of sounds constituting the melody sound, as will be specifically described later. Therefore, when the melody sound data is converted by the D / A converter 7, the level of the analog signal becomes one obtained by adding 1 to the number of sounds constituting the melody sound, and is converted by the D / A converter 6. It is much smaller than the level of the analog signal obtained. Therefore, a melody sound can be generated from the piezoelectric buzzer 9 at a sufficient volume.

【0026】そして、このD/A変換器7により得られ
るアナログ信号に基づき、直接的に圧電ブザー9が駆動
されるため、パルス信号により圧電ブザー9を駆動させ
る場合に比べて、雑音を抑えることができ、音質の良い
メロディ音を発生できる。即ち、パルス信号により圧電
ブザー9を駆動させるものではないので、圧電ブザー9
は複数の音階の周波数に対して精度良く追従することが
でき、音質の良いメロディ音を発生できる。ところで、
このアナログ信号は音階データの最上位ビットのみを加
算することに基づいて得られるものであるため、全ビッ
トを加算して得られるものに比べると、不要な音の周波
数成分を多く含んでしまう。不要な周波数成分は雑音の
原因ともなり得るが、このアナログ信号は重み付けが最
も大きい最上位ビットが加算されることに基づいて得ら
れるものであり、このアナログ信号に含まれる不要な音
の周波数成分は、必要とされる音の周波数の整数倍であ
るものが多い。そのため、ユーザーが音として聴いたと
きの違和感は少ない。従って、かかる特性を利用したメ
ロディ音発生装置は、聴覚上極めて高音質の音をメロデ
ィ音として発生できる。
Since the piezoelectric buzzer 9 is directly driven based on the analog signal obtained by the D / A converter 7, noise can be suppressed as compared with the case where the piezoelectric buzzer 9 is driven by a pulse signal. And a melody sound with good sound quality can be generated. That is, since the piezoelectric buzzer 9 is not driven by the pulse signal, the piezoelectric buzzer 9 is not driven.
Can accurately follow the frequencies of a plurality of scales, and can generate a melody sound with good sound quality. by the way,
Since this analog signal is obtained based on adding only the most significant bit of the scale data, the analog signal contains many unnecessary sound frequency components as compared with a signal obtained by adding all bits. Unwanted frequency components can be a source of noise, but this analog signal is obtained based on the addition of the most significant bit with the highest weight. Is often an integral multiple of the required sound frequency. For this reason, there is little discomfort when the user listens as sound. Therefore, the melody sound generating device utilizing such characteristics can generate a sound with extremely high sound quality as a melody sound.

【0027】圧電ブザー9は、電圧を印加することによ
り圧電振動子92を振動させて音を発生するものであ
る。この圧電ブザー9は、具体的には圧電振動子駆動回
路91及び圧電振動子92を備える。圧電振動子駆動回
路91はD/A変換器7から所定の段階レベルからなる
アナログ信号を受け、このアナログ信号に応じた所定電
圧を発生させ、圧電振動子92に与える。ここで、所定
電圧は圧電振動子92を所定値のたわみで振動させるの
に適切な値が選ばれる。そして、圧電振動子92は、与
えられた所定電圧と同一の周波数で振動し、その周波数
に対応する所定の音色を発生する。
The piezoelectric buzzer 9 generates sound by vibrating the piezoelectric vibrator 92 by applying a voltage. The piezoelectric buzzer 9 specifically includes a piezoelectric vibrator drive circuit 91 and a piezoelectric vibrator 92. The piezoelectric vibrator drive circuit 91 receives an analog signal having a predetermined step level from the D / A converter 7, generates a predetermined voltage according to the analog signal, and supplies the generated voltage to the piezoelectric vibrator 92. Here, an appropriate value is selected as the predetermined voltage so as to vibrate the piezoelectric vibrator 92 with a predetermined value of deflection. Then, the piezoelectric vibrator 92 vibrates at the same frequency as the given predetermined voltage, and generates a predetermined tone color corresponding to the frequency.

【0028】次に、この実施形態におけるメロディ音発
生装置における動作を説明する。
Next, the operation of the melody sound generating device according to this embodiment will be described.

【0029】まず、前提として、シーケンス制御回路3
には、ユーザーがテンキー4を所定の手続きに従って操
作したことに基づいて、メロディ音としての主旋律音並
びにコードを発生させるための制御手順が記憶されてい
る。また、ユーザーは圧電ブザー9よりメロディ音を発
生させるようにテンキー4を用いて指示している。この
ため、セレクタ202は、音階データ保持レジスタ20
1からの出力が、加算器204に与えられるように切換
られている。また、ここではコードを構成する音数を2
つとして説明する。従って、メロディ音を構成する音の
数は、主旋律音の音数1つとコードの音数2つとの合計
3つになる。
First, it is assumed that the sequence control circuit 3
Stores a control procedure for generating a main melody sound and a chord as a melody sound based on a user's operation of the numeric keypad 4 according to a predetermined procedure. Further, the user gives an instruction using the numeric keypad 4 to generate a melody sound from the piezoelectric buzzer 9. Therefore, the selector 202 sets the scale data holding register 20
The output from 1 is switched to be provided to adder 204. Here, the number of notes that make up the chord is 2
It will be described as one. Therefore, the number of sounds constituting the melody sound is three in total, one sound of the main melody sound and two sounds of the chord.

【0030】そして、着信等がある旨をユーザーにメロ
ディ音によって告知するときは、シーケンス制御回路3
は予め記憶した制御手順に基づいて、音階データ発生回
路1に音階データを発生するための命令を行う。即ち、
シーケンス制御回路3は、主旋律音の音階データ並びに
コードの音階データを発生すべき旨の指示を、音階デー
タ発生回路1に対して行う。このとき、主旋律音の音階
とコードを構成する音階の一つとが一致するときは、シ
ーケンス制御回路3は、どちらか一方の音階のみを発生
するように、この実施形態においては、その一致する音
階のうち主旋律音の音階データのみを発生するように、
音階データ発生回路1に指示する。
When the user is notified that there is an incoming call or the like by a melody sound, the sequence control circuit 3
Performs an instruction for generating scale data to the scale data generation circuit 1 based on a control procedure stored in advance. That is,
The sequence control circuit 3 instructs the scale data generation circuit 1 to generate the scale data of the main melody and the scale data of the chord. At this time, when the scale of the main melody note matches one of the scales constituting the chord, the sequence control circuit 3 generates only one of the scales in this embodiment. To generate only the scale data of the main melody,
It instructs the scale data generation circuit 1.

【0031】そして、音階データ発生回路1のアドレス
発生器102は、シーケンス制御回路3によって指示さ
れた音階のデータを波形メモリ101で発生させるべ
く、波形メモリ101のアドレスを指示する。そして、
アドレス指示されることにより、所定の周波数の正弦波
データが、14ビットからなる音階データとして、波形
メモリ101からゲイン調整回路103に送られる。ゲ
イン調整回路103は、シーケンス制御回路3からの命
令により、波形メモリ101から送られた音階データの
ゲインを調整する。そして、ゲイン調整された音階デー
タは、メロディ音データ作成回路2に送られる。
Then, the address generator 102 of the scale data generation circuit 1 specifies an address of the waveform memory 101 so that the data of the scale specified by the sequence control circuit 3 is generated in the waveform memory 101. And
When the address is specified, sine wave data of a predetermined frequency is sent from the waveform memory 101 to the gain adjustment circuit 103 as 14-bit scale data. The gain adjustment circuit 103 adjusts the gain of the scale data sent from the waveform memory 101 according to a command from the sequence control circuit 3. Then, the scale data whose gain has been adjusted is sent to the melody sound data creation circuit 2.

【0032】メロディ音データ作成回路2の音階データ
保持レジスタ201は、シーケンス制御回路3の指示に
より、ゲイン調整回路103から送られた14ビットか
らなる主旋律音の音階データ及びこれに伴うコードを構
成する音階のデータを一時的に保持する。そして、シー
ケンス制御回路3は音階データ保持レジスタ201に対
して、主旋律音及びコードからなる3音の音階データに
おけるそれぞれの最上位ビットを、セレクタ202を介
して加算器204に送るように指示する。加算器204
ではこれらの最上位ビットを加算して、メロディ音デー
タを作成する。ここで、メロディ音データは、例えば3
音の音階データにおける最上位ビットが全て「1」であ
れば、「1」+「1」+「1」=「11」となり、ま
た、3音の音階データにおける最上位ビットが全て
「0」であれば、「0」+「0」+「0」=「00」と
なる。従って、加算器204で得られるメロディ音デー
タは「00」、「01」、「10」、「11」の4パタ
ーンがある。即ち、メロディ音データの取りうる値はメ
ロディ音を構成する音の数(3つ)に1を足したもの、
4パターンある。そして、このメロディ音データ(2ビ
ット)は、D/A変換器7へ送られる。この場合におい
て、D/A変換器7は少なくとも2ビットに対応するも
のであればよい。
The scale data holding register 201 of the melody sound data creating circuit 2 configures the scale data of the 14-bit main melody sound sent from the gain adjusting circuit 103 and the code associated therewith in accordance with the instruction of the sequence control circuit 3. Temporarily retain scale data. Then, the sequence control circuit 3 instructs the scale data holding register 201 to send the most significant bits of the scale data of the three tones composed of the main melody tone and the chord to the adder 204 via the selector 202. Adder 204
Then, these most significant bits are added to create melody sound data. Here, the melody sound data is, for example, 3
If the most significant bits in the scale data of the sound are all “1”, “1” + “1” + “1” = “11”, and the most significant bits in the scale data of the three sounds are all “0”. In this case, “0” + “0” + “0” = “00”. Therefore, the melody sound data obtained by the adder 204 has four patterns of “00”, “01”, “10”, and “11”. That is, the possible value of the melody sound data is obtained by adding 1 to the number (three) of the sounds constituting the melody sound,
There are four patterns. Then, the melody sound data (2 bits) is sent to the D / A converter 7. In this case, the D / A converter 7 only needs to correspond to at least 2 bits.

【0033】ディジタル信号としてのメロディ音データ
を得たD/A変換器7は、上記2ビットからなるメロデ
ィ音データを4段階レベルからなるアナログ信号に変換
する。具体的には、メロディ音データが上記のように
「11」(十進数では3に相当)であれば、段階レベル
を3にし、メロディ音データが上記のように「00」
(十進数では0に相当)であれば、段階レベルを0にす
る。このようにアナログ信号の段階レベルを4つの段階
レベルのいずれかにする。即ち、このメロディ音データ
をD/A変換器7により変換すると、そのアナログ信号
の段階レベルの数はメロディ音を構成する音の数(3
つ)に1を足したものとなる。
The D / A converter 7 having obtained the melody sound data as a digital signal converts the melody sound data of 2 bits into an analog signal of 4 levels. Specifically, if the melody sound data is “11” (corresponding to 3 in decimal) as described above, the step level is set to 3, and the melody sound data is “00” as described above.
If (equivalent to 0 in decimal number), the step level is set to 0. In this way, the step level of the analog signal is set to one of the four step levels. That is, when the melody sound data is converted by the D / A converter 7, the number of step levels of the analog signal becomes the number of sounds (3
1) plus one.

【0034】このようにして所定の段階レベル、本実施
形態では4段階レベルのアナログ信号に変換されたメロ
ディ音データが、圧電ブザー9に与えられる。圧電ブザ
ー9における圧電振動子駆動回路91は、D/A変換器
7から与えられる4段階レベルからなるアナログ信号に
基づいて所定値の電圧を発生し、圧電振動子92に与え
る。圧電振動子92は、与えられた電圧と同一の周波数
で所定値のたわみをもって振動し、その周波数に対応す
る所定の音色を発生する。この結果、圧電ブザー9から
メロディ音が着信音として発生され、ユーザーは複数の
音階からなるメロディ音を聴くことができる。
The melody sound data converted into an analog signal having a predetermined level, in this embodiment, four levels, is supplied to the piezoelectric buzzer 9. The piezoelectric vibrator drive circuit 91 in the piezoelectric buzzer 9 generates a voltage of a predetermined value based on an analog signal having four levels provided from the D / A converter 7 and supplies the voltage to the piezoelectric vibrator 92. The piezoelectric vibrator 92 vibrates with a predetermined value of deflection at the same frequency as the applied voltage, and generates a predetermined timbre corresponding to the frequency. As a result, a melody sound is generated from the piezoelectric buzzer 9 as a ringtone, and the user can listen to a melody sound composed of a plurality of scales.

【0035】尚、スピーカ8からメロディ音を発生する
ときは、音階データ保持レジスタ201に保持されてい
る複数音の音階データの全ビット(14ビット)が、音
の数だけセレクタ202を介して、加算器203へ与え
られる。加算器203では、これらの音階データを加算
してメロディ音データを作成する。このメロディ音デー
タはD/A変換器6に送られ、多段階からなる極めて滑
らかなアナログ信号に変換される。そして、このアナロ
グ信号はスピーカ8に与えられ、スピーカ8から着信音
として発生される。
When a melody sound is generated from the speaker 8, all bits (14 bits) of the scale data of a plurality of sounds stored in the scale data holding register 201 are transmitted by the selector 202 through the selector 202 by the number of sounds. This is provided to the adder 203. The adder 203 adds these scale data to create melody sound data. The melody sound data is sent to the D / A converter 6, where it is converted into an extremely smooth analog signal having multiple stages. Then, this analog signal is given to the speaker 8 and is generated from the speaker 8 as a ringtone.

【0036】従って、斯かる構成を特徴とする本実施形
態のメロディ音発生装置は、以下のような利点を有す
る。
Therefore, the melody sound generating apparatus according to the present embodiment having such a configuration has the following advantages.

【0037】主旋律音及びコードからなる複数の音階、
本実施形態では3音階から構成される音を、低消費電力
の圧電ブザー9からメロディ音として発生できる。これ
により、我々が通常音楽として耳にするような複数の音
階からなるメロディ音を圧電ブザー9を介して着信音等
として聴くことができる。
A plurality of scales composed of the main melody and chords;
In the present embodiment, a sound composed of three scales can be generated as a melody sound from the piezoelectric buzzer 9 with low power consumption. As a result, a melody sound composed of a plurality of musical scales that we usually hear as music can be heard via the piezoelectric buzzer 9 as a ringtone or the like.

【0038】また、パルス信号に基づいて圧電ブザー9
を駆動させるのではなく、アナログ信号に基づき圧電ブ
ザー9を駆動させるため、圧電ブザー9は複数の音階の
周波数に精度良く追従できる。そのため、雑音を抑える
ことができ、音質の良いメロディ音を発生できる。さら
に、アナログ信号は4段階レベルからなる波形であり、
スピーカ8を駆動させる段階レベルと比較しても、その
段階レベルは多くないため十分な音量を得ることもでき
る。また、重み付けの最も大きい最上位ビットが加算さ
れることに基づきアナログ信号が得られ、このアナログ
信号に基づきメロディ音が発生されるため、要求されて
いる音階にほぼ等しい音階を圧電ブザー9で発生させる
ことができる。また、メロディ音に含まれる不要な音の
周波数成分は、必要な音の周波数の整数倍であることが
多いため、ユーザーに対して聴覚上極めて高音質の音を
メロディ音として発生できる。
Further, based on the pulse signal, the piezoelectric buzzer 9
Since the piezoelectric buzzer 9 is driven based on an analog signal instead of driving the piezoelectric buzzer, the piezoelectric buzzer 9 can accurately follow the frequencies of a plurality of musical scales. Therefore, noise can be suppressed, and a melody sound with good sound quality can be generated. Further, the analog signal is a waveform having four levels,
Even when compared with the step level at which the speaker 8 is driven, a sufficient volume can be obtained because the step level is not large. Also, an analog signal is obtained based on the addition of the most significant bit having the highest weight, and a melody sound is generated based on the analog signal. Can be done. In addition, the frequency component of the unnecessary sound included in the melody sound is often an integral multiple of the frequency of the required sound, so that the user can generate a sound with extremely high sound quality as a melody sound.

【0039】また、コードは、コードを指示することに
より行うことができるため、ユーザーはコードを構成す
る音階を逐一指定する必要がなく、容易にコードの和音
データ等をプログラムすることができ、ユーザーがメロ
ディを作成する作業を軽減できる。
Further, since the chord can be executed by designating the chord, the user does not need to specify the scales constituting the chord one by one, and the chord data of the chord can be easily programmed. Can reduce the work of creating a melody.

【0040】さらに、一般に、二つの同一音階データを
加算するとすると、同一音階データを構成する正弦波の
周波数の位相が一致している場合には、音量は2倍にな
ってしまい、一方、同一音階データを構成する正弦波の
周波数の位相が180度ずれている場合には、音量はゼ
ロになってしまう。そこで、この実施の形態において
は、主旋律音の音階とコードを構成する音階の一つとが
一致する場合には、シーケンス制御回路3は、その一致
する音階のうち主旋律音の音階のデータのみを発生する
ように、音階データ発生回路1に指示する。これによ
り、音量が2倍になったり、或いは音量がゼロになるこ
とにより、不自然な音が発生してしまうという不合理性
を回避することができる。
In general, when two identical scale data are added, if the phases of the frequencies of the sine waves constituting the same scale data coincide with each other, the sound volume is doubled. If the phase of the frequency of the sine wave constituting the scale data is shifted by 180 degrees, the volume will be zero. Therefore, in this embodiment, when the scale of the main melody note matches one of the scales constituting the chord, the sequence control circuit 3 generates only data of the scale of the main melody note among the matched scales. To the scale data generation circuit 1 so as to perform the operation. As a result, it is possible to avoid the irrationality that an unnatural sound is generated when the sound volume is doubled or the sound volume becomes zero.

【0041】ところで、この発明に係るメロディ音発生
装置を実施する場合には、上述した実施の形態に限定さ
れるものではなく、以下の態様で実施することも可能で
ある。
The melody sound generator according to the present invention is not limited to the above-described embodiment, but may be implemented in the following manner.

【0042】上記実施の形態においては、メロディ音を
構成する3音の最上位ビットを加算することによりメロ
ディ音データを作成し、このメロディ音データをD/A
変換器7へ送っているが、これに限定されるものではな
く、例えばメロディ音を構成する3音の音階データの上
位2ビットを加算することによりメロディ音データを作
成し、このメロディ音データをD/A変換器7へ送って
もよい。そして、メロディ音を構成する3音の音階デー
タにおける上位2ビットが全て「11」であれば、加算
器204で得られるデータは「11」+「11」+「1
1」=「1001」(十進数では9に相当)となること
より、D/A変換器7では段階レベルを9にすればよ
く、また上位2ビットが全て「00」であれば、加算器
204で得られるデータは「00」+「00」+「0
0」=「0000」(十進数では0に相当)となること
より、D/A変換器7では段階レベルを0にすればよ
い。即ち、この場合はアナログ信号を10段階レベルで
割り当てればよい。なお、このときは、D/A変換器7
は少なくとも4ビットのデータをアナログ信号に変換で
きるものを使用する。これによれば、段階レベルの数が
10になるため、上記実施形態で示した段階レベル4の
場合に比べて音量が下がったとしても、圧電ブザー9の
音質が向上する。よって、D/A変換器7で加算される
音階データの上位所定ビットをどれだけのビットにする
かは、メロディ音発生装置に要求される音量と音質とを
比較考量して決めればよい。
In the above embodiment, the melody sound data is created by adding the most significant bits of the three sounds that make up the melody sound, and the melody sound data is stored in the D / A
Although it is sent to the converter 7, the present invention is not limited to this. For example, the melody sound data is created by adding the upper two bits of the scale data of the three sounds constituting the melody sound. It may be sent to the D / A converter 7. If the upper two bits of the scale data of the three tones constituting the melody sound are all “11”, the data obtained by the adder 204 is “11” + “11” + “1”.
Since "1" = "1001" (corresponding to 9 in decimal), the D / A converter 7 may set the step level to 9, and if the upper two bits are all "00", the adder The data obtained in 204 is “00” + “00” + “0”
Since “0” = “0000” (corresponding to 0 in decimal number), the D / A converter 7 may set the step level to 0. That is, in this case, analog signals may be assigned at 10 levels. In this case, the D / A converter 7
Uses one that can convert at least 4-bit data into an analog signal. According to this, since the number of step levels is 10, even if the volume is lower than in the case of step level 4 shown in the above embodiment, the sound quality of the piezoelectric buzzer 9 is improved. Therefore, how many bits are set to the upper predetermined bits of the scale data added by the D / A converter 7 may be determined by comparing the sound volume and sound quality required of the melody sound generator.

【0043】上記実施の形態においては、加算器204
で加算して得られたメロディ音データを、D/A変換器
7によりアナログ信号に変換し圧電ブザー9に送ってい
るが、加算器204で加算して得られたメロディ音デー
タを、D/A変換器6によりアナログ信号に変換し圧電
ブザー9に送るようにしてもよい。そのとき、D/A変
換器6の出力側にセレクタを設け、アナログ信号をスピ
ーカ8或いは圧電ブザー9のいずれに出力するかを選択
するようにすればよい。D/A変換器6は、上述したよ
うに、音階データの全ビットを加算して得られたメロデ
ィ音データをアナログ信号に変換できるものであるた
め、加算器204により加算されて得られたメロディ音
データをアナログ信号に変換することができる。これに
より、D/A変換器7を削除できるため、メロディ音発
生回路の構成を簡易にでき、製造コストの削減等を図る
ことができる。
In the above embodiment, the adder 204
The melody sound data obtained by the addition is converted into an analog signal by the D / A converter 7 and sent to the piezoelectric buzzer 9. The signal may be converted into an analog signal by the A converter 6 and sent to the piezoelectric buzzer 9. At this time, a selector may be provided on the output side of the D / A converter 6 to select whether to output an analog signal to the speaker 8 or the piezoelectric buzzer 9. As described above, the D / A converter 6 can convert the melody sound data obtained by adding all the bits of the scale data to an analog signal, so that the melody added by the adder 204 is obtained. Sound data can be converted to an analog signal. As a result, since the D / A converter 7 can be omitted, the configuration of the melody sound generation circuit can be simplified, and the manufacturing cost can be reduced.

【0044】上記実施の形態においては、主旋律音の音
階データ並びにコードの音階データを、音階データ発生
回路1において発生させ、メロディ音データ作成回路2
がこれらの複数の音階データを加算してメロディ音デー
タを作成することとしているが、例えば、シンバルのよ
うなリズム楽器が奏でるようなリズム音のデータを、リ
ズム音のデータを発生することができる回路により発生
させて、メロディ音データ作成回路2がこのリズム音デ
ータも加算して、メロディ音データを作成するようにし
てもよい。これによれば、リズム音をメロディ音の一つ
として発生させることができる。
In the above embodiment, the scale data of the main melody and the scale data of the chord are generated in the scale data generation circuit 1 and the melody sound data generation circuit 2
Is to create melody sound data by adding these plurality of scale data. For example, rhythm sound data such as a rhythm instrument such as a cymbal can be generated as rhythm sound data. The melody sound data may be generated by a circuit, and the melody sound data generation circuit 2 may add the rhythm sound data to generate melody sound data. According to this, the rhythm sound can be generated as one of the melody sounds.

【0045】また、上記実施の形態においては、波形メ
モリ101は、単一の正弦波形の1周期分のデータをメ
モリとして記憶しているが、1周期分のデータに限定さ
れるものではなく、音階データ発生回路1が1周期分の
データを発生するために十分なデータが記憶されていれ
ばよい。例えば、波形メモリ101が記憶するメモリを
単一の正弦波形の4分の1周期分にしておき、アドレス
発生器102がそのメモリの読み出し順序と極性を制御
することにより、音階データ発生回路1が1周期分のデ
ータを発生するようにしてもよい。
Further, in the above embodiment, the waveform memory 101 stores data of one cycle of a single sine waveform as a memory, but is not limited to data of one cycle. It is sufficient that sufficient data is stored for the scale data generation circuit 1 to generate data for one cycle. For example, the memory stored in the waveform memory 101 is set to a quarter cycle of a single sine waveform, and the address generator 102 controls the reading order and polarity of the memory, so that the scale data generation circuit 1 Data for one cycle may be generated.

【0046】また、上記実施の形態においては、ゲイン
調整回路103を音階データ発生回路1の構成要素の一
つとしているが、このゲイン調整回路103は絶対不可
欠な構成要素ではない。ゲイン調整回路103はゲイン
を調整するためのものであり、ゲイン調整回路103が
無い場合は、ゲインは調整されないが、主旋律音とコー
ドからなるメロディ音を発生させることは可能である。
In the above embodiment, the gain adjustment circuit 103 is one of the components of the musical scale data generation circuit 1, but this gain adjustment circuit 103 is not an essential component. The gain adjustment circuit 103 is for adjusting the gain. When the gain adjustment circuit 103 is not provided, the gain is not adjusted, but it is possible to generate a melody sound composed of a main melody sound and a chord.

【0047】[0047]

【発明の効果】以上詳述したように、この発明によれ
ば、複数の音階から構成されるメロディ音を、着信音や
保留音として低消費電力の圧電ブザーから発生させるこ
とができる。これにより、我々が通常音楽として耳にす
るような複数の音階からなるメロディ音を圧電ブザーを
介して着信音等として聴くことができる。
As described above in detail, according to the present invention, a melody sound composed of a plurality of scales can be generated from a low-power-consumption piezoelectric buzzer as a ringing tone or a holding tone. As a result, a melody sound composed of a plurality of musical scales that we usually hear as music can be heard as a ringtone or the like via the piezoelectric buzzer.

【0048】また、パルス信号に基づいて圧電ブザーを
駆動させるのではなく、アナログ信号に基づき圧電ブザ
ーを駆動させるため、圧電ブザーは複数の音階の周波数
に対して精度良く追従できる。これにより、雑音を抑え
ることができ、音質の良いメロディ音を発生できる。ま
た、複数の音階データの上位所定ビットのみを加算する
ことに基づいて得られる段階的なアナログ波形によりメ
ロディ音が発生されるため、十分な音量を得ることがで
きる。重み付けが大きい上位所定ビット、特に最上位ビ
ットが加算されることに基づいて得られるアナログ信号
によりメロディ音が発生されることにより、聴覚上高音
質の音をメロディ音として発生できる。
Since the piezoelectric buzzer is driven based on an analog signal instead of driving the piezoelectric buzzer based on a pulse signal, the piezoelectric buzzer can accurately follow the frequencies of a plurality of musical scales. As a result, noise can be suppressed, and a melody sound with good sound quality can be generated. Further, since a melody sound is generated by a stepwise analog waveform obtained based on adding only upper predetermined bits of a plurality of scale data, a sufficient volume can be obtained. The melody sound is generated by the analog signal obtained based on the addition of the high-order predetermined bits having a large weight, particularly the most significant bit, so that a sound with high auditory quality can be generated as the melody sound.

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

【図1】この発明の実施の形態におけるメロディ音発生
装置の回路構成図である。
FIG. 1 is a circuit configuration diagram of a melody sound generating device according to an embodiment of the present invention.

【図2】メロディ音発生装置を構成する音階データ発生
回路1の構成図である。
FIG. 2 is a configuration diagram of a scale data generation circuit 1 constituting the melody sound generation device.

【図3】メロディ音発生装置を構成するメロディ音デー
タ作成回路2の構成図である。
FIG. 3 is a configuration diagram of a melody sound data creation circuit 2 configuring the melody sound generation device.

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

1 音階データ発生回路 2 メロディ音データ作成回路 3 シーケンス制御回路 4 テンキー 7 D/A変換器 9 圧電ブザー 91 圧電振動子駆動回路 92 圧電振動子 201 音階データ保持レジスタ 204 加算器 REFERENCE SIGNS LIST 1 scale data generation circuit 2 melody sound data creation circuit 3 sequence control circuit 4 numeric keypad 7 D / A converter 9 piezoelectric buzzer 91 piezoelectric vibrator drive circuit 92 piezoelectric vibrator 201 scale data holding register 204 adder

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所定の音階からなるメロディ音を発生す
るメロディ音発生装置において、所定の音階に基づき所
定ビットからなる音階データを発生する音階データ発生
手段と、当該音階データ発生手段より発生される複数の
音階データの上位所定ビットをそれぞれ加算することに
よって複数音階からなるメロディ音データを作成するメ
ロディ音データ作成手段と、当該メロディ音データ作成
手段で作成されたディジタルデータをアナログ信号に変
換するディジタル・アナログ変換手段と、当該ディジタ
ル・アナログ変換手段の出力に基づいて圧電振動子を振
動させてメロディ音を発生する圧電ブザー手段と、を備
えることを特徴とするメロディ音発生装置。
1. A melody sound generating device for generating a melody sound having a predetermined scale, a scale data generating means for generating scale data including predetermined bits based on a predetermined scale, and a scale data generating means for generating the scale data including the predetermined bits. Melody sound data creating means for creating melody sound data composed of a plurality of scales by adding upper predetermined bits of a plurality of scale data, and a digital converter for converting digital data created by the melody sound data creating means into an analog signal A melody sound generating device comprising: analog conversion means; and piezoelectric buzzer means for generating a melody sound by vibrating a piezoelectric vibrator based on an output of the digital / analog conversion means.
【請求項2】 前記メロディ音データ作成手段は前記音
階データ発生手段より発生される音階データの最上位ビ
ットを加算することによりメロディ音データを作成する
ことを特徴とする請求項1に記載のメロディ音発生装
置。
2. The melody sound data according to claim 1, wherein said melody sound data generation means generates melody sound data by adding a most significant bit of scale data generated by said scale data generation means. Sound generator.
JP11176912A 1999-06-23 1999-06-23 Melody sound generating device Pending JP2001005455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11176912A JP2001005455A (en) 1999-06-23 1999-06-23 Melody sound generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11176912A JP2001005455A (en) 1999-06-23 1999-06-23 Melody sound generating device

Publications (1)

Publication Number Publication Date
JP2001005455A true JP2001005455A (en) 2001-01-12

Family

ID=16021942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11176912A Pending JP2001005455A (en) 1999-06-23 1999-06-23 Melody sound generating device

Country Status (1)

Country Link
JP (1) JP2001005455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8233630B2 (en) 2004-03-17 2012-07-31 Sony Corporation Test apparatus, test method, and computer program
CN113066456A (en) * 2021-03-17 2021-07-02 平安科技(深圳)有限公司 Berlin noise-based melody generation method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8233630B2 (en) 2004-03-17 2012-07-31 Sony Corporation Test apparatus, test method, and computer program
CN113066456A (en) * 2021-03-17 2021-07-02 平安科技(深圳)有限公司 Berlin noise-based melody generation method, device, equipment and storage medium
CN113066456B (en) * 2021-03-17 2023-09-29 平安科技(深圳)有限公司 Method, device, equipment and storage medium for generating melody based on Berlin noise

Similar Documents

Publication Publication Date Title
US7076052B2 (en) Telephone terminal
JP3719057B2 (en) Telephone terminal device and communication method
EP1180896B1 (en) Sound generating device and method for a mobile terminal of a wireless telecommuniation system
JP3741560B2 (en) Melody sound generator
KR100578588B1 (en) Music reproducing apparatus
KR100477306B1 (en) Portable telephone
JP2001005455A (en) Melody sound generating device
JP3788564B2 (en) Melody sound generator
JP2008148234A (en) Portable terminal
JP3479252B2 (en) Portable wireless telephone and sound conversion method
JP2000298481A (en) Melody sound generating device
JP2003046607A (en) Voice communication terminal and voice communication system
JP2006065345A (en) Melody sound generating apparatus
US7067731B2 (en) Sound source circuit and telephone terminal using same
KR100468987B1 (en) Portable terminal device and effect applying method thereof and recording medium
KR100595672B1 (en) Bell sound generation apparatus and method for mobile communication terminal
JP3279298B2 (en) Music playing device, mobile phone device having music playing function, and music playing method
JP2001306085A (en) Device and method for reproduced sound generation
JP2001060990A (en) Telephone terminal equipment and music data transferring method
EP0615371A2 (en) Audio output equipment for a portable telephone
JP2000075863A (en) Melody generator
JP2004109548A (en) Device and method for pronunciation and communication terminal device
JP2004348145A (en) Terminal device loaded with effector
JP2000188627A (en) Portable telephone set
JP2005234208A (en) Musical sound reproducing device and mobile terminal device