Musical instrument, method of controlling musical instrument, and program recording medium
AssigneeCasio Computer Co., Ltd.
InventorsYuji TABATA, Ryutaro HAYASHI
Life of this patent
Estimating the term…
Abstract
A CPU (31) of a musical instrument (1) calculates distances between central positions of a plurality of virtual pads (81) and a position of a marker unit (15), by making adjustment such that a distance is shorter as a size associated with the virtual pad (81) is larger. The CPU 31 identifies a virtual pad (81) corresponding to the shortest distance among the distances calculated, as a virtual pad (81) for outputting sound. The CPU (31) identifies a tone corresponding to the virtual pad (81) for outputting sound by referring to set layout information.
Claims15
A musical instrument, comprising:
- a musical performance member that is operated by a performer;
- an operation detection unit that detects a predetermined operation performed by the musical performance member;
- an image capturing unit that captures an image including the musical performance member;
- a position detection unit that detects a position of the musical performance member on a plane of the image captured;
- a storage unit that stores layout information including a representing position and a size of a virtual musical instrument, for each of a plurality of virtual musical instruments provided on the plane of the image captured;
- a distance calculation unit that calculates distances between a position detected by the position detection unit and respective representing positions of the virtual musical instruments, based on corresponding sizes of the virtual musical instruments, when the operation detection unit detects the predetermined operation;
- a musical instrument identification unit that identifies a virtual musical instrument corresponding to the shortest distance among the distances calculated by the distance calculation unit;
- and
- a sound generation instruction unit that instructs generation of musical sound corresponding to the virtual musical instrument identified by the musical instrument identification unit.
A non-transitory computer-readable recording medium having stored thereon a program for controlling a control unit of a musical instrument that includes:
- a musical performance member that is operated by a performer and for which a predetermined operation thereof is detected;
- an image capturing unit that captures an image including the musical performance member, and detects a position of the musical performance member on a plane of the image captured;
- and a storage unit that includes layout information including a representing position and a size of a virtual musical instrument, for each of a plurality of virtual musical instruments provided on the plane of the image captured, and wherein the program controls the control unit to execute functions of:
- a distance calculating step of calculating distances between respective representing positions of the plurality of virtual musical instruments and a position of the musical performance member detected, based on a corresponding size of each of the virtual musical instruments, when a predetermined operation performed by the musical performance member is detected;
- a musical instrument identifying step of identifying a virtual musical instrument corresponding to the shortest distance among distances calculated in the distance calculating step;
- and
- a sound generation instructing step of instructing generation of musical sound corresponding to the virtual musical instrument identified.
A method of controlling a musical instrument that includes:
- a musical performance member that is operated by a performer and for which a predetermined operation thereof is detected;
- an image capturing unit that captures an image including the musical performance member, and detects a position of the musical performance member on a plane of the image captured;
- and a storage unit that includes layout information including a representing position and a size of a virtual musical instrument, for each of a plurality of virtual musical instruments provided on the plane of the image captured, the method comprising:
- a distance calculating step of calculating distances between respective representing positions of the plurality of virtual musical instruments and a position of the musical performance member detected, based on a corresponding size of each of the virtual musical instruments, when a predetermined operation performed by the musical performance member is detected;
- a musical instrument identifying step of identifying a virtual musical instrument corresponding to the shortest distance among the distances calculated in the distance calculating step;
- and
- a sound generation instructing step of instructing generation of musical sound corresponding to the virtual musical instrument identified.
Dependencies are inferred from the claim text.