CN109801613B - Terminal-based cello playing method and device and terminal - Google Patents

Terminal-based cello playing method and device and terminal Download PDF

Info

Publication number
CN109801613B
CN109801613B CN201910031926.XA CN201910031926A CN109801613B CN 109801613 B CN109801613 B CN 109801613B CN 201910031926 A CN201910031926 A CN 201910031926A CN 109801613 B CN109801613 B CN 109801613B
Authority
CN
China
Prior art keywords
signal
terminal
angle
touch signal
detection area
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.)
Active
Application number
CN201910031926.XA
Other languages
Chinese (zh)
Other versions
CN109801613A (en
Inventor
王旸
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.)
Shaanxi University of Technology
Original Assignee
Shaanxi University of Technology
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 Shaanxi University of Technology filed Critical Shaanxi University of Technology
Priority to CN201910031926.XA priority Critical patent/CN109801613B/en
Publication of CN109801613A publication Critical patent/CN109801613A/en
Application granted granted Critical
Publication of CN109801613B publication Critical patent/CN109801613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a terminal-based cello playing method and device and a terminal. The method provided by the invention comprises the following steps: entering a violoncello playing mode; detecting a first pressing touch signal; detecting a second signal; calculating the first pressing touch signal and the second signal according to a preset rule, and outputting a corresponding cello sound signal according to a calculation result; and displaying the strings of the cello on the terminal. The device provided by the invention comprises: pressing the touch signal detection module: the pressing touch signal is used for detecting a pressing touch signal; the second signal detection module: for detecting a second signal; the sound signal output module: the touch control circuit is used for calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result; and displaying the strings of the cello on the terminal. The violoncello playing can be simulated and realized on the electronic terminal.

Description

Terminal-based cello playing method and device and terminal
Technical Field
The invention relates to the field of computers and music, in particular to a cello playing method and device based on a terminal and the terminal.
Background
With the development of computer technology and communication technology, electronic terminals, especially mobile phones, computers, etc., have occupied a greater and greater proportion of people's lives, and the terminals have been in close contact with various aspects of people's clothes and eating houses.
Particularly, with the development of touch technology, the functions of the electronic terminal are not limited to office work and communication, but can be used for payment, assisting movement, detecting directions and the like. Because the electronic terminal can detect the finger touch signals of the user, the terminal can be used for simulating the musical instrument, so that the user can experience the playing pleasure at any time without purchasing the musical instrument. However, the existing musical instrument simulation module on the electronic terminal can only simulate musical instruments such as a piano and a guitar which are simple to operate, and for a cello such as a cello and a cello which needs to be plucked by fingers and a bow, due to the characteristics of the structure and the playing mode of the cello, a simulated playing method on the electronic terminal has not been realized.
Disclosure of Invention
In view of the above, the invention provides a terminal-based cello playing method, device and terminal, which can simulate the implementation of cello playing on an electronic terminal.
The invention provides a cello playing method based on a terminal based on the aim, which comprises the following steps:
detecting a first pressing touch signal;
detecting a second signal;
calculating the first pressing touch signal and the second signal according to a preset rule, and outputting a corresponding cello sound signal according to a calculation result;
displaying the strings of the cello on the terminal;
before the step of detecting the first pressing touch signal, the method further includes:
and detecting the position of the terminal, selecting a cello playing mode if the top of the terminal is higher than the bottom of the terminal and the included angle between the longitudinal axis of the terminal and the horizontal plane is greater than a set value, and entering the step of detecting a first pressing touch signal.
Meanwhile, the invention also provides a cello playing device based on the terminal, which comprises:
a mode selection module: the pressing touch signal detection module is used for detecting the position of the terminal, and if the top of the terminal is higher than the bottom of the terminal and the included angle between the longitudinal axis of the terminal and the horizontal plane is larger than a set value, the terminal is selected as a cello playing mode, and the pressing touch signal detection module is triggered;
pressing the touch signal detection module: the pressing touch signal is used for detecting a pressing touch signal;
the second signal detection module: for detecting a second signal;
the sound signal output module: the touch control circuit is used for calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result;
and displaying the strings of the cello on the terminal.
Further, the present invention also provides a terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method according to any one of the embodiments of the invention when executing the program.
As can be seen from the above, the method and device for playing a cello based on a terminal provided by the embodiment of the invention can simulate the cello which needs to be played by fingers and has a playing need of bowing on the electronic terminal, thereby widening the functions of the electronic terminal, and facilitating users who like the instruments to experience the fun of playing the instruments anytime and anywhere.
Drawings
Fig. 1 is a schematic flow chart of a terminal-based cello playing method according to an embodiment of the present invention;
fig. 2A is a schematic interface diagram of a terminal display of the cello playing method according to the embodiment of the present invention;
fig. 2B is a schematic interface diagram of a terminal displaying a cello playing method according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal and a default plane according to an embodiment of the present invention;
fig. 4A is a schematic diagram of a basic detection area, a first detection area and a second detection area according to an embodiment of the present invention;
fig. 4B is a schematic diagram illustrating the range of the first detection area and the range of the second detection area after adjustment according to the embodiment of the present invention;
fig. 5 is a schematic diagram of a terminal-based cello playing apparatus according to an embodiment of the present invention.
Detailed Description
In order to provide an effective implementation scheme, the invention provides the following embodiments, which are described in the following with reference to the attached drawings.
Based on the above object, a cello playing method based on a terminal according to an embodiment of the present invention, as shown in fig. 1, includes:
step 101: detecting a first pressing touch signal;
step 102: detecting a second signal;
step 103: calculating the first pressing touch signal and the second signal according to a preset rule, and outputting a corresponding cello sound signal according to a calculation result;
displaying the strings of the cello on the terminal;
before the step of detecting the first pressing touch signal, the method further includes:
step 100: and detecting the position of the terminal, selecting a cello playing mode if the top of the terminal is higher than the bottom of the terminal and the included angle between the longitudinal axis of the terminal and the horizontal plane is greater than a set value, and entering the step of detecting a first pressing touch signal.
The method provided by the invention is applied to a terminal capable of detecting the touch signal, such as a touch screen mobile phone, a touch screen computer and the like, and can simulate the playing of some stringed instruments by utilizing the original touch signal detection function of the terminal. Displaying simulated strings of the cello in a terminal touch signal detection area, as shown in fig. 2A, taking four vertically arranged straight lines as the strings, and when a user slides or presses fingers on a touch screen in a small amplitude, taking the detected pressing touch signal as a first pressing touch signal, namely simulating the operation of pressing the strings by the fingers when playing the cello; meanwhile, the user performs large-amplitude sliding operation on the touch screen, the sliding direction of the operation is at a large angle or basically perpendicular to the strings, the detected signal is used as a second signal, the operation of playing the cello can be simulated, and the simulated playing of the cello on the electronic terminal can be realized by combining the first signal and the second signal according to the generation rule of the cello.
The terminal longitudinal axis is the longitudinal axis in the terminal use state. For example, when the terminal is a touch screen mobile phone, the longitudinal axis is determined according to the gyroscope in the using state of the terminal.
In another embodiment of the present invention, an interface displayed on the terminal while playing a cello is shown in fig. 2B. Including strings 201, bow performance signal icons 202, the user operating in the area of the bow performance signal icons 202 to generate second signals.
In an embodiment, the first pressing touch signal may be a one-point pressing signal or a small-amplitude sliding signal. The second signal may be a sliding signal of a larger amplitude. In order to avoid confusion between the first pressing touch signal and the second signal, the identification method for the second signal and the first pressing touch signal should be clearly distinguished, for example, the threshold value is different, the sliding amplitude and range are different, and the like. More specifically, when the first pressing signal is a small-amplitude sliding signal, the small amplitude does not exceed one third of the width of the touch display screen of the terminal; when the second signal is a sliding signal with a larger amplitude, the larger amplitude is not smaller than one half of the width of the touch display screen of the terminal.
In an embodiment of the invention, when the second signal includes a sliding signal with a larger amplitude, the pressing touch signal is used as the sliding signal with the larger amplitude in the second signal when the pressing touch signal on the icon of the intra-interface bow playing signal is detected.
In an embodiment of the present invention, the first pressing touch signal and the second pressing touch signal are detected within a touch area range set on the electronic terminal, and specifically, if strings of a cello as shown in fig. 2 are displayed on the mobile terminal, the range of the first pressing touch signal and the range of the second pressing touch signal should cover at least one string.
In the embodiment of the invention, the top in the terminal use state corresponds to one end of the neck of the cello, and the bottom in the terminal use state corresponds to one end of the faceplate of the cello, so that the use habit of a user playing a real cello is met. Meanwhile, in the process of playing the cello, one end of the neck is higher than one end of the panel, and the included angle between the longitudinal axis and the horizontal plane is larger, so that in the embodiment of the invention, when the fact that the top of the terminal is higher than the bottom of the terminal and the included angle between the longitudinal axis and the horizontal plane is larger than a set value is detected, the cello playing mode is started, and therefore, the cello playing mode is in accordance with a correct playing mode, and bad playing habits are corrected. The top portion, i.e. the portion of the simulated interface corresponding to the portion near the neck of the violin; the bottom portion, i.e., a portion of the simulation interface corresponding to a portion near the face plate of the violin.
In some embodiments of the present invention, the second signal includes a terminal angle signal and a first sliding touch signal;
the step of detecting the second signal comprises:
detecting the deflection angle of the terminal around a preset axis and a preset plane, and calculating a terminal angle signal according to the angle;
detecting the first sliding touch signal; the angle between the sliding direction of the first sliding touch signal and the string is within a first threshold range; the sliding amplitude of the first sliding signal is a second threshold range;
the step of calculating the pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result comprises the following steps:
identifying a first target string corresponding to the pressing touch signal according to the first pressing touch signal;
taking the first pressing touch signal as a finger playing signal on a first target string, calculating a second target string of a bow signal according to the terminal angle signal, and taking the first sliding touch signal as a bow playing signal on the second target string;
and combining the finger playing signal and the bow playing signal, and calculating and outputting a corresponding cello sound signal.
When the preset plane is a horizontal plane, any position of the terminal in the three-dimensional space can be regarded as that the terminal is rotated by a first angle relative to the horizontal plane around a preset axis from an initial position parallel to the horizontal plane, and is simultaneously rotated by a second angle relative to the horizontal plane around another axis perpendicular to the preset axis. The angle of the terminal rotating around the preset axis and the preset plane is the first angle when the preset plane is a horizontal plane.
In other embodiments of the present invention, when the sliding direction of the first sliding signal is determined to be from the first end to the second end, the bowing playing signal is determined to be an upper bowing signal, and a corresponding viola sound signal is calculated and output in combination with the sounding characteristics of the viola during the upper bowing playing; and when the sliding direction of the first sliding signal is judged to be from the second end to the first end, determining that the common playing signal is a lower bow signal, and calculating and outputting a corresponding viola sound signal by combining the pronunciation characteristics of the viola during lower bow playing. The first end is the end close to the right hand of the player in the using state; the second end is an end close to the left hand of the player in the use state.
As shown in fig. 3, the above-mentioned preset axis is parallel to the strings displayed on the display screen 302 of the terminal 301; the predetermined plane is a horizontal plane 303. When the rotation of the terminal relative to the preset plane includes rotation around the preset axis and rotation around an axis perpendicular to the preset axis, only the relative rotation angle between the plane where the display screen of the terminal is located and the horizontal plane around the preset axis is calculated.
In an embodiment of the present invention, the sliding direction of the first sliding signal is substantially perpendicular to the strings, and the first threshold range is a range close to an angle range of [ -90 °, 90 ° ] indicating that the sliding direction of the first sliding signal is substantially perpendicular to the strings or at a large angle, which is substantially consistent with the moving direction of the bow relative to the strings when the user actually plays the cello. The second threshold range is used for limiting the sliding amplitude of the first sliding signal, and the first threshold range and the second threshold range represent that the sliding signal with the sliding direction basically perpendicular to the string direction and the larger sliding range on the terminal display screen is identified as the first sliding signal.
In the process of actually playing a cello, different sounds are caused by different forces of pressing strings by fingers, and a technology capable of detecting touch pressing force exists in the current terminal, so in some embodiments of the present invention, the step of detecting the first pressing touch signal includes:
detecting the position of the first pressing touch signal;
detecting the strength of the first pressing touch signal;
the step of calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result comprises the following steps:
and calculating according to the position of the first pressing touch signal and the strength of the first pressing touch signal and a preset rule by combining the second signal, and outputting a corresponding cello sound signal according to a calculation result.
Since the pressing force of the current terminal on the touch signal can only detect two situations, namely normal pressing and pressing with heavy weight, in some embodiments of the present invention, the step of detecting the force of the first pressing touch signal specifically includes:
detecting a rotation angle of the terminal around the transverse axis; the transverse axis is an axis parallel to the width direction of the terminal;
and converting the touch strength of the corresponding first pressing touch signal according to a preset conversion rule according to the rotation angle of the terminal around the transverse axis relative to the horizontal plane. Specifically, within a certain angle range, when one side of the terminal close to the head of the user is closer to the position of the head of the user, the pressing force is considered to be greater, and therefore, the touch strength of the first pressing touch signal converted according to the preset rule is also greater. The certain angle range of relative rotation of the terminal around the transverse axis and the horizontal plane corresponds to the certain force range, and the corresponding touch force can be converted according to the preset corresponding rule and the angle of relative rotation of the terminal around the transverse axis and the horizontal plane.
In a specific embodiment of the present invention, a specific operation method for calculating the second target string corresponding to the bow playing signal according to the terminal angle signal is as follows:
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is within a first angle range, one string is a second target string;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is within a second angle range, the second string is a second target string;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a third angle range, the three strings are two target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a fourth angle range, the four strings are second target strings;
the first angle range, the second angle range, the third angle range and the fourth angle range are not coincident.
In the embodiment of the invention, the first string, the second string, the third string and the fourth string are respectively four strings from thin to thick of the cello.
In an embodiment of the present invention, the specific operation method for calculating the second target string corresponding to the bow playing signal according to the terminal angle signal further includes:
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is a fifth angle range between the first angle range and the second angle range, the first string and the second string are second target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a sixth angle range between the second angle range and the third angle range, the second string and the third string are second target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is a seventh angle range between the third angle range and the fourth angle range, the three strings and the four strings are second target strings;
the first to seventh angular ranges do not coincide.
In order to enrich the terminal-based cello playing method provided by the embodiment of the invention and enable the terminal-based cello playing method to meet playing habits and preferences of more users as much as possible, when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in the eighth angularity range, the second target string is confirmed according to the first pressing touch signal, namely the first target string is consistent with the second target string. The eighth angular range is [ -a, + a ], and a is a smaller angular value, which indicates that when the terminal is placed horizontally or the display screen of the terminal is basically level with the horizontal plane, the strings pressed by the fingers are the strings corresponding to the bow playing signals.
In the specific embodiment of the invention, when the sliding speed of the first sliding touch signal is detected to be greater than the set value, the four strings are all judged to be the second target strings, so that the condition that the user pulls the four strings at one time can be identified.
In some embodiments of the present invention, the second signal includes a reciprocating rotation signal and a second sliding touch signal of the terminal;
the step of detecting the second signal comprises:
when the terminal rotates around a preset axis in a reciprocating mode and the angle of each reciprocating rotation exceeds a set threshold value, outputting a reciprocating rotation signal;
after the reciprocating rotation signal is detected, detecting the second sliding touch signal; the angle between the sliding direction of the second sliding touch signal and the string is within a third threshold range;
the step of calculating the pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result comprises the following steps:
identifying a first target string corresponding to the pressing touch signal;
taking the pressing touch signal as a finger playing signal on a first target string, calculating a second target string corresponding to a bow playing signal according to the second sliding touch signal, and taking the second sliding touch signal as a bow playing signal on the second target string;
and combining the finger playing signal and the bow playing signal, and calculating and outputting a corresponding cello sound signal.
The third threshold range is used for indicating that the direction of the second sliding touch signal is substantially perpendicular to the string or forms a larger angle with the string. The above-mentioned reciprocal rotation signal indicates that the terminal screen rotates around the preset axis and the preset plane relatively, and within a certain range, rotates clockwise and then rotates counterclockwise, so reciprocates a certain number of times. Specifically, for example, the terminal screen is rotated about a preset axis by b ° relative to a preset plane, and then rotated by-b ° in the opposite direction relative to the preset plane.
Specifically, the specific operation method for calculating the second target string corresponding to the bow playing signal according to the second sliding touch signal includes:
and calculating a second target string corresponding to the bow playing signal according to the range of the second sliding signal. The string in the second slip signal coverage is taken as the second target string.
In some embodiments of the invention, the terminals comprise a first terminal and a second terminal; the first terminal and the second terminal can transmit signals, namely, the first terminal and the second terminal are connected in a wireless or wired mode;
the step of detecting the first pressing touch signal specifically includes:
detecting a first press touch signal in a first detection area on the first terminal;
the step of detecting the second signal specifically includes:
detecting a second signal in a second detection area on the second terminal;
the step of calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result specifically includes:
sending the first pressing touch signal to a target terminal; the target terminal is one of a first terminal and a second terminal;
and calculating the first pressing touch signal and the second signal according to a preset rule, and outputting a corresponding cello sound signal through a loudspeaker of the target terminal according to a calculation result.
Because a violoncello usually has a certain length, when the violoncello is played, a certain distance exists between fingers and a bow, and the length of a daily terminal is limited, for example, a mobile phone and a tablet personal computer cannot be simulated according to the actual size of the daily common terminal. Through the embodiment, a user can play a simulated cello by using the two terminals, and the problem that a playing area equal to the length of a real cello string cannot be simulated on one terminal can be solved. When the user uses, can be fixed in a support with first terminal and second terminal on, make the support be close to the length of real cello to it has the sense of reality to make to play more.
In some embodiments of the present invention, before detecting the first pressing touch signal, the method further includes:
displaying a first detection area on the first terminal and a second detection area on the second terminal;
the first detection area and the second detection area respectively correspond to two parts which are not overlapped on the basic detection area; the basic detection area includes strings and bridges.
As shown in fig. 4A, the size of the basic detection area 400 is approximately equal to the real cello playable area, or the playable area for cellos is scaled down, including strings 401 and bridges 402. The first detection region 403 and the fourth detection region 404 are two non-overlapping portions of the basic detection region 400, respectively, as indicated by the dashed line in fig. 4A. A first detection area 403 is displayed on the screen of the first terminal and a second detection area 404 is displayed on the screen of the second terminal. By dragging the first and second detection areas on the display screen of the first or second terminal, the coverage of the first and second detection areas on the basic detection area 400 can be changed, as shown in fig. 4B.
In some embodiments of the present invention, after the steps of displaying the first detection area on the first terminal and displaying the second detection area on the second terminal, the method further includes:
detecting a third sliding touch signal on the first terminal; an angle between the sliding direction of the third sliding touch signal and the string is within a third threshold range;
when the first detection area and the second detection area are two adjacent areas on the basic detection area, moving the positions of the first detection area and the second detection area on the basic detection area along the sliding direction of the third sliding touch signal, and changing the ranges of the first detection area and the second detection area;
when the first detection area and the second detection area are two non-adjacent areas on the basic detection area, moving the corresponding position of the first detection area on the basic detection area along the sliding direction of the third sliding touch signal, and changing the range of the first detection area.
The third threshold value indicates that the sliding direction of the third sliding touch signal is substantially consistent with the string direction of the cello displayed on the terminal display screen so as to be distinguished from the sliding touch signal during playing.
In another embodiment of the invention, when a user uses one terminal, a terminal display screen is divided into two windows, a first detection area is displayed in one window, and a second detection area is displayed in the other window;
the first detection area and the second detection area respectively correspond to two parts which are not overlapped on the basic detection area; the basic detection area includes strings and bridges. When a slide signal substantially in line with the string direction in the first window or the second window is detected, the coverage of the first detection area or the second detection area is moved in the slide direction.
Meanwhile, the present invention also provides a terminal-based cello playing apparatus, as shown in fig. 5, including:
the mode selection module 500: the touch signal detection module is used for detecting the position of the terminal, if the top height of the terminal is lower than the bottom height of the terminal, a cello playing mode is selected, and the touch signal detection module is triggered and pressed;
pressing the touch signal detection module 501: the pressing touch signal is used for detecting a pressing touch signal;
the second signal detection module 502: for detecting a second signal;
the sound signal output module 503: the touch control circuit is used for calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result;
and displaying the strings of the cello on the terminal.
In some embodiments of the present invention, the second signal includes a terminal angle signal and a first sliding touch signal;
the second signal detection module includes:
terminal angle signal calculation unit: the terminal deflection angle detection device is used for detecting the deflection angle of the terminal around a preset axis and a preset plane and calculating a terminal angle signal according to the angle;
the first slip signal detection unit: the first sliding touch signal is detected; the angle between the sliding direction of the first sliding touch signal and the string is within a first threshold range;
the sound signal output module includes:
first target string recognition unit: the first target string corresponding to the pressing touch signal is identified according to the terminal angle signal; taking the pressing touch signal as a finger playing signal on a first target string;
second target string recognition unit: the second target string is used for calculating a bow signal according to the terminal angle signal, and the first sliding touch signal is used as a bow playing signal on the second target string;
a sound signal calculation unit: and the digital musical instrument is used for combining the finger playing signals and the bow playing signals, and calculating and outputting corresponding cello sound signals.
In some embodiments of the present invention, the second target string recognition unit includes:
a first identification subunit: the string is used for setting a string as a second target string when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is within a first angle range;
a second identifier subunit: the second string is a second target string when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is within a second angle range;
a third identifier subunit: the third string is a second target string when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a third angle range;
a fourth identifier subunit: the four strings are used as second target strings when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a fourth angle range;
the first angle range, the second angle range, the third angle range and the fourth angle range are not coincident.
In some embodiments of the present invention, the step of identifying the first target string corresponding to the pressing touch signal according to the terminal angle signal further includes:
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is a fifth angle range between the first angle range and the second angle range, the first string and the second string are second target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a sixth angle range between the second angle range and the third angle range, the second string and the third string are second target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is a seventh angle range between the third angle range and the fourth angle range, the three strings and the four strings are second target strings;
the first to seventh angular ranges do not coincide.
In some embodiments of the present invention, the second signal includes a reciprocating rotation signal and a second sliding touch signal of the terminal;
the second signal detection module includes:
a reciprocating rotation signal output unit: the terminal is used for outputting the reciprocating rotation signal when the terminal rotates around a preset axis in a reciprocating way and the angle of each reciprocating rotation exceeds a set threshold value;
a second sliding touch signal detection unit: the second sliding touch signal is detected after the reciprocating rotation signal is detected; the angle between the sliding direction of the second sliding touch signal and the string is within a second threshold range;
the sound signal output module includes:
first target string recognition unit: the first target string corresponding to the pressing touch signal is identified according to the first pressing touch signal; taking the pressing touch signal as a finger playing signal on a first target string;
second target string recognition unit: a second target string for calculating a bow playing signal according to the second sliding touch signal, and taking the second sliding touch signal as the bow playing signal on the second target string;
a sound signal calculation unit: and the digital musical instrument is used for combining the finger playing signals and the bow playing signals, and calculating and outputting corresponding cello sound signals.
In some embodiments of the invention, the terminals comprise a first terminal and a second terminal;
the first pressing touch signal detection module specifically includes:
a first detection area detection unit: the first pressing touch signal is detected in a first detection area on the first terminal;
the second signal detection module specifically includes:
a second detection area detection unit: for detecting a second signal in a second detection area on the second terminal;
the sound signal output module specifically includes:
the first pressing touch signal sending unit: the first pressing touch signal is sent to a target terminal; the target terminal is one of a first terminal and a second terminal;
a calculation and output unit: and the device is used for calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal through a loudspeaker of the target terminal according to a calculation result.
In some embodiments of the invention, the apparatus further comprises:
a first detection area display module: the first terminal is used for displaying a first detection area;
a second detection area display module: the second detection area is used for displaying the second detection area on the second terminal;
the first detection area and the second detection area respectively correspond to two parts which are not overlapped on the basic detection area; the basic detection area includes strings and bridges.
In some embodiments of the invention, the apparatus further comprises:
a third sliding touch signal detection module: the first sliding touch control signal is used for detecting a first sliding touch control signal on the first terminal; an angle between the sliding direction of the third sliding touch signal and the string is within a third threshold range;
a first range adjustment module: when the first detection area and the second detection area are two adjacent areas on the basic detection area, moving the corresponding positions of the first detection area and the second detection area on the basic detection area along the sliding direction of the third sliding touch signal, and changing the ranges of the first detection area and the second detection area;
a second range adjustment module: and when the first detection area and the second detection area are two non-adjacent areas on the basic detection area, moving the corresponding position of the first detection area on the basic detection area along the sliding direction of the third sliding touch signal, and changing the range of the first detection area.
From the above, the terminal-based cello playing method and device provided by the invention can realize cello playing on common mobile terminals such as touch screen mobile phones and tablet computers, and can enable the playing process to approach the real process of cello playing, so that cello lovers can experience the interest of playing cello at any time, the functional range of the electronic terminal is widened, and the user experience of the electronic terminal is improved.
Further, the present invention also provides a terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method according to any one of the embodiments of the invention when executing the program.
It is to be understood that the various embodiments described herein are for purposes of illustration and explanation only and are not intended to be limiting. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A cello playing method based on a terminal is characterized by comprising the following steps:
detecting a first pressing touch signal;
detecting a second signal;
calculating the first pressing touch signal and the second signal according to a preset rule, and outputting a corresponding cello sound signal according to a calculation result;
displaying the strings of the cello on the terminal;
before the step of detecting the first pressing touch signal, the method further includes:
detecting the position of the terminal, selecting a cello playing mode if the top of the terminal is higher than the bottom of the terminal and the included angle between the longitudinal axis of the terminal and the horizontal plane is greater than a set value, and entering the step of detecting a first pressing touch signal;
the second signal comprises a terminal angle signal and a first sliding touch signal;
the step of detecting the second signal comprises:
detecting the deflection angle of a terminal display screen around a preset axis and a preset plane, and calculating a terminal angle signal according to the angle;
detecting the first sliding touch signal; the angle between the sliding direction of the first sliding touch signal and the string is within a first threshold range;
the step of calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result includes:
identifying a first target string corresponding to the pressing touch signal according to the first pressing touch signal;
taking the pressing touch signal as a finger playing signal on a first target string, calculating a second target string corresponding to a bow playing signal according to the terminal angle signal, and taking the first sliding touch signal as a bow playing signal on the second target string;
and combining the finger playing signal and the bow playing signal, and calculating and outputting a corresponding cello sound signal.
2. The method as claimed in claim 1, wherein said step of calculating a second target string corresponding to the bow playing signal from said terminal angle signal comprises:
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is within a first angle range, one string is a second target string;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is within a second angle range, the second string is a second target string;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a third angle range, the third string is a second target string;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a fourth angle range, the four strings are second target strings;
the first angle range, the second angle range, the third angle range and the fourth angle range are not coincident.
3. The method according to claim 2, wherein said step of calculating a second target string corresponding to a bow playing signal from said terminal angle signal further comprises:
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is a fifth angle range between the first angle range and the second angle range, the first string and the second string are second target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is in a sixth angle range between the second angle range and the third angle range, the second string and the third string are second target strings;
when the rotation angle of the terminal display screen around the preset axis and the horizontal plane is a seventh angle range between the third angle range and the fourth angle range, the three strings and the four strings are second target strings;
the first to seventh angular ranges do not coincide.
4. The method according to claim 1, wherein the second signal comprises a reciprocating rotation signal and a second sliding touch signal of the terminal;
the step of detecting the second signal comprises:
when the terminal rotates around a preset axis in a reciprocating mode and the angle of each reciprocating rotation exceeds a set threshold value, outputting a reciprocating rotation signal;
after the reciprocating rotation signal is detected, detecting the second sliding touch signal; the angle between the sliding direction of the second sliding touch signal and the string is within a second threshold range;
the step of calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result includes:
identifying a corresponding first target string according to the first pressing touch signal;
taking the pressing touch signal as a finger playing signal on a first target string, calculating a second target string corresponding to a bow playing signal according to the second sliding touch signal, and taking the second sliding touch signal as a bow playing signal on the second target string;
and combining the finger playing signal and the bow playing signal, and calculating and outputting a corresponding cello sound signal.
5. The method of claim 1, wherein the terminals comprise a first terminal and a second terminal;
the step of detecting the first pressing touch signal specifically includes:
detecting a first press touch signal in a first detection area on the first terminal;
the step of detecting the second signal specifically includes:
detecting a second signal in a second detection area on the second terminal;
the step of calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result specifically includes:
sending the first pressing touch signal to a target terminal; the target terminal is one of a first terminal and a second terminal;
and calculating the first pressing touch signal and the second signal according to a preset rule, and outputting a corresponding cello sound signal through a loudspeaker of the target terminal according to a calculation result.
6. The method of claim 5, wherein before detecting the first press touch signal, further comprising:
displaying a first detection area on the first terminal and a second detection area on the second terminal;
the first detection area and the second detection area respectively correspond to two parts which are not overlapped on the basic detection area; the basic detection area includes strings and bridges.
7. The method of claim 6, wherein after the steps of displaying the first detection area on the first terminal and displaying the second detection area on the second terminal, further comprising:
detecting a third sliding touch signal on the first terminal; an angle between the sliding direction of the third sliding touch signal and the string is within a third threshold range;
when the first detection area and the second detection area are two adjacent areas on the basic detection area, moving the positions of the first detection area and the second detection area on the basic detection area along the sliding direction of the third sliding touch signal, and changing the respective ranges of the first detection area and the second detection area corresponding to the basic detection area;
when the first detection area and the second detection area are two non-adjacent areas on the basic detection area, moving the corresponding position of the first detection area on the basic detection area along the sliding direction of the third sliding touch signal, and changing the range of the first detection area corresponding to the basic detection area.
8. A cello playing device based on a terminal is characterized by comprising:
a mode selection module: the touch signal detection module is used for detecting the position of the terminal, if the top height of the terminal is lower than the bottom height of the terminal, a cello playing mode is selected, and the touch signal detection module is triggered and pressed;
pressing the touch signal detection module: the pressing touch signal is used for detecting a pressing touch signal;
the second signal detection module: for detecting a second signal;
the sound signal output module: the touch control circuit is used for calculating the first pressing touch signal and the second signal according to a preset rule and outputting a corresponding cello sound signal according to a calculation result;
displaying the strings of the cello on the terminal;
the second signal comprises a terminal angle signal and a first sliding touch signal;
the second signal detection module includes:
terminal angle signal calculation unit: the terminal deflection angle detection device is used for detecting the deflection angle of the terminal around a preset axis and a preset plane and calculating a terminal angle signal according to the angle;
the first slip signal detection unit: the first sliding touch signal is detected; the angle between the sliding direction of the first sliding touch signal and the string is within a first threshold range;
the sound signal output module includes:
first target string recognition unit: the first target string corresponding to the first pressing touch signal is identified according to the terminal angle signal; taking the first pressing touch signal as a finger playing signal on a first target string;
second target string recognition unit: the second target string is used for calculating a bow signal according to the terminal angle signal, and the first sliding touch signal is used as a bow playing signal on the second target string;
a sound signal calculation unit: and the digital musical instrument is used for combining the finger playing signals and the bow playing signals, and calculating and outputting corresponding cello sound signals.
9. A terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method according to any of claims 1 to 7 when executing the program.
CN201910031926.XA 2019-01-14 2019-01-14 Terminal-based cello playing method and device and terminal Active CN109801613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910031926.XA CN109801613B (en) 2019-01-14 2019-01-14 Terminal-based cello playing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910031926.XA CN109801613B (en) 2019-01-14 2019-01-14 Terminal-based cello playing method and device and terminal

Publications (2)

Publication Number Publication Date
CN109801613A CN109801613A (en) 2019-05-24
CN109801613B true CN109801613B (en) 2022-02-22

Family

ID=66558883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910031926.XA Active CN109801613B (en) 2019-01-14 2019-01-14 Terminal-based cello playing method and device and terminal

Country Status (1)

Country Link
CN (1) CN109801613B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102792353A (en) * 2009-12-21 2012-11-21 米索媒体公司 Educational string instrument touchscreen simulation
CN103472956A (en) * 2013-09-30 2013-12-25 福建捷联电子有限公司 Display with musical instrument playing function
TW201407600A (en) * 2012-08-10 2014-02-16 Inventec Corp Playing method for musical instrument simulation and electronic device using the same
CN104091589A (en) * 2014-07-01 2014-10-08 冯山 Bowed string instrument playing instruction device and control method thereof
CN107424593A (en) * 2017-08-25 2017-12-01 广州彩磁信息技术有限公司 A kind of digital musical instrument of region stroke touch curved surface object loudspeaker array

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102792353A (en) * 2009-12-21 2012-11-21 米索媒体公司 Educational string instrument touchscreen simulation
TW201407600A (en) * 2012-08-10 2014-02-16 Inventec Corp Playing method for musical instrument simulation and electronic device using the same
CN103472956A (en) * 2013-09-30 2013-12-25 福建捷联电子有限公司 Display with musical instrument playing function
CN104091589A (en) * 2014-07-01 2014-10-08 冯山 Bowed string instrument playing instruction device and control method thereof
CN107424593A (en) * 2017-08-25 2017-12-01 广州彩磁信息技术有限公司 A kind of digital musical instrument of region stroke touch curved surface object loudspeaker array

Also Published As

Publication number Publication date
CN109801613A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
US8961309B2 (en) System and method for using a touchscreen as an interface for music-based gameplay
Essl et al. Interactivity for mobile music-making
JP4557899B2 (en) Sound processing program and sound processing apparatus
US11749246B2 (en) Systems and methods for music simulation via motion sensing
CN105976800A (en) Electronic device, method for recognizing playing of string instrument in electronic device
CN105741639B (en) A kind of micro- sense palm musical instrument for simulating bowstring kind musical instrument
KR20060073424A (en) Apparatus and method for analyzing movement of portable production
CN107407961A (en) The hand-held controller of computer, the control system of computer and computer system
CN104505103B (en) Voice quality assessment equipment, method and system
US20180350337A1 (en) Electronic musical instrument with separate pitch and articulation control
CN109739388B (en) Violin playing method and device based on terminal and terminal
US20140302925A1 (en) Recording medium, game apparatus, and game progressing method
CN110178177B (en) System and method for score reduction
CN105489209A (en) Electroacoustic musical instrument rhythm controllable method and improvement of karaoke thereof
Zlatintsi et al. A web-based real-time kinect application for gestural interaction with virtual musical instruments
CN109801613B (en) Terminal-based cello playing method and device and terminal
CN102789712B (en) Laser marking musical instrument teaching system and laser marking musical instrument teaching method based on spherical ultrasonic motor
WO2015050613A1 (en) Music user interface
KR20090111943A (en) Apparatus of Playing Musical Instruments Simulation by using Touch Screen and Method thereof
CN113343022A (en) Song teaching method, device, terminal and storage medium
CN214504972U (en) Intelligent musical instrument
Overholt Advancements in violin-related human-computer interaction
JP2016051150A (en) Musical performance supporting system
JP6782491B2 (en) Musical tone generator, musical tone generator and program
CN107404581B (en) Musical instrument simulation method and device for mobile terminal, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant