JP3821352B2 - Telephone terminal device - Google Patents

Telephone terminal device Download PDF

Info

Publication number
JP3821352B2
JP3821352B2 JP2000165548A JP2000165548A JP3821352B2 JP 3821352 B2 JP3821352 B2 JP 3821352B2 JP 2000165548 A JP2000165548 A JP 2000165548A JP 2000165548 A JP2000165548 A JP 2000165548A JP 3821352 B2 JP3821352 B2 JP 3821352B2
Authority
JP
Japan
Prior art keywords
music data
data
music
information
sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000165548A
Other languages
Japanese (ja)
Other versions
JP2001345883A (en
Inventor
聖 長谷部
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2000165548A priority Critical patent/JP3821352B2/en
Publication of JP2001345883A publication Critical patent/JP2001345883A/en
Application granted granted Critical
Publication of JP3821352B2 publication Critical patent/JP3821352B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明が属する技術分野】
本発明は、報知音をメロディ音で報知可能な電話端末装置に関するものであり、特に、自動車電話機や携帯電話機に適用して好適なものである。
【0002】
【従来の技術】
アナログセルラーシステムやデジタルセルラーシステムとして知られているPDC(Personal Digital Cellular telecommunication system)等の携帯電話システムや、簡易型携帯電話システム(PHS:Personal Handyphone System)において、ユーザが携帯している携帯電話機に着信があった際には、着信をユーザに報知するために着信音が放音される。この着信音としては、従来ビープ音が放音されていたが、ビープ音が耳障りな音であることからビープ音に変わりメロディ音を着信音とすることが最近行われている。
【0003】
【発明が解決しようとする課題】
メロディ音を再生することのできる従来の携帯電話機では、自動演奏することのできる楽音生成手段が備えられている。この楽音生成手段は、一般に中央処理装置(Central Processing Unit:CPU)、ROM(Read Only Memory)、RAM(Random Access Memory)、楽音生成部を備え、ROMに記憶された自動演奏プログラムをCPUが実行することにより、ROMあるいはRAMに記憶された楽曲データを読み出して、楽音生成部に対して発音パラメータを設定することにより楽曲を生成するようにしている。
そして、高品質の楽音を生成するために、最近の楽音生成手段は複数チャンネルからなる楽曲を再生できるようになされている。
【0004】
しかしながら、携帯電話機等の従来の電話端末装置においては、ユーザに着信や保留を報知するためのメロディ音は、あらかじめ指定された楽曲が繰り返し放音されるようになされており面白味に欠けるものであった。
そこで、本発明は、メロディ音で報知可能な電話端末装置において、メロディ音を複数の楽曲により生成することができる電話端末装置を提供することを目的としている。
【0005】
【課題を解決するための手段】
上記目的を達成するために、本発明の電話端末装置は、報知音をメロディ音で報知可能な電話端末装置であって、複数の楽曲データを記憶可能な記憶手段と、複数の楽曲データと、メドレーリストとを記憶可能な記憶手段と、前記報知音のスタート指示がされた時に、前記メドレーリストに基づいて前記記憶手段から複数の楽曲データを順次読み出して、楽音生成手段に転送する制御手段と、該制御手段から転送された楽曲データを再生して、前記メロディ音を生成する楽音生成手段とを備え、前記メドレーリストは、前記複数の楽曲データを再生する順番の順番情報と、再生する楽曲データを指定する指定情報と、指定した楽曲データを繰り返し再生する回数の回数情報と、指定した楽曲データの全部を再生するか、あるいは一部だけを再生するかを指示する指示情報を含み、これらの各情報を設定可能とされており、前記制御手段は、前記順番情報に基づいて前記指定情報で指定された楽曲データを読み出し、前記回数情報が指示する回数で前記指示情報が指示する楽曲データの全部あるいは一部を前記楽音生成手段に転送するようにしている。
【0006】
また、上記本発明の電話端末装置において、前記指示情報で指示される一部の楽曲データが、楽曲データの音符データの一部をマークにより挟むことにより指示されていてもよい。
【0008】
さらに、上記目的を達成することのできる本発明の他の電話端末装置は、報知音をメロディ音で報知可能な電話端末装置であって、複数の楽曲データと、メドレーリストとを記憶可能な記憶手段と、前記報知音のスタート指示がされた時に、設定されたモードに応じて前記記憶手段から複数の楽曲データを順次読み出して、楽音生成手段に転送する制御手段と、該制御手段から転送された楽曲データを再生して、前記メロディ音を生成する楽音生成手段とを備え、前記メドレーリストは、前記複数の楽曲データを再生する順番の順番情報と、再生する楽曲データを指定する指定情報と、指定した楽曲データを繰り返し再生する回数の回数情報と、指定した楽曲データの全部を再生するか、あるいは一部だけを再生するかを指示する指示情報を含み、これらの各情報を設定可能とされており、前記モードがプログラム再生モードと設定されている場合には、前記制御手段は、前記順番情報に基づいて前記指定情報で指定された楽曲データを読み出し、前記回数情報が指示する回数で前記指示情報が指示する楽曲データの全部あるいは一部を前記楽音生成手段に転送するようにし、前記モードがランダム再生モードと設定されている場合には、前記制御手段は、ランダムな順序で前記記憶手段から複数の楽曲データを順次読み出して、前記楽音生成手段に転送するようにされている。
【0010】
このような本発明によれば、あらかじめプログラムされた順序、あるいは、ランダムな順序で複数の楽曲データを再生することにより、メロディ音を生成することができるようになる。この場合、各楽曲データの再生順序およびループ再生回数、各楽曲データの全部再生あるいはサビパターン等の一部を再生するよう設定可能とされているので、ユーザは自分好みのメロディ音を生成することができる。
また、プログラムされたとおりに複数の楽曲データを再生するプログラム再生モード、ランダムな順序で複数の楽曲データを再生するランダム再生モード、および、一曲の楽曲データを繰り返し再生するループ再生モードのいずれかの再生モードを選択してメロディ音を生成することができるので、種々の態様のメロディ音で報知することができるようになる。
【0011】
【発明の実施の形態】
本発明の電話端末装置を携帯電話機に適用した場合の実施の形態の構成例を図1に示す。
図1に示す携帯電話機1は、一般にリトラクタブルとされたアンテナ1aを備え、アンテナ1aは変調・復調機能を有する通信部13に接続されている。システム用の中央処理装置(Central Processing Unit:CPU)10は、電話機能プログラムを実行することにより携帯電話機1の各部の動作を制御するシステム制御部であり、動作時の経過時間を示したり、特定の時間間隔でタイマ割込を発生するタイマを備えている。また、システムCPU10は後述する楽音生成関連処理を行う。システムRAM11はダウンロードセンター等からダウンロードされた複数パートからなる楽曲データの格納エリアや、ユーザ設定データ格納エリア、および、システムCPU10のワークエリア等が設定されるRAM(Random Access Memory)である。システムROM12はシステムCPU10が実行する送信や着信の各種電話機能プログラムや楽音生成関連処理等のプログラムや、プリセットされた楽曲データ等の各種データが格納されているROM(Read Only Memory)である。
【0012】
また、通信部13は、アンテナ1aで受信された信号の復調を行うと共に、送信する信号を変調してアンテナ1aに供給している。通信部13で復調された受話信号は、音声処理部(コーダ/デコーダ)14において復号され、マイク21から入力された通話信号は音声処理部14において圧縮符号化される。音声処理部14は、音声を高能率圧縮符号化/復号化しており、例えばCELP(Code Excited LPC )系やADPCM(適応差分PCM符号化)方式のコーダ/デコーダとされている。楽音生成部15は、音声処理部14からの受話信号を受話用スピーカ22から放音したり、楽曲データを再生することにより着信メロディ、保留音を生成して出力している。なお、着信メロディは着信用スピーカ23から放音され、保留音は受話信号とミキシングされて受話用スピーカ22から放音される。
【0013】
また、楽曲データは音色データ、テンポデータおよび複数パートの音符データから構成されている。そして、楽音生成部15は楽曲データに基づいて楽音を再生しており、この際に、内部に音符データを記憶するFIFOが設けられている。このFIFOは一曲分の音符データが記憶できる記憶容量とされてもよいが、記憶容量が小さく一曲分の音符データを記憶できない場合は、FIFOに所定量の空きエリアが生じた際に、楽音生成部15が割込要求信号(IRQ)をシステムCPU10に与え、システムCPU10がRAM11あるいはROM12に記憶されている音符データの続きを読み出して楽音生成部15に転送するようにしてもよい。
【0014】
さらに、インタフェース(I/F)16は、パーソナルコンピュータ等の外部機器20から1つ以上のシーケンスデータを含む楽曲データをダウンロードするためのインタフェースである。入力部17は携帯電話機1に備えられた「0」から「9」のダイヤルボタンや各種ボタンから構成される入力手段である。表示部18は電話機能のメニューや、ダイヤルボタン等のボタンの操作に応じた表示がされる表示器である。バイブレータ19は、着信時に着信音に代えて携帯電話機1の本体を振動させることにより、着信をユーザに知らせるバイブレータである。なお、各機能ブロックはバス24を介してデータや命令の授受を行っている。
【0015】
次に、本発明の実施の形態にかかる携帯電話機1における楽音生成部15の第1の構成を図2に示す。第1の構成では、楽音生成部15がシーケンス機能を有するようにされている。また、この楽音生成部15で再生される楽曲データのデータ構成を図3に示し、このデータ構成を先に説明する。
図3に示す楽曲データは、システムRAM11あるいはシステムROM12に記憶されている楽曲データである。図示するように楽曲データは、先頭にヘッダが配置されており、続いてパート毎の音色データ、テンポデータ、および、音符データとされ、最後に終了データが配置されたデータ構成とされている。音符データは、各パートの音符データが混在して構成されており、図示するように、音符データは、属するパートを示すパートデータ、ノート情報とオクターブ情報からなる音階データ、次の音符データまでの時間長を示すインターバルデータ、4分音符や8分音符等の音長情報からなる発音長データにより構成されている。なお、休符はインターバルデータにより表されている。
【0016】
音符データにおけるインターバルデータおよび発音長データの分解能は、テンポデータに基づいており、テンポデータが異なっていると、インターバルデータおよび発音長データの値が同じであっても実際に示す時間は異なるようになる。また、音符データ間にマークが挿入されているが、このマークは、マークで挟まれた音符データがサビパターンの音符データであることを示している。すなわち、マークで挟まれた音符データだけを抽出することにより、サビパターンの音符データだけを再生することができるようになる。このマークは、サビパターンの音符データを示すだけのものではなく、イントロパターンやメインパターン、あるいはエンディングパターン等の音符データをマークで挟むことにより、そのパターンの音符データを示すようにしてもよい。
【0017】
また、楽曲データの最後に配置されている終了データを検出することにより、その楽曲データが終了したことを検知することができるので、これにより、次に再生する楽曲データがある場合は、その楽曲データの再生準備を行うことができる。
さらに、楽曲データは、複数のパートから構成されているが、そのパートは、例えば、メロディパート、伴奏パート1、伴奏パート2およびリズムパートの4パートとされている。このような楽曲データは、図1に示す基地局2等を介して配信センター等からダウンロードすることができる。ダウンロードされた楽曲データは、システムRAM11に記憶される。なお、基地局2には基地局用のアンテナ2aが設けられている。
【0018】
本発明の実施の形態の携帯電話機1においては、図2に示すデータ構成の楽曲データを複数曲分順次読み出して所定の順序で再生できるようにされている。この場合、再生モードとしてプログラム再生モード、ランダム再生モードおよびループ再生モードが用意されている。プログラム再生モードでは、図6(a)に示すプログラム再生用のメドレーリストがあらかじめ作成される。このメドレーリストは、再生する楽曲データの順番を決定するプログラムナンバー(PN)と、再生する楽曲データを指定する楽曲ナンバ(No)と、指定した楽曲データを繰り返し再生する回数を示すループナンバLNと、指定した楽曲データの全部を再生するか、あるいはサビパターンだけを再生するかを指示する全/サビ情報とから構成されている。
【0019】
また、ランダム再生モードでは、システムCPU10が所定の規則に基づいて演算を行うことにより、ランダムに指定した楽曲データが再生されるようになる。この場合、ランダムに楽曲ナンバだけを指定するのではなく、ループナンバや全/サビ情報もランダムに設定して再生するようにしてもよい。
さらに、ループ再生モードでは、図6(b)に示すループ再生用のメドレーリストがあらかじめ作成される。このメドレーリストでは、再生する楽曲データは一曲とされることからプログラムナンバー(PN)は“1”だけとされており、再生する楽曲を指定する楽曲ナンバと、指定した楽曲データを繰り返し再生する回数を示すループナンバ(LN)と、指定した楽曲データの全部を再生するか、あるいはサビパターンだけを再生するかを指示する全/サビ情報とから構成されている。ただし、図6(b)に示すメドレーリストにおけるループナンバ“50”はデフォルト値であるが、ループナンバは“50”に限るものではなく任意の数値を設定することができる。
【0020】
図2に示す第1の構成の楽音生成部15は、上記したプログラム再生モード、ランダム再生モードおよびループ再生モードのうちのいずれかに設定されて、メロディ音を生成するようにされている。
図2に示すように楽音生成部15は、インタフェース(I/F)30、FIFO(First-In First-Out)31、シーケンサ32、音源33、ディジタル・アナログ変換器(DAC)34、オア回路35により構成されている。
インタフェース30は、システムCPU10とバス24で結合されており、システムCPU10の制御の基でシステムRAM11あるいはシステムROM12から読み出された楽曲データがバス24を介して内部のデータ・レジスタに書き込まれる。この場合、プログラム再生モードあるいはループ再生モードとされている場合は、システムCPU10はあらかじめ作成されているメドレーリストに基づいた順序で楽曲データを読み出すようにする。そして、メドレーリストにおいて読み出される楽曲データの全/サビ情報として、サビが指定されている際は、システムCPU10は、マークで挟まれたサビパターンの音符データを読み出してインタフェース30に転送する。
【0021】
また、ランダム再生モードに設定されている場合は、システムCPU10が所定の規則に基づいて演算を行うことにより、ランダムに指定した楽曲データを読み出してインタフェース30に転送する。インタフェース30のデータ・レジスタに書き込まれた楽曲データのうちの音符データ(Data)はFIFO31に書き込まれ、データ・レジスタに書き込まれた楽曲データのうちの各パートの音色データは音源33に転送される。
インタフェース30に内蔵されるレジスタには、シーケンサ・コントロール・レジスタ、データ・レジスタおよびステータス・レジスタが含まれている。シーケンサ・コントロール・レジスタは、システムCPU10よりシーケンサ32を制御するシーケンサ制御データが書き込まれるレジスタである。シーケンサ・コントロール・レジスタに書き込まれるシーケンサ制御データの中には、楽音再生開始を指示するシーケンサ・スタート指示データ(Start)や楽音再生停止を指示するシーケンサ・ストップ指示データ(Stop)が含まれている。
【0022】
また、データ・レジスタはシステムCPU10より楽曲データが一時的に書き込まれるレジスタであり、データ・レジスタに書き込まれた楽曲データのうち音符データは、FIFO31に書き込まれ、音色データが音源33に書き込まれ、テンポデータ(Temp)はシーケンサ32に転送される。
さらに、ステータス・レジスタは楽音生成部15の楽音生成状態を示すレジスタである。このステータス・レジスタには、FIFO31から出力される音符データ空きフラグ(Empty)、および、シーケンサ32から出力される楽曲データ終了フラグ(END)とを含んでいる。このステータス・レジスタは、システムCPU10により読み出されるレジスタである。
【0023】
FIFO31は、例えば32バイト(32×8ビット)の容量を有し、インタフェース30のデータ・レジスタを介してシステムCPU10から選択された楽曲データの音符データが順次書き込まれると共に、書き込まれた順に音符データがシーケンサ32の読出要求信号(Req)により順次読み出される。シーケンサ32により読み出された音符データはFIFO31内から破棄される。このFIFO31は、このようなFIFO機能のほかに、格納されている音符データのデータ量を監視する機能を有し、音符データのデータ量が予めシステムCPU10により設定されたデータ量(例えば8バイト)以下になったときに、音符データ空き信号(Empty)を発生して、音符データ空きフラグをインタフェース30のステータス・レジスタにセットする機能を有している。なお、この音符データ空き信号は、オア回路35を介して割込要求信号(IRQ)としてシステムCPU10に通知される。
【0024】
シーケンサ32は、インタフェース30のシーケンサ・コントロール・レジスタにシステムCPU10からシーケンサ・スタート指示データが書き込まれることにより、シーケンサ・スタート指示(Start)されて概略次のように動作する。ただし、シーケンサ・スタート指示に先立って、テンポデータ(Temp)がシーケンサ32に転送されており、各パートの音色データが音源33に書き込まれていると共に、FIFO31にいくらかの音符データが書き込まれている必要がある。
【0025】
まず、FIFO31に記憶されている先頭の音符データを、シーケンサ32が取り込む。先頭の音符データは、通常最初の発音を行うためのインターバルデータのみとされており、このインターバルデータとテンポデータに基づく待ち時間に達するのを待って、次の音符データを取り込んで、その音階データと発音長データに基づいて、キーオン、キーオフ、キーコード等の発音パラメータを生成して音源33に供給する。また、このタイミングで続く次の音符データの取り込みを行い、次の再生の準備をする。この再生の準備は取り込んだ音符データに対応する時間の管理であり、テンポデータとインターバルデータとに基づいて時間管理が行われる。音源33は供給された発音パラメータに基づいて、発音パラメータで指示されるパートの楽音を生成する。この場合、そのパートで生成される楽音の音色は、あらかじめインタフェース30から供給されている音色データで設定されたパートの音色とされる。
【0026】
そして、その音符データに含まれている発音長データに対応した時間が経過するのを待って、音源33による再生を停止させる。次いで、次に取り込んだ音符データに対して同様の生成処理を行う。このような生成処理を終了データが検出されるまで行い、終了データを検出した場合、シーケンサ32および音源33は動作を停止するとともにFIFO31の全データをクリアする。また、楽曲データ終了信号(END)を発生し、インタフェース30のステータス・レジスタに楽曲データ終了フラグをセットする。システムCPU10はこのフラグを参照することにより、次に再生される順番の楽曲データをシステムRAM11あるいはシステムROM12から読み出して、その楽曲データをインタフェース30に転送する。これにより複数の楽曲データを再生したメロディ音、あるいは、同じ楽曲データを繰り返し再生したメロディ音を生成することができる。このような生成処理は、携帯電話機1において入力部17の着信ボタンが操作された時、あるいは、保留解除操作された時に終了される。また、通信回線が切断された際にも終了される。
【0027】
なお、音源33は、キーオン、キーオフ、キーコード等の発音パラメータに基づき複数パートからなるPCM波形データを生成して出力する。このPCM波形データはデジタル・アナログ変換器(ADC)34によりアナログの楽音信号に変換される。この楽音信号が着信を報知するメロディ音として使用される場合は、生成されたメロディ音が着信用スピーカ23から放音される。また、楽音信号が保留を報知するメロディ音として使用される場合は、再生されたメロディ音(送信用保留音)が音声処理部14に供給され、高能率圧縮符号化されて相手側へ送信される。
【0028】
オア回路35は、FIFO31内の音符データが所定量以下になったときにFIFO31から出力される音符データ空き信号(Empty)に基づき、システムCPU10に対して割込要求信号(IRQ)を発生する。さらにオア回路35は、シーケンサ32から出力される楽曲データ終了フラグ(END)に基づき、システムCPU10に対して割込要求信号(IRQ)を発生する。割込要求信号(IRQ)を受けたシステムCPU10は、インタフェース30のステータス・レジスタにおけるフラグを参照して、割込要求信号(IRQ)の原因を調べてそれに対応した処理を行う。この際に、音符データ空きフラグがセットされており、割込要求信号(IRQ)の原因がFIFO31の音符データ量不足と検出されたときには、例えば32バイト−8バイト=24バイトの音符データの転送をシステムCPU10が行う。この音符データの転送では、続く音符データがシステムRAM11あるいはシステムROM12から読み出されて転送されるようになる。この24バイトの音符データの転送は、必ずしも直ちに行う必要はなく、また、必ずしも24バイトの全てを転送する必要もない。楽音生成部15において再生音が途切れることなく再生できるタイミングと転送量で転送するようにすればよい。
また、インタフェース30のステータス・レジスタに楽曲データ終了フラグがセットされていた場合は、次に再生される順番の楽曲データをシステムRAM11あるいはシステムROM12から読み出して、その楽曲データをインタフェース30に転送する。
【0029】
上記説明したように、図2に示す楽音生成部15においては、システムCPU10がメロディ音の再生スタート指示を行った際に、このことをシーケンサ32が検知してメロディ音の生成を開始する。システムCPU10が再生スタート指示を行う場合は、携帯電話機1において着信通知が受信されて着信音(着信メロディ)の再生がスタートされた場合、および、保留操作キーを操作して保留音の再生がスタートされた場合である。
【0030】
次に、図1に示す本発明の実施の形態にかかる携帯電話機1における楽音生成部の第2の構成を図4に示す。第2の構成の楽音生成部115では、システムCPU10がシーケンス機能を受け持つようにされている。また、第2の構成の楽音生成部115で再生される楽曲データは、上記した図3に示すデータ構成とされている。
図4に示す第2の構成の楽音生成部115は、上記したプログラム再生モード、ランダム再生モードおよびループ再生モードのうちのいずれかに設定されて、メロディ音を生成するようにされている。
【0031】
図4に示すように楽音生成部115は、インタフェース(I/F)130、音源133、ディジタル・アナログ変換器(DAC)134により構成されている。
インタフェース130は、システムCPU10とバス24で結合されており、システムCPU10で生成された発音パラメータが、システムRAM11あるいはシステムROM12から読み出された楽曲データ中の音色データと共にバス24を介して内部のデータ・レジスタに書き込まれる。この発音パラメータは、システムRAM11あるいはシステムROM12から読み出された楽曲データに基づいて、システムCPU10がシーケンス処理プログラムを実行することにより生成している。
【0032】
インタフェース130は、書き込まれた発音パラメータを音源133に供給すると共に、音色データを音源133に供給する。音源133は供給された発音パラメータに基づいて、発音パラメータで指示されるパートの楽音を生成する。この場合、そのパートで生成される楽音の音色は、インタフェース130から供給されている音色データで設定されたパートの音色とされる。キーオン、キーオフ、キーコード等の発音パラメータが順次供給されることにより音源133は、複数パートからなるPCM波形データを生成して出力する。このPCM波形データはデジタル・アナログ変換器(ADC)134によりアナログの楽音信号に変換される。この楽音信号が着信を報知するメロディ音として使用される場合は、生成されたメロディ音が着信用スピーカ23から放音される。また、楽音信号が保留を報知するメロディ音として使用される場合は、再生されたメロディ音(送信用保留音)が音声処理部14に供給され、高能率圧縮符号化されて相手側へ送信される。
【0033】
このような第2の構成の楽音生成部115に発音パラメータを供給するシステムCPU10が実行するシーケンス処理を含む楽曲再生処理について、以下に説明する。
システムCPU10は、携帯電話機1において着信通知が検出された場合、および、保留操作キーを操作して保留が検出された場合に、メロディ音の生成をスタートする。まず、システムCPU10は、メロディ音を生成するための楽曲データをシステムRAM11あるいはシステムROM12から読み出す。ここで、プログラム再生モードあるいはループ再生モードとされている場合は、システムCPU10はあらかじめ作成されているメドレーリストに基づいた順序で楽曲データをシステムRAM11あるいはシステムROM12から読み出す。そして、メドレーリストにおいて読み出される楽曲データの全/サビ情報として、サビが指定されている際は、システムCPU10は、マークで挟まれたサビパターンの音符データを読み出す。また、ランダム再生モードに設定されている場合は、システムCPU10が所定の規則に基づいて演算を行うことにより、ランダムに指定した楽曲データが読み出される。
【0034】
読み出された楽曲データのうちの各パートの音色データはインタフェース130に書き込まれる。また、読み出された楽曲データのうちの先頭の音符データをシステムCPU10が解釈するが、先頭の音符データは、通常最初の発音を行うためのインターバルデータのみとされている。そこで、このインターバルデータと、システムRAM11あるいはシステムROM12から読み出したテンポデータとに基づく待ち時間に達するのを待って、次の音符データを読み出して、その音階データと発音長データに基づいて、キーオン、キーオフ、キーコード等の発音パラメータを生成してインタフェース130に書き込む。次いで、続く次の音符データを読み出して、次の再生の準備をする。この再生の準備は続く次の音符データに対応する時間の管理であり、テンポデータとインターバルデータとに基づいて時間管理が行われる。なお、インタフェース130は書き込まれた発音パラメータを音源133に供給し、音源133は供給された発音パラメータに基づいて、発音パラメータで指示されるパートの楽音を生成する。この場合、そのパートで生成される楽音の音色は、あらかじめインタフェース130から供給されている音色データで設定されたパートの音色とされる。
【0035】
そして、その音符データに含まれている発音長データに対応した時間が経過するのを待って、システムCPU10は音源133による再生を停止させる。次いで、次に読み出した音符データに対して同様の楽曲再生処理を行う。システムCPU10は、このような楽曲再生処理を終了データが検出されるまで行い、終了データを検出した場合、次に再生される順番の楽曲データをシステムRAM11あるいはシステムROM12から読み出して、上記した楽曲再生処理を繰り返し実行する。この楽曲再生処理は、携帯電話機1において入力部17の着信ボタンが操作されるか、あるいは、保留解除操作されるのを待って終了される。これにより、プログラム再生モードあるいはループ再生モードとされている場合は、メドレーリストに基づいた順序で楽曲データを再生したメロディ音を生成することができる。また、ループ再生モードとされている場合は、同じ楽曲データを繰り返し再生したメロディ音を生成することができるようになる。
【0036】
次に、本発明の電話端末装置において、楽曲再生部がシーケンス機能を有するようにされている第1の構成とされている際の楽曲再生関連処理を、図5および図7、図8に示すフローチャートを参照しながら説明する。
図5は楽曲再生順序プログラミング処理であり、この処理によりメドレーリストが作成される。
楽曲再生順序プログラミング処理が起動されると、ステップS1にてプログラムナンバレジスタPNが“1”とされる。次いで、ステップS2にてメドレーが指示されて複数の楽曲からメロディ音を生成するようにされているか否かが判断される。ここで、メドレーが指示されていると判断された場合は、ステップS3にてランダム再生モードとされているか否かが判断される。このステップで、ランダム再生モードではなくプログラム再生モードに設定されていると判断されると、ステップS4に進み選択する楽曲ナンバを設定し、ステップS5にて選択した楽曲ナンバの楽曲データを繰り返し再生するループ回数を設定し、さらに、ステップS6にて楽曲データの全部を再生するかサビパターンだけを再生するかを設定する。これにより、プログラムナンバ1(PN=1)の楽曲データに関する再生情報が設定される。次いで、ステップS7にてメロディ音を生成するための楽曲データの設定が全て終了したか否かが判断される。
【0037】
ここで、メロディ音を生成するための楽曲データの設定が終了していない場合は、ステップS11に分岐してプログラムナンバレジスタPNが”1”だけインクリメントされてプログラムナンバ2(PN=2)とされる。そして、ステップS4に戻りステップS4ないしステップS6の処理が繰り返し実行されて、プログラムナンバ2(PN=2)の楽曲データに関する再生情報が設定される。このような処理が、メロディ音を生成するための楽曲データの設定が全て終了まで繰り返し行われ、終了したときに楽曲再生順序プログラミング処理が終了する。
【0038】
上記した処理は、プログラム再生モードにおけるメドレーリストの作成処理であり、上記した処理が行われると、例えば図6(a)に示すメドレーリストが作成される。このメドレーリストでは、プログラムナンバPNは1〜4までとされてそれぞれのプログラムナンバPNにおいて楽曲データが選択されている。最初の楽曲データの楽曲ナンバは“1”とされ、そのループナンバLNは“2”とされ、サビパターンだけを再生するように設定されている。2番目の楽曲データの楽曲ナンバは“5”とされ、そのループナンバLNは“1”とされ、楽曲データ全部を再生するように設定されている。3番目の楽曲データの楽曲ナンバは“2”とされ、そのループナンバLNは”1”とされ、サビパターンだけを再生するように設定されている。最後の楽曲データの楽曲ナンバは“4”とされ、そのループナンバLNは”2”とされ、サビパターンだけを再生するように設定されている。これにより、プログラム再生モードとされた場合は、このメドレーリストに基づいて楽曲ナンバ“1”“5”“2”“4”の順番で楽曲データが再生されてメロディ音が生成されるようになる。
【0039】
ところで、ステップS2にてメドレーが指示されていないと判断された場合は、ステップS8に分岐して選択する楽曲ナンバを設定し、次いでステップS9にて選択した楽曲ナンバの楽曲データの全部を再生するかサビパターンだけを再生するかを設定する。このステップS8,ステップS9の処理は、ループ再生モードにおけるメドレーリストの作成処理であり、上記した処理が行われると、例えば図6(b)に示すメドレーリストが作成される。このメドレーリストでは、プログラムナンバPNは1だけとされて1つの楽曲データが選択されている。この楽曲データの楽曲ナンバは“3”とされ、そのループナンバLNは“50”とされ、楽曲データの全部を再生するように設定されている。なお、50回繰り返し可能とするループナンバLNはデフォルト値であり、当然ながらループナンバは任意の数値に設定することができる。これにより、ループ再生モードとされた場合は、このメドレーリストに基づいて楽曲ナンバ“3”の楽曲データが繰り返し再生されてメロディ音が生成されるようになる。
【0040】
さらに、ステップS3にてランダム再生モードに設定されていると判断された場合は、ステップS10にてランダム再生モードに設定される。ここでは、メドレーリストは作成されない。なお、ランダム再生モードとされた場合は、システムCPU10が所定の規則に基づいて演算を行うことにより、ランダムに指定した楽曲データが順次再生されて、メロディ音が生成されるようになる。
【0041】
図7は楽曲再生メイン処理のフローチャートである。
楽曲再生メイン処理がスタートされると、ステップS21にて楽曲再生トリガが検出されたか否かが判断される。この場合の楽曲再生トリガは、携帯電話機1において着信通知が検出された場合、および、保留操作キーを操作して保留操作された場合に楽曲再生トリガありと判断される。ここで、着信あるいは保留操作があり楽曲再生トリガありと判断されると、ステップS22にてランダム再生モードに設定されているか否かが判断される。ここで、プログラム再生モードあるいはループ再生モードに設定されている場合は、ステップS23に進みプログラムナンバレジスタPNが“1”とされて、メドレーリストにおけるプログラムナンバ1のデータにアクセスされる。また、ランダム再生モードに設定されている場合は、ステップS30に分岐してシステムCPU10が所定の規則に基づいて演算を行うことにより、ランダムに楽曲ナンバが選択される。
【0042】
次いで、いずれの場合にもステップS24にてプログラムナンバ1で設定されている楽曲ナンバの楽曲データあるいはランダムに選択された楽曲データにおける音色データおよびテンポデータが、システムRAM11あるいはシステムROM12から読み出されて楽音生成部15に転送される。さらに、ステップS25にてその楽曲データにおける音符データがFIFO31が一杯になるまで先頭から楽音生成部15に転送される。この際に、プログラムナンバ1においてサビパターンだけを再生するよう設定されていた場合は、マークで挟まれたサビパターンの音符データがFIFO31が一杯になるまで先頭から転送される。システムCPU10は、どこまで転送したかを検出して、次に転送すべき楽曲データの先頭アドレスを記憶する。
【0043】
この場合、ランダム再生モード時には楽曲データの全部を再生するか、サビパターンだけを再生するかをランダムに決定するようにしてもよい。次いで、ステップS26にてプログラムナンバ1におけるループナンバLNが記憶される。この場合、ランダム再生モード時にはループナンバをランダム値で決定するようにしてもよい。そして、ステップS27にてシステムCPU10は、再生スタートコマンド(Start)を楽音生成部15に転送する。これにより、楽音生成部15は転送された音色データ、テンポデータ、音符データに基づいて楽音を再生することでメロディ音の生成を開始する。
【0044】
楽音生成部15における楽曲の再生はステップS28にて楽曲終了トリガが検出されるまで実行される。楽曲終了トリガが検出されるのは、携帯電話機1において入力部17の着信ボタンが操作された時、あるいは、保留解除操作された時に検出される。また、通信回線が切断された際やプログラムされた楽曲データの再生を全て終了した際にも検出される。ここで、楽曲終了トリガが検出されると、ステップS29にて再生ストップコマンド(Stop)が楽音生成部15に転送されて、楽音生成部15の動作が停止されると共にクリアされる。そして、楽曲再生メイン処理は終了する。また、ステップS21にて楽曲再生トリガが検出されない場合は、そのまま楽曲再生メイン処理は終了する。
【0045】
ところで、楽音生成部15は楽曲データを再生中に、割込要求信号(IRQ)をシステムCPU10に送る場合がある。この際に実行される割込要求処理(IRQ処理)のフローチャートを図8に示す。なお、この割込要求処理は、楽曲再生メイン処理のステップS27とステップS28との間において行われることになる。
システムCPU10が割込要求信号(IRQ)を検出すると、割込要求処理がスタートされステップS41にて楽音生成部15におけるインタフェース30のステータス・レジスタの音符データ空きフラグを参照して、割込要求信号(IRQ)の原因が音符データ空き信号(Empty)か否かを判断する。ここで、音符データ空きフラグがセットされていた場合は、FIFO31の音符データ量が不足しているのでステップS48にて続きの音符データを楽音生成部15に転送する。そして、割込要求処理は終了する。
【0046】
また、インタフェース30のステータス・レジスタに音符データ空きフラグではなく楽曲データ終了フラグがセットされていた場合は、ステップS41にてNoと判断されてステップS42に進む。すなわち、一曲の楽曲データの再生が終了した際にステップS42に進むようになり、ステップS42にてランダム再生モードに設定されているか否かが判断される。ここで、プログラム再生モードあるいはループ再生モードに設定されている場合は、ステップS43に進みループナンバレジスタLNが1だけデクリメントされる。次いで、ステップS44にてループナンバレジスタLNの値が“0”となったか否かが判断される。ここで、LN=0と判断された場合は、その楽曲データについては設定された回数再生されたことになり、ステップS45にてプログラムナンバが1だけインクリメントされ、メドレーリストの次のプログラムナンバにアクセスされるようになる。
【0047】
次いで、ステップS46に進み次のプログラムナンバで設定されている楽曲データにおける音色データおよびテンポデータが、システムRAM11あるいはシステムROM12から読み出されて楽音生成部15に転送される。さらに、ステップS47にてその楽曲データにおける音符データがFIFO31が一杯になるまで先頭から楽音生成部15に転送される。この際に、そのプログラムナンバにおいてサビパターンだけを再生するよう設定されていた場合は、マークで挟まれたサビパターンの音符データがFIFO31が一杯になるまで先頭から転送される。システムCPU10は、どこまで転送したかを検出して、次に転送すべき楽曲データの先頭アドレスを記憶する。これにより、次のプログラムナンバで設定された楽曲データが再生されるようになり、割込要求処理は終了する。
【0048】
また、ステップS44にてLN≠0と判断された場合は、ステップS45をスキップしてステップS46に進むようになる。ステップS46では再生が終了した楽曲データにおける音色データおよびテンポデータが、再びシステムRAM11あるいはシステムROM12から読み出されて楽音生成部15に転送される。さらに、ステップS47にてその楽曲データにおける音符データがFIFO31が一杯になるまで先頭から楽音生成部15に転送される。この際に、そのプログラムナンバにおいてサビパターンだけを再生するよう設定されていた場合は、マークで挟まれたサビパターンの音符データがFIFO31が一杯になるまで先頭から転送される。システムCPU10は、どこまで転送したかを検出して、次に転送すべき楽曲データの先頭アドレスを記憶する。これにより、ループナンバLNが“0”になるまで繰り返し同じ楽曲データが再生されるようになり、割込要求処理は終了する。
【0049】
さらに、ステップS42にてランダム再生モードに設定されていると判断された場合は、ステップS49に分岐してシステムCPU10が所定の規則に基づいて演算を行うことにより、ランダムに楽曲ナンバが選択され、ステップS46に進む。ステップS46では、ランダムに選択された楽曲データにおける音色データおよびテンポデータが、システムRAM11あるいはシステムROM12から読み出されて楽音生成部15に転送される。さらに、ステップS47にてその楽曲データにおける音符データがFIFO31が一杯になるまで先頭から楽音生成部15に転送される。この際に、そのプログラムナンバにおいてサビパターンだけを再生するよう設定されていた場合は、マークで挟まれたサビパターンの音符データがFIFO31が一杯になるまで先頭から転送される。システムCPU10は、どこまで転送したかを検出して、次に転送すべき楽曲データの先頭アドレスを記憶する。これにより、ランダムに選択された楽曲データが再生されるようになり、割込要求処理は終了する。
【0050】
上記説明したように、本発明の電話端末装置における楽曲再生関連処理や電話機能処理は、システムCPU10がプログラムを実行することにより実現されている。このようなプログラムはシステムROM12にプリセットされているが、システムRAM11に外部機器20からインストールするようにしてもよい。このように外部機器20からプログラムをインストールするようにすると、プログラムの差し替えやバージョンアップを容易に行うことができるようになる。この場合、外部機器20をCD−ROM、MO、HDD等のリムーバブルディスクのドライブとしてもよい。
【0051】
また、以上説明した楽音生成部15(115)における音源33(133)は、周波数変調方式の音源、すなわちFM音源により構成することができる。FM音源は、周波数変調によって生じる高調波を楽音の合成に利用したものであり、比較的簡単な回路で非調和音を含む高調波成分を持つ波形を発生することができる。FM音源は、自然楽器の合成音から電子音まで幅広い楽音を発生することができる。
FM音源では、正弦波を等価的に発振するオペレータと称される発振器を用いており、第1のオペレータと第2のオペレータとを縦続接続することによりFM音源を構成することができる。また、オペレータにおける自らの出力をフィードバックして入力するようにしてもFM音源を構成することができる。
【0052】
さらにまた、楽音生成部15(115)における音源33(133)の音源方式としては、FM音源方式に限るものではなく、波形メモリ音源(PCM音源、ADPCM音源)方式、物理モデル音源方式等とすることができ、音源の構成としてはDSP等を用いたハードウェア音源でも、音源プログラムを実行させるソフトウェア音源でもよい。
なお、本発明の電話端末装置は、上記した携帯電話機のみに適用されるものとではなく、楽音生成手段を備える情報機器や、楽音生成手段を備えるパーソナルコンピュータ等に適用することができる。
【0053】
【発明の効果】
本発明は以上説明したように、あらかじめプログラムされた順序、あるいは、ランダムな順序で複数の楽曲データを再生することによりメロディ音を生成することができるようになる。この場合、各楽曲データの再生順序およびループ再生回数、各楽曲データの全部再生あるいはサビパターン等の一部を再生するよう設定可能とされているので、ユーザは自分好みのメロディ音を生成することができる。
また、プログラムされたとおりに複数の楽曲データを再生するプログラム再生モード、ランダムな順序で複数の楽曲データを再生するランダム再生モード、および、一曲の楽曲データを繰り返し再生するループ再生モードのいずれかの再生モードを選択してメロディ音を生成することができるので、種々の態様のメロディ音で報知することができるようになる。
【図面の簡単な説明】
【図1】 本発明の電話端末装置を携帯電話機に適用した場合の実施の形態の構成例を示す図である。
【図2】 本発明の実施の形態にかかる携帯電話機の楽音生成部の第1の構成を示す図である。
【図3】 本発明の実施の形態にかかる携帯電話機の楽音生成部で再生される楽曲データのデータ構成を示す図である。
【図4】 本発明の実施の形態にかかる携帯電話機の楽音生成部の第2の構成を示す図である。
【図5】 本発明の実施の形態にかかる携帯電話機が第1の構成の楽音生成部とされている際の楽曲再生順序プログラミング処理のフローチャートである。
【図6】 図5に示す楽曲再生順序プログラミング処理により作成されるメドレーリストを示す図である。
【図7】 本発明の実施の形態にかかる携帯電話機が第1の構成の楽音生成部とされている際の楽曲再生メイン処理のフローチャートである。
【図8】 本発明の実施の形態にかかる携帯電話機が第1の構成の楽音生成部とされている際の割込要求(IRQ)処理のフローチャートである。
【符号の説明】
1 携帯電話機、1a アンテナ、2 基地局、2a アンテナ、10 システムCPU、11 システムRAM、12 システムROM、13 通信部、14音声処理部、15 楽音生成部、17 入力部、18 表示部、19 バイブレータ、20 外部機器、21 マイク、22 受話用スピーカ、23 着信用スピーカ、24 バス、30 インタフェース、31 FIFO、32 シーケンサ、33 音源、34 ディジタル・アナログ変換器、35 オア回路、115 楽音生成部、130 インタフェース、133 音源、134 ディジタル・アナログ変換器
[0001]
[Technical field to which the invention belongs]
The present invention relates to a telephone terminal device capable of informing a notification sound with a melody sound, and is particularly suitable for application to a car phone or a mobile phone.
[0002]
[Prior art]
In mobile phone systems such as PDC (Personal Digital Cellular telecommunication system) known as analog cellular systems and digital cellular systems, and simple mobile phone systems (PHS: Personal Handyphone System) When there is an incoming call, a ring tone is emitted to notify the user of the incoming call. As this ringing tone, a beep sound has been conventionally emitted. However, since the beep sound is annoying, it has recently been changed to a melody sound instead of a beep sound.
[0003]
[Problems to be solved by the invention]
A conventional mobile phone that can reproduce a melody sound is provided with a musical sound generating means that can perform automatically. This musical tone generating means generally comprises a central processing unit (CPU), a ROM (Read Only Memory), a RAM (Random Access Memory), and a musical tone generator, and the CPU executes an automatic performance program stored in the ROM. As a result, the music data stored in the ROM or RAM is read out, and the music is generated by setting the tone generation parameters to the musical sound generator.
In order to generate high-quality musical tones, recent musical tone generating means can reproduce music composed of a plurality of channels.
[0004]
However, in a conventional telephone terminal device such as a mobile phone, the melody sound for notifying the user of an incoming call or a hold is such that a predetermined music is repeatedly emitted and lacks interest. It was.
Therefore, an object of the present invention is to provide a telephone terminal device capable of generating a melody sound from a plurality of music pieces in a telephone terminal device capable of informing with a melody sound.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, the telephone terminal device of the present invention is a telephone terminal device capable of informing a notification sound with a melody sound, a storage means capable of storing a plurality of music data, a plurality of music data, A storage means capable of storing a medley list; and a control means for sequentially reading a plurality of music data from the storage means based on the medley list and transferring them to a musical sound generating means when an instruction to start the notification sound is given. And music tone generation means for generating the melody sound by reproducing the music data transferred from the control means, wherein the medley list includes the order information of the order of reproducing the plurality of music data, and the music to be reproduced. Designation information for specifying data, information on the number of times the specified music data is repeatedly played, and playback of all or part of the specified music data. It includes an indication information indicating whether the to, Each of these information can be set, The control means reads out the music data designated by the designation information based on the order information, and all or part of the music data indicated by the instruction information to the musical sound generation means at the number of times indicated by the frequency information. I try to forward it.
[0006]
In the telephone terminal device of the present invention, A part of music data indicated by the instruction information is indicated by sandwiching a part of the note data of the music data with a mark. May be.
[0008]
Furthermore, another telephone terminal device of the present invention capable of achieving the above object is a telephone terminal device capable of notifying a notification sound with a melody sound, and storing a plurality of music data and a medley list. And a control means for sequentially reading out a plurality of music data from the storage means according to a set mode and transferring the music data to the musical sound generating means when the notification sound is instructed to start, and transferred from the control means. Music data generating means for generating the melody sound, and the medley list includes order information for the order of reproducing the plurality of music data, and designation information for specifying the music data to be reproduced. , Information on the number of times the specified music data is repeatedly played, and instruction information for instructing whether to play all or only a part of the specified music data Look, Each of these information can be set, When the mode is set to the program playback mode, the control means reads the music data designated by the designation information based on the order information, and the instruction information is the number of times indicated by the number information. When all or a part of the music data to be instructed is transferred to the musical sound generating means, and the mode is set to the random playback mode, the control means is a plurality of the storage means from the storage means in a random order. The music data is sequentially read out and transferred to the tone generation means.
[0010]
According to the present invention, a melody sound can be generated by reproducing a plurality of pieces of music data in a pre-programmed order or a random order. In this case, it is possible to set the playback order of each music data and the number of times of loop playback, playback of all music data, or part of the chorus pattern, etc., so that the user can generate his / her favorite melody sound. Can do.
Also, one of a program playback mode that plays back multiple pieces of music data as programmed, a random playback mode that plays back multiple pieces of music data in random order, and a loop playback mode that plays back one piece of music data repeatedly Since the reproduction mode can be selected to generate a melody sound, the melody sound in various modes can be notified.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 shows a configuration example of an embodiment when the telephone terminal device of the present invention is applied to a mobile phone.
A cellular phone 1 shown in FIG. 1 includes a generally retractable antenna 1a, and the antenna 1a is connected to a communication unit 13 having a modulation / demodulation function. A central processing unit (CPU) 10 for the system is a system control unit that controls the operation of each unit of the mobile phone 1 by executing a telephone function program, and indicates an elapsed time during operation or specifies a specific time. A timer that generates a timer interrupt at the time interval is provided. Further, the system CPU 10 performs musical tone generation related processing described later. The system RAM 11 is a RAM (Random Access Memory) in which a music data storage area composed of a plurality of parts downloaded from a download center or the like, a user setting data storage area, a work area of the system CPU 10, and the like are set. The system ROM 12 is a ROM (Read Only Memory) in which various data such as various telephone function programs executed by the system CPU 10 and incoming telephone function programs, musical tone generation related processing, preset music data, and the like are stored.
[0012]
The communication unit 13 demodulates a signal received by the antenna 1a, modulates a signal to be transmitted, and supplies the modulated signal to the antenna 1a. The received signal demodulated by the communication unit 13 is decoded by the voice processing unit (coder / decoder) 14, and the call signal input from the microphone 21 is compressed and encoded by the voice processing unit 14. The voice processing unit 14 performs high-efficiency compression coding / decoding of voice, and is, for example, a CELP (Code Excited LPC) system or ADPCM (adaptive differential PCM coding) coder / decoder. The tone generation unit 15 generates and outputs a ringing melody and a holding tone by emitting a reception signal from the voice processing unit 14 from the reception speaker 22 or reproducing music data. The incoming melody is emitted from the incoming speaker 23, and the hold tone is mixed with the incoming signal and emitted from the incoming speaker 22.
[0013]
The music data is composed of timbre data, tempo data, and multi-part note data. The musical sound generation unit 15 reproduces musical sounds based on the music data, and at this time, a FIFO for storing musical note data is provided therein. This FIFO may have a storage capacity capable of storing note data for one song, but when the storage capacity is small and note data for one song cannot be stored, when a predetermined amount of empty area is generated in the FIFO, The musical tone generation unit 15 may give an interrupt request signal (IRQ) to the system CPU 10, and the system CPU 10 may read the continuation of the note data stored in the RAM 11 or the ROM 12 and transfer it to the musical tone generation unit 15.
[0014]
Further, the interface (I / F) 16 is an interface for downloading music data including one or more sequence data from an external device 20 such as a personal computer. The input unit 17 is an input unit that includes dial buttons and various buttons “0” to “9” provided in the mobile phone 1. The display unit 18 is a display that displays a menu corresponding to a telephone function or a button operation such as a dial button. The vibrator 19 is a vibrator that informs the user of an incoming call by vibrating the main body of the mobile phone 1 instead of a ringtone when receiving an incoming call. Each functional block exchanges data and commands via the bus 24.
[0015]
Next, FIG. 2 shows a first configuration of the tone generation unit 15 in the mobile phone 1 according to the embodiment of the present invention. In the first configuration, the tone generation unit 15 has a sequence function. In addition, the data structure of the music data reproduced by the musical sound generation unit 15 is shown in FIG. 3, and this data structure will be described first.
The music data shown in FIG. 3 is music data stored in the system RAM 11 or the system ROM 12. As shown in the drawing, the music data has a data structure in which a header is arranged at the head, followed by timbre data, tempo data, and note data for each part, and finally, end data is arranged. The note data consists of a mix of note data for each part.As shown in the figure, note data consists of part data indicating the part to which it belongs, scale data consisting of note information and octave information, and up to the next note data. Interval data indicating time length is composed of pronunciation length data composed of sound length information such as quarter notes and eighth notes. The rest is represented by interval data.
[0016]
The resolution of interval data and pronunciation length data in note data is based on tempo data. If the tempo data is different, the actual time shown will be different even if the interval data and the pronunciation length data are the same. Become. In addition, a mark is inserted between the note data. This mark indicates that the note data sandwiched between the marks is note data of a chorus pattern. That is, by extracting only the note data sandwiched between marks, it is possible to reproduce only the note data of the chorus pattern. This mark does not only indicate the note data of the chorus pattern, but the note data of the pattern may be indicated by sandwiching the note data such as the intro pattern, the main pattern, or the ending pattern.
[0017]
In addition, since it is possible to detect the end of the music data by detecting the end data arranged at the end of the music data, if there is music data to be reproduced next, this music Data can be prepared for playback.
Furthermore, although the music data is composed of a plurality of parts, the parts are, for example, four parts including a melody part, accompaniment part 1, accompaniment part 2 and rhythm part. Such music data can be downloaded from a distribution center or the like via the base station 2 shown in FIG. The downloaded music data is stored in the system RAM 11. The base station 2 is provided with a base station antenna 2a.
[0018]
In the mobile phone 1 according to the embodiment of the present invention, music data having the data structure shown in FIG. 2 is sequentially read out for a plurality of music pieces and can be reproduced in a predetermined order. In this case, a program playback mode, a random playback mode, and a loop playback mode are prepared as playback modes. In the program playback mode, a medley list for program playback shown in FIG. 6A is created in advance. This medley list includes a program number (PN) for determining the order of music data to be reproduced, a music number (No) for designating music data to be reproduced, and a loop number LN indicating the number of times the designated music data is repeatedly reproduced. , It is composed of all / rust information for instructing whether to reproduce all of the designated music data or only the chorus pattern.
[0019]
In the random playback mode, the music data specified at random is played back by the system CPU 10 performing calculations based on a predetermined rule. In this case, instead of designating only the music number at random, the loop number and all / sabi information may be set at random and reproduced.
Further, in the loop playback mode, a medley list for loop playback shown in FIG. 6B is created in advance. In this medley list, since the music data to be reproduced is one music, the program number (PN) is only “1”, and the music number for designating the music to be reproduced and the designated music data are repeatedly reproduced. It is composed of a loop number (LN) indicating the number of times, and all / rust information for instructing whether to reproduce all of the designated music data or only the chorus pattern. However, although the loop number “50” in the medley list shown in FIG. 6B is a default value, the loop number is not limited to “50”, and an arbitrary numerical value can be set.
[0020]
The musical tone generator 15 having the first configuration shown in FIG. 2 is set to any one of the program playback mode, random playback mode, and loop playback mode described above, and generates a melody sound.
As shown in FIG. 2, the tone generator 15 includes an interface (I / F) 30, a FIFO (First-In First-Out) 31, a sequencer 32, a sound source 33, a digital / analog converter (DAC) 34, and an OR circuit 35. It is comprised by.
The interface 30 is coupled to the system CPU 10 via the bus 24, and music data read from the system RAM 11 or the system ROM 12 under the control of the system CPU 10 is written to an internal data register via the bus 24. In this case, when the program playback mode or the loop playback mode is set, the system CPU 10 reads the music data in the order based on the medley list created in advance. When the chorus is designated as all / chorus information of the music data read in the medley list, the system CPU 10 reads the chord pattern note data sandwiched between marks and transfers it to the interface 30.
[0021]
When the random playback mode is set, the system CPU 10 performs calculation based on a predetermined rule, thereby reading out the music data designated at random and transferring it to the interface 30. The musical note data (Data) of the music data written to the data register of the interface 30 is written to the FIFO 31, and the timbre data of each part of the music data written to the data register is transferred to the sound source 33. .
The registers built in the interface 30 include a sequencer control register, a data register, and a status register. The sequencer control register is a register in which sequencer control data for controlling the sequencer 32 is written by the system CPU 10. The sequencer control data written to the sequencer control register includes sequencer start instruction data (Start) for instructing the start of music playback and sequencer stop instruction data (Stop) for instructing the stop of music playback. .
[0022]
The data register is a register in which music data is temporarily written by the system CPU 10, and note data among the music data written in the data register is written in the FIFO 31, and timbre data is written in the sound source 33. Tempo data (Temp) is transferred to the sequencer 32.
Further, the status register is a register indicating the tone generation state of the tone generator 15. This status register includes a note data empty flag (Empty) output from the FIFO 31 and a music data end flag (END) output from the sequencer 32. This status register is a register read by the system CPU 10.
[0023]
The FIFO 31 has a capacity of, for example, 32 bytes (32 × 8 bits), and the note data of the music data selected from the system CPU 10 is sequentially written via the data register of the interface 30 and the note data is written in the order of writing. Are sequentially read by the read request signal (Req) of the sequencer 32. The note data read by the sequencer 32 is discarded from the FIFO 31. The FIFO 31 has a function of monitoring the data amount of stored note data in addition to the FIFO function, and the data amount of the note data is set in advance by the system CPU 10 (for example, 8 bytes). It has a function of generating a note data empty signal (Empty) and setting a note data empty flag in the status register of the interface 30 when the following occurs. This note data empty signal is notified to the system CPU 10 as an interrupt request signal (IRQ) via the OR circuit 35.
[0024]
When the sequencer start instruction data is written from the system CPU 10 to the sequencer control register of the interface 30, the sequencer 32 is instructed to start the sequencer (Start) and operates as follows. However, prior to the sequencer start instruction, the tempo data (Temp) is transferred to the sequencer 32, the tone color data of each part is written in the sound source 33, and some note data is written in the FIFO 31. There is a need.
[0025]
First, the sequencer 32 captures the first note data stored in the FIFO 31. The first note data is usually only interval data for the first pronunciation. Waiting for the waiting time based on this interval data and tempo data to be reached, the next note data is taken in, and the scale data is taken. Based on the sound production length data, sound generation parameters such as key-on, key-off, and key code are generated and supplied to the sound source 33. Also, the next note data that follows at this timing is taken in, and preparation for the next reproduction is made. This preparation for reproduction is management of time corresponding to the captured note data, and time management is performed based on tempo data and interval data. The sound source 33 generates a musical tone of the part indicated by the sound generation parameter based on the supplied sound generation parameter. In this case, the tone color of the musical tone generated by the part is the tone color of the part set in advance by the tone color data supplied from the interface 30.
[0026]
Then, after the time corresponding to the pronunciation length data included in the note data has elapsed, the reproduction by the sound source 33 is stopped. Next, the same generation process is performed on the next note data. Such generation processing is performed until the end data is detected. When the end data is detected, the sequencer 32 and the sound source 33 stop the operation and clear all data in the FIFO 31. Also, a music data end signal (END) is generated, and a music data end flag is set in the status register of the interface 30. By referring to this flag, the system CPU 10 reads the music data in the order to be reproduced next from the system RAM 11 or the system ROM 12 and transfers the music data to the interface 30. Thereby, it is possible to generate a melody sound obtained by reproducing a plurality of music data or a melody sound obtained by repeatedly reproducing the same music data. Such a generation process is terminated when the incoming call button of the input unit 17 is operated on the mobile phone 1 or when the hold release operation is performed. It is also terminated when the communication line is disconnected.
[0027]
The sound source 33 generates and outputs PCM waveform data composed of a plurality of parts based on sound generation parameters such as key-on, key-off, and key code. The PCM waveform data is converted into an analog musical tone signal by a digital / analog converter (ADC) 34. When this musical sound signal is used as a melody sound for notifying an incoming call, the generated melody sound is emitted from the incoming speaker 23. When the musical sound signal is used as a melody sound for notifying the hold, the reproduced melody sound (sending hold sound for transmission) is supplied to the voice processing unit 14, and is subjected to high-efficiency compression coding and transmitted to the other party. The
[0028]
The OR circuit 35 generates an interrupt request signal (IRQ) to the system CPU 10 based on a note data empty signal (Empty) output from the FIFO 31 when the note data in the FIFO 31 becomes a predetermined amount or less. Further, the OR circuit 35 generates an interrupt request signal (IRQ) to the system CPU 10 based on the music data end flag (END) output from the sequencer 32. Upon receiving the interrupt request signal (IRQ), the system CPU 10 refers to the flag in the status register of the interface 30 to investigate the cause of the interrupt request signal (IRQ) and perform processing corresponding thereto. At this time, when the note data empty flag is set and it is detected that the cause of the interrupt request signal (IRQ) is an insufficient amount of note data in the FIFO 31, for example, transfer of note data of 32 bytes-8 bytes = 24 bytes. Is performed by the system CPU 10. In the transfer of the note data, subsequent note data is read from the system RAM 11 or the system ROM 12 and transferred. The transfer of 24-byte note data is not necessarily performed immediately, and it is not always necessary to transfer all 24 bytes. The musical sound generation unit 15 may transfer the playback sound at a timing and transfer amount at which the playback sound can be played back without interruption.
If the music data end flag is set in the status register of the interface 30, the music data in the order to be reproduced next is read from the system RAM 11 or the system ROM 12, and the music data is transferred to the interface 30.
[0029]
As described above, in the tone generation unit 15 shown in FIG. 2, when the system CPU 10 issues a melody tone reproduction start instruction, the sequencer 32 detects this and starts generating the melody tone. When the system CPU 10 issues a playback start instruction, when the mobile phone 1 receives an incoming call notification and starts playing a ringtone (ringtone melody), the hold operation key is operated to start playing the holdtone. This is the case.
[0030]
Next, FIG. 4 shows a second configuration of the tone generation unit in the mobile phone 1 according to the embodiment of the present invention shown in FIG. In the tone generator 115 of the second configuration, the system CPU 10 is responsible for the sequence function. The music data reproduced by the tone generator 115 having the second configuration has the data configuration shown in FIG.
The tone generator 115 having the second configuration shown in FIG. 4 is set to any one of the program playback mode, random playback mode, and loop playback mode described above to generate a melody sound.
[0031]
As shown in FIG. 4, the musical sound generation unit 115 includes an interface (I / F) 130, a sound source 133, and a digital / analog converter (DAC) 134.
The interface 130 is coupled to the system CPU 10 via the bus 24, and the sound generation parameters generated by the system CPU 10 are connected to the internal data via the bus 24 together with the timbre data in the music data read from the system RAM 11 or the system ROM 12. • It is written to the register. The sound generation parameters are generated by the system CPU 10 executing a sequence processing program based on the music data read from the system RAM 11 or the system ROM 12.
[0032]
The interface 130 supplies the written sound parameters to the sound source 133 and also supplies timbre data to the sound source 133. The sound source 133 generates a musical tone of the part indicated by the sound generation parameter based on the supplied sound generation parameter. In this case, the tone color of the musical tone generated by that part is the tone color of the part set by the tone color data supplied from the interface 130. The sound source 133 generates and outputs PCM waveform data composed of a plurality of parts by sequentially supplying sound generation parameters such as key-on, key-off, and key code. The PCM waveform data is converted into an analog musical tone signal by a digital / analog converter (ADC) 134. When this musical sound signal is used as a melody sound for notifying an incoming call, the generated melody sound is emitted from the incoming speaker 23. When the musical sound signal is used as a melody sound for notifying the hold, the reproduced melody sound (sending hold sound for transmission) is supplied to the voice processing unit 14, and is subjected to high-efficiency compression coding and transmitted to the other party. The
[0033]
A music reproduction process including a sequence process executed by the system CPU 10 that supplies sound generation parameters to the musical tone generation unit 115 having the second configuration will be described below.
System CPU 10 starts generating a melody sound when an incoming notification is detected in mobile phone 1 and when hold is detected by operating a hold operation key. First, the system CPU 10 reads music data for generating a melody sound from the system RAM 11 or the system ROM 12. Here, when the program playback mode or the loop playback mode is set, the system CPU 10 reads the music data from the system RAM 11 or the system ROM 12 in the order based on the medley list created in advance. When the chorus is designated as the total / chorus information of the music data read in the medley list, the system CPU 10 reads the note data of the chorus pattern sandwiched between marks. When the random playback mode is set, the music data designated at random is read by the system CPU 10 performing an operation based on a predetermined rule.
[0034]
The timbre data of each part in the read music data is written to the interface 130. The system CPU 10 interprets the first note data in the read music data, but the first note data is usually only interval data for performing the first pronunciation. Therefore, after waiting for the waiting time based on the interval data and the tempo data read from the system RAM 11 or the system ROM 12 to be reached, the next note data is read out, and the key-on, Sound generation parameters such as key-off and key code are generated and written to the interface 130. Next, the subsequent next note data is read out to prepare for the next reproduction. This preparation for reproduction is management of time corresponding to the subsequent note data, and time management is performed based on tempo data and interval data. Note that the interface 130 supplies the written sound parameter to the sound source 133, and the sound source 133 generates a musical tone of the part indicated by the sound parameter based on the supplied sound parameter. In this case, the tone color of the musical tone generated in that part is the tone color of the part set in advance with the tone color data supplied from the interface 130.
[0035]
Then, the system CPU 10 stops reproduction by the sound source 133 after waiting for the time corresponding to the pronunciation length data included in the note data to elapse. Next, the same music reproduction process is performed on the next read note data. The system CPU 10 performs such a music reproduction process until the end data is detected. When the end data is detected, the system CPU 10 reads out the music data in the order to be reproduced next from the system RAM 11 or the system ROM 12 and reproduces the music. Repeat the process. This music reproduction process is terminated after the incoming call button of the input unit 17 is operated on the mobile phone 1 or the hold release operation is performed. Thereby, when the program playback mode or the loop playback mode is set, it is possible to generate a melody sound in which the music data is played back in the order based on the medley list. When the loop playback mode is set, a melody sound can be generated by repeatedly playing the same music data.
[0036]
Next, in the telephone terminal device of the present invention, the music playback related processing when the music playback unit has the first configuration having the sequence function is shown in FIG. 5, FIG. 7, and FIG. This will be described with reference to a flowchart.
FIG. 5 shows a music reproduction order programming process, and a medley list is created by this process.
When the music reproduction order programming process is activated, the program number register PN is set to “1” in step S1. Next, in step S2, it is determined whether or not a medley is instructed to generate a melody sound from a plurality of music pieces. If it is determined that medley is instructed, it is determined in step S3 whether or not the random playback mode is set. If it is determined in this step that the program playback mode is set instead of the random playback mode, the process proceeds to step S4 where the music number to be selected is set, and the music data of the music number selected in step S5 is repeatedly played back. The number of loops is set, and further, in step S6, whether to reproduce the entire music data or only the chorus pattern is set. Thereby, the reproduction information regarding the music data of the program number 1 (PN = 1) is set. Next, in step S7, it is determined whether or not all music data settings for generating a melody sound have been completed.
[0037]
If the setting of the music data for generating the melody sound has not been completed, the process branches to step S11 and the program number register PN is incremented by “1” to be the program number 2 (PN = 2). The Then, returning to step S4, the processing from step S4 to step S6 is repeatedly executed, and reproduction information relating to the music data of program number 2 (PN = 2) is set. Such processing is repeatedly performed until the setting of the music data for generating the melody sound is completed until the music reproduction order programming process is completed.
[0038]
The process described above is a process for creating a medley list in the program playback mode. When the process described above is performed, for example, a medley list shown in FIG. 6A is created. In this medley list, program numbers PN are 1 to 4, and music data is selected in each program number PN. The music number of the first music data is set to “1”, the loop number LN is set to “2”, and it is set to reproduce only the chorus pattern. The music number of the second music data is set to “5”, the loop number LN is set to “1”, and the entire music data is set to be reproduced. The music number of the third music data is “2”, the loop number LN is “1”, and only the chorus pattern is set to be reproduced. The music number of the last music data is “4”, the loop number LN is “2”, and only the chorus pattern is set to be reproduced. As a result, when the program playback mode is set, the music data is played back in the order of the music numbers “1”, “5”, “2”, and “4” based on this medley list to generate a melody sound. .
[0039]
By the way, if it is determined in step S2 that the medley is not instructed, the process branches to step S8 to set the music number to be selected, and then the entire music data of the music number selected in step S9 is reproduced. Set whether to play only the chorus pattern. The processes in steps S8 and S9 are a process for creating a medley list in the loop reproduction mode. When the process described above is performed, for example, a medley list shown in FIG. 6B is created. In this medley list, the program number PN is only 1, and one piece of music data is selected. The music number of this music data is set to “3”, the loop number LN is set to “50”, and it is set to reproduce all of the music data. Note that the loop number LN that can be repeated 50 times is a default value, and of course, the loop number can be set to an arbitrary numerical value. As a result, when the loop playback mode is set, the music data of the music number “3” is repeatedly played based on this medley list to generate a melody sound.
[0040]
Further, if it is determined in step S3 that the random playback mode is set, the random playback mode is set in step S10. Here, no medley list is created. When the random playback mode is set, the system CPU 10 performs a calculation based on a predetermined rule, whereby the music data designated at random is sequentially played back and a melody sound is generated.
[0041]
FIG. 7 is a flowchart of the music reproduction main process.
When the music playback main process is started, it is determined in step S21 whether or not a music playback trigger has been detected. The music playback trigger in this case is determined to be a music playback trigger when an incoming notification is detected in the mobile phone 1 and when a hold operation is performed by operating the hold operation key. If it is determined that there is an incoming call or a hold operation and there is a music playback trigger, it is determined in step S22 whether or not the random playback mode is set. If the program playback mode or loop playback mode is set, the program number register PN is set to “1” in step S23, and the data of the program number 1 in the medley list is accessed. If the random playback mode is set, the process branches to step S30 and the system CPU 10 performs a calculation based on a predetermined rule, whereby a music number is selected at random.
[0042]
Next, in any case, the timbre data and tempo data of the music number set in the program number 1 or the music data selected at random in step S24 are read from the system RAM 11 or the system ROM 12. It is transferred to the tone generator 15. Further, in step S25, the note data in the music data is transferred from the head to the musical sound generating unit 15 until the FIFO 31 is full. At this time, if the program number 1 is set to reproduce only the chorus pattern, the note data of the chorus pattern sandwiched between marks is transferred from the head until the FIFO 31 is full. The system CPU 10 detects how far the data has been transferred and stores the head address of the music data to be transferred next.
[0043]
In this case, in the random playback mode, it may be determined at random whether all the music data is played or only the chorus pattern is played. Next, the loop number LN in the program number 1 is stored in step S26. In this case, in the random playback mode, the loop number may be determined by a random value. In step S27, the system CPU 10 transfers a reproduction start command (Start) to the musical sound generation unit 15. As a result, the musical sound generation unit 15 starts generating the melody sound by playing the musical sound based on the transferred tone color data, tempo data, and note data.
[0044]
Music reproduction in the musical sound generation unit 15 is executed until a music end trigger is detected in step S28. The music end trigger is detected when the incoming call button of the input unit 17 is operated on the mobile phone 1 or when the hold release operation is performed. It is also detected when the communication line is disconnected or when all the programmed music data has been reproduced. Here, when a music end trigger is detected, a playback stop command (Stop) is transferred to the tone generator 15 in step S29, and the operation of the tone generator 15 is stopped and cleared. Then, the music playback main process ends. If the music playback trigger is not detected in step S21, the music playback main process is terminated.
[0045]
By the way, the music sound generation unit 15 may send an interrupt request signal (IRQ) to the system CPU 10 during reproduction of music data. FIG. 8 shows a flowchart of the interrupt request process (IRQ process) executed at this time. This interrupt request process is performed between step S27 and step S28 of the music reproduction main process.
When the system CPU 10 detects the interrupt request signal (IRQ), the interrupt request processing is started, and the interrupt request signal is referred to by referring to the note data empty flag in the status register of the interface 30 in the tone generator 15 in step S41. It is determined whether or not the cause of (IRQ) is a note data empty signal (Empty). Here, if the note data empty flag is set, the note data amount of the FIFO 31 is insufficient, so that the subsequent note data is transferred to the musical tone generation unit 15 in step S48. Then, the interrupt request process ends.
[0046]
If the music data end flag is set in the status register of the interface 30 instead of the note data empty flag, it is determined No in step S41 and the process proceeds to step S42. That is, when the reproduction of the music data of one song is completed, the process proceeds to step S42, and it is determined whether or not the random reproduction mode is set in step S42. If the program playback mode or the loop playback mode is set, the process proceeds to step S43 and the loop number register LN is decremented by one. Next, in step S44, it is determined whether or not the value of the loop number register LN has become “0”. If it is determined that LN = 0, the music data has been played the set number of times, and the program number is incremented by 1 in step S45, and the next program number in the medley list is accessed. Will come to be.
[0047]
Next, the process proceeds to step S46, and the timbre data and tempo data in the music data set in the next program number are read from the system RAM 11 or the system ROM 12 and transferred to the musical tone generation unit 15. Further, in step S47, the note data in the music data is transferred from the head to the musical sound generating unit 15 until the FIFO 31 is full. At this time, if the program number is set to reproduce only the chorus pattern, the note data of the chorus pattern sandwiched between marks is transferred from the head until the FIFO 31 is full. The system CPU 10 detects how far the data has been transferred and stores the head address of the music data to be transferred next. As a result, the music data set in the next program number is played back, and the interrupt request process ends.
[0048]
If it is determined in step S44 that LN ≠ 0, step S45 is skipped and the process proceeds to step S46. In step S46, the timbre data and tempo data in the music data that has been reproduced are read from the system RAM 11 or the system ROM 12 again and transferred to the musical tone generation unit 15. Further, in step S47, the note data in the music data is transferred from the head to the musical sound generating unit 15 until the FIFO 31 is full. At this time, if the program number is set to reproduce only the chorus pattern, the note data of the chorus pattern sandwiched between marks is transferred from the head until the FIFO 31 is full. The system CPU 10 detects how far the data has been transferred and stores the head address of the music data to be transferred next. As a result, the same music data is repeatedly reproduced until the loop number LN becomes “0”, and the interrupt request process ends.
[0049]
Further, if it is determined in step S42 that the random playback mode is set, the process branches to step S49 and the system CPU 10 performs a calculation based on a predetermined rule, so that a music number is randomly selected. Proceed to step S46. In step S46, the tone color data and tempo data in the music data selected at random are read from the system RAM 11 or the system ROM 12 and transferred to the musical tone generation unit 15. Further, in step S47, the note data in the music data is transferred from the head to the musical sound generating unit 15 until the FIFO 31 is full. At this time, if the program number is set to reproduce only the chorus pattern, the note data of the chorus pattern sandwiched between marks is transferred from the head until the FIFO 31 is full. The system CPU 10 detects how far the data has been transferred and stores the head address of the music data to be transferred next. As a result, the music data selected at random is played back, and the interrupt request process ends.
[0050]
As described above, the music reproduction related processing and the telephone function processing in the telephone terminal device of the present invention are realized by the system CPU 10 executing the program. Such a program is preset in the system ROM 12 but may be installed in the system RAM 11 from the external device 20. If the program is installed from the external device 20 in this way, the program can be easily replaced or upgraded. In this case, the external device 20 may be a removable disk drive such as a CD-ROM, MO, and HDD.
[0051]
Further, the sound source 33 (133) in the musical sound generation unit 15 (115) described above can be configured by a frequency modulation type sound source, that is, an FM sound source. The FM sound source uses harmonics generated by frequency modulation for synthesizing musical sounds, and can generate a waveform having a harmonic component including anharmonic sound with a relatively simple circuit. The FM sound source can generate a wide range of musical sounds from synthesized sounds of natural musical instruments to electronic sounds.
The FM sound source uses an oscillator called an operator that oscillates a sine wave equivalently, and the FM sound source can be configured by cascading the first operator and the second operator. Also, the FM sound source can be configured even if the operator's own output is fed back and input.
[0052]
Furthermore, the sound source method of the sound source 33 (133) in the tone generation unit 15 (115) is not limited to the FM sound source method, but a waveform memory sound source (PCM sound source, ADPCM sound source) method, a physical model sound source method, or the like. The sound source may be a hardware sound source using a DSP or the like, or a software sound source that executes a sound source program.
Note that the telephone terminal device of the present invention is not applied only to the above-described mobile phone, but can be applied to an information device including a musical sound generating unit, a personal computer including a musical sound generating unit, and the like.
[0053]
【The invention's effect】
As described above, the present invention can generate a melody sound by reproducing a plurality of pieces of music data in a pre-programmed order or a random order. In this case, it is possible to set the playback order of each music data and the number of times of loop playback, playback of all music data, or part of the chorus pattern, etc., so that the user can generate his / her favorite melody sound. Can do.
Also, one of a program playback mode that plays back multiple pieces of music data as programmed, a random playback mode that plays back multiple pieces of music data in random order, and a loop playback mode that plays back one piece of music data repeatedly Since the reproduction mode can be selected to generate a melody sound, the melody sound in various modes can be notified.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration example of an embodiment when a telephone terminal device of the present invention is applied to a mobile phone.
FIG. 2 is a diagram showing a first configuration of a tone generation unit of the mobile phone according to the embodiment of the present invention.
FIG. 3 is a diagram showing a data structure of music data reproduced by a musical tone generation unit of the mobile phone according to the embodiment of the present invention.
FIG. 4 is a diagram showing a second configuration of the musical tone generation unit of the mobile phone according to the embodiment of the present invention.
FIG. 5 is a flowchart of a music reproduction order programming process when the mobile phone according to the embodiment of the present invention is a musical tone generator of the first configuration.
6 is a diagram showing a medley list created by the music playback order programming process shown in FIG. 5. FIG.
FIG. 7 is a flowchart of a music playback main process when the mobile phone according to the embodiment of the present invention is a musical tone generator of the first configuration.
FIG. 8 is a flowchart of an interrupt request (IRQ) process when the mobile phone according to the embodiment of the present invention is a musical tone generator of the first configuration.
[Explanation of symbols]
1 cellular phone, 1a antenna, 2 base station, 2a antenna, 10 system CPU, 11 system RAM, 12 system ROM, 13 communication unit, 14 voice processing unit, 15 musical sound generation unit, 17 input unit, 18 display unit, 19 vibrator , 20 External device, 21 Microphone, 22 Reception speaker, 23 Incoming speaker, 24 bus, 30 interface, 31 FIFO, 32 Sequencer, 33 Sound source, 34 Digital / analog converter, 35 OR circuit, 115 Musical sound generator, 130 Interface, 133 Sound source, 134 Digital / analog converter

Claims (3)

報知音をメロディ音で報知可能な電話端末装置であって、
複数の楽曲データを記憶可能な記憶手段と、
複数の楽曲データと、メドレーリストとを記憶可能な記憶手段と、
前記報知音のスタート指示がされた時に、前記メドレーリストに基づいて前記記憶手段から複数の楽曲データを順次読み出して、楽音生成手段に転送する制御手段と、
該制御手段から転送された楽曲データを再生して、前記メロディ音を生成する楽音生成手段とを備え、
前記メドレーリストは、前記複数の楽曲データを再生する順番の順番情報と、再生する楽曲データを指定する指定情報と、指定した楽曲データを繰り返し再生する回数の回数情報と、指定した楽曲データの全部を再生するか、あるいは一部だけを再生するかを指示する指示情報を含み、これらの各情報を設定可能とされており、前記制御手段は、前記順番情報に基づいて前記指定情報で指定された楽曲データを読み出し、前記回数情報が指示する回数で前記指示情報が指示する楽曲データの全部あるいは一部を前記楽音生成手段に転送するようにしたことを特徴とする電話端末装置。
A telephone terminal device capable of informing a notification sound with a melody sound,
Storage means capable of storing a plurality of music data;
Storage means capable of storing a plurality of music data and a medley list;
Control means for sequentially reading a plurality of music data from the storage means based on the medley list and transferring the music data to the musical sound generation means when the notification sound is instructed to start;
Playing music data transferred from the control means, and generating a melody sound;
The medley list includes order information on the order of reproducing the plurality of music data, designation information for designating music data to be reproduced, number of times information for repeatedly reproducing the designated music data, and all of the designated music data. Instruction information for instructing whether to reproduce or only a part of the information is to be reproduced, and each of these pieces of information can be set. The control means is designated by the designation information based on the order information. The telephone terminal apparatus is characterized in that the music data is read out and all or part of the music data indicated by the instruction information is transferred to the musical sound generating means at the number of times indicated by the frequency information.
前記指示情報で指示される一部の楽曲データが、楽曲データの音符データの一部をマークにより挟むことにより指示されていることを特徴とする請求項1記載の電話端末装置。  2. The telephone terminal device according to claim 1, wherein a part of the music data indicated by the instruction information is instructed by sandwiching a part of the note data of the music data with a mark. 報知音をメロディ音で報知可能な電話端末装置であって、
複数の楽曲データと、メドレーリストとを記憶可能な記憶手段と、
前記報知音のスタート指示がされた時に、設定されたモードに応じて前記記憶手段から複数の楽曲データを順次読み出して、楽音生成手段に転送する制御手段と、
該制御手段から転送された楽曲データを再生して、前記メロディ音を生成する楽音生成手段とを備え、
前記メドレーリストは、前記複数の楽曲データを再生する順番の順番情報と、再生する楽曲データを指定する指定情報と、指定した楽曲データを繰り返し再生する回数の回数情報と、指定した楽曲データの全部を再生するか、あるいは一部だけを再生するかを指示する指示情報を含み、これらの各情報を設定可能とされており、前記モードがプログラム再生モードと設定されている場合には、前記制御手段は、前記順番情報に基づいて前記指定情報で指定された楽曲データを読み出し、前記回数情報が指示する回数で前記指示情報が指示する楽曲データの全部あるいは一部を前記楽音生成手段に転送するようにし、前記モードがランダム再生モードと設定されている場合には、前記制御手段は、ランダムな順序で前記記憶手段から複数の楽曲データを順次読み出して、前記楽音生成手段に転送するようにされていることを特徴とする電話端末装置。
A telephone terminal device capable of informing a notification sound with a melody sound,
Storage means capable of storing a plurality of music data and a medley list;
Control means for sequentially reading out a plurality of music data from the storage means according to a set mode and transferring the music data to the musical sound generation means when an instruction to start the notification sound is given;
Playing music data transferred from the control means, and generating a melody sound;
The medley list includes order information on the order of reproducing the plurality of music data, designation information for designating music data to be reproduced, number of times information for repeatedly reproducing the designated music data, and all of the designated music data. If the mode is set to the program playback mode, the control information can be set. The means reads the music data designated by the designation information based on the order information, and transfers all or a part of the music data indicated by the instruction information to the musical tone generation means at the number of times indicated by the frequency information. In the case where the mode is set to the random playback mode, the control means may select a plurality of songs from the storage means in a random order. Sequentially reads out over data, telephone terminal apparatus characterized by being adapted to transfer to said tone generation means.
JP2000165548A 2000-06-02 2000-06-02 Telephone terminal device Expired - Fee Related JP3821352B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000165548A JP3821352B2 (en) 2000-06-02 2000-06-02 Telephone terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000165548A JP3821352B2 (en) 2000-06-02 2000-06-02 Telephone terminal device

Publications (2)

Publication Number Publication Date
JP2001345883A JP2001345883A (en) 2001-12-14
JP3821352B2 true JP3821352B2 (en) 2006-09-13

Family

ID=18669006

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000165548A Expired - Fee Related JP3821352B2 (en) 2000-06-02 2000-06-02 Telephone terminal device

Country Status (1)

Country Link
JP (1) JP3821352B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100456003B1 (en) * 2001-12-21 2004-11-08 에스케이텔레텍주식회사 Method for Selectively Executing Contents for Mobile Communication Device by User Definition
KR100703360B1 (en) 2003-08-28 2007-04-03 삼성전자주식회사 Apparatus and method for displaying a plurality of video image continuously in a mobile communication terminal
JP2008205894A (en) * 2007-02-21 2008-09-04 Nakayo Telecommun Inc Telephone device having holding tone function

Also Published As

Publication number Publication date
JP2001345883A (en) 2001-12-14

Similar Documents

Publication Publication Date Title
JP3580210B2 (en) Mobile phone with composition function
JP3975639B2 (en) Telephone terminal device
KR100450871B1 (en) Portable telephone and music reproducing method
JP3719057B2 (en) Telephone terminal device and communication method
JP3874235B2 (en) Music playback device and portable terminal device
JP3775156B2 (en) Mobile phone
JP3862061B2 (en) Music sound reproducing device, music sound reproducing method, and portable terminal device
KR100578588B1 (en) Music reproducing apparatus
JP3775241B2 (en) Telephone terminal device
JP3821352B2 (en) Telephone terminal device
JP2002152329A (en) Portable terminal system
JP3641999B2 (en) Music data distribution device and terminal device
JP3279298B2 (en) Music playing device, mobile phone device having music playing function, and music playing method
JP3279293B2 (en) Music playback device, mobile phone device having music playback function, and music playback method
JP3642039B2 (en) Musical sound reproducing device and portable terminal device
JP2001211235A (en) Portable telephone set
JP2001345886A (en) Telephone terminal equipment
JP3982532B2 (en) Musical sound reproducing device and portable terminal device
JP2001060990A (en) Telephone terminal equipment and music data transferring method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040525

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040723

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040831

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041029

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20041110

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20041203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060615

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110630

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120630

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120630

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130630

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees