CN115223523A - Tree ring based music score acquisition method and device, electronic equipment and medium - Google Patents

Tree ring based music score acquisition method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115223523A
CN115223523A CN202210820887.3A CN202210820887A CN115223523A CN 115223523 A CN115223523 A CN 115223523A CN 202210820887 A CN202210820887 A CN 202210820887A CN 115223523 A CN115223523 A CN 115223523A
Authority
CN
China
Prior art keywords
target
determining
annual ring
tree
ordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210820887.3A
Other languages
Chinese (zh)
Inventor
于健
陈佳佳
蔡林
王红梅
王紫晗
袁冰冰
邹婷
郑于婷
吴琼
戴朝洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Polytechnic College of Agriculture and Forestry
Original Assignee
Jiangsu Polytechnic College of Agriculture and Forestry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Polytechnic College of Agriculture and Forestry filed Critical Jiangsu Polytechnic College of Agriculture and Forestry
Priority to CN202210820887.3A priority Critical patent/CN115223523A/en
Publication of CN115223523A publication Critical patent/CN115223523A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10GREPRESENTATION OF MUSIC; RECORDING MUSIC IN NOTATION FORM; ACCESSORIES FOR MUSIC OR MUSICAL INSTRUMENTS NOT OTHERWISE PROVIDED FOR, e.g. SUPPORTS
    • G10G3/00Recording music in notation form, e.g. recording the mechanical operation of a musical instrument
    • G10G3/04Recording music in notation form, e.g. recording the mechanical operation of a musical instrument using electrical means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N1/00Sampling; Preparing specimens for investigation
    • G01N1/02Devices for withdrawing samples
    • G01N1/04Devices for withdrawing samples in the solid state, e.g. by cutting
    • G01N1/08Devices for withdrawing samples in the solid state, e.g. by cutting involving an extracting tool, e.g. core bit

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Auxiliary Devices For Music (AREA)

Abstract

The invention provides a method, a device, electronic equipment and a medium for obtaining a music score based on tree growth rings, wherein the method comprises the following steps: acquiring a target annual ring sample corresponding to a target tree; determining a waveform curve graph according to the target annual ring sample; and determining a music score corresponding to the target tree based on the wave curve graph. The method is used for solving the defects that in the whole music score output process in the prior art, a user can not only destroy the subsequent growth of trees, but also the music score corresponding to the tree can not be accurately output by a phonograph recorder according to the phonograph record because the phonograph recorder identifies the phonograph record to a certain limit, so that the subsequent growth of the target tree can be protected, and the accurate music score corresponding to the target tree can be obtained.

Description

Tree ring based music score acquisition method and device, electronic equipment and medium
Technical Field
The invention relates to the technical field of image processing, in particular to a method and a device for obtaining a music score based on tree ring, electronic equipment and a medium.
Background
In the prior art, if a user wants to obtain a music score corresponding to a tree based on the annual ring of the tree, the user needs to cut down the tree first to obtain the annual ring slice of the tree; then, determining the cross section of the annual ring slice as a record; and finally, placing the record on a record player, and outputting the music score corresponding to the tree after the record player identifies the record.
In the whole music score output process, the user can not only destroy the subsequent growth of trees, but also can not accurately output the music score corresponding to the trees according to the record because the record player has certain limitation on the identification of the record.
Disclosure of Invention
The invention provides a music score obtaining method, a device, electronic equipment and a medium based on tree ring, which are used for solving the defects that in the whole music score output process in the prior art, a user can not only destroy the subsequent growth of trees, but also the music score corresponding to the trees can not be accurately output by a disc recorder according to the disc because the disc recorder identifies the disc record in a certain limit, so that the subsequent growth of target trees can be protected, and the accurate music score corresponding to the target trees can be obtained.
The invention provides a music score obtaining method based on tree ring, comprising the following steps:
acquiring a target annual ring sample corresponding to a target tree;
determining a waveform curve graph according to the target annual ring sample;
and determining a music score corresponding to the target tree based on the wave curve graph.
According to the music score obtaining method provided by the invention, the obtaining of the target annual ring sample corresponding to the target tree comprises the following steps: obtaining a current annual ring sample corresponding to the target tree; detecting a first width value between two adjacent annual rings in the current annual ring sample; and under the condition that each first width value is smaller than a preset width threshold value, determining the current annual ring sample as a target annual ring sample.
According to the music score obtaining method provided by the invention, the waveform curve chart is determined according to the target annual ring sample, and the method comprises the following steps: acquiring a second width value between two adjacent annual rings in the target annual ring sample; and determining a waveform curve graph corresponding to the target tree according to the second width value.
According to the music score obtaining method provided by the invention, the determining of the music score corresponding to the target tree based on the oscillogram includes: determining the sound level according to the ordinate of the waveform curve graph; determining the tone according to the target ordinate in the ordinate; determining a beat according to the abscissa of the waveform curve graph; and obtaining the music score corresponding to the target tree according to the sound level, the tone and the beat.
According to the music score obtaining method provided by the invention, the sound level is determined according to the ordinate of the wave curve graph, and the method comprises the following steps: under the condition that the ordinate of the waveform curve graph is located in a first preset height range, determining the sound level corresponding to the ordinate as a first sound level; and under the condition that the ordinate is located in a second preset height range, determining the tone scale corresponding to the ordinate as a second tone scale, wherein the second preset height range is different from the first preset height range.
According to the music score obtaining method provided by the invention, the tone is determined according to the target ordinate in the ordinate, and the method comprises the following steps: determining a middle value ordinate in the ordinate as a target ordinate; or, obtaining an average ordinate in the ordinates, and determining the average ordinate as the target ordinate; from the target ordinate, the pitch is determined.
According to the music score obtaining method provided by the invention, the sound beat is determined according to the abscissa of the oscillogram, and the method comprises the following steps: determining a first beat according to a first preset number of abscissas in the waveform curve graph; and determining a second beat according to the abscissa of a second preset number in the waveform curve graph, wherein the second preset number is different from the first preset number.
The present invention also provides a music score obtaining apparatus, comprising:
the acquisition module is used for acquiring a target annual ring sample corresponding to a target tree;
the processing module is used for determining a waveform curve graph according to the target annual ring sample; and determining a music score corresponding to the target tree based on the wave curve graph.
The present invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the music score obtaining method as described in any of the above when executing the program.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a score acquisition method as any one of the above.
The invention also provides a computer program product comprising a computer program which, when being executed by a processor, carries out the score acquisition method as defined in any one of the above.
According to the music score obtaining method and device based on the tree ring, the electronic equipment and the medium, the target ring sample corresponding to the target tree is obtained, so that the ring slice of the target tree is obtained without cutting down the target tree by a user, and the subsequent growth of the target tree is effectively protected; then, accurately determining a waveform curve graph according to the target annual ring sample; finally, based on the waveform curve graph, the music score corresponding to the target tree can be determined more accurately. The method is used for solving the defects that in the whole music score output process in the prior art, a user can not only destroy the subsequent growth of trees, but also the music score corresponding to the tree can not be accurately output by a phonograph recorder according to the phonograph record because the phonograph recorder identifies the phonograph record to a certain limit, so that the subsequent growth of the target tree can be protected, and the accurate music score corresponding to the target tree can be obtained.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for obtaining a music score based on tree rings according to the present invention;
FIG. 2a is a schematic view of a corresponding annual ring of Canadian hemlock provided by the present invention;
FIG. 2b is a schematic view of the annual rings of Pinus densiflora according to the present invention;
FIG. 2c is a schematic diagram of a sample of a target growth ring according to the present invention;
FIG. 2d is a schematic diagram of a waveform plot provided by the present invention;
fig. 3 is a second flowchart of the method for obtaining a music score based on tree rings according to the present invention;
fig. 4 is a schematic structural diagram of a music score obtaining apparatus provided by the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the execution main body according to the embodiment of the present invention may be a musical score obtaining apparatus, or may be an electronic device, and the electronic device is further described below as an example.
As shown in fig. 1, the method for obtaining a music score based on tree ring provided in the present invention is a schematic flow chart, and may include:
101. and acquiring a target annual ring sample corresponding to the target tree.
Trees grow continuously from one seed until they die. During the growth of the tree, an annual ring is increased between the xylem and phloem of the tree to record the growth age of the tree. That is, as a tree ages, the number of corresponding growth rings of the tree increases.
Wherein, the shape of the annual rings is concentric ring veins with different colors and sizes.
Alternatively, the trees may include, but are not limited to: pine, cypress, poplar, etc.
Due to the different growing environments around the trees, the annual rings corresponding to different trees are different, and the annual rings corresponding to the same trees are also different, which is not described in detail here.
In some embodiments, as shown in fig. 2a, a schematic diagram of the corresponding annual rings of hemlock canada is provided for the present invention. In fig. 2a, the growth of the annual rings of the canadian hemlock is divided into three stages, namely a first stage, a second stage and a third stage. In the first stage, hemlock grows for 76 years, and because the hemlock is in the initial growth stage and is not easy to absorb nutrients, the annual ring density of the hemlock is very tight; in the second stage, the hemlock grows for 29 years, and the annual ring density of the hemlock is sparse because the hemlock is in the middle growth stage and the vitality is relatively strong; in the third stage, the hemlock grows for 30 years, and the annual ring density of the hemlock is compact because the hemlock is in a late growth stage and has limited ability to continuously absorb nutrients. Wherein the third stage annual ring density is between the first stage annual ring density and the second stage annual ring density.
Fig. 2b is a schematic view of the annual rings of pinus sylvestris according to the present invention. In fig. 2b, the production of the annual rings of pinus sylvestris is divided into three stages, i.e., a fourth stage, a fifth stage and a sixth stage. In the fourth stage, the pinus densiflora grows for 23 years, and the annual rings of the pinus densiflora are sparse because the pinus densiflora is in the initial growth stage and has relatively persistent vitality; in the fifth stage, the red pine grows for 6 years, and the annual ring density of the red pine is compact because the surrounding growth environment of the red pine is severe; in the sixth stage, the pinus densiflora grows for 24 years and the annual ring density of the pinus densiflora is sparse.
Optionally, the target tree according to the embodiment of the present invention is any one of the trees, and the annual ring growing on the target tree is the target annual ring corresponding to the target tree.
In some embodiments, a user drills a core sample of a target tree using a growth cone, and then the user sticks, fixes and grinds the core sample to obtain an annual ring corresponding to the target tree.
Wherein, the growth cone refers to a conical protrusion structure which can be used for drilling a wood core sample of a tree without damaging the subsequent growth of the tree.
The annual ring strip is used for the electronic equipment to subsequently obtain a target annual ring sample corresponding to the target tree.
In some embodiments, as shown in fig. 2c, a schematic diagram of a sample of target growth rings provided by the present invention is provided. In fig. 2c, the target annual ring sample corresponds to the annual ring bar obtained after the user performs the processes of pasting, fixing and grinding on the wood core sample.
Optionally, the electronic device obtains a target annual ring sample corresponding to the target tree, which may include but is not limited to one of the following implementation manners:
implementation mode 1: the method comprises the steps that electronic equipment obtains a current annual ring sample corresponding to a target tree; the electronic equipment detects a first width value between two adjacent annual rings in a current annual ring sample; the electronic device determines the current annual ring sample as a target annual ring sample when each first width value is smaller than a preset width threshold.
Optionally, the preset width threshold may be set before the electronic device leaves the factory, or may be user-defined, and is not specifically limited herein.
The current annual ring sample corresponding to the target tree may include a plurality of annual rings, and after the current annual ring sample is obtained, the electronic device may obtain a first width value between any two adjacent annual rings of the plurality of annual rings, where the number of the first width values is at least one; then, the electronic device compares at least one first width value with a preset width threshold value; if a first width value greater than or equal to a preset width threshold exists in the at least one first width value, the current annual ring sample is not a target annual ring sample required by the electronic device, and if each first width value in the at least one first width value is smaller than the preset width threshold, the current annual ring sample can be directly determined as a target annual ring sample, so that the electronic device can accurately acquire a waveform curve graph corresponding to the target tree based on the target annual ring sample.
Implementation mode 2: the method comprises the steps that electronic equipment obtains an annual ring image corresponding to a target tree; and the electronic equipment identifies the annual ring image to obtain a target annual ring sample corresponding to the target tree.
Optionally, the obtaining, by the electronic device, an annual ring image corresponding to the target tree may include: the electronic equipment shoots the annual ring strips by using the camera to obtain annual ring images corresponding to the target trees.
Optionally, the identifying, by the electronic device, the growth ring image to obtain a target growth ring sample corresponding to the target tree may include: the electronic equipment carries out denoising processing on the annual ring image to obtain a denoised image; and the electronic equipment identifies the de-noised image to obtain a target annual ring sample corresponding to the target tree.
Optionally, the electronic device may utilize a filter to perform denoising processing on the annual ring image to obtain a relatively clear denoised image, so as to obtain a relatively clear target annual ring sample in a recognizable manner.
Implementation mode 3: and scanning the annual ring strips by the electronic equipment to obtain a target annual ring sample corresponding to the target tree.
The electronic equipment can scan the annual ring strip to obtain the width value between two adjacent annual rings on the annual ring strip; then, the electronic equipment can obtain a target annual ring sample corresponding to the target tree according to each width value.
Optionally, the scanning, by the electronic device, the annual ring stripe to obtain a target annual ring sample corresponding to the target tree may include: the electronic equipment detects the length of the annual ring; the electronic equipment scans the annual ring strip under the condition that the length is within a preset length range to obtain a target annual ring sample corresponding to the target tree; this electronic equipment is not being located this and predetermines under the condition of length within range at this, and the message is tailor in the output, should tailor the message and be used for prompting the user to begin to tailor this annual ring strip from the annual ring center of keeping away from the annual ring strip, and the annual ring strip after should tailorring includes the annual ring center until the length of the annual ring strip after tailorring is located this and predetermines the length within range, can guarantee like this that the target annual ring sample that electronic equipment obtained is comparatively clear.
Implementation mode 4: the electronic equipment detects the residual capacity of the electronic equipment; and the electronic equipment acquires a target annual ring sample corresponding to the target tree under the condition that the residual electric quantity is greater than a preset electric quantity threshold value.
Optionally, the preset electric quantity threshold may be set before the electronic device leaves the factory, or may be user-defined, and is not specifically limited herein.
For example, assume that the preset charge threshold is 30%. The electronic equipment detects that the residual electric quantity of the electronic equipment is 35%, the residual electric quantity is 35% and is greater than a preset electric quantity threshold value by 30%, and at the moment, the electronic equipment can obtain a target annual ring sample corresponding to the target tree. Therefore, the target annual ring samples corresponding to the target trees can be effectively obtained under the condition that the residual electric quantity of the electronic equipment is sufficient.
Optionally, after the electronic device detects the remaining power of the electronic device, the method may further include: and the electronic equipment outputs charging prompt information under the condition that the residual electric quantity is less than or equal to the preset electric quantity threshold value. So that the user can charge the electronic equipment in time until the residual electric quantity of the electronic equipment is greater than the preset electric quantity threshold value.
Implementation mode 5: the electronic equipment detects the current ambient brightness of the electronic equipment; and the electronic equipment acquires a target annual ring sample corresponding to the target tree under the condition that the current environment brightness is greater than a preset brightness threshold value.
Optionally, the preset brightness threshold may be set before the electronic device leaves a factory, or may be user-defined, and is not specifically limited here.
Illustratively, assume that the predetermined luminance threshold is 300 candelas per square meter (cd/m) 2 ). Electronic equipment detects that the current ambient brightness of the electronic equipment is 325cd/m 2 The current ambient luminance is 325cd/m 2 Greater than a preset luminance threshold value of 300cd/m 2 At this time, the electronic device may obtain a target growth ring sample corresponding to the target tree. Therefore, the electronic equipment can be ensured to effectively obtain the target annual ring sample corresponding to the target tree in a brighter environment.
Optionally, after the electronic device detects the current ambient brightness of the electronic device, the method may further include: and the electronic equipment outputs prompt information with lower brightness under the condition that the current environment brightness is less than or equal to the preset brightness threshold. So that the user can adjust the current ambient brightness of the electronic device in time until the current ambient brightness is greater than the preset brightness threshold.
Implementation mode 6: the electronic equipment detects the residual memory of the electronic equipment; and the electronic equipment acquires a target annual ring sample corresponding to the target tree under the condition that the residual memory is greater than a preset memory threshold value.
Optionally, the preset memory threshold may be set before the electronic device leaves the factory, or may be user-defined, and is not specifically limited herein.
For example, assume that the predetermined memory threshold is 20%. The electronic device detects that the remaining memory of the electronic device is 50%, and the remaining memory 50% is greater than a preset memory threshold value by 20%, at this time, the electronic device may obtain a target annual ring sample corresponding to a target tree. Therefore, the target annual ring samples corresponding to the target trees can be effectively obtained under the condition that the residual memory space of the electronic equipment is large.
Optionally, after the electronic device detects the remaining memory of the electronic device, the method may further include: and the electronic equipment outputs prompt information with lower memory space under the condition that the residual memory is less than or equal to a preset memory threshold value. Therefore, a user can clean the memory space of the electronic equipment in time and improve the space of the residual memory until the residual memory is larger than the preset memory threshold value.
102. From the target annual ring samples, a waveform profile is determined.
Optionally, the electronic device determines the waveform graph according to the target annual ring sample, which may include but is not limited to one of the following implementation manners:
implementation mode 1; the electronic equipment acquires a second width value between two adjacent annual rings in the target annual ring sample; and the electronic equipment determines a waveform curve graph corresponding to the target tree according to the second width value.
The electronic equipment can acquire the number of annual rings and a second width value between every two adjacent annual rings from a target annual ring sample; then, the electronic device takes the number as an abscissa and the second width value as an ordinate, and determines a waveform curve corresponding to the target tree according to the abscissa and the ordinate.
Implementation mode 2: the electronic equipment sends the target annual ring sample to Lintab equipment; the electronic equipment receives a waveform curve graph sent by the Lintab equipment, and the waveform curve graph is obtained by the Lintab equipment based on a target annual ring sample.
The Lintab device is a digital annual ring analysis workbench in a style, and can perform annual ring analysis with high accuracy and stability on a target annual ring sample corresponding to a target tree to obtain a relatively accurate waveform curve graph.
After obtaining the target growth ring sample, the electronic device may send the target growth ring sample to a Lintab device; then, the Lintab device receives the target annual ring sample sent by the electronic device, and detects the target annual ring sample to obtain a waveform curve graph corresponding to the target tree; then, the Lintab device sends the waveform graph to the electronic device; finally, the electronic device receives the waveform curve graph sent by the Lintab device, so that the electronic device obtains a more accurate waveform curve graph.
Optionally, the sending, by the electronic device, the target growth ring sample to the Lintab device may include: the electronic equipment detects the current state of a wireless communication technology between the electronic equipment and Lintab equipment; the electronic device sends the target growth ring samples to the Lintab device while the wireless communication technology is in the connected state.
Therefore, effective data transmission can be guaranteed under the condition that the electronic equipment and the Lintab equipment are normally connected in communication.
Optionally, the wireless communication technology may include, but is not limited to, one of the following: fourth Generation communication technology (4G), fifth Generation communication technology (5G), wireless Fidelity (WiFi), and so on.
Illustratively, as shown in fig. 2d, a schematic diagram of a waveform graph provided by the present invention is shown. In fig. 2d, the waveform graph corresponding to the target tree is obtained by the Lintab device based on the target annual ring sample sent by the electronic device. In the waveform graph, the abscissa represents the number of annual rings in units of: and each two adjacent horizontal coordinates have a difference of 2, and the vertical coordinate represents the width value between the annual rings and has the unit: millimeters (mm), the difference between every two adjacent ordinates being 100mm.
103. And determining a music score corresponding to the target tree based on the wave-shaped curve graph.
Optionally, the determining, by the electronic device, the score corresponding to the target tree based on the wave graph may include: the electronic equipment determines the sound level according to the ordinate of the waveform curve graph; the electronic equipment determines the tone according to the target ordinate in the ordinate; the electronic equipment determines a beat according to the abscissa of the waveform curve graph; and the electronic equipment obtains the music score corresponding to the target tree according to the sound level, the tone and the beat.
In some embodiments, a scale refers to the unit of division of the interval in a scale, i.e., each individual tone in the musical sound system. The sound levels are seven, and can comprise: the cardinal, superior, middle, inferior, subordinate, inferior, and tonic may be represented by roman numerals I, II, III, IV, V, VI, and VII, respectively.
Alternatively, the electronic device may arrange the musical tones in a high-low order to obtain a sound column, and each tone in the sound column may be referred to as a sound level.
In some embodiments, the pitch refers to a fixed height of the music, which may include: major key of C, major key of D, major key of Jiang E, major key of F, major key of Jiang A and major key of Jiang B.
Wherein, the C Major (C Major) refers to a natural Major of music starting from the C sound, and may include: C. d, E, F, G, A and B; the key number of the major key C has no ascending number and descending number;
the Major (D Major) refers to a Major based on D-tone, and may include: D. e, # F, G, A, B, and # C; the key number of the major key D has two ascending numbers;
the E-lowering major scale refers to a major scale mode taking E-lowering as do, the sound name has a fixed position on the keyboard, and the singing name can be changed according to the difference of the E-lowering major scale; if do is given to the C major key, re is given to the D major key, and so on, then do is given to the E in the descending E major key; the relative minor of the descending E major key is a minor b, and the parallel minor is a minor d;
the major key of F refers to major key based on F sound, and may include: F. g, A,
Figure RE-GDA0003840814350000111
C. D and E; the key number of the major key F has a descending number; the relative minor of the major F key is the minor d key, and the minor parallel key is the minor F key; the major key of F is characterized in that a major third degree relation is formed between the first level sound and the third level sound;
the major G-descending major key means all of the major G-descending major keysThe half tones are all reduced; g, A, B, D, E, F and G are decreased according to the sequence of the sound names. The decreasing SI is changed to major and then 3 white keys are raised, which may include: c, D and E;
Figure RE-GDA0003840814350000112
is that
Figure RE-GDA0003840814350000113
The third to rise, so the key name is descending B major and the key descending is descending E, to such a degree, 7 descending major are obtained: large scale regulation of F,
Figure RE-GDA0003840814350000114
A major key,
Figure RE-GDA0003840814350000115
Large scale adjustment,
Figure RE-GDA0003840814350000116
A major key,
Figure RE-GDA0003840814350000117
A major key,
Figure RE-GDA0003840814350000118
The major key is
Figure RE-GDA0003840814350000119
Major adjustment;
the major key of descending A refers to a key property with descending A as the dominant key (sing do), and the scales are: reducing A, reducing B, reducing C, reducing D, reducing E, reducing F and reducing G; wherein, the song names of descending A are do, the song names of descending B are re, the song names of C are mi, the song names of descending D are fa, the song names of descending E are so, the song names of F are la and the song names of G are si;
the key number of the big key of descending B has two descending numbers, which sequentially descend two tones of 7 (Ti) and 3 (Mi).
The tone marks are marks of tones, the tone marks are written at the beginning of each line of staff, and the ascending and descending marks behind the staff are the tone marks.
In some embodiments, the beat refers to a combination rule of a strong beat and a weak beat, and also refers to a total length of notes of each measure in the score, the length of each measure being fixed. Optionally, the beat may include, but is not limited to: 1/4 beat, 2/4 beat, 3/4 beat, 4/4 beat, 3/8 beat, 6/8 beat, 7/8 beat, 9/8 beat, 12/8 beat, etc.
Wherein, 1/4 beat means that 4-minute notes are one beat, and 1 beat is carried out on each bar; the 2/4 beat means that 4-minute notes are one beat, 2 beats are carried out on each bar, and 2 4-minute notes can be provided, namely strong and weak; the 3/4 beat means that 4-point notes are one beat, 3 beats are taken for each bar, and 3 4-point notes can be provided, namely strong, weak and weak; 4/4 beats means that 4-minute notes are one beat, 4 beats are taken for each bar, and 4-minute notes can be provided, namely strong, weak, strong again and weak; the 3/8 beat means that 8-minute notes are one beat, each bar can be one big beat, but actually each bar has 3 beats, and 3 8-minute notes can be provided, which are respectively strong, weak and weak; the 6/8 beat means that 8-minute notes are one beat, each bar can be divided into two big beats, but actually each bar has 6 beats, and 6 8-minute notes can be provided, which are respectively strong, weak, second strong, weak and weak.
Optionally, the electronic device determines the sound level according to the ordinate of the waveform graph, and the determining may include: the electronic equipment determines the sound level corresponding to the ordinate as a first sound level under the condition that the ordinate of the waveform curve graph is located in a first preset height range; and when the ordinate is in the second preset height range, the electronic equipment determines the tone scale corresponding to the ordinate as the second tone scale.
Wherein the second predetermined height range is different from the first predetermined height range.
Optionally, the preset height range may be set before the electronic device leaves the factory, or may be user-defined, and is not specifically limited herein.
Optionally, the sound levels corresponding to different preset height ranges are different.
Because the number of the sound levels is limited, and the height number of the vertical coordinate is greater than the number of the sound levels, the electronic equipment can firstly divide the vertical coordinate into corresponding preset height ranges, and each preset height range corresponds to one sound level, so that the electronic equipment can obtain the sound level corresponding to the vertical coordinate.
Optionally, the electronic device determines the tone according to the target ordinate in the ordinate, which may include but is not limited to one of the following implementations:
implementation mode 1: the electronic equipment determines a middle value ordinate in the ordinate as a target ordinate; the electronic device determines the tone according to the target ordinate.
The electronic equipment can obtain the maximum width of the annual rings and determine the vertical coordinate of the middle value corresponding to the maximum width; then, the electronic device determines the median ordinate as a target ordinate, thereby determining a tone corresponding to the target tree.
Illustratively, the electronic device takes the median coordinate 2000 to be set to C major.
Implementation mode 2: the electronic equipment acquires an average longitudinal coordinate in the longitudinal coordinates and determines the average longitudinal coordinate as a target longitudinal coordinate; the electronic device determines the tone according to the target ordinate.
The electronic equipment can obtain the width of each annual ring, determine an average value corresponding to the width of each annual ring, and obtain an average value ordinate in the ordinate; then, the electronic device determines the mean ordinate as the target ordinate, thereby determining the tone corresponding to the target tree.
Optionally, the electronic device determines the beat according to the abscissa of the waveform graph, and may include: the electronic equipment determines a first beat according to a first preset number of abscissas in the waveform curve graph; the electronic equipment determines a second beat according to a second preset number of abscissas in the waveform curve graph.
Wherein the second predetermined number is different from the first predetermined number.
Optionally, the preset number may be set before the electronic device leaves a factory, or may be user-defined, and is not specifically limited herein.
Optionally, the beats corresponding to different preset numbers may be the same or different, and are not specifically limited herein.
For example, the electronic device defines an abscissa as a beat, and the abscissa may include two annual rings.
In the embodiment of the invention, the target annual ring sample corresponding to the target tree is obtained, and the annual ring slice of the target tree is obtained without cutting down the target tree by a user, so that the subsequent growth of the target tree is effectively protected; then, accurately determining a waveform curve graph according to the target annual ring sample; finally, based on the waveform curve graph, the music score corresponding to the target tree can be determined more accurately. The method is used for solving the defects that in the whole music score output process in the prior art, a user can not only damage the subsequent growth of trees, but also the music score corresponding to the tree can not be accurately output by a record player according to the record because the record player has certain limitation on the identification of the record, so that the subsequent growth of the target tree can be protected, and the accurate music score corresponding to the target tree can be obtained.
As shown in fig. 3, the method for obtaining a music score based on tree ring provided in the present invention is a schematic flow chart, and may include:
301. and acquiring a target annual ring sample corresponding to the target tree.
302. From the target annual ring samples, a waveform profile is determined.
303. And determining a music score corresponding to the target tree based on the oscillogram.
It should be noted that steps 301 to 303 are similar to steps 101 to 103 shown in fig. 1, and are not described in detail here.
304. And outputting the music score.
Optionally, the electronic device outputs the music score, which may include but is not limited to at least one of the following implementations:
implementation mode 1: the electronic device outputs the music score in the form of audio.
Optionally, the electronic device outputs the music score in the form of audio, and may include: the electronic equipment leads the music score into music application software; the electronic device outputs the music score in the form of audio based on the music application software.
Implementation mode 2: the electronic device displays the musical score in the form of a staff.
The electronic equipment can visually display the music score, so that a user can timely acquire the music score.
Implementation mode 3: the electronic device sends the score to other devices associated with the electronic device so that the other devices output the score after receiving the score.
Alternatively, the other devices may include, but are not limited to, a music box, a CD player, etc.
After obtaining the music score, a user using the electronic equipment can share the music score to other users at the same time.
In the embodiment of the invention, the target annual ring sample corresponding to the target tree is obtained, and the annual ring slice of the target tree is obtained without cutting down the target tree by a user, so that the subsequent growth of the target tree is effectively protected; then, accurately determining a waveform curve graph according to the target annual ring sample; finally, based on the waveform curve chart, the music score corresponding to the target tree can be determined more accurately, and the music score is output, so that a user can listen to more beautiful music in time. The method is used for solving the defects that in the whole music score output process in the prior art, a user can not only destroy the subsequent growth of trees, but also the music score corresponding to the tree can not be accurately output by a phonograph recorder according to the phonograph record because the phonograph recorder identifies the phonograph record to a certain limit, so that the subsequent growth of the target tree can be protected, and the accurate music score corresponding to the target tree can be obtained.
The following describes a music score obtaining apparatus provided by the present invention, and the music score obtaining apparatus described below and the music score obtaining method based on tree ring as described above can be referred to correspondingly.
As shown in fig. 4, the music score obtaining apparatus provided by the present invention is a schematic structural diagram, and may include:
an obtaining module 401, configured to obtain a target growth ring sample corresponding to a target tree;
a processing module 402, configured to determine a waveform graph according to the target annual ring sample; and determining the music score corresponding to the target tree based on the wave curve graph.
Optionally, the obtaining module 401 is specifically configured to obtain a current annual ring sample corresponding to the target tree;
a processing module 402, configured to detect a first width value between two adjacent annual rings in the current annual ring sample; and under the condition that each first width value is smaller than a preset width threshold value, determining the current annual ring sample as a target annual ring sample.
Optionally, the obtaining module 401 is specifically configured to obtain a second width value between two adjacent annual rings in the target annual ring sample;
the processing module 402 is specifically configured to determine a waveform curve graph corresponding to the target tree according to the second width value.
Optionally, the processing module 402 is specifically configured to determine a sound level according to a vertical coordinate of the waveform graph; determining the tone according to the target ordinate in the ordinate; determining a beat according to the abscissa of the waveform curve graph; and obtaining the music score corresponding to the target tree according to the sound level, the tone and the beat.
Optionally, the processing module 402 is specifically configured to determine, when a vertical coordinate of the waveform graph is located in a first preset height range, a sound level corresponding to the vertical coordinate as a first sound level; and under the condition that the ordinate is located in a second preset height range, determining the tone scale corresponding to the ordinate as a second tone scale, wherein the second preset height range is different from the first preset height range.
Optionally, the processing module 402 is specifically configured to determine a median ordinate in the ordinate as a target ordinate; or, obtaining an average ordinate in the ordinates, and determining the average ordinate as the target ordinate; from the target ordinate, the pitch is determined.
Optionally, the processing module 402 is specifically configured to determine a first beat according to a first preset number of abscissas in the waveform curve graph; and determining a second beat according to the abscissa of a second preset number in the waveform curve graph, wherein the second preset number is different from the first preset number.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor) 510, a communication Interface (Communications Interface) 520, a memory (memory) 530, and a communication bus 540, wherein the processor 510, the communication Interface 520, and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a tree-ring based score acquisition method comprising: acquiring a target annual ring sample corresponding to a target tree; determining a waveform curve graph according to the target annual ring sample; and determining a music score corresponding to the target tree based on the wave curve graph.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the tree-ring based score acquisition method provided by the above methods, the method comprising: acquiring a target annual ring sample corresponding to a target tree; determining a waveform curve graph according to the target annual ring sample; and determining a music score corresponding to the target tree based on the wave curve graph.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements a tree-ring based score acquisition method provided by the above methods, the method comprising: obtaining a target annual ring sample corresponding to a target tree; determining a waveform curve chart according to the target annual ring sample; and determining a music score corresponding to the target tree based on the wave curve graph.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A music score obtaining method based on tree ring is characterized by comprising the following steps:
acquiring a target annual ring sample corresponding to a target tree;
determining a waveform curve graph according to the target annual ring sample;
and determining a music score corresponding to the target tree based on the wave curve graph.
2. The method of claim 1, wherein obtaining a target annual ring sample corresponding to a target tree comprises:
obtaining a current annual ring sample corresponding to the target tree;
detecting a first width value between two adjacent annual rings in the current annual ring sample;
determining the current annual ring sample as a target annual ring sample if each first width value is less than a preset width threshold.
3. The method of claim 1, wherein determining a waveform profile from the target annual ring samples comprises:
acquiring a second width value between two adjacent annual rings in the target annual ring sample;
and determining a waveform curve graph corresponding to the target tree according to the second width value.
4. The method of any one of claims 1-3, wherein determining the score corresponding to the target tree based on the waveform graph comprises:
determining the sound level according to the ordinate of the waveform curve graph;
determining a tone according to a target ordinate in the ordinate;
determining a beat according to the abscissa of the waveform curve graph;
and obtaining a music score corresponding to the target tree according to the sound level, the tone and the beat.
5. The method of claim 4, wherein determining a tone scale from the ordinate of the waveform plot comprises:
under the condition that the ordinate of the waveform curve graph is located in a first preset height range, determining the tone level corresponding to the ordinate as a first tone level;
and under the condition that the vertical coordinate is located in a second preset height range, determining the tone scale corresponding to the vertical coordinate as a second tone scale, wherein the second preset height range is different from the first preset height range.
6. The method of claim 4, wherein said determining a pitch based on a target one of said ordinates comprises:
determining a middle value ordinate in the ordinates as a target ordinate; or, obtaining an average ordinate in the ordinates, and determining the average ordinate as the target ordinate;
and determining the tone according to the target ordinate.
7. The method of claim 4, wherein determining a beat according to an abscissa of the oscillograph includes:
determining a first beat according to a first preset number of abscissas in the waveform curve graph;
and determining a second beat according to the abscissa of a second preset number in the waveform curve graph, wherein the second preset number is different from the first preset number.
8. A music score obtaining apparatus, comprising:
the acquisition module is used for acquiring a target annual ring sample corresponding to a target tree;
the processing module is used for determining a waveform curve graph according to the target annual ring samples; and determining a music score corresponding to the target tree based on the wave curve graph.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the score acquisition method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the score acquisition method as claimed in any of claims 1 to 7.
CN202210820887.3A 2022-07-12 2022-07-12 Tree ring based music score acquisition method and device, electronic equipment and medium Pending CN115223523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820887.3A CN115223523A (en) 2022-07-12 2022-07-12 Tree ring based music score acquisition method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820887.3A CN115223523A (en) 2022-07-12 2022-07-12 Tree ring based music score acquisition method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115223523A true CN115223523A (en) 2022-10-21

Family

ID=83611305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820887.3A Pending CN115223523A (en) 2022-07-12 2022-07-12 Tree ring based music score acquisition method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115223523A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716976A (en) * 2004-06-30 2006-01-04 阿瓦雅技术公司 Intelligent ringtone service
CN104978329A (en) * 2014-04-04 2015-10-14 庄婷婷 Method for generating musical melody in line drawing form
CN109596787A (en) * 2019-01-15 2019-04-09 南京森林警察学院 A kind of tree ring determines method, apparatus, electronic equipment and storage medium
CN111862269A (en) * 2020-07-27 2020-10-30 暨南大学 Method for converting music melody by drawing curve
CN114495871A (en) * 2022-01-26 2022-05-13 浙江大学软件学院(宁波)管理中心(宁波软件教育中心) Method, system and device for generating music melody based on multi-line characteristic information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716976A (en) * 2004-06-30 2006-01-04 阿瓦雅技术公司 Intelligent ringtone service
CN104978329A (en) * 2014-04-04 2015-10-14 庄婷婷 Method for generating musical melody in line drawing form
CN109596787A (en) * 2019-01-15 2019-04-09 南京森林警察学院 A kind of tree ring determines method, apparatus, electronic equipment and storage medium
CN111862269A (en) * 2020-07-27 2020-10-30 暨南大学 Method for converting music melody by drawing curve
CN114495871A (en) * 2022-01-26 2022-05-13 浙江大学软件学院(宁波)管理中心(宁波软件教育中心) Method, system and device for generating music melody based on multi-line characteristic information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
鹿栖小镇: "在年轮里听完它的一生", pages 4 - 6, Retrieved from the Internet <URL:https://ishare.ifeng.com/c/s/v002d--C--5rMIU8t3IOssAZUAVPgKLKkFswUSB5yujlhiCDU__> *

Similar Documents

Publication Publication Date Title
NO20022030D0 (en) Method for determining standing attributes and a computer program for performing the method
JP2020003537A (en) Audio extraction device, learning device, karaoke device, audio extraction method, learning method and program
CN103853836B (en) Music retrieval method and system based on music fingerprint characteristic
US8494668B2 (en) Sound signal processing apparatus and method
CN104766603A (en) Method and device for building personalized singing style spectrum synthesis model
CN105161116B (en) The determination method and device of multimedia file climax segment
CN104103268B (en) A kind of language material library processing method, device and speech synthesis system
CN106157979B (en) A kind of method and apparatus obtaining voice pitch data
CN108764114B (en) Signal identification method and device, storage medium and terminal thereof
CN110824586B (en) Rainfall prediction method based on improved decision tree algorithm
JP2019219638A (en) Music synthesis method, system, terminal and computer-readable storage medium
Allen et al. Using self-organizing maps to classify humpback whale song units and quantify their similarity
CN108206027A (en) A kind of audio quality evaluation method and system
KR101325722B1 (en) Apparatus for generating musical note fit in user&#39;s song and method for the same
CN116699096B (en) Water quality detection method and system based on deep learning
CN115223523A (en) Tree ring based music score acquisition method and device, electronic equipment and medium
KR20120094415A (en) Precision measurement of waveforms
CN113012666A (en) Method, device, terminal equipment and computer storage medium for detecting music tonality
CN109781940B (en) Method and device for identifying lodging resistance of field crops
KR101813704B1 (en) Analyzing Device and Method for User&#39;s Voice Tone
CN110751935A (en) Method for determining musical instrument playing point and scoring rhythm
CN115696176A (en) Audio object-based sound reproduction method, device, equipment and storage medium
CN109003492A (en) A kind of topic selection method, device and terminal device
CN107025902A (en) Data processing method and device
CN109408966B (en) Eucalyptus wind damage grade evaluation method based on forest stand growth

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination