[go: up one dir, main page]

JP2012098375A - Musical device and program realizing its control method - Google Patents

Musical device and program realizing its control method Download PDF

Info

Publication number
JP2012098375A
JP2012098375A JP2010244176A JP2010244176A JP2012098375A JP 2012098375 A JP2012098375 A JP 2012098375A JP 2010244176 A JP2010244176 A JP 2010244176A JP 2010244176 A JP2010244176 A JP 2010244176A JP 2012098375 A JP2012098375 A JP 2012098375A
Authority
JP
Japan
Prior art keywords
clip
memory
store
loop
stored
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
JP2010244176A
Other languages
Japanese (ja)
Inventor
Hidehiko Miura
秀彦 三浦
Kiyohisa Sugii
清久 杉井
Manabu Kawada
学 川田
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 JP2010244176A priority Critical patent/JP2012098375A/en
Publication of JP2012098375A publication Critical patent/JP2012098375A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a musical device and a program for realizing its control method, which make it possible to easily perform loop reproduction by overlapping input acoustic signals every preset length of time.SOLUTION: By performing a first loop reproduction start process, each clip during reproduction is mixed from a clip memory 105b by an adder 100b, and supplied to an acoustic output section 107 via an adder 100c. When one of the clips SW is pressed while four clips are stored in a storing memory 105c, a second loop reproduction start process is added and both the processes are performed. A clip whose loop reproduction has been started by the second loop reproduction start process is added to output from the adder 100b by the adder 100c, and supplied to the acoustic output section 107. The clip memory 105b supplies the adder 100b with clips from which only the number of clips whose loop reproductions have been started by the second loop reproduction start process are subtracted. Then, the clips are output.

Description

本発明は、入力した音響信号をループ再生する音楽装置およびその制御方法を実現するためのプログラムに関する。   The present invention relates to a music apparatus for loop-playing an input acoustic signal and a program for realizing a control method thereof.

入力した音響信号をループ再生する音楽装置は、従来から知られている。   2. Description of the Related Art Music devices that perform loop reproduction of input acoustic signals are conventionally known.

このような装置として、記録媒体に記録された楽曲信号を再生し、再生した楽曲信号をメモリに蓄積し、メモリに蓄積される楽曲信号の無音区間を検出し、無音区間を検出したとき、当該無音区間より前の一定区間の楽曲信号を自動ループ区間としてループ再生するようにした再生装置がある(たとえば、特許文献1参照)。   As such a device, when a music signal recorded on a recording medium is reproduced, the reproduced music signal is stored in a memory, a silent section of the music signal stored in the memory is detected, and a silent section is detected, There is a playback device in which music signals in a certain section before a silent section are loop-played as an automatic loop section (see, for example, Patent Document 1).

特開2009−76151号公報JP 2009-76151 A

しかし、上記従来の再生装置では、入力される楽曲信号に対して途切れのないループ再生を行うことはできるが、そのループ区間を常に無音区間を基準にして決定しているために、ループ区間の選択の幅(自由度)が限定的であり、かつ、複数の楽曲信号を重ねてループ再生することは困難である。また、決定されるループ区間も無音区間より前の一定区間であり、さらに、無音区間が検出されると自動的に、当該一定区間におけるループ再生が開始されるので、無音区間より前の適当な区間をループ再生することは困難である。   However, the conventional playback device can perform continuous loop playback on the input music signal, but since the loop section is always determined based on the silent section, The range of selection (degree of freedom) is limited, and it is difficult to reproduce a loop by overlapping a plurality of music signals. Further, the determined loop section is also a fixed section before the silent section, and when a silent section is detected, loop playback in the fixed section is automatically started. It is difficult to loop-play the section.

本発明は、この点に着目してなされたものであり、入力した音響信号を予め設定された時間長毎に重ねて容易にループ再生することが可能となる音楽装置およびその制御方法を実現するためのプログラムを提供することを目的とする。   The present invention has been made paying attention to this point, and realizes a music apparatus and a control method thereof that can easily loop-play input sound signals for each preset time length. It aims at providing the program for.

上記目的を達成するため、請求項1に記載の音楽装置は、周囲の音声を集音し、音響信号として入力する入力手段と、前記入力手段によって入力された音響信号を予め設定された時間長分、順次クリッピングしておく複数のクリップメモリと、前記複数のクリップメモリにそれぞれ格納された音響信号を規定された回数、ループ再生するとともに、規定回数ループ再生された音響信号がクリッピングされているクリップメモリをクリアするように制御する制御手段とを有することを特徴とする。   In order to achieve the above object, the music apparatus according to claim 1 is characterized in that an ambient sound is collected and input as an acoustic signal, and an acoustic signal input by the input means is set for a preset time length. A plurality of clip memories to be clipped sequentially, and a clip in which the sound signals stored in the plurality of clip memories are loop-played a specified number of times and the sound signals that have been loop-played a specified number of times are clipped Control means for controlling to clear the memory.

請求項2に記載の音楽装置は、請求項1の音楽装置において、ユーザ指示に応じて、前記複数のクリップメモリにクリッピングされている音響信号をストアするストアメモリと、前記ストアメモリにストアされた音響信号をループ再生する再生手段とを有することを特徴とする。   The music device according to claim 2 is the music device according to claim 1, wherein a store memory for storing an audio signal clipped to the plurality of clip memories and a store memory are stored in accordance with a user instruction. And a reproducing means for reproducing an acoustic signal in a loop.

請求項3に記載の音楽装置は、請求項2の音楽装置において、前記ストアメモリは、複数のストア領域を備え、前記再生手段は、ユーザ操作に応じて、前記複数のストア領域にストアされた複数の音響信号のいずれかを選択し、選択した音響信号をループ再生することを特徴とする。   The music apparatus according to claim 3 is the music apparatus according to claim 2, wherein the store memory includes a plurality of store areas, and the playback unit is stored in the plurality of store areas in response to a user operation. One of the plurality of sound signals is selected, and the selected sound signal is reproduced in a loop.

上記目的を達成するため、請求項4に記載のプログラムは、請求項1と同様の技術的思想によって実現できる。   In order to achieve the above object, the program according to claim 4 can be realized by the same technical idea as claim 1.

請求項1または4に記載の発明によれば、周囲の音声が集音されて、音響信号として入力され、該入力された音響信号が予め設定された時間長分、順次クリッピングされて複数のクリップメモリに格納され、該格納された各音響信号が規定された回数、ループ再生されるとともに、規定回数ループ再生された音響信号がクリッピングされているクリップメモリがクリアされるので、入力した音響信号を予め設定された時間長毎に重ねて容易にループ再生することが可能となる。   According to the first or fourth aspect of the present invention, the surrounding sound is collected and input as an acoustic signal, and the input acoustic signal is sequentially clipped for a preset time length to be a plurality of clips. Since the stored sound signal is loop-reproduced for a specified number of times, and the clip memory in which the sound signal that has been loop-reproduced for the specified number of times is cleared, the input sound signal is It is possible to easily perform loop reproduction by overlapping each preset time length.

本発明の一実施の形態に係る音楽装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the music apparatus which concerns on one embodiment of this invention. 図1の表示・操作I/Fの具体的な構成例を示す図である。It is a figure which shows the specific structural example of the display and operation I / F of FIG. 図1の音楽装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the music apparatus of FIG. 図1の音楽装置が実行する制御処理を説明するための図である。It is a figure for demonstrating the control processing which the music apparatus of FIG. 1 performs. 図1の音楽装置、特にCPUが実行するメインルーチンの手順を示すフローチャートである。It is a flowchart which shows the procedure of the main routine which the music apparatus of FIG. 1, especially CPU performs. 図1の音楽装置、特にCPUが実行する割込み処理の手順を示すフローチャートである。2 is a flowchart showing a procedure of interrupt processing executed by the music apparatus of FIG. 1, particularly a CPU.

以下、本発明の実施の形態を図面に基づいて詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の一実施の形態に係る音楽装置100の概略構成を示すブロック図である。   FIG. 1 is a block diagram showing a schematic configuration of a music apparatus 100 according to an embodiment of the present invention.

同図に示すように、音楽装置100は、周囲の音響を集音し、集音して得られたアナログ音響信号をデジタル音響信号(以下、「音響データ」という)に変換して入力する音響入力部101と、各種情報を表示および入力するための表示・操作インターフェース(I/F)102と、装置全体の制御を司るCPU103と、該CPU103が実行する制御プログラムや、各種テーブルデータ等を記憶するROM104と、各種入力情報および演算結果等を一時的に記憶するRAM105と、通信ネットワーク200を介して、サーバコンピュータ(以下、「サーバ」と略していう)300、他の音楽装置400やPC(パーソナルコンピュータ)500などとデータの送受信を行う通信インターフェース(I/F)106と、音響データをアナログ音響信号に変換し、さらに音響に変換して外部に出力する音響出力部107とにより構成されている。   As shown in the figure, the music apparatus 100 collects surrounding sounds, converts an analog sound signal obtained by collecting the sound into a digital sound signal (hereinafter referred to as “acoustic data”), and inputs the sound. An input unit 101, a display / operation interface (I / F) 102 for displaying and inputting various information, a CPU 103 that controls the entire apparatus, a control program executed by the CPU 103, various table data, and the like are stored. ROM 104, RAM 105 for temporarily storing various input information and calculation results, and the like, server computer (hereinafter abbreviated as “server”) 300, other music apparatus 400 and PC (personal) via communication network 200. Communication interface (I / F) 106 for transmitting / receiving data to / from a computer 500, etc., and audio data It converted to log the acoustic signal, and a the sound output section 107 for outputting to the outside further converted into sound.

上記構成要素101〜107は、バス108を介して相互に接続され、通信I/F106には通信ネットワーク200が接続されている。   The components 101 to 107 are connected to each other via a bus 108, and a communication network 200 is connected to the communication I / F 106.

音響入力部101は、集音マイクやアンプ、ADC(analog-to-digital converter)等によって構成されている。音響入力部101から入力された音響データは、バス108を通ってRAM105に供給され、RAM105内に設けられたバッファメモリ(図3参照)に一時的に格納される。ここで、音響入力部101から音響データとして入力する音響は、音であればどのような種類のものでも構わないが、たとえば、楽器の演奏音、身近にあるものを叩いたり擦ったりしたときに発生する音、歌声、動物の鳴き声などを挙げることができる。   The acoustic input unit 101 includes a sound collection microphone, an amplifier, an ADC (analog-to-digital converter), and the like. The acoustic data input from the acoustic input unit 101 is supplied to the RAM 105 through the bus 108 and temporarily stored in a buffer memory (see FIG. 3) provided in the RAM 105. Here, the sound input from the sound input unit 101 may be any kind of sound as long as it is a sound. For example, when a musical instrument performance sound or something nearby is hit or rubbed. Examples include sounds that are generated, singing voices, and animal calls.

表示・操作I/F102は、表示器としてLCD(liquid crystal display)およびLED(light emitting diode)を、入力操作子として複数のスイッチ(SW)を備えている。図2は、表示・操作I/F102の具体的な構成例を示す図である。同図に示すように、表示・操作I/F102は、1分間当たりの拍数(BPM)で定義したテンポの値を表示する小型LCD102aと、現在設定されているテンポを点滅間隔の長短で表示するLED102bと、ストアメモリ(図3参照)内に設けられた4つの領域(領域1〜4)にそれぞれ記憶(ストア)された各ストアクリップが再生中であるかどうかを点灯(再生中)/消灯(停止中)で表示するLED102c1〜102c4と、「テンポを速く/遅く」を指示するためのテンポアップ/ダウン(BPM)SW102d1,102d2と、クリップメモリ(図3参照)に記憶されているクリップをストアメモリに書き込む(ストアする)ストア(STORE)SW102eと、上記各ストアクリップの再生/停止をトグルで指示可能なクリップ(CLIP)1〜4SW102f1〜102f4とを備えている。   The display / operation I / F 102 includes a liquid crystal display (LCD) and a light emitting diode (LED) as a display, and a plurality of switches (SW) as input operators. FIG. 2 is a diagram illustrating a specific configuration example of the display / operation I / F 102. As shown in the figure, the display / operation I / F 102 displays a small LCD 102a that displays a tempo value defined in beats per minute (BPM), and the currently set tempo by the length of the blinking interval. LED 102b to be turned on and whether or not each store clip stored (stored) in each of the four areas (areas 1 to 4) provided in the store memory (see FIG. 3) is being lit (playing back) / LEDs 102c1 to 102c4 to be displayed in the off state (stopped), tempo up / down (BPM) SWs 102d1 and 102d2 for instructing “fast / slow tempo”, and clips stored in the clip memory (see FIG. 3) The store (STORE) SW 102e can be instructed to toggle playback / stop of each store clip. And a such clip (CLIP) 1~4SW102f1~102f4.

図1に戻り、CPU103は内蔵タイマを備えている。内蔵タイマは、本実施の形態では、割込み処理(図6参照)の起動間隔である割込み間隔の計時に用いられるが、もちろん、前記LED102bの点滅間隔などのその他の時間の計時にも用いられる。   Returning to FIG. 1, the CPU 103 includes a built-in timer. In the present embodiment, the built-in timer is used to measure the interrupt interval, which is the activation interval of the interrupt processing (see FIG. 6), but of course, it is also used to measure other times such as the blinking interval of the LED 102b.

RAM105には、少なくとも、バッファメモリ105a、クリップメモリ105bおよびストアメモリ105cが設けられている。バッファメモリ105aは、音響入力部101が出力した音響データを、たとえば4拍分格納可能な容量を備えている。ただし、1拍の時間長はテンポによって変動するので、バッファメモリ105aには、当該時間長を最長に指定した場合でも、その4拍分の音響データを格納できる十分な容量が予め採られている。クリップメモリ105bは、バッファメモリ105aに格納された4拍分の音響データ(以下、「クリップ」という)を5つ格納可能なメモリ領域(以下、「クリップメモリA〜E」という)を備えている。ストアメモリ105cは、前述のように4つの領域(領域1〜4)を備え、クリップメモリ105bに格納された5つのクリップのうちの4つを記憶する。本実施の形態では説明の便宜上、4拍が1小節に相当するものとするが、この拍数は任意に選択し得るものである。上記クリップは、1小節分の音響データのことである。   The RAM 105 is provided with at least a buffer memory 105a, a clip memory 105b, and a store memory 105c. The buffer memory 105a has a capacity capable of storing, for example, four beats of the sound data output from the sound input unit 101. However, since the time length of one beat varies depending on the tempo, the buffer memory 105a has a sufficient capacity to store acoustic data for the four beats even when the time length is designated as the longest. . The clip memory 105b includes a memory area (hereinafter referred to as “clip memories A to E”) that can store five pieces of acoustic data (hereinafter referred to as “clips”) for four beats stored in the buffer memory 105a. . The store memory 105c has four areas (areas 1 to 4) as described above, and stores four of the five clips stored in the clip memory 105b. In this embodiment, for convenience of explanation, it is assumed that four beats correspond to one measure, but this number of beats can be arbitrarily selected. The clip is sound data for one bar.

なおRAM105としては、通常通り揮発性のものを採用すればよいが、これに限らず、不揮発性のもの、たとえばフラッシュメモリを採用してもよい。フラッシュメモリを採用した場合には、ROM104に記憶するプログラムやデータもフラッシュメモリに格納するようにして、各内容を書き換え可能にしてもよい。   The RAM 105 may be a volatile memory as usual, but is not limited thereto, and may be a nonvolatile memory such as a flash memory. When the flash memory is adopted, the contents and contents may be rewritten by storing the program and data stored in the ROM 104 in the flash memory.

音響出力部107は、DAC(digital-to-analog converter)、アンプおよびスピーカ等によって構成されている。音響出力部107は、本実施の形態では、クリップメモリ105b(ストアメモリ105cが加わることがある)に格納されているクリップが重ねて(ループ)再生されて生成された音響データをアナログ音響信号に変換し、さらに音響に変換して外部に出力する。   The sound output unit 107 includes a DAC (digital-to-analog converter), an amplifier, a speaker, and the like. In this embodiment, the sound output unit 107 converts the sound data generated by overlapping (looping) and reproducing the clip stored in the clip memory 105b (the store memory 105c may be added) into an analog sound signal. Convert, and further convert to sound and output to the outside.

本発明は、音楽装置100のみによって実現できるので、音楽装置100と協働して用いられるもの、つまり図1の構成例では、通信I/F106、通信ネットワーク200、サーバ300、他の音楽装置400やPC500などは、省略することができる。このため、各ブロック106,200,300,400および500は、破線で表現されている。省略可能なものについては、これ以上説明しない。   Since the present invention can be realized only by the music apparatus 100, the one used in cooperation with the music apparatus 100, that is, in the configuration example of FIG. 1, the communication I / F 106, the communication network 200, the server 300, and other music apparatuses 400 are used. And PC 500 can be omitted. For this reason, each block 106, 200, 300, 400 and 500 is represented by a broken line. I will not explain any more that can be omitted.

なお音楽装置100は、本実施の形態では単体の装置として構成したが、これに限らず、複数の装置を組み合わせて構成してもよい。たとえば、音響入力部101および音響出力部107からなる入出力デバイスと、CPU103、ROM104、RAM105および通信I/F106からなるクレードルとによって構成し、両者を無線または有線などの任意の接続方法で接続するという実施形態が考えられる。   The music apparatus 100 is configured as a single apparatus in the present embodiment, but is not limited thereto, and may be configured by combining a plurality of apparatuses. For example, an input / output device including the sound input unit 101 and the sound output unit 107 and a cradle including the CPU 103, the ROM 104, the RAM 105, and the communication I / F 106 are connected to each other by an arbitrary connection method such as wireless or wired. An embodiment is conceivable.

以上のように構成された音楽装置100が実行する制御処理を、まず図3を参照してその概要を説明し、次に図4〜図6を参照して詳細に説明する。   The control process executed by the music apparatus 100 configured as described above will be described first with reference to FIG. 3, and then described in detail with reference to FIGS.

図3は、音楽装置100の機能構成を示すブロック図であり、同図において、制御部100aは、CPU103、ROM104およびRAM105によって構成されている。制御部100aは、主として、
クリップメモリ書込み処理:バッファメモリ105aにクリップが格納される度に、格納されたクリップを読み出して、クリップメモリA〜Eのうちのいずれか1つに順次書き込んで行く処理;
第1のループ再生開始処理:クリップメモリ書込み処理によってクリップメモリA〜Eに書き込まれたクリップのループ再生を開始する処理;
ストアメモリ書込み処理:前記ストアSW102eが押下されたことに応じて、クリップメモリA〜Eに記憶された5つのクリップのうちの4つ(制御処理の詳細で後述するように、4つ未満の場合もある)を読み出して、ストアメモリ105cに書き込む処理;
第2のループ再生開始処理:ストアメモリ書込み処理によってストアメモリ105cに記憶された4つのストアクリップのうち、前記クリップ1〜4SW102f1〜102f4の押下に応じて指定されたストアクリップのループ再生を開始する処理;
第2のループ再生停止処理:第2のループ再生開始処理によってループ再生が開始したストアクリップのループ再生を、クリップ1〜4SW102f1〜102f4のうちの対応するSWの再押下に応じて停止する処理;
を実行する。
FIG. 3 is a block diagram showing a functional configuration of the music apparatus 100. In FIG. 3, the control unit 100a is constituted by a CPU 103, a ROM 104, and a RAM 105. The control unit 100a is mainly composed of
Clip memory writing process: a process of reading the stored clip and writing it sequentially to any one of the clip memories A to E each time the clip is stored in the buffer memory 105a;
First loop reproduction start processing: processing for starting loop reproduction of clips written to the clip memories A to E by the clip memory writing processing;
Store memory write processing: Four of the five clips stored in the clip memories A to E in response to the press of the store SW 102e (in the case of less than four as will be described later in detail of control processing) Read out and write to the store memory 105c;
Second loop reproduction start process: Among the four store clips stored in the store memory 105c by the store memory write process, the loop reproduction of the store clip designated in response to the pressing of the clips 1 to 4SWs 102f1 to 102f4 is started. processing;
Second loop playback stop process: A process of stopping loop playback of a store clip whose loop playback has been started by the second loop playback start process in response to re-pressing of the corresponding SW among the clips 1 to 4SWs 102f1 to 102f4;
Execute.

第1のループ再生開始処理によってループ再生が開始されたクリップを含む再生中の各クリップは、加算器100bによって加算(ミキシング)され、加算器100cを通って音響出力部107に供給される。なおクリップメモリA〜Eには、合計5つのクリップが格納されるので、5つのクリップが同時に再生されてミキシングされるが、5つのクリップのうち、1つはフェードイン再生され、1つはフェードアウト再生されるので、同時に再生されるクリップの個数は、実質的には4つである。   Each clip that is being played back, including the clip for which loop playback has been started by the first loop playback start process, is added (mixed) by the adder 100b and supplied to the sound output unit 107 through the adder 100c. Note that a total of five clips are stored in the clip memories A to E, so that the five clips are simultaneously played and mixed. Of the five clips, one is faded in and one is faded out. Since it is played back, the number of clips played back simultaneously is substantially four.

ストアメモリ書込み処理によって、ストアメモリ105cに上記5つのクリップのうち4つのクリップがストアクリップとして格納され、この状態で、クリップ1〜4SW102f1〜102f4のいずれかが押下されると、第1のループ再生開始処理に第2のループ再生開始処理が加わって、両処理が実行される。第2のループ再生開始処理によってループ再生が開始されたストアクリップは、加算器100cによって加算器100bからの出力と加算されて、音響出力部107に供給される。このとき加算器100bには、第2のループ再生開始処理によってループ再生が開始されたストアクリップの個数だけ減らされたクリップがクリップメモリ105bから供給されるよう制御され、加算器100cからは、再生された5つ(実質的には、上述のように4つ)のクリップが出力される。   As a result of the store memory writing process, four of the five clips are stored as store clips in the store memory 105c. When any one of the clips 1 to 4SWs 102f1 to 102f4 is pressed in this state, the first loop playback is performed. Both processes are executed by adding the second loop reproduction start process to the start process. The store clip whose loop playback has been started by the second loop playback start process is added to the output from the adder 100 b by the adder 100 c and supplied to the sound output unit 107. At this time, the adder 100b is controlled so as to be supplied from the clip memory 105b with a clip reduced by the number of store clips whose loop playback has been started by the second loop playback start process. The five clips (substantially four as described above) are output.

このように本実施の形態では、ユーザは、音響入力部101の周辺で音響を発生させるだけで、自動的にその音響に応じた音響データが入力され、予め設定された時間長毎にクリッピングされて、クリップとして複数保持するとともに、各クリップを重ねてループ再生するようにしたので、入力した音響信号を予め設定された時間長毎に重ねて容易にループ再生することができる。   As described above, in this embodiment, the user simply generates sound around the sound input unit 101, and the sound data corresponding to the sound is automatically input, and is clipped for each preset time length. Since a plurality of clips are held and each clip is overlapped for loop reproduction, the input acoustic signal can be easily overlapped for each preset time length and easily loop reproduced.

次に、この制御処理を詳細に説明する。   Next, this control process will be described in detail.

図5は、音楽装置100、特にCPU103が実行するメインルーチンの手順を示すフローチャートであり、本メインルーチンは、音楽装置100への電源がオンされたときに起動する。   FIG. 5 is a flowchart showing a procedure of a main routine executed by the music apparatus 100, particularly the CPU 103. This main routine is activated when the power to the music apparatus 100 is turned on.

本メインルーチンが起動すると、起動時処理(ステップS1,S2)が1回実行された後、SWイベントの検知処理(ステップS3,S4)により、いずれかのSWが押下されるまで待機状態となる。そして、SWイベントが検知されると、そのSWイベントの発生原因である押下SWに応じた処理(ステップS5〜S11)が実行された後、再度SWイベントの検知処理に戻って、新たなSWイベントの待機状態となる。その後、これらの処理が、電源がオフされるまで適宜繰り返し実行される。   When this main routine is started, the startup process (steps S1 and S2) is executed once, and then a standby state is entered until any SW is pressed by the SW event detection process (steps S3 and S4). . When a SW event is detected, the process corresponding to the pressed SW that is the cause of the SW event (steps S5 to S11) is executed, and then the process returns to the SW event detection process again to create a new SW event. It will be in the standby state. Thereafter, these processes are repeatedly executed as appropriate until the power is turned off.

起動時処理では、まずCPU103は、初期化処理(ステップS1)を実行する。この初期化処理では、CPU103は、前記RAM105をクリアした後、RAM105の所定位置に確保したBPM記憶領域(図示せず)にBPMの初期値(たとえば“120”)を記憶させるとともに、このBPM記憶領域に記憶されたBPM値に基づいて、割込み処理(後述)の割込み間隔を算出し、RAM105の所定位置に確保した割込み間隔記憶領域(図示せず)に、算出した割込み間隔を記憶させる。   In the startup process, first, the CPU 103 executes an initialization process (step S1). In this initialization process, after clearing the RAM 105, the CPU 103 stores an initial value (eg, “120”) of the BPM in a BPM storage area (not shown) secured at a predetermined position in the RAM 105, and stores the BPM. Based on the BPM value stored in the area, an interrupt interval for interrupt processing (described later) is calculated, and the calculated interrupt interval is stored in an interrupt interval storage area (not shown) secured at a predetermined position in the RAM 105.

今、BPM記憶領域には“120”が記憶されているので、割込み間隔=1小節分の時間=4拍×1拍当たりの時間(秒)=4×(60÷120)=2(秒)と算出され、“2”が割込み間隔記憶領域に記憶される。なお、割込み間隔は算出せずに、BPMの各値に割込み間隔を対応付けたテーブルを設け、このテーブルからBPM記憶領域に記憶されたBPM値に対応する割込み間隔を読み出して、割込み間隔記憶領域に記憶するようにしてもよい。   Since “120” is stored in the BPM storage area now, interrupt interval = time of one measure = 4 beats × time per beat (seconds) = 4 × (60 ÷ 120) = 2 (seconds) And “2” is stored in the interrupt interval storage area. An interrupt interval is not calculated, and a table in which an interrupt interval is associated with each BPM value is provided. An interrupt interval corresponding to the BPM value stored in the BPM storage area is read from the table, and an interrupt interval storage area is read out. You may make it memorize.

次にCPU103は、クリップ&出力処理を開始させる(ステップS2)。このクリップ&出力処理では、CPU103は、タイマ割込みを許可して、前記内蔵タイマによる割込み間隔の計時を開始させる。内蔵タイマは、自己の計時時間と割込み間隔記憶領域に記憶された割込み間隔とを比較し、一致すると、割込み信号を出力するとともに計時時間をリセットする。CPU103は、割込み信号が出力される度に割込み処理を起動する。   Next, the CPU 103 starts clip and output processing (step S2). In this clip-and-output process, the CPU 103 permits timer interruption and starts measuring the interruption interval by the built-in timer. The built-in timer compares its own clock time with the interrupt interval stored in the interrupt interval storage area, and if they match, outputs an interrupt signal and resets the clock time. The CPU 103 starts an interrupt process every time an interrupt signal is output.

図6は、この割込み処理の手順を示すフローチャートであり、本割込み処理は、上述のように計時時間と割込み間隔とに基づいて、1小節分の時間毎に起動されて実行される。本割込み処理では、CPU103は、前記クリップメモリ書込み処理(ステップS21,S22)および前記第1のループ再生開始処理(ステップS22,S23)を実行する。   FIG. 6 is a flowchart showing the procedure of this interrupt process. This interrupt process is started and executed every time corresponding to one bar based on the time measurement time and the interrupt interval as described above. In this interrupt process, the CPU 103 executes the clip memory write process (steps S21 and S22) and the first loop reproduction start process (steps S22 and S23).

本割込み処理が終了すると、CPU103は、本割込み処理が起動される直前に実行していたメインルーチンの処理に戻る。   When this interrupt process ends, the CPU 103 returns to the process of the main routine executed immediately before the interrupt process is activated.

図5に戻り、前記SWイベントの検知処理によってSWイベントが検知されると、CPU103は、検知されたSWイベントに従った処理に、次のように分岐する。すなわち、
ストアSW102eの押下イベント:前記ストアメモリ書込み処理(ステップS5)
クリップ1〜4SW102f1〜102f4の押下イベント:前記第2のループ再生開始処理(ステップS7,S8)または前記第2のループ再生停止処理(ステップS9,S10)のいずれか一方
テンポアップ/ダウン(BPM)SW102d1,102d2の押下イベント:BPM値更新処理(ステップS11)
というように分岐する。
Returning to FIG. 5, when the SW event is detected by the SW event detection process, the CPU 103 branches to the process according to the detected SW event as follows. That is,
Press event of the store SW 102e: the store memory write process (step S5)
Press event of clips 1 to 4 SW102f1 to 102f4: one of the second loop reproduction start process (steps S7 and S8) and the second loop reproduction stop process (steps S9 and S10) Tempo up / down (BPM) SW102d1, 102d2 pressing event: BPM value update processing (step S11)
Branch like this.

上記BPM値更新処理では、CPU103は、テンポアップ/ダウン(BPM)SW102d1,102d2によって変更指示されたBPM値で前記BPM記憶領域の記憶値を更新するとともに、前述のようにして、このBPM値に基づいて割込み間隔を算出し、算出した割込み間隔で前記割込み間隔記憶領域の記憶値を更新する。BMP値更新処理が実行されて、BPM値が変更されると、CPU103は、割込み処理でなされる処理、つまりクリップメモリ書込み処理および第1のループ再生開始処理を一旦停止して、バッファメモリ105aおよびクリップメモリ105bをクリアした後、変更後の割込み間隔に従って、割込み処理を再スタートする。なお、このような処理を採るのは、専ら制御処理の簡単化のためであり、このような処理を採らずに、BPM値が変更されても、割込み処理でなされる処理をそのまま継続して行うこともできる。ただしこの場合には、図5および図6のフローチャートに追加して、再生対象のクリップ(あるいはストアクリップ)に対して、タイムストレッチやリサンプリングなどの処理を施し、そのピッチが変動しないようにした上で、変更後のBPM値に対応する再生時間(BPM値変更後の1小節分の時間)にて再生されるように制御することが望ましい。   In the BPM value update process, the CPU 103 updates the stored value in the BPM storage area with the BPM value instructed to change by the tempo up / down (BPM) SWs 102d1 and 102d2, and changes the BPM value to the BPM value as described above. Based on the calculated interrupt interval, the interrupt value is updated based on the calculated interrupt interval. When the BMP value update process is executed and the BPM value is changed, the CPU 103 temporarily stops the process performed by the interrupt process, that is, the clip memory write process and the first loop reproduction start process, and the buffer memory 105a and After clearing the clip memory 105b, the interrupt processing is restarted according to the interrupt interval after the change. Note that the reason for adopting such processing is solely for the simplification of the control processing. Even if the BPM value is changed without using such processing, the processing performed in the interrupt processing is continued as it is. It can also be done. However, in this case, in addition to the flowcharts of FIG. 5 and FIG. 6, processing such as time stretching and resampling is performed on the playback target clip (or store clip) so that the pitch does not fluctuate. In the above, it is desirable to perform control so that playback is performed at the playback time corresponding to the changed BPM value (time for one bar after the BPM value change).

以下、クリップメモリ書込み処理、第1のループ再生開始処理、ストアメモリ書込み処理、第2のループ再生開始処理および第2のループ再生停止処理を、図4の具体例に基づいて説明する。   Hereinafter, the clip memory write process, the first loop reproduction start process, the store memory write process, the second loop reproduction start process, and the second loop reproduction stop process will be described based on the specific example of FIG.

図4は、音楽装置100が実行する制御処理を説明するための図であり、同図(a)は、第2のループ再生開始処理が実行されていない場合の制御処理を説明するためのものであり、同図(b)は、第2のループ再生開始処理が実行された場合の制御処理を説明するためのものである。   FIG. 4 is a diagram for explaining a control process executed by the music apparatus 100. FIG. 4A is a diagram for explaining a control process when the second loop reproduction start process is not executed. FIG. 5B is a diagram for explaining the control process when the second loop reproduction start process is executed.

図4(a)において、CL1〜CL10の入力音声のブロック列は、バッファメモリ105aに格納される各1小節(=4拍)分の音響データ、つまりクリップを示している。図示例では、クリップCL1より古いものがあるように描かれているが、ここでは、クリップCL1が(メインルーチンの起動後)最初に取得されたクリップとする。   In FIG. 4A, the input audio block sequence of CL1 to CL10 indicates acoustic data for one bar (= 4 beats) stored in the buffer memory 105a, that is, a clip. In the illustrated example, the clip CL1 is drawn so as to be older than the clip CL1, but here, the clip CL1 is assumed to be a clip acquired first (after the main routine is started).

タイマ割込みが最初に許可されてから、4拍の時間長(=2秒)が経過すると、割込み処理が起動される。割込み処理では、まずCPU103は、処理をクリップメモリ書込み処理に進め、バッファメモリ105aから直前1小節分のクリップを取得する(ステップS21)。これにより、クリップCL1が取得される。そしてCPU103は、最も古いクリップメモリ105bの内容を、取得したクリップCL1で上書きする(ステップS22の前段)。このとき、クリップメモリ105bはクリア状態であるので、取得されたクリップCL1は、書き込み順位が最初のクリップメモリAに書き込まれる。なお、取得したクリップをクリップメモリ105bに書き込むとき、そのクリップに付随させて現在のBPM値も書き込まれる。   When a time length of 4 beats (= 2 seconds) has elapsed since the timer interrupt was first permitted, the interrupt process is started. In the interrupt process, first, the CPU 103 advances the process to a clip memory writing process, and acquires a clip for the immediately preceding one bar from the buffer memory 105a (step S21). Thereby, the clip CL1 is acquired. Then, the CPU 103 overwrites the contents of the oldest clip memory 105b with the acquired clip CL1 (front stage of step S22). At this time, since the clip memory 105b is in a clear state, the acquired clip CL1 is written to the clip memory A having the first writing order. When the acquired clip is written to the clip memory 105b, the current BPM value is also written along with the clip.

次にCPU103は、処理を第1のループ再生開始処理に進め、ループ再生を開始する(ステップS22の後段)。これにより、クリップCL1のクリップメモリAへの書き込みと並行して、クリップCL1のループ再生が開始される。このとき、クリップCL1はフェードイン再生される。図示例では、「フェードイン再生」は“★”で表現されている。そしてCPU103は、2番目に古いクリップ(次のタイミングの割込み処理にて、取得したクリップにて内容が上書きされるクリップメモリに保持されているクリップ)の再生をフェードアウトした(ステップS23)後、割込み処理を終了する。今、クリップメモリ105bにはクリップCL1が1つ格納されているだけなので、実質的にはステップS23の処理はなされない。   Next, the CPU 103 advances the process to a first loop reproduction start process, and starts loop reproduction (after stage S22). As a result, the loop reproduction of the clip CL1 is started in parallel with the writing of the clip CL1 to the clip memory A. At this time, the clip CL1 is faded in. In the illustrated example, “fade-in playback” is represented by “★”. Then, the CPU 103 fades out the reproduction of the second oldest clip (the clip held in the clip memory whose contents are overwritten by the acquired clip in the interrupt processing at the next timing) (step S23), and then interrupts. The process ends. Now, since only one clip CL1 is stored in the clip memory 105b, the process of step S23 is not substantially performed.

割込み処理が終了すると、処理はメインルーチンに復帰するが、いずれのSWも押下されないので、SWイベントの待機状態となる(ステップS3)。この待機状態で、内蔵タイマは次の割込み間隔を計時するので、再び割込み処理が起動されて、クリップメモリ書込み処理および第1のループ再生開始処理が実行される。これにより、クリップCL2がクリップメモリBに書き込まれ、クリップCL2がフェードイン再生される一方、クリップCL1は先頭からの通常再生となる。つまり、クリップCL1は第1回目のループ再生となる。なお、ループ再生の開始が指示された後のフェードイン再生処理(上記通常再生やフェードアウト再生も含む)は、図示されていないが、図6の割込み処理とは別の割込み処理で実行されているものとする。   When the interrupt process is completed, the process returns to the main routine, but since no SW is pressed, a standby state for the SW event is entered (step S3). In this standby state, since the built-in timer measures the next interrupt interval, the interrupt process is started again, and the clip memory write process and the first loop reproduction start process are executed. As a result, the clip CL2 is written into the clip memory B and the clip CL2 is faded-in reproduced, while the clip CL1 is normally reproduced from the beginning. That is, the clip CL1 is the first loop reproduction. Note that the fade-in reproduction process (including the normal reproduction and the fade-out reproduction) after the start of the loop reproduction is instructed is performed in an interrupt process different from the interrupt process of FIG. Shall.

このような処理が繰り返し実行され、第5回目の割込み処理が起動されると、クリップCL5がクリップメモリEに書き込まれて、クリップCL5がフェードイン再生され、クリップCL2〜CL4は通常再生されるが、前記ステップS23の処理により、クリップCL1はフェードアウト再生される。図示例では、「フェードアウト再生」は“☆”で表現されている。   When such a process is repeatedly executed and the fifth interrupt process is started, the clip CL5 is written into the clip memory E, the clip CL5 is faded-in and the clips CL2 to CL4 are normally reproduced. The clip CL1 is faded out by the process of step S23. In the illustrated example, “fade-out playback” is represented by “☆”.

次の割込み処理が起動されるまでの期間中の時刻t1に、前記ストアSW102eが押下されると、CPU103は、処理をストアメモリ書込み処理(ステップS4)に進める。このストアメモリ書込み処理では、CPU103は、クリップメモリ105bの内容を、ストアメモリ105c内の前記4領域のうち、非再生中の領域に書き込む。時刻t1(の直前)では、ストアメモリ105cはクリア状態で、どの領域にもストアクリップは記憶されていないので、領域1〜4はすべて、非再生中の領域である。このため、ストアメモリ105cの領域1〜4のすべてに、クリップメモリ105bの内容が書き込まれる。ただし前述のように、クリップメモリ105bはクリップメモリA〜Eの5領域を備えており、その5領域のすべてに1つずつクリップが記憶されているので、この中から4つを選択して、逆に言えば、いずれか1つのクリップを除外してストアメモリ105cに書き込む。本実施の形態では、フェードイン再生中のもの、つまりクリップCL5を除外している。これは、ユーザは1回以上ループ再生したものをストアメモリ105cに記憶しておきたいと推測されるからである。その結果、ストアメモリ105cの領域1〜4にはそれぞれ、クリップCL1〜CL4が記憶される。もちろんこれに限らず、フェードアウト再生中のものを除外するようにしてもよい。   When the store SW 102e is pressed at time t1 during the period until the next interrupt process is activated, the CPU 103 advances the process to the store memory write process (step S4). In this store memory write process, the CPU 103 writes the contents of the clip memory 105b in the non-reproducing area among the four areas in the store memory 105c. At time t1 (immediately before), the store memory 105c is in a clear state, and no store clip is stored in any region, so all the regions 1 to 4 are non-reproducing regions. For this reason, the contents of the clip memory 105b are written in all the areas 1 to 4 of the store memory 105c. However, as described above, the clip memory 105b includes five areas of the clip memories A to E, and one clip is stored in each of the five areas, so four of these are selected, In other words, any one clip is excluded and written to the store memory 105c. In the present embodiment, the fade-in playback, that is, the clip CL5 is excluded. This is because it is presumed that the user wants to store in the store memory 105c what has been loop-played once or more. As a result, the clips CL1 to CL4 are stored in the areas 1 to 4 of the store memory 105c, respectively. Of course, the present invention is not limited to this.

この後、第7回目の割込み処理が起動されると、最も古いクリップを保持するクリップメモリ105bの領域はクリップメモリBであるので、取得したクリップCL7がクリップメモリBに書き込まれ(上書きされ)、フェードイン再生が開始される。また2番目に古いクリップは、クリップメモリCのクリップCL3であるので、そのクリップCL3のフェードアウト再生が開始される。そして、時刻t2に、ストアSW102eが押下されると、前記時刻t1におけるストアSW102eの押下に応じた処理と同様にして、クリップメモリ105bに記憶されているクリップCL3〜CL7のうち、フェードイン再生中のクリップCL7を除外した4つのクリップがストアメモリ105cに書き込まれる。   Thereafter, when the seventh interrupt process is started, the area of the clip memory 105b that holds the oldest clip is the clip memory B, so the acquired clip CL7 is written (overwritten) in the clip memory B, Fade-in playback starts. Since the second oldest clip is the clip CL3 of the clip memory C, fade-out reproduction of the clip CL3 is started. When the store SW 102e is pressed at time t2, fade-in playback is being performed among the clips CL3 to CL7 stored in the clip memory 105b in the same manner as the processing corresponding to the press of the store SW 102e at time t1. Four clips excluding the current clip CL7 are written to the store memory 105c.

このように、クリップされた音響データは、それぞれ4回ずつループ再生されるとともに、他のクリップと混合して出力される。   In this way, the clipped sound data is loop-reproduced four times and mixed with other clips and output.

次に図4(b)においては、時刻t1に、ストアSW102e、クリップ1SW102f1、クリップ3SW102f3が押下され、時刻t2に、ストアSW102eが押下され、時刻t3に、クリップ1SW102f1が押下された場合の例を示す。   Next, in FIG. 4B, an example in which the store SW 102e, the clip 1SW 102f1, and the clip 3SW 102f3 are pressed at time t1, the store SW 102e is pressed at time t2, and the clip 1SW 102f1 is pressed at time t3. Show.

図4(b)の時刻t1で、ストアSW102eが押下された場合の処理は、前記図4(a)の時刻t1で、ストアSW102eが押下された場合の処理と同じであるので、その説明は省略する。   The process when the store SW 102e is pressed at time t1 in FIG. 4B is the same as the process when the store SW 102e is pressed at time t1 in FIG. Omitted.

ストアSW102eに続いてクリップ1SW102f1が押下されると、CPU103は、処理を第2のループ再生開始処理に進める。この第2のループ再生開始処理では、まずCPU103は、ストアメモリ105c内の領域1〜4のうち、再生開始が指示されたSW番号に対応する領域内のストアクリップのフェードイン再生を開始する(ステップS7)。これにより、ストアメモリ105cの領域1に記憶されているストアクリップ(クリップCL1)のフェードイン再生が開始される。次にCPU103は、クリップメモリ105bのうち、最も古いクリップを保持している領域(この場合、クリップメモリA)への書き込みを停止し、併せてそのクリップ(この場合、クリップCL1)の再生をフェードアウトする(ステップS8)。クリップメモリAへの書き込みが停止されたので、次の割込み処理が起動された場合、取得したクリップCL6は、書き込み可能なクリップメモリ105bのうち、最も古いクリップを保持している領域(クリップメモリB)に書き込まれることになる。クリップメモリBが次にクリップが上書きされる領域となるので、クリップメモリBのクリップCL2のフェードアウト再生が開始される。この結果、クリップループ回数は“4”から“3”に減少する。   When the clip 1SW 102f1 is pressed subsequent to the store SW 102e, the CPU 103 advances the process to a second loop reproduction start process. In this second loop playback start process, first, the CPU 103 starts fade-in playback of the store clip in the area corresponding to the SW number instructed to start playback among the areas 1 to 4 in the store memory 105c ( Step S7). As a result, fade-in playback of the store clip (clip CL1) stored in area 1 of the store memory 105c is started. Next, the CPU 103 stops writing to the area holding the oldest clip in the clip memory 105b (in this case, the clip memory A), and fades out the reproduction of the clip (in this case, the clip CL1). (Step S8). When writing to the clip memory A is stopped, when the next interrupt processing is started, the acquired clip CL6 is an area (clip memory B) that holds the oldest clip in the writable clip memory 105b. ) Will be written. Since the clip memory B is an area where the clip is overwritten next, fade-out reproduction of the clip CL2 of the clip memory B is started. As a result, the number of clip loops decreases from “4” to “3”.

クリップ1SW102f1に続いて、クリップ3SW102f3が押下されると、クリップ1SW102f1が押下されたときの処理と同様の処理が実行される。その結果、ストアメモリ105cの領域3に記憶されているクリップCL3のフェードイン再生が開始される。また、クリップメモリBへの書き込みが停止され、書き込み可能なクリップメモリ105bのうち、クリップメモリCが次にクリップが上書きされる領域となり、クリップメモリCのクリップCL3のフェードアウト再生が開始され、クリップループ回数は“3”から“2”に減少する。したがって、次の割込み処理が起動された場合、書き込み可能なクリップメモリ105bのうち、最も古いクリップを保持したクリップメモリCのクリップCL3が、取得したクリップCL6で上書きされた後、フェードイン再生が開始され、その次に古いクリップメモリDのクリップCL4のフェードアウト再生が開始される。   When the clip 3SW 102f3 is pressed after the clip 1SW 102f1, the same processing as that when the clip 1SW 102f1 is pressed is executed. As a result, fade-in reproduction of the clip CL3 stored in the area 3 of the store memory 105c is started. Further, the writing to the clip memory B is stopped, and the clip memory C of the writable clip memory 105b becomes the area where the clip is overwritten next, the fade-out playback of the clip CL3 of the clip memory C is started, and the clip loop The number of times decreases from “3” to “2”. Therefore, when the next interrupt process is started, fade-in playback starts after the clip CL3 of the clip memory C holding the oldest clip in the writable clip memory 105b is overwritten with the acquired clip CL6. Then, fade-out reproduction of the clip CL4 of the oldest clip memory D is started.

なお、ストアメモリ105cのストアクリップの再生が開始される場合、そのストアクリップに付随して記憶されているBPM値が現在のBPM値と異なることがある。このときは、クリップメモリ105bのクリップが再生中にBPM値が変更された場合について前述した処理、つまり、そのストアクリップに対して、タイムストレッチやリサンプリングなどの処理を施して、ピッチが変動しないようにした上で、現在のBPM値に対応する再生時間(BPM値変更後の1小節分の時間)にて再生されるように制御する。  When playback of a store clip in the store memory 105c is started, the BPM value stored accompanying the store clip may be different from the current BPM value. At this time, the process described above for the case where the BPM value is changed while the clip in the clip memory 105b is being played, that is, the pitch of the store clip is not changed by performing processes such as time stretching and resampling. Then, control is performed so that playback is performed in the playback time corresponding to the current BPM value (time for one bar after the BPM value is changed).

次に時刻t2で、図4(a)の時刻t2と同様に、ストアSW102eが押下されると、CPU103は、処理を前記ストアメモリ書込み処理(ステップS5)に進める。このとき、ストアメモリ105cの領域1および3にそれぞれ記憶されているクリップCL1およびCL3は再生中であるので、非再生中の領域2および4に、フェードイン再生中のクリップCL7を除外した2つのクリップCL5およびCL6が書き込まれる。   Next, when the store SW 102e is pressed at time t2 as in the case of time t2 in FIG. 4A, the CPU 103 advances the process to the store memory write process (step S5). At this time, since the clips CL1 and CL3 respectively stored in the areas 1 and 3 of the store memory 105c are being reproduced, the two areas excluding the clip CL7 being fade-in reproduced in the non-reproducing areas 2 and 4 Clips CL5 and CL6 are written.

次に時刻t3で、クリップ1SW102f1が押下されると、このとき、ストアメモリ105cの領域1のストアクリップ(クリップCL1)はループ再生中であるので、CPU103は、処理を第2のループ再生停止処理に進める。この第2のループ再生停止処理では、まずCPU103は、ストアメモリ105c内の領域1〜4のうち、再生停止が指示されたSW番号に対応する領域内のストアクリップのフェードアウト再生を開始する(ステップS9)。これにより、ストアメモリ105cの領域1に記憶されているストアクリップ(クリップCL1)のフェードアウト再生が開始される。   Next, at time t3, when the clip 1SW 102f1 is pressed, the store clip (clip CL1) in the area 1 of the store memory 105c is currently being loop-reproduced, so the CPU 103 performs the second loop reproduction stop process. Proceed to In the second loop playback stop process, first, the CPU 103 starts fade-out playback of the store clip in the area corresponding to the SW number instructed to stop playback among the areas 1 to 4 in the store memory 105c (step S1). S9). Thereby, fade-out reproduction of the store clip (clip CL1) stored in the area 1 of the store memory 105c is started.

次にCPU103は、割込み処理におけるクリップメモリ105bに保持されているクリップのうち、フェードアウト再生されているものをフェードイン再生に切り替え、さらに、書き込みが停止されていたクリップメモリ105bの領域のうち1への書き込みを再開する(ステップS10)。この結果、クリップループ回数は“2”から“3”に増加する。   Next, the CPU 103 switches the clip held in the clip memory 105b in the interrupt processing to the fade-in playback, and further switches to one of the areas of the clip memory 105b in which the writing has been stopped. Is resumed (step S10). As a result, the number of clip loops increases from “2” to “3”.

時刻t3において、フェードアウト再生されているクリップは、クリップメモリCのクリップCL6であるので、クリップCL6がフェードイン再生に切り替えられる。図示例では、「フェードアウト再生からフェードイン再生への切り替え」は“◆”で表現されている。   At time t3, the clip that is faded out is the clip CL6 of the clip memory C, and therefore the clip CL6 is switched to fade-in reproduction. In the illustrated example, “switching from fade-out playback to fade-in playback” is represented by “♦”.

なお、図4(b)の時刻t1に例示したように、クリップメモリ105bの各領域に保持されたクリップのうち、フェードアウト再生されているクリップが複数ある場合、最も若いクリップ(時刻t1の場合であれば、クリップメモリCのクリップCL3)がフェードイン再生に切り替えられる。   Note that, as exemplified at time t1 in FIG. 4B, among the clips held in each area of the clip memory 105b, when there are a plurality of fade-out playback clips, the youngest clip (in the case of time t1). If so, the clip CL3) of the clip memory C is switched to fade-in playback.

また、時刻t2において、書き込みが停止されていた領域はクリップメモリAおよびBである。このように書き込みを再開し得る領域が複数ある場合、いずれか1つへの書き込みを再開する。書き込みを再開する領域の選択は、たとえば、最も古く書き込みが停止された領域、あるいは予め設定された優先順位に基づいて選択する等、任意の方法を用いればよい。   At time t2, the areas where writing was stopped are the clip memories A and B. Thus, when there are a plurality of areas where writing can be resumed, writing to any one is resumed. The selection of the area where writing is to be resumed may be performed using any method, for example, the oldest area where writing has been stopped, or selection based on a preset priority order.

なお、ストアメモリ105c内の領域1〜4すべてのストアクリップが再生されている状態においては、クリップメモリ105bの領域A〜Eのうち1の領域のみが書き込み可能であるが、バッファメモリ105aの内容が順次この1の領域に上書きされる。そのため、クリップメモリ105bにはループ再生すべきクリップが存在しない状態となり、ループ回数は“0”となる。この場合、CPU103は、図6の割込み処理のうち、クリップメモリ書込み処理(ステップS21およびS22の前段)のみを実行することになる。   In the state where all the store clips in the areas 1 to 4 in the store memory 105c are being reproduced, only one of the areas A to E in the clip memory 105b can be written, but the contents of the buffer memory 105a Are sequentially overwritten in this one area. For this reason, there is no clip to be played back in the clip memory 105b, and the number of loops is “0”. In this case, the CPU 103 executes only the clip memory writing process (the previous stage of steps S21 and S22) in the interrupt process of FIG.

以上の説明から明らかな通り、本実施の形態では、クリップのループ回数は、書き込み可能なクリップメモリ105bの領域の個数に基づいて規定される(ループ回数=書き込み可能な領域数−1)。これに代えて、ループ回数を規定するパラメータを設け、当該パラメータの値を適宜設定・更新することにより、各クリップのループ回数を制御するようにしてもよい。   As is apparent from the above description, in the present embodiment, the number of clip loops is defined based on the number of writable clip memory 105b areas (number of loops = number of writable areas-1). Instead, a parameter that defines the number of loops may be provided, and the number of loops of each clip may be controlled by appropriately setting and updating the value of the parameter.

また本実施の形態では、フェードイン再生処理およびフェードアウト再生処理におけるフェード時間については、特に言及されていないが、1〜4拍の間で適宜選択すればよい。選択される値は、固定であってもよいし、ユーザが変更可能としてもよい。   In this embodiment, the fade time in the fade-in reproduction process and the fade-out reproduction process is not particularly mentioned, but may be appropriately selected between 1 to 4 beats. The selected value may be fixed or may be changeable by the user.

さらに本実施の形態では、本発明を音楽装置100のみによって実現するようにしたが、これに限らず、前記通信I/F106を介して、他の音楽装置(前記サーバ300あるいは他の音楽装置400あるいはPC500)に対してストアしたデータを送信し、また、他の音楽装置からデータを受信し、音楽セッションを行うようにしてもよい。この場合、ストアメモリ105cが拡張され、受信したクリップを保持するメモリが追加される。もちろん任意の記憶媒体に、ストアしたデータを書き出すようにしてもよい。   Furthermore, in the present embodiment, the present invention is realized only by the music apparatus 100, but the present invention is not limited to this, and other music apparatuses (the server 300 or the other music apparatus 400 are connected via the communication I / F 106). Alternatively, the stored data may be transmitted to the PC 500), or the data may be received from another music device to perform a music session. In this case, the store memory 105c is expanded and a memory for holding the received clip is added. Of course, the stored data may be written to any storage medium.

さらに、エコー、リバーブ、コーラス、ディストーション他、各種エフェクタを備えるようにしてもよい。エフェクタを複数備え、各クリップメモリA〜Eやストアメモリ105cの領域1〜4毎に異なるエフェクタをかけるようにしてもよい。   Further, various effectors such as echo, reverb, chorus, distortion may be provided. A plurality of effectors may be provided, and different effectors may be applied to each of the clip memories A to E and the areas 1 to 4 of the store memory 105c.

また本実施の形態では、表示・操作I/F102を一般的な表示器とハードウェアSWによって構成したが、これに限らず、タッチパネルによって構成してもよい。   In this embodiment, the display / operation I / F 102 is configured by a general display and hardware SW, but is not limited thereto, and may be configured by a touch panel.

なお、上述した実施の形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムまたは装置に供給し、そのシステムまたは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。   A program in which a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus is stored in the storage medium. It goes without saying that the object of the present invention can also be achieved by reading and executing the code.

この場合、記憶媒体から読出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードおよび該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the program code and the storage medium storing the program code constitute the present invention.

プログラムコードを供給するための記憶媒体としては、たとえば、フレキシブルディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。また、通信ネットワークを介してサーバコンピュータからプログラムコードが供給されるようにしてもよい。   As a storage medium for supplying the program code, for example, a flexible disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic A tape, a non-volatile memory card, a ROM, or the like can be used. Further, the program code may be supplied from a server computer via a communication network.

また、コンピュータが読出したプログラムコードを実行することにより、上述した実施の形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって上述した実施の形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the OS running on the computer based on the instruction of the program code performs the actual processing. It goes without saying that a case where the functions of the above-described embodiment are realized by performing part or all of the above and the processing thereof is included.

さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって上述した実施の形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

101…音響入力部(入力手段),103…CPU(制御手段、再生手段),105…RAM(入力手段、クリップメモリ、ストアメモリ),105b…クリップメモリ,105c…ストアメモリ DESCRIPTION OF SYMBOLS 101 ... Sound input part (input means), 103 ... CPU (control means, reproduction | regeneration means), 105 ... RAM (input means, clip memory, store memory), 105b ... Clip memory, 105c ... Store memory

Claims (4)

周囲の音声を集音し、音響信号として入力する入力手段と、
前記入力手段によって入力された音響信号を予め設定された時間長分、順次クリッピングしておく複数のクリップメモリと、
前記複数のクリップメモリにそれぞれ格納された音響信号を規定された回数、ループ再生するとともに、規定回数ループ再生された音響信号がクリッピングされているクリップメモリをクリアするように制御する制御手段と
を有することを特徴とする音楽装置。
Input means for collecting surrounding sounds and inputting them as acoustic signals;
A plurality of clip memories that sequentially clip the acoustic signal input by the input means for a preset time length;
Control means for performing loop reproduction of the acoustic signals respectively stored in the plurality of clip memories for a specified number of times, and controlling to clear a clip memory in which the sound signals that have been reproduced for the specified number of loops are clipped. A music device characterized by that.
ユーザ指示に応じて、前記複数のクリップメモリにクリッピングされている音響信号をストアするストアメモリと、
前記ストアメモリにストアされた音響信号をループ再生する再生手段と
を有することを特徴とする請求項1に記載の音楽装置。
A store memory for storing an audio signal clipped to the plurality of clip memories in response to a user instruction;
The music apparatus according to claim 1, further comprising: a reproducing unit that reproduces an acoustic signal stored in the store memory in a loop.
前記ストアメモリは、複数のストア領域を備え、
前記再生手段は、ユーザ操作に応じて、前記複数のストア領域にストアされた複数の音響信号のいずれかを選択し、選択した音響信号をループ再生する
ことを特徴とする請求項2に記載の音楽装置。
The store memory includes a plurality of store areas,
The said reproduction | regeneration means selects any one of several acoustic signals stored in these several store area | region according to user operation, The looped reproduction of the selected acoustic signal is given. Music device.
周囲の音声を集音し、音響信号として入力する入力手段と、前記入力手段によって入力された音響信号を予め設定された時間長分、順次クリッピングしておく複数のクリップメモリとを備えた音楽装置を制御する制御方法をコンピュータに実行させるプログラムであって、
前記制御方法は、
前記複数のクリップメモリにそれぞれ格納された音響信号を規定された回数、ループ再生するとともに、規定回数ループ再生された音響信号がクリッピングされているクリップメモリをクリアするように制御する制御ステップを有する
ことを特徴とするプログラム。
A music apparatus comprising: input means for collecting ambient sounds and inputting them as acoustic signals; and a plurality of clip memories for sequentially clipping the acoustic signals input by the input means for a preset time length A program for causing a computer to execute a control method for controlling
The control method is:
A control step of performing loop playback of the sound signals respectively stored in the plurality of clip memories a specified number of times, and controlling to clear a clip memory in which the sound signals that have been loop-played the specified number of times are clipped A program characterized by
JP2010244176A 2010-10-29 2010-10-29 Musical device and program realizing its control method Pending JP2012098375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010244176A JP2012098375A (en) 2010-10-29 2010-10-29 Musical device and program realizing its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010244176A JP2012098375A (en) 2010-10-29 2010-10-29 Musical device and program realizing its control method

Publications (1)

Publication Number Publication Date
JP2012098375A true JP2012098375A (en) 2012-05-24

Family

ID=46390382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010244176A Pending JP2012098375A (en) 2010-10-29 2010-10-29 Musical device and program realizing its control method

Country Status (1)

Country Link
JP (1) JP2012098375A (en)

Similar Documents

Publication Publication Date Title
US9336764B2 (en) Recording and playback device, storage medium, and recording and playback method
US8772618B2 (en) Mixing automatic accompaniment input and musical device input during a loop recording
US9165546B2 (en) Recording and playback device capable of repeated playback, computer-readable storage medium, and recording and playback method
JP6252088B2 (en) Program for performing waveform reproduction, waveform reproducing apparatus and method
US7977563B2 (en) Overdubbing device
JP6024722B2 (en) Musical sound control device, musical sound control method, program, and electronic musical instrument
JP4801029B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, RECORDING MEDIUM, AND PROGRAM
JP2012098375A (en) Musical device and program realizing its control method
US7385129B2 (en) Music reproducing system
JP3591227B2 (en) Karaoke equipment
JP4816177B2 (en) Electronic musical instruments and programs
JP6531432B2 (en) Program, sound source device and acoustic signal generation device
JP2013105085A (en) Information processing program, information processing device, information processing system, and information processing method
JP7250132B2 (en) recording and playback device
JP6681240B2 (en) Electronic musical instrument system, music reproduction control device, and electronic musical instrument
JP2007264034A (en) Musical performance recorder and program
JP4452666B2 (en) Karaoke equipment
JP6427439B2 (en) Karaoke device
JP4332737B2 (en) CONTENT DATA CONTROL METHOD, CONTENT DATA CONTROL DEVICE, AND PROGRAM
WO2025057336A1 (en) Acoustic device, program, and method for controlling acoustic device
JP5034602B2 (en) Electronic music apparatus and program
JP4973215B2 (en) Performance device and program
JP2005165357A (en) Remix system, slice system, and storage medium
JP4301190B2 (en) Automatic performance data processing apparatus and program for realizing automatic performance data processing method
JP3617329B2 (en) Karaoke equipment