LED dynamic spectrum display method based on audio data

文档序号:1739459 发布日期:2019-12-20 浏览:16次 中文

阅读说明:本技术 一种基于音频数据的led动态频谱显示方法 (LED dynamic spectrum display method based on audio data ) 是由 姜爱洲 于 2019-08-01 设计创作,主要内容包括:本发明公开了一种基于音频数据的LED动态频谱显示方法,方法包括音频输入端将输入的音频流经由高精度ADC将模拟信号转成数字信号;然后通过内部嵌入的DSP处理器设通过设定的频率区间对音频数据进行过滤;然后通过快速傅里叶变换将音频数据转换为电压参数,通过公式推导点亮LED灯条的盏数,再利用LED矩阵式电路通过计算的LED灯条点亮的盏数组合控制端口的开闭,实现对LED灯条的阵列式管理和显示,本发明的控制方法具有实质性的特点,改进了音频的呈现方式,增加了调音台的趣味性,利用音频输入的可视化设计,在一定程度上也增加了调音效果。(The invention discloses an LED dynamic spectrum display method based on audio data, which comprises the steps that an audio input end converts an input audio stream into a digital signal through a high-precision ADC; then, the audio data is filtered through a set frequency interval by an internally embedded DSP processor; the audio data are converted into voltage parameters through fast Fourier transform, the number of the lighted LED light bars is deduced through a formula, and the LED matrix circuit is used for controlling the opening and closing of the ports through the calculated combination of the lighted LED light bars so as to realize the array management and display of the LED light bars.)

1. A method for displaying LED dynamic spectrum based on audio data is characterized in that the method comprises the following steps,

step 1: the audio input end converts an input audio stream into a digital signal through the high-precision ADC;

step 2: then, setting the upper limit and the lower limit of the audio frequency of the band-pass filter through an internally embedded DSP, and filtering the audio data higher than the upper limit or lower than the lower limit through a set frequency interval;

step 3: the DSP processor generates a frequency spectrum signal after filtering audio data by using fast Fourier transform, and performs data sampling on a oscillogram corresponding to the frequency spectrum signal according to single frequency point information corresponding to each element in an array by using an array sampling method, wherein each element corresponds to one frequency point information, each frequency point information is put on the oscillogram to generate corresponding peak voltage, each group of peak voltage is sent to an LED driving chip through an asynchronous transmission interface, and the LED driving chip can finally determine the number of LED light bars to be lightened according to the following formula:

in the formula, n is the number of lighted LED light bars, M is the total number of lighted LED light bars, Vmax is the maximum value of the voltage which can be output by each group of ports, and Vn is the peak voltage which is correspondingly output by the current frequency point information; the LED driving chip calculates the number of the finally lighted LED lamp strips according to the formula, and determines the transverse interface and the longitudinal interface which are conducted by the LED matrix circuit according to the number of the finally lighted LED lamp strips corresponding to the peak voltage, so that the corresponding LED lamp strips are lighted.

Technical Field

The invention relates to the field of sound mixing consoles, in particular to an LED dynamic spectrum display method based on audio data.

Background

Along with the popularization of live broadcast, many derived products for improving the live broadcast effect are generated, wherein the sound console belongs to one type, the sound effect can be realized according to the needs of the sound console, the tone color, the range and the like of the sound console are adjusted, the sound console is popular among the anchor players, the current sound console can present a picture of audio dynamic display through application software after being connected with a computer, the functions of the sound console are limited to a certain extent, and no product which combines the audio of software and hardware and dynamically displays through an LED lamp is available in the market.

Disclosure of Invention

The present invention aims to solve at least one of the above technical problems to a certain extent. The invention aims to provide a method for dynamically presenting audio through an LED lamp.

An LED dynamic spectrum display method based on audio data comprises

Step 1: the audio input end converts an input audio stream into a digital signal through the high-precision ADC;

step 2: then, setting the upper limit and the lower limit of the audio frequency of the band-pass filter through an internally embedded DSP, and filtering the audio data higher than the upper limit or lower than the lower limit through a set frequency interval;

step 3: the DSP processor generates a frequency spectrum signal after filtering audio data by using fast Fourier transform, and performs data sampling on a oscillogram corresponding to the frequency spectrum signal according to single frequency point information corresponding to each element in an array by using an array sampling method, wherein each element corresponds to one frequency point information, each frequency point information is put on the oscillogram to generate corresponding peak voltage, each group of peak voltage is sent to an LED driving chip through an asynchronous transmission interface, and the LED driving chip can finally determine the number of LED light bars to be lightened according to the following formula:

in the formula, n is the number of lighted LED light bars, M is the total number of lighted LED light bars, Vmax is the maximum value of the voltage which can be output by each group of ports, and Vn is the peak voltage which is correspondingly output by the current frequency point information; the LED driving chip calculates the number of the finally lighted LED lamp strips according to the formula, and determines the transverse interface and the longitudinal interface which are conducted by the LED matrix circuit according to the number of the finally lighted LED lamp strips corresponding to the peak voltage, so that the corresponding LED lamp strips are lighted.

The invention has the beneficial effects that:

the audio data are converted into voltage parameters through fast Fourier transform, the number of the lighted LED light bars is deduced through a formula, and the LED matrix circuit is used for controlling the opening and closing of the port through the calculated combination of the lighted LED light bars so as to realize the array management and display of the LED light bars.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.

FIG. 1 is a flow chart diagram of a method for displaying LED dynamic spectrum based on audio data according to the present invention;

FIG. 2 is a schematic diagram of an LED matrix circuit of the method for displaying LED dynamic spectrum based on audio data according to the present invention;

FIG. 3 is a schematic diagram of an LED matrix control circuit of the audio data-based LED dynamic spectrum display method of the present invention;

FIG. 4 is a state diagram of an embodiment 1 of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.

All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that all the directional indications (such as up, down, left, right, front, back, inner and outer, center … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indication is changed accordingly.

In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.

In addition, the technical solutions in the embodiments of the present invention may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should not be considered to exist, and is not within the protection scope of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于卷积神经网络的钢琴音符识别算法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!