WO2016192287A1 - 一种弹奏仿真吉他实现移动终端解锁的方法及系统 - Google Patents

一种弹奏仿真吉他实现移动终端解锁的方法及系统 Download PDF

Info

Publication number
WO2016192287A1
WO2016192287A1 PCT/CN2015/093024 CN2015093024W WO2016192287A1 WO 2016192287 A1 WO2016192287 A1 WO 2016192287A1 CN 2015093024 W CN2015093024 W CN 2015093024W WO 2016192287 A1 WO2016192287 A1 WO 2016192287A1
Authority
WO
WIPO (PCT)
Prior art keywords
playing
interface
password
chord
unlocking
Prior art date
Application number
PCT/CN2015/093024
Other languages
English (en)
French (fr)
Inventor
姚家庆
Original Assignee
上海斐讯数据通信技术有限公司
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 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2016192287A1 publication Critical patent/WO2016192287A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of computer technology, and in particular, to a method and system for playing a simulated guitar to unlock a mobile terminal.
  • lock screen softwares are unique in style, they are intrinsically unable to break away from the traditional unlocking method and give users a sense of uniformity. This kind of uniform interaction often makes users feel that lock screen is just a tool to protect personal privacy, and there is no interest. As a module that adds highlights to mobile phones, the lock screen will be greatly reduced. Although there are quite a few lock screen softwares in the application market, and there are many styles, most of the software unlocking software does not get rid of the scope of sliding screen unlocking or password combination. Many softwares just do the theme replacement. Although some unlocking software also claims that the instrument is unlocked, it actually replaces the background of the lock screen interface. The unlocking action is still a simple sliding screen, lacking a rich interaction process, and the experience is not good.
  • the present invention aims to provide a method and system for playing a simulated guitar to unlock a mobile terminal, thereby realizing unlocking the mobile phone, giving a new visual and auditory experience and increasing the unlocking fun.
  • Sexuality is used to solve the problem that the unlocking method of the mobile phone in the prior art has a single form and lacks interest.
  • the present invention provides a method for playing a simulated guitar to unlock a mobile terminal, including the following steps:
  • the password ciphertext of the unlock password including a sequence of value pairs consisting of a string number and a timbre number, the timbre number being mapped with the chord information;
  • the digits composed of the collected string number and the timbre number are digitized and converted to generate a ciphertext, and Comparing the performance ciphertext with the password ciphertext of the saved unlock password;
  • the mobile terminal is unlocked in a case where the matching ciphertext is matched with the ciphertext of the unlock password.
  • the invention plays a simulation guitar to realize the method of unlocking the mobile terminal, and realizes the screen unlocking by playing the simulated guitar, which gives a new visual and auditory experience compared with the general sliding unlocking, increases the interest of the user to unlock, and improves the user's interest. user experience. And by simulating the chord information played by the guitar as the unlocking password, since the number of combinations of chord information is large, the length of the password can be ensured, the password is more complicated, it is difficult to crack, and the security is increased.
  • a further improvement of the method for playing a simulated guitar to unlock a mobile terminal of the present invention is to further include: creating a chord database in which the created chord information and the unlock password are stored.
  • a further improvement of the method for playing the simulated guitar to unlock the mobile terminal of the present invention is to create chord information, including:
  • the chord information creation interface is a playing interface of the simulated guitar, performing chord playing on the playing interface of the chord information creating interface, and recording the jing number of the playing chord information ;
  • the cipher number of each chord information recorded is identified by a name in the form of a string
  • chord information of the name identification is saved in the chord database.
  • a further improvement of the method for playing the simulated guitar to unlock the mobile terminal of the present invention is to create an unlock password, including:
  • the password creation interface is a playing interface of the simulated guitar, playing the music on the playing interface of the password creating interface, and recording all the strings and sounds of the playing during the playing of the music. a sequence of values for the item number;
  • the sequence of all the recorded string numbers and the timbre numbers is encrypted and processed as the password ciphertext of the unlock password.
  • a further improvement of the method for playing the simulated guitar to realize the unlocking of the mobile terminal of the present invention is that the unlocking interface of the mobile terminal is set as the playing interface of the simulated guitar, including:
  • timbre region Configuring the timbre region according to the timbre of the guitar as an array of a plurality of buttons, each of the buttons mapping a timbre number of a chord information, the timbre number of the chord information being loaded when the unlocking interface is loaded Load memory;
  • the string area is set to simulate the six strings of the guitar hole portion for the user to play.
  • a further improvement of the method for playing the simulated guitar to realize the unlocking of the mobile terminal of the present invention is to collect a sequence of numerical values composed of the string number and the timbre number that are played when playing on the playing interface of the unlocking interface, including:
  • a sequence of numerical pairs consisting of a string number and a timbre number is extracted from the digitized processed input information.
  • the invention also provides a system for playing a simulated guitar to unlock a mobile terminal, comprising:
  • chord database storing chord information and an unlock password
  • the password ciphertext of the unlock password including a sequence of value pairs consisting of a string number and a timbre number, the timbre number being mapped with chord information
  • a password creation module for creating an unlock password
  • An acquisition module configured to collect a sequence of value pairs composed of a string number and a timbre number that are played when playing on the playing interface of the unlocking interface;
  • a verification module configured to digitize the sequence of the collected string number and the timbre number, convert the generated ciphertext, and compare the ciphertext with the saved ciphertext of the unlocked password;
  • an unlocking module configured to unlock the mobile terminal in a case that the password ciphertext of the playing ciphertext and the unlocking password is matched.
  • the invention plays a system for realizing the unlocking of the mobile terminal by playing the simulated guitar, and unlocking the screen by playing the simulated guitar, which gives a new visual and auditory experience compared with the general sliding unlocking, increases the interest of the user to unlock, and improves the user's interest. user experience. And by simulating the chord information played by the guitar as the unlocking password, since the number of combinations of chord information is large, the length of the password can be ensured, the password is more complicated, it is difficult to crack, and the security is increased.
  • a further improvement of the system for playing the simulated guitar to realize the unlocking of the mobile terminal comprises: setting a module for creating a corresponding operation interface on the mobile terminal, and setting the operation interface as a playing interface of the simulated guitar;
  • the operation interface comprises a sound area and a string area
  • the timbre region includes an array of a plurality of buttons according to the timbre of the guitar, each of the buttons mapping a timbre number of a chord information, and the timbre number of the chord information is loaded when the operation interface is loaded RAM;
  • the string area includes six strings that simulate the guitar hole portion for the user to play.
  • a further improvement of the system for playing a simulated guitar to realize unlocking of a mobile terminal is that the operation interface includes a chord information creation interface, and the system further includes a chord information creation module;
  • the chord information creation module collects the cipher number of the chord information collected by the collection module in the form of a character string and saves the chord database in the chord database.
  • a further improvement of the system for playing the simulated guitar to realize the unlocking of the mobile terminal is that the operation interface comprises a password creation interface, and the system further comprises an encryption module;
  • the password ciphertext is used as the unlock password by the password creation module, and is saved in the chord database.
  • FIG. 1 is a flow chart of a method for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 2 is a structural block diagram of a system for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 3 is a schematic diagram of an unlocking interface of a system for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 4 is a schematic diagram of a chord information creation interface of a system for playing a simulated guitar to unlock a mobile terminal of the present invention.
  • Figure 5 is a diagram showing the basic structure of chord information in a chord database of a system for playing a simulated guitar to unlock a mobile terminal.
  • FIG. 6 is a schematic diagram of a chord information retrieval interface of a system for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 7 is a flow chart of performing chord information retrieval in the method of playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 8 is a flow chart of creating chord information in the method of playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • Fig. 9 is a view showing the basic structure of chord information as an unlock password in the chord database of the system for playing the simulated guitar to realize the unlocking of the mobile terminal of the present invention.
  • FIG. 10 is a flow chart showing the function setting in the method of playing the simulated guitar to unlock the mobile terminal of the present invention.
  • FIG. 11 is a schematic diagram of a ciphertext conversion of a system for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 12 is a flow chart showing the encryption of the unlock password creation in the method of playing the simulated guitar to unlock the mobile terminal of the present invention.
  • FIG. 13 is a flow chart of unlocking in a method for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 14 is a diagram showing the correspondence relationship between the chord information and the position of the array in the system for playing the simulated guitar to unlock the mobile terminal of the present invention.
  • 15 is a flow chart of data recording in the method of playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • 16 is a flow chart of unlocking password matching in the method of playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • FIG. 1 is a flow chart of a method for playing a simulated guitar to unlock a mobile terminal according to the present invention. As shown in FIG. 1 , the method for playing the simulated guitar to unlock the mobile terminal of the present invention comprises the following steps:
  • Step S1 creating an unlock password, where the password ciphertext of the unlock password includes a sequence of value pairs consisting of a string number and a timbre number, the timbre number being mapped with the chord information;
  • Step S2 setting an unlock interface of the mobile terminal as a playing interface of the simulated guitar
  • Step S3 collecting a sequence of numerical values composed of a string number and a timbre number that are played when playing on the playing interface of the unlocking interface;
  • Step S4 digitizing the sequence of the collected string number and the timbre number to convert the sequence to generate a ciphertext, and comparing the ciphertext with the saved ciphertext of the unlocked password;
  • Step S5 Unlocking the mobile terminal in a case where the matching ciphertext of the playing cipher and the unlocking password is matched.
  • the method for playing the simulated guitar to unlock the mobile terminal of the present invention further includes: creating a chord database, and storing the created chord information and the unlock password in the chord database.
  • the chord information creation interface is a playing interface of the simulated guitar, performing chord playing on the playing interface of the chord information creating interface, and recording the jing number of the playing chord information ;
  • the cipher number of each chord information recorded is identified by a name in the form of a string
  • chord information of the name identification is saved in the chord database.
  • step S1 creating an unlock password, including:
  • the password creation interface is a playing interface of the simulated guitar, playing the music on the playing interface of the password creating interface, and recording all the strings and sounds of the playing during the playing of the music. a sequence of values for the item number;
  • the sequence of all the recorded string numbers and the timbre numbers is encrypted and processed as the password ciphertext of the unlock password.
  • the playing part of an ordinary guitar mainly includes the neck and the box.
  • the neck is divided into a plurality of squares from the top down, which is called a piano, also called a sound.
  • the guitar has a total of six strings, each of which corresponds to six strings.
  • the player refers to the guitar spectrum, refers to the chord content, presses the specified string in the corresponding sound, and moves the string according to the score in the sound hole of the cabinet (single or continuous dialing, also known as “dial” Strings or "sweeping strings”), emits a tone, which is the basic operation of playing a guitar.
  • the software interface is divided into two areas: the sound area and the string area.
  • the timbre area includes an array of buttons based on the guitar's timbre, each button mapping a chord information that is loaded into memory as the interface loads.
  • the string area simulates the six strings of the guitar hole for the user to play, and the user can directly “toggle” or “Slide” these strings to simulate the “pitch” and “sweep” actions during performance.
  • step S2 setting the unlock interface of the mobile terminal to the playing interface of the simulated guitar, including:
  • timbre region Configuring the timbre region according to the timbre of the guitar as an array of a plurality of buttons, each of the buttons mapping a timbre number of a chord information, the timbre number of the chord information being loaded when the unlocking interface is loaded Load memory;
  • the string area is set to simulate the six strings of the guitar hole portion for the user to play.
  • a sequence of numerical values consisting of a string number and a timbre number that are played when playing on the playing interface of the unlocking interface is acquired, including:
  • a sequence of numerical pairs consisting of a string number and a timbre number is extracted from the digitized processed input information.
  • the invention plays a simulation guitar to realize the method of unlocking the mobile terminal, and realizes the screen unlocking by playing the simulated guitar, which gives a new visual and auditory experience compared with the general sliding unlocking, increases the interest of the user to unlock, and improves the user's interest. user experience. And by simulating the chord information played by the guitar as the unlocking password, since the number of combinations of chord information is large, the length of the password can be ensured, the password is more complicated, it is difficult to crack, and the security is increased.
  • FIG. 2 is a structural block diagram of a system for playing a simulated guitar to unlock a mobile terminal according to the present invention.
  • the system for playing a simulated guitar to unlock a mobile terminal includes:
  • chord database 10 stores chord information and an unlock password
  • the password ciphertext of the unlock password includes a sequence of value pairs consisting of a string number and a timbre number, the timbre number being mapped with chord information; Chords are used, and the chords used in different songs are often different and more varied.
  • the present invention establishes a chord database, which provides functions for creating, deleting, editing, and searching chord data, and saves chord information commonly used for performance. At the same time, it also supports the operation of adding chord information from the chord library, which is convenient for calling when playing;
  • a password creation module configured to create an unlock password
  • the collecting module 30 is configured to collect a sequence of value pairs composed of a string number and a timbre number that are played when playing on the playing interface of the unlocking interface;
  • the verification module 40 is configured to digitize the sequence of the collected string number and the timbre number, convert the generated ciphertext, and compare the ciphertext with the saved ciphertext of the saved unlock password;
  • the unlocking module 50 is configured to unlock the mobile terminal in a case where the matching ciphertext of the playing cipher and the unlocking password is matched.
  • the setting module 60 is configured to create a corresponding operation interface on the mobile terminal, and set the operation interface as a playing interface of the simulated guitar.
  • the operation interface includes a syllable area and a chord area;
  • the syllable area includes an array of a plurality of buttons according to the timbre of the guitar, and each of the buttons maps a timbre number of a chord information, The timbre number of the chord information is loaded into the memory when the operation interface is loaded;
  • the string area includes six strings simulating the guitar hole portion for the user to play.
  • the operation interface includes an unlocking interface, as shown in FIG. 3, including a timbre region 610, a chord region 620, and a lock screen background region 630.
  • an unlocking interface as shown in FIG. 3, including a timbre region 610, a chord region 620, and a lock screen background region 630.
  • the unlocking of the mobile terminal is performed in the case where the acquired chord information is matched with the pre-stored chord information as the unlock password.
  • the sound area 610 is constructed using a ViewPager control and includes a plurality of pages, each of which contains an array of a plurality of buttons.
  • Each button is a Button control, corresponding to a chord, Button sets a click event listener, listens for click events and updates the playing chord to the chord corresponding to the button;
  • the string area 620 mainly includes six ImageView controls for loading the string cut chart, and the control sets the OnTouchListener listener to monitor the touch event, and when playing, the corresponding scale is played and the pressed action is recorded;
  • the lock screen background area 630 is the background of the entire interface. When the interface is loaded, the corresponding background image is loaded according to the style set by the setting module.
  • the operation interface includes a chord information creation interface, and the chord information creation interface is as shown in FIG. 4.
  • the chord information creation interface displays the syllable 710, the string 720, and the name editing area 730 in a graphical form.
  • the user touches the strings of the corresponding timbre as needed, indicating that the corresponding amount of silk is pressed during the performance, and the name editing area 730 is used to edit the name of the chord information, and the chord information is uniquely checked when it is saved.
  • the system further includes a chord information creation module 70; the chord information input on the playing interface of the chord information creation interface is acquired by the acquisition module 30; the chords collected by the acquisition module 30 are generated by the chord information creation module 70.
  • the timbre of the information is identified by a name in the form of a character string and stored in the chord database 10.
  • the operation interface includes a password creation interface
  • the system further includes an encryption module 80.
  • the collection module 30 collects all the string numbers and the sound number of the music piece input on the playing interface of the password creation interface. The value pairs are sequenced; the sequence consisting of all the string numbers and the phone numbers of the music pieces collected by the acquisition module 30 is encrypted by the encryption module 80 to obtain a password ciphertext; the password ciphertext is used by the password creation module 20 as The unlock password is stored in the chord database 10.
  • the function of the setting module 60 includes: setting the screen of the mobile terminal as an unlocking interface when unlocking is required; when needed When creating an unlock password, set the screen of the mobile terminal to the password creation interface; when creating the chord information, set the screen of the mobile terminal to the chord information creation interface.
  • FIG. 5 is a basic structure of chord information in a chord database of a system for playing a simulated guitar to unlock a mobile terminal.
  • the basic structure of the chord information shown in FIG. 5 includes: a chord name, a chord field, and a chord category.
  • chord name uses a String string to uniquely identify a chord information.
  • the chord information of the same name is not allowed in the chord database.
  • the chord name will be used as the key value for uniquely identifying the chord information during performance.
  • the chord field represents the content of the chord.
  • the guitar has 6 strings, and one chord corresponds to a maximum of 6 sounds.
  • the chord field uses six integers to represent the position of the timbre pressed by each string in the chord.
  • a typical classical guitar has 12 sound positions, ranging from 1 to 12.
  • the guitar also has a string external sound and an empty string sound, the string outer sound is the sound inside the chord, and the "X" mark is used on the chord spectrum, indicating that the string is not played in the chord, the system will The sound number of this sound is designed to be -1; the empty string sound is the sound of the left hand not according to the silk thread, and the sound of the right hand empty play string is marked with "0" on the chord spectrum, and the sound number is set to 0 in the system.
  • the chord category is a field that classifies chords according to music knowledge and is used for chord retrieval. From the perspective of music, there are a total of seven CDEFGAB names, corresponding to do, rai, mi, fa, so, la, xi. The chords are categorized according to these seven names, and are classified into CDEFGAB chords, which are the seven main categories. Each main class chord can be divided into 3 sub-categories according to raising halftones, reducing halftones, and restoring natural tones.
  • the chord database divides all chords into seven categories of CDEFGAB, each of which is divided into three categories based on the lift sound.
  • the class1 field represents the main class
  • the class2 field represents the subclass.
  • chord database saves the chord information used to play the song.
  • the number of saves may be very large. Similarly, it may not be able to add, delete, or modify it during use. Therefore, you need to retrieve the used chord information in the chord database before playing and add it to the list. Correspondingly, the loaded chord information will appear in the performance interface.
  • This section uses the ViewPager control to provide multiple pages to save chords to meet the song's need for the number of chords.
  • the setting module sets the screen of the mobile terminal as a chord information retrieval interface, which uses the ViewPager control to provide multiple pages to save chords to meet the song's demand for the number of chords.
  • the chord information retrieval interface includes a main class button area 810, a sub-type button area 820, a chord list 830, and a chord pressing indication area 840.
  • the main class button area 810 includes seven buttons, which respectively represent seven chord main classes.
  • the button uses the Radius Button control, and after pressing the button, the chord list 830 will reload the chords contained in the class.
  • Sub-class button area 820 package Contains 3 buttons, corresponding to 3 mid-tones.
  • the button Clicking on the button displays the chords contained in the corresponding subclass under the current main class.
  • the chord list 830 is used for chords under the currently selected category, and the long press chord list 830 will enter the chord editing interface for chord editing.
  • the chord press indication area 840 graphically displays the state of the current chord corresponding to the silk press.
  • FIG. 7 is a flow chart of performing chord information retrieval in the method for playing the simulated guitar to unlock the mobile terminal according to the present invention.
  • the chord retrieval mainly includes the following steps:
  • chord main tone category select the main class where the chord is located, that is, the button in CDEFGAB, and load the chord list;
  • FIG. 8 is a flow chart of creating chord information in the method for playing a simulated guitar to unlock a mobile terminal according to the present invention. Creating chord information mainly includes the following steps:
  • chord information is used when creating the unlock password.
  • the program creates a password data relationship table.
  • the chord related information is saved to the password data table during the chord information addition process, and is used to unlock the password.
  • the basic structure of the chord information is shown in Figure 9.
  • the chord name is the name of the chord information used for the password setting;
  • the chord ID is the ID of the chord information located in the chord database;
  • the chord number is the position added to the chord information.
  • chord database allows deletion. Before deleting, you need to check whether the chord information is associated with the unlock password. If there is an association, the deletion is not allowed to avoid accidentally deleting the chord information used by the unlock password.
  • the character string of the chord information at the time of performance is combined to form a sequence as the password plaintext. That is, the string composition sequence of the chord information of each toggle or slide string is sequentially saved as the unlock password.
  • the password plaintext is a sequence consisting of a number of strings and a timbre number.
  • the string number is the serial number of the dialed string, corresponding to 1 to 6; the sound number is the position of the sound of the silk press, and the classical guitar contains 12 sounds, which are expressed as 1 to 12, in addition to There are external and empty strings, which are represented as -1 and 0, respectively.
  • Password is in Encryption is required before storage.
  • the setting module sets the screen of the mobile terminal to the function setting interface.
  • the password creation interface can also be operated together, including:
  • the password creation interface is basically the same as the lock screen interface. Both display the simulated guitar strings for the user to play. At least two steps need to be performed when recording the password. The password can be saved only when the user inputs twice.
  • the system In order to avoid malicious input cracking, the system also sets a malicious crack mode. After the mode is enabled, the user enters the password incorrectly after reaching a certain number of times and then delays the time of re-entering. The switch status, the number of input errors, and the delay time can all be set manually.
  • the content of the unlock password is saved in clear password.
  • the password can be converted into a password ciphertext and saved in the chord database through the encryption module.
  • the data consisting of the string number and the timbre number played during the performance is converted into ciphertext as the unlocked ciphertext sequence, as shown in FIG. 11 is a schematic diagram of converting the plaintext of the password into the ciphertext of the password.
  • the process of unlocking the password to create encryption is as shown in Figure 12. The main steps are as follows:
  • step 3 judging whether the playing is over, generally stipulates that the user stops inputting for a period of time, and it is determined that the input is finished. If the input is finished, step 3 is performed; otherwise, the input is continued, and the process proceeds to step 1;
  • step 4 determine whether it is a password, if not, then go to step 1, re-enter it, otherwise go to step 5;
  • step 5 Determine whether the two input passwords are consistent. If they are inconsistent, the input error is prompted, and the process proceeds to step 1.
  • the unlocking module mainly functions as playing a guitar in the playing interface on the unlocking interface, and the mobile terminal plays the content of the performance and digitizes the content of the performance, and compares with the stored unlocking password, and performs the unlocking operation.
  • the unlocking process is as shown 13, mainly including:
  • the loading function involves the loading of the tone library and the processing of the interface loading, including the setting of the interface monitoring;
  • the input processing mainly processes the input at the time of performance, plays the corresponding tone according to the input, and converts the input into corresponding data;
  • the password verification function is mainly based on the result of the user's input data, and uses SHA1 encryption to compare the converted ciphertext with the stored ciphertext. If the result is consistent, the unlock operation is performed, otherwise the input is re-entered. In the reference settings, the number of errors is limited, and it is decided whether to delay the user to input again.
  • the present invention records the various scales as a resource for the APK file.
  • classical guitars have 12 pianos from top to bottom, corresponding to 12 sounds, and each sound has 6 strings, so there are 78 scales (including 6 empty strings, that is, no silk is pressed). Beep the sound of the strings).
  • These sound resources need to be loaded into the memory before playing, and the corresponding scale files are controlled to be played according to the touched strings and chords.
  • the present invention uses the SoundPool class in Android to play scale files. Compared with other play classes, SoundPool occupies low resources, has less delay, supports simultaneous playback of multiple sounds, and can also set the quality, volume, and playback rate of audio playback. Great for the usage scenarios of this app.
  • the present invention designs a 13 ⁇ 6 shaped two-dimensional array (here for a 12-tone classical guitar), and returns the ID of the resource when the SoundPool is loaded into the scale resource, according to the scale.
  • the position and the position of the strings make it easy to obtain the scale resource ID for playback.
  • the guitar playing methods mainly include “pitching strings” and “sweeping strings”.
  • “Plipping strings” is to use a finger to move a certain string.
  • “Sweeping the string” means that the finger continuously sweeps a plurality of strings. In implementation, we need to capture the touch event of the string control and the click event of the chord information, and control the content of the scale according to the currently dialed strings and chords.
  • chord information page During the loading of the interface, the button controls in the chord information page need to be dynamically loaded according to the unlock password usage flag in the chord database.
  • chord information is abstracted into a class ChordItem class in the system. The main contents are as follows:
  • the system creates a one-dimensional array instantiated by the class, each member pointing to a chord information object containing the chord name and content.
  • chord information is numbered according to the principle that the page number is from small to large and the page internal row is prioritized. This number corresponds to the subscript of the chord information array. The correspondence between the chord information and the position of the array is as shown in FIG. 14.
  • the software needs to express the action of playing in the form of data.
  • a series of performance actions are mainly decomposed to obtain a sequence of actions of a single plucked string.
  • the action can be represented by a pair of numerical values of the string number and the timbre number played, the string number corresponding to the finger plucking the string position, the timbre number being the position where the string timbre is pressed, and the plucking tone of the chord sound is 0. .
  • the conversion of the performance action to the data string can be achieved.
  • FIG. 16 is a schematic diagram of the process of unlocking the password matching. The process is as follows:
  • the input string is encrypted using the SHA1 algorithm and compared with the set password string;
  • the string number of the string is collected and The sequence of the pressed timbre, the sequence of the two represents the plucking action of one string, and the plurality of consecutive plucking corresponds to the sequence of the plurality of string numbers and the timbre number, and is stored in the chord database as the unlocking password;
  • the unlocking interface is called up and played on the mobile terminal, and the string number and the code number sequence of the strings are played and encrypted when playing, and the obtained ciphertext is saved in the chord database. Unlock the password for comparison;
  • the comparison result is matched, and the screen is unlocked for the mobile terminal, otherwise the password needs to be re-entered.
  • the method and system for playing the simulated guitar to realize the unlocking of the mobile terminal realize the unlocking of the screen by playing the simulated guitar, and the new visual and auditory experience is compared with the general sliding unlocking, thereby increasing the interest of the user to unlock, Improve the user experience.
  • simulating the chord information played by the guitar as the unlocking password since the number of combinations of chord information is large, the length of the password can be ensured, the password is more complicated, it is difficult to crack, and the security is increased.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electrophonic Musical Instruments (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种弹奏仿真吉他实现移动终端解锁的方法及系统,所述方法包括:创建解锁密码,解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,音品号与和弦信息相映射;将移动终端的解锁界面设置为仿真吉他的弹奏界面;采集在解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并将演奏密文与保存的解锁密码的密码密文进行比对;以及在比对得到演奏密文与解锁密码的密码密文相匹配的情形下,解锁移动终端。本发明通过弹奏仿真吉他,实现屏幕解锁,给人以全新的视觉和听觉体验,增加用户解锁的趣味性,提高了用户体验。

Description

一种弹奏仿真吉他实现移动终端解锁的方法及系统 技术领域
本发明涉及计算机技术领域,特别是涉及一种弹奏仿真吉他实现移动终端解锁的方法及系统。
背景技术
随着智能手机技术的不断发展,各种软硬件技术层出不穷,其性能和功能都在不断提升,很大程度上满足了用户的需求。与此同时,人们对手机的外观和用户体验的要求也在不断提高,好的界面设计和交互也成为手机的一大亮点,而锁屏模块作为用户接触较多的模块之一,自然成为用户关注焦点。
目前市场上手机都支持主流并且已经成熟的解锁方式,包括滑屏解锁、数字组合等等。虽然很多锁屏软件风格独特,但本质上却无法脱离传统解锁方式的范畴,带给用户千篇一律的感觉。这种千篇一律的交互往往让用户觉得锁屏只是保护个人隐私的工具,毫无趣味性可言。锁屏作为给手机增加亮点的模块,其作用也将会大打折扣。应用市场虽然也有不少的锁屏软件,而且风格样式繁多,但是大多解锁软件的实质都没有摆脱滑屏解锁或者密码组合的范畴,不少软件只是做了主题的替换。虽然部分解锁软件也声称乐器解锁,实际上却仅仅替换锁屏界面背景,解锁动作依旧是简单的滑屏,缺乏丰富的交互过程,体验效果不佳。
发明内容
有鉴于以上所述现有技术的缺点,本发明的目的在于提供一种弹奏仿真吉他实现移动终端解锁的方法及系统,实现手机解锁,给人以全新的视觉和听觉体验,增加解锁的趣味性,用于解决现有技术中手机解锁方式形式单一、缺乏趣味性的问题。
为实现上述目的及其他相关目的,本发明提供了一种弹奏仿真吉他实现移动终端解锁的方法,包括以下步骤:
创建解锁密码,所述解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,所述音品号与和弦信息相映射;
将移动终端的解锁界面设置为仿真吉他的弹奏界面;
采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;
将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并 将所述演奏密文与保存的解锁密码的密码密文进行比对;以及
在比对得到所述演奏密文与所述解锁密码的密码密文相匹配的情形下,解锁所述移动终端。
本发明弹奏仿真吉他实现移动终端解锁的方法,通过弹奏仿真吉他,实现屏幕解锁,与一般的滑动解锁相比,给人以全新的视觉和听觉体验,增加用户解锁的趣味性,提高了用户体验。并且通过仿真吉他弹奏的和弦信息作为解锁密码,由于和弦信息的组合方式数量众多,可以保证更长的密码长度,密码复杂程度更大,难以破解,增加安全性。
本发明弹奏仿真吉他实现移动终端解锁的方法的进一步改进在于,还包括:创建和弦数据库,在所述和弦数据库中存储创建的和弦信息和解锁密码。
本发明弹奏仿真吉他实现移动终端解锁的方法的进一步改进在于,创建和弦信息,包括:
在移动终端上创建和弦信息创建界面,所述和弦信息创建界面为仿真吉他的弹奏界面,在所述和弦信息创建界面的弹奏界面进行和弦弹奏,录制弹奏的和弦信息的音品号;
将录制的每一个和弦信息的音品号以字符串的形式进行名称标识;以及
将名称标识的所述和弦信息保存于所述和弦数据库。
本发明弹奏仿真吉他实现移动终端解锁的方法的进一步改进在于,创建解锁密码,包括:
在移动终端上创建密码创建界面,所述密码创建界面为仿真吉他的弹奏界面,在所述密码创建界面的弹奏界面进行乐曲弹奏,录制乐曲演奏过程中所有拨动的琴弦号和音品号组成的数值对序列;以及
将录制的所有琴弦号和音品号组成的数值对序列经过加密处理,作为解锁密码的密码密文。
本发明弹奏仿真吉他实现移动终端解锁的方法的进一步改进在于,将移动终端的解锁界面设置为仿真吉他的弹奏界面,包括:
提供解锁界面,将所述解锁界面划分为音品区域和琴弦区域;
将所述音品区域根据吉他的音品设置为由多个按钮组成的阵列,每个所述按钮映射一条和弦信息的音品号,所述和弦信息的音品号在所述解锁界面加载时载入内存;以及
将所述琴弦区域设置为仿真吉他琴孔部位的六根琴弦以供用户进行弹奏。
本发明弹奏仿真吉他实现移动终端解锁的方法的进一步改进在于,采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列,包括:
采集在所述解锁界面上按钮和琴弦的输入信息,将所述输入信息作数字化处理;以及
从数字化处理的所述输入信息中提取琴弦号和音品号组成的数值对序列。
本发明还提供了一种弹奏仿真吉他实现移动终端解锁的系统,包括:
和弦数据库,所述和弦数据库存储和弦信息和解锁密码,所述解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,所述音品号与和弦信息相映射;
密码创建模块,用于创建解锁密码;
采集模块,用于采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;
验证模块,用于将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并将所述演奏密文与保存的解锁密码的密码密文进行比对;
解锁模块,用于在比对得到所述演奏密文与所述解锁密码的密码密文相匹配的情形下,解锁所述移动终端。
本发明弹奏仿真吉他实现移动终端解锁的系统,通过弹奏仿真吉他,实现屏幕解锁,与一般的滑动解锁相比,给人以全新的视觉和听觉体验,增加用户解锁的趣味性,提高了用户体验。并且通过仿真吉他弹奏的和弦信息作为解锁密码,由于和弦信息的组合方式数量众多,可以保证更长的密码长度,密码复杂程度更大,难以破解,增加安全性。
本发明弹奏仿真吉他实现移动终端解锁的系统的进一步改进在于,还包括设置模块,用于在移动终端上创建相应的操作界面,并将所述操作界面设置为仿真吉他的弹奏界面;
其中,所述操作界面包括音品区域和琴弦区域;
所述音品区域根据吉他的音品包括由多个按钮组成的阵列,每个所述按钮映射一条和弦信息的音品号,所述和弦信息的音品号在所述操作界面加载时载入内存;
所述琴弦区域包括仿真吉他琴孔部位的六根琴弦以供用户进行弹奏。
本发明弹奏仿真吉他实现移动终端解锁的系统的进一步改进在于,所述操作界面包括和弦信息创建界面,所述系统还包括和弦信息创建模块;
通过所述采集模块采集在所述和弦信息创建界面的弹奏界面上所输入的和弦信息的音品号;以及
通过所述和弦信息创建模块将所述采集模块采集的和弦信息的音品号以字符串的形式进行名称标识并保存于所述和弦数据库。
本发明弹奏仿真吉他实现移动终端解锁的系统的进一步改进在于,所述操作界面包括密码创建界面,所述系统还包括加密模块;
通过所述采集模块采集在所述密码创建界面的弹奏界面上所输入的乐曲的全部琴弦号和音品号组成的数值对序列;
通过所述加密模块将所述采集模块采集的乐曲的全部琴弦号和音品号组成的数值对序列进行加密处理,得到密码密文;以及
通过所述密码创建模块将所述密码密文作为所述解锁密码,并保存于所述和弦数据库。
附图说明
图1是本发明弹奏仿真吉他实现移动终端解锁的方法的流程图。
图2是本发明弹奏仿真吉他实现移动终端解锁的系统的结构框图。
图3是本发明弹奏仿真吉他实现移动终端解锁的系统的解锁界面的示意图。
图4是本发明弹奏仿真吉他实现移动终端解锁的系统的和弦信息创建界面的示意图。
图5是本发明弹奏仿真吉他实现移动终端解锁的系统的和弦数据库中的和弦信息的基本结构。
图6是本发明弹奏仿真吉他实现移动终端解锁的系统的和弦信息检索界面的示意图。
图7是本发明弹奏仿真吉他实现移动终端解锁的方法中进行和弦信息检索的流程图。
图8是本发明弹奏仿真吉他实现移动终端解锁的方法中创建和弦信息的流程图。
图9是本发明弹奏仿真吉他实现移动终端解锁的系统的和弦数据库中作为解锁密码的和弦信息的基本结构。
图10是本发明弹奏仿真吉他实现移动终端解锁的方法中进行功能设置的流程图。
图11是本发明弹奏仿真吉他实现移动终端解锁的系统的密码密文转换示意图。
图12是本发明弹奏仿真吉他实现移动终端解锁的方法中进行解锁密码创建加密的流程图。
图13是本发明弹奏仿真吉他实现移动终端解锁的方法中进行解锁的流程图。
图14是本发明弹奏仿真吉他实现移动终端解锁的系统中和弦信息与数组位置的对应关系图。
图15是本发明弹奏仿真吉他实现移动终端解锁的方法中的数据记录流程图。
图16是本发明弹奏仿真吉他实现移动终端解锁的方法中解锁密码匹配的流程图。
元件标号说明
10              和弦数据库
20                密码创建模块
30                采集模块
40                验证模块
50                解锁模块
60                设置模块
610               音品区域
620               琴弦区域
630               锁屏背景区域
70                和弦信息创建模块
710               音品
720               琴弦
730               名称编辑区域
80                加密模块
810               主类按钮区
820               子类按钮区
830               和弦列表
840               弦按压示意区
S1~S5            方法步骤
具体实施方式
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
请参阅图1,图1是本发明弹奏仿真吉他实现移动终端解锁的方法的流程图。如图1所示,本发明弹奏仿真吉他实现移动终端解锁的方法,包括以下步骤:
步骤S1:创建解锁密码,所述解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,所述音品号与和弦信息相映射;
步骤S2:将移动终端的解锁界面设置为仿真吉他的弹奏界面;
步骤S3:采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;
步骤S4:将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并将所述演奏密文与保存的解锁密码的密码密文进行比对;以及
步骤S5:在比对得到所述演奏密文与所述解锁密码的密码密文相匹配的情形下,解锁所述移动终端。
进一步地,本发明弹奏仿真吉他实现移动终端解锁的方法,还包括:创建和弦数据库,在所述和弦数据库中存储创建的和弦信息和解锁密码。
针对上述的创建和弦信息,包括:
在移动终端上创建和弦信息创建界面,所述和弦信息创建界面为仿真吉他的弹奏界面,在所述和弦信息创建界面的弹奏界面进行和弦弹奏,录制弹奏的和弦信息的音品号;
将录制的每一个和弦信息的音品号以字符串的形式进行名称标识;以及
将名称标识的所述和弦信息保存于所述和弦数据库。
另外,针对上述步骤S1:创建解锁密码,包括:
在移动终端上创建密码创建界面,所述密码创建界面为仿真吉他的弹奏界面,在所述密码创建界面的弹奏界面进行乐曲弹奏,录制乐曲演奏过程中所有拨动的琴弦号和音品号组成的数值对序列;以及
将录制的所有琴弦号和音品号组成的数值对序列经过加密处理,作为解锁密码的密码密文。
我们知道,一把普通的吉他的演奏部位主要包括琴颈和琴箱,琴颈从上倒下划分成多个格子,称之为琴格,也称为音品。吉他总共有六根琴弦,每个音品均对应六根琴弦。演奏过程中,演奏者参考吉他谱,参照和弦内容按下对应音品中指定的琴弦,并按照乐谱在琴箱的音孔处拨动琴弦(单个或者连续拨动,又称为“拨弦”或者“扫弦”),发出音调,这是演奏吉他的基本操作。
一首乐曲往往会使用到多个和弦,由于吉他琴格较多而手机尺寸限制,模拟完整的吉他(包括琴颈和琴箱)几乎是不可行的。这里考虑将琴颈功能进行简化,把和弦信息保存起来,抽象成选项,演奏时只需要选择选项获取和弦信息,而不用通过模拟手指操作动作来获取。因此,软件界面被划分成两个区域:音品区域和琴弦区域。音品区域根据吉他的音品包括由多个按钮组成的阵列,每个按钮映射一条和弦信息,这些和弦信息在界面加载时载入内存。琴弦区域仿真吉他琴孔部位的六根琴弦以供用户进行弹奏,用户可以直接“拨动”或者 “滑动”这些琴弦,模拟演奏时的“拨弦”和“扫弦”动作。
针对上述步骤S2:将移动终端的解锁界面设置为仿真吉他的弹奏界面,包括:
提供解锁界面,将所述解锁界面划分为音品区域和琴弦区域;
将所述音品区域根据吉他的音品设置为由多个按钮组成的阵列,每个所述按钮映射一条和弦信息的音品号,所述和弦信息的音品号在所述解锁界面加载时载入内存;以及
将所述琴弦区域设置为仿真吉他琴孔部位的六根琴弦以供用户进行弹奏。
针对上述步骤S3,采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列,包括:
采集在所述解锁界面上按钮和琴弦的输入信息,将所述输入信息作数字化处理;以及
从数字化处理的所述输入信息中提取琴弦号和音品号组成的数值对序列。
本发明弹奏仿真吉他实现移动终端解锁的方法,通过弹奏仿真吉他,实现屏幕解锁,与一般的滑动解锁相比,给人以全新的视觉和听觉体验,增加用户解锁的趣味性,提高了用户体验。并且通过仿真吉他弹奏的和弦信息作为解锁密码,由于和弦信息的组合方式数量众多,可以保证更长的密码长度,密码复杂程度更大,难以破解,增加安全性。
为了实现上述方法,本发明还提供了一种弹奏仿真吉他实现移动终端解锁的系统。请参阅图2,图2是本发明弹奏仿真吉他实现移动终端解锁的系统的结构框图。如图2所示,本发明弹奏仿真吉他实现移动终端解锁的系统,包括:
和弦数据库10,和弦数据库10存储和弦信息和解锁密码,所述解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,所述音品号与和弦信息相映射;吉他演奏往往会用到和弦,不同的乐曲使用的和弦往往不同,而且种类较多。为了提高演奏的效率、避免反复编辑和弦,本发明建立了和弦数据库,提供和弦数据的创建、删除、编辑和查找功能,保存演奏常用的和弦信息。同时,还支持从和弦库中检索添加为和弦信息操作,方便演奏时调用;
密码创建模块20,用于创建解锁密码;
采集模块30,用于采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;
验证模块40,用于将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并将所述演奏密文与保存的解锁密码的密码密文进行比对;
解锁模块50,用于在比对得到所述演奏密文与所述解锁密码的密码密文相匹配的情形下,解锁所述移动终端。
设置模块60,用于在移动终端上创建相应的操作界面,并将所述操作界面设置为仿真吉他的弹奏界面。其中,所述操作界面包括音品区域和琴弦区域;所述音品区域根据吉他的音品包括由多个按钮组成的阵列,每个所述按钮映射一条和弦信息的音品号,所述和弦信息的音品号在所述操作界面加载时载入内存;所述琴弦区域包括仿真吉他琴孔部位的六根琴弦以供用户进行弹奏。
具体地,所述操作界面包括解锁界面,解锁界面如图3所示,包括音品区域610、琴弦区域620和锁屏背景区域630。通过采集模块30采集在所述解锁界面的弹奏界面上所输入的乐曲的全部和弦信息;通过验证模块40将采集得到的和弦信息与预存的作为解锁密码的和弦信息进行比对;通过解锁模块50在比对得到采集得到的和弦信息与预存的作为解锁密码的和弦信息相匹配的情况下,解锁所述移动终端。
其中,音品区域610,使用ViewPager控件构造,包含多个页面,每个页面包含多个按钮组成的阵列。每个按钮为Button控件,对应一个和弦,Button设置点击事件监听器,监听点击事件并更新演奏和弦为按钮对应的和弦;
琴弦区域620,主要包含6个加载琴弦切图的ImageView控件,控件设置了OnTouchListener监听器,监听触摸事件,触摸时会播放相应的音阶并记录按下的动作;
锁屏背景区域630为整个界面的背景,该区域在界面加载时,根据设置模块设置的风格,加载相应的背景图片。
进一步地,所述操作界面包括和弦信息创建界面,和弦信息创建界面如图4所示,和弦信息创建界面以图形形式显示音品710、琴弦720和名称编辑区域730。用户根据需要,触摸相应音品的琴弦,表示演奏过程中相应额度品丝被按下,名称编辑区域730用于编辑和弦信息的名称,和弦信息保存时会对该名称进行唯一性检查。所述系统还包括和弦信息创建模块70;通过采集模块30采集在所述和弦信息创建界面的弹奏界面上所输入的和弦信息的音品;通过和弦信息创建模块70将采集模块30采集的和弦信息的音品以字符串的形式进行名称标识并保存于和弦数据库10。
进一步地,所述操作界面包括密码创建界面,所述系统还包括加密模块80;通过采集模块30采集在所述密码创建界面的弹奏界面上所输入的乐曲的全部琴弦号和音品号组成的数值对序列;通过加密模块80将采集模块30采集的乐曲的全部琴弦号和音品号组成的数值对序列进行加密处理,得到密码密文;通过密码创建模块20将所述密码密文作为所述解锁密码,并保存于和弦数据库10。
即设置模块60的功能包括:当需要解锁时将移动终端的屏幕设置为解锁界面;当需要 创建解锁密码时将移动终端的屏幕设置为密码创建界面;需要创建和弦信息时将移动终端的屏幕设置为和弦信息创建界面。
以下结合附图对本发明弹奏仿真吉他实现移动终端解锁的系统进行详细的介绍。
请参阅图5,图5是本发明弹奏仿真吉他实现移动终端解锁的系统的和弦数据库中的和弦信息的基本结构。如图5所示和弦信息的基本结构包括:和弦名称、和弦字段以及和弦类别。
其中,所述和弦名称,采用String字符串,用于唯一标识一个和弦信息,和弦数据库中不允许存在相同名称的和弦信息,该和弦名称将会在演奏时作为唯一标识和弦信息的键值。
所述和弦字段表示和弦的内容。吉他具有6根琴弦,一个和弦对应最多拥有6个音品。和弦字段使用6个整数,分别表示和弦中每根琴弦按下的音品位置。一般的古典吉他有12个音品位置,分别为1~12。除此之外,吉他还有弦外音和空弦音,弦外音即非本和弦内的音,在和弦谱上使用“X”标注,表示此弦在本和弦中不要弹奏,系统中将此音的音品号设计为-1;空弦音即左手不按品丝,右手空弹琴弦发出的声音,在和弦谱上使用“0”标注,系统中设置音品号为0。
所述和弦类别,是按照音乐知识,对和弦进行分类区别的字段,用于和弦检索。从音乐专业角度,一共有CDEFGAB七个音名,对应do、rai、mi、fa、so、la、xi这几个唱名。和弦按照这七个音名作为主音,划分为CDEFGAB七类和弦,即七大主类。每一个主类和弦又可以根据升高半个音、降低半个音以及还原自然音划分成3小类。和弦数据库将所有的和弦划分成CDEFGAB七大类,每一类又根据升降音划分成3类。其中class1字段表示主类,class2字段表示子类。
和弦数据库保存演奏乐曲使用的和弦信息,保存的数量可能非常庞大,同样,在使用过程中也避免不了对其进行增删查改等操作。因此演奏之前需要在和弦数据库中检索使用到的和弦信息,并添加到列表中,相应的,演奏界面就会出现载入的和弦信息。该部分使用ViewPager控件,提供多个页面保存和弦,满足歌曲对和弦数量的需求。
进行和弦信息检索操作时,设置模块会将移动终端的屏幕设置为和弦信息检索界面,该部分使用ViewPager控件,提供多个页面保存和弦,满足歌曲对和弦数量的需求。和弦信息检索界面如图6所示,包括主类按钮区810、子类按钮区820、和弦列表830以及和弦按压示意区840。其中,主类按钮区810包括7个按钮,分别表示7个和弦主类。按钮使用Radius Button控件,按下按钮之后,和弦列表830将重新加载该类包含的和弦。子类按钮区820包 含3个按钮,分别对应3个中音调。点击按钮则显示当前主类下相应子类包含的和弦。长按子类按钮区820的按钮可跳转到和弦信息创建界面,创建新的和弦信息。和弦列表830用于当前选中类别下的和弦,长按和弦列表830将会进入和弦编辑界面,进行和弦编辑。和弦按压示意区840则以图形形式,直观地展现当前和弦对应品丝按压的状态。
请参阅图7,图7是本发明弹奏仿真吉他实现移动终端解锁的方法中进行和弦信息检索的流程图。如图7所示,进行和弦检索,主要包括以下步骤:
1)选中和弦列表中的按钮;
2)根据和弦主音类别,选择和弦所在的主类,即CDEFGAB中的按钮,加载和弦列表;
3)根据和弦的是否升降音掉,选中相应的子类按钮,显示该分类下的和弦列表。
4)从和弦列表中查找和弦信息并选中,修改和弦数据库中的使用字段和位置字段,使用字段置成true,位置字段保存和弦信息按钮的位置。
请参阅图8,图8是本发明弹奏仿真吉他实现移动终端解锁的方法中创建和弦信息的流程图。创建和弦信息,主要包括以下步骤:
1)确定新建的和弦信息的大类(CDEFGAB),并选中大类按钮;
2)长按子类按钮区的按钮,弹出如图4所示的和弦信息创建界面;
3)根据和弦信息中各个琴弦按下音品的数值,拨动每一根琴弦对应的按钮控件,显示音品数值;
4)输入和弦信息的名称,点击保存按钮;
5)检索和弦信息的名称是否冲突,不冲突的话存入和弦数据库中,否则弹出提示。
创建解锁密码时会使用到和弦信息,为了保存密码弹奏时使用到的和弦信息,程序创建密码数据关系表,添加和弦信息过程中将和弦相关信息保存到密码数据表中,被用于解锁密码的和弦信息的基本结构如图9所示。所述和弦名称为密码设置使用的和弦信息的名称;所述和弦ID为和弦信息位于和弦数据库中的ID;所述和弦序号为添加到和弦信息的位置。
和弦数据库允许进行删除操作,删除之前需要检查和弦信息是否与解锁密码关联,若存在关联,则不允许删除,避免误删除解锁密码使用到的和弦信息。
为了提高软件的操作性,降低解锁难度,设置解锁密码时将演奏时的和弦信息的字符串进行组合,构成序列作为密码明文。即依次保存每一次拨动或者滑动琴弦的和弦信息的字符串构成序列作为解锁密码。所述密码明文是由若干琴弦号和音品号组成数据对构成的序列。琴弦号为拨动琴弦的序号,对应1~6;音品号为品丝按下的音品位置,一般古典吉他包含12个音品,表示为1~12,除此之外,还存在弦外音和空弦音,分别表示为-1和0。密码在 存储前需加密。
为了改善解锁体验,还可以增加功能设置。例如在弹奏时加入震动的效果,演奏时将会根据该开关控释是否随着琴弦拨动而产生震动。此外还有界面主题部分,可以通过设置替换不同的琴弦样式和琴箱背景。
进行功能设置时,设置模块将移动终端的屏幕设置为功能设置界面。结合图10所示,进行功能设置时,还可以结合密码创建界面一同操作,主要包括:
1)初次进入密码创建界面会提示用户创建密码,如果存在密码的情况下,提供用户输入密码验证且通过之后才允许进入后续操作界面。
2)密码创建界面与锁屏界面基本相同,均显示仿真的吉他琴弦,供用户演奏,录制密码时至少需要执行两次,在确保用户两次输入一样的情形下才能保存密码。
3)为了避免恶意输入破解,系统中还设置了恶意破解模式,开启该模式之后,用户输入密码错误到达一定次数之后就会推迟再次输入的时间。该开关状态、输错次数和延迟时间均可人为设置。
4)由于演奏旋律的长度不确定,并且弹奏较长的乐曲作为密码会造成创建和验证密码的时间增长,影响用户体验效果。因此,系统当中对密码的长度进行了限制,当演奏旋律长度超出限制时,只截取前段的内容加密作为解锁密码,后面部分自动忽略。
之前提到了将解锁密码的内容以密码明文形式保存,为了提高系统的安全性,避免密码以明文的形式保存,可以通过加密模块将密码明文转换成密码密文保存到和弦数据库中,用于将演奏过程中拨动的琴弦号和音品号组成的数据对序列转换成密文,作为所述解锁的密文序列,如图11所示为密码明文转换成密码密文的示意图。解锁密码创建加密的过程如图12所述,主要步骤如下:
1)判断输入是否超出长度限制,若没有,则执行步骤2,若超出,则执行步骤3;
2)判断弹奏是否结束,一般规定用户一段时间停止输入,就认定为输入结束,若输入结束,则执行步骤3,否则继续输入,跳转到步骤1;
3)将转换得到的数据序列进行SHA1加密,得到密文;
4)判断是否为确定密码,若不是,则跳转步骤1,重新输入一遍,否则执行步骤5;
5)判断两次输入密码是否一致,若不一致,则提示输入错误,跳转到步骤1;
6)保存加密得到的密文。
解锁模块主要表现为在解锁界面上的弹奏界面中演奏吉他,移动终端会播放演奏的内容并将演奏的内容数据化,与存储的解锁密码进行对比,相同则执行解锁操作。解锁过程如图 13所示,主要包括:
1)所述加载功能要涉及到音调库的加载以及界面加载的处理,包括界面监听的设置等;
2)所述输入处理主要处理演奏时的输入,根据输入播放相应的音调,并且将输入转换成对应的数据;
3)所述密码验证功能主要是根据用户的输入数据化得到的结果,使用SHA1加密,将转换得到的密文与存储的密文进行对比,结果一致则执行解锁操作,否则重新输入,同时还参考设置中对输错次数限制,决定是否推迟用户再次输入。
再次结合图3所示,为了保证触摸仿真琴弦后能够播放出相应的音调,本发明将各个音阶录制下来,作为APK文件的资源。一般古典吉他从上倒下共有12个琴格,对应12个音品,每个音品存在6根弦,所以一共有78个音阶(包括6个空弦音,即不按动任何品丝的情况下拨动琴弦发出的声音)。演奏之前需要将这些声音资源加载到内存当中,播放时则根据触摸的琴弦以及和弦,控制播放相应的音阶文件。
本发明使用Android中的SoundPool类来播放音阶文件,SoundPool相比其他的播放类,占用资源低,延迟少,支持同时播放多个声音,还可以自行设置音频播放时的品质、音量、播放速率。非常适合本应用的使用场景。
为了便于播放时检索到对应的音阶,本发明设计了13×6的整形二维数组(这里针对12音品的古典吉他),将SoundPool载入音阶资源时会返回资源的ID,按照音阶对应的音品号(空弦音为0)与二维数组行号、琴弦号与二维数组列号互相对应的原则,保存到二维数组相应的单元中,播放时只需要根据触动和弦的音品位置以及琴弦位置,就可以方便地获取音阶资源ID,进行播放。
吉他演奏手法主要包括“拨弦”和“扫弦”,“拨弦”就是用手指拨动某一根弦,“扫弦”就是手指连续扫动多根琴弦。在实现上,我们需要捕获琴弦控件的触摸事件以及和弦信息的点击事件,根据当前拨动的琴弦以及和弦,控制播放音阶的内容。
加载界面过程中,和弦信息页面中的按钮控件需要根据和弦数据库中解锁密码使用标志位动态加载。为了方便表示和访问,系统中将和弦信息进行抽象成类ChordItem类,其主要内容如下:
public class ChordItem{
private String mChordName;//和弦名称
private int[]mChordContent;//和弦内容
......
}
系统创建该类实例化的一维数组,每个成员指向和弦信息对象,其中包含和弦名称和内容。
和弦信息按照页面序号从小到大、页面内部行优先的原则编号,该编号对应和弦信息数组的下标。其中,和弦信息与数组位置的对应关系如图14所示。
为了捕获演奏的动作事件,在界面加载过程中需要对和弦信息按钮控件设置点击事件监听器OnClickListener,按下和弦信息按钮后立即更新当前的和弦信息的索引;对每个琴弦控件,则需要设置触摸事件监听器OnTouchListener。
当用户拨动某根“琴弦”,程序需要拦截MotionEvent.ACTION_DOWN事件,将弦号、当前和弦索引以及事件类型传递给play方法,播放相应的音阶。如果用户按下之后进行“扫弦”,即手指在多个琴弦之间滑动,则在MotionEvent.ACTION_MOVE事件处理分支当中,将划过的琴弦号、和弦索引以及事件类型传递给play方法播放,数据记录流程如图15所示。
为了更准确地表示演奏者弹奏和弦的动作,软件中需要将弹奏的动作以数据的形式表示出来,这里主要将一系列的演奏动作进行分解,得到单个拨动琴弦的动作序列,每个动作可以通过弹奏的琴弦号和音品号一对数值表示,琴弦号对应手指拨动琴弦位置,音品号则为琴弦音品按下的位置,空弦音的音品号为0。这样方式可实现演奏动作向数据串的转化。
演奏结束后得到最终的输入数据,此时需要进行密码的匹配,图16所示为解锁密码匹配的流程示意图,过程如下:
1)若没有设置密码,则任何输入均能够执行解锁操作;
2)若已经设置密码,则使用SHA1算法对输入串进行加密,并与设置的密码串进行对比;
3)若输入加密的内容与设置的密码内容一致,则解锁,否则检查是否设置密码输错次数限制;
4)若存在输错次数限制,则检查是否超过限制。超过则定时延迟输入密码,刷新密码输入界面;否则,输错次数自增,提示密码错误并重新输入密码;
5)若不存在输错次数限制,则提示密码错误并重新输入密码。
为了便于理解本发明,以下提供一个具体实施例,包括:
创建和弦数据库,在移动终端上调出和弦信息创建界面,将创建的和弦信息保存于和弦数据库中;
在移动终端上调出密码创建界面并进行乐曲弹奏,用户触发琴弦时采集琴弦的琴弦号和 按下的音品号,二者构成的序列表示一根琴弦的拨动动作,多个连续的拨动对应多个琴弦号和音品号的序列,作为解锁密码保存于和弦数据库中;
用户需要解锁时,在移动终端上调出解锁界面并进行弹奏,获取弹奏时拨动琴弦的弦号和音品号序列并进行加密,将得到的密文与之前保存于和弦数据库中的解锁密码进行比对;
如果演奏数据化得到的序列经过加密生成的密文与保存的一致,则比对结果为匹配,对移动终端进行屏幕解锁,否则需要重新输入密码。
本发明弹奏仿真吉他实现移动终端解锁的方法及系统,通过弹奏仿真吉他,实现屏幕解锁,与一般的滑动解锁相比,给人以全新的视觉和听觉体验,增加用户解锁的趣味性,提高了用户体验。并且通过仿真吉他弹奏的和弦信息作为解锁密码,由于和弦信息的组合方式数量众多,可以保证更长的密码长度,密码复杂程度更大,难以破解,增加安全性。
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。

Claims (10)

  1. 一种弹奏仿真吉他实现移动终端解锁的方法,其特征在于,包括以下步骤:
    创建解锁密码,所述解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,所述音品号与和弦信息相映射;
    将移动终端的解锁界面设置为仿真吉他的弹奏界面;
    采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;
    将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并将所述演奏密文与保存的解锁密码的密码密文进行比对;以及
    在比对得到所述演奏密文与所述解锁密码的密码密文相匹配的情形下,解锁所述移动终端。
  2. 根据权利要求1所述的弹奏仿真吉他实现移动终端解锁的方法,其特征在于,还包括:创建和弦数据库,在所述和弦数据库中存储创建的和弦信息和解锁密码。
  3. 根据权利要求2所述的弹奏仿真吉他实现移动终端解锁的方法,其特征在于,创建和弦信息,包括:
    在移动终端上创建和弦信息创建界面,所述和弦信息创建界面为仿真吉他的弹奏界面,在所述和弦信息创建界面的弹奏界面进行和弦弹奏,录制弹奏的和弦信息的音品号;
    将录制的每一个和弦信息的音品号以字符串的形式进行名称标识;以及
    将名称标识的所述和弦信息保存于所述和弦数据库。
  4. 根据权利要求1所述的弹奏仿真吉他实现移动终端解锁的方法,其特征在于,创建解锁密码,包括:
    在移动终端上创建密码创建界面,所述密码创建界面为仿真吉他的弹奏界面,在所述密码创建界面的弹奏界面进行乐曲弹奏,录制乐曲演奏过程中所有拨动的琴弦号和音品号组成的数值对序列;以及
    将录制的所有琴弦号和音品号组成的数值对序列经过加密处理,作为解锁密码的密码密文。
  5. 根据权利要求1所述的弹奏仿真吉他实现移动终端解锁的方法,其特征在于,将移动终端的解锁界面设置为仿真吉他的弹奏界面,包括:
    提供解锁界面,将所述解锁界面划分为音品区域和琴弦区域;
    将所述音品区域根据吉他的音品设置为由多个按钮组成的阵列,每个所述按钮映射一条和弦信息的音品号,所述和弦信息的音品号在所述解锁界面加载时载入内存;以及
    将所述琴弦区域设置为仿真吉他琴孔部位的六根琴弦以供用户进行弹奏。
  6. 根据权利要求5所述的弹奏仿真吉他实现移动终端解锁的方法,其特征在于,采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列,包括:
    采集在所述解锁界面上按钮和琴弦的输入信息,将所述输入信息作数字化处理;以及
    从数字化处理的所述输入信息中提取琴弦号和音品号组成的数值对序列。
  7. 一种弹奏仿真吉他实现移动终端解锁的系统,其特征在于,包括:
    和弦数据库,所述和弦数据库存储和弦信息和解锁密码,所述解锁密码的密码密文包括由琴弦号和音品号组成的数值对序列,所述音品号与和弦信息相映射;
    密码创建模块,用于创建解锁密码;
    采集模块,用于采集在所述解锁界面的弹奏界面上演奏时拨动的琴弦号和音品号组成的数值对序列;
    验证模块,用于将采集的琴弦号和音品号组成的数值对序列进行数字化处理之后转换生成演奏密文,并将所述演奏密文与保存的解锁密码的密码密文进行比对;
    解锁模块,用于在比对得到所述演奏密文与所述解锁密码的密码密文相匹配的情形下,解锁所述移动终端。
  8. 根据权利要求7所述的弹奏仿真吉他实现移动终端解锁的系统,其特征在于,还包括设置模块,用于在移动终端上创建相应的操作界面,并将所述操作界面设置为仿真吉他的弹奏界面;
    其中,所述操作界面包括音品区域和琴弦区域;
    所述音品区域根据吉他的音品包括由多个按钮组成的阵列,每个所述按钮映射一条和弦信息的音品号,所述和弦信息的音品号在所述操作界面加载时载入内存;
    所述琴弦区域包括仿真吉他琴孔部位的六根琴弦以供用户进行弹奏。
  9. 根据权利要求8所述的弹奏仿真吉他实现移动终端解锁的系统,其特征在于,所述操作界面包括和弦信息创建界面,所述系统还包括和弦信息创建模块;
    通过所述采集模块采集在所述和弦信息创建界面的弹奏界面上所输入的和弦信息的音品号;以及
    通过所述和弦信息创建模块将所述采集模块采集的和弦信息的音品号以字符串的形式进行名称标识并保存于所述和弦数据库。
  10. 根据权利要求7所述的弹奏仿真吉他实现移动终端解锁的系统,其特征在于,所述操作界面包括密码创建界面,所述系统还包括加密模块;
    通过所述采集模块采集在所述密码创建界面的弹奏界面上所输入的乐曲的全部琴弦号和音品号组成的数值对序列;
    通过所述加密模块将所述采集模块采集的乐曲的全部琴弦号和音品号组成的数值对序列进行加密处理,得到密码密文;以及
    通过所述密码创建模块将所述密码密文作为所述解锁密码,并保存于所述和弦数据库。
PCT/CN2015/093024 2015-05-29 2015-10-28 一种弹奏仿真吉他实现移动终端解锁的方法及系统 WO2016192287A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510288672.1A CN104836919B (zh) 2015-05-29 2015-05-29 一种弹奏仿真吉他实现移动终端解锁的方法及系统
CN201510288672.1 2015-05-29

Publications (1)

Publication Number Publication Date
WO2016192287A1 true WO2016192287A1 (zh) 2016-12-08

Family

ID=53814542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/093024 WO2016192287A1 (zh) 2015-05-29 2015-10-28 一种弹奏仿真吉他实现移动终端解锁的方法及系统

Country Status (2)

Country Link
CN (1) CN104836919B (zh)
WO (1) WO2016192287A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112331165A (zh) * 2020-11-09 2021-02-05 崔繁 智能吉他和弦辅助装置自定义和弦系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836919B (zh) * 2015-05-29 2018-03-06 上海斐讯数据通信技术有限公司 一种弹奏仿真吉他实现移动终端解锁的方法及系统
CN105260633B (zh) * 2015-11-20 2017-12-05 上海斐讯数据通信技术有限公司 一种基于多点触控的智能终端屏幕解锁方法及系统
CN106815513A (zh) * 2015-11-27 2017-06-09 北京金山安全软件有限公司 一种终端的解锁方法和相关装置及设备
CN106407767A (zh) * 2016-11-21 2017-02-15 上海斐讯数据通信技术有限公司 一种屏幕解锁延时装置和方法
CN110109606B (zh) * 2019-04-30 2021-02-26 维沃移动通信有限公司 一种解锁方法和移动终端

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142071A (zh) * 2011-04-26 2011-08-03 汉王科技股份有限公司 一种移动终端的验证方法及装置
CN102256011A (zh) * 2011-06-27 2011-11-23 深圳市同洲电子股份有限公司 一种移动终端及其解锁方法、装置
CN102402366A (zh) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 钢琴音乐键盘解锁的方法
CN102694914A (zh) * 2012-05-18 2012-09-26 广东欧珀移动通信有限公司 一种手机屏幕解锁方法
CN103002139A (zh) * 2012-11-22 2013-03-27 广东欧珀移动通信有限公司 一种触屏终端的解锁方法
CN104836919A (zh) * 2015-05-29 2015-08-12 上海斐讯数据通信技术有限公司 一种弹奏仿真吉他实现移动终端解锁的方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8495732B2 (en) * 2008-12-15 2013-07-23 Russell W. Guenthner Entering an identifier with security improved by time based randomization of input steps

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402366A (zh) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 钢琴音乐键盘解锁的方法
CN102142071A (zh) * 2011-04-26 2011-08-03 汉王科技股份有限公司 一种移动终端的验证方法及装置
CN102256011A (zh) * 2011-06-27 2011-11-23 深圳市同洲电子股份有限公司 一种移动终端及其解锁方法、装置
CN102694914A (zh) * 2012-05-18 2012-09-26 广东欧珀移动通信有限公司 一种手机屏幕解锁方法
CN103002139A (zh) * 2012-11-22 2013-03-27 广东欧珀移动通信有限公司 一种触屏终端的解锁方法
CN104836919A (zh) * 2015-05-29 2015-08-12 上海斐讯数据通信技术有限公司 一种弹奏仿真吉他实现移动终端解锁的方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112331165A (zh) * 2020-11-09 2021-02-05 崔繁 智能吉他和弦辅助装置自定义和弦系统
CN112331165B (zh) * 2020-11-09 2024-03-22 崔繁 智能吉他和弦辅助装置自定义和弦系统

Also Published As

Publication number Publication date
CN104836919A (zh) 2015-08-12
CN104836919B (zh) 2018-03-06

Similar Documents

Publication Publication Date Title
WO2016192287A1 (zh) 一种弹奏仿真吉他实现移动终端解锁的方法及系统
KR101142796B1 (ko) 터치스크린을 이용한 암호입력방법
Thimbleby et al. Usability analysis with Markov models
JP4033944B2 (ja) 演奏する楽曲に合わせた推薦楽曲選出機能に特徴を有する通信カラオケシステム
TWI552008B (zh) 輸入處理方法和裝置
JP2005526340A (ja) プレイリストの生成、配信およびナビゲーション
KR20090051173A (ko) 멀티미디어 시퀀스를 자동적 또는 반자동적으로 구성하는 방법 및 장치
US11638873B2 (en) Dynamic modification of audio playback in games
US20090254206A1 (en) System and method for composing individualized music
TW200813759A (en) A method and apparatus for accessing an audio file from a collection of audio files using tonal matching
TWI703515B (zh) 訓練改編水準評價模型、評價改編水準的方法及裝置
JP2008102898A (ja) 楽曲再生装置、楽曲再生方法、および楽曲再生プログラム
US7053291B1 (en) Computerized system and method for building musical licks and melodies
CN106569658A (zh) 输入法的多媒体主题配置方法及系统
US20190051272A1 (en) Audio editing and publication platform
US20080060501A1 (en) Music data processing apparatus and method
TW200820722A (en) Mobile phone capable of creating a quick launch item according a search result and related method
WO2004088451A2 (en) Apparatus and method for processing digital music files
CN114797102A (zh) 信息显示方法及装置、计算机可读存储介质、电子设备
JP5235517B2 (ja) カポタスト位置決定装置、曲データ送信装置、カポタスト位置決定方法及びプログラム
JP2008268507A (ja) 楽曲情報付与サーバ、端末、及び楽曲情報付与システム
US20220245193A1 (en) Music streaming, playlist creation and streaming architecture
CN110010112A (zh) 一种电子乐谱编辑系统
JP3603721B2 (ja) データ検索支援方法及び装置及びデータ検索支援プログラムを格納した記憶媒体
KR20010091206A (ko) 인터넷을 이용한 가요 창작방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15893935

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15893935

Country of ref document: EP

Kind code of ref document: A1