CALCULATION FORMULA OF PYTHAGOREAN TUNING

20220375442 · 2022-11-24

    Inventors

    Cpc classification

    International classification

    Abstract

    The present invention relates to a calculation formula of Pythagorean tuning. It specifically comprises: inputting the initial frequency of the musical tuning, the number of downward tone and the number of upward tone through an input module, then calculating a corresponding frequency value by utilizing a calculation module, and outputting the corresponding frequency value through an output module. Compared with the traditional calculation method, the present invention has the advantages that: the present invention inputs the initial frequency of the musical tuning, the number of downward tone and the number of upward tone utilizing an input module, and calculates the corresponding frequency value by utilizing a calculation module, and outputs the corresponding frequency value through an output module, especially the obtained tone sequence can be played by various musical instruments through the sound output unit in the output module, which is convenient for music practitioners to use.

    Claims

    1. The calculation formula of Pythagorean tuning, comprising a generation system, the generation system comprises an input module, a processing and calculation module and an output module, and the processing and calculation module comprises an exponent calculation unit during upward process, a exponent calculation unit during downward process and a frequency value calculation unit, its specific steps are as follows: step 1: inputting, by the input module, a frequency f.sub.0 and the number N of downward tones and the number M of upward tones to be calculated, wherein the frequency f.sub.0 is used as the frequency of the starting tone of the tuning; step 2: obtaining a sequence G by the exponent calculation unit during upward process: calculating M values according to an exponent calculation formula g.sub.i=└i×log.sub.23┘, 1≤i≤M to obtain an exponent sequence G; step 3: obtaining a sequence G by the exponent calculation unit during downward process: calculating N values according to an exponent calculation formula g.sub.j.sup.′=└j×log.sub.23┘+1,1≤j≤N to obtain an exponent sequence G′; step 4: obtaining, by the frequency value calculation unit, frequency values of the tones needed to be calculated: calculating the frequency values of the upward M tones according to a calculation formula to f i = f 0 3 i 2 g i , 1 i M to obtain a sequence F of the upward M frequency values; and calculating frequency values of the downward N tones according to a calculation formula f j = f 0 2 g j 3 j , 1 j N to obtain a sequence F′ of the upward N frequency values; and step 5: outputting the tone sequences F and F′by the output module.

    2. The calculation formula of Pythagorean tuning according to claim 1, wherein in the step 2, the exponent calculation formula of the exponent calculation unit during upward process is as follows: g.sub.i=└i×log.sub.23┘,1≤i≤M, wherein └i×log.sub.23┘ represents an integer part value taken from the numerical value i×log.sub.23, and i represents an integer value from 1 to M, and M exponent values are calculated by the exponent calculation formula, and the calculated values are arranged from smallest to largest according to the size of subscript i, so as to obtain the sequence G, wherein the sequence G=custom-characterg.sub.1, . . . , g.sub.i−1, g.sub.i, . . . , g.sub.Mcustom-character.

    3. The calculation formula of Pythagorean tuning according to claim 1, wherein in the step 3, the exponent calculation formula of the calculation unit is as follows: g.sub.j.sup.′=└j×log.sub.23┘+1,1≤j≤N, where └j×log.sub.23┘ represents an integer part value taken from the numerical value and j represents an integer value from 1 to N, and N exponent values are calculated by the exponent calculation formula, and the calculated values are arranged from smallest to largest according to the size of subscript j, so as to obtain the sequence G′, wherein the sequence G′=custom-characterg.sub.1.sup.′, . . . , g.sub.j, g.sub.j+1.sup.′, . . . , g.sub.N.sup.′custom-character.

    4. The calculation formula of Pythagorean tuning according to claim 1, wherein in the step 4, the calculation formulas of the tone sequence F and the tone sequence F′ are respectively f i = f 0 3 i 2 g i , 1 i M and f j = f 0 2 g j 3 j , 1 j N , which are products of a fractional ratio and the starting tone of the tuning, and a numerator and a denominator of the fractional ratio are exponential values with integers 2 and 3 as the base.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0020] FIG. 1 is a method of generating tone of Pythagorean tuning in the traditional calculation method;

    [0021] FIG. 2 is a flow chart of the tone generating method of the present invention;

    [0022] FIG. 3 is a schematic views of the circuit relation of the generating system of the present invention.

    DESCRIPTION OF THE EMBODIMENTS

    [0023] The present invention will be described below with reference to drawings.

    [0024] As shown in FIGS. 2 and 3, the calculation formula of Pythagorean tuning comprises a generation system, wherein the generation system comprises an input module 1, a processing and calculation module 2 and an output module 3, and the processing and calculation module 2 comprises an exponent calculation unit during upward process 20, a exponent calculation unit during downward process 21 and a frequency value calculation unit 22, its specific steps are as follows:

    [0025] step 1: inputting, by the input module 1, a frequency f.sub.0 and the number N of downward tones and the number M of upward tones to be calculated, wherein the frequency f.sub.0 is used as the frequency of the starting tone of the tuning;

    [0026] step 2: obtaining a sequence G by the exponent calculation unit during upward process 20: calculating M values according to the formula g.sub.i=└i×log.sub.23┘, 1≤i≤M to obtain an exponent sequence G;

    [0027] step 3: obtaining a sequence G′ by the exponent calculation unit during downward process 21: calculating N values according to the formula g.sub.j.sup.′=└j×log.sub.23┘+1,1≤j≤N to obtain an exponent sequence G′ ;

    [0028] step 4: obtaining, by the frequency value calculation unit 22, frequency values of the tones needed to be calculated: calculating the frequency values of the upward M tones according to a calculation formula

    [00004] f i = f 0 3 i 2 g i , 1 i M

    to obtain a sequence F of the upward M frequency values; and calculating frequency values of the downward N tones according to a calculation formula

    [00005] f j = f 0 2 g j 3 j , 1 j N

    to obtain a sequence F′ of the upward N frequency values;

    [0029] step 5: outputting the tone sequences F and F′ by the output module 3.

    [0030] Further explanation of Step 2: in the step 2, the exponent calculation formula of the exponent calculation unit during upward process 20 is as follows: g.sub.i=└i×log.sub.23┘,1≤i≤M, where └i×log.sub.23┘ represents an integer part value taken from the numerical value i×log.sub.23, and i represents an integer value from 1 to M, and Mexponent values are calculated by the formula, and the calculated values are arranged from smallest to largest according to the size of subscript i, so as to obtain a sequence G, wherein G=custom-characterg.sub.1, . . . , g.sub.i−1, g.sub.i, . . . , g.sub.Mcustom-character.

    [0031] Further explanation of Step 3: in the step 3, the exponent calculation formula of the calculation unit 21 is as follows: g.sub.j.sup.′=└j×log.sub.23┘+1,1≤j≤N, where └j×log.sub.23┘ represents an integer part value taken from the numerical value j×log.sub.2 3 , and j represents an integer value from 1 to N, and N exponent values are calculated by the formula, and the calculated values are arranged from smallest to largest according to the size of subscript j, so as to obtain a sequence G′, wherein G′=custom-characterg.sub.1.sup.′, . . . , g.sub.j, g.sub.j+1.sup.′, . . . , g.sub.N.sup.′custom-character.

    [0032] Further explanation of Step 4: in the step 4, the calculation formulas of the tone sequence F and the tone sequence F′ are respectively

    [00006] f i = f 0 3 i 2 g i , 1 i M and f j = f 0 2 g j 3 j , 1 j N ,

    which are products of a fractional ratio and the starting tone of the tuning, and the numerator and the denominator of the fractional ratio are exponential values with integers 2 and 3 as the base.

    [0033] As an optimization: the input module 1 may be devices such as a physical keyboard, a virtual keyboard, the output module 3 may be a display, and the processing and computing module 2 further comprises a processor.

    [0034] The present invention has the advantages as follows:

    [0035] 1. the tone generation method of the Pythagorean tuning described by the present invention can be conveniently calculated by using formulas

    [00007] f i = f 0 3 i 2 g i , 1 i M and f j = f 0 2 g j 3 j , 1 j N .

    For example, for any key, as long as the corresponding value range taken of each tone constituting the key is determined, the frequencies of the seven tones of this key can be calculated by using formulas. However, the traditional calculation method of the tone of Pythagorean tuning utilizes multiplication factors 2/3, 4/3, 3/2, and 3/4 for calculation, starting from the artificially specified initial frequency of the musical tuning, and generating the required tone for many times according to different tones. Every time a new tone is generated, it needs artificial judgment to choose which multiplication factor to use. In addition, to calculate any tone, it needs to start from the frequency of the starting tone of the tuning. For example, to calculate the seven tones of .sup.#C key, it is necessary to start from the frequency of the starting tone of the tuning, and calculate them one by one in sequence, that is, to calculate in this order f.sub.0.fwdarw.f.sub.1.fwdarw.f.sub.2.fwdarw.f.sub.3.fwdarw.f.sub.4.fwdarw.f.sub.5.fwdarw.f.sub.6.fwdarw.f.sub.7.fwdarw.f.sub.8.fwdarw.f.sub.9.fwdarw.f.sub.10.fwdarw.f.sub.11.fwdarw.f.sub.12, and then select the last seven tones to constitute # C key. The tone generation method of the Pythagorean tuning described by the present invention directly calculates the frequencies of seven tones by utilizing calculation formula of the tone, which greatly facilitates the calculation of tones.

    [0036] 2. The tone generation method of the Pythagorean tuning described by the present invention can conveniently utilize the formula

    [00008] f i = f 0 3 i 2 g i , 1 i M and f j = f 0 2 g j 3 j , 1 j N

    to calculate the frequency of the tone of any given generating tone number, and the frequency of the tone can be directly obtained only by calculating once. However, the traditional calculation method of the tone of Pythagorean tuning needs to calculate all the tones from the frequency of the starting tone of the tuning to the designated position. The present invention greatly improves the calculation efficiency.

    [0037] The exponent calculation unit during upward process 20: it corresponds to the commonly used pure fifths upward method of Pythagorean tuning, and it generates the exponent of denominator upward from the frequency of the starting tone of the tuning to generate the required tone. By giving the tone calculation formula of fractional calculation, the present invention can directly calculate the tone without selecting the multiplication factor when utilizing the common method.

    [0038] The exponent calculation unit during downward process 21: it corresponds to the commonly used pure fifths downward method of Pythagorean tuning, and it generates the exponent of molecule downward from the frequency of the starting tone of the tuning to generate the required tone. By giving the tone calculation formula of fractional calculation, the present invention can directly calculate the tone without selecting the multiplication factor when utilizing the common method.

    [0039] The frequency value calculation unit 22: the exponent generated by the exponent calculation unit during upward process 20 and the exponent calculation unit during downward process 21 respectively calculate the upward M frequency values and the downward N frequency values by utilizing the formulas

    [00009] f i = f 0 3 i 2 g i , 1 i M and f j = f 0 2 g j 3 j , 1 j N .

    [0040] In the era of digital music, music software can serve almost all music activities. Whether it is designing discrete pitched instruments,digital controllers or software instruments, music sampler, or during music composition, it is necessary to use tone calculation. For the convenience of calculation, most music software often adopts twelvetoneequal temperament, which are simple calculation and easy to understand. The calculation formula is:

    [00010] f k = f 0 2 { k 1 1 2 } , k Z .

    However, from the perspective of music theory, the equal temperament is an unharmonious tone tuning system. In the long musical practice of mankind, Pythagorean tuning is the most widely used tuning, but the commonly used method of generating tone of Pythagorean tuning needs some musical knowledge to understand, and its tone calculation formula is more complicated than the equal temperament, so its application range is greatly reduced.

    [0041] The calculation formula of Pythagorean tuning provided by the present invention is as simple and easy to understand as the equal temperament, so that the present invention will greatly promote the diversified use of tone in the digital music era and provide technical support for enriching the industrial ecology of digital music products.

    [0042] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: the technical solutions recorded in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions in the embodiments of the present invention.