CN113009848A - Intelligent music fountain distributed control method and system - Google Patents

Intelligent music fountain distributed control method and system Download PDF

Info

Publication number
CN113009848A
CN113009848A CN202110180327.1A CN202110180327A CN113009848A CN 113009848 A CN113009848 A CN 113009848A CN 202110180327 A CN202110180327 A CN 202110180327A CN 113009848 A CN113009848 A CN 113009848A
Authority
CN
China
Prior art keywords
fountain
music
module
distributed control
effect
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.)
Granted
Application number
CN202110180327.1A
Other languages
Chinese (zh)
Other versions
CN113009848B (en
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.)
Nanjing University of Information Science and Technology
Original Assignee
Nanjing University of Information Science and Technology
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 Nanjing University of Information Science and Technology filed Critical Nanjing University of Information Science and Technology
Priority to CN202110180327.1A priority Critical patent/CN113009848B/en
Publication of CN113009848A publication Critical patent/CN113009848A/en
Application granted granted Critical
Publication of CN113009848B publication Critical patent/CN113009848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B05SPRAYING OR ATOMISING IN GENERAL; APPLYING FLUENT MATERIALS TO SURFACES, IN GENERAL
    • B05BSPRAYING APPARATUS; ATOMISING APPARATUS; NOZZLES
    • B05B17/00Apparatus for spraying or atomising liquids or other fluent materials, not covered by the preceding groups
    • B05B17/08Fountains

Abstract

The invention discloses an intelligent music fountain distributed control method and system, wherein the intelligent music fountain distributed control method comprises the steps of reading an audio file through an upper computer, preprocessing the audio file, and editing and previewing effects according to a preprocessing result; automatically sending fountain action instructions to a field controller through the upper computer according to the preprocessing result and the playing speed of the audio; the field controller receives the fountain action instruction and then sends a first control signal to an execution module according to a water type configuration rule; the execution module regulates the rotating speed of the water pump by using a variable frequency speed regulation technology to complete the flow control of the fountain water pump; the invention can automatically extract corresponding music characteristics according to the audio file and provide modeling library management function; the comprehensive preview function of the composed music is realized by utilizing the particle effect, the comprehensive preview effect is consistent with the actual field effect, and the unification of preview and engineering practice is realized.

Description

Intelligent music fountain distributed control method and system
Technical Field
The invention relates to the technical field, in particular to an intelligent music fountain distributed control method and system.
Background
As an important landscape in cities and scenic spots, the music fountain is more and more favored by people. According to the aesthetic design, the water flow is continuously changed along with the music, and the lamplight is matched to form beautiful vision and auditory feast. The types of music fountain control systems on the current market are many, and the music fountain can be divided into large, medium and small music fountains according to the fountain scale; the fountain control method comprises program control, real-time sound control, pre-programmed control, frequency conversion control and the like according to operation modes and control methods, and each mode is suitable for different fountain scales and has more control modes.
At present, programs of various control systems are controlled in a decentralized mode, and operation and management are not centralized; the communication transmission media and protocols are not uniform; the method lacks intelligent auxiliary music composing means, such as automatically capturing the beat of the song, extracting the characteristics of the music, recommending the water yield along with the waveform and the pattern of the music, and the like; the function of comprehensive real-time preview of the composed music is lacked, and the harmony problem cannot be found in time in the pre-compiling stage through actions such as water outlet, light, a motor and the like; the motor control instruction is not intelligent enough, and has no configuration and automatic compiling function.
Disclosure of Invention
This section is for the purpose of summarizing some aspects of embodiments of the invention and to briefly introduce some preferred embodiments. In this section, as well as in the abstract and the title of the invention of this application, simplifications or omissions may be made to avoid obscuring the purpose of the section, the abstract and the title, and such simplifications or omissions are not intended to limit the scope of the invention.
The present invention has been made in view of the above-mentioned conventional problems.
Therefore, the invention provides an intelligent music fountain distributed control method, which can solve the problems of non-centralized operation and management, non-uniform communication protocol and long engineering implementation period of the traditional fountain.
In order to solve the technical problems, the invention provides the following technical scheme: reading an audio file through an upper computer, preprocessing the audio file, and editing and previewing an effect according to a preprocessing result; automatically sending fountain action instructions to a field controller through the upper computer according to the preprocessing result and the playing speed of the audio; the field controller receives the fountain action instruction and then sends a first control signal to an execution module according to a water type configuration rule; the execution module utilizes the variable frequency speed regulation technology to adjust the rotating speed of the water pump, and flow control of the fountain water pump is completed.
As a preferred scheme of the distributed control method of the intelligent music fountain, the distributed control method of the intelligent music fountain comprises the following steps: the preprocessing comprises initializing a decoder, reading data of each block according to the definition of a data structure, and analyzing the composition structure mode of music information; and defining a structural body Frame for each Frame of music information, analyzing the audio file into a Frame structural body linked list with a time tag, and storing the Frame structural body linked list with the time tag.
As a preferred scheme of the distributed control method of the intelligent music fountain, the distributed control method of the intelligent music fountain comprises the following steps: the fountain action instruction comprises a configuration action instruction; extracting a rhythm line through the preprocessing, and combining the action instruction with the rhythm line to obtain the fountain action instruction; and storing the fountain action instruction into a shared memory area.
As a preferred scheme of the distributed control method of the intelligent music fountain, the distributed control method of the intelligent music fountain comprises the following steps: the execution module comprises a driving circuit, a fountain multi-dimensional sprayer, a fixed sprayer, a variable-frequency speed regulator, an electromagnetic valve, a submersible pump, a colored lamp, a shaking head lamp and a stepping motor; wherein, the variable frequency speed regulator and the stepping motor are controlled by analog quantity; the electromagnetic valve and the submersible pump are controlled by using the switching value; the colored lamps are divided into true color 512 lamps and seven-color LED lamps, the true color 512 lamps are controlled by the analog quantity, and the seven-color LED lamps are controlled by the switching value.
As a preferred scheme of the distributed control method of the intelligent music fountain, the distributed control method of the intelligent music fountain comprises the following steps: the spray head direction of the music fountain is controlled by two stepping motors respectively in the horizontal direction and the vertical direction, and the operation angle and the operation speed of the stepping motors are controlled by continuously adjusting the input pulse number and the speed of the stepping motors.
As a preferred solution of the distributed control system of the intelligent music fountain according to the present invention, wherein: comprises, a core module: the music fountain effect control system is used for providing corresponding effect control instructions of the music fountain to the field controller; the effect editing module is connected with the core module and used for editing fountain effects and extracting music characteristics; the scene management module is connected with the core module and used for virtually constructing and grouping music fountain elements; and the comprehensive preview module is connected with the effect editing module and is used for previewing the effect edited by the effect editing module.
As a preferred solution of the distributed control system of the intelligent music fountain according to the present invention, wherein: the effect editing module comprises a modeling control unit: used for setting a specific fountain modeling; light control is single: the light is used for controlling the music fountain; a motor control unit: used for controlling the water outlet direction of the fountain opening and generating a water bloom model; a manual operation control unit: for debugging, testing and temporary manual control of music.
As a preferred solution of the distributed control system of the intelligent music fountain according to the present invention, wherein: the scene management module comprises a channel management unit: and the system is used for managing the communication between the upper computer software and each field controller.
The invention has the beneficial effects that: the invention realizes the unified management of the equipment by adopting a supported channel type and expandable protocol; meanwhile, corresponding music characteristics can be automatically extracted according to the audio file, a modeling library management function is provided, music editing, scene configuration, water type special effects and the like can be recommended, mistakes are effectively eliminated, and the efficiency is improved; the comprehensive preview function of the composed music is realized by utilizing the particle effect, the problem of harmony can be found in time in the pre-compiling stage, the construction time of the project is saved, the comprehensive preview effect is consistent with the actual field effect, and the unification of the preview and the actual project is really achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise. Wherein:
fig. 1 is a schematic flow chart of a distributed control method for an intelligent music fountain according to a first embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a motor instruction principle of an intelligent music fountain distributed control method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a motor instruction compiling and executing flow of an intelligent music fountain distributed control method according to a first embodiment of the present invention;
fig. 4 is a schematic block diagram of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 5 is a schematic interface diagram of a core module 500 of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 6 is a schematic diagram illustrating waveform editing of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 7 is a schematic diagram illustrating editing of frame actions of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 8 is a schematic view of a light control of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 9 is a schematic diagram of a motor command interface of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 10 is a schematic view illustrating scene management of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 11 is a schematic diagram of a debugging interface of a channel management unit 301 of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 12 is a schematic diagram of a comprehensive preview window of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 13 is a schematic diagram illustrating a three-dimensional scene setting principle of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 14 is a schematic view of a virtual scene drawing process of OpenGL in an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 15 is a schematic diagram illustrating an overall structure of an intelligent music fountain distributed control system according to a second embodiment of the present invention;
fig. 16 is a schematic diagram illustrating an audio waveform processing result of an intelligent music fountain distributed control system according to a third embodiment of the present invention;
fig. 17 is a schematic diagram of a music fountain site effect of an intelligent music fountain distributed control system according to a third embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, specific embodiments accompanied with figures are described in detail below, and it is apparent that the described embodiments are a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present invention, shall fall within the protection scope of the present invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described and will be readily apparent to those of ordinary skill in the art without departing from the spirit of the present invention, and therefore the present invention is not limited to the specific embodiments disclosed below.
Furthermore, reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one implementation of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
The present invention will be described in detail with reference to the drawings, wherein the cross-sectional views illustrating the structure of the device are not enlarged partially in general scale for convenience of illustration, and the drawings are only exemplary and should not be construed as limiting the scope of the present invention. In addition, the three-dimensional dimensions of length, width and depth should be included in the actual fabrication.
Meanwhile, in the description of the present invention, it should be noted that the terms "upper, lower, inner and outer" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of describing the present invention and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation and operate, and thus, cannot be construed as limiting the present invention. Furthermore, the terms first, second, or third are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The terms "mounted, connected and connected" in the present invention are to be understood broadly, unless otherwise explicitly specified or limited, for example: can be fixedly connected, detachably connected or integrally connected; they may be mechanically, electrically, or directly connected, or indirectly connected through intervening media, or may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Example 1
Referring to fig. 1 to 3, a first embodiment of the present invention provides an intelligent music fountain distributed control method, including:
s1: and reading the audio file, preprocessing the audio file, and editing and previewing the effect according to the preprocessing result.
The method comprises the following steps of:
(1) taking MP3 format as an example, the read audio file firstly initializes the decoder and reads the data of each block according to the definition of the data structure;
(2) analyzing the structural mode of the audio file information, and defining a structural body Frame for each Frame of information;
(3) and resolving the MP3 file into a Frame structure linked list with a time tag, and storing the Frame structure linked list.
The program code for defining the structure Frame is as follows:
Figure BDA0002942008650000051
Figure BDA0002942008650000061
s2: and automatically sending fountain action instructions to the field controller through the upper computer according to the preprocessing result and the playing speed of the audio.
The fountain action instruction is obtained through the following steps:
(1) configuring an action command;
(2) extracting rhythm lines through preprocessing to obtain corresponding beats, combining action instructions with the beats to obtain fountain action instructions:
the method of low-pass filtering analysis is adopted to filter high-frequency information, extract a low-frequency band audio frequency map, analyze peak intervals, automatically calculate beats and accent points, and automatically generate accent interval lines on a time axis.
Preferably, the embodiment can automatically perform the functions of automatically absorbing and dividing time blocks on the polyphonic interval lines during the music composing, thereby simplifying the music composing operation.
Further, the fountain action instruction is stored in the shared memory area, and the fountain action instruction is sent to the field controller through the upper computer.
Specifically, the working principle of compiling and sending the upper computer combined fountain action instruction is shown in fig. 2, and the working flow is as follows:
(1) calculating the instruction position: according to the current time, the starting time of the time block and the period of sending the command, the current command position of the motor can be calculated; generally, the cycle of sending the instruction is 3 times of the communication cycle, so that the communication thread sends the same instruction 3 times, which is to ensure that the instruction can smoothly reach the controller without being affected by the communication reason.
(2) Compiling and caching instructions: when editing the motion of the motor, the generated command is an original command, wherein a logic control statement (a loop or a subprogram call) is possible; the original instruction is compiled and cached into a group of simple sequential control instructions, so that the current execution instruction is convenient to extract; the compiling process is that each loop and nesting are expanded by utilizing recursion to form a group of simple instructions which are cached in a memory, the original instructions of the existing cache instructions are not compiled again unless modified, and all motor instructions to be called are generally precompiled before the song is played in order to improve the response speed of the program.
(3) Storing instructions to a shared memory area: after the arbitration thread calculates the current instruction to be sent, translating the instruction into a communication message according to the communication channel number and the communication position, and filling the communication message into a shared memory area; since the arbitration thread is only responsible for computing instructions, and the tasks of communication transceiving are executed in the channel sending thread, the security of the data in the memory area should be ensured by a shared lock when the two parties access the shared memory area.
(4) And finally, the channel sending thread accesses the data in the shared memory area regularly and sends the data to the field controller.
S3: the field controller receives the fountain action command and then sends a first control signal to the execution module 100 according to the water type configuration rule.
The site controller is responsible for executing control signals transmitted after being processed by the upper computer, and controls the execution module 100 according to a self-defined water type action combination (such as rectangular wave + rectangular wave, sine wave + triangular wave, flat wave + trapezoidal wave and the like).
It should be noted that the processor of the field controller can adopt a single chip microcomputer and a PLC; the field controller can be divided into the following functions: the water outlet controller (controls the height of the fountain water level), the motor controller (controls the speed of axial rotation), the light controller (controls the color of light), the laser controller (controls a laser projector), the projection controller (controls a projector) and the like can be conveniently added or deleted according to the scale and the user requirements, and a customized field controller can also be adopted, and the controller has higher integration level; the field controller of the embodiment has a multifunctional switching value output, a standard analog value output and a built-in communication interface circuit, supports various industrial control protocols based on TCP/IP, and communicates with an upper computer.
The "first control signal" refers to a corresponding instruction signal sent by the upper computer to the field controller according to an instruction of the control signal, and is used for instructing the execution module 100 to control the water flow.
S4: the execution module 100 utilizes the frequency conversion speed regulation technology to regulate the rotating speed of the water pump, and thus the flow control of the fountain water pump is completed.
The execution module 100 comprises a driving circuit, a fountain multi-dimensional nozzle, a fixed nozzle, a variable frequency speed regulator, an electromagnetic valve, a submersible pump, a colored lamp, a shaking head lamp and a stepping motor; wherein, the variable frequency speed regulator and the stepping motor are controlled by analog quantity; the electromagnetic valve and the submersible pump are controlled by using the switching value; the colored lamps are divided into true color 512 lamps and seven-color LED lamps, wherein the true color 512 lamps are controlled by analog quantity, and the seven-color LED lamps are controlled by switching quantity.
The basic principle of the variable frequency speed control technology is that according to the direct proportion relation between the rotating speed of a motor and the input frequency of a working power supply: n is 60f (1-s)/p, wherein n, f, s and p respectively represent the rotating speed, the input frequency, the motor slip ratio and the number of magnetic pole pairs of the motor; the purpose of changing the rotating speed of the motor is achieved by changing the working power supply frequency of the motor.
It should be noted that the direction of the nozzle of the music fountain is controlled by two stepping motors in the horizontal and vertical directions respectively, and the operation angle and the operation speed of the stepping motors are controlled by continuously adjusting the number and the speed of the input pulses of the stepping motors.
Example 2
Referring to fig. 4 to 15, a second embodiment of the present invention, which is different from the first embodiment, provides an intelligent music fountain distributed control system, referring to fig. 4, which includes a core module 500, an effect editing module 200, a scene management module 300, and a comprehensive preview module 400; the core module 500 is configured to provide a corresponding effect control instruction of the music fountain to the field controller; the effect editing module 200 is used for editing fountain effects and extracting music characteristics; a scene management module 300 for virtual construction and grouping of music fountain elements; and the comprehensive preview module 400 is used for previewing the effect edited by the effect editing module 200.
Specifically, referring to fig. 5, as an interface of the core module 500, the core module 500 includes a time block, a Layer hierarchy, a time axis, and an arbitration thread, which are used to execute the core function of the music fountain control system (determine what fountain effect should be executed according to the playing time of the current music); specifically, after a specified music file is loaded into a scene, through automatic parsing, a waveform diagram of the music is displayed on a time axis (a black bar scale part in fig. 5); the progress line (vertical line in fig. 5) indicates the current playing time (precision ms); the color bar blocks right below the time axis represent time blocks; the progress line moves to the right at a constant speed along with the playing of the music; when the progress line cuts to time blocks, it means that the actions required to be performed within these time blocks will be performed; each time block comprises configured effect parameters, and the arbitration thread analyzes the parameters, converts the parameters into executable instructions and sends the executable instructions to the corresponding controller.
The effect editing module 200 is connected with the core module 500, and provides various editors such as waveforms, frame actions, lights, motors and the like for a user to edit various special effects of the fountain; in order to facilitate the transplantation of engineering projects, the editors have the function of making effect templates; specifically, the effect editing module 200 includes a modeling control unit 201, a light control unit 202, a motor control unit 203, and a hand control unit 204.
Wherein, the model control unit 201 is used for setting a specific fountain model, which puts out a specific model by controlling the water yield of the fountain, and for regular models, the water type is generated by calculating a corresponding wave function, for example, fig. 6, and a model similar to a mountain peak can be realized by generating a triangular wave and configuring parameters such as a wave peak, a wave trough, a period, an execution interval, and the like, and similar effects also include: flat waves, oblique waves, rectangular waves, trapezoidal waves, sine waves, semicircular waves, and the like; some irregular modeling and dynamic effects can be realized by means of frame-by-frame editing, and as shown in fig. 7, a specific water type effect can be manually edited in a manner similar to that of editing a bitmap, so as to meet the special requirements of a user.
The light control unit 202 is used for controlling light of the music fountain; the light can decorate the music fountain in the night curtain, especially uses a large amount of underwater color lamps, and the cooperation laser and water curtain projection can show very good overall effect. For light control in a music fountain, the main configuration parameters are: color sequence, color change interval; the light control unit 202 can enrich the expression form of light by the way of light and water linkage, such as: a frame action editor is matched to put out a specific light pattern; the arrangement interface is shown in fig. 8, which is used to realize the gradation change of the light intensity according to the water output.
The motor control unit 203 is used for controlling the water outlet direction of the fountain opening and generating a spray pattern, and the motor control unit 203 of the embodiment can adopt an upper computer motor, for example; specifically, the two-dimensional music fountain can control the water outlet direction of the nozzle through motors in two directions of a Y axis (vertical direction) and a Z axis (horizontal direction) to swing various beautiful water bloom models; the core of the motor control unit 203 is a set of simple and clear sequence control instructions: move (pulse number, speed), rest (duration), loop (supporting infinite nesting), reset; then, an interface for configuring the sequential control instructions is provided through a motor action editor, and the combined action is stored as a motor action file so as to be convenient for subsequent multiplexing; before multiplexing these commands, the program performs the operations of compiling the combined command into a message data structure that can be finally sent to the site controller, and the command interface of the motor control unit 203 is shown in fig. 9.
The hand operation control unit 204 is used for debugging, testing and temporarily manually controlling music; when the hand control unit 204 is activated, the predefined groups in all scenarios will appear in the hand panel in the form of buttons, and the arbitration thread will no longer use the time axis as a criterion for deciding to perform an action.
The scene management module 300 is connected to the core module 500, and is used for virtual construction and grouping of music fountain elements, and is composed of elements, groups, and a channel management unit 301, wherein the elements refer to a single control point in a virtual sense, the groups refer to ordered arrays composed of a plurality of elements, and can be edited in a form of queues or matrixes, and the channel management unit 301 is used for managing communication between upper computer software and each field controller.
Specifically, each music fountain has its own unique design and layout, and the scene management module 300 virtually constructs one-to-one of the spring eyes in the upper computer software and reasonably groups the spring eyes; each element represents an actually corresponding control point, it should be noted that the fountain nozzle, a control motor (including horizontal and vertical dimensions) and a bottom spotlight form a whole, which is called a control point, and attributes of the control point include: the communication addresses of analog quantity (controlling water yield), switching value (controlling a switch valve), a Y-axis motor, a Z-axis motor, light and the like are in the following formats: the channel number + communication position (as shown in fig. 10), the channel management unit is responsible for managing the connection of the channel, and according to the requirement of the arbitration thread, encapsulates the instruction into the specified industrial communication protocol, and sends the instruction to the field controller periodically (cycle 20 ms); the channel attribute includes an IP address, a port number, a data (protocol) type, a data length, and the like; the data type is a scalable structure, and each option corresponds to an industrial communication protocol based on TCP/IP; such as ModbusTCP (analog/switching), DMX512 (light), PJLINK (projection), etc.
Preferably, the intelligent music fountain control system provided by the present invention relies on the channel-type and scalable industrial protocol to realize integration of various controllers and devices, and fig. 11 is a debugging interface of the channel management unit 301.
The comprehensive preview module 400 is connected to the core module 500, and is configured to support a real-time updated three-dimensional display window and display a preview effect that should be reflected by the entire scene at any time on the time axis; the music fountain has a reasonable overall arrangement on the time schedule from design, construction to acceptance; after the design drawing is finished, the scene configuration and song arrangement of the software can be synchronously carried out along with purchase and construction; at this time, the on-site debugging feedback function is not provided, so that the comprehensive preview function is very important for the music fountain control system; several of the main elements of the integrated preview module 400 are: spout (plane coordinate), water outlet (three-dimensional vector), light, camera (multi-view angle); the comprehensive preview module 400 based on opengl (open Graphics library) can well coordinate the above elements; the composite preview window is shown in FIG. 12; OpenGL provides a pure three-dimensional scene, which naturally solves the problem of multiple viewing angles; wherein, the fountain effluent is realized by simulating the gravity effect by using the particle effect; the light is realized by a conical light source; the rotation of the two-dimensional motor is simulated by using a Transform (transformation coordinate system) method;
the steps of drawing the virtual three-dimensional scene by adopting OpenGL are as follows: (1) initializing a three-dimensional scene: setting the position and the lens direction of a camera, setting a sky box and a sky light (parallel light source), drawing a water surface, and simulating water waves (the setting principle is shown in figure 13); (2) rendering model objects within a three-dimensional scene: the method comprises the following steps of (1) generating standard OBJ files by modeling software such as 3DMAX and the like, wherein the standard OBJ files comprise fountain peripheral buildings, rockeries and the like; the music fountain control software takes an OBJ file, converts a three-dimensional model into dot matrix data, combines and reads model material information such as diffuse reflection light, a mapping and the like, and restores the model material information into a scene by using a drawing function provided by OpenGL; (3) simulating the water column ejected from the nozzle with a particle effect: each nozzle object comprises a limited number of particle arrays, and new particles are generated and old particles are dead in each calculation period so as to maintain the number of the particles in the arrays; by calculating the X-axis and Y-axis angles of each nozzle in the core process of the core module 500, the injection vector and the initial velocity of the nascent particle can be obtained; the flight trajectory of each particle after birth is the result of the combined action of the jetting vector, the initial velocity and the gravity; in particular, a slight random offset of the jetting vector can be given to simulate the effect of water bloom agility; the flow chart of drawing a virtual scene by using OpenGL is shown in fig. 14.
The working principle of the system is as follows: establishing corresponding groups and elements in the scene management module 300 according to a design drawing of the music fountain; configuring the attribute of a channel according to a field network topological structure; next, fountain effect editing is performed in the effect editing module 200, and the pre-edited effects are added to the time axis in a layered manner and are called when songs are played; effect recommendation can also be performed by using the modeling library through extracting the music characteristics; the edited effect can be previewed through the comprehensive previewing module 400 so as to correct the effect details; the arbitration thread in the core module 500 performs strict clock management, and integrates the information provided by each module (the effect editing module 200, the scene management module 300, and the integrated preview module 400) to decide what kind of instruction should be executed to the field controller at the current time, and finally instructs the field hardware such as the pump, the motor, the frequency converter, and the like to coordinate the music action through the field controller, so as to realize the specified effect of the music fountain.
Example 3
In order to verify and explain the technical effects adopted in the method, the embodiment selects a traditional control method and compares the traditional control method with the method so as to verify the real effects of the method.
The traditional control method has the following defects: (1) the program is decentralized controlled, the operation and management are not centralized, and the original sequence control program is divided into a plurality of groups of controllers for respective automatic control according to the functions (water outlet, light and motor control); (2) the communication transmission media and the protocols are not uniform, and industrial protocols based on motion control and common analog/switching value control are mixed for use; hardware equipment based on twisted-pair wires and an industrial bus is used in a mixed mode; (3) the method lacks intelligent auxiliary music composing means, such as automatically capturing the beat of the song, extracting the characteristics of the music, recommending the water yield along with the waveform and the pattern of the music, and the like; (4) the function of comprehensive real-time preview of the composed music is lacked, and the harmony problem cannot be found in time in the pre-compiling stage through actions such as water outlet, light, a motor and the like; (5) the motor control instruction is not intelligent enough, and has no configuration and automatic compiling function.
Compared with the traditional control method, the method can provide modeling library management function, carry out effect recommendation according to different music characteristics, complete effect actions of various water types or lamplight, simplify grouping, provide recommendation and help for scene configuration, effectively shorten construction period and save workload, and the control period only needs 20 ms.
Specifically, in order to make the overall effect of the fountain conform to the rhythm of music, the rhythm or time block needs to be edited according to the music beat/stress during music composition, if the work is performed manually, each time block needs to be aligned manually, or the execution interval time of actions is set according to the beat, so that a large amount of work is consumed; the method comprises the steps of reading the waveform of a music playing file, filtering high-frequency information by adopting a low-pass filtering analysis method, extracting a low-frequency-band audio frequency map, analyzing peak intervals, automatically calculating beats and accent points, automatically generating accent interval lines on a time axis, and automatically performing functions of time block automatic adsorption and automatic division on the accent interval lines during music composition, so that music composition operation is simplified.
The music fountain is controlled by the method, the actual field fountain effect is as shown in figure 17, and the comparison of figure 12 shows that the actual field effect is consistent with the comprehensive preview effect, so that the unification of preview and engineering practice is realized.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, the operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein. A computer program can be applied to input data to perform the functions described herein to transform the input data to generate output data that is stored to non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.
As used in this application, the terms "component," "module," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a component may be, but is not limited to being: a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of example, both an application running on a computing device and the computing device can be a component. One or more components can reside within a process and/or thread of execution and a component can be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and/or across a network such as the internet with other systems by way of the signal).
It should be noted that the above-mentioned embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, which should be covered by the claims of the present invention.

Claims (8)

1. An intelligent music fountain distributed control method is characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
reading an audio file through an upper computer, preprocessing the audio file, and editing and previewing an effect according to a preprocessing result;
automatically sending fountain action instructions to a field controller through the upper computer according to the preprocessing result and the playing speed of the audio;
the field controller receives the fountain action instruction and then sends a first control signal to an execution module (100) according to a water type configuration rule;
the execution module (100) adjusts the rotating speed of the water pump by using a variable frequency speed regulation technology to complete the flow control of the fountain water pump.
2. The intelligent music fountain distributed control method of claim 1, wherein: the pre-treatment comprises the steps of,
initializing a decoder, reading the data of each block according to the definition of the data structure, and analyzing the composition structure mode of the music information;
and defining a structural body Frame for each Frame of music information, analyzing the audio file into a Frame structural body linked list with a time tag, and storing the Frame structural body linked list with the time tag.
3. The intelligent music fountain distributed control method of claim 2, wherein: the fountain action instructions comprise that the fountain action instructions comprise,
configuring an action command;
extracting a rhythm line through the preprocessing, and combining the action instruction with the rhythm line to obtain the fountain action instruction;
and storing the fountain action instruction into a shared memory area.
4. The intelligent music fountain distributed control method of claim 2 or 3, wherein: the execution module (100) comprises a driving circuit, a fountain multi-dimensional sprayer, a fixed sprayer, a variable-frequency speed regulator, an electromagnetic valve, a submersible pump, a colored lamp, a moving head lamp and a stepping motor;
wherein, the variable frequency speed regulator and the stepping motor are controlled by analog quantity; the electromagnetic valve and the submersible pump are controlled by using the switching value; the colored lamps are divided into true color 512 lamps and seven-color LED lamps, the true color 512 lamps are controlled by the analog quantity, and the seven-color LED lamps are controlled by the switching value.
5. The intelligent music fountain distributed control method of claim 4, wherein: also comprises the following steps of (1) preparing,
the direction of the spray head of the music fountain is controlled by two stepping motors respectively in the horizontal direction and the vertical direction, and the operation angle and the operation speed of the stepping motors are controlled by continuously adjusting the number and the speed of input pulses of the stepping motors.
6. The utility model provides an intelligence music fountain distributed control system which characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
core module (500): the music fountain effect control system is used for providing corresponding effect control instructions of the music fountain to the field controller;
the effect editing module (200) is connected with the core module (500) and is used for editing fountain effects and extracting music characteristics;
the scene management module (300) is connected with the core module (500) and is used for virtually constructing and grouping music fountain elements;
the comprehensive preview module (400) is connected with the core module (500) and is used for previewing the effect edited by the effect editing module (200).
7. The intelligent music fountain distributed control system of claim 6, wherein: the effect editing module (200) comprises,
a molding control unit (201): used for setting a specific fountain modeling;
light control unit (202): the light is used for controlling the music fountain;
motor control unit (203): used for controlling the water outlet direction of the fountain opening and generating a water bloom model;
a hand operation control unit (204): for debugging, testing and temporary manual control of music.
8. The intelligent music fountain distributed control system of claim 6 or 7, wherein: the scene management module (300) comprises,
channel management unit (301): and the system is used for managing the communication between the upper computer software and each field controller.
CN202110180327.1A 2021-02-08 2021-02-08 Intelligent music fountain distributed control system Active CN113009848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110180327.1A CN113009848B (en) 2021-02-08 2021-02-08 Intelligent music fountain distributed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110180327.1A CN113009848B (en) 2021-02-08 2021-02-08 Intelligent music fountain distributed control system

Publications (2)

Publication Number Publication Date
CN113009848A true CN113009848A (en) 2021-06-22
CN113009848B CN113009848B (en) 2022-04-15

Family

ID=76384089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110180327.1A Active CN113009848B (en) 2021-02-08 2021-02-08 Intelligent music fountain distributed control system

Country Status (1)

Country Link
CN (1) CN113009848B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113617580A (en) * 2021-08-24 2021-11-09 杭州西湖喷泉设备成套有限公司 Control system of multifunctional art fountain

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1384446A (en) * 2001-04-28 2002-12-11 中国科学院自动化研究所 Intelligent musical fountain controlling system and method with multimedia computer
JP2004148233A (en) * 2002-10-31 2004-05-27 Shin Meiwa Ind Co Ltd Music-synchronized fountain system
KR20090116881A (en) * 2008-05-08 2009-11-12 안복모 An automatic production system for a music fountain and the method thereof
CN101804396A (en) * 2010-05-07 2010-08-18 江苏大学 Water column impact music fountain
CN206868494U (en) * 2017-04-21 2018-01-12 昆明理工大学 A kind of movable small music spring system applied to urban waterscape
CN108335343A (en) * 2018-03-15 2018-07-27 北京中科水景科技有限公司 Fountain previews emulation mode, system and server
CN109408943A (en) * 2018-10-19 2019-03-01 厦门理工学院 A kind of water spray control method, apparatus, system and storage medium
CN110992450A (en) * 2019-11-28 2020-04-10 东华大学 Music fountain simulation system based on OpenGL
CN111596589A (en) * 2020-05-28 2020-08-28 南京泉杰景观工程有限公司 Multimedia music fountain control system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1384446A (en) * 2001-04-28 2002-12-11 中国科学院自动化研究所 Intelligent musical fountain controlling system and method with multimedia computer
JP2004148233A (en) * 2002-10-31 2004-05-27 Shin Meiwa Ind Co Ltd Music-synchronized fountain system
KR20090116881A (en) * 2008-05-08 2009-11-12 안복모 An automatic production system for a music fountain and the method thereof
CN101804396A (en) * 2010-05-07 2010-08-18 江苏大学 Water column impact music fountain
CN206868494U (en) * 2017-04-21 2018-01-12 昆明理工大学 A kind of movable small music spring system applied to urban waterscape
CN108335343A (en) * 2018-03-15 2018-07-27 北京中科水景科技有限公司 Fountain previews emulation mode, system and server
CN109408943A (en) * 2018-10-19 2019-03-01 厦门理工学院 A kind of water spray control method, apparatus, system and storage medium
CN110992450A (en) * 2019-11-28 2020-04-10 东华大学 Music fountain simulation system based on OpenGL
CN111596589A (en) * 2020-05-28 2020-08-28 南京泉杰景观工程有限公司 Multimedia music fountain control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林平: "基于音乐特征解析的音乐喷泉展示系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113617580A (en) * 2021-08-24 2021-11-09 杭州西湖喷泉设备成套有限公司 Control system of multifunctional art fountain

Also Published As

Publication number Publication date
CN113009848B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US10134179B2 (en) Visual music synthesizer
ES2251396T3 (en) SYSTEM AND PROCEDURES THAT SERVE TO ALLOW LIGHTING SEQUENCES.
KR0157328B1 (en) Creating and controlling lighting designs
CN101082901B (en) Virtual rehearsing system
CN105590342A (en) System for constructing three-dimensional exhibit display scene
CN113009848B (en) Intelligent music fountain distributed control system
CN104077802A (en) Method for improving displaying effect of real-time simulation image in virtual scene
US20080082214A1 (en) Method for animating a robot
CN109523854A (en) A kind of method of Hydraulic Elements machine & equipment
CN104574481A (en) Nonlinear modification method for 3D character animation
JP6352275B2 (en) Method, system and computer readable recording medium for generating crowd animation
CN108580156A (en) A kind of frequency conversion music fountain control system
CN115953540A (en) Meta-universe virtual space construction system and method based on three-dimensional panorama
CN116761302A (en) Scene type light effect configuration method and device, equipment and medium
CN1797473A (en) Method for editing computer animation
CN110839313A (en) Light source light control method and system
Latham et al. Exhibiting mutator VR: procedural art evolves to virtual reality
CN113140025A (en) Three-dimensional animation production method and material import method
KR20050001101A (en) Method of rendering a 3D image from a 2D image
CN109615709A (en) The modeling of multiple person cooperational three-dimensional scenic and method for drafting based on cloud computing
Xie et al. Design and Realization of Distributed Control System of Intelligent Music Fountain
CN114266855A (en) Light effect simulation method and device of dot matrix screen and electronic equipment
CN110992452A (en) Skill trisection method human body dynamic structure drawing system software
CN205009873U (en) Form device of light sculpture
Hu The Application of Computer Software—3D Studio Max, Lightscape and V-Ray in the Environmental Artistic Expression

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
GR01 Patent grant
GR01 Patent grant