A method for implementing a guqin tuner

Through the data structure and the handset and speaker of the handheld application, the automatic calculation and tuning of the pitch of the guqin strings are realized, which solves the problem of complex manual calculation in the existing technology, improves the efficiency and accuracy of guqin tuning, and is suitable for different tunes. and non-standard pitch scenes.

CN114120939BActive Publication Date: 2024-10-11HEFEI RUOYE INFERNAL NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111419225.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-10-11
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

Existing guqin tuners can only detect sound frequencies and cannot automatically calculate string frequencies of non-standard pitches. This requires beginners to manually calculate and memorize, which increases the complexity of tuning.

Method used

By creating data structures I and II to describe the pitch and melody attributes of the seven strings of the guqin, the handset and speaker of the handheld application are used to automatically calculate and compare the string pitches to achieve string sequence judgment and tuning.

Benefits of technology

It avoids the manual calculation of string pitch and quickly identifies the pitch. It is suitable for different tunes and non-standard pitches, and realizes automatic playback and follow-up functions, which is convenient for the use of Guqin.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114120939B_ABST
    Figure CN114120939B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for implementing a guqin tuner, and relates to the technical field of guqin tuning. The present invention comprises: S1, creating a data structure I, which is used to describe the pitch of the seven strings of the guqin, and numbering the pitch; S2, creating a data structure II, which is used to describe the melody attributes of the guqin and the standard pitch deviation information of the pitch; S3, according to the attribute values ​​of the above data structure I and data structure II, calculating the pitch that the seven strings should have as comparison data, and automatically calculating the corresponding pitch value that the seven strings of the actual guqin should have; S4, comparing the pitch of each string obtained by the handset of the handheld application end with the comparison data, tuning, and judging the string sequence; S5, according to the above attribute values, reflecting in the handheld application end. The present invention avoids the need to memorize the pitch value and calculation method of each string of the guqin, uses a digital method to calculate the pitch of each string under different pitches in different tunes, and quickly identifies whether the pitch of each string is accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of guqin tuning, and in particular relates to a method for realizing a guqin tuner. Background Art

[0002] Guqin is an ancient Chinese string instrument, which generally has seven strings and is also called a seven-stringed zither. In different pieces of music, the seven strings have a fixed pitch relationship. Each different pitch combination is called a tune or string style. Common tunes include Zhengdiao, Ruibindiao, Manjiaodiao, etc. Ruibindiao is also called Jinwuxian and Manjiaodiao is also called Mansanxian.

[0003] In different tunes, the seven strings have a fixed relative pitch relationship, but the absolute pitch can be different. In order to adapt to the development of the times, the standard pitch of the guqin was defined, a1 = 440Hz, that is, the five strings are equal to A (110Hz) as the standard pitch string type, so as to facilitate the coordination of other instruments. At the standard pitch, the seven strings of the correct pitch are (C, D, F, G, A, c, d). We can use a universal tuner to tune the guqin. Under the tight five-string tuning, lower the five strings by one semitone to get the pitch combination of (C, D, F, G, Bb, c, d).

[0004] However, in actual personal use, the pitch of the guqin used is not absolute pitch. Many beginners will lower the fixed absolute pitch by two semitones, while keeping the relative pitch unchanged, thereby obtaining a combination of (Bb, C, Eb, F, G, Bb, c), which reduces the tension of the strings and makes it easier to play. Or, instead of using 440Hz as the standard pitch, they use pitches that are lowered to varying degrees as standard tuning.

[0005] Conventional tuners only provide the function of detecting the frequency of sound. When tuning, you need to memorize the frequency value of the standard pitch yourself. If the strings are not tuned to the standard pitch, you need to manually calculate the actual frequency of each string to perform the tuning steps. If the tunes are different, the calculation complexity will increase. Summary of the invention

[0006] The present invention provides a method for realizing a guqin tuner, which solves the above problems.

[0007] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0008] A method for implementing a guqin tuner of the present invention is implemented based on a handheld application terminal with an earpiece and a speaker, and comprises the following steps:

[0009] S1. Create a data structure I to describe the pitches of the seven strings of the guqin and number the pitches;

[0010] S2. Create a data structure II for describing the melody attributes of the guqin and the standard pitch deviation information of the pitch, specifically describing the melody and the number of semitones that reduce the standard pitch and the deviation of the standard pitch;

[0011] S3, according to the attribute values ​​of the above data structure I and data structure II, the pitches of the seven strings are calculated as comparison data, and the corresponding pitch values ​​of the seven strings of the actual guqin are automatically calculated;

[0012] S4, comparing the pitch of each string obtained by the handset of the handheld application with the comparison data, tuning the strings, and determining the string sequence;

[0013] S5. Based on the above attribute values, it is reflected in the handheld application terminal.

[0014] Furthermore, in the step S1, the data structure I specifically uses a computer program language to use 0-127 numbers to mark different absolute pitches, each number value differs by a semitone, and then uses a number array to mark the pitches of the seven strings.

[0015] Furthermore, in step S2, data structure II uses an array to represent the melody, and the melody records the relative pitch relationship of each string.

[0016] Furthermore, in the step S2, the standard tone deviation information of the data structure II is specifically implemented in the following two ways:

[0017] (1) Change the standard tone of 440 Hzb. After adjusting the pitch, record it as calib = 410. Use 410 Hz as the standard tone for tuning. If only this value is modified, it will not affect the display of the pitch value, and it will only be used as the pitch deviation during calculation.

[0018] (2) Adjustment is made by changing the number of semitones, usually lowering the pitch, recorded as move = -2, which means lowering the overall pitch of the string by two semitones.

[0019] Furthermore, in the step S4, the guqin audio data is received for analysis and the actual pitch is calculated, and compared with the calculation result of S3, so as to determine whether the current pitch is accurate and determine the string sequence.

[0020] Furthermore, in step S5, after the tuner of the handheld application knows the actual pitch of the guqin, when the guqin music is played, the overall pitch of the music is adjusted to match the actual pitch of the guqin, thereby realizing the follow-up function.

[0021] Compared with the prior art, the present invention has the following beneficial effects:

[0022] The present invention can avoid the need to memorize the pitch value and calculation method of each string of the guqin, and use a digital method to calculate the pitch of each string at different pitches in different tunes, so as to quickly identify whether the intonation of each string is accurate. Since the tuner records the actual pitch value of the current guqin, it is convenient to quickly identify the pitch and judge the string sequence in different tunes and different non-standard pitches, and solves the need to manually calculate the pitch of each string at different pitches in different tunes. Therefore, it can be used in other occasions, such as when automatically playing guqin music, according to the tuning result, the pitch of the played music is changed in real time, so that the pitch of the playback and the playing is the same, which is convenient for following the practice, and is suitable for other application scenarios that rely on secondary tuning results.

[0023] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0025] Figure 1 This is an interface diagram of the automatic calibration and string recognition of the tuner in a specific embodiment of the present invention;

[0026] Figure 2 A diagram showing the relationship between pitch numbers and frequencies in a specific embodiment of the present invention;

[0027] Figure 3 It is a diagram of different string-type tunes in the guqin in a specific embodiment of the present invention;

[0028] Figure 4 It is a pitch calculation diagram for slow sanxian tuning in a specific embodiment of the present invention;

[0029] Figure 5 This is an application diagram of a specific embodiment of the present invention in which Autumn Wind Lyrics 1 is automatically played;

[0030] Figure 6 This is the structural diagram of the existing Qixian Guqin;

[0031] Figure 7 The figure is a structural diagram of an existing general tuner. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] Guqin is an ancient Chinese stringed instrument, which generally has seven strings and is also called a seven-stringed zither. Figure 6 As shown in the figure, in different pieces of music, there is a fixed pitch relationship between the seven strings. Each different pitch combination is called a tune or string style. Common tunes include Zhengdiao, Ruibindiao, Manjiaodiao, etc. Ruibindiao is also called Jinwuxian, Manjiaodiao is also called Mansanxian, etc. The tunes under standard pitch are as follows: Figure 3 As shown in the figure, we can use a common tuner to tune the guqin. Under the tight five-string tuning, lower the five strings by one semitone to get the pitch combination of (C, D, F, G, Bb, c, d). Conventional tuners, such as Figure 7 As shown, only the frequency function of detecting the sound is provided. We need to memorize the frequency value of the standard pitch by ourselves. If the string is not tuned to the standard pitch, we need to manually calculate the actual frequency of each string to perform the tuning steps. If it is a different tune, the calculation complexity will also increase. Therefore, it is of great significance to provide a method for implementing a guqin tuner to solve the above problems.

[0034] See also Figure 1-2 as well as Figure 4-5 As shown, a method for implementing a guqin tuner of the present invention is implemented based on a handheld application terminal with an earpiece and a speaker, and includes the following steps:

[0035] S1. Create a data structure I to describe the pitches of the seven strings of the guqin and number the pitches;

[0036] S2. Create a data structure II for describing the melody attributes of the guqin and the standard pitch deviation information of the pitch, specifically describing the melody and the number of semitones that reduce the standard pitch and the deviation of the standard pitch;

[0037] S3, according to the attribute values ​​of the above data structure I and data structure II, the pitches of the seven strings are calculated as comparison data, and the corresponding pitch values ​​of the seven strings of the actual guqin are automatically calculated;

[0038] S4, comparing the pitch of each string obtained by the handset of the handheld application with the comparison data, tuning the strings, and determining the string sequence;

[0039] S5. Based on the above attribute values, it is reflected in the handheld application terminal.

[0040] Among them, in step S1, data structure I specifically uses computer program language to use 0-127 numbers to mark different absolute pitches, each number value differs by a semitone, and then uses a number array to mark the pitch of the seven strings; we set the number of the 440Hz frequency to 69. Under standard pitch, the frequency of the five-string scattered sound is 45=110Hz=A, so under the correct tuning, the pitch of the seven strings can be represented by an array, and the array value is [36,38,41,43,45,48,50], which is equivalent to [C,D,F,G,A,c,d].

[0041] Among them, Figure 3 and Figure 4 As shown, in step S2, data structure II uses an array to represent the melody, and the melody records the relative pitch relationship of each string; for example, in the "slow three-string" melody, we can record it as [0,0,-1,0,0,0,0], and the "tight five-string" can be recorded as [0,0,0,0,1,0,0], which represents the number of semitones that each string is offset from the correct pitch.

[0042] Among them, in step S2, data structure II uses an array to represent the melody, and the melody records the relative pitch relationship of each string.

[0043] Among them, in step S2, the standard tone deviation information of data structure II is specifically implemented in the following two ways:

[0044] (1) Change the standard tone of 440 Hzb. After adjusting the pitch, record it as calib = 410. Use 410 Hz as the standard tone for tuning. If only this value is modified, it will not affect the display of the pitch value, and it will only be used as the pitch deviation during calculation.

[0045] (2) Adjustment is made by changing the number of semitones, usually lowering the pitch, recorded as move = -2, which means lowering the overall pitch of the string by two semitones.

[0046] Among them, Figure 4 As shown, the calculation method in step S3, we take the tuning of the "slow sanxian" as an example. When lowering two standard pitches, we can calculate that the pitch of each string at this time is [A1#, C, D, F, G, A#, c].

[0047] Among them, in step S4, by receiving the guqin audio data for analysis and calculating the actual pitch, it is determined whether the current pitch is accurate and which string is in question. Figure 1 As shown, the current pitch is 118Hz, and you can see below that it is positioned as a sixth string.

[0048] Among them, in step S5, after the tuner of the handheld application knows the actual pitch of the guqin, when the guqin music is played, the overall pitch of the music is adjusted to match the actual pitch of the guqin, such as Figure 5 As shown, it corresponds to the piano score of Autumn Wind Lyrics 1. There is a "Play" button on the top, which can automatically play sounds of different pitches according to the actual tuning.

[0049] The principle of the present invention is:

[0050] We know that the strings of the guqin need to be calibrated before playing. Under different tunes and different pitch standards, the actual pitch of each string is different, but we can calculate the actual pitch of each string under different tunes and different pitches, and compare it with the pitch of each string of the guqin to determine whether the current guqin is accurate. In this way, the tuning function can be completed without manual calculation.

[0051] First, define a data structure to describe the pitch of each string in the standard pitch as CDFGAcd, and use another data structure to describe the melody and the number of semitones to reduce the standard pitch, as well as the offset of the standard pitch. Through the above attribute values, we can calculate the actual pitch of each string in this case, automatically determine which string the current tone is, and whether it is consistent with the actual pitch, thereby completing the tuning function of the guqin.

[0052] The present invention digitizes the pitch characteristics of the guqin, describes its basic information, completes the tuning of the guqin in coordination with a set of parameter systems and interactive rules, and simultaneously implements upper-level applications based on the tuning results. It is characterized in that the pitch of each string of the guqin can be automatically identified and the string sequence can be determined by the pitch. The pitch can be automatically adjusted when playing music according to the actual guqin pitch.

[0053] Beneficial effects:

[0054] The present invention can avoid the need to memorize the pitch value and calculation method of each string of the guqin, and use a digital method to calculate the pitch of each string at different pitches in different tunes, so as to quickly identify whether the intonation of each string is accurate. Since the tuner records the actual pitch value of the current guqin, it is convenient to quickly identify the pitch and judge the string sequence in different tunes and different non-standard pitches, and solves the need to manually calculate the pitch of each string at different pitches in different tunes. Therefore, it can be used in other occasions, such as when automatically playing guqin music, according to the tuning result, the pitch of the played music is changed in real time, so that the pitch of the playback and the playing is the same, which is convenient for following the practice, and is suitable for other application scenarios that rely on secondary tuning results.

[0055] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A method for implementing a guqin tuner, based on a handheld application terminal with a receiver and a speaker, characterized in that: The steps include: S1. Create a data structure I for describing the pitches of the seven strings of the guqin and number the pitches; the data structure I specifically uses a computer program language to use 0-127 numbers to mark different absolute pitches, each number value differs by a semitone, and then uses a number array to mark the pitches of the seven strings; S2. Create a data structure II for describing the melody properties of the guqin and the standard pitch deviation information of the pitch, specifically describing the melody and the number of semitones that reduce the standard pitch and the offset of the standard pitch; data structure II uses an array to represent the melody, and the melody records the relative pitch relationship of each string; The standard tone deviation information of data structure II is specifically implemented in the following two ways: (1) Change the standard tone of 440 Hzb. After adjusting the pitch, record it as calib = 410. Use 410 Hz as the standard tone for tuning. If only this value is modified, it will not affect the display of the pitch value, and it will only be used as the pitch deviation during calculation. (2) Adjust by changing the number of semitones, usually lowering the pitch, denoted as move = -2, which means lowering the pitch of the string by two semitones; S3, according to the attribute values ​​of the above data structure I and data structure II, the pitches of the seven strings are calculated as comparison data, and the corresponding pitch values ​​of the seven strings of the actual guqin are automatically calculated; S4, compare the pitch of each string obtained by the handset of the handheld application end with the comparison data, tune the strings, and determine the string sequence; analyze and calculate the actual pitch by receiving the guqin audio data, and compare it with the calculation result of S3, so as to determine whether the current pitch is accurate and determine the string sequence; S5. Based on the above attribute values, it is reflected in the handheld application terminal.

2. The method for implementing a guqin tuner according to claim 1, characterized in that: In step S5, after the tuner of the handheld application knows the actual pitch of the guqin, when the guqin music is played, the overall pitch of the music is adjusted to match the actual pitch of the guqin, thereby realizing the follow-up function.