JP2008234126A - Electronic musical device and program - Google Patents

Electronic musical device and program Download PDF

Info

Publication number
JP2008234126A
JP2008234126A JP2007070343A JP2007070343A JP2008234126A JP 2008234126 A JP2008234126 A JP 2008234126A JP 2007070343 A JP2007070343 A JP 2007070343A JP 2007070343 A JP2007070343 A JP 2007070343A JP 2008234126 A JP2008234126 A JP 2008234126A
Authority
JP
Japan
Prior art keywords
electronic music
resource
music device
borrowing
resources
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.)
Granted
Application number
JP2007070343A
Other languages
Japanese (ja)
Other versions
JP4924129B2 (en
Inventor
Atsushi Fukada
敦史 深田
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 JP2007070343A priority Critical patent/JP4924129B2/en
Publication of JP2008234126A publication Critical patent/JP2008234126A/en
Application granted granted Critical
Publication of JP4924129B2 publication Critical patent/JP4924129B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To effectively make the best use of a resource between connected electronic musical devices. <P>SOLUTION: The one-side electronic musical device refers to license information when requesting the resource required when executing a prescribed function, and transmits a borrowing request data of the requested resource, to the other-side electronic musical device, when the requested resource has no use right in the electronic musical device. The other-side electronic musical device refers to the license information in response to the received borrowing request data, and transmits a borrowing permission data for permitting the requested resource, to the one-side electronic musical device, when the requested resource has the use right in the electronic musical device. The electronic musical device receiving the borrowing permission data executes an operation concerned in the prescribed function, using the resource having the use right and the borrowing-permitted resource according to the license information. The resource is effectively utilized by borrowing tentatively the resource by this manner. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、所定の機能を実現する電子音楽装置及びプログラムに関する。特に、ライセンス情報に従って、所定の機能に関して使用許可するリソースに制限をかけることができる電子音楽装置及びプログラムに関する。   The present invention relates to an electronic music apparatus and program for realizing a predetermined function. In particular, the present invention relates to an electronic music apparatus and program capable of limiting resources permitted to be used for a predetermined function according to license information.

従来から、例えばシンセサイザー機能やシーケンサー機能などの所定の音楽機能を実現する電子音楽装置として、音楽アプリケーション装置や電子楽器などが知られている。音楽アプリケーション装置は、所定の音楽アプリケーションプログラム(ソフトウェア)をパーソナルコンピュータ(以下、単にパソコンと呼ぶ)上で動作することで、所定の電子楽器が有するのと同等の音楽機能を実現することができる。パソコン上で動作する音楽アプリケーションプログラムは、当該音楽アプリケーションプログラムが記録されている例えばコンパクトディスクなどの記憶媒体と、ハードウェアキー(例えば、USBドングルなど)とが一緒に同梱されてユーザに頒布されるようになっており、このハードウェアキーには当該音楽アプリケーションプログラムのライセンス情報(音楽アプリケーションプログラムを利用するユーザが使用許諾を得たユーザであることを証明する情報であり、また音楽アプリケーションプログラムで使用するリソースの使用権限を示す)が保持されている。ユーザは、こうしたライセンス情報を保持しているUSBドングルを、所定のインタフェース(例えば、USBインタフェース)を介してパソコンに接続することにより、USBドングルが接続された該パソコン上でのみ、前記記憶媒体に記憶されている音楽アプリケーションプログラムをインストールなどして動作させることができるようになっている。また、この際に、記憶されているライセンス情報の内容等に応じて、音楽アプリケーションプログラムの動作に伴って実現される機能において利用可能とする機能単位(例えば、音源機能における同時発音数や同時使用可能なエフェクト種類やエフェクト数など:この明細書ではこれらを総称してリソースと呼ぶ)を制限するようにしている。こうしたものの一例を示すと、例えば下記に示す特許文献1に記載の装置がある。
特開2004−212603号公報
Conventionally, a music application device, an electronic musical instrument, and the like are known as electronic music devices that realize predetermined music functions such as a synthesizer function and a sequencer function. The music application device can realize a music function equivalent to that of a predetermined electronic musical instrument by operating a predetermined music application program (software) on a personal computer (hereinafter simply referred to as a personal computer). A music application program that runs on a personal computer is distributed together with a storage medium on which the music application program is recorded, such as a compact disk, and a hardware key (for example, a USB dongle) together. The hardware key includes license information of the music application program (information for certifying that the user using the music application program is a licensed user, and the music application program Indicating the authority to use the resource to be used). A user connects a USB dongle holding such license information to a personal computer via a predetermined interface (for example, a USB interface), so that only the personal computer to which the USB dongle is connected is stored in the storage medium. The stored music application program can be installed and operated. At this time, according to the contents of the stored license information, etc., the function unit that can be used in the function realized by the operation of the music application program (for example, the number of simultaneous pronunciations and the simultaneous use in the sound source function) The possible effect types, the number of effects, etc .: in this specification, these are collectively referred to as resources). For example, there is an apparatus described in Patent Document 1 shown below.
JP 2004-212603 A

ところで、従来知られた装置でのライセンス情報によるリソースの制限は、個々の装置で実行する音楽アプリケーションプログラムに限っての制限であり、他の音楽アプリケーション装置が同じ音楽アプリケーションプログラムを実行する場合や、電子楽器が有する同等の機能に対してはなんらの影響も及ぼさない。そのため、リソースの範囲制限を解除する、あるいはリソースの制限範囲を狭めて利用可能なリソースの範囲を拡げるなどの場合には、ユーザは新たに異なる内容のライセンス情報を取得する必要があった。しかし、他の音楽アプリケーション装置や電子楽器で使用していないリソースの余りがあるにもかかわらず、そのリソースの余りを使用しないのは無駄であり、さらには一般的に有償で配布されるライセンス情報を新たに取得しなければならないのはユーザにとって面倒であるし、また負担がかかることにもなる。そこで、それぞれが同等の機能を有する電子音楽装置(具体的には、上記した音楽アプリケーション装置や電子楽器)が複数台組み合わされて利用されるような場合に、必要に応じて各機器間において使用許可されたリソースのうちの余り分(使用していない分)を互いに融通して使用することができる技術が望まれていたが、従来そうしたものは考えられていなかった。   By the way, the resource limitation by license information in a conventionally known device is a limitation only for a music application program executed by each device, and when other music application devices execute the same music application program, It has no effect on the equivalent functions of electronic musical instruments. Therefore, in order to cancel the resource range restriction or to expand the range of available resources by narrowing the resource restriction range, the user has to newly acquire license information with different contents. However, even though there is a surplus of resources that are not used by other music application devices or electronic musical instruments, it is wasteful not to use the surplus of resources, and license information that is generally distributed for a fee It is troublesome for the user to acquire a new value, and a burden is imposed on the user. Therefore, when multiple electronic music devices each having the same function (specifically, the above-described music application device and electronic musical instrument) are used in combination, they are used between devices as necessary. There has been a demand for a technique that can use a surplus of unused resources (a part that is not used) interchangeably, but such a technique has not been considered in the past.

本発明は上述の点に鑑みてなされたもので、それぞれの機器において所定のライセンス情報に従って使用が許可されているリソースのうち使用していない余り分のリソースを、接続されている電子音楽装置間で適宜に相互に融通することにより、既にライセンスされているリソースを有効的に活用することができるようにした、電子音楽装置、及びプログラムを提供することを目的とする。   The present invention has been made in view of the above points, and among the resources permitted to be used in accordance with predetermined license information in each device, the remaining unused resources are connected between connected electronic music devices. It is an object of the present invention to provide an electronic music apparatus and a program which can effectively utilize already licensed resources by appropriately accommodating each other.

本発明の請求項1に係る電子音楽装置は、他の電子音楽装置を接続するための接続手段と、所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を記憶する記憶手段と、前記所定の機能を当該電子音楽装置において実行する際に、必要なリソースを要求する要求手段と、前記記憶手段に記憶されたライセンス情報を参照し、前記要求されたリソースが当該電子音楽装置において使用権限を有していない場合、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用要求データを送信する手段と、前記借用要求データに応じて前記他の電子音楽装置から与えられる借用許可データを受信するための手段と、前記ライセンス情報に従って使用権限を有するリソース及び前記借用許可データに従って借用許可されたリソースを使用して、当該電子音楽装置において前記所定の機能に関わる動作を実行させる制御手段とを具える。   According to a first aspect of the present invention, there is provided an electronic music apparatus comprising: connection means for connecting another electronic music apparatus; and license information indicating a right to use the resource used for executing a predetermined function in the electronic music apparatus. Storage means for storing, request means for requesting necessary resources when executing the predetermined function in the electronic music apparatus, and referring to the license information stored in the storage means, the requested resource Means for transmitting the requested resource borrowing request data to another electronic music device connected to the connection means when the electronic music device does not have use authority, and the borrowing request data According to the license information and means for receiving the borrowing permission data given from the other electronic music device, Scan and using the borrowed granted resource in accordance with the borrowing authorization data comprises a control unit for executing the operation in the electronic musical apparatus related to the predetermined function.

本発明の請求項3に係る電子音楽装置は、他の電子音楽装置を接続するための接続手段と、所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を記憶する記憶手段と、前記接続手段に接続されている他の電子音楽装置から借用要求データを受信するための手段と、前記借用要求データに応じて前記ライセンス情報を参照し、前記接続手段に接続されている他の電子音楽装置から要求されたリソースが当該電子音楽装置において使用権限を有している場合は、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用を許可する借用許可データを送信する手段とを具える。   According to a third aspect of the present invention, there is provided an electronic music apparatus comprising: connection means for connecting another electronic music apparatus; and license information indicating a right to use the resource used to execute a predetermined function in the electronic music apparatus. Storage means for storing, means for receiving borrowing request data from another electronic music device connected to the connection means, and referring to the license information according to the borrowing request data, the connection means If the resource requested from the other connected electronic music device has the right to use the electronic music device, the requested request is sent to the other electronic music device connected to the connection means. Means for transmitting borrowing permission data for permitting the borrowing of resources.

本発明によると、一方の電子音楽装置では、所定の機能を当該電子音楽装置において実行する際に必要なリソースを要求した際に、記憶手段に記憶された所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を参照し、前記要求されたリソースが当該電子音楽装置において使用権限を有していない場合、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用要求データを送信する。前記電子音楽装置と接続手段により接続されている他方の電子音楽装置では、受信した借用要求データに応じて記憶手段に記憶されているライセンス情報を参照し、前記要求されたリソースが当該電子音楽装置において使用権限を有している場合は、前記接続手段に接続されている一方の電子音楽装置に対して当該要求されたリソースの借用を許可する借用許可データを送信する。このようにして、自機で記憶しているライセンス情報に応じて使用許可されるリソースだけでは、所定の機能を当該電子音楽装置において実行する際において必要とされるリソースの要求に応じることができない場合に、接続されている他の電子音楽装置から与えられる借用許可データを受信し、前記ライセンス情報に従って使用権限を有するリソース及び前記借用許可データに従って借用許可されたリソースを使用して、当該電子音楽装置において前記所定の機能に関わる動作を実行する。すなわち、他の電子音楽装置から足りない分のリソースを一時的に借用する。このようにすると、既にライセンスされているリソースをシステム全体で有効的に活用して使用することができ、ユーザはライセンス情報を新たに取得しなくても多くのリソースを必要に応じて使用できるようになる。   According to the present invention, when one electronic music apparatus requests a resource necessary for executing a predetermined function in the electronic music apparatus, it is used to execute the predetermined function stored in the storage means. Other electronic music devices connected to the connection means when referring to the license information indicating the use authority of the resource in the electronic music device and the requested resource does not have the use authority in the electronic music device To the requested resource borrowing request data. In the other electronic music apparatus connected to the electronic music apparatus by connection means, the license information stored in the storage means is referred to according to the received borrowing request data, and the requested resource is the electronic music apparatus. If the user has the right to use, borrowing permission data permitting the borrowing of the requested resource is transmitted to one of the electronic music apparatuses connected to the connecting means. In this way, a resource request that is required when a predetermined function is executed in the electronic music apparatus cannot be satisfied with only resources that are permitted to be used according to the license information stored in the device itself. In this case, the borrowing permission data given from another connected electronic music apparatus is received, and the electronic music is used using the resource having the right to use according to the license information and the resource permitted to be borrowed according to the borrowing permission data. An operation related to the predetermined function is executed in the apparatus. That is, resources that are insufficient from other electronic music devices are temporarily borrowed. In this way, resources that have already been licensed can be effectively used and used throughout the system, and the user can use as many resources as necessary without acquiring new license information. become.

本発明は、装置の発明として構成し実施することができるのみならず、方法の発明として構成し実施することができる。また、本発明は、コンピュータまたはDSP等のプロセッサのプログラムの形態で実施することができるし、そのようなプログラムを記憶した記憶媒体の形態で実施することもできる。   The present invention may be constructed and implemented not only as an apparatus invention but also as a method invention. Further, the present invention can be implemented in the form of a program of a processor such as a computer or a DSP, or can be implemented in the form of a storage medium storing such a program.

この発明によれば、相互に接続された電子音楽装置において、それぞれの機器が実現する機能に関するライセンス情報に従い使用許可されるリソースのうち、余分なリソースを必要に応じて相互に融通することから、ユーザは既にライセンスされているリソースをシステム全体で有効的に活用して使用することが簡単にできる、という効果が得られる。   According to the present invention, in the electronic music devices connected to each other, among the resources permitted to be used in accordance with the license information related to the functions realized by the respective devices, extra resources are interchanged as necessary. There is an effect that the user can easily utilize and use the already licensed resources effectively in the entire system.

以下、この発明の実施の形態を添付図面に従って詳細に説明する。   Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

まず、本発明に係る電子音楽装置のハード構成の一実施例について、図1を用いて説明する。図1は、この発明に係る電子音楽装置の全体構成の一実施例を示すハード構成ブロック図である。ここに示す電子音楽装置は、具体的には音楽アプリケーション装置や電子楽器であってよく、これら各装置は同じようなハード構成を用いるものとして説明することができることから、ここでは代表として音楽アプリケーション装置の図を1つだけ用いて説明する。   First, an embodiment of the hardware configuration of the electronic music apparatus according to the present invention will be described with reference to FIG. FIG. 1 is a hardware configuration block diagram showing an embodiment of the overall configuration of an electronic music apparatus according to the present invention. The electronic music device shown here may specifically be a music application device or an electronic musical instrument, and these devices can be described as using the same hardware configuration. This will be described using only one figure.

ここに示された電子音楽装置(音楽アプリケーション装置)のハードウェア構成例はパーソナルコンピュータを用いて構成されており、そこにおいてさまざまな音楽アプリケーションを実行するための処理は、コンピュータがそれぞれの音楽アプリケーションに対応する所定の制御プログラム(図示しないソフトウェアプログラム)を実行することにより実施される。勿論、これらの処理はコンピュータソフトウェアの形態に限らず、DSP(ディジタル・シグナル・プロセッサ)によって処理されるマイクロプログラムの形態でも実施可能であり、また、この種のプログラムの形態に限らず、ディスクリート回路又は集積回路若しくは大規模集積回路等を含んで構成された専用のハードウェア装置の形態で実施してもよい。なお、音楽アプリケーション装置は、例えばシーケンサー機能やシンセサイザー機能等を実現する音楽アプリケーションプログラムを動作させることで、後述するUSBコントローラ11に接続される電子楽器(例えばハードウェアシンセサイザー)が有するのと同等の機能を実現することができ、他の音楽アプリケーション装置や電子楽器などと組み合わせて利用することのできる装置であればよく、パーソナルコンピュータに限らず、ゲーム専用機、携帯電話やPDAなどの携帯端末、あるいはカラオケ装置、その他のマルチメディア機器等、任意の製品応用形態をとっているものであってよい。   The hardware configuration example of the electronic music apparatus (music application apparatus) shown here is configured by using a personal computer, and the computer executes various music applications in the music application. This is implemented by executing a corresponding predetermined control program (software program not shown). Of course, these processes are not limited to the form of computer software, but can be implemented in the form of a microprogram processed by a DSP (digital signal processor), and are not limited to the form of this type of program. Or you may implement in the form of the hardware device for exclusive use comprised including the integrated circuit or the large-scale integrated circuit. Note that the music application device has a function equivalent to that of an electronic musical instrument (for example, a hardware synthesizer) connected to the USB controller 11 described later by operating a music application program that realizes a sequencer function, a synthesizer function, or the like. As long as it is a device that can be used in combination with other music application devices, electronic musical instruments, etc., and is not limited to a personal computer, a game-only device, a mobile terminal such as a mobile phone or PDA, or Any product application form such as a karaoke apparatus or other multimedia equipment may be used.

図1に示す音楽アプリケーション装置(パソコン)は、マイクロプロセッサユニット(CPU)1、リードオンリメモリ(ROM)2、ランダムアクセスメモリ(RAM)3からなるマイクロコンピュータによって制御される。CPU1は、この音楽アプリケーション装置全体の動作を制御するものである。このCPU1に対して、データ及びアドレスバス1Dを介してROM2、RAM3、検出回路4、表示回路5、音源回路6、外部記憶装置8、MIDIインタフェース(I/F)9、通信インタフェース(I/F)10、USBコントローラ11がそれぞれ接続されている。更に、CPU1には、タイマ割込み処理(インタラプト処理)における割込み時間や各種時間を計時するタイマ1Aが接続されている。例えば、タイマ1Aはクロックパルスを発生し、発生したクロックパルスをCPU1に対して処理タイミング命令として与えたり、あるいはCPU1に対してインタラプト命令として与える。CPU1は、これらの命令に従って各種処理を実行する。   The music application apparatus (personal computer) shown in FIG. 1 is controlled by a microcomputer including a microprocessor unit (CPU) 1, a read only memory (ROM) 2, and a random access memory (RAM) 3. The CPU 1 controls the operation of the entire music application device. For this CPU 1, via a data and address bus 1D, ROM 2, RAM 3, detection circuit 4, display circuit 5, tone generator circuit 6, external storage device 8, MIDI interface (I / F) 9, communication interface (I / F) 10) The USB controller 11 is connected to each other. Further, the CPU 1 is connected to a timer 1A for measuring the interrupt time and various times in the timer interrupt process (interrupt process). For example, the timer 1A generates a clock pulse, and gives the generated clock pulse to the CPU 1 as a processing timing command or to the CPU 1 as an interrupt command. The CPU 1 executes various processes according to these instructions.

ROM2は、CPU1により実行される各種プログラムや各種データを格納するものである。RAM3は、CPU1が所定のプログラムを実行する際に発生する各種データを一時的に記憶するワーキングメモリとして、あるいは現在実行中のプログラムやそれに関連するデータを記憶するメモリ等として使用される。RAM3の所定のアドレス領域がそれぞれの機能に割り当てられ、レジスタやフラグ、テーブル、メモリなどとして利用される。操作子4Aは、例えば数値データ入力用のテンキーや文字データ入力用のキーボード、ディスプレイ5Aに表示される所定のポインティングデバイスを操作するためのマウス、あるいは特殊スイッチなどであり、操作子として利用できるものであればどのようなものでもよい。検出回路4は、操作子4Aの各操作子の操作状態を検出し、その操作状態に応じたスイッチ情報をバス1Dを介してCPU1に出力する。表示回路5は音楽アプリケーションプログラムの動作に応じた所定の画面(図示せず)等を、例えば液晶表示パネル(LCD)やCRT等から構成されるディスプレイ5Aに表示するのは勿論のこと、音楽アプリケーションプログラムに関する各種情報やCPU1の制御状態などを表示する。   The ROM 2 stores various programs executed by the CPU 1 and various data. The RAM 3 is used as a working memory that temporarily stores various data generated when the CPU 1 executes a predetermined program, or as a memory that stores a currently executed program and related data. A predetermined address area of the RAM 3 is assigned to each function and used as a register, flag, table, memory, or the like. The operation element 4A is, for example, a numeric keypad for inputting numeric data, a keyboard for inputting character data, a mouse for operating a predetermined pointing device displayed on the display 5A, or a special switch, and can be used as an operation element. Anything can be used. The detection circuit 4 detects the operation state of each operation element of the operation element 4A, and outputs switch information corresponding to the operation state to the CPU 1 via the bus 1D. The display circuit 5 displays a predetermined screen (not shown) according to the operation of the music application program on a display 5A composed of, for example, a liquid crystal display panel (LCD), a CRT, etc. Various information related to the program, the control state of the CPU 1, and the like are displayed.

音源回路6は複数のチャンネルで楽音信号(例えばオーディオデータ)の同時発生が可能であり、データ及びアドレスバス1Dを経由して与えられたMIDI規格の楽曲データ(例えば、ソフトウェアシーケンサーなどの音楽アプリケーションプログラムの動作に応じて、ユーザ入力に従って生成されたMIDIデータ)などの各種演奏情報を入力し、これらの演奏情報に基づいて楽音信号を発生する。音源回路6から発生された楽音信号は、図示しない効果回路などを介して効果付与されてアンプやスピーカなどを含むサウンドシステム7から発音される。この音源回路6とサウンドシステム7の構成には、従来のいかなる構成を用いてもよい。例えば、音源回路6はFM、PCM、物理モデル、フォルマント合成等の各種楽音合成方式のいずれを採用してもよく、CPU1によるソフトウェア処理で構成してもよいし、また専用のハードウェアで構成してもよい。   The tone generator circuit 6 can simultaneously generate musical tone signals (eg, audio data) on a plurality of channels, and music application program such as MIDI sequence data (eg, software sequencer) provided via the data and address bus 1D. In response to the operation, various performance information such as MIDI data generated in accordance with user input is input, and a musical sound signal is generated based on the performance information. The musical sound signal generated from the sound source circuit 6 is given an effect through an effect circuit (not shown) and is produced by a sound system 7 including an amplifier and a speaker. Any conventional configuration may be used for the sound source circuit 6 and the sound system 7. For example, the tone generator circuit 6 may employ any of various tone synthesis methods such as FM, PCM, physical model, formant synthesis, etc., and may be configured by software processing by the CPU 1 or by dedicated hardware. May be.

外部記憶装置8は、各種データやCPU1が実行する各種制御プログラム等を記憶する。例えば、音楽アプリケーション装置の場合には、音楽アプリケーションプログラムや、音楽アプリケーションプログラムの動作に伴って生成された楽曲データなどを記憶し、電子楽器の場合には波形データや個々の音楽アプリケーションプログラムのライセンス情報(音楽アプリケーションプログラムを利用するユーザが使用許諾を得たユーザであることを証明する情報であって、さらに使用を許可するリソースの種類や数等に応じて異なる内容が記述されたライセンス情報が用意されている)などを記憶する。また、この外部記憶装置8(例えばハードディスク)に制御プログラムを記憶させておいた場合には、それをRAM3に読み込むことにより、ROM2に制御プログラムを記憶している場合と同様の動作をCPU1にさせることができる。このようにすると、制御プログラムの追加やバージョンアップ等が容易に行える。なお、外部記憶装置7はハードディスク(HD)に限られず、フレキシブルディスク(FD)、コンパクトディスク(CD‐ROM・CD‐RAM)、光磁気ディスク(MO)あるいはDVD(Digital Versatile Disk)等の着脱自在な様々な形態の外部記憶媒体を利用する記憶装置であればどのようなものであってもよい。不揮発性の半導体メモリなどであってもよい。   The external storage device 8 stores various data, various control programs executed by the CPU 1, and the like. For example, in the case of a music application device, a music application program, music data generated along with the operation of the music application program, and the like are stored. In the case of an electronic musical instrument, waveform data and license information of each music application program are stored. (Information that proves that the user who uses the music application program is a licensed user, and license information that describes different contents depending on the type and number of resources that are permitted to use is prepared. Is stored). Further, when a control program is stored in the external storage device 8 (for example, a hard disk), the CPU 1 is caused to perform the same operation as when the control program is stored in the ROM 2 by reading it into the RAM 3. be able to. In this way, control programs can be easily added and upgraded. The external storage device 7 is not limited to a hard disk (HD), but is detachable such as a flexible disk (FD), compact disk (CD-ROM / CD-RAM), magneto-optical disk (MO), or DVD (Digital Versatile Disk). Any storage device using various types of external storage media may be used. It may be a non-volatile semiconductor memory.

MIDIインタフェース(I/F)9は、外部接続された他のMIDI機器9A等からMIDI形式のデータ(MIDIデータ)を当該音楽アプリケーション装置へ入力したり、あるいは当該音楽アプリケーション装置から音楽アプリケーションプログラムの動作に伴って生成されたMIDI形式のデータを、他のMIDI機器9A等へ出力するためのインタフェースである。このMIDIインタフェース(I/F)9に別体の音楽アプリケーション装置や電子楽器などの他の機器を接続すると、該接続された他の機器と当該音楽アプリケーション装置との間でMIDIデータを送受信することができるようになり、該送受信されるMIDIデータに従って互いの装置において楽音を発生させることなどができるようになる。なお、MIDIデータの入出力は後述するUSBコントローラ11を介して行うようにしてもよい。通信インタフェース(I/F)10は、例えばLANやインターネット、電話回線等の有線あるいは無線の通信ネットワークXに接続されており、該通信ネットワークXを介してサーバコンピュータ10Aと接続され、当該サーバコンピュータ10Aから制御プログラムあるいは各種データなどを音楽アプリケーション装置側に取り込むためのインタフェースである。すなわち、ROM2や外部記憶装置8(例えば、ハードディスク)等に制御プログラムや各種データが記憶されていない場合に、サーバコンピュータ10Aから制御プログラムや各種データをダウンロードするために用いられる。こうした通信インタフェース10は、有線あるいは無線のものいずれかでなく双方を具えていてよい。   The MIDI interface (I / F) 9 inputs MIDI format data (MIDI data) from another externally connected MIDI device 9A or the like to the music application device, or operates a music application program from the music application device. This is an interface for outputting the data in the MIDI format generated along with this to another MIDI device 9A or the like. When another device such as a separate music application device or electronic musical instrument is connected to the MIDI interface (I / F) 9, MIDI data is transmitted and received between the connected other device and the music application device. It becomes possible to generate a musical tone in each device according to the transmitted / received MIDI data. Note that MIDI data input / output may be performed via the USB controller 11 described later. The communication interface (I / F) 10 is connected to a wired or wireless communication network X such as a LAN, the Internet, or a telephone line, and is connected to the server computer 10A via the communication network X, and the server computer 10A. Is an interface for taking in a control program or various data from the music application device side. That is, when no control program or various data is stored in the ROM 2 or the external storage device 8 (for example, hard disk), it is used for downloading the control program and various data from the server computer 10A. Such a communication interface 10 may be both wired and wireless and may include both.

USB(Universal Serial Bus)コントローラ11は1乃至複数のUSB端子を含み、当該音楽アプリケーション装置と、前記USB端子と直接的に接続された他のUSB機器13(USBコントローラ11を具備した音楽アプリケーション装置や電子楽器あるいはUSBドングルなど)、あるいはUSBハブ(HUB)機器12を介して前記USB端子と間接的に接続された多数の他のUSB機器13との間で、各種情報を送受信する制御を行うUSBインタフェース制御機器である。USBハブ機器12は多数のUSB端子を具えており、該USB端子のうちの1つの端子に音楽アプリケーション装置を、該USB端子の残りの端子それぞれに他のUSB機器13を接続することによって、該接続された多数のUSB機器13(電子楽器など)と音楽アプリケーション装置との間における各種情報を送受信する際の通信経路を確保するためのものである。この実施例では前記USBコントローラ11などを介して音楽アプリケーション装置や電子楽器が相互に接続されることにより、同一の音楽アプリケーションプログラムのライセンス情報を記憶した音楽アプリケーション装置や電子楽器間において、ライセンス(使用許諾)されているリソースのうち使用していない余り分のリソースを、相互に貸し借りする(つまり融通する)ことができるようにしている(詳しくは後述する)。   The USB (Universal Serial Bus) controller 11 includes one or more USB terminals, and the music application apparatus and another USB device 13 (a music application apparatus including the USB controller 11 or the like directly connected to the USB terminal) USB that performs control to transmit and receive various types of information to and from a number of other USB devices 13 that are indirectly connected to the USB terminal via a USB hub (HUB) device 12. Interface control equipment. The USB hub device 12 includes a large number of USB terminals. By connecting the music application device to one of the USB terminals and the other USB device 13 to each of the remaining terminals of the USB terminal, This is to secure a communication path for transmitting and receiving various types of information between a large number of connected USB devices 13 (such as electronic musical instruments) and a music application device. In this embodiment, a music application device and an electronic musical instrument are connected to each other via the USB controller 11 or the like, so that a license (usage) is used between music application devices and electronic musical instruments that store license information of the same music application program. Among the resources that are permitted, the remaining unused resources can be lent and borrowed (ie, interchanged) with each other (details will be described later).

音楽アプリケーション装置とMIDIインタフェース9及び/又はUSBコントローラ11を介して接続される電子楽器は、音楽アプリケーションプログラムが実現する音楽機能と同等の音楽機能を少なくとも有する機器であって(つまり、電子楽器は音楽アプリケーションプログラムが実現する音楽機能に関連付けられていればよい)、自機が実現する音楽機能やそれ以外のほかの機器で実現される音楽機能に関するライセンス情報を外部記憶装置8などに記憶することができるようになっていればよい。こうした電子楽器は、図1に示した音楽アプリケーション装置と同様の構成要素の他に、図示しない設定操作子や、鍵盤型、弦楽器型、管楽器型、打楽器型、身体装着型等の演奏操作子などを具えた(若しくは、操作形態からなる)機器であればよい。設定操作子は、例えば伴奏のために利用する楽曲データ(音楽アプリケーション装置から送信されるもの、または電子楽器に予め記憶済みのもの)を選択する曲選択スイッチ、音高、音色、効果等を選択・設定・制御するための各種操作子などを含んでいてよい。演奏操作子は楽音の音高を選択するための複数の鍵を備えた例えば鍵盤等のようなものであり、各鍵に対応してキースイッチを有しており、この演奏操作子(鍵盤等)は楽音演奏のために使用できるのは勿論のこと、演奏したい曲を選択するための入力手段などとして使用することができるようになっていてもよい。   The electronic musical instrument connected to the music application device via the MIDI interface 9 and / or the USB controller 11 is a device having at least a music function equivalent to the music function realized by the music application program (that is, the electronic musical instrument is music). It may be associated with the music function realized by the application program), and the license information related to the music function realized by the own device and the music function realized by other devices may be stored in the external storage device 8 or the like. It only has to be able to do it. In addition to the same components as the music application apparatus shown in FIG. 1, these electronic musical instruments include setting operators not shown, performance operators such as keyboard type, stringed instrument type, wind instrument type, percussion instrument type, and body-mounted type. It may be a device provided with (or composed of an operation form). For example, the setting operator selects a song selection switch, pitch, tone, effect, etc. for selecting song data (transmitted from a music application device or stored in advance in an electronic musical instrument) to be used for accompaniment -Various operators for setting / control may be included. The performance operator is, for example, a keyboard provided with a plurality of keys for selecting the pitch of a musical tone, and has a key switch corresponding to each key. ) Can be used not only for musical performance, but also as input means for selecting a song to be played.

なお、上述した音楽アプリケーション装置(あるいは電子楽器)において、操作子4Aやディスプレイ5Aあるいは音源回路6などを1つの装置本体に内蔵したものに限らず、それぞれが別々に構成され、MIDIインタフェースや各種ネットワーク等の通信手段を用いて各装置を接続するように構成したものであってもよいことは言うまでもない。
なお、上述した音楽アプリケーション装置は音源回路6及びサウンドシステム7を具備したものを例に示したがこれに限らず、音源回路6及びサウンドシステム7を具備していなくてもよい。
Note that the above-described music application device (or electronic musical instrument) is not limited to one in which the operation element 4A, the display 5A, the sound source circuit 6 and the like are built in one device body, but each is configured separately, and has a MIDI interface and various networks. Needless to say, each of the devices may be connected using a communication means such as the above.
In addition, although the music application apparatus mentioned above showed as an example what provided the sound source circuit 6 and the sound system 7, it is not restricted to this, The sound source circuit 6 and the sound system 7 do not need to be provided.

本実施例に示す音楽アプリケーション装置は音楽アプリケーションプログラムを動作させる際に、音楽アプリケーション装置にUSB接続されているハードウェアキー(USBドングルなど)に記憶されている、当該音楽アプリケーションプログラムのライセンス情報に基づいて、音楽アプリケーションプログラムが実現する音楽機能において使用を許可するリソースの範囲を制限するようにしている。一方、電子楽器についても同様の音楽機能を動作させる場合に、電子楽器内に記憶済みのライセンス情報に基づいて、前記音楽機能において使用を許可するリソースの範囲を制限するようにしている。このときに、正式なライセンス(使用許諾)を得ていないユーザである場合には、音楽アプリケーション装置及び電子楽器の音楽機能を利用させない。また、正式なライセンス(使用許諾)を得ているユーザであっても、そのユーザが取得しているライセンス情報に応じて、使用が許可されているリソースの範囲についてのみ、各機器における音楽機能を利用させるようにしている。すなわち、使用が許可されるリソースの範囲はライセンス情報毎に応じて予め決められており、ユーザが取得したライセンス情報に対応して使用許可されるリソースの範囲内で、各機器毎に音楽機能を動作させることができるようにしている。このように、本実施例に示す音楽アプリケーション装置及び電子楽器からなるシステムは、音楽アプリケーション装置と該音楽アプリケーション装置にUSB接続されている1乃至複数の電子楽器それぞれのリソースを、共通の1乃至複数のライセンス情報に従って管理するライセンス管理機能を有する。   When the music application device shown in the present embodiment operates the music application program, it is based on the license information of the music application program stored in a hardware key (USB dongle or the like) connected to the music application device via USB. Thus, the range of resources permitted to be used in the music function realized by the music application program is limited. On the other hand, when the same music function is operated for the electronic musical instrument, the range of resources permitted to be used in the music function is limited based on the license information stored in the electronic musical instrument. At this time, if the user has not obtained an official license (license), the music application device and the music function of the electronic musical instrument are not used. Even if a user has an official license (license), the music function in each device can be used only for the range of resources permitted for use according to the license information that the user has acquired. I try to use it. That is, the range of resources that are permitted to be used is determined in advance for each license information, and the music function is provided for each device within the range of resources that are permitted to be used corresponding to the license information acquired by the user. It can be operated. As described above, the system including the music application device and the electronic musical instrument shown in the present embodiment uses one or more common resources for the music application device and one or more electronic musical instruments connected to the music application device via USB. License management function to manage according to the license information.

また、本実施例に示す音楽アプリケーション装置や電子楽器(電子音楽装置)が相互にUSB接続されるシステムは、それぞれの機器で使用許可されているリソースのうちの余り分を、接続されている他の機器からの要求に基づいて適宜に融通するリソース管理機能を有する。勿論、これらに限らず、音楽アプリケーション装置及び電子楽器のそれぞれが、例えばユーザ入力に応じて演奏情報(MIDIデータなど)を生成し(シーケンサー機能)、生成した演奏情報に従って電子的に楽音を発生する(シンセサイザー機能)などの他の機能を有していてよく、さらには接続された相手側の機器を制御できるようになっていてよいことは言うまでもない。こうした他の機能は公知のどのようなものであってもよいことから、ここでの説明を省略する。   Further, in the system in which the music application device and the electronic musical instrument (electronic music device) shown in this embodiment are connected to each other via USB, the remainder of the resources permitted to be used in each device is connected. It has a resource management function that can be flexibly accommodated based on requests from other devices. Of course, the present invention is not limited thereto, and each of the music application device and the electronic musical instrument generates performance information (MIDI data or the like) according to, for example, user input (sequencer function), and generates musical sounds electronically according to the generated performance information. It goes without saying that other functions such as (synthesizer function) may be provided, and the connected device on the other side may be controlled. Since these other functions may be any known ones, description thereof is omitted here.

次に、上記したライセンス管理機能及びリソース管理機能を実現する処理の概要について、図2を用いて説明する。図2は、ライセンス管理機能及びリソース管理機能を実現する処理の概要を説明するための制御ブロック図である。   Next, an outline of processing for realizing the above-described license management function and resource management function will be described with reference to FIG. FIG. 2 is a control block diagram for explaining an overview of processing for realizing the license management function and the resource management function.

音楽アプリケーション装置PCの音楽アプリケーション処理部MAは、例えばシンセサイザー機能やシーケンサー機能などを実現する音楽アプリケーションプログラムを、ユーザによるスイッチ操作などに応じて動作開始する。音楽アプリケーションプログラムのシーケンサー機能が動作開始されると、例えばユーザ入力に応じて所定の演奏情報(MIDIデータなど)を生成し、これを演奏進行順に順次に又は一括して出力する。MIDI/オーディオドライバ部ADは、音楽アプリケーション処理部MAから出力された演奏情報に従って楽音を発生するよう、USB接続された電子楽器DM1〜DM3を制御する。すなわち、USBインタフェースを介して当該音楽アプリケーション装置PCに接続された電子楽器1〜3(DM1〜DM3)に対し、前記音楽アプリケーション処理部MAから出力された演奏情報を送信することで、前記電子楽器DM1〜DM3に楽音を発生させるようにしている。電子楽器1〜3(DM1〜DM3)において全体を制御する制御部DCは、音楽アプリケーション装置PCからUSBインタフェースを介して送信されてきた演奏情報を楽音生成部Aに送り、楽音生成部Aは音楽アプリケーション装置PCから送られてきた演奏情報に基づき楽音を発生する。こうすることにより、音楽アプリケーション装置PCからUSB接続された電子楽器1〜3(DM1〜DM3)に対して随時にMIDIデータ等を出力して、各電子楽器1〜3(DM1〜DM3)毎に楽音を発生させるよう制御することができる。   The music application processing unit MA of the music application apparatus PC starts to operate a music application program that realizes, for example, a synthesizer function or a sequencer function in response to a switch operation by the user. When the sequencer function of the music application program is started, for example, predetermined performance information (MIDI data or the like) is generated in response to user input, and this is sequentially or collectively output in the order of performance. The MIDI / audio driver unit AD controls the USB-connected electronic musical instruments DM1 to DM3 so as to generate musical sounds according to the performance information output from the music application processing unit MA. That is, by transmitting performance information output from the music application processing unit MA to the electronic musical instruments 1 to 3 (DM1 to DM3) connected to the music application apparatus PC via the USB interface, the electronic musical instrument Musical sounds are generated in DM1 to DM3. In the electronic musical instruments 1 to 3 (DM1 to DM3), the control unit DC controls the performance information transmitted from the music application apparatus PC via the USB interface to the musical tone generation unit A, and the musical tone generation unit A performs music. A musical tone is generated based on performance information sent from the application apparatus PC. By doing so, MIDI data or the like is output from the music application device PC to the electronic musical instruments 1 to 3 (DM1 to DM3) connected via USB as needed, and the electronic musical instruments 1 to 3 (DM1 to DM3) are output for each electronic musical instrument 1 to 3 (DM1 to DM3). It can be controlled to generate musical sounds.

また、各電子楽器1〜3(DM1〜DM3)の楽音生成部Aは、当該電子楽器の演奏操作子などの操作状況に応じて所定の演奏情報(MIDIデータなど)を発生する演奏操作検出部Bから演奏情報を受信できるようになっており、演奏操作検出部Bにより演奏操作子の操作に応じて発生される演奏情報に従って楽音を発生する。さらに、奏操作検出部Bからから出力された演奏情報に従って楽音を発生するよう、USB接続された音楽アプリケーション装置PCを制御することができるようになっていてよい。その場合、音楽アプリケーション装置PCではUSBインタフェースを介して電子楽器1〜3(DM1〜DM3)から演奏情報を受信すると、該受信した演奏情報をMIDI/オーディオドライバ部ADに送り楽音を発生させたり、あるいは音楽アプリケーション処理部MAで動作中の音楽アプリケーションプログラムに従って該受信した演奏情報に基づく動作を行う(例えば、画面表示など)。このようにして、電子楽器1〜3(DM1〜DM3)からのMIDIデータ等の出力に応じて、対応する所定の動作を該音楽アプリケーション装置PC側で実行できるようにしてあってもよい。   Further, the musical tone generation unit A of each of the electronic musical instruments 1 to 3 (DM1 to DM3) performs a performance operation detection unit that generates predetermined performance information (such as MIDI data) in accordance with the operation status of the performance operator of the electronic musical instrument. The performance information can be received from B, and a musical sound is generated according to the performance information generated in response to the operation of the performance operator by the performance operation detector B. Further, the music application device PC connected via USB may be controlled so that a musical tone is generated according to the performance information output from the performance operation detection unit B. In that case, when the music application apparatus PC receives performance information from the electronic musical instruments 1 to 3 (DM1 to DM3) via the USB interface, the received performance information is sent to the MIDI / audio driver unit AD to generate musical sounds, Alternatively, an operation based on the received performance information is performed in accordance with the music application program being operated by the music application processing unit MA (for example, screen display). In this way, a corresponding predetermined operation may be executed on the music application apparatus PC side in accordance with the output of MIDI data or the like from the electronic musical instruments 1 to 3 (DM1 to DM3).

上記した音楽アプリケーション処理部MAによる音楽アプリケーションプログラムの動作開始の際に、音楽アプリケーション装置PCのライセンス管理ドライバ部LDは、動作開始しようとする音楽アプリケーションプログラムのライセンス情報に従って、使用許可されているリソースの種類や数などを取得する。このとき、ライセンス管理ドライバ部LDは、当該音楽アプリケーション装置PCにUSB接続されている1乃至複数のハードウェアキーK(USBドングル)に記憶済みのライセンス情報を参照して、使用許可されているリソースの種類や数などを取得する。ハードウェアキーKの全体を制御する制御部KCは、ライセンス管理ファンクション部KFにより取得された該当する音楽アプリケーションプログラムのライセンス情報に従うリソースの種類や数などを、音楽アプリケーション装置PCに送る。勿論、音楽アプリケーションプログラムを利用しようとするユーザ(つまり、音楽アプリケーション装置PCを利用しているユーザ)が本音楽アプリケーションプログラムに関してライセンス(使用許諾)を得ているユーザでない場合には、ハードウェアキーKに利用したい音楽アプリケーションプログラムのライセンス情報が記憶されておらず、使用許可するリソースの種類や数が音楽アプリケーション装置PCにまったく送られないことから、そうした場合にはライセンスを得ていないユーザであるとして、音楽アプリケーション装置PCは音楽アプリケーションプログラムを動作できないことは言うまでもない。   When the operation of the music application program by the music application processing unit MA described above is started, the license management driver unit LD of the music application apparatus PC determines the resources permitted to be used in accordance with the license information of the music application program to be started. Get the type and number. At this time, the license management driver unit LD refers to the license information stored in one or more hardware keys K (USB dongle) that are USB-connected to the music application device PC, and the resources that are permitted to use. Get the type and number. The control unit KC that controls the entire hardware key K sends to the music application apparatus PC the type and number of resources according to the license information of the corresponding music application program acquired by the license management function unit KF. Of course, if the user who intends to use the music application program (that is, the user who uses the music application apparatus PC) is not a user who has obtained a license (license) for the music application program, the hardware key K Since the license information of the music application program that the user wants to use is not stored and the type and number of resources permitted to be used are not sent to the music application device PC at all, it is assumed that the user is not licensed in such a case. Needless to say, the music application device PC cannot operate the music application program.

他方、音楽アプリケーションプログラムを利用しようとするユーザが本音楽アプリケーションプログラムに関してライセンス(使用許諾)を得ているユーザである場合、音楽アプリケーション処理部MAは、上記取得したリソースの種類や数の範囲内で音楽アプリケーションプログラムを動作させる。また、ライセンス管理ドライバ部LDは、音楽アプリケーションプログラムの動作中に、所定の機能を実行するために必要なリソースが要求され、該要求が音楽アプリケーション処理部MAからライセンス情報に従って使用許可されているリソースの種類や数以上のリソースを使用して動作させる要求であった場合に、当該音楽アプリケーション装置PCにUSB接続されている1乃至複数の電子楽器1〜3(DM1〜DM3)から、前記各装置で使用許可されているリソースのうちの余り分(使用していない分)のリソースを借りて、使用許可されているリソースと借りた分のリソースとをあわせて使用して音楽アプリケーションプログラムの機能に関わる動作を実行させる。そして、借りた分のリソースが必要なくなった場合には、借りた先の電子楽器1〜3(DM1〜DM3)に対して、借りた分のリソースを返す。   On the other hand, when the user who intends to use the music application program is a user who has a license (license for use) with respect to the music application program, the music application processing unit MA is within the range of the type and number of the acquired resources. Run the music application program. In addition, the license management driver unit LD is requested a resource necessary for executing a predetermined function during the operation of the music application program, and the request is permitted by the music application processing unit MA according to the license information. If the request is made to operate using more than one type or number of resources, each of the devices from one to a plurality of electronic musical instruments 1 to 3 (DM1 to DM3) connected via USB to the music application device PC Borrow resources from the resources that are allowed to be used in (and do not use them), and use the resources that are allowed to be used together with the borrowed resources for the function of the music application program. Perform the actions involved. When the borrowed resources are no longer necessary, the borrowed resources are returned to the borrowed electronic musical instruments 1 to 3 (DM1 to DM3).

電子楽器1〜3(DM1〜DM3)で該当する機能を動作する場合、ライセンス管理ファンアクション部LFは、各電子楽器に記憶済みのライセンス情報を参照して、使用許可されているリソースの種類や数などを取得し、これに基づき機能を動作させる。また、機能の動作中に使用許可されているリソースの種類や数のうち使用していない分があり、USB接続されている音楽アプリケーション装置PCからリソースを「借りる要求」(借用要求データ)を受信した場合には、音楽アプリケーション装置PCに対して前記使用していない分のリソースを貸す。このときに、自機のみだけでは要求された余り分のリソースを手当てできない場合には、さらに自機がホスト機器となり管理する他の電子楽器から足りない分のリソースを借りることによって、音楽アプリケーション装置PCに対して自機で手当てできた分のリソースと他の電子楽器から借りたリソースとをあわせて貸す(つまり、又貸しする)。このようにして、音楽アプリケーション装置PCにUSB接続されているハードウェアキーKや電子楽器DMに記憶済みのライセンス情報に基づいて、音楽アプリケーション装置PCで動作させる音楽アプリケーションプログラム及び電子楽器で実現する機能のリソースに関してのライセンス管理を行うとともに、USB接続されている各機器間において余り分のリソースを、リソースを必要としている他の機器に対して適宜に融通するようにしている。   When the corresponding functions are operated in the electronic musical instruments 1 to 3 (DM1 to DM3), the license management fan action unit LF refers to the license information stored in each electronic musical instrument, Get the number etc. and operate the function based on this. In addition, there is a portion that is not used among the types and number of resources that are permitted to be used during operation of the function, and a “borrowing request” (borrowing request data) is received from the music application device PC connected via USB. In such a case, the unused resources are lent to the music application apparatus PC. In this case, if the requested resource cannot be allocated by itself only, the music application device can be further borrowed from the other electronic musical instruments that are managed as the host device. Lending (that is, lending) the resources that can be dealt with by the own device to the PC together with the resources borrowed from other electronic musical instruments. In this way, the music application program to be operated by the music application apparatus PC and the function realized by the electronic musical instrument based on the license information stored in the hardware key K or the electronic musical instrument DM connected to the music application apparatus PC by USB. In addition, the license management is performed on the other resources, and the surplus resources between the devices connected via USB are appropriately accommodated to other devices that require the resources.

なお、図示の例では、音楽アプリケーション装置が具備するUSBコントローラ11は所謂USBホストコントローラ(ドライバ部HD)と呼ばれる機器であり、従って音楽アプリケーション装置はUSBホスト機器となる。一方、電子楽器及びハードウェアキーが具備するUSBコントローラ11は所謂USBターゲットコントローラ(ドライバ部TD,KD)と呼ばれる機器であり、従って電子楽器及びハードウェアキーはUSBターゲット機器となる。なお、電子楽器はUSBターゲットコントローラ(ドライバ部TD)とUSBホストコントローラ(ドライバ部HD)の両方を具えていてもよく、そうした場合の電子楽器はUSBターゲット機器にもなるしUSBホスト機器にもなる。この場合、リソースの又貸しができる機器となる。例えば、図示した例では電子楽器1(DM1)がUSBターゲット機器にもなりUSBホスト機器ともなるので、電子楽器1(DM1)は電子楽器3(DM3)から借りたリソースを音楽アプリケーション装置PCに対して又貸しすることができる。   In the illustrated example, the USB controller 11 included in the music application device is a so-called USB host controller (driver unit HD), and thus the music application device is a USB host device. On the other hand, the USB controller 11 included in the electronic musical instrument and the hardware key is a so-called USB target controller (driver unit TD, KD), and thus the electronic musical instrument and the hardware key are the USB target device. The electronic musical instrument may include both a USB target controller (driver unit TD) and a USB host controller (driver unit HD). In such a case, the electronic musical instrument can be a USB target device or a USB host device. . In this case, the device can lend the resource again. For example, in the illustrated example, the electronic musical instrument 1 (DM1) becomes both a USB target device and a USB host device. You can lend it again.

次に、上記したリソース管理機能を実現する具体的な処理について説明する。図3は、リソース管理機能を実現する「メイン処理」の一実施例を示すフローチャートである。ここに示す「メイン処理」は、互いにUSB接続された音楽アプリケーション装置と電子楽器のそれぞれで動作される処理である。   Next, specific processing for realizing the resource management function described above will be described. FIG. 3 is a flowchart showing an embodiment of “main processing” for realizing the resource management function. The “main process” shown here is a process operated by each of the music application apparatus and the electronic musical instrument that are connected to each other via USB.

ステップS1は、ライセンス情報に基づき、自機(本処理を実行している音楽アプリケーション装置又は電子楽器)の所定の機能に関し、使用許可されているリソース数を取得して保存する。すなわち、音楽アプリケーション装置の場合には自機にUSB接続されているハードウェアキー内に記憶されているライセンス情報、電子楽器の場合には自機内に記憶されているライセンス情報に基づいて、自機の機能に関しライセンスされているリソースの数を取得する。ステップS2は、自機からUSB接続されている他の機器(音楽アプリケーション装置や電子楽器)に対して融通している「貸しているリソース数」をクリアする。   Step S1 acquires and stores the number of resources permitted to be used for a predetermined function of the own device (music application device or electronic musical instrument executing this processing) based on the license information. That is, based on the license information stored in the hardware key USB-connected to the own device in the case of a music application device, or based on the license information stored in the own device in the case of an electronic musical instrument. Get the number of resources licensed for a feature. The step S2 clears the “number of resources lent” that is compatible with other devices (music application device and electronic musical instrument) connected by USB from the own device.

ステップS3は、「ノートオンしている数」をクリアする。ステップS4は、楽音を発音するために使用するリソース(楽音発音機能を実行する際に必要なリソース)を要求する、ノートオン操作がされたか否か(又はノートオンイベントデータを受信したか否か)を判定する。ノートオン操作がされた(又はノートオンイベントデータを受信した)と判定した場合には(ステップS4のyes)、ノートオン処理を実行する(ステップS5)。詳しくは後述するが、ノートオン処理では、自機で使用許可されているリソース数だけではリソースが不足して前記ノートオン操作に新たにリソースを割り当てることができずに対応できない場合に、不足するリソースの分を他の機器から借りて、ノートオン操作に基づく楽音を発生するなどの処理を行う(図4参照)。ステップS6は、ノートオフ操作がされたか否か(又はノートオフイベントデータを受信したか否か)を判定する。ノートオフ操作がされた(又はノートオフイベントデータを受信した)と判定した場合には(ステップS6のyes)、ノートオフ処理を実行する。詳しくは後述するが、ノートオフ処理では、ノートオン操作に基づき発生された楽音を消音するなどの処理を行うとともに、前記ノートオン操作時に他の機器から借りているリソース数がある場合に、ノートオフ操作に基づき必要がなくなったリソースを返す処理を行う(図5参照)。   In step S3, “note-on number” is cleared. Step S4 is a request for a resource used to generate a musical sound (a resource necessary for executing the musical sound generating function), whether or not a note-on operation has been performed (or whether or not note-on event data has been received). ). If it is determined that a note-on operation has been performed (or note-on event data has been received) (step S4: yes), note-on processing is executed (step S5). As will be described in detail later, note-on processing is insufficient when only the number of resources permitted to be used by the own device is insufficient, and resources cannot be allocated to the note-on operation and cannot be handled. Borrow resources from other devices and perform processing such as generating musical sounds based on note-on operations (see FIG. 4). In step S6, it is determined whether or not a note-off operation has been performed (or whether or not note-off event data has been received). If it is determined that a note-off operation has been performed (or note-off event data has been received) (yes in step S6), note-off processing is executed. As will be described in detail later, note-off processing performs processing such as muting the musical sound generated based on the note-on operation, and when there is a number of resources borrowed from other devices during the note-on operation. A process of returning resources that are no longer necessary based on the off operation is performed (see FIG. 5).

ステップS8は、自機にUSB接続されている他の機器から「借りる要求」(借用要求データ)を受信したか否かを判定する。この「借りる要求」(借用要求データ)は、他の機器でノートオン操作時にリソースが不足した場合に、他の機器から発せられる(後述の図4参照)。「借りる要求」を受信したと判定した場合には(ステップS8のyes)、貸す処理を実行する(ステップS9)。詳しくは後述するが、貸す処理では、「借りる要求」を発した他の機器に対して、自機で使用許可されているリソースのうちで割り当てられることなく余っているリソースを貸す処理を行う(図6参照)。ステップS10は、自機にUSB接続されている他の機器から使用権限を返す旨の「返す通知」を受信したか否かを判定する。「返す通知」を受信したと判定した場合には(ステップS10のyes)、返される処理を実行する(ステップS10a)。詳しくは後述するが、返される処理では、他の機器からの「借りる要求」に基づき自機から他の機器に対して貸しておいたリソースのうち、必要のなくなったリソースが適宜に他の機器から戻される処理を行う(図7参照)。当該処理の終了後、上記ステップS4の処理に戻って、ステップS4〜ステップS10aの処理を繰り返し実行する。   In step S8, it is determined whether or not a “borrowing request” (borrowing request data) has been received from another device connected to the own device via USB. This “borrowing request” (borrowing request data) is issued from another device when other devices run out of resources during the note-on operation (see FIG. 4 described later). If it is determined that the “borrow request” has been received (step S8: yes), the lending process is executed (step S9). As will be described in detail later, in the lending process, a process of lending surplus resources that are not allocated among the resources that are permitted to be used by the own machine is performed with respect to another device that has issued the “borrowing request” ( (See FIG. 6). In step S10, it is determined whether or not a “return notification” indicating that the use authority is returned is received from another device USB-connected to the own device. If it is determined that the “return notification” has been received (step S10: yes), the process to be returned is executed (step S10a). Although details will be described later, in the returned processing, among the resources lent to the other device from the own device based on the “borrowing request” from the other device, the resource that is no longer needed is appropriately changed to the other device. (See FIG. 7). After the process is completed, the process returns to step S4, and the processes in steps S4 to S10a are repeatedly executed.

図4は、上記「メイン処理」において実行される「ノートオン処理」(図3のステップS5参照)の一実施例を示すフローチャートである。ステップS11は、自機におけるリソースの不足分を算出する。ここでは、以下に示す数1に従ってリソース不足分を算出する。
(数1)
リソース不足分=自機に対して「使用許可されているリソース数」−他の機器に対して「貸しているリソース数」−既に「ノートオンしている数(自機に割り当て済みのリソース数)」−「新たにノートオン操作された数(割り当てるべきリソース数)」
FIG. 4 is a flowchart showing an example of the “note-on process” (see step S5 in FIG. 3) executed in the “main process”. In step S11, a shortage of resources in the own device is calculated. Here, the resource shortage is calculated according to the following equation (1).
(Equation 1)
Insufficient resources = "Number of resources allowed for own device"-"Number of resources lent" to other devices-"Number of notes already on (number of resources allocated to own device) ) "-" Number of new note-on operations (number of resources to be allocated) "

ステップS12は、上記算出したリソース不足分があるか否かを判定する。リソース不足分がない(算出したリソース不足分が「0」以上である)場合、つまり自機に使用許可されたリソース分だけで新たになされたノートオン操作にリソースを割り当てることができる場合には(ステップS12のno)、ノートオン操作に基づく楽音を発生するなどのノートオン処理を実行する(ステップS20)。一方、リソース不足分がある(算出したリソース不足分が「0」未満である)場合、つまり自機に使用許可されたリソース分だけでは新たになされたノートオン操作にリソースを割り当てできない場合には(ステップS12のyes)、不足した分のリソースを借りる先の機器として、自機に対して上流の機器、下流の機器1、下流の機器2、・・・の順に機器を1つ特定する(ステップS13)。ここで、自機に対して上流の機器、下流の機器のいずれにあたるかはUSB接続の形態に基づき決められる。例えば、図2に示すUSB接続の形態である場合に、音楽アプリケーション装置PCに対しては、上流の機器はなく、下流の機器が電子楽器1(DM1)と電子楽器2(DM2)になる。電子楽器DM1に対しては、上流の機器が音楽アプリケーション装置PCになり、下流の機器が電子楽器3(DM3)になる。こうしたUSB接続時における自機に対する上流の機器(ホスト機器:1台のみ)、下流の機器(ターゲット機器:1乃至複数台あり)は、各々が有するUSBコントローラの種類と各機器間のUSB接続形態によって決まるものであり、これは公知であることから、ここでは詳しい説明を省略する。   In step S12, it is determined whether or not the calculated resource shortage exists. When there is no resource shortage (the calculated resource shortage is “0” or more), that is, when a resource can be allocated to a newly performed note-on operation only for the resource permitted to be used by the own device (No in step S12), note-on processing such as generating a tone based on the note-on operation is executed (step S20). On the other hand, when there is a shortage of resources (the calculated shortage of resources is less than “0”), that is, when resources cannot be allocated to the newly performed note-on operation only with the resources permitted for use by the own device. (Yes in step S12), one device is identified in the order of the upstream device, the downstream device 1, the downstream device 2,... Step S13). Here, whether the device corresponds to the upstream device or the downstream device is determined based on the form of USB connection. For example, in the case of the USB connection shown in FIG. 2, there is no upstream device for the music application apparatus PC, and the downstream devices are the electronic musical instrument 1 (DM1) and the electronic musical instrument 2 (DM2). For the electronic musical instrument DM1, the upstream device is the music application device PC, and the downstream device is the electronic musical instrument 3 (DM3). In such USB connection, the upstream device (host device: only one) and the downstream device (target device: one to a plurality of devices) are connected to each type of USB controller and the USB connection form between the devices. Since this is known, it will not be described in detail here.

ステップS14は、上記特定したリソースを借りる機器に対して、リソース不足分を要求する(「借りる要求」を送信する)。ステップS15は、上記特定したリソースを借りる機器から前記要求に対応する返答(借用許可データ)を受信すると、借り先(リソースを借りる機器に固有のIDなど)と借りたリソース数とを記憶する。この際に、すでに同じ機器からリソースを借りている場合には、既に借りていたリソース数と新たに借りたリソース数を加算して、借りたリソース数を更新する。ステップS16は、リソースの不足分が確保されたか否かを判定する。リソースの不足分が確保されたと判定した場合には(ステップS16のyes)、ステップS20の処理へ飛ぶ。リソースの不足分が確保されていないと判定した場合には(ステップS16のno)、自機にUSB接続されている他の機器すべて(ただし、上流又は下流の機器と認識できる範囲にある機器)に対して、リソース不足分を問い合わせたか否かを判定する(ステップS17)。全ての機器に問い合わせていないと判定した場合には(ステップS17のno)、上記ステップS13の処理に戻って、上記ステップS13〜ステップS17の処理を繰り返し実行する。すなわち、より多くの機器からリソースを融通してもらう。全ての機器に問い合わせたと判定した場合には(ステップS17のyes)、他の機器からリソースを借りることができずに新たなノートオン操作に対してリソースを割り当てることができないことから、トランケート処理をして前記ノートオン操作に基づくノートオン処理を行う(ステップS18)。あるいは、前記ノートオン操作に基づいてはノートオン処理を行わない(つまりノートオン操作を無視する)ようにしてもよい。ステップS19は、「ノートオンしている数」を更新する。   In step S14, a resource shortage is requested to the device that borrows the specified resource ("borrowing request" is transmitted). In step S15, when a response (borrowing permission data) corresponding to the request is received from the device that borrows the specified resource, the borrower (ID unique to the device that borrows the resource) and the number of borrowed resources are stored. At this time, if resources have already been borrowed from the same device, the number of resources already borrowed and the number of newly borrowed resources are added to update the number of borrowed resources. A step S16 decides whether or not a shortage of resources has been secured. If it is determined that a shortage of resources has been secured (yes in step S16), the process jumps to step S20. If it is determined that a shortage of resources has not been secured (no in step S16), all other devices connected to the own device via USB (however, devices in a range that can be recognized as upstream or downstream devices) In step S17, it is determined whether the resource shortage has been inquired. If it is determined that all devices have not been inquired (no in step S17), the process returns to step S13, and the processes in steps S13 to S17 are repeatedly executed. In other words, resources are accommodated from more devices. If it is determined that all devices have been inquired (step S17: yes), resources cannot be borrowed from other devices and resources cannot be allocated for new note-on operations. Then, note-on processing based on the note-on operation is performed (step S18). Alternatively, note-on processing may not be performed based on the note-on operation (that is, note-on operation is ignored). A step S19 updates the “number of notes on”.

図5は、上記「メイン処理」において実行される「ノートオフ処理」(図3のステップS7参照)の一実施例を示すフローチャートである。ステップS21は、ノートオフ操作に基づき発音中の楽音を消音するなどのノートオフ処理を実行する。ステップS22は、他の機器からリソースを借りているか否かを判定する。他の機器からリソースを借りていないと判定した場合には(ステップS22のno)、ステップS27の処理へジャンプする。一方、他の機器からリソースを借りていると判定した場合には(ステップS22のyes)、不足分のリソースを借りた先の機器として、自機に対して上流の機器、下流の機器1、下流の機器2、…の順に機器を1つ特定する(ステップS23)。前記特定した機器が記憶済みの借り先の機器(図4のステップS15参照)である場合には、記憶されている借り先に対応する借りた数のうち、ノートオフ操作に伴って割り当てられなくなった分のリソースを前記特定した機器に返す「返す通知」を返送する(ステップS24)。   FIG. 5 is a flowchart showing an example of the “note-off process” (see step S7 in FIG. 3) executed in the “main process”. A step S21 executes note-off processing such as muting a musical tone being generated based on a note-off operation. In step S22, it is determined whether resources are borrowed from other devices. If it is determined that the resource is not borrowed from another device (no in step S22), the process jumps to step S27. On the other hand, if it is determined that the resource is borrowed from another device (Yes in step S22), the upstream device, the downstream device 1, One device is identified in the order of downstream devices 2,... (Step S23). If the specified device is a stored borrowed device (see step S15 in FIG. 4), out of the number of borrowed corresponding to the stored borrowed device, it cannot be assigned with a note-off operation. A “return notification” for returning the resources to the specified device is returned (step S24).

ステップS25は、ノートオフ操作に伴って割り当てられなくなった分のリソースをすべて、借り先の機器に返したか否かを判定する。ノートオフ操作に伴って割り当てられなくなった分のリソースをすべて、借り先の機器に返したと判定した場合には(ステップS25のyes)、ステップS27の処理へ飛ぶ。ノートオフ操作に伴って割り当てられなくなった分のリソースをすべて、借り先の機器に返していないと判定した場合には(ステップS25のno)、自機にUSB接続されている他の機器すべて(ただし、上流又は下流の機器と認識できる範囲にある機器)に対して、上記処理を行ったか否かを判定する(ステップS26)。自機にUSB接続されている他の機器すべてに対して上記処理を行っていないと判定した場合には(ステップS26のno)、ステップS23の処理に戻り上記ステップS23〜ステップS26までの処理を繰り返す。自機にUSB接続されている他の機器すべてに対して上記処理を行ったと判定した場合には(ステップS26のyes)、ステップS27の処理へいく。ステップS27は、「ノートオンしている数」を更新する。   In step S25, it is determined whether all the resources that are no longer allocated due to the note-off operation have been returned to the borrowed device. When it is determined that all the resources that are no longer allocated due to the note-off operation have been returned to the borrowed device (yes in step S25), the process jumps to step S27. If it is determined that all the resources that are no longer allocated due to the note-off operation have not been returned to the borrowed device (no in step S25), all other devices connected to the own device via USB ( However, it is determined whether or not the above processing has been performed for a device in a range that can be recognized as an upstream or downstream device (step S26). If it is determined that the above process has not been performed for all other devices connected to the own device via USB (No in step S26), the process returns to step S23 and the processes from step S23 to step S26 are performed. repeat. If it is determined that the above processing has been performed on all other devices connected to the own device via USB (yes in step S26), the processing proceeds to step S27. A step S27 updates the “number of notes on”.

図6は、上記「メイン処理」において実行される「貸す処理」(図3のステップS9参照)の一実施例を示すフローチャートである。ステップS31は、自機におけるリソースの余り分を算出する。ここでは、以下に示す数2に従ってリソースの余り分を算出する。
(数2)
リソースの余り分=自機に対して「使用許可されているリソース数」−他の機器に対して「貸しているリソース数」−既に「ノートオンしている数(自機に割り当て済みのリソース数)」
FIG. 6 is a flowchart showing an example of the “lending process” (see step S9 in FIG. 3) executed in the “main process”. In step S31, the remainder of the resource in the own device is calculated. Here, the remainder of the resource is calculated according to Equation 2 shown below.
(Equation 2)
Remaining resource = "Number of resources permitted to use" for own device-"Number of resources lent" to other devices-"Number of notes already on (resources assigned to own device) number)"

ステップS32は、「借りる要求」に基づくリソースの要求数と上記算出したリソースの余り分とを比較し、他の機器からの「借りる要求」(借用要求データ)に従う要求数以上にリソースの余り分があるか否かを判定する。要求数以上にリソースの余り分があると判定した場合には(ステップS32のyes)、ステップS38の処理へジャンプする。一方、要求数以上にリソースの余り分がないと判定した場合には(ステップS32のno)、さらに別の機器からリソースを借りてこれを又貸しするために、不足分のリソース(ここでは、要求数からリソースの余り分を減算したもの)を借りる先の機器として、自機に対して上流の機器、下流の機器1、下流の機器2、…の順に機器を1つ特定する(ステップS33)。ステップS34は、前記特定したさらに別の機器に対して不足分(要求数から余分を減算したもの)を要求する(「借りる要求」を送信する)。ステップS35は、上記特定したリソースを借りる機器から前記要求に対応する返答(借用許可データ)を受信すると、借り先(リソースを借りる機器に固有のIDなど)と借りたリソース数とを記憶する。この際に、すでに同じ機器からリソースを借りている場合には、既に借りていたリソース数と新たに借りたリソース数を加算して、借りたリソース数を更新する。   In step S32, the number of resource requests based on the “borrowing request” is compared with the calculated resource surplus, and the resource surplus exceeds the number of requests according to the “borrowing request” (borrowing request data) from another device. It is determined whether or not there is. If it is determined that there are more resources than the number of requests (yes in step S32), the process jumps to step S38. On the other hand, if it is determined that there is no more resource than the number of requests (no in step S32), in order to borrow a resource from another device and lend it again, a shortage of resources (here, request One device is identified in the order of the upstream device, the downstream device 1, the downstream device 2,... With respect to the own device as a borrowing device (subtracting the remainder of the resource from the number) (step S33). . In step S34, a request for a shortage (subtracting the excess from the number of requests) is sent to the identified additional device (a "borrowing request" is transmitted). In step S35, when a response (borrowing permission data) corresponding to the request is received from the device that borrows the specified resource, the borrower (ID unique to the device that borrows the resource) and the number of borrowed resources are stored. At this time, if resources have already been borrowed from the same device, the number of resources already borrowed and the number of newly borrowed resources are added to update the number of borrowed resources.

ステップS36は、リソースの不足分が確保されたか否かを判定する。リソースの不足分が確保されたと判定した場合には(ステップS36のyes)、ステップS38の処理へ飛ぶ。リソースの不足分が確保されていないと判定した場合には(ステップS36のno)、自機にUSB接続されている他の機器すべて(ただし、上流又は下流の機器と認識できる範囲にある機器)に対して、リソース不足分を問い合わせたか否かを判定する(ステップS37)。全ての機器に問い合わせていないと判定した場合には(ステップS37のno)、上記ステップS33の処理に戻って、上記ステップS33〜ステップS37の処理を繰り返し実行する。全ての機器に問い合わせたと判定した場合には(ステップS37のyes)、ステップS38の処理を行う。ステップS38は、確保できたリソース分だけ要求元の機器に貸す(借用許可データを返信する)。ステップS39は、「貸しているリソース数」を更新する。このようにして、自機が要求元の機器からリソースを借すよう要求されたにもかかわらず、自機のリソースの余り分だけではその要求数を満たすことができない場合には、さらに別の機器に対して「借りる要求」を行って、別の機器から借りてきたリソースを要求元の機器に対して又貸しすることで、要求元の機器からの「借りる要求」に応じるようにしている。   A step S36 decides whether or not a shortage of resources has been secured. If it is determined that a shortage of resources has been secured (yes in step S36), the process jumps to step S38. If it is determined that a shortage of resources has not been secured (no in step S36), all other devices connected to the own device via USB (however, devices in a range that can be recognized as upstream or downstream devices) In step S37, it is determined whether a resource shortage has been inquired. If it is determined that all devices have not been inquired (no in step S37), the process returns to step S33, and the processes in steps S33 to S37 are repeatedly executed. If it is determined that all devices have been inquired (yes in step S37), the process in step S38 is performed. In step S38, only the resources that can be secured are lent to the requesting device (borrowing permission data is returned). In step S39, “the number of resources lent” is updated. In this way, when the own device is requested to borrow resources from the requesting device, the remaining number of resources cannot satisfy the requested number. A “borrowing request” is made to the device, and a resource borrowed from another device is also lent to the requesting device so as to respond to the “borrowing request” from the requesting device.

図7は、上記「メイン処理」において実行される「返される処理」(図3のステップS11参照)の一実施例を示すフローチャートである。ステップS41は、他の機器にリソースの借りがあるか否かを判定する。他の機器にリソースの借りがないと判定した場合には(ステップS41のno)、ステップS46の処理へジャンプする。一方、他の機器にリソースの借りがあると判定した場合には(ステップS41のyes)、自機に対して上流の機器、下流の機器1、下流の機器2、…の順に機器を1つ特定する(ステップS42)。前記特定した機器が記憶済みの借り先(図4のステップS15参照)の機器である場合には、記憶済みの借り先に対応する借りた数を、前記借り先の機器に返送する(ステップS43)。   FIG. 7 is a flowchart showing an example of the “returned process” (see step S11 in FIG. 3) executed in the “main process”. In step S41, it is determined whether there is a resource borrowed by another device. If it is determined that the resource is not borrowed by another device (no in step S41), the process jumps to the process in step S46. On the other hand, if it is determined that other devices have borrowed resources (yes in step S41), one device is arranged in the order of upstream device, downstream device 1, downstream device 2,. Specify (step S42). If the identified device is a device of a borrowed destination that has been stored (see step S15 in FIG. 4), the number of borrowings corresponding to the stored borrower is returned to the borrowed device (step S43). ).

ステップS44は、前記借り先の機器から借りていたリソースのうち、ノートオフ操作に伴って割り当てられなくなった分のリソースをすべて、前記借り先の機器に返したか否かを判定する。ノートオフ操作に伴って割り当てられなくなった分のリソースをすべて、借り先の機器に返したと判定した場合には(ステップS44のyes)、ステップS46の処理へ飛ぶ。ノートオフ操作に伴って割り当てられなくなった分のリソースをすべて、借り先の機器に返していないと判定した場合には(ステップS44のno)、自機にUSB接続されている他の機器すべて(ただし、上流又は下流の機器と認識できる範囲にある機器)に対して、上記処理を行ったか否かを判定する(ステップS45)。自機にUSB接続されている他の機器すべてに対して上記処理を行っていないと判定した場合には(ステップS45のno)、ステップS42の処理に戻り上記ステップS42〜ステップS45までの処理を繰り返す。自機にUSB接続されている他の機器すべてに対して上記処理を行ったと判定した場合には(ステップS45のyes)、ステップS46の処理へいく。ステップS46は、他の機器に対して「貸している数」を更新する。このようにして、自機が別の機器からリソースを借りて要求元の機器に対してリソースを又貸ししている場合には、リソースを貸している機器からリソースを返されると、自機が貸しているリソースよりも他の機器から借りている分のリソース(又貸ししているリソース)を返すことを優先する。   In step S44, it is determined whether or not all of the resources borrowed from the borrowed device are returned to the borrowed device for the amount that cannot be allocated due to the note-off operation. If it is determined that all the resources that are no longer allocated due to the note-off operation have been returned to the borrowed device (yes in step S44), the process jumps to step S46. If it is determined that all the resources that are no longer allocated due to the note-off operation have not been returned to the borrowed device (no in step S44), all other devices connected via USB to the own device ( However, it is determined whether or not the above processing has been performed for a device in a range that can be recognized as an upstream or downstream device (step S45). If it is determined that the above process has not been performed for all other devices connected to the own device via USB (No in step S45), the process returns to step S42 and the processes from step S42 to step S45 are performed. repeat. If it is determined that the above processing has been performed on all other devices connected to the own device via USB (step S45: yes), the processing proceeds to step S46. A step S46 updates “the number lent” to other devices. In this way, when the own device borrows resources from another device and lends resources to the requesting device, if the device returns the resources from the lending device, the own device lends. Priority is given to returning resources borrowed from other devices (or resources that are lent) over resources that are borrowed.

以上のように、音楽アプリケーション装置及び該音楽アプリケーション装置にUSB接続された電子楽器のライセンス管理を、個々の機器が記憶するライセンス情報に従って行うだけでなく、各機器において前記ライセンス情報に従って使用許可されているリソースのうち自機で使用していない分を他の機器へ貸したり、また自機において使用許可されているリソースだけでは足らない分を他の機器から借りたりすることが適宜にできるようにしたことにより、それぞれが同等の機能を有する音楽アプリケーション装置と電子楽器とを組み合わして利用するような場合に、ユーザはライセンス情報を新たに取得しなくても、必要に応じて接続されている各機器(電子音楽装置)間で適宜にリソースを相互に融通されることから、既にライセンスされているリソースをシステム全体で有効的に活用して使用することができるようになる。   As described above, license management of the music application device and the electronic musical instrument connected to the music application device via USB is performed not only according to the license information stored in each device, but also permitted to be used in each device according to the license information. It is now possible to lend the resources that are not used by the own device to other devices, and borrow from the other devices the resources that are not allowed to be used by the own device. As a result, when a music application device having an equivalent function and an electronic musical instrument are used in combination, the user is connected as necessary without acquiring new license information. Since each device (electronic music device) can exchange resources with each other as appropriate, it is already licensed. Is composed has resources to be able to use to utilize effectively the entire system.

なお、上記したリソースの貸し借りは、実際には相互にUSB接続された電子音楽装置間における当該リソースの使用権限(借用許可データ)の送受信によって行われる。
なお、ライセンス情報に従って音楽アプリケーション装置及び/又は電子楽器において機能制限する機能単位(リソース)の種類としては、例えば音源機能における同時に発音することができる同時発音数やそれぞれ別々の楽器音を割り当てて複数の楽器音を鳴らす際のパートの数などがある。他の例としては、例えば音源、ミキサーなどのオーディオ信号処理機能における生成する楽音のクオリティに関わる、サンプリング周波数(例えば96khzなど)の選択肢の数や1サンプルデータのワード長(例えば32ビットデータなど)などがある。音源やミキサーなどにおいて複数のエフェクトを組み合わせる場合の、使用可能なエフェクトの種類や同時使用可能なエフェクト数などがある。使用できるMIDIのコントロールチェンジデータの数、種類などがある。読み込み可能なファイルフォーマットの種類(例えばMP3形式やWAV形式など)がある。波形編集機能におけるエディットの種類(例えばカット&ペーストやタイムストレッチなど)がある。内部ミキサーの規模(例えば入力チャンネル数、出力チャンネル数、AUXなどのバスの数など)がある。USBやLANなどのインタフェースを装着したときの、オーディオデータ/MIDIデータの入力ポート数や出力ポート数などがある。勿論、上記した例に限らない。
The resource lending / borrowing described above is actually performed by transmitting / receiving the authority to use the resource (borrowing permission data) between electronic music devices connected to each other via USB.
Note that the types of functional units (resources) whose functions are restricted in the music application device and / or electronic musical instrument according to the license information are, for example, the number of simultaneous pronunciations that can be produced simultaneously in the sound source function, or a plurality of different musical instrument sounds assigned to each. The number of parts used when playing the instrument sound. Other examples include the number of sampling frequency (for example, 96 kHz) options and the word length of one sample data (for example, 32-bit data) related to the quality of the musical sound to be generated in an audio signal processing function such as a sound source or a mixer. and so on. There are types of effects that can be used and the number of effects that can be used simultaneously when combining multiple effects in a sound source or a mixer. There are the number and type of MIDI control change data that can be used. There are types of file formats that can be read (for example, MP3 format and WAV format). There are edit types (for example, cut and paste, time stretch, etc.) in the waveform editing function. There is a scale of the internal mixer (for example, the number of input channels, the number of output channels, the number of buses such as AUX). There are the number of audio data / MIDI data input ports and output ports when an interface such as USB or LAN is attached. Of course, the present invention is not limited to the above example.

なお、相互にUSB接続された電子音楽装置間においてリソースの貸し借りを行う機能は、上記したようなノートオン・ノートオフ操作に基づく楽音発生機能に限らず、音楽に関する機能であればどのような機能であってもよい(例えば、楽譜表示機能など)。ただし、ライセンス情報によるリソース管理ができる機能であることは言うまでもない。また、上記したようなリアルタイムの貸し借りではなく、ノンリアルタイムの貸し借りであってもよい。例えば、上記の例において、ユーザが電子楽器1の所定の機能を利用する前に、操作子や表示器等を利用して予め利用するリソース数の上限を明示的に入力し、その数のリソースを電子楽器1自身のもつライセンスや、接続されている他の機器から借りたライセンスによって確保したのち、そのライセンスを記録保持し、そのリソース数の範囲内で所定の機能を実現するようにしてもよい。そして、確保したリソースの開放も、同様にユーザが明示的に行うようにしてもよい。   Note that the function of lending and borrowing resources between electronic music devices connected to each other via USB is not limited to the musical sound generation function based on the above-described note-on / note-off operation, and any function can be used as long as it relates to music. (For example, a score display function). However, it goes without saying that this is a function that allows resource management based on license information. Further, not real-time lending and borrowing as described above, but non-real-time lending and borrowing may be used. For example, in the above example, before the user uses a predetermined function of the electronic musical instrument 1, the upper limit of the number of resources to be used in advance is explicitly input using an operator, a display, or the like, and the number of resources Is secured by a license owned by the electronic musical instrument 1 itself or a license borrowed from another connected device, and the license is recorded and held so that a predetermined function is realized within the range of the number of resources. Good. Then, the secured resource may be released explicitly by the user as well.

この発明に係る電子音楽装置の全体構成の一実施例を示すハード構成ブロック図である。1 is a block diagram of a hardware configuration showing an embodiment of an overall configuration of an electronic music apparatus according to the present invention. ライセンス管理機能及びリソース管理機能を実現する処理の概要を説明するための制御ブロック図である。It is a control block diagram for demonstrating the outline | summary of the process which implement | achieves a license management function and a resource management function. リソース管理機能を実現する「メイン処理」の一実施例を示すフローチャートである。It is a flowchart which shows one Example of the "main process" which implement | achieves a resource management function. 「ノートオン処理」の一実施例を示すフローチャートである。It is a flowchart which shows one Example of "note-on process." 「ノートオフ処理」の一実施例を示すフローチャートである。It is a flowchart which shows one Example of "note-off process." 「貸す処理」の一実施例を示すフローチャートである。It is a flowchart which shows one Example of the "lending process." 「返される処理」の一実施例を示すフローチャートである。It is a flowchart which shows one Example of the "returned process."

符号の説明Explanation of symbols

1…CPU、2…ROM、3…RAM、4…検出回路、4A…操作子、5…表示回路、5A…ディスプレイ、6…音源回路、7…サウンドシステム、8…外部記憶装置、9…MIDIインタフェース、9A…MIDI機器、10…通信インタフェース、10A…サーバコンピュータ、11…USBコントローラ、12…USBハブ機器、13…USB機器、1D…通信バス、X…通信ネットワーク、PC…音楽アプリケーション装置(パソコン)、DM…電子楽器、K…ハードウェアキー、MA…音楽アプリケーション処理部、LD…ライセンス管理ドライバ部、AD…MIDI/オーディオドライバ部、HD…USBホストコントローラドライバ部、LF…ライセンス管理ファンクション部、A…楽音生成部、B…演奏操作検出部、TD(KD)…USBターゲットコントローラドライバ部、DC(KC)…制御部、KF…ライセンス管理ファンクション部 1 ... CPU, 2 ... ROM, 3 ... RAM, 4 ... detection circuit, 4A ... operator, 5 ... display circuit, 5A ... display, 6 ... sound source circuit, 7 ... sound system, 8 ... external storage device, 9 ... MIDI Interface, 9A ... MIDI device, 10 ... Communication interface, 10A ... Server computer, 11 ... USB controller, 12 ... USB hub device, 13 ... USB device, 1D ... Communication bus, X ... Communication network, PC ... Music application device (PC) ) DM ... electronic musical instrument K ... hardware key MA ... music application processing unit LD ... license management driver unit AD ... MIDI / audio driver unit HD ... USB host controller driver unit LF ... license management function unit A ... musical sound generation unit, B ... performance operation detection unit, TD ( D) ... USB target controller driver part, DC (KC) ... control unit, KF ... license management function unit

Claims (6)

他の電子音楽装置を接続するための接続手段と、
所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を記憶する記憶手段と、
前記所定の機能を当該電子音楽装置において実行する際に、必要なリソースを要求する要求手段と、
前記記憶手段に記憶されたライセンス情報を参照し、前記要求されたリソースが当該電子音楽装置において使用権限を有していない場合、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用要求データを送信する手段と、
前記借用要求データに応じて前記他の電子音楽装置から与えられる借用許可データを受信するための手段と、
前記ライセンス情報に従って使用権限を有するリソース及び前記借用許可データに従って借用許可されたリソースを使用して、当該電子音楽装置において前記所定の機能に関わる動作を実行させる制御手段と
を具える電子音楽装置。
A connection means for connecting another electronic music device;
Storage means for storing license information indicating a right to use a resource used to execute a predetermined function in the electronic music device;
Request means for requesting necessary resources when executing the predetermined function in the electronic music device;
When the license information stored in the storage means is referred to and the requested resource does not have use authority in the electronic music device, the electronic music device connected to the connection means Means for sending borrowing request data for the requested resource;
Means for receiving borrowing permission data given from the other electronic music device in response to the borrowing request data;
An electronic music apparatus comprising: control means for executing an operation related to the predetermined function in the electronic music apparatus using a resource having use authority according to the license information and a resource permitted to be borrowed according to the borrowing permission data.
前記借用要求データを送信する手段は、前記要求されたリソースが当該電子音楽装置において使用権限を有している場合であっても、該要求されたリソースを当該電子音楽装置において別の機能のために既に使用中である場合は、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用要求データを送信することを特徴とする請求項2に記載の電子音楽装置。   The means for transmitting the borrowing request data is used for another function of the requested resource in the electronic music device even when the requested resource has a use authority in the electronic music device. 3. The electronic music according to claim 2, wherein if it is already in use, the borrowing request data of the requested resource is transmitted to another electronic music device connected to the connection means. apparatus. 他の電子音楽装置を接続するための接続手段と、
所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を記憶する記憶手段と、
前記接続手段に接続されている他の電子音楽装置から借用要求データを受信するための手段と、
前記借用要求データに応じて前記ライセンス情報を参照し、前記接続手段に接続されている他の電子音楽装置から要求されたリソースが当該電子音楽装置において使用権限を有している場合は、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用を許可する借用許可データを送信する手段と
を具える電子音楽装置。
A connection means for connecting another electronic music device;
Storage means for storing license information indicating a right to use a resource used to execute a predetermined function in the electronic music device;
Means for receiving borrowing request data from another electronic music device connected to the connection means;
Refer to the license information according to the borrowing request data, and if the resource requested from another electronic music device connected to the connection means has the use authority in the electronic music device, the connection An electronic music device comprising: means for transmitting borrowing permission data for permitting borrowing of the requested resource to another electronic music device connected to the means.
前記借用要求データに応じて、前記接続手段に接続されているさらに別の電子音楽装置に対して前記要求されたリソースの借用要求データを送信する手段と、前記借用要求データに応じて前記別の電子音楽装置から与えられる借用許可データを受信するための手段とをさらに具えてなり、
前記借用許可データを送信する手段は、前記要求されたリソースが当該電子音楽装置において使用権限を有している場合であっても、該要求されたリソースを当該電子音楽装置において別の機能のために既に使用中である場合は、前記受信した別の電子音楽装置から与えられる借用許可データを、前記借用要求データを発した他の電子音楽装置に対して送信することを特徴とする請求項3に記載の電子音楽装置。
Means for transmitting borrowing request data of the requested resource to another electronic music device connected to the connection means in accordance with the borrowing request data; and And further comprising means for receiving borrowing permission data given from the electronic music device,
The means for transmitting the borrowing permission data is used for another function of the requested resource in the electronic music device even when the requested resource has a use authority in the electronic music device. The borrowing permission data given from the received another electronic music device is transmitted to the other electronic music device that has issued the borrowing request data. The electronic music device according to 1.
コンピュータに、
他の電子音楽装置を所定の接続手段に接続する手順と、
所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を所定の記憶手段に記憶する手順と、
前記所定の機能を当該電子音楽装置において実行する際に、必要なリソースを要求する手順と、
前記記憶手段に記憶されたライセンス情報を参照し、前記要求されたリソースが当該電子音楽装置において使用権限を有していない場合、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用要求データを送信する手順と、
前記借用要求データに応じて前記他の電子音楽装置から与えられる借用許可データを受信する手順と、
前記ライセンス情報に従って使用権限を有するリソース及び前記借用許可データに従って借用許可されたリソースを使用して、当該電子音楽装置において前記所定の機能に関わる動作を実行させる手順と
を実行させるためのプログラム。
On the computer,
A procedure for connecting another electronic music apparatus to a predetermined connection means;
A procedure for storing, in a predetermined storage means, license information indicating a right to use a resource used to execute a predetermined function in the electronic music device;
A procedure for requesting necessary resources when the predetermined function is executed in the electronic music device;
When the license information stored in the storage means is referred to and the requested resource does not have use authority in the electronic music device, the electronic music device connected to the connection means A procedure for sending borrowing request data for the requested resource;
A procedure for receiving borrowing permission data given from the other electronic music device in response to the borrowing request data;
A program for executing a procedure for executing an operation related to the predetermined function in the electronic music device using a resource having use authority according to the license information and a resource permitted to be borrowed according to the borrowing permission data.
コンピュータに、
他の電子音楽装置を所定の接続手段に接続する手順と、
所定の機能を実行するために使用するリソースの当該電子音楽装置における使用権限を示すライセンス情報を所定の記憶手段に記憶する手順と、
前記接続手段に接続されている他の電子音楽装置から借用要求データを受信する手順と、
前記借用要求データに応じて前記ライセンス情報を参照し、前記接続手段に接続されている他の電子音楽装置から要求されたリソースが当該電子音楽装置において使用権限を有している場合は、前記接続手段に接続されている他の電子音楽装置に対して当該要求されたリソースの借用を許可する借用許可データを送信する手順と
を実行させるためのプログラム。
On the computer,
A procedure for connecting another electronic music apparatus to a predetermined connection means;
A procedure for storing, in a predetermined storage means, license information indicating a right to use a resource used to execute a predetermined function in the electronic music device;
A procedure for receiving borrowing request data from another electronic music device connected to the connection means;
Refer to the license information according to the borrowing request data, and if the resource requested from another electronic music device connected to the connection means has the use authority in the electronic music device, the connection A program for executing a procedure for transmitting borrowing permission data for permitting borrowing of the requested resource to another electronic music apparatus connected to the means.
JP2007070343A 2007-03-19 2007-03-19 Electronic music apparatus and program Expired - Fee Related JP4924129B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007070343A JP4924129B2 (en) 2007-03-19 2007-03-19 Electronic music apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007070343A JP4924129B2 (en) 2007-03-19 2007-03-19 Electronic music apparatus and program

Publications (2)

Publication Number Publication Date
JP2008234126A true JP2008234126A (en) 2008-10-02
JP4924129B2 JP4924129B2 (en) 2012-04-25

Family

ID=39906847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007070343A Expired - Fee Related JP4924129B2 (en) 2007-03-19 2007-03-19 Electronic music apparatus and program

Country Status (1)

Country Link
JP (1) JP4924129B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2306359A3 (en) * 2009-10-01 2011-11-02 Yamaha Corporation Program licence management technique in an audio signal processing

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7342904B2 (en) 2021-03-18 2023-09-12 Jfeスチール株式会社 Hanging equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127279A (en) * 2004-10-29 2006-05-18 Hitachi Ltd Controller and resource control method
US7188251B1 (en) * 2000-05-09 2007-03-06 Sun Microsystems, Inc. System and method for secure message-based leasing of resources in a distributed computing environment
JP2007325235A (en) * 2006-06-05 2007-12-13 Ricoh Co Ltd Electronic apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7188251B1 (en) * 2000-05-09 2007-03-06 Sun Microsystems, Inc. System and method for secure message-based leasing of resources in a distributed computing environment
JP2006127279A (en) * 2004-10-29 2006-05-18 Hitachi Ltd Controller and resource control method
JP2007325235A (en) * 2006-06-05 2007-12-13 Ricoh Co Ltd Electronic apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2306359A3 (en) * 2009-10-01 2011-11-02 Yamaha Corporation Program licence management technique in an audio signal processing
US8448253B2 (en) 2009-10-01 2013-05-21 Yamaha Corporation Program licence management technique in an audio signal processing system

Also Published As

Publication number Publication date
JP4924129B2 (en) 2012-04-25

Similar Documents

Publication Publication Date Title
EP1221688B1 (en) Music data distribution system and method
JP5040736B2 (en) Content utilization apparatus and program
JP2002372970A (en) Electronic music device and server device capable of transferring performance setting information, performance setting information transfer method and program
JP2005010461A (en) Arpeggio pattern setting apparatus and program
JP3235409B2 (en) Music system, sound source and tone synthesis method
US6784355B2 (en) Electronic musical apparatus customizing method
JP2001331175A (en) Device and method for generating submelody and storage medium
JP4613804B2 (en) CONTENT DISTRIBUTION SYSTEM, CONTENT REPRODUCTION DEVICE, CONTENT PROVIDING SERVER, AND PROGRAM USED FOR THEM
JP2003058150A (en) Electronic musical device and program
JP4924129B2 (en) Electronic music apparatus and program
JP2000066675A (en) Automatic music performing device and recording medium therefor
US7504573B2 (en) Musical tone signal generating apparatus for generating musical tone signals
JP2008233334A (en) Music application device, electronic musical instrument and program
JP5168962B2 (en) Music application device, electronic musical instrument, and program
EP4120239A1 (en) Information processing device and information processing method
JP3770153B2 (en) Communication setting device and communication setting program
JP2005215671A (en) Technique for supplying unique id to electronic musical apparatus
JP3536709B2 (en) Additional sound generator
JP5293085B2 (en) Tone setting device and method
JP2004212603A (en) Music application device, electronic musical instrument and program
JP4000842B2 (en) Lyric support device and lyrics support program used therefor
JP4211266B2 (en) Communication setting device and communication setting program
JP3719219B2 (en) Electronic musical sound generating apparatus and method
JP2005274597A (en) Electronic music apparatus and program
JP5560584B2 (en) Electronic percussion instrument

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120110

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120123

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

Free format text: PAYMENT UNTIL: 20150217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees