Musical toy using mobile terminal device

A mobile terminal device is used to detect and play musical notes from a moving score through image processing, enabling a musical performance toy that simulates a conventional automatic performance piano.

JP7568892B2Active Publication Date: 2024-10-17太田 享寿
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020210850
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-19
Publication Date
2024-10-17
Estimated Expiration
2040-12-19

AI Technical Summary

Technical Problem

There are no known applications or musical performance toys that simulate conventional automatic performance pianos using mobile terminal devices to detect notes from a dedicated musical score and produce corresponding sounds.

Method used

An image input and processing system is used to continuously capture and process still images from a moving musical score, detecting notes through image processing to produce corresponding sounds using a mobile terminal device.

Benefits of technology

Enables the creation of a musical performance toy that simulates a conventional automatic performance piano by detecting notes from a musical score and producing corresponding sounds using a mobile terminal device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568892000002
    Figure 0007568892000002
  • Figure 0007568892000003
    Figure 0007568892000003
  • Figure 0007568892000004
    Figure 0007568892000004
Patent Text Reader

Abstract

To provide a music performance toy that detects, with an electronic device such as a portable terminal device, notes from a moving image obtained by photographing a musical score such as a roll sheet on which the notes are recorded, and conducts musical performance based on the detected notes.SOLUTION: The music performance toy includes: image input means for consecutively cutting out still images from digital moving image data generated by photographing or recording movement of a musical score such as a roll sheet on which notes and the like are recorded, or otherwise generated, and using the still images as input; and image processing means for detecting the recorded notes from the input still images by image processing, and conducts musical performance based on the detected notes.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a musical performance toy that uses a mobile terminal device such as a smartphone. [Background technology]

[0002] For example, as shown in Patent Document 1, there has been known an automatic piano in which small holes corresponding to musical notes are punched into a roll of paper to create sheet music for the device, and the sheet music is wound up by a motor or the like while the air passing through the small holes strikes the keys, thereby playing the music automatically.

[0003] These devices were invented in the 19th century, and currently, there is known a technology for electronically simulating the musical scores recorded on roll paper for the automatic piano and the performance state for the purpose of the player's practice, etc., and displaying them on a display means such as a monitor in what is called a piano roll, as shown in Patent Documents 2, 3, and 4. This piano roll is displayed in conjunction with the automatic performance of the electronic musical instrument, based on separately prepared digital performance data.

[0004] On the other hand, recent mobile phones include smartphones, which have various functions such as image output function using a touch-type liquid crystal panel, information input function using the same panel, video shooting function using a camera, and sound output function using speakers or headphones. There are also tablet terminals, which are a size larger than smartphones and have similar functions (hereinafter, both are collectively referred to as mobile terminal devices). These mobile terminal devices have the functions of displaying videos taken by the camera on the device in real time on the liquid crystal panel on the device, recording the videos in a separate storage means, and displaying and playing videos recorded by the device or videos downloaded from the Internet, etc. Furthermore, these devices have the function of playing music files recorded in MP3 format, etc., using a sound output function, or playing music from MIDI data, etc., which is a digitalized version of music performance information. In addition, various software programs called applications are provided for these mobile terminal devices, and new functions can be added by downloading these via the Internet and installing them on the device itself.

[0005] However, even with these multifunctional mobile terminal devices, there are no known applications or musical toys that emulate a conventional player piano. Here, simulating a player piano means performing a musical score by detecting notes recorded on the score while moving the score, on which notes are recorded by punching, printing, or other methods, and playing the score by making sounds corresponding to the detected notes. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] Real whole Showa 52-063022 [Patent Document 2] Patent Publication No. 2007-279470 [Patent Document 3] Patent Publication No. 2015-069151 [Patent Document 4] Patent Publication No. 2001-51586 Summary of the Invention [Problem to be solved by the invention]

[0007] The problem that the present invention aims to solve is to provide a simple and practical method and apparatus for detecting notes, etc., recorded on a dedicated score such as a roll of paper on which notes, etc. are recorded, by moving the score using an electronic device such as a mobile terminal device, and for playing the score by producing sounds corresponding to the detected notes. [Means for solving the problem]

[0008] The most important feature of the present invention is the inclusion of an image input means for continuously extracting and inputting still images from digital video data created by photographing, recording or other methods the movement of musical score on roll paper or the like on which notes and the like are recorded, and an image processing means for detecting the recorded notes from the input still images by image processing. Effect of the Invention

[0009] According to the present invention, by providing image input means for continuously extracting and inputting still images from digital video data created by photographing, recording or other methods the movement of musical score on roll paper or the like on which musical notes etc. are recorded, and image processing means for detecting the recorded musical notes from the input still images by image processing, it becomes possible to play the musical score by making the sounds of the corresponding notes based on the detected notes, which has the advantage of providing a music playing toy that simulates a conventional automatic piano using an electronic device such as a mobile terminal device. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is an explanatory diagram showing the first embodiment. (Example 1) [Diagram 2] FIG. 2 is an explanatory diagram showing a screen of the smartphone in the first embodiment. [Diagram 3] FIG. 3 is an explanatory diagram showing the configuration of hardware and software in the first embodiment. [Figure 4] FIG. 4 is a flowchart showing the operation of the software in the first embodiment. [Diagram 5] FIG. 5 is an explanatory diagram 1 for explaining the contents of image processing in the first embodiment. [Figure 6] FIG. 6 is an explanatory diagram 2 for explaining the contents of the image processing in the first embodiment. [Figure 7] FIG. 7 is an explanatory diagram showing the second embodiment. (Example 2) [Figure 8] FIG. 8 is an explanatory diagram showing the third embodiment. (Example 3) DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] The objective of realizing a musical toy that imitates a conventional automatic piano is realized by a method in which the movement of a musical score such as a roll of paper on which musical notes etc. are recorded is photographed by a mobile terminal device etc., the notes etc. are detected from the photographed video by image processing, and the musical score is played by making the sound of the corresponding note based on the detected note. EXAMPLES

[0012] FIG. 1 is an overall view of a first embodiment of the device of the present invention, in which 100 is a smartphone main body, and 101 is an image output unit using a liquid crystal panel. The liquid crystal panel is a touch panel, and also serves as an information input unit 102 operated by a user. 200 is roll paper on which musical notes are recorded, 2001, 2002, and 2003 are notes printed and recorded as black lines on the roll paper 200, and 2010 and 2011 are marker lines similarly recorded on both ends of the roll paper 200 for detecting the position of the notes. Here, the notes such as 2001, 2002, and 2003 correspond to the keys of a piano and increase in pitch from left to right, and the length of each note is assumed to be the length of the note, assuming that the roll paper is fed at a constant speed. 300 and 301 are rollers for feeding the roll paper 200 in the direction of the arrow 600, which are driven by a driving means (not shown) and feed the roll paper 200 in the direction of the arrow 600 at a constant speed. Reference numerals 400 and 401 denote reels for winding up the roll paper 200.

[0013] FIG. 2 is a diagram showing the display screen of the liquid crystal panel 101, which is an image output unit of the smartphone main body 100 of the embodiment of the device of the present invention. The portion indicated by the dashed frame 1011 is a score display unit that displays in real time the movement of a score consisting of musical notes recorded on the roll paper 200 photographed by a camera (not shown) provided on the back of the smartphone main body, and simulates the glass window part through which the roll paper is wound up as the performance of a conventional player piano is performed. The dashed line 1020 is a virtual timing line indicating that the musical notes recorded on the moving roll paper 200 will be played when they come on that line, and may or may not be displayed on the actual screen. 2001, 2002, and 2003 are musical notes recorded on the roll paper 200 displayed on the liquid crystal panel 101, and 2010 and 2011 are marker lines recorded on both ends of the roll paper 200 to detect the position of the musical notes displayed on the panel 101, and the image of the roll paper 200 photographed by the camera is displayed here after various processes described later. The portion indicated by the dashed frame in 1012 is the keyboard display section, and when the image processing means detects that a note has come onto the timing line 1020 as a result of the movement of the roll paper 200, the color of each of the white and black keys is changed to gray to indicate that the key corresponding to the note has been pressed.

[0014] 3 is a diagram showing the hardware and software of the embodiment of the device of the present invention. Reference numeral 1 denotes a CPU (Central Processing Unit), which performs various processes and issues commands to various means according to a program stored in a non-volatile memory (not shown), thereby realizing the present invention. Reference numeral 2 denotes an image input means, such as a camera, which captures the movement of roll paper 200 on which musical notes and the like are printed as a video, and cuts out a series of still images, for example every 1 / 30 seconds, according to a program and passes them to the CPU 1. Reference numeral 3 denotes an image output means, such as a liquid crystal panel 101, which trims the still images passed from the image input means 2 to a size required for display and passes them to the image output means 3, which displays the still images passed from the CPU 1 on the musical score display unit 1011. The CPU 1 also trims the still images received from the image input means 2 to the portion required for image processing and sends them to the image processing means 4, which identifies the position of the musical note from the still image passed from the CPU 1 by image processing, and detects whether or not the note is present at the identified position. The image processing means 4 that detects whether or not a note is present returns that information to the CPU 1, and the CPU 1 reads out the state of the keyboard corresponding to the note at the timing when the previous still image was passed from the keyboard state storage means 5, and if the state of the keyboard is "not pressed" and it is determined that a note is present in the currently passed still image, it decides to make the sound of the corresponding note, and similarly, if the state of the keyboard at the previous processing timing was "pressed" and it is determined that no note is currently present, it decides to stop the sound of the corresponding note, and rewrites the contents of the keyboard state storage means 5 to the latest state. Then, based on that decision, the CPU 1 instructs the sound output means 6 to make or stop the sound of the corresponding note. The sound output means 6 has the function of making or stopping the sound of the corresponding note with a preset tone according to the instruction of the CPU 1, and thereby it is possible to play music according to the musical score. Further, the CPU 1 instructs the image output means 3 to carry out a process of changing the color of the corresponding key according to the decision to play or stop the sound of the corresponding note, and the image output means 3 changes the color of the corresponding key on the keyboard display section 1012 according to the instruction.

[0015] 4 is a flow chart showing the operation of the software of the embodiment of the device of the present invention. First, in S1, the CPU 1 waits for input of images cut from a moving image as a series of still images from the image input means 2. When input is received, the process proceeds to S2, where the input still images are trimmed to a size required for display and passed to the image output means 3, and the image output means 3 is instructed to display the images on the score display section 1011 of the liquid crystal panel 101. Furthermore, in S3, the CPU 1 trims the still images to a portion required for image processing. In S4, the trimmed still images are passed to the image processing means 4, and the image processing means 4 is instructed to detect notes. In S5, the image processing means 4 identifies the positions of the notes from the passed still images, detects whether or not there are notes at the identified positions, and returns the result to the CPU 1. In S6, the CPU 1 judges whether a new key has been pressed or released based on the note detected from the still image and the information stored in the keyboard status storage means 5 as to whether the key corresponding to the note is pressed or released based on the information stored in the keyboard status storage means 5 as to whether the key corresponding to the note is pressed or released based on the information stored in the keyboard status storage means 5 as to whether the key corresponding to the note is pressed or released based on the information stored in the keyboard status storage means 5 as to whether the key corresponding to the note is pressed or released. In S7, based on the information stored in S6 as to whether the key corresponding to the note is pressed or released, the CPU 1 instructs the image output means 3 to change the color of the corresponding key based on the information stored in S6 as to whether the key corresponding to the note is pressed or released. As a result of the above, the processing for one image cut out as a series of still images input from the image input means 2 is completed, and the processing returns to S1 again to wait for the input of the next still image from the image input means 2.

[0016] 5 and 6 are respectively an explanatory diagram 1 and an explanatory diagram 2 for explaining the contents of image processing by the image processing means 4 to detect musical notes recorded on the roll paper 200. Although the two are different image processing methods, they both have the same purpose of detecting musical notes recorded on the roll paper 200, and therefore either one can be adopted in the first embodiment.

[0017] First, an explanation will be given using FIG. 5. The CPU 1 trims the still image received from the image input means 2 to a portion required for image processing in the image processing means 4 in S3 of FIG. 4. This means cutting out the image of the portion corresponding to the timing line 1020 in FIG. 2, and FIG. 5 shows this in a graph. In this graph, the horizontal axis represents the position on the timing line 1020, and of the plotted 0-959, 0 represents the left end position on the image, and 959 represents the right end position. The vertical axis represents the brightness of the pixels on the timing line 1020, and 0-255 is plotted, with the larger the value, the brighter the image. The CPU 1 sends this cut-out image to the image processing means 4, and the image processing means 4 that receives the cut-out image performs image processing on the received image to detect features.

[0018] Before describing the details of image processing by the image processing means 4, let us look at the characteristics of the graph shown in Fig. 5. This graph has four characteristically dark areas with a brightness level of 55 or less, which correspond to the notes 2001, 2003 recorded on the roll paper 200 displayed on the score display section 1011 in Fig. 2 and the marker lines 2010, 2011 recorded on both ends of the roll paper 200. Therefore, if the positions of the marker lines 2010, 2011 can be detected, the relative positions of each note can be identified from them.

[0019] For example, let the positions of marker lines 2010, 2011 on timing line 1020 be Pl and Pr, respectively, and if the number of playable scales (= the number of displayed keys) is, for example, 7 octaves + 1 key, then 85 keys will be used. If the 85 keys are evenly spaced between marker lines 2010 and 2011, then the position of each key on timing line 1020, i.e., the position of each corresponding note P(i) {i=0,1...84}, can be calculated using the following formula:

number

[0020] Therefore, if the brightness of the pixel at the position P(i) of the note calculated by Equation 1 is equal to or less than a predetermined threshold value, it can be determined that a note has been recorded there.

[0021] In this way, the image processing means 4 determines whether or not there is a note for each key on the timing line 1020 for each image passed from the CPU 1, and returns the result to the CPU 1. Since still images cut out one after another at a constant cycle as the roll paper 200 moves are passed from the CPU 1, the image processing means 4 can repeat the same process to determine whether or not there is a note on the musical score.

[0022] Next, another method for detecting musical notes recorded on the roll paper 200 in the first embodiment will be described with reference to FIG.

[0023] This method is the same as the method shown in FIG. 5 above, up until the point where the CPU 1 sends the cropped image to the image processing means 4 and the image processing means 4 receives it, but it differs in that for each pixel of the received image, the difference between it and the pixel immediately adjacent to it is calculated.

[0024] Figure 6 shows the difference between the pixel value at the position of focus point i (0-958) and the pixel value at the position of focus point i+1 for the image shown in Figure 5. Looking from position 0 of this graph to the right, we can see that there are four characteristic parts where the values ​​continue to be almost 0, then swing significantly to above +30, then immediately swing below -30, and then return to values ​​close to 0, and just like in the case of Figure 5, these correspond to notes 2001, 2003 recorded on roll paper 200 displayed in musical score display section 1011, and marker lines 2010, 2011 recorded on both ends of roll paper 200. From these, it is possible to determine the presence or absence of notes for each key on timing line 1020 in the same way as explained in Figure 5.

[0025] This method differs from the method shown in FIG. 5 in that it takes the difference between adjacent pixels, so there is less impact from uneven lighting in the image being processed. For example, the line in the graph of the white background part of the roll paper 200 (parts other than the four characteristic points) shown in FIG. 5 rises to the right. This is because the brightness of the paper surface illuminated by the light is relatively brighter on the right side of the image than on the left side, causing uneven lighting, which in some cases may affect the brightness of the musical note parts. On the other hand, if the method of detecting feature points is based on the difference between adjacent pixels as shown in FIG. 6, the white background part of the roll paper 200 is concentrated near 0 in the graph, making it possible to suppress the impact of uneven lighting on the image.

[0026] In this embodiment 1, the positions of the marker lines 2010, 2011 are detected each time a still image to be image-processed is passed from the CPU 1 to the image processing means 4, and the position of each key on the timing line 1020, i.e., the position P(i) of each corresponding note, is determined from that in order to suppress the effects of shaking of the rolled paper 200 in a direction perpendicular to the direction of movement associated with the movement of the rolled paper 200, but it is also effective in suppressing the effects of the distance between the camera and the rolled paper 200, which may change as the rolled paper 200 moves. Therefore, in devices where these effects are small, it is also possible to configure the detection of the positions of the marker lines 2010, 2011 to be performed only once when a still image to be image-processed is first passed from the CPU 1 to the image processing means 4, and the value detected at that time is always used for image processing from the next time onwards.

[0027] In this embodiment, the notes are black lines printed on the roll paper, but they may be perforated on the roll paper if they can be detected by image processing. Also, if the width of the roll paper is constant, it is possible to detect the width of the roll paper using the contrast ratio between the roll paper and its background, and this can be used in place of the two marker lines.

[0028] As described above, according to this embodiment, a musical score made of rolled paper with musical notes and the like printed on it is filmed by a mobile terminal device or the like as it moves, still images are extracted from the filmed video, the printed notes and the like are detected from the extracted still images by image processing, and the sounds of the corresponding notes are played based on the detected notes. This method makes it possible to realize a musical playing toy that imitates a conventional automatic piano.

[0029] 7 shows a second embodiment of the present invention, in which, while in embodiment 1, a method was shown in which roll paper 200, on which musical notes and the like are printed, is wound around two shafts, this embodiment is a music box type in which roll paper 200 is wound around a single-shaft roll 402 and rotated, and has almost the same configuration as embodiment 1 except for the moving parts. This embodiment has the disadvantage that the playing time is shorter than in embodiment 1, but since there are fewer moving parts, it is easier to realize a musical playing toy than in embodiment 1.

[0030] FIG. 8 shows a third embodiment of the present invention. This embodiment is a record-type toy with musical notes printed on a rotating disk indicated by 201. Like the second embodiment, this embodiment can also be used to realize a musical toy more easily than the first embodiment.

[0031] Finally, a fourth embodiment will be described. In the first to third embodiments, the image input means 2 includes an imaging means such as a camera, but it may be a means for inputting a video such as an MP4 format video of the process of winding up the roll paper 200 on which musical notes and the like are printed, or the process of winding up the roll paper of an actual player piano as it is played, or a similar video created electronically. With such a configuration, a musical performance toy that easily imitates a conventional player piano without the moving parts shown in the first to third embodiments can be realized.

[0032] In particular, when a video of a roll of paper being wound in a conventional player piano is used as the input source, if the camera is fixed and the image is taken, the shaking of the roll of paper in the direction perpendicular to the direction of movement of the roll of paper can be almost ignored, so that the marker lines 2010 and 2011 recorded on the roll of paper 200 in the first to third embodiments are not necessary, and the positions of the small holes on the predetermined timing line 1020 are stored in a program on a non-volatile memory, and the image processing means 4 detects the small holes based on the stored positions of the small holes, thereby realizing a similar function. The positions of the small holes stored in the program on the non-volatile memory in advance may be adjusted by displaying an interface for adjusting the position on the touch panel that is both the image output unit 101 and the information input unit 102 and allowing the user to operate it. In the present embodiment, the small holes are detected, but this can be easily realized by adopting a feature point extraction method based on the difference between adjacent pixels by the image processing means 4 as shown in FIG. 6 in the first embodiment.

[0033] Furthermore, when a similar electronically created video is used as the input, there is no blurring in the direction perpendicular to the direction of movement of the musical score, so that the marker lines 2010 and 2011 can be eliminated, just as in the case of fixing the camera and filming the process of a roll of paper being wound up on an automatic piano. [Industrial Applicability]

[0034] The position of notes on an image is detected by image processing from a video input by an image input means, and the sound of the corresponding note is played based on the detected note, making this system applicable not only to mobile terminal devices but also to personal computer-based devices and standalone musical playing toys. [Explanation of symbols]

[0035] 1 CPU (Central Processing Unit) 2. Image input means 3. Image output means 4. Image Processing Methods 5. Keyboard state storage means 6 Sound output means

Claims

1. This musical performance toy is provided with an image input means for cutting out and inputting still images from a moving image, and an image processing means for detecting musical notes recorded on a recording medium by image processing the input still images, and performs a musical performance based on the detected musical notes.

2. The musical playing toy according to claim 1, characterized in that a marker for detecting the position of a musical note is provided on the photographed medium, the position of the marker on the still image is detected by the image processing means, the position of the musical note to be recorded on the photographed medium is identified based on the detected position of the marker, and the musical note is detected from the identified position of the note.

Citation Information

Patent Citations

  • JP1977063022U

  • JP1980065688U

  • Score recognizing device

    JP1994332443A

  • Performance instructing device

    JP2001051586A

  • Piano roll display device and piano roll display program

    JP2007279470A