A guqin score text retrieval method and device
By generating digital outline codes for musical notation characters and matching them with the stored codes of guqin scores, the problem of the difficulty in computer processing of tablature was solved, enabling fast and convenient input and retrieval of guqin scores.
Patent Information
- Application Number
- CN202111387945.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2041-11-22
AI Technical Summary
In existing technologies, the characters in the tablature are difficult to process by computer, resulting in difficulties in input and retrieval, and making it difficult to achieve fast and accurate retrieval of guqin scores.
The method of generating digital outlines by using musical notation encoding involves concatenating multiple element codes with connectors, identifying fingerings or fingering combinations, generating target digital outline codes, and comparing them with the computer-stored codes of the guqin score text to find the musical notation codes of the target codes.
It enables faster and more convenient input and retrieval of guqin scores, reduces storage requirements, and improves retrieval speed and accuracy.
Smart Images

Figure CN114067330B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the computer technical field, and particularly relates to a guqin score text retrieval method and device. BACKGROUND
[0002] The reduced character score is a kind of score writing method commonly used in China's guqin, which is characterized by recording finger positions and left and right hand playing techniques, and belongs to a kind of fingering score. It is composed of the combination of the reduced character score of guqin text score and the part with more characteristics in the term.
[0003] The score character in the reduced character score represents the playing relationship between the part of the sound and the finger and the face of the guqin, and is the core framework of the reduced character score. From the appearance, the big character in the reduced character score is similar to a Chinese character, but in fact, it is the result of taking parts and choosing by describing a sentence, and then splicing in a square character frame.
[0004] In the digital era, fast and accurate input and retrieval of the reduced character score can promote the spread of the reduced character score of guqin, and is conducive to the protection and innovation of Chinese traditional culture.
[0005] In the prior art, the score character is processed by computer. In order to process the input, retrieval and computer display of the guqin score, the big character of each reduced character score needs to be pre-stored. Since the score character is composed of reduced character parts expressing fingering, badge position and string sequence, each big character of the reduced character score is stored as an independent character, and it is difficult to retrieve the score character and the fingering involved in the score character. SUMMARY
[0006] The present application provides a guqin score text retrieval method and device, which solves the problems of difficult input and editing and difficult retrieval of the score character in the prior art.
[0007] The present application provides a guqin score text retrieval method, wherein the computer storage code of the guqin score text comprises a plurality of score character codes, and the score character code is used to generate a digital contour of the score character; the score character code comprises a plurality of element codes connected by a connection string, and each element code represents a fingering or a fingering combination.
[0008] The fingering comprises at least one of the following: left hand fingering, right hand fingering, badge position and string sequence; the fingering combination comprises a left hand combination and / or a right hand combination; the left hand combination comprises a first display symbol representing left hand fingering and a second display symbol representing badge position; and the right hand combination comprises a third display symbol representing right hand fingering and a fourth display symbol representing string sequence.
[0009] In the retrieval, an input string representing one or more fingerings or fingering combinations is identified, and a target digital contour code is generated, which is used to generate a digital contour of the one or more fingerings or fingering combinations.
[0010] comparing the target digital profile code with the computer storage code of the qin music text to find out the code of the music character containing the target digital profile code.
[0011] Preferably, the target digital profile code contains at least one of the first digital profile identification sequence, the second digital profile identification sequence, and the third digital profile identification sequence.
[0012] When the input string contains a string representing a left-hand combination, the first digital profile identification sequence is generated, which is used to generate the digital profile of the left-hand combination.
[0013] When the input string contains a string representing a right-hand combination, the second digital profile identification sequence is generated, which is used to generate the digital profile of the right-hand combination.
[0014] When the input string contains a string representing a left-hand combination and a string representing a right-hand combination, the third digital profile identification sequence is generated, which contains the first digital profile identification sequence, a third connector, and the second digital profile identification sequence arranged in sequence; the third digital profile identification sequence is used to generate the digital profile of the combined left-hand combination and right-hand combination.
[0015] Preferably, the first digital profile identification sequence contains a first display symbol code, a first connector, and a second display symbol code arranged in sequence; and the second digital profile identification sequence contains a third display symbol code, a second connector, and a fourth display symbol code arranged in sequence.
[0016] Further preferably, identifying that the input string contains a string representing a left-hand combination comprises:
[0017] The first data table contains a plurality of groups of strings representing left-hand combinations, each left-hand combination corresponding to at least one group of strings; when a part of the input string is identical to a group of strings in the first data table, it is determined that the input string contains a string representing the corresponding left-hand combination.
[0018] Alternatively, further preferably, identifying that the input string contains a string representing a right-hand combination comprises:
[0019] The second data table contains a plurality of groups of strings representing right-hand combinations, each right-hand combination corresponding to at least one group of strings; when a part of the input string is identical to a group of strings in the second data table, it is determined that the input string contains a string representing the corresponding right-hand combination.
[0020] Preferably, when inputting a string, the string representing the left-hand combination comprises input characters representing left-hand fingering and input characters representing the fret; and the string representing the right-hand combination comprises input characters representing right-hand fingering and input characters representing the string order.
[0021] In any one of the embodiments of the present application, preferably, there is no connector between adjacent symbols in the computer storage code of the qin music text, so as to distinguish the adjacent symbols and further determine the symbol comprising the target digital contour code.
[0022] In any one of the embodiments of the present application, preferably, in the symbol code comprising the target digital contour code, if the previous bit code and the next bit code of the code segment where the target digital contour code is located are both connectors, the response is rejected.
[0023] In any one of the embodiments of the present application, preferably, in the symbol code comprising the target digital contour code, if only one of the previous bit code and the next bit code of the code segment where the target digital contour code is located is a connector, the response is rejected.
[0024] The present application also provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the method according to any one of the embodiments of the present application.
[0025] The present application also provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and executable by the processor, and the processor implements the method according to any one of the embodiments of the present application when executing the computer program.
[0026] The above at least one technical solution adopted by the embodiments of the present application can achieve the following beneficial effects:
[0027] The method of the present application reduces the storage amount and occupies less resources. The input, retrieval and display speed are fast, and on the basis of the digital contour identifier of the present application, more convenient input and faster search can be achieved, for example, any component can be retrieved to the component itself and any reduced character, large character and whole character containing the component. BRIEF DESCRIPTION OF DRAWINGS
[0028] The accompanying drawings, which are included to provide a further understanding of the present application and constitute a part of the present application, illustrate the illustrative embodiments of the present application and the description thereof and do not limit the present application in any way. In the drawings:
[0029] Figure 1 The flowchart of the embodiments of the method of the present application;
[0030] Figure 2 The display symbols contained in the left-hand combination and the digital contour of the left-hand combination;
[0031] Figure 3 Display character contained in right-hand combination number profile embodiment;
[0032] Figure 4 Display character contained in left-hand combination number profile is identified by encoding;
[0033] Figure 5 Display character contained in right-hand combination number profile is identified by encoding;
[0034] Figure 6 Target number profile encoding sequence as part of fingering combination retrieval embodiment schematic diagram;
[0035] Figure 7 Target number encoding sequence as part of encoding combination non-response embodiment one schematic diagram;
[0036] Figure 8 Target number encoding sequence as part of encoding combination non-response embodiment two schematic diagram;
[0037] Figure 9 Target number encoding sequence as part of encoding combination non-response embodiment three schematic diagram. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme of the present application will be described clearly and completely below in combination with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0039] Since the spectrum character set of the prior art occupies one code bit for a whole visually separate large character, it is encoded in a separate code bit of UCS or Unicode encoding space by using a private protocol, which can be implemented using the encoding framework of Unicode, but violates the minimum character set principle of Unicode.
[0040] Unlike the solution idea of the prior art, the present application uses a sequence composed of fingering components with fixed semantic order to present a visually separate large character, and inserts control symbols between each component to determine the range of the sequence.
[0041] The technical solutions provided by the embodiments of the present application will be described in detail below in combination with the drawings.
[0042] Figure 1As an embodiment of the present application, the flow chart of the embodiment of the method of the present application comprises steps 101-103.
[0043] The embodiment of the present application proposes a guqin score text retrieval method for retrieving the computer storage code (such as application text or character library) of the guqin score text.
[0044] Step 101, the computer storage code of the guqin score text comprises a plurality of score character encodings, and the score character encodings are used to generate a digital profile of a score character; the score character encodings comprise a plurality of element encodings concatenated by a connector, and each element encoding represents a fingering or a fingering combination.
[0045] The connector described in the present application is Jianzi Fingering Joiner (abbreviated as JZFJ), which is specially used for Jianzi and is a control symbol first proposed in the present technology. The function of the control symbol is to realize the splicing of each element component. When the same element component is input in the same order, the splicing of the component will not occur without the control symbol. That is, in the computer storage code of the guqin score text, there is a connector between the element encodings in a score character, and there is no connector between the element encodings of two independent score characters. Therefore, the score character can be distinguished by the connector, that is, the codes on both sides of the connector belong to the element encoding fragments of the same score character; when there is no connector between two adjacent element encodings, the two element encodings belong to adjacent two score characters.
[0046] The fingering comprises at least one of the following: left-hand fingering, right-hand fingering, position, and string order. The fingering combination includes left-hand combination and / or right-hand combination. The left-hand combination comprises a first display symbol representing left-hand fingering and a second display symbol representing position; the right-hand combination comprises a third display symbol representing right-hand fingering and a fourth display symbol representing string order.
[0047] It should be noted that the display symbol here refers to a recognizable component in a display state of a character, which represents fingering, position, or string position. For example, a score character The reading is "big finger nine position hook four strings"; the left-hand combination therein is The first display symbol in the left-hand combination is "big", and the second display symbol is "nine"; the right-hand combination therein is The third display symbol in the right-hand combination is "hook", and the fourth display symbol is "four".
[0048] In this application, the recognizable abstract graphic symbol independent of the specific font design is called "digital profile" (glyph, ISO / IEC 9541-1:1991). The digital profile of fingering identification contains the display symbol of left-hand fingering, right-hand fingering, octave, and string order. The digital profile of fingering combination is the glyph encoding of left-hand combination and / or right-hand combination. The glyph encoding is, for example, the encoding of Unicode standard, TrueType standard, OpenType standard, or other custom encoding set.
[0049] For example, Figure 2 The embodiment of the digital profile of display symbol contained in the left-hand combination and the digital profile of the whole left-hand combination. The first data table contains the glyph encoding used to identify the first and second display symbols. Further, the digital profile of the first and second display symbols in the left-hand combination can also be contained. Further, the digital profile of the left-hand combination is also contained in the first data table, for example It should be noted that more display symbols representing the octave can also be contained in the left-hand combination; for example Figure 2 The second left-hand combination in the middle contains the first display symbol "middle" representing the left-hand fingering, the second display symbol "seven" representing the octave, and another second display symbol Correspondingly, the digital profile of a slightly more complex left-hand combination is composed of Therefore, further, the first and second display symbols can each be a combination of multiple display symbols. When the first display symbol is a combination of multiple display symbols, each of the display symbols is an identifiable component representing the left-hand fingering; when the second display symbol is a combination of multiple display symbols, each of the display symbols is an identifiable component representing the octave (or the division).
[0050] Figure 3 The embodiment of the digital profile of display symbol contained in the right-hand combination and the digital profile of the whole right-hand combination. The second data table contains the glyph encoding used to identify the third and fourth display symbols. Further, the digital profile of the third and fourth display symbols in the right-hand combination can also be contained. Or further, the digital profile of the right-hand combination is also contained in the second data table, for example A plurality of right-hand fingerings and string positions constitute a slightly more complex right-hand combination. For example Figure 3 The second right-hand combination in the middle contains the third display symbol "three" representing the right-hand fingering The fourth display symbol "three" representing the string order, and another third display symbol representing the right-hand fingering "Radical", together constitute a slightly more complex digital profile of the right-hand combination Therefore, further, the third and fourth display symbols can each be a combination of multiple display symbols. Therefore, further, the third and fourth display symbols can each be a combination of multiple display symbols.
[0051] When the finger combination contains a left-hand combination or a right-hand combination, one solution is to insert a connector between the codes of the display symbols contained in the left-hand combination and the right-hand combination, to generate the digital contour identification sequence of the left-hand combination or the right-hand combination; for example, a first digital contour identification sequence contains the code of a first display symbol, a first connector, and the code of a second display symbol, which are arranged in sequence; the first digital contour identification sequence is used to generate the digital contour of the left-hand combination; for another example, a second digital contour identification sequence contains the code of a third display symbol, a second connector, and the code of a fourth display symbol, which are arranged in sequence; the second digital contour identification sequence is used to generate the digital contour of the right-hand combination.
[0052] For example, Figure 4 The digital contour of the left-hand combination in the Chinese character set, when “uni5927 JZFJ uni4E5D” constitutes a digital contour identification sequence of a left-hand combination, the computer combines the digital contour represented by the code uni5927 and the digital contour represented by the code uni4E5D and displays them in a character frame, to constitute a complete digital contour of the left-hand combination. Figure 5 The digital contour of the right-hand combination in the Chinese character set, when “uni52F9 JZFJ uni56DB” constitutes a digital contour identification sequence of a right-hand combination, the computer combines the digital contour represented by the code uni52F9 and the digital contour represented by the code uni56DB and displays them in a character frame, to constitute a complete digital contour of the right-hand combination.
[0053] A further solution is that the font library contains the left-hand combination code corresponding to the first digital contour identification sequence, and / or generates the right-hand combination code corresponding to the second digital contour identification sequence. Figure 4 In the Chinese character set, “=” represents a replacement relationship. The left-hand combination code corresponding to the first digital contour identification sequence, i.e., uni5927_9, represents a complete digital contour of the left-hand combination. For another example, the right-hand combination code corresponding to the first digital contour identification sequence, i.e., “uni52F9_4”, represents a complete digital contour of the right-hand combination.
[0054] When the fingering combination contains a left-hand combination and a right-hand combination in sequence, the encoding of the fingering combination is the insertion of a connector between the digital profile identification sequence of the left-hand combination and the digital profile identification sequence of the right-hand combination. For example, the third digital profile identification sequence contains the first digital profile identification sequence, the third connector, the second digital profile identification sequence in sequence; the third digital profile identification sequence is used to generate the digital profile of the combination of the left-hand combination and the right-hand combination. For example, due to the connector JZFJ connecting the encoding uni5927_9 and the encoding uni52F9_4, the computer combines the left-hand combination digital profile represented by the encoding uni5927_9 and the right-hand combination digital profile represented by the encoding uni52F9_4 to display in a word frame, constituting a new digital profile of a fingering combination.
[0055] In step 102, the input string contains a string representing a fingering or a fingering combination; the input string representing one or more fingerings or fingering combinations is identified to generate a target digital profile encoding, which is the same as the digital profile identification used to generate the one or more fingerings or fingering combinations.
[0056] Preferably, the target digital profile encoding contains at least one of the first digital profile identification sequence, the second digital profile identification sequence, and the third digital profile identification sequence.
[0057] When the input string contains a string representing a left-hand combination, the first digital profile identification sequence is generated, which is used to generate the digital profile of the left-hand combination;
[0058] When the input string contains a string representing a right-hand combination, the second digital profile identification sequence is generated, which is used to generate the digital profile of the right-hand combination;
[0059] In step 102, when inputting characters representing components in the score, a connector is automatically inserted between the encodings of the corresponding display symbols, and the connector occupies the position of an encoding; for example, the first digital profile identification sequence contains the encoding of the first display symbol, the first connector, and the encoding of the second display symbol in sequence. The second digital profile identification sequence contains the encoding of the third display symbol, the second connector, and the encoding of the fourth display symbol in sequence.
[0060] When the input string contains a string representing a left-hand combination and a string representing a right-hand combination, the third digital profile identification sequence is generated, which contains the first digital profile identification sequence, the third connector, and the second digital profile identification sequence in sequence; the third digital profile identification sequence is used to generate the digital profile of the combination of the left-hand combination and the right-hand combination.
[0061] Further preferably, the input string is identified as containing a string representing a left-hand combination. Since the first data table contains a plurality of sets of strings representing left-hand combinations, each left-hand combination corresponding to at least one set of strings; when a portion of the input string is identical to a set of strings in the first data table, the input string is determined to contain a string representing the corresponding left-hand combination; for example, "da jiu" is a set of strings representing a left-hand combination, and is contained in the first data table.
[0062] Alternatively, further preferably, the input string is identified as containing a string representing a right-hand combination. Since the second data table contains a plurality of sets of strings representing right-hand combinations, each right-hand combination corresponding to at least one set of strings; when a portion of the input string is identical to a set of strings in the second data table, the input string is determined to contain a string representing the corresponding right-hand combination; for example, "gou si" is a set of strings representing a right-hand combination, and is contained in the second data table.
[0063] As an alternative, when the input string is inputted, the string representing a left-hand combination contains an input character representing a left-hand fingering and an input character representing a fret position; and the string representing a right-hand combination contains an input character representing a right-hand fingering and an input character representing a string order. For example, the string "da jiu" representing a left-hand combination contains an input character "da" representing a left-hand fingering and an input character "jiu" representing a fret position; and the string representing a right-hand combination contains an input character representing a right-hand fingering and an input character representing a string order, for example, the string "gou si" representing a right-hand combination contains an input character "gou" representing a right-hand fingering and an input character "si" representing a string order.
[0064] As another alternative, the step of identifying the input string as containing a string representing a left-hand combination can be performed by using a regular expression technique to identify the left-hand combination, right-hand combination character in the input string.
[0065] It should be noted that the input string herein, corresponding to the mapping of input tools such as keyboard, can also be other key character combinations capable of representing the reading of the musical notation, such as using the input string "da9" as the string representing the left hand combination, or "gou4" as the string representing the right hand combination. Preferably, the input method uses the syllable string represented by the basic Latin alphabet string alternately with the decimal Arabic numeral string, which not only conforms to the principle of the reduced character, but also reduces the trouble of distinguishing syllable boundaries. The basic Latin alphabet represents the fingering of the musical instrument, and in principle any pinyin scheme corresponding to Chinese characters can be used, even the code scheme, the current default is pinyin, and can be replaced by Cantonese, Wu, or Wubi, Zheng code, Cangjie, etc.; Arabic numerals represent the number of large, small, and chord. For example, the key position of "big finger nine hook four chord" input can have four pinyin spelling, respectively "dazhi9gou4", "da9gou4", "dz9g4", "d9g4", the more ambiguous, the higher the external code redundancy rate, the more times you need to choose, the slower the input speed, and the accuracy is also reduced, and the long key position string will also reduce the input speed. For "big finger nine hook four chord", "da9gou4" is a more reasonable input method. Similarly, if it is replaced by Shanghai dialect, it is input as "da9keu4", and if it is replaced by Cantonese, it is input as "daai9ngau4", if it is replaced by Wubi, it is input as "dddd9qtn4", if it is replaced by Zheng code, it is input as "gd9ryaa4", and if it is replaced by Cangjie, it is input as "k9hs4", the processing idea is the same.
[0066] As an example of step 102, the input string "da9gou4" is input to the computer, the computer identifies that the input string contains a left hand combination and a right hand combination, the computer queries the digital contour identifier corresponding to each display symbol in the left hand combination in the font library, inserts the connector "JZFJ" between the encoding "uni5927" of the first display symbol "big" and the encoding "uni4E5D" of the second display symbol "nine", forming the first digital contour identifier sequence "uni5927 JZFJ uni4E5D" identifying the left hand combination, the computer queries the encoding corresponding to each display symbol in the right hand combination in the font library, inserts the connector "JZFJ" between the encoding "uni52F9" of the third display symbol "hook" and the encoding "uni56DB" of the fourth display symbol "four", forming the second digital contour identifier sequence "uni52F9 JZFJ uni56DB" identifying the right hand combination. Insert the connector "JZFJ" between the first digital contour identifier sequence and the second digital contour identifier sequence to form the digital contour identifier sequence of the entire musical notation "uni5927 JZFJ uni4E5D JZFJ uni52F9 JZFJ uni56DB", that is, the third digital contour identifier sequence. Here, the encoding of the first to fourth display symbols, the first to third digital contour identifier sequences, can all be used as target digital contour encodings for retrieval.
[0067] Step 103, compare the target digital profile code with the computer storage code of the guqin score text to find the score character code containing the target digital profile code.
[0068] In the present application, the sequence has been processed at the coding level, thus two retrieval methods can be provided. Let A, B, C, D, E, etc. be the fingering codes, JZFJ be simply noted as j, min be the position of the first fingering code in the same code segment as the target digital profile code in the score character code containing the target digital profile code, L min be the first fingering code; L min-1 be the code at min-1 position; max be the position of the last fingering code in the same code segment as the target digital profile code, L max be the last fingering code; L max+1 be the code at max+1 position. For example, the score character digital profile mark sequence in the guqin score computer storage text to be compared is AjBjCjDjE, the fingering codes and positions are as shown in the following table.
[0069] Position 1 2 3 4 5 6 7 8 9 Encoding A j B j C j D j E
[0070] The target digital profile code generated by the string to be searched is taken as an example in the following, including typical cases.
[0071] It should be noted that according to the existing rules of Unicode / UCS, all control symbols are not allowed to be searched alone under normal circumstances, i.e. the JZFJ here is searched at any time and no result is returned.
[0072] Figure 6 Target digital profile code sequence as part of fingering combination retrieval embodiment schematic diagram.
[0073] The first method is to search the whole character by using the code of part of the fingering. The result of this method is to input the string to be searched, and generate the target digital profile code of the fingering or fingering combination. It should be noted that the code of each element in the whole sequence is compared with the code of the score character.
[0074] In any embodiment of the present application, preferably, there is no connector between adjacent score characters in the computer storage code of the guqin score text, thus the score characters can be distinguished. After the computer storage code of each score character is determined, whether the computer storage code of each independent score character contains the target digital profile code is judged by comparing the target digital profile code with the computer storage code of each independent score character, so as to further determine the score character containing the target digital profile code.
[0075] Regardless of which of A, AjB, DjE, AjBjCjDjE is taken as the target digital contour code, a spectrum word sequence AjBjCjDjE containing the target digital contour code can be found.
[0076] The second method is a search mode in which the target digital contour code sequence is taken as an integral word code. This mode results in a match only when the search string is identical to the spectrum word code in the sequence used for comparison, i.e., only when L min-1 ≠j and L max+1 ≠j. In this case, the spectrum words are first distinguished by the connectors, and the independent spectrum word codes are obtained in the sequence used for comparison.
[0077] For example, a string generating the target digital contour code AjBjCjDjE is input into the search box, and the sequence used for comparison is as follows: min = 1, L min =A; max = 9, L max =E; min - 1 = 0; L min-1 ≠j; max + 1 = 10, L max+1 ≠j.
[0078] In the computer storage code of the ancient qin music text, there is no connector between adjacent spectrum words, so that the spectrum word containing the target digital contour code can be determined, because L min-1 ≠j and L max+1 ≠j, the target digital contour code AjBjCjDjE can match the spectrum word code AjBjCjDjE.
[0079] Figure 7 Embodiment one of the target digital contour code sequence as a partial code combination is not responded to.
[0080] When the target digital contour code sequence is limited to be an integral word code, if, in the spectrum word code containing the target digital contour code, only one of the previous code and the next code of the code segment where the target digital contour code is located has a connector (i.e., the next code), the response is refused.
[0081] A string generating the target digital contour code A is input into the search box, and the sequence used for comparison is as follows: min = 1, L min =A; max = 1, L max =A; min - 1 = 0, L min-1 ≠j; max + 1 = 2, L max+1 =j.
[0082] Because L min-1 ≠j and L max+1=j, so the target digit contour code A cannot match the spectrogram code AjBjCjDjE.
[0083] Figure 8 The target digital encoding sequence is a schematic diagram of Example 2, in which some encoding combinations do not respond.
[0084] When the target digit contour encoding sequence is required to be an integer encoding, if the preceding and following bits of the encoding segment containing the target digit contour encoding are both connectors, then the response is rejected.
[0085] Enter the string "BjC" representing the target digit profile code in the search box, compare it with the sequence used for comparison, and obtain the following data: min = 3, L min =B; max=5, L max =C; min-1=2, L min-1 =j; max+1=6, L max+1 =j.
[0086] Because L min-1 =j and L max+1 =j, so the target digit contour code BjC cannot match the spectral character code AjBjCjDjE.
[0087] Figure 9 The target digital encoding sequence is a schematic diagram of Example 3, in which some encoding combinations do not respond.
[0088] When the target digit contour encoding sequence is required to be an integer encoding, if the spectral encoding containing the target digit contour encoding contains only one connector (i.e., the preceding encoding) in the encoding segment before and after the target digit contour encoding, then the response is rejected.
[0089] Enter the string "DjE" of the target digit profile code into the search box, compare it with the sequence used for comparison, and obtain the following data: min = 7, L min =D; max=9, L max =E; min-1=6, L min-1 =j; max+1=10, L max+1 ≠j. Because L min-1 =j and L max+1 Since ≠j, the target digit contour code DjE cannot match the spectral character code AjBjCjDjE.
[0090] Those skilled in the art will appreciate that embodiments of the application can be devised for a method, a system, or a computer program product. Accordingly, the present application can be embodied in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.
[0091] Therefore, the present application also provides a computer readable storage medium, having stored thereon a computer program, which when executed by a processor implements the method according to any of the embodiments of the present application.
[0092] Further, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any of the embodiments of the present application when executing the computer program.
[0093] The present application is described in reference to the flowcharts and / or block diagrams of the method, device (system), and computer program product according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions, which are executed via the processor of the computer or other programmable data processing apparatus, generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure One one or more flows and / or blocks Figure One means for carrying out the function specified in the flow or flows and / or block or blocks.
[0094] These computer program instructions can also be stored in a computer readable storage medium that can direct a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer readable storage medium produce a manufacture including an instruction means, which implements the functions specified in the flowcharts and / or block diagrams. Figure One one or more flows and / or blocks Figure One means for carrying out the function specified in the flow or flows and / or block or blocks.
[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operational steps are performed on the computer or other programmable data processing apparatus to generate a computer implemented process, so that the instructions executed on the computer or other programmable data processing apparatus provide a process for implementing the functions specified in the flowcharts and / or block diagrams. Figure One one or more flows and / or blocks Figure One means for carrying out the function specified in the flow or flows and / or block or blocks.
[0096] In one typical arrangement, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0097] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, such as read-only memory (ROM), EPROM, and / or flash memory, etc. In one example, the memory is a computer-readable medium. The term "computer-readable medium" includes non-transitory media (e.g. volatile and non-volatile memory storage).
[0098] It should also be noted that the terms "comprising," "including," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.
[0099] The embodiments of the present application described herein merely serve as examples and are not intended to limit the present application. The present application can be variously changed and modified without departing from the spirit and scope of the present application. Accordingly, any and all modifications, variations or equivalent arrangements which do not depart from the spirit and scope of the present application should be considered to be within the scope of the claims.
Claims
1. A method for retrieving a guqin music text, characterized in that, The method comprises: The computer storage code of the ancient Chinese zither score text comprises a plurality of score character codes, and the score character codes are used to generate digital outlines of score characters; The digital outlines are abstract graphic symbols that can be recognized regardless of specific font designs; the score character codes comprise a plurality of element codes concatenated by the same connector JZFJ, and each of the element codes represents a fingering or a combination of fingerings; An input string representing a fingering or a combination of fingerings is identified, and when characters representing components of a score character are input, the same connector JZFJ is automatically inserted between the codes of corresponding display symbols to generate a target digital outline code, which is used to generate a digital outline of the fingering or the combination of fingerings; The target digital outline code is compared with the computer storage code of the ancient Chinese zither score text, and the computer storage code of the ancient Chinese zither score text does not have connectors between adjacent score characters to distinguish score characters, and it is determined that the score character code comprising the target digital outline code is determined; If the previous bit code and the next bit code of the code segment where the target digital outline code is located in the score character code comprising the target digital outline code are both connectors, the response is rejected.
2. The method for retrieving guqin (a seven-stringed zither) score texts as described in claim 1, characterized in that, The method comprises: The target digital outline code comprises at least one of a first digital outline identification sequence, a second digital outline identification sequence, and a third digital outline identification sequence; When the input string comprises a string representing a left-hand combination, a first digital outline identification sequence is generated, and the first digital outline identification sequence is used to generate a digital outline of the left-hand combination; When the input string comprises a string representing a right-hand combination, a second digital outline identification sequence is generated, and the second digital outline identification sequence is used to generate a digital outline of the right-hand combination; When the input string comprises a string representing a left-hand combination and a string representing a right-hand combination, a third digital outline identification sequence is generated, and the third digital outline identification sequence comprises a first digital outline identification sequence, a third connector, and a second digital outline identification sequence arranged in sequence; and the third digital outline identification sequence is used to generate a digital outline of a combination of the left-hand combination and the right-hand combination.
3. The method for retrieving an ancient Chinese zither score text according to claim 2, wherein The identification of the input string comprising a string representing a left-hand combination comprises: The first data table comprises a plurality of groups of strings representing left-hand combinations, and each left-hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the first data table, it is determined that the input string comprises a string representing a corresponding left-hand combination; The identification of the input string comprising a string representing a right-hand combination comprises: The second data table comprises a plurality of groups of strings representing right-hand combinations, and each right-hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the second data table, it is determined that the input string comprises a string representing a corresponding right-hand combination.
4. The method for retrieving an ancient Chinese zither score text according to claim 2, wherein The first digital contour identification sequence comprises a code of a first display symbol, a first connector, and a code of a second display symbol arranged in sequence; The second digital contour identification sequence comprises a code of a third display symbol, a second connector, and a code of a fourth display symbol arranged in sequence.
5. The method for retrieving guqin score text as described in claim 2, characterized in that, The string representing the left-hand combination comprises input characters representing left-hand fingering and input characters representing the fret; and the string representing the right-hand combination comprises input characters representing right-hand fingering and input characters representing the string order.
6. The guqin score text retrieval method of claim 1, wherein A, B, C, D, and E are fingering codes, and JZFJ is abbreviated as j; taking any one of A, AjB, DjE, and AjBjCjDjE as a target digital contour code, a score character sequence AjBjCjDjE containing the target digital contour code is found.
7. The guqin score text retrieval method of claim 1, wherein In the score character code containing the target digital contour code, only one of the previous code and the next code of the code segment where the target digital contour code is located is a connector, and the response is rejected.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1-7.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the method of any one of claims 1-7.
Citation Information
Patent Citations
Computer generation, edition method of Guqin abbreviated character notation and system thereof
CN101944081A
Computer processing method for character inputting of Guqin abbreviated character notation
CN102103415A
Component organization and input method of abbreviated character notation of seven-stringed plucked instrument
CN102402297A