{"id":1558,"date":"2020-09-02T23:30:00","date_gmt":"2020-09-02T14:30:00","guid":{"rendered":"https:\/\/xn--k10aa.com\/?p=1558"},"modified":"2024-10-19T23:59:22","modified_gmt":"2024-10-19T14:59:22","slug":"music-and-python01","status":"publish","type":"post","link":"https:\/\/remoooo.com\/en\/music-and-python01\/","title":{"rendered":"Music and Python"},"content":{"rendered":"<p>Written in September 2020. I wrote it for fun. I will optimize the code in the next article. It is very unprofessional QAQ.<\/p>\n\n\n\n<p>This article starts with the study of music theory, starting from the twelve-tone equal temperament, introducing some basic and necessary music theory knowledge, and then writing a python file to output a chord audio file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Music theory knowledge part:<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">1. Brief Introduction to Temperament<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Introduction<\/h3>\n\n\n\n<p>Temperament, also known as &quot;music&quot;, is the science that studies the composition and application of musical scales. Temperament studies the musical scales used in music. The sounds used in music are mostly fixed, while the musical scale is based on a certain<a target=\"_blank\" href=\"https:\/\/baike.baidu.com\/item\/%E9%9F%B3%E7%A8%8B\/18483922\" rel=\"noreferrer noopener\">interval<\/a>A system of musical tones based on the law of pitch and specified by mathematical methods. Each unit in the system is called a &quot;law&quot;; a musical scale is a series of tones composed of several laws selected from the law system according to certain specifications of interval relationships, and each unit in it is called a &quot;tone&quot;. When &quot;tone&quot; and &quot;law&quot; are collectively referred to as &quot;musical law&quot;, in addition to the law system, it also refers to all musical tones with precise specifications.<\/p>\n\n\n\n<p>In short, the law is to use mathematical methods to determine the vibration frequency of each pitch (not just one). &quot;Law&quot; is the basic unit of the law system. The concepts of &quot;law&quot; and &quot;sound&quot; are similar but slightly different. Each unit in the law system is called a &quot;law&quot;, while each unit in the scale is called a &quot;sound&quot;. The relationship between the law system and the scale is very close.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Calculation of Laws<\/h3>\n\n\n\n<p>Temperament calculation method is the interval calculation method, which uses frequency ratio or interval value to represent and calculate the size of the interval.<\/p>\n\n\n\n<p>From ancient times to the present, laws have been constantly changing. Different legal systems are determined by different laws of life.<\/p>\n\n\n\n<p>There are four types of interval values: logarithmic value, octave value, cent value and average interval value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Circle-of-fifths system<\/h3>\n\n\n\n<p>The fifth generation law stipulates that the frequencies of the two notes that form a perfect fifth interval are set at 2:3. This method of generating a law every fifth degree and continuing to generate each law is called the &quot;fifth generation method&quot;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-412.png\" alt=\"\" class=\"wp-image-1559 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"660\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-412.png\" alt=\"\" class=\"wp-image-1559 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-412.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-412-300x138.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-412-1024x469.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-412-768x352.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>Among them, due to the existence of the maximum tone difference, the fifth-generation law cannot be circulated on the twelve-tone scale to form the scale of each key. That is, starting from the tonic, after generating the law twelve times (or more times) and incorporating it into the same octave, it is impossible to return to the tonic. This creates certain obstacles to the use of the fifth-generation law.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-417.png\" alt=\"\" class=\"wp-image-1564 lazyload\"\/><noscript><img decoding=\"async\" width=\"850\" height=\"405\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-417.png\" alt=\"\" class=\"wp-image-1564 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-417.png 850w, https:\/\/remoooo.com\/wp-content\/uploads\/image-417-300x143.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-417-768x366.png 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Just intonation<\/h3>\n\n\n\n<p>The frequencies of the notes in the scale are derived from ratios of small integers. In this system, the intervals between notes are based on simple numerical ratios, such as 2:1 for an octave, 3:2 for a perfect fifth, and 4:3 for a perfect fourth. These ratios create harmonically pure intervals that are said to produce more natural and pleasing to the ear than the isothermal tuning system used in modern Western music.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Twelve-tone equal temperament<\/h3>\n\n\n\n<p>The twelve-tone equal temperament is a tuning system that divides an octave into twelve semitones with equal frequency ratios, also known as the &quot;twelve-equally proportional temperament&quot;.<\/p>\n\n\n\n<p>All of our codes below are based on the twelve-tone equal temperament. The reason is that the piano is designed based on the twelve-tone equal temperament.<\/p>\n\n\n\n<p>Baidu Encyclopedia writes: The twelve-tone equal temperament was first proposed by a scientist in the Ming Dynasty of my country.<a target=\"_blank\" href=\"https:\/\/baike.baidu.com\/item\/%E6%9C%B1%E8%BD%BD%E5%A0%89\/1182870\" rel=\"noreferrer noopener\">Zhu Zaiyu<\/a>Discovered in 1584. Later spread to the West via the Silk Road.<\/p>\n\n\n\n<p>1605 Dutch mathematician<a target=\"_blank\" href=\"https:\/\/zh.m.wikipedia.org\/wiki\/%E8%A5%BF%E8%92%99%C2%B7%E6%96%AF%E7%89%B9%E8%8A%AC\" rel=\"noreferrer noopener\">Simon Steffen<\/a>In an unfinished manuscript &quot;Van de Spiegheling der singconst&quot; it was proposed to use<\/p>\n\n\n\n<p>He calculated the twelve-tone equal temperament, but due to insufficient precision, the string length figures he calculated deviated from the correct number by as much as one or two units.<\/p>\n\n\n\n<p>The frequency ratio of an octave is 2:1, so the frequency ratio between the various tones of the twelve equal temperaments should be:<\/p>\n\n\n\n<p>In music practice, musicians at that time were well aware of the convenience of the twelve-tone equal temperament. Composers and performers from all over the world began to use the twelve-tone equal temperament and were also committed to its development. For example, JS Bach of Germany wrote two volumes of &quot;Well-Tempered Piano Music&quot;. Although these two volumes did not only use the twelve-tone equal temperament (some irregular temperaments were also used), they are considered to be exemplary works that fully utilized the effectiveness of the twelve-tone equal temperament and could be freely transposed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Comparison of the three systems<\/h3>\n\n\n\n<p>Each of the three tuning systems has its own advantages and disadvantages. The twelve-tone equal temperament solves some contradictions between the fifth-tone temperament and the pure temperament, such as the contradiction that the starting temperament cannot be returned to after increasing the number of temperaments, but the twelve-tone equal temperament will affect the harmony of the interval. In general, the twelve-tone equal temperament reconciles and compromises the fifth-tone temperament and the pure temperament, which is between the two and closer to the fifth-tone temperament. The twelve-tone equal temperament is currently the most widely used tuning system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Basic Music Theory - P1 - Musical Tone System and Grouping<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Music system and musical series<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-416.png\" alt=\"\" class=\"wp-image-1563 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"250\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-416.png\" alt=\"\" class=\"wp-image-1563 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-416.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-416-300x52.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-416-1024x178.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-416-768x133.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>There are 88 keys on a piano. The sum of these musical notes is called \u2013<strong>Music System<\/strong>.<\/p>\n\n\n\n<p>Arranged from low to high is called \u2013<strong>Tone Series<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Note name<\/h3>\n\n\n\n<p>In the musical system, each musical note has a fixed name, i.e., note name, which is usually represented by letters C, D, E, F, G, A, B.<\/p>\n\n\n\n<p>These seven pitches are also called basic pitches, and their positions on the piano keyboard are fixed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-415.png\" alt=\"\" class=\"wp-image-1562 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"460\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-415.png\" alt=\"\" class=\"wp-image-1562 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-415.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-415-300x96.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-415-1024x327.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-415-768x245.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Sound grouping<\/h3>\n\n\n\n<p>The piano is divided into different areas.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-413.png\" alt=\"\" class=\"wp-image-1560 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"382\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-413.png\" alt=\"\" class=\"wp-image-1560 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-413.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-413-300x80.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-413-1024x272.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-413-768x204.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>The group of notes starting from the middle C on the piano keyboard is called the small note group 1, also known as the &quot;axis group&quot;. The small note group 1 to the right is called the small note group 2, small note group 3, small note group 4, and small note group 5; the small note group 1 to the left is called the small note group, large note group, large note group 1, and large note group 2.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-414.png\" alt=\"\" class=\"wp-image-1561 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"594\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-414.png\" alt=\"\" class=\"wp-image-1561 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-414.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-414-300x124.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-414-1024x422.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-414-768x317.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">3. Basic Music Theory - P2 - Staff &amp; Notes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Staff<\/h3>\n\n\n\n<p>The staff is composed of five lines and four spaces, which are used to record the pitch of notes. Because the staff has five equidistant parallel horizontal lines, it is called the five-line staff.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-419.png\" alt=\"\" class=\"wp-image-1566 lazyload\"\/><noscript><img decoding=\"async\" width=\"1320\" height=\"286\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-419.png\" alt=\"\" class=\"wp-image-1566 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-419.png 1320w, https:\/\/remoooo.com\/wp-content\/uploads\/image-419-300x65.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-419-1024x222.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-419-768x166.png 768w\" sizes=\"(max-width: 1320px) 100vw, 1320px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Clef<\/h3>\n\n\n\n<p>Here we just need to briefly introduce the treble clef. In addition, there are also bass clef and alto clef.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-420.png\" alt=\"\" class=\"wp-image-1567 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"291\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-420.png\" alt=\"\" class=\"wp-image-1567 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-420.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-420-300x61.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-420-1024x207.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-420-768x155.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-418.png\" alt=\"\" class=\"wp-image-1565 lazyload\"\/><noscript><img decoding=\"async\" width=\"1229\" height=\"475\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-418.png\" alt=\"\" class=\"wp-image-1565 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-418.png 1229w, https:\/\/remoooo.com\/wp-content\/uploads\/image-418-300x116.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-418-1024x396.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-418-768x297.png 768w\" sizes=\"(max-width: 1229px) 100vw, 1229px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Musical Notes<\/h3>\n\n\n\n<p>A note consists of three parts: the note head (the hollow or filled oval symbol), the stem (the short vertical line), and the tail (the small arc on the right side of the stem).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-422.png\" alt=\"\" class=\"wp-image-1569 lazyload\"\/><noscript><img decoding=\"async\" width=\"1292\" height=\"396\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-422.png\" alt=\"\" class=\"wp-image-1569 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-422.png 1292w, https:\/\/remoooo.com\/wp-content\/uploads\/image-422-300x92.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-422-1024x314.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-422-768x235.png 768w\" sizes=\"(max-width: 1292px) 100vw, 1292px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Rest<\/h3>\n\n\n\n<p>Rests are symbols used to indicate pauses or interruptions in music.<\/p>\n\n\n\n<p>During the progress of music, although the rest indicates a brief silence, it has a special meaning at this time, and the music is not interrupted, so the rest is one of the important components of a musical work.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-423.png\" alt=\"\" class=\"wp-image-1570 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"655\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-423.png\" alt=\"\" class=\"wp-image-1570 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-423.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-423-300x136.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-423-1024x466.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-423-768x349.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">5. Time Signature<\/h3>\n\n\n\n<p>The numerator number represents the number of beats in a measure, and the denominator number represents how many notes make up a beat. Be careful not to read it as a fraction of a beat!<\/p>\n\n\n\n<p>In addition, the time signature also clarifies the rules for changes in the strength of the melody.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-425.png\" alt=\"\" class=\"wp-image-1572 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"565\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-425.png\" alt=\"\" class=\"wp-image-1572 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-425.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-425-300x118.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-425-1024x402.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-425-768x301.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">4. Basic Music Theory - P3 - Intervals<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Interval<\/h3>\n\n\n\n<p>The pitch distance between two notes is called the interval.<\/p>\n\n\n\n<p>There are two types of intervals: melodic intervals and harmonic intervals.<\/p>\n\n\n\n<p>In short, a melodic interval is when two notes sound one after the other, while a harmonic interval is when they sound at the same time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Melodic intervals<\/h3>\n\n\n\n<p>Read in the order of pronunciation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-421.png\" alt=\"\" class=\"wp-image-1568 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"161\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-421.png\" alt=\"\" class=\"wp-image-1568 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-421.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-421-300x34.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-421-1024x114.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-421-768x86.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Harmonic Intervals<\/h3>\n\n\n\n<p>The lower note is called the root note, and the upper note is called the crown note.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-424.png\" alt=\"\" class=\"wp-image-1571 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"129\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-424.png\" alt=\"\" class=\"wp-image-1571 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-424.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-424-300x27.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-424-1024x92.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-424-768x69.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-427.png\" alt=\"\" class=\"wp-image-1574 lazyload\"\/><noscript><img decoding=\"async\" width=\"1024\" height=\"980\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-427.png\" alt=\"\" class=\"wp-image-1574 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-427.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-427-300x287.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-427-768x735.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Consonant and dissonant intervals<\/h3>\n\n\n\n<p>The sound effects of consonant intervals sound pleasant and harmonious, and can be divided into perfect consonant intervals and incomplete consonant intervals.<\/p>\n\n\n\n<p>Perfect consonant intervals include perfect first, perfect fourth, perfect fifth, and perfect octave; imperfect consonant intervals include minor third, major third, minor sixth, and major sixth.<\/p>\n\n\n\n<p>The sound of pure octave sounds very integrated, like the sound of one note, but because it is too integrated, the sound will sound hollow.<\/p>\n\n\n\n<p>The sound effects of the perfect first, perfect fourth, and perfect fifth intervals are slightly fuller than those of the perfect octave, but they also appear hollow.<\/p>\n\n\n\n<p>Therefore, all pure intervals (perfect first, perfect fourth, perfect fifth, perfect octave) are perfectly consonant intervals.<\/p>\n\n\n\n<p>The sound of dissonant intervals is harsh, tense and unstable, such as major and minor seconds, major and minor sevenths, augmented fourths and diminished fifths.<\/p>\n\n\n\n<p>Although dissonant intervals sound sharp, they are also important elements in musical works.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Basic Music Theory - P4 - Mode<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Tuning<\/h3>\n\n\n\n<p>A system of musical notes of different pitches, organized around a stable central tone (tonic) in a certain relationship, is called a mode. The most widely used mode in the world today is the major and minor mode.<\/p>\n\n\n\n<p>Among them, Bach&#039;s &quot;Well-Tempered Clavier&quot; is a classic among classics in major and minor keys.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-430.png\" alt=\"\" class=\"wp-image-1577 lazyload\"\/><noscript><img decoding=\"async\" width=\"560\" height=\"774\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-430.png\" alt=\"\" class=\"wp-image-1577 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-430.png 560w, https:\/\/remoooo.com\/wp-content\/uploads\/image-430-217x300.png 217w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Tonic<\/h3>\n\n\n\n<p>In the mode, the tonic is the central tone in the core position, which has the strongest sense of stability and other tones tend to it. In songs (music), the tonic often appears on the strong beat, the longer tone or the ending.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Major Mode<\/h3>\n\n\n\n<p>The major scale is abbreviated as &quot;major&quot; and consists of seven scales. The major third is the interval between the tonic and the \u2162 scale, which is also the characteristic of the major scale. Among them, the \u2160, \u2162, and \u2164 scales form a major triad, so the color of the major scale is bright and brilliant.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-426.png\" alt=\"\" class=\"wp-image-1573 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"255\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-426.png\" alt=\"\" class=\"wp-image-1573 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-426.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-426-300x53.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-426-1024x181.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-426-768x136.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>There are three types of major keys: natural major, harmonic major, and melodic major.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Natural major<\/h3>\n\n\n\n<p>The natural major is the most commonly used major key, consisting entirely of natural notes.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-433.png\" alt=\"\" class=\"wp-image-1580 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"255\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-433.png\" alt=\"\" class=\"wp-image-1580 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-433.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-433-300x53.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-433-1024x181.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-433-768x136.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>The natural major scale consists of five whole tones and two half tones.<\/p>\n\n\n\n<p>Its scale structure is: whole tone-whole tone-semitone-whole tone-whole tone-whole tone-semitone, that is, it is composed of major second, major second, minor second, major second, major second, major second, and minor second intervals.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-429.png\" alt=\"\" class=\"wp-image-1576 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"460\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-429.png\" alt=\"\" class=\"wp-image-1576 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-429.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-429-300x96.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-429-1024x327.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-429-768x245.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p><strong>There is a tone (black key) between C and D, so the CD is called full tone.<\/strong><\/p>\n\n\n\n<p><strong>There is no interval between E and F, so it is called a semitone.<\/strong><\/p>\n\n\n\n<p>To make it easier to memorize, the natural major key is compiled into a mnemonic: full, full, half, full, full, full, half.<\/p>\n\n\n\n<p>That is what we usually say: de re mi fa sol la si<\/p>\n\n\n\n<p>The key of C natural major is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-428.png\" alt=\"\" class=\"wp-image-1575 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"185\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-428.png\" alt=\"\" class=\"wp-image-1575 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-428.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-428-300x39.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-428-1024x132.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-428-768x99.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Harmonic major<\/h3>\n\n\n\n<p>On the basis of the natural major scale, lowering the VI note by a semitone results in the harmonic major scale.<\/p>\n\n\n\n<p>Its characteristic is the augmented second interval formed between the flat VI and VII notes.<\/p>\n\n\n\n<p>This augmented second is the mark of the harmonic major key and also the characteristic of the harmonic major key.<\/p>\n\n\n\n<p>The C harmonic major scale is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-431.png\" alt=\"\" class=\"wp-image-1578 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"200\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-431.png\" alt=\"\" class=\"wp-image-1578 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-431.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-431-300x42.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-431-1024x142.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-431-768x107.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Melodic major<\/h3>\n\n\n\n<p>On the basis of the natural major scale, lowering the VI note by a semitone results in the melodic major scale.<\/p>\n\n\n\n<p>Its characteristic is the augmented second interval formed between the flat VI and VII notes.<\/p>\n\n\n\n<p>This augmented second is the mark of the harmonic major key and also the characteristic of the harmonic major key.<\/p>\n\n\n\n<p>The C melodic major scale is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-432.png\" alt=\"\" class=\"wp-image-1579 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"244\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-432.png\" alt=\"\" class=\"wp-image-1579 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-432.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-432-300x51.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-432-1024x174.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-432-768x130.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><figcaption class=\"wp-element-caption\">image<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Minor mode<\/h3>\n\n\n\n<p>The minor mode is simply called &quot;minor&quot; and is also composed of seven pitches.<\/p>\n\n\n\n<p>The relationship between its tonic and the \u2162 degree is a minor third, which is also the characteristic of the minor mode. Among them, the \u2160, \u2162, and \u2164 degrees form a minor triad, so the color of the minor mode is soft and dim.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-434.png\" alt=\"\" class=\"wp-image-1581 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"258\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-434.png\" alt=\"\" class=\"wp-image-1581 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-434.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-434-300x54.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-434-1024x183.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-434-768x138.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>There are also three types of minor keys: natural minor, harmonic minor, and melodic minor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Natural minor<\/h3>\n\n\n\n<p>The natural minor scale also consists of five whole tones and two semitones, and its scale structure is whole tone-semitone-whole tone-whole tone-semitone-whole tone-whole tone, that is, it is composed of major second, minor second, major second, major second, minor second, major second, and major second intervals.<\/p>\n\n\n\n<p>The a natural minor scale is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-438.png\" alt=\"\" class=\"wp-image-1585 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"203\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-438.png\" alt=\"\" class=\"wp-image-1585 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-438.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-438-300x42.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-438-1024x144.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-438-768x108.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<p>To make it easier to memorize, the mnemonic is: whole, half, whole, whole, half, whole, whole.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-435.png\" alt=\"\" class=\"wp-image-1582 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"433\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-435.png\" alt=\"\" class=\"wp-image-1582 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-435.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-435-300x90.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-435-1024x308.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-435-768x231.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Harmonic minor<\/h3>\n\n\n\n<p>On the basis of the natural minor scale, raising the seventh degree by a semitone results in the harmonic minor scale.<\/p>\n\n\n\n<p>Its characteristic is the augmented second interval formed between the VI and the raised VII, and the VII has the function of a leading tone tending towards the tonic after being raised by a semitone, and it is more tense than the natural minor.<\/p>\n\n\n\n<p>The a harmonic minor scale is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-436.png\" alt=\"\" class=\"wp-image-1583 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"266\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-436.png\" alt=\"\" class=\"wp-image-1583 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-436.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-436-300x55.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-436-1024x189.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-436-768x142.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Melodic minor<\/h3>\n\n\n\n<p>On the basis of the natural minor scale, the VI and VII degrees in the ascending scale of the natural minor are raised by a semitone, and then these two notes are restored in the descending scale, which is the melodic minor.<\/p>\n\n\n\n<p>The a-melodic minor scale is shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-437.png\" alt=\"\" class=\"wp-image-1584 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"200\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-437.png\" alt=\"\" class=\"wp-image-1584 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-437.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-437-300x42.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-437-1024x142.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-437-768x107.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">6. Basic Music Theory - P5 - Key Signature<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Key Signature<\/h3>\n\n\n\n<p>The key signature is a symbol that indicates the pitch (i.e. the pitch of the main note) of a song (music). It is located at the beginning of each line of the staff (after the clef) or where a new key appears during the music.<\/p>\n\n\n\n<p>Key signatures are written using sharp and flat signs.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-439.png\" alt=\"\" class=\"wp-image-1586 lazyload\"\/><noscript><img decoding=\"async\" width=\"1432\" height=\"215\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-439.png\" alt=\"\" class=\"wp-image-1586 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-439.png 1432w, https:\/\/remoooo.com\/wp-content\/uploads\/image-439-300x45.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-439-1024x154.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-439-768x115.png 768w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/noscript><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-440.png\" alt=\"\" class=\"wp-image-1587 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"290\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-440.png\" alt=\"\" class=\"wp-image-1587 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-440.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-440-300x60.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-440-1024x206.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-440-768x155.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-442.png\" alt=\"\" class=\"wp-image-1589 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"278\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-442.png\" alt=\"\" class=\"wp-image-1589 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-442.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-442-300x58.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-442-1024x198.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-442-768x148.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-443.png\" alt=\"\" class=\"wp-image-1590 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"282\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-443.png\" alt=\"\" class=\"wp-image-1590 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-443.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-443-300x59.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-443-1024x201.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-443-768x150.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-441.png\" alt=\"\" class=\"wp-image-1588 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"280\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-441.png\" alt=\"\" class=\"wp-image-1588 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-441.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-441-300x58.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-441-1024x199.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-441-768x149.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-446.png\" alt=\"\" class=\"wp-image-1593 lazyload\"\/><noscript><img decoding=\"async\" width=\"1440\" height=\"1533\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-446.png\" alt=\"\" class=\"wp-image-1593 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-446.png 1440w, https:\/\/remoooo.com\/wp-content\/uploads\/image-446-282x300.png 282w, https:\/\/remoooo.com\/wp-content\/uploads\/image-446-962x1024.png 962w, https:\/\/remoooo.com\/wp-content\/uploads\/image-446-768x818.png 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/noscript><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python arrangement part:<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">1. Understanding the MIDO library<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Import mido<\/h3>\n\n\n\n<p>from mido import Message,MidiFile,MidiTrack<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Mido basic framework<\/h3>\n\n\n\n<p>Create two mido library objects: MidiFile(), MidiTrack()<\/p>\n\n\n\n<p>The former is used to edit, generate and output Midi files, and the latter is used for midi file track editing.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mid = MidiFile() track = MidiTrack() mid.tracks.append(track)<\/pre>\n\n\n\n<p>Add information in track object, &#039;program_change&#039; means switch track.<\/p>\n\n\n\n<p>The intuitive understanding is: before editing a track, you need to select the track first. (This is the official fixed routine, it doesn\u2019t matter if you don\u2019t understand it, just follow it)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">track.append(Message(&#039;program_change&#039;, program=0, time=0))<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Write notes<\/h3>\n\n\n\n<p>After selecting the track, you can add notes directly to the track. Note that the time unit here is milliseconds.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">track.append(Message(&#039;note_on&#039;, note=60, velocity=64, time=0))<\/pre>\n\n\n\n<p>After adding, add an end mark, and this is the point where the writing of a note is truly completed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">track.append(Message(&#039;note_off&#039;, note=60, velocity=64, time=2000))<\/pre>\n\n\n\n<p>After adding, you can directly generate a midi file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mid.save(&#039;MyFirstDamnSong.mid&#039;)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. Code<\/h3>\n\n\n\n<p>The code is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-444.png\" alt=\"\" class=\"wp-image-1591 lazyload\"\/><noscript><img decoding=\"async\" width=\"1180\" height=\"473\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-444.png\" alt=\"\" class=\"wp-image-1591 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-444.png 1180w, https:\/\/remoooo.com\/wp-content\/uploads\/image-444-300x120.png 300w, https:\/\/remoooo.com\/wp-content\/uploads\/image-444-1024x410.png 1024w, https:\/\/remoooo.com\/wp-content\/uploads\/image-444-768x308.png 768w\" sizes=\"(max-width: 1180px) 100vw, 1180px\" \/><\/noscript><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">2. Combined with Music Theory<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Midi file frequency number table:<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-445.png\" alt=\"\" class=\"wp-image-1592 lazyload\"\/><noscript><img decoding=\"async\" width=\"487\" height=\"670\" src=\"https:\/\/\u80a5\u80a5.com\/wp-content\/uploads\/image-445.png\" alt=\"\" class=\"wp-image-1592 lazyload\" srcset=\"https:\/\/remoooo.com\/wp-content\/uploads\/image-445.png 487w, https:\/\/remoooo.com\/wp-content\/uploads\/image-445-218x300.png 218w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/noscript><\/figure>\n\n\n\n<p>From the table above, we can see that the midi number of middle C is 60.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Writing tool library<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">1. Task Analysis<\/h3>\n\n\n\n<p>We first write a tool library Notes_Toolbox.py to define some commonly used and basic things.<\/p>\n\n\n\n<p>Define the basics: intervals, note names, modes, chords, beats, fundamental notes, etc.<\/p>\n\n\n\n<p>Then write some simple methods for calling, such as returning a set of chords, automatically changing the key, and getting the MIDI frequency number through the five-line score.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Define variables<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>serial number<\/td><td>Variable Name<\/td><td>Is static?<\/td><td>Default value<\/td><td>effect<\/td><\/tr><tr><td>1<\/td><td>bpm<\/td><td>No<\/td><td>125<\/td><td>Beat<\/td><\/tr><tr><td>2<\/td><td>timePerBeat<\/td><td>No<\/td><td>60 \/ bpm * 100<\/td><td>Duration of each beat (milliseconds)<\/td><\/tr><tr><td>3<\/td><td>base_note<\/td><td>static<\/td><td>60<\/td><td>MIDI number for middle C<\/td><\/tr><tr><td>4<\/td><td>note_name[]<\/td><td>static<\/td><td>[&#039;C&#039;,&#039;D&#039;,&#039;E&#039;,&#039;F&#039;,&#039;G&#039;,&#039;A&#039;,&#039;B&#039;]<\/td><td>musical alphabet<\/td><\/tr><tr><td>5<\/td><td>major_notes[]<\/td><td>static<\/td><td>[0, 2, 2, 1, 2, 2, 2, 1]<\/td><td>Diatonic Scale<\/td><\/tr><tr><td>6<\/td><td>Cmajor_notes[]<\/td><td>static<\/td><td><\/td><td><\/td><\/tr><tr><td>7<\/td><td>Eflatmajor_notes[]<\/td><td>static<\/td><td><\/td><td><\/td><\/tr><tr><td>8<\/td><td>Cmajor{}<\/td><td>static<\/td><td>{&#039;C&#039;: 60, &#039;D&#039;: 62, &#039;E&#039;: 64, &#039;F&#039;: 65, &#039;G&#039;: 67, &#039;A&#039;: 69, &#039;B&#039;: 71}<\/td><td>C major dictionary<\/td><\/tr><tr><td>9<\/td><td>Eflatmajor{}<\/td><td>static<\/td><td>{&#039;C&#039;: 63, &#039;D&#039;: 65, &#039;E&#039;: 67, &#039;F&#039;: 68, &#039;G&#039;: 70, &#039;A&#039;: 72, &#039;B&#039;: 74}<\/td><td>E minor dictionary<\/td><\/tr><tr><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Define functions<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>serial number<\/td><td>Method Name<\/td><td>return<\/td><td>Passing in parameters<\/td><td>effect<\/td><\/tr><tr><td>1<\/td><td>get_note<\/td><td>MIDI Number<\/td><td>note,group=0,**kw<\/td><td>Enter the note name and note area, and return the corresponding MIDI number. (Needs improvement, no black keys)<\/td><\/tr><tr><td>2<\/td><td>get_chord<\/td><td>Chord Array<\/td><td>name, **kw<\/td><td>Enter the chord name and return the chord array<\/td><\/tr><tr><td>3<\/td><td>originToEflatMajor<\/td><td>New E minor MIDI number array<\/td><td>list,**kw<\/td><td>Enter C major and return E minor. (Needs improvement to support specifying which key to change to)<\/td><\/tr><tr><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">bpm = 125 #why 125:\n    #bpm = 1 * 1000 \/ 8 \ntimePerBeat = 60 \/ bpm * 1000\nbase_note = 60 # C4\nnote_name =[\n    'C','D','E','F','G','A','B'\n]\n\nmajor_notes = [0, 2, 2, 1, 2, 2, 2, 1]\nCmajor_notes = []\nEflatmajor_notes = []\n\nfor num in range(12):\n    Cmajor_notes.append(base_note+sum(major_notes[0:num+1]))\n    Eflatmajor_notes.append(base_note+3+sum(major_notes[0:num+1]))\n#\u8fd9\u91cc\u53ea\u6709\u4e00\u4e2a\u533a\nCmajor = dict(zip(note_name,Cmajor_notes))\n# Cmajor = {'C':60,'D':62,'E':64,'F':65,'G':67,'A':69,'B':71}\nEflatmajor = dict(zip(note_name,Eflatmajor_notes))\n# Eflatmajor = {'C': 63, 'D': 65, 'E': 67, 'F': 68, 'G': 70, 'A': 72, 'B': 74}\n\ndef get_note(note,group=0,**kw):#Group = 0 means 4Group\n    global base_note,major_notes\n    return base_note + group*12 + sum(major_notes[0,note])\n\ndef originToEflatMajor(list,**kw):\n    Ef=[]\n    for x in list:\n        Ef.append(x+3)\n    return Ef\n\n#get_note(1,group=0) return 60\n#get_note(2,group=0) return 62\ndef get_chord(name):\n    chord = {\n        \"Major3\":[0,4,7,12],#\u5927\u4e09\u548c\u5f26\n        \"Minor3\":[0,3,7,12],#\u5c0f\u4e09\u548c\u5f26\n        \"Augmented3\":[0,4,8,12],#\u589e\u4e09\u548c\u5f26\n        \"Diminished3\":[0,3,6,12],#\u51cf\u4e09\u548c\u5f26\n\n        \"M7\":[0,4,7,11],#\u5927\u4e03\u548c\u5f26\n        \"Mm7\":[0,4,7,10],#\u5c5e\u4e03\u548c\u5f26\n        \"m7\":[0,3,7,10],#\u5c0f\u4e03\u548c\u5f26\n        \"mM7\":[],\n        #...\n    }\n    return chord[name]\n#get_chord(\u201cMajor\u201d) return [0,4,7,12]<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Write a chord breakdown<\/h3>\n\n\n\n<p>Now that we have written the tool module, we can focus on the chord part.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Write an output chord function<\/h3>\n\n\n\n<p>Output broken chords to midi files<\/p>\n\n\n\n<p>When using this method, you need to pass in:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>serial number<\/td><td>Parameter name:<\/td><td>Incoming:<\/td><td>Example:<\/td><\/tr><tr><td>1<\/td><td>track<\/td><td>Output audio interface of mido library<\/td><td>MidiTrack()<\/td><\/tr><tr><td>2<\/td><td>root<\/td><td>The name of the note<\/td><td>&#039;C&#039;,&#039;D&#039;,&#039;E&#039;,&#039;F&#039;,&#039;G&#039;,&#039;A&#039;,&#039;B&#039;<\/td><\/tr><tr><td>3<\/td><td>name<\/td><td>The name of the chord, defined in Notes_Toolbox<\/td><td>&#039;Major 3&#039;\u2026<\/td><\/tr><tr><td>4<\/td><td>format<\/td><td>Outputting the broken chords<\/td><td>[0,1,2] [1,3,2,3]&#8230;<\/td><\/tr><tr><td>5<\/td><td>length<\/td><td>How long the note lasts<\/td><td>4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Just put the source code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def add_broken_chord(root, name, format, length, track, tone_name='Cmajor', root_base=0, channel=0):\n    #\u9ed8\u8ba4\u662fc\u5927\u8c03\n    root_num = Notes_Toolbox.Cmajor\n    if tone_name == 'Eflat':\n        root_num = {'C': 63, 'D': 65, 'E': 67, 'F': 68, 'G': 70, 'A': 72, 'B': 74}\n    root_note = root_num[root] + root_base*12  # \u5206\u89e3\u548c\u5f26\u7684\u6839\u97f3\n\n    time = (length * 480) \/ len(format)  # \u6b64\u5904\u4e3a\u5b98\u65b9\u6587\u6863\u5199\u6cd5\uff0c\u6211\u4e5f\u4e0d\u61c2\uff0ctime\u6307\u7684\u662f\u97f3\u7b26\u6301\u7eed\u65f6\u957f\n    for broken_chord in format:  # \u901a\u8fc7for\u5faa\u73af\uff0c\u9010\u4e2a\u8f93\u51fa\u548c\u5f26\u7684\u97f3\u7b26\n        note = root_note + Notes_Toolbox.get_chord(name)[broken_chord]\n        track.append(Message('note_on', note=note,\n                     velocity=60, time=0, channel=channel))\n        track.append(Message('note_on', note=note, velocity=60,\n                     time=round(time), channel=channel))<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Call reference:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">format = [0, 1, 2, 3] add_broken_chord(&#039;C&#039;, &#039;Major3&#039;, format, 4, track) add_broken_chord(&#039;C&#039;, &#039;Minor3&#039;, format, 4, track) add_broken_chord(&#039;C&#039;, &#039; Augmented3&#039;, format, 4, track) add_broken_chord(&#039;C&#039;, &#039;Diminished3&#039;, format, 4, track) add_broken_chord(&#039;C&#039;, &#039;Diminished3&#039;, format, 4, track)<\/pre>\n\n\n\n<p>Finally, call to save the midi file.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3. Standardized Code<\/h2>\n\n\n\n<p>In order to facilitate calling, we adjust the order of function parameters.<\/p>\n\n\n\n<p>In addition, overload the play_note method so that it can receive the int type note (that is, directly input the MIDI number).<\/p>\n\n\n\n<p>Similarly, all note-related inputs can be overloaded.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def play_note(note,  track, length=1, tone_name='Cmajor', root_base=0, delay=0, velocity=1.0, channel=0):\n    ...\n\ndef play_note(note:int,  track, length=1, tone_name='Cmajor', root_base=0, delay=0, velocity=1.0, channel=0):\n    ...\n\ndef play_broken_chord(root, name, format, track,length=1, tone_name='Cmajor', delay=0, velocity=1.0,root_base=0, channel=0):\n    ...<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">4. Conclusion: Mido&#039;s journey is yet to be continued...<\/h2>\n\n\n\n<p>After the above learning and practice, I have a simple understanding of the connection between music and mathematics, and some basic music theory knowledge. Through the code, the output of various chords is realized.<\/p>\n\n\n\n<p>Combining music theory knowledge, next, we will write circle chords.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">References<\/h3>\n\n\n\n<p>.<a target=\"_blank\" href=\"https:\/\/www.zhihu.com\/search?q=%E9%9F%B3%E4%B9%90%E7%90%86%E8%AE%BA%E5%9F%BA%E7%A1%80&amp;search_source=Entity&amp;hybrid_search_source=Entity&amp;hybrid_search_extra=%7B%22sourceType%22%3A%22answer%22%2C%22sourceId%22%3A128328022%7D\" rel=\"noreferrer noopener\">Basics of Music Theory<\/a>\u201d, edited by Li Chongguang, People\u2019s Music Publishing House;<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5199\u4e8e2020\u5e749\u6708\u3002\u5199\u7740\u73a9\u7684\uff0c\u4ee3\u7801\u4e0b\u4e00\u7bc7\u518d\u4f18\u5316\u4e86\uff0c\u5f88\u4e0d\u4e13\u4e1aQAQ\u3002 \u672c\u7bc7\u6587\u7ae0\u4ece\u5f8b\u5b66\u5f00\u59cb\uff0c\u4ece\u5341\u4e8c\u5e73\u5747\u5f8b\u51fa\u53d1\uff0c\u4ecb\u7ecd [&hellip;]<\/p>","protected":false},"author":1,"featured_media":1562,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[69,70],"class_list":["post-1558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-music","tag-python"],"_links":{"self":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/1558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/comments?post=1558"}],"version-history":[{"count":1,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/1558\/revisions"}],"predecessor-version":[{"id":1594,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/1558\/revisions\/1594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/media\/1562"}],"wp:attachment":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/media?parent=1558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/categories?post=1558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/tags?post=1558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}