Control method, system and device of intelligent music fountain and storage medium

By conducting detailed analysis of music signal data, calculating music characteristic indicators and selecting appropriate water spray mode and lighting color, the existing music fountain control technology is solved in terms of accuracy and flexibility, and the music, fountain and lighting are realized. Closely combined to enhance the viewing experience.

CN119439742AActive Publication Date: 2025-02-14MUDANJIANG NORMAL UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411583072.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-02-14
Estimated Expiration
2044-11-07

AI Technical Summary

Technical Problem

The existing music fountain control technology has shortcomings in terms of accuracy, flexibility and intelligence, and cannot dynamically adjust according to music characteristics in real time and accurately, making it difficult to meet people's needs for rich and personalized visual and auditory experiences.

Method used

By collecting music signal data, calculating basic parameters such as volume, average amplitude frequency, and tone, we obtain comprehensive indicators, and combining rhythm intensity indicators and frequency transmission values, selecting appropriate water spray mode and light color collection to realize the dynamics of fountains and lights. Adjustment.

Benefits of technology

It achieves a perfect fit between the fountain and lighting effects and music, enhances the synchronization and viewing of the audio-visual effects, and provides a richer and more personalized artistic expression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119439742A_ABST
    Figure CN119439742A_ABST
Patent Text Reader

Abstract

The invention discloses a control method, system and device of an intelligent music fountain and a storage medium, and relates to the field of music automation control. Respectively calculating the volume, the average amplitude frequency and the timbre, and obtaining a comprehensive index; calculating a frequency transmission value and comparing the frequency transmission value with a threshold to determine a fountain frequency grade and a shape set; calculating the sum of amplitude differences of adjacent sampling points and a rhythm intensity index; music comprehensive characteristic indexes are calculated and compared with a threshold value, and a water spraying mode is selected; calculating a water spraying mode instruction comprehensive value according to the music comprehensive characteristic index and the music signal data, further calculating a nozzle adjustment angle, calculating light brightness and color values in combination with a rhythm intensity index, and comparing the light color values with a threshold value to select a light color set; according to the method, the fountain and light effects can be automatically adjusted according to the music characteristics, and the audiovisual experience with higher ornamental value and artistic quality is brought.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of music automation control, and in particular to a control method, system, device and storage medium for an intelligent music fountain. Background Art

[0002] As an artistic form that integrates music, lighting and waterscape, musical fountains are becoming more and more popular in public landscapes and entertainment venues. However, the current musical fountain control technology still has some problems in terms of accuracy, flexibility and intelligence. For example, traditional musical fountains can only perform simple water spraying and lighting changes according to preset programs, and cannot be dynamically adjusted in real time and accurately according to various characteristics of music, making it difficult to meet people's needs for richer and more personalized visual and auditory experiences.

[0003] Some existing music fountain control technologies mainly analyze the characteristic parameters of music, such as rhythm and volume, and then convert these parameters into signals to control the fountain's water spray height, water volume, and light color and brightness. For example, by collecting music signals through audio sensors and detecting the rhythm of the music, the speed of the water pump can be controlled according to the speed of the rhythm, thereby adjusting the speed and height of the water spray. For light control, the brightness and color of the light are usually adjusted according to the rhythm intensity of the music.

[0004] However, the existing music fountain control method is not accurate and comprehensive enough in extracting music features. It is difficult to accurately reflect important features such as the rhythm of music by relying solely on a few parameters such as volume and frequency. In addition, the control in the existing technology is relatively simple and cannot adapt to complex and changeable music types and rhythm changes. For example, for music with strong rhythm and fast changes, the fountain adjustment control method is single, which affects the viewing effect. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the shortcomings of the prior art, the present invention provides a control method, system, device and storage medium for an intelligent music fountain. By collecting music signal data, the volume, average amplitude frequency and timbre are calculated respectively to obtain comprehensive indicators, and the frequency transfer value is calculated and compared with the threshold; the sum of the amplitude differences of adjacent sampling points and the rhythm intensity index are calculated; the music comprehensive feature index is calculated, and the index is compared with the threshold to select a water spray mode; the comprehensive value of the water spray mode instruction is calculated, and the nozzle adjustment angle is obtained; the light brightness and color value are calculated, and the light color value is compared with the threshold to select a light color set; the problem of the single control method of the traditional music fountain is solved.

[0007] (II) Technical solution

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: a control method of an intelligent music fountain, comprising:

[0009] Collecting music signal data;

[0010] Calculate volume RMS, average amplitude frequency based on music signal data and timbre TC; based on volume RMS, average amplitude frequency and timbre TC, calculate the comprehensive index SKI; calculate the frequency transfer value HS based on the music signal data; preset the frequency transfer value threshold, compare the frequency transfer value HS with the frequency transfer value threshold, judge the frequency level of the fountain according to the result, and select the corresponding fountain shape set;

[0011] According to the music signal data, average amplitude frequency and timbre parameters TC, calculate the sum of the amplitude differences of adjacent sampling points DL; according to the average amplitude frequency and the sum of the amplitude differences of adjacent sampling points DL, calculate the rhythm intensity index R; calculate the music comprehensive feature index I according to the comprehensive index SKI, the frequency transfer value HS and the rhythm intensity index R; preset the music comprehensive feature index threshold, compare the music comprehensive feature index I with the music comprehensive feature index threshold, and select different water spray modes according to the results;

[0012] According to the music comprehensive characteristic index I and the music signal data, the comprehensive value P of the water spray mode instruction is calculated; according to the music comprehensive characteristic index I and the comprehensive value P of the water spray mode instruction, the nozzle adjustment angle θ is calculated; according to the rhythm intensity index R and the nozzle adjustment angle θ, the light brightness L is calculated, and the light color value C is further obtained; the light color value threshold is preset, the light color value C is compared with the light color value threshold, and different light color sets are selected according to the results.

[0013] In the preferred embodiment of the control method of the intelligent music fountain, the method for calculating the comprehensive index SKI is:

[0014] The music signal data includes the amplitude value XI of the audio signal i , amplitude frequency f i Amplitude value of harmonics A i ;

[0015] Based on the amplitude value XI i , calculate the volume RMS, based on the formula:

[0016]

[0017] Among them, XI iis the amplitude value of the audio signal at the i-th sampling time point, i is 1, 2, 3...n; n is the total number of sampling points, which is a positive integer;

[0018] Based on the amplitude frequency f i Calculate the average amplitude frequency The calculation formula is:

[0019]

[0020] Among them, f i is the amplitude frequency of the audio signal at the i-th sampling time point;

[0021] Based on the amplitude value of harmonics A i , calculate the timbre parameter TC, the calculation formula is:

[0022]

[0023] Where d is the harmonic attenuation coefficient, which ranges from 0 to 1; A i is the amplitude value of the harmonic of the audio signal at the i-th sampling time point;

[0024] According to volume RMS, average amplitude frequency And the timbre parameter TC, calculate the comprehensive index SKI, the formula based on which is:

[0025]

[0026] Among them, α is the weight coefficient of volume RMS, ranging from 0.1 to 0.3; β is the average amplitude frequency , whose value is 0.3~0.4; γ is the weight coefficient of timbre parameter TC, whose value is 0.3~0.5; and α+β+γ=1.

[0027] In the preferred embodiment of the control method of the intelligent music fountain, the method for judging the frequency level of the fountain and selecting different fountain shape sets is:

[0028] The music signal data also includes Laplace variable SK, center angular frequency WK and quality factor QK;

[0029] The frequency transfer value HS is calculated based on the Laplace variable SK, the center angular frequency WK and the quality factor QK, according to the formula:

[0030]

[0031] Preset frequency transfer value threshold;

[0032] The frequency transfer value threshold includes a frequency transfer value threshold 1 HS1 and a frequency transfer value threshold 2 HS2;

[0033] When HS ≤ HS1, it is determined that the fountain is of a low - frequency level, and the first set of fountain shapes is selected;

[0034] When HS1 < HS ≤ HS2, it is determined that the fountain is of a medium - frequency level, and the second set of fountain shapes is selected;

[0035] When HS > HS2, it is determined that the fountain is of a high - frequency level, and the third set of fountain shapes is selected.

[0036] In a preferred embodiment of the above - mentioned control method for an intelligent music fountain: The method for calculating the rhythm intensity index R is as follows:

[0037] According to the amplitude value XI of the audio signal i and the average amplitude frequency and the timbre parameter TC, calculate the sum DL of the amplitude differences between adjacent sampling points. The calculation formula is:

[0038]

[0039] where XI i-1 is the amplitude value of the audio signal at the (i - 1) - th sampling time point; is the maximum value of the average amplitude frequency; TC max is the maximum value of the timbre parameter;

[0040] According to the average amplitude frequency and the sum DL of the amplitude differences between adjacent sampling points, calculate the rhythm intensity index R. The calculation formula is:

[0041]

[0042] where HD is the harmonic coefficient, with a value range of 0 - 1; TR is the time change rate; r is the volume change rate; r max is the maximum volume change rate.

[0043] In a preferred embodiment of the above - mentioned control method for an intelligent music fountain: The method for selecting different water - spraying modes is as follows:

[0044] According to the comprehensive index SKI, the frequency transfer value HS, and the rhythm intensity index R, calculate the music comprehensive characteristic index I. The formula is:

[0045] I = ω1×SKI + ω2×HS + ω3×R

[0046] where ω1 is the weight coefficient of the comprehensive index SKI, with a value range of 0.1 - 0.4; ω2 is the weight coefficient of the frequency transfer value HS, with a value range of 0.2 - 0.5; ω3 is the weight coefficient of the rhythm intensity index R, with a value range of 0.3 - 0.4; and ω1 + ω2 + ω3 = 1;

[0047] Preset threshold of comprehensive music feature index;

[0048] The comprehensive index threshold includes the first comprehensive music feature index threshold I1 and the second comprehensive music feature index threshold I2;

[0049] When I ≤ I1, select the first water spraying mode;

[0050] When I1 < I ≤ I2, select the second water spraying mode;

[0051] When I > I2, select the third water spraying mode.

[0052] In a preferred embodiment of the above control method for an intelligent music fountain: The method for calculating the comprehensive value P of the water spraying mode command is as follows:

[0053] The music signal data also includes the minimum water spraying height H min , the maximum water spraying height H max , the minimum water volume W min and the maximum water volume W max ;

[0054] According to the comprehensive music feature index I, the minimum water spraying height H min , the maximum water spraying height H max , the minimum water volume W min and the maximum water volume W max , calculate the comprehensive value P of the water spraying mode command, and the formula is:

[0055]

[0056] where I max is the maximum value of the comprehensive music feature index value.

[0057] In a preferred embodiment of the above control method for an intelligent music fountain: The method for selecting different sets of lighting colors is as follows:

[0058] According to the comprehensive music feature index I and the comprehensive value P of the water spraying mode command, calculate the nozzle adjustment angle θ, and the calculation formula is:

[0059]

[0060] where θ max is the maximum angle of nozzle change; θ min is the minimum angle of nozzle change;

[0061] According to the rhythm intensity index R and the nozzle adjustment angle θ, calculate the lighting brightness L, and the calculation formula is:

[0062] L = L min + R × (L max - L min)×δ×θ

[0063] Among them, L max is the maximum brightness of the light; L min is the minimum brightness of the light; δ is the adjustment coefficient of the nozzle adjustment angle θ, and the value range is 0 to 1;

[0064] Based on the light brightness L, calculate the light color value C, and the calculation formula is:

[0065]

[0066] Preset the light color value threshold;

[0067] The light color value threshold includes the first light color value threshold C1 and the second light color value threshold C2;

[0068] When C ≤ C1, select the first light color set;

[0069] When C1 < C ≤ C2, select the second light color set;

[0070] When C > C2, select the third light color set.

[0071] The present invention also discloses a control system for an intelligent music fountain, which is used to implement the control method of the above-mentioned intelligent music fountain, and includes:

[0072] A data receiving module, which is used to collect music signal data;

[0073] A data analysis module, which is used to calculate the volume RMS, average amplitude frequency and timbre TC based on the music signal data; calculate the comprehensive index SKI according to the volume RMS, average amplitude frequency and timbre TC; calculate the frequency transfer value HS based on the music signal data; preset the frequency transfer value threshold, compare the frequency transfer value HS with the frequency transfer value threshold, and judge the frequency level of the fountain according to the result, and select the corresponding fountain shape set;

[0074] An instruction generation module, which is used to calculate the sum of the amplitude differences DL between adjacent sampling points according to the music signal data, average amplitude frequency and timbre parameter TC; calculate the rhythm intensity index R according to the average amplitude frequency and the sum of the amplitude differences DL between adjacent sampling points; calculate the music comprehensive feature index I according to the comprehensive index SKI, frequency transfer value HS and rhythm intensity index R; preset the music comprehensive feature index threshold, compare the music comprehensive feature index I with the music comprehensive feature index threshold, and select different water spraying modes according to the result;

[0075] The control module is used to calculate the comprehensive value P of the water spray mode instruction according to the music comprehensive characteristic index I and the music signal data; calculate the nozzle adjustment angle θ according to the music comprehensive characteristic index I and the water spray mode instruction comprehensive value P; calculate the light brightness L according to the rhythm intensity index R and the nozzle adjustment angle θ, and further obtain the light color value C; preset the light color value threshold, compare the light color value C with the light color value threshold, and select different light color sets according to the results.

[0076] The present invention also discloses a control device for an intelligent music fountain, comprising a processor and a memory, wherein the memory stores a computer program, and the processor can implement the control method for the intelligent music fountain when executing the computer program.

[0077] The present invention also discloses a control storage medium for an intelligent music fountain, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the control method for the intelligent music fountain is implemented.

[0078] (III) Beneficial effects

[0079] The present invention provides a control method, system, device and storage medium for an intelligent music fountain, which has the following beneficial effects:

[0080] (1) By collecting music signal data and calculating basic parameters such as volume, average amplitude frequency, and timbre based on the music signal data, the basic characteristics of music can be fully quantified. These basic parameters provide a data basis for subsequent in-depth analysis of music and control of fountain and lighting effects.

[0081] (2) The frequency transfer value is calculated and compared with the preset threshold to determine the frequency level of the fountain, and then the corresponding fountain shape set is selected, realizing the close combination of fountain shape and music frequency characteristics. Different fountain shapes can echo the frequency changes of music, making the fountain performance more diverse and layered.

[0082] (3) The sum of the amplitude differences of adjacent sampling points is calculated based on the audio signal amplitude value, average amplitude frequency and timbre parameters, and then the rhythm intensity index is obtained. The comprehensive characteristic index of music is calculated in combination with the volume and frequency transfer value to select the water spray mode, which can make the fountain water spray mode closely match the rhythm of the music. The fountain's water spray height, water volume and change frequency can be dynamically adjusted according to the speed and strength of the music rhythm, making the fountain performance more vivid and perfectly integrated with the music.

[0083] (4) The comprehensive value of the water spray pattern instruction and the nozzle adjustment angle are calculated through the music comprehensive characteristic index and music signal data, and the light brightness and color value are calculated in combination with the rhythm intensity index, thus realizing the coordination of the lighting effect with the music and the fountain. The brightness and color of the light can change according to the characteristics of the music, such as the rhythm, volume and frequency, to create a more colorful audio-visual atmosphere. The light color value threshold is preset and different light color sets are selected, so that the lighting effect presents appropriate colors at different stages of the music, enhancing the appeal and appreciation of the performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] Figure 1 The figure is a schematic diagram of the steps of a control method of an intelligent music fountain according to the present invention. DETAILED DESCRIPTION

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

[0086] See also Figure 1 The present invention provides a control method for an intelligent music fountain, comprising:

[0087] Step 1: Collect music signal data.

[0088] Step 101: Select a microphone with high sensitivity and wide frequency response range; use Audacity audio acquisition software to set the sampling frequency and sampling accuracy. Start the device that plays music, and click the start recording button in Audacity acquisition software. The software will convert the music signal transmitted by the microphone into a digital signal and store it in the computer, thereby obtaining the music signal data.

[0089] By collecting music signal data, the fountain's water spray pattern and lighting effects can be perfectly matched with the music.

[0090] Step 2: Calculate the volume RMS, average amplitude frequency based on the music signal data and timbre TC; based on volume RMS, average amplitude frequency and timbre TC, calculate the comprehensive index SKI; based on the music signal data, calculate the frequency transfer value HS; preset the frequency transfer value threshold, compare the frequency transfer value HS with the frequency transfer value threshold, judge the frequency level of the fountain according to the result, and select the corresponding fountain shape set.

[0091] Step 201: Use a microphone to convert the sound signal into an electrical signal, and then use an ADC to convert the electrical signal into a digital signal. In the digital domain, the value corresponding to each sampling point is the amplitude value of the audio signal at that moment. For example, for 16-bit audio sampling, the amplitude value range is usually between -32768 and 32767; based on this, the amplitude value XI of the audio signal is obtained. i .

[0092] Perform FFT transformation on an audio signal to convert the time domain signal into a frequency domain signal and obtain the spectrum of the signal. The frequency corresponding to each peak in the spectrum is the amplitude frequency f i .

[0093] After performing FFT on the audio signal to obtain the spectrum, the fundamental frequency f0 is determined by finding the lowest frequency peak in the spectrum. Then, the frequency component with a frequency of z×f0 (z=2, 3, ...) is the harmonic. The amplitude value A of the harmonic i It is the amplitude of the corresponding frequency in the spectrum.

[0094] Step 202: Based on the amplitude value XI i , calculate the volume RMS, based on the formula:

[0095]

[0096] Among them, XI i is the amplitude value of the audio signal at the i-th sampling time point, i is 1, 2, 3...n; n is the total number of sampling points, which is a positive integer.

[0097] It should be noted that Represents the amplitude value XI for all sampling points i Square and sum; It means to find the average, that is, divide the sum of squares by the total number of sampling points n; finally, take the square root of this average value The result is the root mean square value RMS of the audio signal.

[0098] Step 203: Based on the amplitude frequency f i Calculate the average amplitude frequency The calculation formula is:

[0099]

[0100] Among them, f i is the amplitude frequency of the audio signal at the i-th sampling time point.

[0101] It should be noted that f i is the amplitude frequency of the audio signal at the i-th sampling time point; It means adding the amplitude and frequency values ​​of all sampling points; This sum is divided by the total number of sampling points n to obtain the average value of these frequency values, that is, the average amplitude frequency

[0102] Step 204: Use a signal generator to generate a single-frequency signal of a specific frequency, input it to the speaker, and then use a spectrum analyzer to measure the amplitude A of the system output signal. out , the input signal amplitude A is known in , then the attenuation coefficient at this frequency is Based on this, the harmonic attenuation coefficient d is obtained.

[0103] According to the harmonic attenuation coefficient d and the amplitude value A of the harmonic i , calculate the timbre parameter TC, the calculation formula is:

[0104]

[0105] Among them, A i is the amplitude value of the harmonic of the audio signal at the i-th sampling time point.

[0106] It should be noted that d×A i This indicates that the amplitudes of different harmonics will be adjusted according to the attenuation coefficient when calculating the timbre parameters. The harmonic attenuation coefficient reflects the attenuation of harmonic energy of different frequencies in the actual audio propagation process. It means that the weighted values ​​from the 1st to the nth sampling points are summed to obtain the timbre parameter TC.

[0107] Step 205: Based on the volume RMS, average amplitude frequency And the timbre parameter TC, calculate the comprehensive index SKI, the formula based on which is:

[0108]

[0109] Among them, α is the weight coefficient of volume RMS, ranging from 0.1 to 0.3; β is the average amplitude frequency , whose value is 0.3~0.4; γ is the weight coefficient of timbre parameter TC, whose value is 0.3~0.5; and α+β+γ=1.

[0110] It should be noted that this formula takes into account the volume RMS, average amplitude frequency And the timbre parameter TC are three important parameters. Each parameter has a corresponding weight coefficient, which indicates the importance of different parameters when calculating the comprehensive index. By multiplying each parameter with its corresponding weight coefficient and then summing them, a comprehensive index SKI that can fully describe the audio characteristics is obtained.

[0111] Step 206: In analyzing the resonant circuit of wireless communication technology, the impedance SK of the series circuit of R, L, and C is calculated by using the known values ​​of the resistor R, the inductor L, and the capacitor C. Among them, j is the imaginary unit, w is the angular frequency, w=2π×f, f is the frequency; the impedance SK here is the Laplace variable SK.

[0112] For string instruments, the vibration frequency of the string determines the frequency of the sound produced. According to string vibration theory, the vibration frequency of the string is Where T is the tension of the string, L is the length of the string, and θ is the density of the string; then the central angular frequency WK = 2πfa.

[0113] In audio circuit design, the quality factor QK is related to the design parameters of the filter. For example, when designing a second-order bandpass filter, its quality factor Among them, LV is the inductance, CV is the capacitance, and RV is the resistance, based on which the quality factor QK is obtained.

[0114] Step 207: Calculate the frequency transfer value HS according to the Laplace variable SK, the center angular frequency WK and the quality factor QK, based on the formula:

[0115]

[0116] It should be noted that It represents a combination of the Laplace variable SK, the center angular frequency WK and the quality factor QK. The center angular frequency WK and the quality factor QK are divided and then multiplied by the Laplace variable SK, which reflects the interaction between a certain frequency-related characteristic and the Laplace variable. SK 2 + It reflects the combined influence of the Laplace variable and the central angular frequency on the frequency transfer value HS, and this influence has the characteristics of a quadratic function.

[0117] Step 208: Preset the frequency transfer value threshold; the frequency transfer value threshold includes the frequency transfer value threshold 1 HS1 and the frequency transfer value threshold 2 HS2; in audio processing, by testing different types of music signals and sounds, observe the quality and effect of the sound under different frequency transfer values ​​HS. For example, after many experiments, it is found that when the frequency transfer value HS is lower than a certain value, the sound will become dull and lack of high pitch, and this value is used as the frequency transfer value threshold 1 HS1; and when HS is higher than another value, the sound will appear harsh and distorted, and this value is used as the frequency transfer value threshold 2 HS2.

[0118] Step 209: When HS ≤ HS1, determine that the fountain is at a low frequency level and select Set One of fountain shapes; Set One of fountain shapes includes at least one of single-column fountains, rippling fountains, and cascading fountains.

[0119] When HS1 < HS ≤ HS2, determine that the fountain is at a medium frequency level and select Set Two of fountain shapes; Set Two of fountain shapes includes at least one of fan-shaped fountains, staggered fountains, and spiral fountains.

[0120] When HS > HS2, determine that the fountain is at a high frequency level and select Set Three of fountain shapes; Set Three of fountain shapes includes at least one of ultra-high fountains, combined fountains, and dancing fountains.

[0121] This method can perfectly integrate the fountain show with the music. According to the changes in the volume, frequency, and rhythm of the music, the fountain can present different water spraying patterns, making the show more vivid and appealing. By presetting thresholds to select the water spraying patterns, the control of the fountain is made more precise and orderly, avoiding the randomness of water spraying pattern switching. This design not only enhances the artistry of the fountain show but also better creates a visual effect that matches the music atmosphere.

[0122] Step Three: According to the music signal data, average amplitude frequency and tone color parameter TC, calculate the sum DL of the amplitude differences between adjacent sampling points; according to the average amplitude frequency and the sum DL of the amplitude differences between adjacent sampling points, calculate the rhythm intensity index R; according to the comprehensive index SKI, frequency transfer value HS, and rhythm intensity index R, calculate the music comprehensive feature index I; preset the music comprehensive feature index threshold, compare the music comprehensive feature index I with the music comprehensive feature index threshold, and select different water spraying patterns according to the result.

[0123] Step 301: For each audio sample, calculate its average amplitude frequency according to the formula where f is the amplitude frequency of the audio signal at the i-th sampling time point. Among these samples, find the maximum value of the calculated average amplitude frequency and take it as the maximum value i of the average amplitude frequency.

[0124] Through the FL Studio audio processing software, find the fruityparametriceq2 effect to adjust the tone color, view the parameter range of this effect, adjust the parameters, and observe the change of the tone color. When the tone color reaches the limit or has an obvious change, the current tone color is the maximum value TC of the tone color parameter max .

[0125] Step 302: According to the amplitude value XI of the audio signal i, average amplitude frequency And the timbre parameter TC, calculate the sum of the amplitude differences of adjacent sampling points DL, the calculation formula is:

[0126]

[0127] Among them, XI i-1 is the amplitude value of the audio signal at the i-1th sampling time point.

[0128] It should be noted that is the amplitude difference between adjacent sampling points |X i -X i-1 |Perform weighted summation. Indicates the effect of the average amplitude frequency on the amplitude difference. The closer , some coefficients will increase, thereby increasing the weight of the amplitude difference in the summation. Indicates the effect of the timbre parameters on the amplitude difference. max , this part of the coefficient will increase, thereby increasing the weight of the amplitude difference in the summation.

[0129] Step 303: Convert the audio signal in the time domain into the frequency domain through Fourier transform, showing the energy distribution of the signal at different frequencies. In the frequency domain, the amplitude of the fundamental frequency and each harmonic is identified. The harmonic coefficient is usually determined by calculating the ratio of the amplitude of each harmonic to the amplitude of the fundamental frequency. For example, for an audio signal containing the fundamental frequency f1 and the second harmonic 2f1, the harmonic coefficient in, is the amplitude of the second harmonic, is the amplitude of the fundamental frequency.

[0130] By analyzing the time domain waveform of the audio signal, for example, for a discrete audio signal x(n), the change between adjacent sampling points is obtained by calculating x(n)-x(n-1), and then the time change rate TR is obtained by calculating the average value of these changes.

[0131] It is obtained by calculating the difference in volume between adjacent sampling points or adjacent time periods. For example, in a discrete audio signal, if V i and V i-1 are the volume values ​​of the i-th and i-1-th sampling points respectively, then the volume change rate Where Δt is the sampling interval; based on this, the volume change rate r is obtained.

[0132] Maximum volume change rate r max It is the maximum value of the volume change rate found in the entire audio signal.

[0133] Step 304: Calculate the volume change rate r according to the harmonic coefficient HD, the time change rate TR, the volume change rate r, and the maximum volume change rate r. max , average amplitude frequency The sum of the amplitude differences of adjacent sampling points DL is used to calculate the rhythm intensity index R. The calculation formula is:

[0134]

[0135] It should be noted that DL×HD×TR comprehensively considers the contribution of the amplitude change, harmonic components and time change of the audio signal to the rhythm intensity by multiplying these three parameters. This part takes into account the effect of volume change on the rhythm intensity. When the volume change rate is close to the maximum volume change rate, the value of this part will increase. By multiplying the average amplitude frequency with the item related to the volume change rate, the frequency characteristics of the audio signal and the influence of volume changes on the rhythm intensity are comprehensively considered.

[0136] Step 305: Calculate the music comprehensive characteristic index I according to the comprehensive index SKI, the frequency transfer value HS and the rhythm intensity index R, based on the formula:

[0137] I=ω1×SKI+ω2×HS+ω3×R

[0138] Among them, ω1 is the weight coefficient of the comprehensive index SKI, and its value is 0.1~0.4; ω2 is the weight coefficient of the frequency transfer value HS, and its value is 0.2~0.5; ω3 is the weight coefficient of the rhythm intensity index R, and its value is 0.3~0.4; and ω1+ω2+ω3=1.

[0139] It should be noted that this formula comprehensively considers three important parameters: comprehensive index SKI, frequency transfer value HS and rhythm intensity index R. Each parameter has a corresponding weight coefficient, which indicates the importance of different parameters when calculating the comprehensive characteristic index of music. By multiplying each parameter with its corresponding weight coefficient and then summing them, an index I that can fully describe the comprehensive characteristic index of music is obtained.

[0140] Step 306: Preset the threshold values of the comprehensive music feature indicators; the comprehensive indicator threshold values include the first music comprehensive feature indicator threshold value I1 and the second music comprehensive feature indicator threshold value I2; by extracting features from the music samples, parameters such as volume, frequency, timbre, and rhythm are extracted, and then the music comprehensive feature indicator I is calculated based on these parameters. By statistically analyzing the I values of different types of music, such as classical music, pop music, rock music, etc., the I value ranges corresponding to different music types are determined. For example, after analyzing a large number of classical music samples, it is found that their I values are generally within a relatively low range, and the lower limit of this range is used as the first music comprehensive feature indicator threshold value I1; while after analyzing rock music samples, their I values are within a relatively high range, and the upper limit of this range is used as the second music comprehensive feature indicator threshold value I2.

[0141] Step 307: When I ≤ I1, select the first water spraying mode; the water spraying flow is relatively gentle, and it is paired with music with a slow rhythm and a small volume, such as the adagio movement in classical music.

[0142] When I1 < I ≤ I2, select the second water spraying mode; the water spraying flow has a certain sense of rhythm, and it is paired with music with a moderate rhythm and a moderate volume, such as medium-tempo songs in pop music.

[0143] When I > I2, select the third water spraying mode; the water spraying flow changes violently, and it is paired with music with a strong rhythm and a large volume, such as fast-paced tracks in rock music or electronic music.

[0144] This method can make the performance of the fountain highly fit with the music, and the changes in volume, frequency, or rhythm can all be reflected in the fountain form and frequency level, greatly enhancing the synchronization of the audio-visual effect. Making judgments and selections through preset threshold values can make the performance of the fountain more orderly and diverse, presenting rich fountain shapes and rhythm changes according to different characteristics of the music, bringing a more contagious and artistic viewing experience.

[0145] Step Four: Calculate the comprehensive value P of the water spraying mode command according to the music comprehensive feature indicator I and the music signal data; calculate the nozzle adjustment angle θ according to the music comprehensive feature indicator I and the comprehensive value P of the water spraying mode command; calculate the light brightness L according to the rhythm intensity index R and the nozzle adjustment angle θ, and further obtain the light color value C; preset the light color value threshold, compare the light color value C with the light color value threshold, and select different light color sets according to the result.

[0146] Step 401: After the fountain system is installed, actual tests and calibrations are required to determine the minimum water spraying height H min 、the maximum water spraying height H max 、the minimum water volume W min and the maximum water volume W maxBy gradually adjusting the power of the water pump, the angle and pressure of the nozzle, etc., the water spray height and water volume under different settings are measured to accurately obtain the minimum water spray height H min , Maximum water spray height H max , minimum water volume W min and maximum water volume W max .

[0147] Step 402: Analyze and calculate the music comprehensive characteristic index I of a large number of different types of music samples, and find the maximum value of I in these samples, which is the maximum value of the music comprehensive characteristic index value I max .

[0148] According to the maximum music comprehensive characteristic index value I max , Music comprehensive characteristic index I, minimum water spray height H min , Maximum water spray height H max , minimum water volume W min and maximum water volume W max , calculate the comprehensive value P of the water spray mode instruction, based on the formula:

[0149]

[0150] It should be noted that (H min +W min ) This part represents the sum of the parameters of the sprinkler system in the most basic state, that is, the sum of the minimum sprinkler height and the minimum water volume. max -H min +W max -W min It represents the difference between the maximum water spray height and the minimum water spray height plus the difference between the maximum water volume and the minimum water volume. This part reflects the range of variation of the height and water volume of the water spray system. max is the maximum music comprehensive characteristic index value, which is used to normalize the above range of variation. Multiplying it by I means adjusting the comprehensive value of the water spray mode instruction according to the characteristics of the music. When the music comprehensive characteristic index I is large, the value of the second part will increase accordingly, thereby increasing the comprehensive value of the water spray mode instruction P; conversely, when I is small, the value of P will be relatively small.

[0151] Step 403: According to the mechanical structure of the nozzle and the limit position of the driving device, the maximum angle θ of the nozzle change is obtained max and the minimum angle θ of the nozzle change min .

[0152] According to the maximum angle θ of the nozzle max 、Minimum nozzle change angle θ min , music comprehensive characteristic index I and water spray mode instruction comprehensive value P, calculate the nozzle adjustment angle θ, the calculation formula is:

[0153]

[0154] Among them, θ max The maximum angle of the nozzle change; θ min The minimum angle of nozzle change.

[0155] It should be noted that θ min It is the minimum angle of the nozzle change, representing the lower limit of the nozzle angle. max -θ min ) This part indicates that the nozzle is adjusted between the minimum angle and the maximum angle according to the comprehensive value P of the spray mode instruction. When P = 0, this part is 0, and the minimum angle θ of the nozzle is min ; When P = 1, the nozzle is at the maximum angle θ max . is a sine function whose period is determined by I and I max Determines that when I changes from 0 to I max hour, It will complete a cycle of changes, with a value range between -1 and 1. After adding 1, the value range of this part becomes 0 to 2, which will produce a periodic fluctuation effect on the adjustment of the nozzle angle, so that the nozzle angle is periodically fine-tuned based on the comprehensive value P of the water spray pattern instruction and the comprehensive characteristic index I of the music.

[0156] Step 404: When designing the fountain lighting system, the maximum brightness and minimum brightness of the light are set according to the overall visual effect requirements; thereby obtaining the maximum brightness L of the light. max and minimum light intensity L min .

[0157] During the installation and commissioning of the fountain system, technicians continuously tried different δ values ​​to observe the effect of light brightness changing with the nozzle angle. For example, when the nozzle angle changes, the appropriate δ value can be determined by automatically adjusting the δ value to observe whether the light brightness can match the nozzle angle in the expected way.

[0158] Step 405: According to the maximum brightness L of the light max 、Minimum light brightness L min , rhythm intensity index R and nozzle adjustment angle θ, calculate the light brightness L, the calculation formula is:

[0159] L=L min +R×(L max -L min )×δ×θ

[0160] Wherein, δ is the adjustment coefficient of the nozzle adjustment angle θ, and its value ranges from 0 to 1.

[0161] It should be noted that L min It is the minimum brightness of the light, representing the lower limit of the light brightness. max -L min ) indicates that the light is adjusted between the minimum brightness and the maximum brightness according to the rhythm intensity index R. When R = 0, this part is 0, and the light brightness is the minimum brightness L min When R=1, the light brightness is the maximum brightness L max δ×θ represents the effect of nozzle adjustment angle θ on light brightness. When nozzle adjustment angle θ changes, light brightness is affected by adjusting coefficient δ. If nozzle adjustment angle θ increases and δ is a positive number, light brightness will increase accordingly.

[0162] Step 406: Calculate the light color value C based on the light brightness L. The calculation formula is:

[0163]

[0164] It should be noted that LL min Indicates the current light brightness L and the minimum light brightness L min This difference reflects the increase in the current light brightness relative to the minimum brightness. max -L min It indicates the difference between the maximum brightness of the light and the minimum brightness of the light. This difference represents the range of variation of the light brightness. In fact, the increase in the current light brightness relative to the minimum brightness is normalized to obtain a value between 0 and 1. Finally, it is multiplied by 255, because in the common color value representation, the color value range is 0 to 255. In this way, the normalized brightness difference is converted to the corresponding light color value C.

[0165] Step 407: preset the light color value threshold; the light color value threshold includes light color value threshold 1 C1 and light color value threshold 2 C2; monitor the color change of devices such as LED lights with high color accuracy; check that the device produces obvious visual differences within a smaller color value change range, so a more natural light color transition is achieved through more precise threshold setting. In the color value range from 0 to 255, if the color accuracy of the device is high and the color value is 150, then C2=150 is used as the light color value threshold 2. If the color value is 50, then C1=50 is used as the light color value threshold 1.

[0166] Step 408: When C≤C1, select light color set 1; color set 1 includes relatively dim and soft colors, such as dark blue, dark purple and dark green.

[0167] When C1 < C ≤ C2, select Lighting Color Set Two; Lighting Color Set Two creates a comfortable and harmonious atmosphere, including light blue, light purple, and light green.

[0168] When C > C2, select Lighting Color Set Three; Lighting Color Set Three contains brighter and more vivid colors, including bright yellow, bright red, and bright orange.

[0169] This method can make the changes of the fountain and lighting perfectly match the music. Whether it is a gentle and soothing melody or an exciting rhythm, it can be demonstrated through the corresponding water spraying patterns, nozzle angles, and lighting effects, greatly enhancing the ornamental and artistic value of the performance. Precise calculations and preset thresholds make the control of the entire system more scientific and orderly, avoiding random and不协调 situations.

[0170] On the other hand, the present invention also discloses a control system for an intelligent music fountain for implementing the above-mentioned control method of an intelligent music fountain, including:

[0171] A data receiving module for collecting music signal data;

[0172] A data analysis module for calculating the volume RMS, average amplitude frequency and timbre TC based on the music signal data; calculating the comprehensive index SKI according to the volume RMS, average amplitude frequency and timbre TC; calculating the frequency transfer value HS based on the music signal data; presetting the frequency transfer value threshold, comparing the frequency transfer value HS with the frequency transfer value threshold, and judging the frequency level of the fountain according to the result, and selecting the corresponding fountain shape set;

[0173] An instruction generation module for calculating the sum of the amplitude differences DL between adjacent sampling points according to the music signal data, average amplitude frequency and timbre parameter TC; calculating the rhythm intensity index R according to the average amplitude frequency and the sum of the amplitude differences DL between adjacent sampling points; calculating the music comprehensive feature index I according to the comprehensive index SKI, frequency transfer value HS, and rhythm intensity index R; presetting the music comprehensive feature index threshold, comparing the music comprehensive feature index I with the music comprehensive feature index threshold, and selecting different water spraying patterns according to the result;

[0174] The control module is used to calculate the comprehensive value P of the water spray mode instruction according to the music comprehensive characteristic index I and the music signal data; calculate the nozzle adjustment angle θ according to the music comprehensive characteristic index I and the water spray mode instruction comprehensive value P; calculate the light brightness L according to the rhythm intensity index R and the nozzle adjustment angle θ, and further obtain the light color value C; preset the light color value threshold, compare the light color value C with the light color value threshold, and select different light color sets according to the results.

[0175] On the other hand, the present invention also discloses a control device for an intelligent music fountain, including a processor and a memory, wherein the memory stores a computer program, and the processor can implement the control method for the intelligent music fountain when executing the computer program.

[0176] On the other hand, the present invention further discloses a control storage medium for an intelligent music fountain, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the control method for the intelligent music fountain is implemented.

[0177] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. A person of ordinary skill in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented in electronic hardware or in combination with computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution.

[0178] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0179] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A control method for an intelligent music fountain, characterized in that: Including: Collecting music signal data; Calculate volume RMS, average amplitude frequency based on music signal data and timbre TC; based on volume RMS, average amplitude frequency and timbre TC, calculate the comprehensive index SKI; based on the music signal data, calculate the frequency transfer value HS; Presetting a frequency transfer value threshold, comparing the frequency transfer value HS with the frequency transfer value threshold, judging the frequency level of the fountain according to the result, and selecting a corresponding set of fountain shapes; According to the music signal data, average amplitude frequency and timbre parameters TC, calculate the sum of the amplitude differences of adjacent sampling points DL; according to the average amplitude frequency and the sum of the amplitude differences of adjacent sampling points DL, calculate the rhythm intensity index R; calculate the music comprehensive feature index I according to the comprehensive index SKI, the frequency transfer value HS and the rhythm intensity index R; preset the music comprehensive feature index threshold, compare the music comprehensive feature index I with the music comprehensive feature index threshold, and select different water spray modes according to the results; Calculating the comprehensive value P of the water spraying mode command according to the music comprehensive characteristic index I and the music signal data; calculating the nozzle adjustment angle θ according to the music comprehensive characteristic index I and the comprehensive value P of the water spraying mode command; calculating the light brightness L according to the rhythm intensity index R and the nozzle adjustment angle θ, and further obtaining the light color value C; Presetting a light color value threshold, comparing the light color value C with the light color value threshold, and selecting different sets of light colors according to the result.

2. The control method of an intelligent music fountain according to claim 1, characterized in that: The method for calculating the comprehensive index SKI is: The music signal data includes the amplitude value XI of the audio signal i , amplitude frequency f i Amplitude value of harmonics A i ; Based on the amplitude value XI i , calculate the volume RMS, based on the formula: Among them, XI i is the amplitude value of the audio signal at the i-th sampling time point, i is 1, 2, 3...n; n is the total number of sampling points, which is a positive integer; Based on the amplitude frequency f i Calculate the average amplitude frequency The calculation formula is: Among them, f i is the amplitude frequency of the audio signal at the i-th sampling time point; Based on the amplitude value of harmonics A i , calculate the timbre parameter TC, the calculation formula is: Where d is the harmonic attenuation coefficient, which ranges from 0 to 1; A i is the amplitude value of the harmonic of the audio signal at the i-th sampling time point; According to volume RMS, average amplitude frequency And the timbre parameter TC, calculate the comprehensive index SKI, the formula based on which is: Among them, α is the weight coefficient of volume RMS, ranging from 0.1 to 0.3; β is the average amplitude frequency , whose value is 0.3~0.4; γ is the weight coefficient of timbre parameter TC, whose value is 0.3~0.5; and α+β+γ=1.

3. The control method of an intelligent music fountain according to claim 2 is characterized in that: The method for judging the fountain frequency level and selecting different sets of fountain shapes is: The music signal data also includes the Laplace variable SK, the central angular frequency WK, and the quality factor QK; Calculating the frequency transfer value HS according to the Laplace variable SK, the central angular frequency WK, and the quality factor QK, and the formula is: Presetting a frequency transfer value threshold; The frequency transfer value threshold includes the first frequency transfer value threshold HS1 and the second frequency transfer value threshold HS2; When HS ≤ HS1, judge that the fountain is at a low frequency level and select the first set of fountain shapes; When HS1 < HS ≤ HS2, judge that the fountain is at a medium frequency level and select the second set of fountain shapes; When HS > HS2, judge that the fountain is at a high frequency level and select the third set of fountain shapes.

4. The control method of an intelligent music fountain according to claim 3 is characterized in that: The method for calculating the rhythm intensity index R is: According to the amplitude value XI of the audio signal i , average amplitude frequency And the timbre parameter TC, calculate the sum of the amplitude differences of adjacent sampling points DL, the calculation formula is: Among them, XI i-1 is the amplitude value of the audio signal at the i-1th sampling time point; is the maximum value of the average amplitude frequency; TC max is the maximum value of the timbre parameter; According to the average amplitude frequency The sum of the amplitude differences of adjacent sampling points DL is used to calculate the rhythm intensity index R. The calculation formula is: Where HD is the harmonic coefficient, ranging from 0 to 1; TR is the time change rate; r is the volume change rate; r max is the maximum volume change rate.

5. The control method of an intelligent music fountain according to claim 4, characterized in that: The method for selecting different water spraying modes is: Calculating the music comprehensive characteristic index I according to the comprehensive index SKI, the frequency transfer value HS, and the rhythm intensity index R, and the formula is: I = ω1 × SKI + ω2 × HS + ω3 × R Wherein, ω1 is the weight coefficient of the comprehensive index SKI, and the value range is 0.1 to 0.4; ω2 is the weight coefficient of the frequency transfer value HS, and the value range is 0.2 to 0.5; ω3 is the weight coefficient of the rhythm intensity index R, and the value range is 0.3 to 0.4; and ω1 + ω2 + ω3 = 1; Presetting a music comprehensive characteristic index threshold; The comprehensive index threshold includes the first music comprehensive characteristic index threshold I1 and the second music comprehensive characteristic index threshold I2; When I ≤ I1, select the first water spraying mode; When I1 < I ≤ I2, select the second water spraying mode; When I > I2, select the third water spraying mode.

6. The control method of an intelligent music fountain according to claim 5, characterized in that: The method for calculating the comprehensive value P of the water spraying mode command is: The music signal data also includes the minimum water spray height H min , Maximum water spray height H max , minimum water volume W min and maximum water volume W max ; According to the comprehensive characteristic index of music I, the minimum water spray height H min , Maximum water spray height H max , minimum water volume W min and maximum water volume W max , calculate the comprehensive value P of the water spray mode instruction, based on the formula: Among them, I max It is the maximum value of the comprehensive characteristic index of music.

7. The control method of an intelligent music fountain according to claim 6, characterized in that: The method for selecting different sets of light colors is: Calculating the nozzle adjustment angle θ according to the music comprehensive characteristic index I and the comprehensive value P of the water spraying mode command, and the calculation formula is: Among them, θ max The maximum angle of the nozzle change; θ min The minimum angle of nozzle change; Calculating the light brightness L according to the rhythm intensity index R and the nozzle adjustment angle θ, and the calculation formula is: L=L min +R×9L max -L min )×δ×θ Among them, L max L is the maximum brightness of the light; min is the minimum brightness of the light; δ is the adjustment coefficient of the nozzle adjustment angle θ, and its value ranges from 0 to 1; Calculating the light color value C based on the light brightness L, and the calculation formula is: Presetting a light color value threshold; The light color value threshold includes the first light color value threshold C1 and the second light color value threshold C2; When C ≤ C1, select the first set of light colors; When C1 < C ≤ C2, select the second set of light colors; When C > C2, select the third set of light colors.

8. A control system for an intelligent music fountain, characterized in that: A data receiving module, used for collecting music signal data; Data analysis module, used to calculate volume RMS, average amplitude frequency based on music signal data and timbre TC; based on volume RMS, average amplitude frequency and timbre TC, calculate the comprehensive index SKI; based on the music signal data, calculate the frequency transfer value HS; Preset a frequency transfer value threshold, compare the frequency transfer value HS with the frequency transfer value threshold, determine the frequency level of the fountain according to the result, and select a corresponding fountain shape set; The instruction generation module is used to generate the music signal data, average amplitude frequency and timbre parameters TC, calculate the sum of the amplitude differences of adjacent sampling points DL; according to the average amplitude frequency and the sum of the amplitude differences of adjacent sampling points DL, calculate the rhythm intensity index R; calculate the music comprehensive feature index I according to the comprehensive index SKI, the frequency transfer value HS and the rhythm intensity index R; preset the music comprehensive feature index threshold, compare the music comprehensive feature index I with the music comprehensive feature index threshold, and select different water spray modes according to the results; The control module is used to calculate the comprehensive value P of the water spray mode instruction according to the music comprehensive characteristic index I and the music signal data; calculate the nozzle adjustment angle θ according to the music comprehensive characteristic index I and the water spray mode instruction comprehensive value P; calculate the light brightness L according to the rhythm intensity index R and the nozzle adjustment angle θ, and further obtain the light color value C; A light color value threshold is preset, the light color value C is compared with the light color value threshold, and different light color sets are selected according to the result.

9. A control device for an intelligent music fountain, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is capable of implementing the control method of the intelligent music fountain as described in any one of claims 1 to 7 when executing the computer program.

10. A control storage medium for an intelligent music fountain, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the control method of the intelligent music fountain according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Intelligent music fountain distributed control method and system

    CN113009848A

  • Small music fountain

    CN2112455U

  • Music fountain

    CN211563507U

  • Movable fountain system

    KR1020040059596A

  • A directed and managed fountain system cotrolled by remote control

    KR1020100050053A