JP2007041225A - Image composition device, method, program and electronic musical instrument - Google Patents

Image composition device, method, program and electronic musical instrument Download PDF

Info

Publication number
JP2007041225A
JP2007041225A JP2005224446A JP2005224446A JP2007041225A JP 2007041225 A JP2007041225 A JP 2007041225A JP 2005224446 A JP2005224446 A JP 2005224446A JP 2005224446 A JP2005224446 A JP 2005224446A JP 2007041225 A JP2007041225 A JP 2007041225A
Authority
JP
Japan
Prior art keywords
image
hierarchical
storage means
pixel
hierarchy
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
JP2005224446A
Other languages
Japanese (ja)
Inventor
Sadamoto Wakuda
定資 和久田
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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2005224446A priority Critical patent/JP2007041225A/en
Publication of JP2007041225A publication Critical patent/JP2007041225A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image composition technique capable of shortening processing time when changing a composite image obtained by combining two or more hierarchical images. <P>SOLUTION: An image composition device is provided with: a hierarchical image storage means (PICT) for storing two or more hierarchical images having the order of priority; a composite image storage means (TOTAL) for storing composite images obtained by combining two or more hierarchical images; a hierarchy number storage means (PICT_CHK) for storing a hierarchy number of a hierarchical image adopted for the composite image for each pixel; and an image composition means for combining two or more hierarchical images according to the order of priority and letting the composite image storage means store the composited image, and also for letting the layer number storage means store the hierarchy number of the hierarchical image adopted for the composite image for each pixel. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像合成に関する。   The present invention relates to image composition.

図13は、画像合成処理を示すフローチャートである。例えば、5個の階層画像PICT1〜PICT5を合成し、合成画像Totalを生成する場合を説明する。画像PICT1〜PICT5及びTotalは、画像メモリ領域に対応する。各階層の画像を優先度の高い順に並べると、第1の階層画像PICT1、第2の階層画像PICT2、第3の階層画像PICT3、第4の階層画像PICT4、第5の階層画像PICT5の順になる。第1の階層画像PICT1は、透過色COLOR1を有する。第2の階層画像PICT2は、透過色COLOR2を有する。第3の階層画像PICT3は、透過色COLOR3を有する。第4の階層画像PICT4は、透過色COLOR4を有する。第5の階層画像PICT5は、透過色COLOR5を有する。ある階層画像で透過色が設定されていると、それより優先順位が低い階層画像が表示される。矩形領域の2次元画像を合成する場合を説明する。矩形領域は、左上座標が(x,y)であり、右下座標が(x+w,y+h)である。   FIG. 13 is a flowchart showing the image composition processing. For example, a case will be described in which five hierarchical images PICT1 to PICT5 are combined to generate a combined image Total. Images PICT1 to PICT5 and Total correspond to an image memory area. When the images of each layer are arranged in order of priority, the first layer image PICT1, the second layer image PICT2, the third layer image PICT3, the fourth layer image PICT4, and the fifth layer image PICT5 are arranged in this order. . The first hierarchical image PICT1 has a transparent color COLOR1. The second hierarchical image PICT2 has a transparent color COLOR2. The third hierarchical image PICT3 has a transparent color COLOR3. The fourth hierarchical image PICT4 has a transparent color COLOR4. The fifth hierarchical image PICT5 has a transparent color COLOR5. If a transparent color is set in a certain hierarchical image, a hierarchical image having a lower priority order is displayed. A case where a two-dimensional image of a rectangular area is synthesized will be described. The rectangular area has an upper left coordinate (x, y) and a lower right coordinate (x + w, y + h).

ステップS1301では、変数jにyを設定し、変数iにxを設定する。次に、ステップS1302では、第1の階層画像PICT1[j][i]が透過色COLOR1か否かを判定する。PICT1[j][i]は、座標(i,j)の画素データを表す。透過色COLOR1でなければステップS1303へ進み、透過色COLOR1であればステップS1304へ進む。ステップS1303では、合成画像Total[j][i]に第1の階層画像PICT1[j][i]の画素データを設定する。その後、ステップS1311へ進む。   In step S1301, y is set to the variable j and x is set to the variable i. Next, in step S1302, it is determined whether or not the first hierarchical image PICT1 [j] [i] is the transparent color COLOR1. PICT1 [j] [i] represents pixel data of coordinates (i, j). If it is not the transmission color COLOR1, the process proceeds to step S1303. If it is the transmission color COLOR1, the process proceeds to step S1304. In step S1303, pixel data of the first hierarchical image PICT1 [j] [i] is set in the composite image Total [j] [i]. Thereafter, the process proceeds to step S1311.

ステップS1304では、第2の階層画像PICT2[j][i]が透過色COLOR2か否かを判定する。PICT2[j][i]は、座標(i,j)の画素データを表す。透過色COLOR2でなければステップS1305へ進み、透過色COLOR2であればステップS1306へ進む。ステップS1305では、合成画像Total[j][i]に第2の階層画像PICT2[j][i]の画素データを設定する。その後、ステップS1311へ進む。   In step S1304, it is determined whether or not the second hierarchical image PICT2 [j] [i] is the transparent color COLOR2. PICT2 [j] [i] represents pixel data at coordinates (i, j). If it is not the transmission color COLOR2, the process proceeds to step S1305, and if it is the transmission color COLOR2, the process proceeds to step S1306. In step S1305, pixel data of the second hierarchical image PICT2 [j] [i] is set in the composite image Total [j] [i]. Thereafter, the process proceeds to step S1311.

ステップS1306では、第3の階層画像PICT3[j][i]が透過色COLOR3か否かを判定する。PICT3[j][i]は、座標(i,j)の画素データを表す。透過色COLOR3でなければステップS1307へ進み、透過色COLOR3であればステップS1308へ進む。ステップS1307では、合成画像Total[j][i]に第3の階層画像PICT3[j][i]の画素データを設定する。その後、ステップS1311へ進む。   In step S1306, it is determined whether or not the third hierarchical image PICT3 [j] [i] is the transparent color COLOR3. PICT3 [j] [i] represents pixel data of coordinates (i, j). If it is not the transmission color COLOR3, the process proceeds to step S1307, and if it is the transmission color COLOR3, the process proceeds to step S1308. In step S1307, the pixel data of the third hierarchical image PICT3 [j] [i] is set in the composite image Total [j] [i]. Thereafter, the process proceeds to step S1311.

ステップS1308では、第4の階層画像PICT4[j][i]が透過色COLOR4か否かを判定する。PICT4[j][i]は、座標(i,j)の画素データを表す。透過色COLOR4でなければステップS1309へ進み、透過色COLOR4であればステップS1310へ進む。ステップS1309では、合成画像Total[j][i]に第4の階層画像PICT4[j][i]の画素データを設定する。その後、ステップS1311へ進む。   In step S1308, it is determined whether the fourth hierarchical image PICT4 [j] [i] is the transparent color COLOR4. PICT4 [j] [i] represents pixel data of coordinates (i, j). If it is not the transmission color COLOR4, the process proceeds to step S1309, and if it is the transmission color COLOR4, the process proceeds to step S1310. In step S1309, pixel data of the fourth hierarchical image PICT4 [j] [i] is set in the composite image Total [j] [i]. Thereafter, the process proceeds to step S1311.

ステップS1310では、合成画像Total[j][i]に第5の階層画像PICT5[j][i]の画素データを設定する。その後、ステップS1311へ進む。   In step S1310, the pixel data of the fifth hierarchical image PICT5 [j] [i] is set in the composite image Total [j] [i]. Thereafter, the process proceeds to step S1311.

ステップS1311では、変数iをインクリメント(1加算)する。次に、ステップS1312では、変数iがx+wと等しいか否かを判定する。等しければステップS1313へ進み、等しくなければステップS1302へ戻って同様の処理を繰り返す。   In step S1311, the variable i is incremented (added by 1). Next, in step S1312, it is determined whether the variable i is equal to x + w. If they are equal, the process proceeds to step S1313. If they are not equal, the process returns to step S1302, and the same processing is repeated.

ステップS1313では、変数jをインクリメントする。次に、ステップS1314では、変数jがy+hと等しいか否かを判定する。等しければ処理を終了し、等しくなければステップS1302へ戻って同様の処理を繰り返す。   In step S1313, the variable j is incremented. Next, in step S1314, it is determined whether the variable j is equal to y + h. If they are equal, the process ends. If they are not equal, the process returns to step S1302 to repeat the same process.

また、下記の特許文献1には、オペレータの操作により任意のスイッチ画像を自由に移動して該スイッチ画像をグループ化して重ね合わせて表示する方法が記載されている。   Japanese Patent Application Laid-Open No. 2004-228561 describes a method in which an arbitrary switch image is freely moved by an operator's operation, and the switch images are grouped and displayed in a superimposed manner.

また、下記の特許文献2には、各ノード計算機で生成された部分画像を同期して画像を合成する装置が記載されている。   Patent Document 2 below describes an apparatus for synthesizing images by synchronizing partial images generated by each node computer.

特開平9−128196号公報JP-A-9-128196 特開2003−323635号公報JP 2003-323635 A

図13では、最終的な表示装置の表示領域と同じサイズの複数の記憶領域PICT1〜PICT5と、これと同じサイズの最終合成画像用記憶領域Totalを用意し、その記憶領域PICT1〜PICT5を優先順位毎に分けて、表示すべき内容を優先順位に従い各記憶領域PICT1〜PICT5に記憶する。   In FIG. 13, a plurality of storage areas PICT1 to PICT5 having the same size as the display area of the final display device and a final composite image storage area Total having the same size are prepared, and the storage areas PICT1 to PICT5 are prioritized. The contents to be displayed are stored in the respective storage areas PICT1 to PICT5 according to the priority order.

画面全体を変更する場合、まず各階層のデータを用意し、透過色として特定の値を指定し、各データが表示すべき値かそうでないかは、透過色であるか否かで判断し、各画素毎に優先順位の高い記憶領域からチェックして、ある優先順位の階層で、表示すべき内容が有った場合は、その内容を最終合成画像記憶領域Totalに記憶させ、それ以下の優先順位の階層のデータをチェックしない方法でデータを合成する。   When changing the entire screen, first prepare the data of each layer, specify a specific value as the transparent color, determine whether each data is a value to be displayed or not, whether it is a transparent color, Checking from the storage area with a high priority for each pixel, if there is content to be displayed in a hierarchy of a certain priority, the content is stored in the final composite image storage area Total, and the priority lower than that The data is synthesized by a method that does not check the data of the rank hierarchy.

また、表示内容に変更の有る場合は、変更の有った領域の各階層のデータをチェックして合成画像を作成する。しかし、ある階層のデータを変更した場合、その階層の優先順位を加味して、合成画像記憶領域Totalのデータを変更するか否かを決める必要がある。そのため、合成画像を生成するには、長時間を要する。   If there is a change in the display content, the composite image is created by checking the data of each layer of the changed area. However, when data of a certain hierarchy is changed, it is necessary to decide whether or not to change the data of the composite image storage area Total in consideration of the priority of the hierarchy. Therefore, it takes a long time to generate a composite image.

本発明の目的は、複数の階層画像を合成した合成画像を変更する場合の処理時間を短縮することができる画像合成技術を提供することである。   An object of the present invention is to provide an image composition technique capable of shortening the processing time when changing a composite image obtained by combining a plurality of hierarchical images.

本発明の画像合成装置は、優先順位を有する複数の階層画像を記憶するための階層画像記憶手段と、前記複数の階層画像を合成した合成画像を記憶するための合成画像記憶手段と、画素毎に前記合成画像に採用された前記階層画像の階層番号を記憶するための階層番号記憶手段と、前記優先順位に応じて前記複数の階層画像を合成して前記合成画像記憶手段に記憶させると共に、画素毎に前記合成画像に採用された前記階層画像の階層番号を前記階層番号記憶手段に記憶させる画像合成手段とを有する。   An image composition apparatus according to the present invention comprises: a hierarchical image storage means for storing a plurality of hierarchical images having a priority order; a composite image storage means for storing a composite image obtained by combining the plurality of hierarchical images; And a hierarchy number storage means for storing the hierarchy number of the hierarchy image adopted in the composite image, and the plurality of hierarchy images are combined according to the priority order and stored in the composite image storage means, Image synthesis means for storing, in the hierarchy number storage means, a hierarchy number of the hierarchy image adopted for the synthesized image for each pixel.

また、本発明の画像合成方法は、優先順位を有する複数の階層画像を記憶するための階層画像記憶手段と、前記複数の階層画像を合成した合成画像を記憶するための合成画像記憶手段と、画素毎に前記合成画像に採用された前記階層画像の階層番号を記憶するための階層番号記憶手段とを有する画像合成装置の画像合成方法であって、前記優先順位に応じて前記複数の階層画像を合成して前記合成画像記憶手段に記憶させると共に、画素毎に前記合成画像に採用された前記階層画像の階層番号を前記階層番号記憶手段に記憶させる画像合成ステップを有する。   Further, the image composition method of the present invention is a hierarchical image storage means for storing a plurality of hierarchical images having a priority order, a composite image storage means for storing a composite image obtained by combining the plurality of hierarchical images, An image composition method of an image composition apparatus, comprising: a layer number storage unit for storing a layer number of the layer image adopted for the composite image for each pixel, wherein the plurality of layer images according to the priority order Are combined and stored in the composite image storage means, and the layer number storage means stores the hierarchical number of the hierarchical image adopted in the composite image for each pixel.

階層番号記憶手段が階層番号を記憶するので、ある階層画像を変更したときには、その変更を合成画像に反映させる必要があるか否かを容易に判断することができ、合成画像の変更を短時間で行うことができる。   Since the hierarchical number storage means stores the hierarchical number, when a certain hierarchical image is changed, it can be easily determined whether or not the change needs to be reflected in the composite image, and the composite image can be changed in a short time. Can be done.

図1は、本発明の実施形態による画像合成装置を有する電子楽器の構成例を示すブロック図である。バス101には、CPU105、ROM106、RAM107、タッチセンサ109及び波形発生部111が接続される。パネル102は、表示装置103及びスイッチ104を有し、CPU105に接続される。表示装置103は、例えば液晶表示装置(LCD)である。スイッチ104は、演奏者が操作可能な操作子である。   FIG. 1 is a block diagram illustrating a configuration example of an electronic musical instrument having an image composition device according to an embodiment of the present invention. A CPU 105, a ROM 106, a RAM 107, a touch sensor 109, and a waveform generator 111 are connected to the bus 101. The panel 102 includes a display device 103 and a switch 104 and is connected to the CPU 105. The display device 103 is, for example, a liquid crystal display device (LCD). The switch 104 is an operator that can be operated by the performer.

ROM106は、コンピュータプログラム及び各種データ等を記憶する。RAM107は、CPU105のワークエリアを有する。CPU105は、ROM106のコンピュータプログラムを実行することにより、後述する図3〜図7のフローチャートの処理等を行う。   The ROM 106 stores computer programs and various data. The RAM 107 has a work area for the CPU 105. The CPU 105 executes the computer program stored in the ROM 106 to perform the processes shown in the flowcharts of FIGS.

MIDIインターフェース110は、外部に対してMIDIデータを入出力するためのインターフェースである。通信インターフェース115は、通信ネットワークに対してデータを送受信するためのインターフェースである。スイッチ104は、音色選択スイッチ等を有し、音色等を選択することができる。鍵盤108は、白鍵及び黒鍵を有し、演奏者が演奏操作するための演奏操作子である。タッチセンサ109は、鍵盤108の鍵の押鍵速度を検出する。   The MIDI interface 110 is an interface for inputting / outputting MIDI data to / from the outside. The communication interface 115 is an interface for transmitting / receiving data to / from a communication network. The switch 104 has a timbre selection switch or the like, and can select a timbre or the like. The keyboard 108 has a white key and a black key, and is a performance operator for the player to perform a performance operation. The touch sensor 109 detects the key pressing speed of the keyboard 108.

CPU105は、鍵盤108の演奏操作に応じて、押鍵操作(キーオン)、離鍵操作(キーオフ)、押鍵速度(ベロシティ)等を検出する。波形発生部111は、上記の演奏操作に応じて、波形メモリ112から楽音波形(楽音信号)を読み出して生成し、DA変換器113に出力する。DA変換器113は、楽音波形をデジタル形式からアナログ形式に変換し、サウンドシステム114に出力する。サウンドシステム114により楽音が発音される。   The CPU 105 detects a key pressing operation (key on), a key releasing operation (key off), a key pressing speed (velocity), and the like according to a performance operation of the keyboard 108. The waveform generation unit 111 reads out and generates a musical sound waveform (musical sound signal) from the waveform memory 112 according to the performance operation described above, and outputs it to the DA converter 113. The DA converter 113 converts the musical sound waveform from a digital format to an analog format and outputs it to the sound system 114. A sound is produced by the sound system 114.

また、ROM106には、自動演奏データが記憶されている。スイッチ104により自動演奏のスタートが指示されると、CPU105は、自動演奏データを読み出し、波形発生部111に供給する。波形発生部111は楽音信号を生成し、サウンドシステム114により自動演奏が発音される。   The ROM 106 stores automatic performance data. When the start of automatic performance is instructed by the switch 104, the CPU 105 reads out automatic performance data and supplies it to the waveform generator 111. The waveform generator 111 generates a musical sound signal, and an automatic performance is produced by the sound system 114.

図2は、RAM107に記憶される階層画像記憶領域PICT1〜PICTn、合成画像記憶領域TOTAL及び階層番号記憶領域PICT_CHKを示す図である。記憶領域PICT1〜PICTn、TOTAL及びPICT_CHKは、表示装置103の表示領域と同じ画素数のデータを記憶することができる。階層画像記憶領域は、優先順位が低い順番に並べると、第1の階層画像記憶領域PICT1、第2の階層画像記憶領域PICT2、第3の階層画像記憶領域PICT3、第4の階層画像記憶領域PICT4、・・・、第nの階層画像記憶領域PICTnとなる。すなわち、第1の階層画像記憶領域PICT1は優先順位が最も低く、第nの階層画像記憶領域PICTnは優先順位が最も高い。階層画像記憶領域PICT1〜PICTnの画像データは、画素単位で透過色(透明色)を0xffff(16進数)として表現可能である。ある階層画像の画素で透過色が設定されていると、それより優先順位が低い階層画像の画素が表示される。合成画像記憶領域TOTALは、階層画像記憶領域PICT1〜PICTnの階層画像を合成した合成画像を記憶する。階層番号記憶領域PICT_CHKは、画素毎に合成画像記憶領域TOTALの合成画像に採用されている階層番号を記憶する。合成画像記憶領域TOTALの合成画像は、表示装置103に表示される。   FIG. 2 is a diagram showing the hierarchical image storage areas PICT1 to PICTn, the composite image storage area TOTAL, and the hierarchical number storage area PICT_CHK stored in the RAM 107. The storage areas PICT1 to PICTn, TOTAL, and PICT_CHK can store data having the same number of pixels as the display area of the display device 103. When the hierarchical image storage areas are arranged in order of priority, the first hierarchical image storage area PICT1, the second hierarchical image storage area PICT2, the third hierarchical image storage area PICT3, and the fourth hierarchical image storage area PICT4. ,... Becomes the nth hierarchical image storage area PICTn. That is, the first hierarchical image storage area PICT1 has the lowest priority, and the nth hierarchical image storage area PICTn has the highest priority. The image data in the hierarchical image storage areas PICT1 to PICTn can be expressed as 0xffff (hexadecimal number) for the transparent color (transparent color) in pixel units. When a transparent color is set for a pixel of a certain hierarchical image, a pixel of the hierarchical image having a lower priority is displayed. The composite image storage area TOTAL stores a composite image obtained by combining the hierarchical images in the hierarchical image storage areas PICT1 to PICTn. The hierarchy number storage area PICT_CHK stores the hierarchy number adopted for the composite image in the composite image storage area TOTAL for each pixel. The composite image in the composite image storage area TOTAL is displayed on the display device 103.

図3は、CPU105が行う初期化処理を示すフローチャートである。矩形領域の2次元画像を初期化する場合を説明する。矩形領域は、左上座標が(0,0)であり、右下座標が(x+w,y+h)である。   FIG. 3 is a flowchart showing an initialization process performed by the CPU 105. A case where a two-dimensional image of a rectangular area is initialized will be described. In the rectangular area, the upper left coordinates are (0, 0), and the lower right coordinates are (x + w, y + h).

ステップS301では、変数j及びiに0を設定する。次に、ステップS302では、階層番号記憶領域PICT_CHK[j][i]に1を設定する。PICT_CHK[j][i]は、合成画像の座標(i,j)で採用される階層番号を表す。階層番号1は、優先順位が最も低い第1の画像画像記憶領域PICT1の階層画像の階層番号を意味する。そして、階層画像記憶領域PICT1[j][i]〜PICTn[j][i]に透過色データとして0xffff(16進数)を設定する。PICT1[j][i]〜PICTn[j][i]は、第1〜第nの階層画像記憶領域の座標(i,j)の画素データを表す。   In step S301, 0 is set to variables j and i. Next, in step S302, 1 is set to the hierarchy number storage area PICT_CHK [j] [i]. PICT_CHK [j] [i] represents a hierarchical number adopted at the coordinates (i, j) of the composite image. The hierarchy number 1 means the hierarchy number of the hierarchy image in the first image image storage area PICT1 having the lowest priority. Then, 0xffff (hexadecimal number) is set as transparent color data in the hierarchical image storage areas PICT1 [j] [i] to PICTn [j] [i]. PICT1 [j] [i] to PICTn [j] [i] represent pixel data of coordinates (i, j) in the first to nth hierarchical image storage areas.

次に、ステップS303では、変数iをインクリメントする。次に、ステップS304では、変数iがx+wと等しいか否かを判定する。等しければステップS305へ進み、等しくなければステップS302へ戻って同様の処理を繰り返す。   Next, in step S303, the variable i is incremented. Next, in step S304, it is determined whether or not the variable i is equal to x + w. If they are equal, the process proceeds to step S305, and if they are not equal, the process returns to step S302 and the same process is repeated.

ステップS305では、変数jをインクリメントする。次に、ステップS306では、変数jがy+hと等しいか否かを判定する。等しければ処理を終了し、等しくなければステップS302へ戻って同様の処理を繰り返す。   In step S305, the variable j is incremented. Next, in step S306, it is determined whether or not the variable j is equal to y + h. If they are equal, the process ends. If they are not equal, the process returns to step S302 and the same process is repeated.

図4は、CPU105が行う階層画像記憶領域PICT1〜PICTnのデータ設定処理を示すフローチャートである。優先順位が低い第1の階層画像記憶領域PICT1から優先順位の高い第nの階層画像記憶領域PICTnまで順に1階層画像ずつ設定する。第pの階層画像記憶領域PICTpにデータを設定する場合を説明する。第pの階層画像の設定データをpic_dat_p[l][m]とする。矩形領域の2次元画像データを設定する場合を説明する。矩形領域は、左上座標が(x,y)であり、右下座標が(x+w,y+h)である。   FIG. 4 is a flowchart showing data setting processing of the hierarchical image storage areas PICT1 to PICTn performed by the CPU 105. One hierarchical image is set in order from the first hierarchical image storage area PICT1 having a low priority to the nth hierarchical image storage area PICTn having a high priority. A case where data is set in the p-th hierarchical image storage area PICTp will be described. The setting data of the p-th hierarchical image is pic_dat_p [l] [m]. A case where two-dimensional image data of a rectangular area is set will be described. The rectangular area has an upper left coordinate (x, y) and a lower right coordinate (x + w, y + h).

ステップS401では、変数jにyを設定し、変数iにxを設定し、変数l及びmに0を設定する。次に、ステップS402では、第pの階層画像設定データpic_dat_p[l][m]が透過色データである0xffff(16進数)と等しいか否かを判定する。等しくなければステップS403へ進み、等しければステップS404へ進む。   In step S401, y is set to the variable j, x is set to the variable i, and 0 is set to the variables l and m. Next, in step S402, it is determined whether or not the p-th layer image setting data pic_dat_p [l] [m] is equal to 0xffff (hexadecimal number) that is transparent color data. If not equal, the process proceeds to step S403, and if equal, the process proceeds to step S404.

ステップS403では、第pの階層画像記憶領域PICTp[j][i]に第pの階層画像設定データpic_dat_p[l][m]を設定する。そして、階層番号記憶領域PICT_CHK[j][i]に階層番号pを設定する。すなわち、合成画像の座標(i,j)の画素には、第pの階層画像の画素データが採用されることを意味する。その後、ステップS404へ進む。   In step S403, the p-th hierarchical image setting data pic_dat_p [l] [m] is set in the p-th hierarchical image storage area PICTp [j] [i]. Then, the hierarchy number p is set in the hierarchy number storage area PICT_CHK [j] [i]. That is, it means that the pixel data of the p-th hierarchical image is adopted for the pixel at the coordinates (i, j) of the composite image. Thereafter, the process proceeds to step S404.

ステップS404では、変数i及びmをインクリメントする。次に、ステップS405では、変数mがwと等しいか否かを判定する。等しければステップS406へ進み、等しくなければステップS402へ戻って同様の処理を繰り返す。   In step S404, the variables i and m are incremented. Next, in step S405, it is determined whether the variable m is equal to w. If they are equal, the process proceeds to step S406. If they are not equal, the process returns to step S402 and the same process is repeated.

ステップS406では、変数j及びlをインクリメントする。次に、ステップS407では、変数lがhと等しいか否かを判定する。等しければ1階層画像分のセット処理を終了し、等しくなければステップS402へ戻って同様の処理を繰り返す。   In step S406, the variables j and l are incremented. Next, in step S407, it is determined whether the variable l is equal to h. If they are equal, the set processing for one layer image is terminated, and if they are not equal, the process returns to step S402 and the same processing is repeated.

以上のように、変数pを1から順番にnまで変化させることにより、第1の階層画像記憶領域PICT1から第nの階層画像記憶領域PICTnまでにデータを設定することができる。これにより、階層画像記憶領域PICT_CHK[j][i]には、合成画像の座標(i,j)の画素に採用される階層番号が設定される。   As described above, by changing the variable p from 1 to n in order, data can be set from the first hierarchical image storage area PICT1 to the nth hierarchical image storage area PICTn. Thereby, the hierarchical number employed for the pixel at the coordinates (i, j) of the composite image is set in the hierarchical image storage area PICT_CHK [j] [i].

図5は、CPU105が行う画像合成処理を示すフローチャートである。矩形領域の2次元画像を合成する場合を説明する。矩形領域は、左上座標が(0,0)であり、右下座標が(x+w,y+h)である。   FIG. 5 is a flowchart showing image composition processing performed by the CPU 105. A case where a two-dimensional image of a rectangular area is synthesized will be described. In the rectangular area, the upper left coordinates are (0, 0), and the lower right coordinates are (x + w, y + h).

ステップS501では、変数j及びiに0を設定する。次に、ステップS502では、階層番号pに階層番号記憶領域PICT_CHK[j][i]の階層番号を設定する。そして、合成画像記憶領域TOTAL[j][i]に第pの階層画像記憶領域PICT[p][j][i]のデータを設定する。TOTAL[j][i]は、合成画像の座標(i,j)の画素データを表す。PICT[p][j][i]は、PICTp[j][i]と同じである。   In step S501, 0 is set to variables j and i. Next, in step S502, the hierarchy number of the hierarchy number storage area PICT_CHK [j] [i] is set to the hierarchy number p. Then, data of the p-th hierarchical image storage area PICT [p] [j] [i] is set in the composite image storage area TOTAL [j] [i]. TOTAL [j] [i] represents pixel data of coordinates (i, j) of the composite image. PICT [p] [j] [i] is the same as PICTp [j] [i].

ステップS503では、変数iをインクリメントする。次に、ステップS504では、変数iがx+wと等しいか否かを判定する。等しければステップS505へ進み、等しくなければステップS502へ戻って同様の処理を繰り返す。   In step S503, the variable i is incremented. Next, in step S504, it is determined whether the variable i is equal to x + w. If they are equal, the process proceeds to step S505, and if they are not equal, the process returns to step S502 and the same process is repeated.

ステップS505では、変数jをインクリメントする。次に、ステップS506では、変数jがy+hと等しいか否かを判定する。等しければ画像合成処理を終了し、等しくなければステップS502へ戻って同様の処理を繰り返す。   In step S505, the variable j is incremented. Next, in step S506, it is determined whether the variable j is equal to y + h. If they are equal, the image composition process is terminated, and if they are not equal, the process returns to step S502 and the same process is repeated.

以上の処理により、n個の階層画像記憶領域PICT1〜PICTnの階層画像を合成した画像を合成画像記憶領域TOTALに記憶させることができる。また、画素毎に合成画像記憶領域TOTALの合成画像に採用された階層画像の階層番号を階層番号記憶領域PICT_CHKに記憶させることができる。   Through the above processing, an image obtained by combining the hierarchical images of n hierarchical image storage areas PICT1 to PICTn can be stored in the composite image storage area TOTAL. In addition, the hierarchical number of the hierarchical image adopted for the composite image in the composite image storage area TOTAL for each pixel can be stored in the hierarchical number storage area PICT_CHK.

図6は、CPU105が行う階層画像変更処理を示すフローチャートである。第pの階層画像記憶領域PICTpの画像データを変更する場合を説明する。第pの階層画像の変更データをpic_dat_p[l][m]とする。矩形領域の2次元画像データを変更する場合を説明する。矩形領域は、左上座標が(x,y)であり、右下座標が(x+w,y+h)である。   FIG. 6 is a flowchart showing the hierarchical image change process performed by the CPU 105. A case where the image data in the p-th hierarchical image storage area PICTp is changed will be described. The change data of the p-th hierarchical image is pic_dat_p [l] [m]. A case where the two-dimensional image data of the rectangular area is changed will be described. The rectangular area has an upper left coordinate (x, y) and a lower right coordinate (x + w, y + h).

ステップS601では、変数jにyを設定し、変数iにxを設定し、変数l及びmに0を設定する。   In step S601, y is set to the variable j, x is set to the variable i, and 0 is set to the variables l and m.

次に、ステップS602では、第pの階層画像記憶領域PICTp[j][i]に第pの階層画像変更データpic_dat_p[l][m]を設定する。次に、ステップS603では、階層画像変更時の画像合成処理を行う。この処理の詳細は、後に図7を参照しながら説明する。   In step S602, the p-th hierarchical image change data pic_dat_p [l] [m] is set in the p-th hierarchical image storage area PICTp [j] [i]. Next, in step S603, an image composition process when changing the hierarchical image is performed. Details of this processing will be described later with reference to FIG.

次に、ステップS604では、変数i及びmをインクリメントする。次に、ステップS605では、変数mがwと等しいか否かを判定する。等しければステップS606へ進み、等しくなければステップS602へ戻って同様の処理を繰り返す。   Next, in step S604, the variables i and m are incremented. Next, in step S605, it is determined whether the variable m is equal to w. If they are equal, the process proceeds to step S606, and if they are not equal, the process returns to step S602 and the same process is repeated.

ステップS606では、変数j及びlをインクリメントする。次に、ステップS607では、変数lがhと等しいか否かを判定する。等しければ変更処理を終了し、等しくなければステップS602へ戻って同様の処理を繰り返す。   In step S606, the variables j and l are incremented. Next, in step S607, it is determined whether the variable l is equal to h. If they are equal, the change process is terminated, and if they are not equal, the process returns to step S602 and the same process is repeated.

図7は、図6のステップS603の階層画像変更時の画像合成処理を示すフローチャートである。ステップS701では、階層番号記憶領域PICT_CHK[j][i]の階層番号が階層番号p以下か否かを判定する。階層番号p以下であれば、階層番号pと優先順位が同じ又はそれより低い優先順位の階層画像が合成画像に採用されているので、ステップS702へ進む。   FIG. 7 is a flowchart showing the image composition processing at the time of changing the hierarchical image in step S603 of FIG. In step S701, it is determined whether or not the hierarchical number of the hierarchical number storage area PICT_CHK [j] [i] is equal to or lower than the hierarchical number p. If it is equal to or lower than the hierarchy number p, the hierarchy image having the same or lower priority than the hierarchy number p is adopted as the composite image, and the process advances to step S702.

これに対し、階層番号pより大きいときには、階層番号pより高い優先順位の階層画像が合成画像に採用されているので、何もせずに図6の処理に戻る。この場合には、ステップS702〜S708の処理を行わなくてすむので、処理時間を短縮することができる。   On the other hand, when the number is larger than the layer number p, the layer image having a higher priority than the layer number p is adopted as the composite image, and the processing returns to FIG. 6 without doing anything. In this case, since it is not necessary to perform the processing of steps S702 to S708, the processing time can be shortened.

ステップS702では、第pの階層画像記憶領域PICT[p][j][i]が透過色データである0xffff(16進数)と同じであるか否かを判定する。同じでないときにはステップS703へ進み、同じであるときにはステップS704へ進む。   In step S702, it is determined whether or not the p-th hierarchical image storage area PICT [p] [j] [i] is the same as 0xffff (hexadecimal number) that is transparent color data. If they are not the same, the process proceeds to step S703, and if they are the same, the process proceeds to step S704.

ステップS703では、階層番号記憶領域PICT_CHK[j][i]に階層番号pを設定する。そして、合成画像記憶領域TOTAL[j][i]に第pの階層画像記憶領域PICT[p][j][i]の画素データを設定する。その後、図6の処理に戻る。   In step S703, the hierarchy number p is set in the hierarchy number storage area PICT_CHK [j] [i]. Then, the pixel data of the p-th hierarchical image storage area PICT [p] [j] [i] is set in the composite image storage area TOTAL [j] [i]. Thereafter, the process returns to the process of FIG.

ステップS704では、階層番号記憶領域PICT_CHK[j][i]の階層番号が階層番号pと同じか否かを判定する。同じであるときにはステップS705へ進む。同じでないときには、階層番号pのデータが変更前も変更後も透過色であることを意味するので、この画素位置の合成画像に変更はなく、何もせずに図6の処理に戻る。これにより、さらに処理を省き、処理時間を短縮することができる。   In step S704, it is determined whether or not the hierarchy number of the hierarchy number storage area PICT_CHK [j] [i] is the same as the hierarchy number p. If they are the same, the process proceeds to step S705. If they are not the same, it means that the data of the layer number p is a transparent color before and after the change, so that the composite image at this pixel position is not changed, and the processing returns to FIG. 6 without doing anything. Thereby, processing can be further omitted and processing time can be shortened.

ステップS705では、第p−1の階層画像記憶領域PICT[p−1][j][i]が透過色データである0xffff(16進数)と同じであるか否かを判定する。同じでないときにはステップS706へ進み、同じであるときにはステップS707へ進む。   In step S705, it is determined whether or not the (p-1) th hierarchical image storage area PICT [p-1] [j] [i] is the same as 0xffff (hexadecimal number) that is the transparent color data. If they are not the same, the process proceeds to step S706, and if they are the same, the process proceeds to step S707.

ステップS706では、階層番号記憶領域PICT_CHK[j][i]に階層番号p−1を設定する。そして、合成画像記憶領域TOTAL[j][i]に第p−1の階層画像記憶領域PICT[p−1][j][i]の画素データを設定する。その後、図6の処理に戻る。   In step S706, the hierarchy number p-1 is set in the hierarchy number storage area PICT_CHK [j] [i]. Then, the pixel data of the (p−1) -th hierarchical image storage area PICT [p−1] [j] [i] is set in the composite image storage area TOTAL [j] [i]. Thereafter, the process returns to the process of FIG.

ステップS707では、第p−2の階層画像記憶領域PICT[p−2][j][i]が透過色データである0xffff(16進数)と同じであるか否かを判定する。同じでないときには、ステップS708へ進む。   In step S707, it is determined whether or not the (p-2) th hierarchical image storage area PICT [p-2] [j] [i] is the same as 0xffff (hexadecimal number) that is the transparent color data. If they are not the same, the process proceeds to step S708.

ステップS708では、階層番号記憶領域PICT_CHK[j][i]に階層番号p−2を設定する。そして、合成画像記憶領域TOTAL[j][i]に第p−2の階層画像記憶領域PICT[p−2][j][i]の画素データを設定する。その後、図6の処理に戻る。   In step S708, the hierarchy number p-2 is set in the hierarchy number storage area PICT_CHK [j] [i]. Then, pixel data of the (p-2) -th hierarchical image storage area PICT [p-2] [j] [i] is set in the composite image storage area TOTAL [j] [i]. Thereafter, the process returns to the process of FIG.

ステップS707において、同じであると判定されたときには、上記と同様に、第p−3〜第1の階層画像の処理を行う。優先順位の高い階層画像から優先順位の低い階層画像に向けて順番に処理することにより、優先順位の高い階層画像を優先的に合成画像記憶領域TOTALに設定することができる。   When it is determined in step S707 that they are the same, the p-3 to first layer images are processed in the same manner as described above. By processing in order from a hierarchical image with a high priority to a hierarchical image with a low priority, a hierarchical image with a high priority can be preferentially set in the composite image storage area TOTAL.

以上のように、一の階層画像を変更し、階層番号記憶領域PICT_CHKの階層番号及び変更した階層画像の階層番号を画素毎に比較し、その比較結果に応じて、合成画像記憶領域TOTALの合成画像及び階層番号記憶領域PICT_CHKの階層番号を画素毎に変更する。   As described above, one hierarchical image is changed, the hierarchical number of the hierarchical number storage area PICT_CHK and the hierarchical number of the changed hierarchical image are compared for each pixel, and the composite image storage area TOTAL is synthesized according to the comparison result. The hierarchical number of the image and hierarchical number storage area PICT_CHK is changed for each pixel.

変更した階層画像の階層番号が階層番号記憶領域PICT_CHKの階層番号より優先順位が高いときには合成画像記憶領域TOTALの合成画像及び階層番号記憶領域PICT_CHKの階層番号を変更し、変更した階層画像の階層番号が階層番号記憶領域PICT_CHKの階層番号より優先順位が低いときには合成画像記憶領域TOTALの合成画像及び階層番号記憶領域PICT_CHKの階層番号を変更しない。   When the hierarchical number of the changed hierarchical image has higher priority than the hierarchical number of the hierarchical number storage area PICT_CHK, the hierarchical number of the composite image in the composite image storage area TOTAL and the hierarchical number storage area PICT_CHK is changed, and the hierarchical number of the changed hierarchical image However, when the priority order is lower than the hierarchical number of the hierarchical number storage area PICT_CHK, the composite image in the composite image storage area TOTAL and the hierarchical number of the hierarchical number storage area PICT_CHK are not changed.

第pの階層画像を変更する場合には、階層番号記憶領域PICT_CHKの階層番号と変更した階層画像の階層番号pとを画素毎に比較し、階層番号pより大きい場合には、ステップS702〜S708の処理を行わずにすむので、処理時間を短縮することができる。   When changing the p-th hierarchical image, the hierarchical number of the hierarchical number storage area PICT_CHK and the hierarchical number p of the changed hierarchical image are compared for each pixel, and if larger than the hierarchical number p, steps S702 to S708 are performed. Therefore, the processing time can be shortened.

本実施形態によれば、合成画像記憶領域TOTALと同じサイズの階層番号記憶領域PICT_CHKを用意し、その階層番号記憶領域PICT_CHKの各画素領域に、合成画像で採用する階層番号を記憶させる。   According to the present embodiment, a hierarchical number storage area PICT_CHK having the same size as the synthesized image storage area TOTAL is prepared, and the hierarchical number employed in the synthesized image is stored in each pixel area of the hierarchical number storage area PICT_CHK.

具体的には、画面全体を変更する場合には、図4に示したように、まず最下位の優先順位の第1の階層画像記憶領域PICT1にデータを設定し、階層番号記憶領域PICT_CHKには最下位の階層番号を示す数値1を設定する。次に、優先順位を一つずつ上げ、各階層のデータを設定していく。このときに、表示すべきデータがある画素は、階層番号記憶領域PICT_CHKの値をその階層を示す値に変更する。全階層のデータを設定し終わった段階で、階層番号記憶領域PICT_CHKに記憶された階層番号にしたがって、各画素でどのデータを使用するか判断し、合成画像を作成する。   Specifically, when changing the entire screen, as shown in FIG. 4, first, data is set in the first hierarchical image storage area PICT1 having the lowest priority, and the hierarchical number storage area PICT_CHK is set. A numerical value 1 indicating the lowest hierarchy number is set. Next, the priority is raised one by one, and data of each hierarchy is set. At this time, the pixel having data to be displayed changes the value of the hierarchy number storage area PICT_CHK to a value indicating the hierarchy. At the stage where data for all layers has been set, it is determined which data is used for each pixel in accordance with the layer number stored in the layer number storage area PICT_CHK, and a composite image is created.

図6に示したように、表示内容に変更の有る場合、階層番号記憶領域PICT_CHKの変更の有った画素の位置に当たる部分の階層番号を見て、現在表示されているデータの階層番号が変更の有ったデータの階層番号よりも上位の優先順位であった場合には、合成画像の変更はしない。現在表示されているデータの階層番号が変更の有ったデータの階層番号よりも下位の場合は、階層番号記憶領域PICT_CHKの値と、合成画像記憶領域TOTALの値を変更の有ったデータの内容に即した値に変更して、表示を変える。階層画像記憶領域PICT1〜PICTnのデータが削除されて透過色となった場合には、そのデータの階層番号と階層番号記憶領域PICT_CHKの値をチェックし、そのデータが表示されていなかった場合には各階層のデータの削除のみ行ない、表示されていた場合には、表示されていたデータよりも下位の優先順位の階層のデータを優先順位の高い順にチェックして、階層番号記憶領域PICT_CHKの階層番号と合成画像記憶領域TOTALのデータを変更し表示する。このことにより、各階層画像の合成時に透過色がどうかのチェックが少なくなり、画像の合成処理にかかる時間(特に部分変更時)の短縮が期待できる。   As shown in FIG. 6, when the display content is changed, the layer number of the currently displayed data is changed by looking at the layer number corresponding to the position of the pixel where the layer number storage area PICT_CHK is changed. If the priority order is higher than the hierarchical number of the data having the, the composite image is not changed. When the hierarchy number of the currently displayed data is lower than the hierarchy number of the changed data, the value of the hierarchy number storage area PICT_CHK and the value of the composite image storage area TOTAL are changed. Change the display according to the content. When the data of the hierarchical image storage areas PICT1 to PICTn is deleted and becomes transparent color, the hierarchical number of the data and the value of the hierarchical number storage area PICT_CHK are checked, and when the data is not displayed If only the data of each hierarchy is deleted and displayed, the data of the hierarchy of lower priority than the displayed data is checked in the order of higher priority, and the hierarchy number of the hierarchy number storage area PICT_CHK And the data of the composite image storage area TOTAL are changed and displayed. As a result, it is possible to reduce the check of whether there is a transparent color at the time of synthesizing each hierarchical image, and to shorten the time required for the image synthesizing process (particularly at the time of partial change).

図8は優先順位が高い階層画像の例を示す図であり、図9は図8の階層画像とそれより優先順位が低い階層画像とを合成した合成画像の例を示す図である。図8の優先順位が高い階層画像は、自動演奏時等に表示される歌詞の画像である。また、優先順位が低い階層画像は、例えばコントラバスの楽器の画像である。図9の合成画像は、図8の歌詞画像の背景に、コントラバスの画像が合成された画像である。自動演奏の曲の進行に伴って、背景画像(コントラバス)を変更したい場合、図8の高優先順位の歌詞、曲名、拍子情報等は常に最前面に表示させる必要があるので、その画素位置の合成画像記憶領域TOTAL及び階層番号記憶領域PICT_CHKの値は変更せずに、背景画像の画素位置の合成画像記憶領域TOTAL及び階層番号記憶領域PICT_CHKの値のみを変更する。背景画像がオーケストラ等の複雑な画像で複数階層に分かれている場合、階層が分かれているほど、一部の階層画像の変更時の処理に処理時間短縮の大きな効果を得ることができる。   FIG. 8 is a diagram illustrating an example of a hierarchical image having a high priority, and FIG. 9 is a diagram illustrating an example of a composite image obtained by combining the hierarchical image of FIG. 8 and a hierarchical image having a lower priority. The hierarchical image having a high priority in FIG. 8 is an image of lyrics displayed during automatic performance or the like. The hierarchical image having a low priority is, for example, an image of a contrabass instrument. The composite image in FIG. 9 is an image obtained by combining a contrabass image on the background of the lyrics image in FIG. When it is desired to change the background image (contrabass) with the progress of the automatic performance song, it is necessary to always display the high priority lyrics, song titles, time signature information, etc. in FIG. The values of the combined image storage area TOTAL and the hierarchical number storage area PICT_CHK of the background image are changed without changing the values of the combined image storage area TOTAL and the hierarchical number storage area PICT_CHK. When the background image is a complex image such as an orchestra divided into a plurality of hierarchies, the greater the hierarchy, the greater the effect of shortening the processing time in the processing when changing some of the hierarchies.

図10は優先順位が低い階層画像の例を示す図であり、図11は図10の階層画像とそれより優先順位が高い階層画像とを合成した合成画像の例を示す図である。図10の優先順位が低い階層画像は、全体の曲データの画像であり、曲データの編集が可能である。また、優先順位が高い階層画像は、編集する曲データの画像であり、例えば全体曲データに対して新たに挿入する曲データの画像である。図11の合成画像は、図10の全体曲データを背景として、その前面に編集曲データの画像を合成した画像である。編集曲データの画像の背景では、全体曲データが表示される。全体曲データは、編集等に応じて最新の曲データを表示する。ただし、編集曲データの画像に重なる全体曲データの画像部分は、合成画像記憶領域TOTAL及び階層番号記憶領域PICT_CHKの変更がない。逆に、編集曲データの画像のみが更新される場合には、背景画像となる全体曲データの変更はない。   FIG. 10 is a diagram illustrating an example of a hierarchical image having a low priority, and FIG. 11 is a diagram illustrating an example of a composite image obtained by combining the hierarchical image of FIG. 10 and a hierarchical image having a higher priority. The hierarchical image having a low priority in FIG. 10 is an image of the entire song data, and the song data can be edited. A hierarchical image having a high priority is an image of song data to be edited, for example, an image of song data to be newly inserted into the entire song data. The synthesized image in FIG. 11 is an image obtained by synthesizing the edited music data image in front of the entire music data in FIG. In the background of the edited music data image, the entire music data is displayed. As the entire song data, the latest song data is displayed according to editing or the like. However, the synthetic music storage area TOTAL and the hierarchy number storage area PICT_CHK are not changed in the image portion of the entire music data that overlaps the edited music data image. Conversely, when only the image of the edited music data is updated, there is no change in the entire music data that becomes the background image.

図12は、複数の階層画像を合成した合成画像の例を示す図であり、ミキサの画面例を示す。ミキサ画面は、図1のスイッチ104の操作又はMIDIインターフェース110を介して入力されるMIDIデータ等により指示された情報を反映して表示し、例えばエフェクト、リバーブレベル、コーラスレベル、パン、ボリューム等を表示する。音としての出力に反映させない場合は、「RIGHT2」の「VOLUME」のように「OFF」の表示を最前面に表示する。「OFF」は、その特定機能が無効である旨を示す画像である。「OFF」の画像は、優先順位が高い階層画像であり、その他の画像はそれよりも優先順位が低い背景の階層画像である。スイッチ104等を操作すると、「OFF」の高優先順位の階層画像の部分の合成画像は変化しないが、背景の低優先順位の階層画像の部分の合成画像が変更される。   FIG. 12 is a diagram illustrating an example of a composite image obtained by combining a plurality of hierarchical images, and illustrates an example of a mixer screen. The mixer screen reflects and displays information instructed by the operation of the switch 104 in FIG. 1 or MIDI data input via the MIDI interface 110, for example, effects, reverb level, chorus level, pan, volume, etc. indicate. When not reflecting in the output as sound, “OFF” is displayed on the forefront like “VOLUME” of “RIGHT2”. “OFF” is an image indicating that the specific function is invalid. The “OFF” image is a hierarchical image with a high priority, and the other images are background hierarchical images with a lower priority. When the switch 104 or the like is operated, the composite image of the portion of the high priority hierarchical image “OFF” is not changed, but the composite image of the portion of the background low priority hierarchical image is changed.

以上のように、本実施形態によれば、階層番号記憶領域PICT_CHKが階層番号を記憶するので、ある階層画像を変更したときには、その変更を合成画像に反映させる必要があるか否かを容易に判断することができ、合成画像の変更を短時間で行うことができる。   As described above, according to the present embodiment, since the hierarchical number storage area PICT_CHK stores the hierarchical number, when a certain hierarchical image is changed, it is easily determined whether or not the change needs to be reflected in the composite image. It is possible to make a determination and change the composite image in a short time.

本実施形態は、CPU105のコンピュータがプログラムを実行することによって実現することができる。また、プログラムをコンピュータに供給するための手段、例えばかかるプログラムを記録したCD−ROM等のコンピュータ読み取り可能な記録媒体又はかかるプログラムを伝送するインターネット等の伝送媒体も本発明の実施形態として適用することができる。また、上記のプログラムを記録したコンピュータ読み取り可能な記録媒体等のコンピュータプログラムプロダクトも本発明の実施形態として適用することができる。上記のプログラム、記録媒体、伝送媒体及びコンピュータプログラムプロダクトは、本発明の範疇に含まれる。記録媒体としては、例えばフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。   This embodiment can be realized by the computer of the CPU 105 executing a program. Also, means for supplying a program to a computer, for example, a computer-readable recording medium such as a CD-ROM recording such a program, or a transmission medium such as the Internet for transmitting such a program is also applied as an embodiment of the present invention. Can do. A computer program product such as a computer-readable recording medium in which the above program is recorded can also be applied as an embodiment of the present invention. The above program, recording medium, transmission medium, and computer program product are included in the scope of the present invention. As the recording medium, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

なお、上記実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed in a limited manner. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

本発明の実施形態による画像合成装置を有する電子楽器の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic musical instrument which has an image composition apparatus by embodiment of this invention. RAMに記憶される階層画像記憶領域PICT1〜PICTn、合成画像記憶領域TOTAL及び階層番号記憶領域PICT_CHKを示す図である。It is a figure which shows the hierarchy image storage area PICT1-PICTn memorize | stored in RAM, the synthetic | combination image storage area TOTAL, and the hierarchy number storage area PICT_CHK. CPUが行う初期化処理を示すフローチャートである。It is a flowchart which shows the initialization process which CPU performs. CPUが行う階層画像記憶領域PICT1〜PICTnのデータ設定処理を示すフローチャートである。It is a flowchart which shows the data setting process of the hierarchy image storage area PICT1-PICTn which CPU performs. CPUが行う画像合成処理を示すフローチャートである。It is a flowchart which shows the image composition process which CPU performs. CPUが行う階層画像変更処理を示すフローチャートである。It is a flowchart which shows the hierarchy image change process which CPU performs. 図6のステップS603の階層画像変更時の画像合成処理を示すフローチャートである。It is a flowchart which shows the image composition process at the time of the hierarchy image change of step S603 of FIG. 優先順位が高い階層画像の例を示す図である。It is a figure which shows the example of the hierarchy image with a high priority. 図8の階層画像とそれより優先順位が低い階層画像とを合成した合成画像の例を示す図である。It is a figure which shows the example of the synthesized image which synthesize | combined the hierarchy image of FIG. 8, and the hierarchy image with a lower priority than it. 優先順位が低い階層画像の例を示す図である。It is a figure which shows the example of the hierarchy image with a low priority. 図10の階層画像とそれより優先順位が高い階層画像とを合成した合成画像の例を示す図である。It is a figure which shows the example of the synthesized image which synthesize | combined the hierarchical image of FIG. 10, and the hierarchical image with a higher priority than it. 複数の階層画像を合成した合成画像の例を示す図である。It is a figure which shows the example of the synthesized image which synthesize | combined the several hierarchy image. 画像合成処理を示すフローチャートである。It is a flowchart which shows an image composition process.

符号の説明Explanation of symbols

101 バス
102 パネル
103 表示装置
104 スイッチ
105 CPU
106 ROM
107 RAM
108 鍵盤
109 タッチセンサ
110 MIDIインターフェース
111 波形発生部
112 波形メモリ
113 DA変換器
114 サウンドシステム
115 通信インターフェース
101 Bus 102 Panel 103 Display Device 104 Switch 105 CPU
106 ROM
107 RAM
108 Keyboard 109 Touch Sensor 110 MIDI Interface 111 Waveform Generator 112 Waveform Memory 113 DA Converter 114 Sound System 115 Communication Interface

Claims (10)

優先順位を有する複数の階層画像を記憶するための階層画像記憶手段と、
前記複数の階層画像を合成した合成画像を記憶するための合成画像記憶手段と、
画素毎に前記合成画像に採用された前記階層画像の階層番号を記憶するための階層番号記憶手段と、
前記優先順位に応じて前記複数の階層画像を合成して前記合成画像記憶手段に記憶させると共に、画素毎に前記合成画像に採用された前記階層画像の階層番号を前記階層番号記憶手段に記憶させる画像合成手段と
を有する画像合成装置。
Hierarchical image storage means for storing a plurality of hierarchical images having priorities;
Combined image storage means for storing a combined image obtained by combining the plurality of hierarchical images;
Hierarchical number storage means for storing a hierarchical number of the hierarchical image adopted in the composite image for each pixel;
According to the priority order, the plurality of hierarchical images are combined and stored in the combined image storage unit, and the hierarchical number of the hierarchical image adopted for the combined image for each pixel is stored in the hierarchical number storage unit. An image composition device comprising image composition means.
さらに、前記一の階層画像を変更し、前記階層番号記憶手段の階層番号と前記変更した階層画像の階層番号とを画素毎に比較し、その比較結果に応じて、前記合成画像記憶手段の合成画像及び前記階層番号記憶手段の階層番号を画素毎に変更する画像変更手段を有する請求項1記載の画像合成装置。   Further, the one hierarchical image is changed, the hierarchical number of the hierarchical number storage means and the hierarchical number of the changed hierarchical image are compared for each pixel, and the composite image storage means is synthesized according to the comparison result. The image synthesizing apparatus according to claim 1, further comprising an image changing unit that changes an image and a hierarchy number of the hierarchy number storage unit for each pixel. 前記画像変更手段は、前記変更した階層画像の階層番号が前記階層番号記憶手段の階層番号より優先順位が高いときには前記合成画像記憶手段の合成画像及び前記階層番号記憶手段の階層番号を変更し、前記変更した階層画像の階層番号が前記階層番号記憶手段の階層番号より優先順位が低いときには前記合成画像記憶手段の合成画像及び前記階層番号記憶手段の階層番号を変更しない請求項2記載の画像合成装置。   The image changing means changes the composite image of the composite image storage means and the hierarchy number of the hierarchy number storage means when the hierarchical number of the changed hierarchical image has a higher priority than the hierarchy number of the hierarchy number storage means, 3. The image composition according to claim 2, wherein when the hierarchical number of the changed hierarchical image has a lower priority than the hierarchical number of the hierarchical number storage means, the composite image of the composite image storage means and the hierarchical number of the hierarchical number storage means are not changed. apparatus. 前記階層画像は画素単位で透過色を表現可能であり、
前記画像合成手段及び前記画像変更手段は、ある階層画像の画素が透過色であるときにはそれよりも優先順位が低い階層画像の画素を表示する請求項3記載の画像合成装置。
The hierarchical image can express a transparent color in pixel units,
4. The image synthesizing apparatus according to claim 3, wherein the image synthesizing unit and the image changing unit display a pixel of a hierarchical image having a lower priority when a pixel of a certain hierarchical image is a transparent color.
請求項4記載の画像合成装置と、
前記合成画像記憶手段の合成画像を表示するための表示装置と
を有する電子楽器。
An image composition device according to claim 4,
An electronic musical instrument comprising: a display device for displaying a composite image of the composite image storage means.
前記画像合成手段は、歌詞の階層画像とそれより優先順位が低い楽器の階層画像とを合成する請求項5記載の電子楽器。   6. The electronic musical instrument according to claim 5, wherein the image synthesizing unit synthesizes a hierarchical image of lyrics and a hierarchical image of musical instruments having a lower priority. 前記画像合成手段は、全体曲データの階層画像とそれより優先順位が高い編集曲データの階層画像とを合成する請求項5記載の電子楽器。   6. The electronic musical instrument according to claim 5, wherein the image synthesizing unit synthesizes a hierarchical image of the entire music data and a hierarchical image of the edited music data having a higher priority. 前記画像合成手段は、ミキサの階層画像とそれより優先順位が高い特定機能の無効を示す画像の階層画像とを合成する請求項5記載の電子楽器。   6. The electronic musical instrument according to claim 5, wherein the image synthesizing unit synthesizes the hierarchical image of the mixer and the hierarchical image of the image indicating the invalidity of the specific function having a higher priority. 優先順位を有する複数の階層画像を記憶するための階層画像記憶手段と、前記複数の階層画像を合成した合成画像を記憶するための合成画像記憶手段と、画素毎に前記合成画像に採用された前記階層画像の階層番号を記憶するための階層番号記憶手段とを有する画像合成装置の画像合成方法であって、
前記優先順位に応じて前記複数の階層画像を合成して前記合成画像記憶手段に記憶させると共に、画素毎に前記合成画像に採用された前記階層画像の階層番号を前記階層番号記憶手段に記憶させる画像合成ステップを有する画像合成方法。
Hierarchical image storage means for storing a plurality of hierarchical images having a priority order, a composite image storage means for storing a composite image obtained by combining the plurality of hierarchical images, and a pixel-by-pixel adopted in the composite image An image synthesizing method of an image synthesizing apparatus having a hierarchy number storage unit for storing a hierarchy number of the hierarchy image
According to the priority order, the plurality of hierarchical images are combined and stored in the combined image storage unit, and the hierarchical number of the hierarchical image adopted for the combined image for each pixel is stored in the hierarchical number storage unit. An image composition method having an image composition step.
請求項9記載の画像合成方法のステップをコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the steps of the image composition method according to claim 9.
JP2005224446A 2005-08-02 2005-08-02 Image composition device, method, program and electronic musical instrument Pending JP2007041225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005224446A JP2007041225A (en) 2005-08-02 2005-08-02 Image composition device, method, program and electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005224446A JP2007041225A (en) 2005-08-02 2005-08-02 Image composition device, method, program and electronic musical instrument

Publications (1)

Publication Number Publication Date
JP2007041225A true JP2007041225A (en) 2007-02-15

Family

ID=37799274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005224446A Pending JP2007041225A (en) 2005-08-02 2005-08-02 Image composition device, method, program and electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2007041225A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009232450A (en) * 2008-03-24 2009-10-08 Fujitsu Ltd Image processing method, image processing apparatus, and watermark detection system
JP2010220158A (en) * 2009-03-19 2010-09-30 Fuji Xerox Co Ltd Image processing apparatus and image processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009232450A (en) * 2008-03-24 2009-10-08 Fujitsu Ltd Image processing method, image processing apparatus, and watermark detection system
JP2010220158A (en) * 2009-03-19 2010-09-30 Fuji Xerox Co Ltd Image processing apparatus and image processing program
US8610947B2 (en) 2009-03-19 2013-12-17 Fuji Xerox Co., Ltd Image forming apparatus using logical arithmetic processing and image forming program using logical arithmetic processing

Similar Documents

Publication Publication Date Title
JP3516406B2 (en) Karaoke authoring device
EP2680254B1 (en) Sound synthesis method and sound synthesis apparatus
US5915972A (en) Display apparatus for karaoke
US20030117400A1 (en) Color display instrument and method for use thereof
JP2003509729A (en) Method and apparatus for playing musical instruments based on digital music files
CN111899706A (en) Audio production method, device, equipment and storage medium
EP2442299B1 (en) Information processing apparatus, information processing method, and program
JP2007041225A (en) Image composition device, method, program and electronic musical instrument
JP5375868B2 (en) Playback method switching device, playback method switching method, and program
JP2006227217A (en) Electronic music system and program
KR20130095389A (en) Real time music video system
JP2009265714A (en) Image display method, image display program, and musical piece reproduction device
JP2011053345A (en) Karaoke system including stereoscopic display function of lyric character
JP2962075B2 (en) Electronic musical instrument editing device
WO2024012257A1 (en) Audio processing method and apparatus, and electronic device
JP3395805B2 (en) Lyrics guide device for karaoke
JPH09319383A (en) Karaoke device
JP2007240776A (en) Musical performance data editing device and program
JP2005215709A (en) Musical sound generating device
Bodo et al. Web Sonification with synesthesia tools
CN116157859A (en) Audio processing method, device, terminal and storage medium
JP3453298B2 (en) Karaoke lyrics display system
JP3426379B2 (en) Electronic musical instrument
CN115700870A (en) Audio data processing method and device
JP2010186029A (en) Sound editing program, sound editing system, and sound editing method