The present invention belongs to the field of modern music industry, and in particular relates to a calculation formula of Pythagorean tuning.
In the field of art of music, tone is one of the main contents of music practice and music research. The circle-of-fifths is a kind of tuning system of a tone, which is often called Pythagorean tuning in western countries. It was independently put forward by Pythagorean School in ancient Greece. It has a history of more than 2,000 years and is widely used all over the world. Most existing musical instruments adopt the method of Pythagorean tuning as the method, which has made great contributions to the inheritance and development of music cause of all mankind.
However, the modern world has entered the era of digital music, and the internationally popular Pythagorean tuning still adopts the method of generating tone proposed by
Pythagorean School, which is no longer suitable for the rapid development of digital music.
Therefore, there is an urgent need for a tone generation method that can be easily calculated, so as to solve the problem of the wide application of Pythagorean tuning in the digital music era.
In order to make up for the deficiency of the traditional calculation method, the present invention provides a technical solution for calculation formula of Pythagorean tuning.
The calculation formula of Pythagorean tuning, characterized by comprising a generation system, wherein 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 fo and the number N of downward tones and the number M of upward tones to be calculated, wherein the frequency f0 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 the formula gi=└i×log23┘,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 the formula gj′=└j×log23┘+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 frequency values of the upward M tones according to a calculation formula
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
to obtain a sequence F′ of the upward N frequency values;
step 5: outputting the tone sequences F and F′ by the output module.
The calculation formula of Pythagorean tuning, wherein in the step 2, the exponent calculation formula of the exponent calculation unit during upward process is as follows: gi=└i×log23┘, 1≤i≤M, where └i×log23┘ represents an integer part value taken from the numerical value i×log23 , and i represents an integer value from 1 to M and M exponent 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=g1, . . . , gi−1, gi, . . . , gM
.
The calculation formula of Pythagorean tuning, wherein in the step 3, the exponent calculation formula of the calculation unit is as follows: gj′=└j×log23┘+1,1≤j≤N, where └j×log23┘ represents an integer part value taken from the numerical value j×log23, 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′=gi′, gj, gj+1′, . . . , gN′
.
The calculation formula of Pythagorean tuning, wherein in the step 4, the calculation formulas of the tone sequence F and the tone sequence F′ are respectively
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.
Compared to the traditional calculation method, the present invention have the following advantages:
1) the present invention inputs the initial frequency of the musical tuning, the number of downward tone and the number of upward tone by utilizing an input module, and calculates the corresponding tone sequence by using the calculation module, and then outputs it through the output module, which has high calculation efficiency and is convenient for music practitioners to use;
2) the present invention provides a method for constructing the tone sequence of Pythagorean tuning and a formula for calculating the tones of Pythagorean tuning, thus realizing a formula for calculating the frequency of the tone of any given number of tones, and further realizing the purpose of applying polyphonic tone tuning system to music software;
3) the present invention provides a method for constructing the tone sequence of Pythagorean tuning, and gives the fractional ratio between the frequency value of Pythagorean tuning and the frequency of the starting tone of the tuning, and the obtained fractional ratio can be used to calculate the required decimal precision according to actual needs, so as to meet different occasions of using the tone.
The present invention will be described below with reference to drawings.
As shown in
step 1: inputting, by the input module 1, a frequency f0 and the number N of downward tones and the number M of upward tones to be calculated, wherein the frequency f0 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 20: calculating M values according to the formula gi=└i×log23┘, 1≤i≤M to obtain an exponent sequence G;
step 3: obtaining a sequence G′ by the exponent calculation unit during downward process 21: calculating N values according to the formula gj′=└j×log23┘+1,1≤j≤N to obtain an exponent sequence G′ ;
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
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
to obtain a sequence F′ of the upward N frequency values;
step 5: outputting the tone sequences F and F′ by the output module 3.
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: gi=└i×log23┘,1≤i≤M, where └i×log23┘ represents an integer part value taken from the numerical value i×log23, 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=g1, . . . , gi−1, gi, . . . , gM
.
Further explanation of Step 3: in the step 3, the exponent calculation formula of the calculation unit 21 is as follows: gj′=└j×log23┘+1,1≤j≤N, where └j×log23┘ represents an integer part value taken from the numerical value j×log2 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′=g1′, . . . , gj, gj+1′, . . . , gN′
.
Further explanation of Step 4: in the step 4, the calculation formulas of the tone sequence F and the tone sequence F′ are respectively
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.
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.
The present invention has the advantages as follows:
1. the tone generation method of the Pythagorean tuning described by the present invention can be conveniently calculated by using formulas
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 #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 f0→f1→f2→f3→f4→f5→f6→f7→f8→f9→f10→f11→f12, 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.
2. The tone generation method of the Pythagorean tuning described by the present invention can conveniently utilize the formula
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.
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.
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.
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
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:
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.
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.
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.
Number | Date | Country | Kind |
---|---|---|---|
202011296127.4 | Nov 2020 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/134784 | 12/9/2020 | WO |