JPH0675586A - Acoustic signal generating circuit - Google Patents
Acoustic signal generating circuitInfo
- Publication number
- JPH0675586A JPH0675586A JP4180821A JP18082192A JPH0675586A JP H0675586 A JPH0675586 A JP H0675586A JP 4180821 A JP4180821 A JP 4180821A JP 18082192 A JP18082192 A JP 18082192A JP H0675586 A JPH0675586 A JP H0675586A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- data
- acoustic data
- sampling frequencies
- instruction
- 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
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
- Electromechanical Clocks (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、音響信号発生回路に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an acoustic signal generating circuit.
【0002】[0002]
【従来の技術】例えば、アラーム時計において、複数種
類の音声信号を記憶してそのうちのいずれかを選択的に
読み出してアラーム音とするものがある。上記音声信号
としては、人の声や鳥の声、鐘の音等があり、これらを
サンプリングしてデジタルの音響データに変換した後、
ROMに記憶させてある。2. Description of the Related Art For example, there is an alarm timepiece that stores a plurality of types of audio signals and selectively reads out one of them as an alarm sound. The voice signals include human voices, bird voices, bell sounds, etc., which are sampled and converted into digital acoustic data,
It is stored in ROM.
【0003】[0003]
【発明が解決しようとする課題】上記のような音響信号
発生回路は、時計の内部クロックによって読み出される
が、このクロックパルスは単一の周波数に固定されてい
る。そのため、音響データ読出し用クロックパルスと異
なる周波数でサンプリングされた音響データは正しく再
生できないという問題点を有していた。The acoustic signal generating circuit as described above is read by the internal clock of the timepiece, but the clock pulse is fixed at a single frequency. Therefore, there is a problem that the audio data sampled at a frequency different from the audio data reading clock pulse cannot be correctly reproduced.
【0004】本発明の目的は、異なるサンプリング周波
数によってサンプリングされた複数の音響データを簡単
にかつ良好な音質で再生することである。An object of the present invention is to easily reproduce a plurality of audio data sampled at different sampling frequencies with good sound quality.
【0005】[0005]
【課題を解決するための手段】本発明は、記憶回路より
異なるサンプリング周波数によってサンプリングされた
複数の音響データと、それに対応した制御データを読み
出し、その制御データにしたがった指示回路からの指示
により可変分周器の分周比を変えることで、読出し用ク
ロックパルスをそれぞれの音響データのサンプリング周
波数に対応した周波数とすることで正しい再生を行い、
上記の目的を達成する。According to the present invention, a plurality of acoustic data sampled at different sampling frequencies from a storage circuit and control data corresponding to the acoustic data are read out and are changed by an instruction from an instruction circuit according to the control data. By changing the frequency division ratio of the frequency divider, correct reproduction is performed by setting the read clock pulse to the frequency corresponding to the sampling frequency of each acoustic data,
To achieve the above objectives.
【0006】[0006]
【実施例】次に本発明の一実施例を図を参照しながら説
明する。図1において、1は記憶回路としてのROM
で、複数種類のメロディ、擬音、音声等の音響データを
記憶しているとともに、それぞれの読出し用クロックパ
ルスの周波数を指示する制御データを各音響データの先
頭アドレスおよび所望のデータ数(例えば、128)ご
とに記憶している。つまり、例えば1種類のメロディに
おいても途中でサンプリング周波数が変った場合も対応
可能となるように所望のデータ数ごとに制御データを記
憶させてある。読出し用クロックパルスは、各音響デー
タのサンプリング周波数に対応した周波数が指示され
る。2はCPU、RAM、ROMからなる制御回路であ
る。3、4はそれぞれカウンタとアドレス指定回路であ
り、それぞれリセット端子であるRES、アドレスセッ
ト信号入力端子であるADSを備える。5は指示回路を
構成する選択回路であり、制御データおよび音響データ
を受けて、制御データは指示信号として出力端子SOU
Tから出力し、音響データは出力端子DOUTから出力
する。6は可変分周器であり、指示信号入力端子である
SELを備え、指示信号によって分周比を切替える。7
は発振回路であり、可変分周器にクロックパルスを供給
する。8はD/Aコンバータ、9はスピーカであり、音
響データを音声に変換する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of the present invention will be described with reference to the drawings. In FIG. 1, 1 is a ROM as a memory circuit
In addition to storing a plurality of types of acoustic data such as melody, onomatopoeia, and voice, control data for instructing the frequency of each read clock pulse is provided with the start address of each acoustic data and the desired number of data (for example, 128). ) Remember each. That is, the control data is stored for each desired number of data so that, for example, even in the case of one kind of melody, even if the sampling frequency changes in the middle, it is possible to handle it. A frequency corresponding to the sampling frequency of each acoustic data is designated as the read clock pulse. Reference numeral 2 is a control circuit including a CPU, a RAM, and a ROM. Reference numerals 3 and 4 are a counter and an address designating circuit, respectively, each of which has a reset terminal RES and an address set signal input terminal ADS. Reference numeral 5 is a selection circuit which constitutes an instruction circuit, receives control data and acoustic data, and the control data is an output signal SOU as an instruction signal.
The sound data is output from T and the acoustic data is output from the output terminal DOUT. Reference numeral 6 denotes a variable frequency divider, which includes an SEL which is an instruction signal input terminal, and switches the frequency division ratio according to the instruction signal. 7
Is an oscillator circuit, which supplies a clock pulse to the variable frequency divider. Reference numeral 8 is a D / A converter, and 9 is a speaker, which converts acoustic data into voice.
【0007】次に動作について図1および図2のフロー
チャートを参照しながら説明する。まず制御回路よりの
リセット信号で可変分周器6およびカウンタ3がリセッ
トされる(ステップa)。制御回路よりのアドレスセッ
ト信号によりアドレス指定回路4に特定の音響データの
先頭アドレスがセットされる(ステップb)。再生した
い音響データの選択は、例えば選択スイッチ(図示せ
ず。)の操作によって行なわれる。発振回路7よりのク
ロックパルスが可変分周器6に入力され出力される(ス
テップc)。その1発目の出力パルスがROM1に入力
されると、DOUTより先に先頭アドレスがセットされ
た音響データに対応する制御データが出力される(ステ
ップd)。その制御データは選択回路5に入力されそこ
で保持され、またSOUTより指示信号として出力され
る(ステップe)。指示信号は可変分周器のSEL端子
に入力され、それに従い可変分周器は分周比を変える
(ステップf)。これにより読出し用クロックパルスの
周波数は音響データのサンプリング周波数と等しくなる
ように設定される。分周比の変わった可変分周器6の出
力パルスがROM1に入力されると、ROM1内のデー
タがDOUTより出力される(ステップg)。そのデー
タは選択回路5に入力され制御データと音響データを識
別する(ステップh)。音響データであれば、D/Aコ
ンバータ8に出力される(ステップi)。そしてD/A
コンバータ8によりD/A変換された後(ステップ
j)、スピーカより音声として出力される(ステップ
k)。本例では、所望数の音響データごとに制御データ
を記憶せてあるため、これが読み出されると、制御デー
タに応じて可変分周器6の分周比を換える動作を行な
う。これにより1種類のメロディにおいても途中でサン
プリング周波数が変った場合も対応可能となる。Next, the operation will be described with reference to the flowcharts of FIGS. 1 and 2. First, the variable frequency divider 6 and the counter 3 are reset by a reset signal from the control circuit (step a). The start address of specific sound data is set in the addressing circuit 4 by the address setting signal from the control circuit (step b). The sound data to be reproduced is selected by operating a selection switch (not shown), for example. The clock pulse from the oscillator circuit 7 is input to the variable frequency divider 6 and output (step c). When the first output pulse is input to the ROM 1, control data corresponding to the acoustic data whose head address is set before DOUT is output (step d). The control data is input to the selection circuit 5, held there, and output from SOUT as an instruction signal (step e). The instruction signal is input to the SEL terminal of the variable frequency divider, and the variable frequency divider changes the frequency division ratio accordingly (step f). Thereby, the frequency of the read clock pulse is set to be equal to the sampling frequency of the acoustic data. When the output pulse of the variable frequency divider 6 having a different frequency division ratio is input to the ROM 1, the data in the ROM 1 is output from DOUT (step g). The data is input to the selection circuit 5 to identify control data and acoustic data (step h). If it is acoustic data, it is output to the D / A converter 8 (step i). And D / A
After being D / A converted by the converter 8 (step j), it is output as voice from the speaker (step k). In this example, since the control data is stored for each desired number of acoustic data, when the control data is read, the operation of changing the frequency division ratio of the variable frequency divider 6 according to the control data is performed. This makes it possible to handle even one type of melody even if the sampling frequency changes midway.
【0008】以上のように音響データの再生を行ない、
(ステップl)にて再生終了であるか判断し、再生終了
でない場合は、(ステップg)以下の動作を繰り返し行
ない、再生終了であれば動作を終了する(END)。The acoustic data is reproduced as described above,
In (step l), it is judged whether or not the reproduction is ended. If the reproduction is not ended, the operation following (step g) is repeated, and if the reproduction is ended, the operation is ended (END).
【0009】[0009]
【発明の効果】本発明によれば、異なるサンプリング周
波数でサンプリングされた複数の音響データをそれぞれ
のサンプリング周波数に応じた周波数の読出しクロック
パルスで再生でき、簡単な構成で良好な音質の音響を再
生することができる。According to the present invention, a plurality of sound data sampled at different sampling frequencies can be reproduced by a read clock pulse having a frequency corresponding to each sampling frequency, and a sound of good sound quality can be reproduced with a simple structure. can do.
【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】図1の動作説明のためのフローチャート。FIG. 2 is a flowchart for explaining the operation of FIG.
1 記憶回路 2 制御回路 5 指示回路 6 可変分周器 1 memory circuit 2 control circuit 5 indicator circuit 6 variable frequency divider
Claims (1)
てサンプリングされた複数種類の音響データおよび各音
響データのサンプリング周波数を指示する制御データを
記憶する記憶回路、この記憶回路から所望の音響データ
を選択的に読み出す制御回路と、上記の記憶回路から読
み出された音響データに対応した制御データによって読
出し用クロックパルスの周波数を指示する指示回路と、
指示回路からの指示で読出し用クロックパルスの周波数
を変える可変分周器とを具備する音響信号発生回路。1. A storage circuit for storing a plurality of types of acoustic data sampled at different sampling frequencies and control data indicating sampling frequencies of the respective acoustic data, and control for selectively reading desired acoustic data from the storage circuit. A circuit, and an instruction circuit for instructing the frequency of the read clock pulse by the control data corresponding to the acoustic data read from the storage circuit,
An audio signal generation circuit comprising: a variable frequency divider that changes the frequency of a read clock pulse according to an instruction from the instruction circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4180821A JPH0675586A (en) | 1992-07-08 | 1992-07-08 | Acoustic signal generating circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4180821A JPH0675586A (en) | 1992-07-08 | 1992-07-08 | Acoustic signal generating circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0675586A true JPH0675586A (en) | 1994-03-18 |
Family
ID=16089950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4180821A Pending JPH0675586A (en) | 1992-07-08 | 1992-07-08 | Acoustic signal generating circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0675586A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000077775A1 (en) * | 1999-06-11 | 2000-12-21 | Nec Corporation | Sound switching device |
JP2008268467A (en) * | 2007-04-19 | 2008-11-06 | Fujitsu Microelectronics Ltd | Integrated circuit and audio device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6229000A (en) * | 1985-07-31 | 1987-02-06 | Matsushita Electric Ind Co Ltd | Reading and controlling device for sound data |
-
1992
- 1992-07-08 JP JP4180821A patent/JPH0675586A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6229000A (en) * | 1985-07-31 | 1987-02-06 | Matsushita Electric Ind Co Ltd | Reading and controlling device for sound data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000077775A1 (en) * | 1999-06-11 | 2000-12-21 | Nec Corporation | Sound switching device |
JP2008268467A (en) * | 2007-04-19 | 2008-11-06 | Fujitsu Microelectronics Ltd | Integrated circuit and audio device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4336736A (en) | Electronic musical instrument | |
US4508457A (en) | Electronic timepiece with record/playback circuits | |
US6255577B1 (en) | Melody sound generating apparatus | |
JPH0693189B2 (en) | Electronic musical instrument | |
JP3482685B2 (en) | Sound generator for electronic musical instruments | |
JPS6328478Y2 (en) | ||
JPH0675586A (en) | Acoustic signal generating circuit | |
US4683794A (en) | Automatic music playing apparatus capable of producing a plurality of different sounds simultaneously | |
JPS6068387A (en) | Electronic musical instrument | |
JPS60100199A (en) | Electronic musical instrument | |
JPH0651778A (en) | Waveform generating device | |
JPH086551A (en) | Electronic musical instrument and automatic player | |
JP2605680B2 (en) | Audio noise generation circuit | |
KR930003228Y1 (en) | Speed synthesis circuit | |
KR930006540Y1 (en) | Auto talking-back speech synthesis circuit | |
JPS6118997B2 (en) | ||
KR940001091B1 (en) | Acoustic data output circuit | |
JP2526838B2 (en) | Waveform data generator | |
JPH0142000B2 (en) | ||
JPH052999B2 (en) | ||
JPH0439080B2 (en) | ||
JPS6231360B2 (en) | ||
JPH02287396A (en) | Sound generator | |
JPH06217039A (en) | Electronic sound source device | |
JPH0229226B2 (en) |