WO2017000805A1 - 一种灯光随特定音乐互动的方法及*** - Google Patents

一种灯光随特定音乐互动的方法及*** Download PDF

Info

Publication number
WO2017000805A1
WO2017000805A1 PCT/CN2016/086470 CN2016086470W WO2017000805A1 WO 2017000805 A1 WO2017000805 A1 WO 2017000805A1 CN 2016086470 W CN2016086470 W CN 2016086470W WO 2017000805 A1 WO2017000805 A1 WO 2017000805A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
music
rhythm
lighting
spectral
Prior art date
Application number
PCT/CN2016/086470
Other languages
English (en)
French (fr)
Inventor
黄兆霖
Original Assignee
芋头科技(杭州)有限公司
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 芋头科技(杭州)有限公司 filed Critical 芋头科技(杭州)有限公司
Publication of WO2017000805A1 publication Critical patent/WO2017000805A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/36Accompaniment arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of lighting equipment technology, and in particular, to a method and system for lighting interaction with a specific music.
  • the present application provides a method for interacting with a specific music, including the steps:
  • S3 Debug the spectral file, and add an index file to the spectral file, the index file includes: a song title, and/or a singer, and/or a spectral style, and/or a spectral creator information;
  • the music lighting rhythm device receives the query result, and drives and lights the LED lamp bead in the lighting device.
  • the step S5 includes the following steps:
  • S51 Start the music lighting rhythm device, and send inquiry information to the cloud storage
  • the cloud storage comprises an index storage of spectra and a file storage of spectra, the index storage of the spectra being used for The index file is stored, and the file storage of the spectrum is used to store the spectral file.
  • the index storage of the spectrum uses a Redis database.
  • the spectral file address is a local address
  • the spectral file is read by the Python language open method, and when the spectral file address is a remote address, according to the URL address protocol, the selection is different.
  • the client reads the spectral file corresponding to the spectral file address.
  • the spectrum file and the index file are transmitted to the cloud storage by using HTTP or HTTPS or a private TCP protocol.
  • the step S1 includes the following steps:
  • S13 Generate a code file according to the key frame node, where the code file is a binary file.
  • the key frame node is used to represent the hue, brightness and contrast of the light of the LED bead at the current moment of the LED lamp axis where the key frame node is located.
  • the step S6 includes the following steps:
  • S61 acquiring environmental information and external input information, obtaining a rhythm parameter after processing the information, and inputting the rhythm parameter to the rhythm algorithm configuration unit;
  • the spectral mixing unit receives the melody spectrum transmitted by the rhythm algorithm configuration unit, and mixes with the rhythm spectrum to obtain a rhythm driving signal;
  • the spectral mixing unit receives the query result from a user input, and mixes with the rhythm spectrum to obtain a rhythm driving signal;
  • the light driving unit receives the rhythm driving signal, and drives the LED lamp bead to be illuminated.
  • the present invention also provides a method for a light to interact with a specific music according to a specific music interaction system, characterized in that it comprises
  • the music light editing device combines the music to debug the lighting effect and obtain the corresponding code file
  • a light spectrum writer connected to the music light editing device, and generating a spectrum file according to the code file edited by the music light editing device;
  • An index adding device connecting the lamp spectral writer, debugging the spectral file, and adding an index file to the spectral file;
  • a transmission device connected to the index adding device, transmitting the spectrum file and the index file to the cloud storage In storage
  • a music lighting rhythm device sending the query information to the cloud storage to obtain the query result
  • a lighting device connecting the music light editing device and the music lighting rhythm device, the lighting device comprising the LED lamp bead, the music lighting rhythm device receiving the query result, driving and lighting the lighting device The LED lamp bead.
  • the music light editing device comprises:
  • a receiving unit connected to the lighting device, for receiving an editing instruction
  • An editing unit configured to connect the receiving unit, configured to set a corresponding key frame node at a corresponding moment of the corresponding LED lamp axis according to the editing instruction;
  • a code file generating unit connected to the receiving unit and the editing unit, configured to generate a code file for all the key frame nodes included in the editing unit;
  • the music light rhythm device includes:
  • a scene collection unit configured to collect the environment information and the external input information
  • the rhythm algorithm configuration unit is connected to the scene collection unit, receives the rhythm parameter, and configures specific algorithm parameters according to the rhythm parameter, and automatically generates a melody spectrum;
  • a digital audio extraction unit connected to the music player, for extracting a play stream of the music player, thereby obtaining the digital audio signal information
  • a rhythm algorithm module is connected to the digital audio extraction unit and the rhythm algorithm configuration unit, and processes the digital audio signal information according to the algorithm parameter to obtain a rhythm spectrum;
  • a spectral mixing unit connected to the rhythm algorithm configuration unit and the rhythm algorithm module, mixing the melody spectrum or the query result with the rhythm spectrum to obtain the rhythm driving signal;
  • a light driving unit connected to the spectral mixing unit and the LED lamp bead, and driving the LED bead to be illuminated according to the rhythm driving signal.
  • the patent application describes a method and system for interacting with a specific music, and the beneficial effects thereof are: a method for interacting with a specific music, so that the user can Each music is written into a spectrum, and the prepared spectral file is placed in the cloud storage, thereby realizing the possibility of opening the spectrum to other users; the music device can bring out the expected lighting effect through the spectrum; music The lighting law device can automatically control the lighting device according to factors such as music and environment; the user can also call the corresponding spectral file from the cloud storage, that is, the user obtains the corresponding query result from the cloud storage by querying the information, and passes the result to the value. The music lights the rhythm to control the lighting equipment.
  • FIG. 1 is a flow chart 1 of a method for interacting with a specific music according to the present invention
  • FIG. 2 is a flow chart 2 of a method for interacting with a specific music according to the present invention
  • FIG. 3 is a flow chart 3 of a method for interacting with a specific music according to the present invention.
  • FIG. 4 is a schematic structural view 1 of a lighting interactive system with a specific music according to the present invention.
  • FIG. 5 is a second schematic structural diagram of a lighting interactive system according to the present invention.
  • a method of interacting with specific music including steps:
  • S3 Debug the spectral file, and add an index file to the spectral file, where the index file includes: a song title, a singer, a spectral style, and a spectrum creator information;
  • the music light rhythm device 5 receives the query result, drives and lights the lighting device 6.
  • the method specifically includes the following steps:
  • S12 setting, according to the editing instruction or the control instruction, a corresponding key frame node at a corresponding moment of a corresponding LED lamp axis, where the key frame node indicates the current moment of the LED lamp axis where the key frame node is located Hue, brightness and contrast of LED bead lights;
  • S13 Generate a code file according to the key frame node, where the code file is a binary file.
  • the step S12 further includes deleting the key frame node.
  • the lighting device 6 includes an LED lamp bead.
  • the LED lamp axis has a one-to-one correspondence with the LED lamp bead.
  • Each LED lamp axis represents a light change process of an LED lamp bead along a preset time axis.
  • the two ends of the LED lamp axis are respectively preliminarily provided with initial frame data and end frame data, and the hue, brightness and contrast of the initial frame data and the end frame data are the same.
  • the inter-frame data is used to represent the hue, brightness, and contrast of the light of the LED bead at the current moment of the LED lamp axis.
  • the cloud storage includes: index storage of spectra and file storage of spectra.
  • the index storage of the spectrum is used to store the index file, so as to quickly find the location of the spectrum file. Therefore, the index storage of the spectrum can use the currently popular Redis database, and the Redis database is a Key-Value, that is, a key value. Store the database. Where Key is the value of the index and Value is the value of the specific address of the spectrum.
  • the storage format of the spectral address can be referred to the URL (Global Resource Locator) address. Since the spectral file is relatively large, the spectral file can be stored directly in the file storage of the spectrum in the form of text. In order to improve the reading ability, the file storage of the spectrum can be an SSD, and the SSD is a solid state hard disk, which has better read and write speed than the mechanical hard disk SSD.
  • the step S5 specifically includes the following steps:
  • the music light rhythm device 5 is activated, and the user sends the query information to the cloud storage through the music light rhythm device 5;
  • the user's query information is converted into the queried index, and the Rython client of Redis is used to obtain the spectral file address (ie, the Python value in Redis) through the index file (ie, the Key value in Redis). .
  • the content of the spectral file is then read by the spectral file address.
  • the spectral file address is a local address
  • the local file is directly read by the Python language open method;
  • the spectral file address is a remote address, according to the URL address protocol, a different client is selected to read the spectral file corresponding to the address.
  • the search protocol for the spectral file uses the HTTP protocol, the HTTP client is used, and if the FTP protocol is used, the FTP client is used. Both clients can be found in the Python package.
  • the step S6 includes the following steps:
  • the spectrum mixing unit 56 receives the melody spectrum transmitted by the rhythm algorithm configuration unit 52, and mixes with the rhythm spectrum to obtain a rhythm driving signal;
  • S67 the spectrum mixing unit 56 receives the query result from the user input, and mixes with the rhythm spectrum to obtain a rhythm driving signal;
  • the light driving unit 57 receives the rhythm driving signal, and drives and lights the LED lamp bead to obtain a lighting effect.
  • a method for interacting with a specific music firstly using the music lighting editing device 1 and the lighting device 6 capable of debugging, and debugging the lighting effect with the music, and using the light spectrum writer 2 to generate a spectral file according to the lighting effect.
  • An index file is generated corresponding to the spectral file, and the spectral file and the index file are placed in cloud storage.
  • the music lighting rhythm device 5 is activated to check whether there is a query result from the user, and if so, the rhythm driving information is obtained according to the query result, thereby driving the lighting bead to obtain a lighting effect.
  • the embodiment provides a lighting interaction system with a specific music.
  • the lighting is associated with a particular music interaction system, including:
  • the music light editing device 1 cooperates with the lighting device 6 capable of debugging, and combines the music to debug the lighting effect and obtain the corresponding code file;
  • An index adding device 3 connected to the lamp spectral writer 2, debugs the spectral file, and adds an index file to the spectral file, the index file including: a song title, and/or a singer, and/or a spectral style, and / or spectrum creator information;
  • the transmission device 4 is connected to the index adding device 3, and transmits the spectrum file and the index file to the cloud storage;
  • the user sends query information to the cloud storage through the music light rhythm device 5, and obtains a query result;
  • a lighting device 6, connecting the music light editing device 1 and the music light rhythm device 5, comprising an LED lamp bead, the music light rhythm device 5 receiving the query result, driving and lighting the light device 6 LED lamp beads.
  • the music light editing device 1 includes:
  • the code file generating unit 13 is connected to the receiving unit 11 and the editing unit 12 for generating a code file for all the key frame nodes included in the editing unit 12 in accordance with the editing instruction.
  • the music light rhythm device 5 includes:
  • the rhythm algorithm configuration unit 52 is connected to the scene collection unit 51, receives the rhythm parameter, configures specific algorithm parameters according to the rhythm parameter, and automatically generates a melody spectrum;
  • a digital audio extracting unit 54 connected to the music player 53, for extracting a play stream of the music player 53, thereby obtaining digital audio signal information
  • the rhythm algorithm unit 55 is connected to the digital audio extraction module and the rhythm algorithm configuration unit 52, and performs fast Fourier transform on the digital audio signal information according to the algorithm parameter to obtain information in different frequency regions of the current music. And determine the rhythm spectrum of the rhythm according to the number of rhythmic lights;
  • a spectral mixing unit 56 connected to the rhythm algorithm configuration unit 52 and the rhythm algorithm module, mixing the melody spectrum and the rhythm spectrum to obtain a rhythm driving signal;
  • the light driving unit 57 is connected to the spectrum mixing unit 56 and the lamp bead, and drives the lamp bead to be illuminated according to the rhythm driving signal to obtain a lighting effect.
  • the spectral mixing unit 56 also receives melody spectra from the cloud or user and preferentially receives melody spectra from the cloud or user input.
  • the spectrum mixing unit 56 after obtaining the melody spectrum and the rhythm spectrum, mixes the two, that is, multiplies the number representing the rhythm spectrum into a number representing the melody spectrum to obtain a brand new three.
  • the invention provides a lighting and specific music interaction system, which utilizes the music lighting editing device 1 to enable the user to write a spectrum for each piece of music by himself, and put the prepared spectral file into the cloud storage to realize the spectrum. Open to other users.
  • the music device is capable of recalling the desired lighting effect through the spectrum.
  • the music light rhythm device 5 in addition to enabling the user to retrieve the spectrum desired by the user from the cloud storage, the spectral melody can be automatically generated according to the user's preference, the surrounding environment, and the type of music.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

一种灯光随特定音乐互动的方法及***,其中方法包括步骤:利用音乐灯光编辑装置(1)和能够调试的灯光设备(6),配合音乐调试出灯光效果并获得相应代码文件(S1);利用灯光谱写器(2)并根据所述代码文件生成光谱文件(S2);调试所述光谱文件,为所述光谱文件加上索引文件(S3);将所述光谱文件以及所述索引文件传输到云存储中(S4);启动所述音乐灯光律动装置(5),向所述云存储发出查询信息,获取查询结果(S5);所述音乐灯光律动装置(5)接收所述查询结果,驱动并点亮所述灯光设备(6)中的LED灯珠(S6)。该方法及***使得用户可以自行地对每一首音乐编写光谱,将编写好的光谱文件放入云存储中,实现了将所述光谱开放给其他用户的可能。

Description

一种灯光随特定音乐互动的方法及*** 技术领域
本发明涉及灯光设备技术领域,尤其涉及一种灯光随特定音乐互动的方法及***。
背景技术
随着科技的发展,单纯的听觉上的享受已经很难满足人们日益增长的需求。时下,越来越多的音乐设备都会从视觉上寄予用户更多的体验,为用户在听音乐的过程中增加更多的现场氛围。但是,大部分的音乐灯光互动设备都是通过***既定的方式对灯光效果进行控制。比如,通过音乐的节奏,亦或是通过音乐的风格和音律进行灯光颜色和亮度的调节。但是,这种通过预先设置好的方式,很难让音乐与灯光结合达到最优的效果,同时也会可能出现非常糟糕的体验,大大降低现场的气氛。由于庞大的音乐基数,音乐设备不可能为每一首音乐提供一个完美的光谱,即使为每个音乐提供了光谱,这个光谱也不一定被用户所接受。同时,目前的很多灯光设备6并没有提供相应的开放式接口,用户即使有想法也没有途径去实现自己想要的灯光效果。
发明内容
针对上述技术问题,本申请提供了一种灯光随特定音乐互动的方法,包括步骤:
S1:利用音乐灯光编辑装置和能够调试的灯光设备,配合音乐调试出灯光效果并获得相应代码文件;
S2:利用灯光谱写器并根据所述代码文件生成光谱文件;
S3:调试所述光谱文件,为所述光谱文件加上索引文件,所述索引文件包括:歌名、和/或歌手、和/或光谱风格、和/或光谱创作人信息;
S4:将所述光谱文件以及所述索引文件传输到云存储中;
S5:启动所述音乐灯光律动装置,向所述云存储发出查询信息,获取查询结果;
S6:所述音乐灯光律动装置接收所述查询结果,驱动并点亮所述灯光设备中的LED灯珠。
较佳的,所述步骤S5包括步骤:
S51:启动所述音乐灯光律动装置,向所述云存储发出查询信息;
S52:将所述查询信息转换成为查询索引;
S53:通过所述索引文件获得光谱文件地址;
S54:通过所述光谱文件地址读取所述光谱文件的内容,即获取查询结果。
较佳的,所述云存储包括光谱的索引存储和光谱的文件存储,所述光谱的索引存储用于 存储所述索引文件,所述光谱的文件存储用于存储所述光谱文件。
较佳的,所述光谱的索引存储使用Redis数据库。
较佳的,在所述步骤S54中,当所述光谱文件地址为本地地址时,通过Python语言open方法读取所述光谱文件,当光谱文件地址为远程地址时,根据URL地址协议,选择不同的客户端来读取所述光谱文件地址对应的所述光谱文件。
较佳的,所述光谱文件和所述索引文件通过HTTP或HTTPS或私有TCP协议传输到所述云存储中。
较佳的,所述步骤S1包括步骤:
S11:接收编辑指令;
S12:根据所述编辑指令在相应的LED灯轴线的相应时刻设置相应的关键帧节点;
S13:根据所述关键帧节点产生一代码文件,所述代码文件为二进制文件。
较佳的,所述关键帧节点用于表示所述关键帧节点所在的所述LED灯轴线的当前时刻的所述LED灯珠的灯光的色相、亮度和对比度。
较佳的,所述步骤S6包括步骤:
S61:获取环境信息和外界输入信息,对这些信息处理后获得律动参数,将所述律动参数输入至律动算法配置单元;
S62:根据所述律动参数配置算法参数,并自动生成所述旋律谱;
S63:从音乐播放器53中提取播放流,获得数字音频信号信息;
S64:根据所述算法参数对所述数字音频信号信息进行处理,获得节奏谱;
S65:判断光谱混合单元中是否有来自用户输入的所述查询结果,如果没有,执行S66,否则执行S67;
S66:所述光谱混合单元接收所述律动算法配置单元传递来的所述旋律谱,并与所述节奏谱进行混合,获得律动驱动信号;
S67:所述光谱混合单元接收来自用户输入的所述查询结果,并与所述节奏谱进行混合,获得律动驱动信号;
S68:所述灯光驱动单元接收所述律动驱动信号,驱动点亮所述LED灯珠。
本发明还提供了一种灯光随特定音乐互动***,适用于所述的灯光随特定音乐互动的方法,其特征在于,包括
音乐灯光编辑装置,结合音乐调试出灯光效果并获得相应的所述代码文件;
灯光谱写器,连接所述音乐灯光编辑装置,根据所述音乐灯光编辑装置编辑出的所述代码文件生成光谱文件;
索引添加装置,连接所述灯光谱写器,调试所述光谱文件,为所述光谱文件加上索引文件;
传输装置,连接所述索引添加装置,将所述光谱文件以及所述索引文件传输到所述云存 储中;
音乐灯光律动装置,向所述云存储发出所述查询信息,获取所述查询结果;
灯光设备,连接所述音乐灯光编辑装置和所述音乐灯光律动装置,所述灯光设备包括所述LED灯珠,所述音乐灯光律动装置接收所述查询结果,驱动并点亮所述灯光设备中的所述LED灯珠。
较佳的,所述音乐灯光编辑装置包括:
接收单元,连接所述灯光设备,用于接收编辑指令;
编辑单元,连接接收单元,用于根据所述编辑指令在相应的所述LED灯轴线的相应时刻设置相应的所述关键帧节点;
代码文件生成单元,连接接收单元和编辑单元,用于将编辑单元包括的所有所述关键帧节点生成一代码文件;以及
所述音乐灯光律动装置包括:
场景采集单元,用于采集所述环境信息和所述外界输入信息;
律动算法配置单元,与所述场景采集单元相连,接收所述律动参数,并根据所述律动参数配置具体的算法参数,并自动生成旋律谱;
音乐播放器,用以播放音频数据信号;
数字音频提取单元,与所述音乐播放器相连,用于提取所述音乐播放器的播放流,从而获得所述数字音频信号信息;
律动算法模块,与所述数字音频提取单元和所述律动算法配置单元相连,根据所述算法参数对所述数字音频信号信息进行处理,获得节奏谱;
光谱混合单元,与所述律动算法配置单元和所述律动算法模块相连,将所述旋律谱或所述查询结果与所述节奏谱进行混合,获得所述律动驱动信号;
灯光驱动单元,与所述光谱混合单元以及所述LED灯珠相连,并根据所述律动驱动信号驱动点亮所述LED灯珠。
综上所述,由于采用了上述技术方案,本专利申请记载了一种灯光随特定音乐互动的方法及***,其有益效果有:一种灯光随特定音乐互动的方法,使得用户可以自行的对每一首音乐编写光谱,将编写好的光谱文件放入云存储中,实现了将所述光谱开放给其他用户的可能;所述音乐设备通过所述光谱,能够调出预期的灯光效果;音乐灯光律装置能够根据音乐和环境等因素自动控制灯光设备;用户还可以从云存储中调用相应的光谱文件,即用户通过查询信息,从云存储中获取相应的查询结果,并将该结果传递值音乐灯光律动装置,从而控制灯光设备。
附图说明
图1是本发明一种灯光随特定音乐互动的方法流程图一;
图2是本发明一种灯光随特定音乐互动的方法流程图二;
图3是本发明一种灯光随特定音乐互动的方法流程图三;
图4是本发明一种灯光随特定音乐互动***的结构示意图一;
图5是本发明一种灯光随特定音乐互动***的结构示意图二。
具体实施方式
下面结合附图对本发明的具体实施方式作进一步的说明:
实施例一
一种灯光随特定音乐互动的方法,包括步骤:
S1:利用音乐灯光编辑装置1和能够调试的灯光设备6,配合音乐调试出灯光效果,并产生相应代码文件;
S2:利用灯光谱写器2根据所述灯光效果生成光谱文件,所述光谱文件能够被音乐灯光律动装置5所读取并识别;
S3:调试所述光谱文件,为所述光谱文件加上索引文件,所述索引文件包括:歌名、歌手、光谱风格以及光谱创作人信息等;
S4:将所述光谱文件以及所述索引文件通过HTTP/HTTPS或者是私有TCP协议传输到云存储中;
S5:启动所述音乐灯光律动装置5,用户通过所述音乐灯光律动装置5向所述云存储发出查询信息,获取查询结果;
S6:所述音乐灯光律动装置5接收所述查询结果,驱动并点亮所述灯光设备6。
其中,在所述步骤S1中,具体包括步骤:
S11:接收用户发送的编辑指令或者控制指令;
S12:根据所述编辑指令或者控制指令在相应的LED灯轴线的相应时刻设置相应的关键帧节点,所述关键帧节点表示所述关键帧节点所在的所述LED灯轴线的当前时刻的所述LED灯珠灯光的色相、亮度和对比度;
S13:根据所述关键帧节点产生一代码文件,所述代码文件为二进制文件。
其中,在所述步骤S12中,还包括对所述关键帧节点进行删除。所述灯光设备6包括LED灯珠,所述LED灯轴线与所述LED灯珠一一对应,每条LED灯轴线表示一LED灯珠随预设时间轴的灯光变化过程。所述LED灯轴线的两端分别预设有初始帧数据和终止帧数据,所述初始帧数据和终止帧数据的色相、亮度和对比度均相同。设置于所述LED灯轴线的所述关键帧节点与相邻的所述关键帧节点或初始帧数据或终止帧数据之间根据相应的时间间隔及预设函数曲线生成相应的间补帧数据,所述间补帧数据用于表示所在的所述LED灯轴线的当前时刻的所述LED灯珠的灯光的色相、亮度和对比度。
所述云存储包括:光谱的索引存储和光谱的文件存储。其中,光谱的索引存储用于存储索引文件,是为了快速找到光谱文件的位置,因此,光谱的索引存储可以使用当前比较流行的Redis数据库,所述Redis数据库为一种Key-Value,即键值存储数据库。其中Key为索引的值,Value为光谱具体地址的值。光谱地址的存储格式可参考URL(全球资源定位符)地址。由于光谱文件相对比较大,因此光谱文件可以直接以文本的形式存放在光谱的文件存储中。为了能够提高读取能力,光谱的文件存储可以为SSD,所述SSD为固态硬盘,相对于机械硬盘SSD具有更好的读写速度。
所述步骤S5,具体包括步骤:
S51:启动所述音乐灯光律动装置5,用户通过所述音乐灯光律动装置5向所述云存储发出查询信息;
S52:将用户的查询信息转换成为查询索引;
S53:通过所述索引文件获得所述光谱文件地址;
S54:通过所述光谱文件地址读取所述光谱文件的内容,即获取查询结果。
首先,将用户的查询信息转换成为所诉后查询索引,结合Redis的Rython客户端,通过所述索引文件(即Redis中的Key值),获得所述光谱文件地址(即Redis中的Python值)。然后通过所述光谱文件地址读取光谱文件的内容。当光谱文件地址为本地地址时,直接通过Python语言open方法读取本地文件;当光谱文件地址为远程地址时,根据URL地址协议,选择不同的客户端来读取该地址所对应的光谱文件。当对光谱文件的搜索协议采用HTTP协议时,使用HTTP客户端,如果采用FTP协议时,使用FTP客户端。这两种客户端均可以在Python的软件包中找到。
所述步骤S6,具体包括步骤:
S61:获取所述环境信息和所述外界输入信息,对这些信息处理后获得所述律动参数,将所述律动参数输入至所述律动算法配置单元52;
S62:根据所述律动参数配置所述算法参数,并自动生成所述旋律谱;
S63:提取所述播放流,获得所述数字音频信号信息;
S64:根据所述算法参数对所述数字音频信号信息进行处理,获得所述节奏谱;
S65:判断所述光谱混合单元56中是否有来自用户输入的所述查询结果,如果没有,执行S66,否则执行S67;
S66:所述光谱混合单元56接收所述律动算法配置单元52传递来的所述旋律谱,并与所述节奏谱进行混合,获得律动驱动信号;
S67:所述光谱混合单元56接收来自用户输入的所述查询结果,并与所述节奏谱进行混合,获得律动驱动信号;
S68:所述灯光驱动单元57接收所述律动驱动信号,驱动点亮所述LED灯珠,获得灯光效果。
一种灯光随特定音乐互动的方法,首先利用音乐灯光编辑装置1和能够调试的灯光设备6,配合音乐调试出灯光效果,并利用灯光谱写器2根据所述灯光效果生成光谱文件。对应所述光谱文件产生索引文件,并将所述光谱文件和所述索引文件放入云存储。启动所述音乐灯光律动装置5,检查是否有来自用户的查询结果,如果有,根据查询结果获取律动驱动信息,从而驱动点亮灯珠,获得灯光效果。
本发明提供了一种灯光随特定音乐互动的方法,使得用户可以自行的对每一首音乐编写光谱,将编写好的光谱文件放入云存储中,实现了将所述光谱开放给其他用户的可能。所述音乐设备通过所述光谱,能够调出预期的灯光效果。
实施例二
根据实施例一提供的一种灯光随特定音乐互动的方法,本实施例提供了一种灯光随特定音乐互动***。
所述灯光随特定音乐互动***,包括:
音乐灯光编辑装置1,配合能够进行调试的灯光设备6,并结合音乐调试出灯光效果并获得相应的代码文件;
灯光谱写器2,连接所述音乐灯光编辑装置1,根据所述音乐灯光编辑装置1编辑出的所述代码文件生成光谱文件;
索引添加装置3,连接所述灯光谱写器2,调试所述光谱文件,为所述光谱文件加上索引文件,所述索引文件包括:歌名、和/或歌手、和/或光谱风格、和/或光谱创作人信息;
传输装置4,连接所述索引添加装置3,将所述光谱文件以及所述索引文件传输到云存储中;
音乐灯光律动装置5,用户通过所述音乐灯光律动装置5向所述云存储发出查询信息,获取查询结果;
灯光设备6,连接所述音乐灯光编辑装置1和所述音乐灯光律动装置5,包括LED灯珠,所述音乐灯光律动装置5接收所述查询结果,驱动并点亮所述灯光设备6中的LED灯珠。
工作时,用户通过音乐灯光编辑装置1和灯光设备6,给相应的音乐调试出灯光效果并获取相应的代码文件。然后,灯光谱写器2将代码文件生成光谱文件,并通过索引添加装置3将光谱文件添加索引文件,最后通过传输装置将光谱文件以及索引文件传输至云存储中。当用户播放音乐时,启动音乐灯光律动装置5,音乐灯光律装置能够根据音乐和环境等因素自动控制灯光设备6,但是用户还可以从云存储中调用相应的光谱文件,即用户通过查询信息,从云存储中获取相应的查询结果,并将该结果传递值音乐灯光律动装置,从而控制灯光设备6。
其中,所述音乐灯光编辑装置1包括:
接收单元11,用于接收用户发送的编辑指令;
编辑单元12,连接接收单元11,包括一预设模板,模板包括复数个LED灯轴线,LED 灯轴线与LED灯珠一一对应,每条LED灯轴线表示一LED灯珠随预设时间轴的灯光变化过程,编辑单元12用于根据编辑指令在相应的LED灯轴线的相应时刻设置相应的关键帧节点;
代码文件生成单元13,连接接收单元11和编辑单元12,用于根据编辑指令将编辑单元12包括的所有关键帧节点生成一代码文件。
所述音乐灯光律动装置5包括:
场景采集单元51,所述场景采集单元51用于采集环境信息和外界输入信息。所述场景采集单元51与温度传感器、摄像头相连接,用于接收环境的温度信息和视频信息,所述温度信息和所述视频信息构成所述环境信息。此外,所述场景采集单元51还与音乐播放器53连接,用于获取音乐类型信息,以及通过云端大数据分析获取用户的喜好信息,所述场景采集单元51还设置有用户帐号,用户通过登录帐号自行配置文件来配置自己所喜欢的律动方式。所述外界输入信息包括音乐类型信息、喜好信息以及所述配置文件。根据所述环境信息和所述外界输入信息,所述场景采集单元51获取律动参数;
律动算法配置单元52,与所述场景采集单元51相连,接收所述律动参数,根据所述律动参数配置具体的算法参数,并自动生成旋律谱;
音乐播放器53,用以播放音频数据信号;
数字音频提取单元54,与所述音乐播放器53相连,用于提取所述音乐播放器53的播放流,从而获得数字音频信号信息;
律动算法单元55,与所述数字音频提取模块和所述律动算法配置单元52相连接,根据所述算法参数对所述数字音频信号信息进行快速傅立叶变换,获得当前音乐不同频率区域内的信息,并根据律动灯光数目决定律动的节奏谱;
光谱混合单元56,与所述律动算法配置单元52和所述律动算法模块相连,对所述旋律谱和所述节奏谱进行混合,获得律动驱动信号;
灯光驱动单元57,与所述光谱混合单元56以及灯珠相连,并根据所述律动驱动信号驱动点亮所述灯珠,获得灯光效果。
所述光谱混合单元56还接收来自云端或者用户的旋律谱,且优先接收来自云端或者用户输入的旋律谱。所述光谱混合单元56在获得所述旋律谱和所述节奏谱之后,对两者进行混合,即将代表所述节奏谱的数字乘到代表所述旋律谱的数字中,获得一组全新的三个一组的数组,这些数组即为所述律动驱动信号。
本发明提供了一种灯光随特定音乐互动***,利用音乐灯光编辑装置1使得用户可以自行的对每一首音乐编写光谱,将编写好的光谱文件放入云存储中,实现了将所述光谱开放给其他用户的可能。所述音乐设备通过所述光谱,能够调出预期的灯光效果。利用所述音乐灯光律动装置5,除了能够让用户从云存储中调取自己想要的光谱,还能够根据用户喜好、周围环境和音乐类型等自动产生光谱旋律。
以上所述仅为本发明较佳的实施例,并非因此限制本发明的实施方式及保护范围,对于本领域技术人员而言,应当能够意识到凡运用本发明说明书及图示内容所做出的等同替换和显而易见的变化所得到的方案,均应当包含在本发明的保护范围内。

Claims (12)

  1. 一种灯光随特定音乐互动的方法,其特征在于,包括步骤:
    S1:利用音乐灯光编辑装置和能够调试的灯光设备,配合音乐调试出灯光效果并获得相应代码文件;
    S2:利用灯光谱写器并根据所述代码文件生成光谱文件;
    S3:调试所述光谱文件,为所述光谱文件加上索引文件,所述索引文件包括:歌名、和/或歌手、和/或光谱风格、和/或光谱创作人信息;
    S4:将所述光谱文件以及所述索引文件传输到云存储中;
    S5:启动所述音乐灯光律动装置,向所述云存储发出查询信息,获取查询结果;
    S6:所述音乐灯光律动装置接收所述查询结果,驱动并点亮所述灯光设备中的LED灯珠,使得所述LED灯珠按照一定规律进行闪烁。
  2. 根据权利要求1所述的灯光随特定音乐互动的方法,其特征在于,所述步骤S5包括步骤:
    S51:启动所述音乐灯光律动装置,向所述云存储发出查询信息;
    S52:将所述查询信息转换成为查询索引;
    S53:通过所述索引文件获得光谱文件地址;
    S54:通过所述光谱文件地址读取所述光谱文件的内容,即获取查询结果。
  3. 根据权利要求2所述的灯光随特定音乐互动的方法,其特征在于,所述云存储包括光谱的索引存储和光谱的文件存储,所述光谱的索引存储用于存储所述索引文件,所述光谱的文件存储用于存储所述光谱文件。
  4. 根据权利要求3所述的灯光随特定音乐互动的方法,其特征在于,所述光谱的索引存储使用Redis数据库;
  5. 根据权利要求3所述的灯光随特定音乐互动的方法,其特征在于,在所述步骤S54中,当所述光谱文件地址为本地地址时,通过Python语言open方法读取所述光谱文件,当光谱文件地址为远程地址时,根据URL地址协议,选择不同的客户端来读取所述光谱文件地址对应的所述光谱文件。
  6. 根据权利要求5所述的灯光随特定音乐互动的方法,其特征在于,所述光谱文件和所述索引文件通过HTTP或HTTPS或私有TCP协议传输到所述云存储中。
  7. 根据权利要求1所述的灯光随特定音乐互动的方法,其特征在于,所述步骤S1包括步骤:
    S11:接收编辑指令;
    S12:根据所述编辑指令在相应的LED灯轴线的相应时刻设置相应的关键帧节点;
    S13:根据所述关键帧节点产生一代码文件,所述代码文件为二进制文件。
  8. 根据权利要求7所述的灯光随特定音乐互动的方法,其特征在于,所述关键帧节点用于表示所述关键帧节点所在的所述LED灯轴线的当前时刻的所述LED灯珠的灯光的色相、亮度和对比度。
  9. 根据权利要求1所述的灯光随特定音乐互动的方法,其特征在于,所述步骤S6包括步骤:
    S61:获取环境信息和外界输入信息,对这些信息处理后获得律动参数,将所述律动参数输入至律动算法配置单元;
    S62:根据所述律动参数配置算法参数,并自动生成所述旋律谱;
    S63:从音乐播放器中提取播放流,获得数字音频信号信息;
    S64:根据所述算法参数对所述数字音频信号信息进行处理,获得节奏谱;
    S65:判断光谱混合单元中是否有来自用户输入的所述查询结果,如果没有,执行S66,否则执行S67;
    S66:所述光谱混合单元接收所述律动算法配置单元传递来的所述旋律谱,并与所述节奏谱进行混合,获得律动驱动信号;
    S67:所述光谱混合单元接收来自用户输入的所述查询结果,并与所述节奏谱进行混合,获得律动驱动信号;
    S68:所述灯光驱动单元接收所述律动驱动信号,驱动点亮所述LED灯珠。
  10. 一种灯光随特定音乐互动***,其特征在于,包括
    音乐灯光编辑装置,用以结合音乐调试出灯光效果并获得相应的代码文件;
    灯光谱写器,连接所述音乐灯光编辑装置,用以根据所述音乐灯光编辑装置编辑出的所述代码文件生成光谱文件;
    索引添加装置,连接所述灯光谱写器,用以调试所述光谱文件,并为所述光谱文件加上索引文件;
    传输装置,连接所述索引添加装置,用以将所述光谱文件以及所述索引文件传输到所述云存储中;
    音乐灯光律动装置,用以向所述云存储发出查询信息,并获取查询结果;
    灯光设备,连接所述音乐灯光编辑装置和所述音乐灯光律动装置,所述灯光设备包括LED灯珠,所述音乐灯光律动装置接收所述查询结果,驱动并点亮所述灯光设备中的所述LED灯珠,使得所述LED灯珠按照一定规律进行闪烁。
  11. 根据权利要求10所述的灯光随特定音乐互动***,其特征在于,所述音乐灯光编辑装置包括:
    接收单元,连接所述灯光设备,用于接收编辑指令;
    编辑单元,连接接收单元,用于根据所述编辑指令在相应的LED灯轴线的相应时刻设置相应的所述关键帧节点;
    代码文件生成单元,连接所述接收单元和所述编辑单元,用于将所述编辑单元包括的所有所述关键帧节点生成一所述代码文件。
  12. 根据权利要求11所述的灯光随特定音乐互动***,其特征在于,所述音乐灯光律动装置包括:
    场景采集单元,用于采集环境信息和外界输入信息;
    律动算法配置单元,与所述场景采集单元相连,用以接收律动参数,并根据所述律动参数配置具体的算法参数,并自动生成旋律谱;
    音乐播放器,用以播放音频数据信号;
    数字音频提取单元,与所述音乐播放器相连,用于提取所述音乐播放器的播放流,从而获得数字音频信号信息;
    律动算法模块,与所述数字音频提取单元和所述律动算法配置单元相连,用以根据所述算法参数对所述数字音频信号信息进行处理,获得节奏谱;
    光谱混合单元,与所述律动算法配置单元和所述律动算法模块相连,用以将所述旋律谱或所述查询结果与所述节奏谱进行混合,获得所述律动驱动信号;
    灯光驱动单元,与所述光谱混合单元以及所述LED灯珠相连,并根据所述律动驱动信号驱动点亮所述LED灯珠。
PCT/CN2016/086470 2015-06-30 2016-06-20 一种灯光随特定音乐互动的方法及*** WO2017000805A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510383576.5 2015-06-30
CN201510383576.5A CN106332394B (zh) 2015-06-30 2015-06-30 一种灯光随特定音乐互动的方法及***

Publications (1)

Publication Number Publication Date
WO2017000805A1 true WO2017000805A1 (zh) 2017-01-05

Family

ID=57607843

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086470 WO2017000805A1 (zh) 2015-06-30 2016-06-20 一种灯光随特定音乐互动的方法及***

Country Status (4)

Country Link
CN (1) CN106332394B (zh)
HK (1) HK1231668A1 (zh)
TW (1) TWI601132B (zh)
WO (1) WO2017000805A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111742620A (zh) * 2018-02-26 2020-10-02 昕诺飞控股有限公司 根据效果类型和/或用户偏好重新开始动态灯光效果
CN111918453A (zh) * 2020-08-18 2020-11-10 深圳市秀骑士科技有限公司 Led灯光场景控制***及其控制方法
CN112959938A (zh) * 2021-03-22 2021-06-15 一汽奔腾轿车有限公司 一种用于人车互动的汽车灯光律动控制方法

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107660036B (zh) * 2017-09-06 2019-12-24 咪咕音乐有限公司 一种灯光的控制方法、装置及存储介质
CN109640465A (zh) * 2018-11-07 2019-04-16 萤火虫(深圳)灯光科技有限公司 自动识别音乐的灯光控制方法、装置、设备及存储介质
CN111271807A (zh) * 2019-07-22 2020-06-12 宁波奥克斯电气股份有限公司 一种空调控制***、方法、空调器及介质
CN110582150B (zh) * 2019-09-03 2021-06-22 无锡金顺照明科技有限公司 环境灯光与音乐控制***和方法
CN110719665B (zh) * 2019-10-12 2022-06-28 浙江创意声光电科技有限公司 基于灯光控制***的脚本执行方法及装置
CN111601275B (zh) * 2020-04-08 2022-11-11 吉利汽车研究院(宁波)有限公司 一种多车同步律动控制方法、装置、设备及存储介质
CN112700758A (zh) * 2021-01-08 2021-04-23 吟飞科技(江苏)有限公司 基于灯光显示的打击乐垫控制器编辑方法
CN112954611A (zh) * 2021-01-25 2021-06-11 安徽华米信息科技有限公司 显示控制方法、可穿戴设备及存储介质
CN112967640B (zh) * 2021-02-01 2022-07-26 秦皇岛职业技术学院 一种基于美学用自跟踪型音乐律动展示装置
CN114954222A (zh) * 2022-05-12 2022-08-30 重庆长安汽车股份有限公司 一种基于soa架构的音乐灯光秀控制方法及***

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0676605A (ja) * 1992-08-25 1994-03-18 Bridgestone Corp サウンドライトシステム
CN1703129A (zh) * 2004-12-24 2005-11-30 北京中星微电子有限公司 一种随音乐变化的发光灯组装置
CN102438046A (zh) * 2011-12-09 2012-05-02 广州杰赛科技股份有限公司 一种基于云计算的卡拉ok点歌***及其点歌方法
CN103985379A (zh) * 2014-05-04 2014-08-13 苏州乐聚一堂电子科技有限公司 灯光特效卡拉ok手机点歌***
CN104053280A (zh) * 2014-06-12 2014-09-17 苏州乐聚一堂电子科技有限公司 歌曲自动识别灯光特效***

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202404901U (zh) * 2012-01-09 2012-08-29 陕西理工学院 基于mcs51单片机的汽车音响灯光控制器
CN202939973U (zh) * 2012-12-06 2013-05-15 重庆交通大学 基于51单片机的汽车音响灯光控制器
CN104239007B (zh) * 2013-06-13 2019-07-05 上海能感物联网有限公司 汉语自然人语音遥控电灯的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0676605A (ja) * 1992-08-25 1994-03-18 Bridgestone Corp サウンドライトシステム
CN1703129A (zh) * 2004-12-24 2005-11-30 北京中星微电子有限公司 一种随音乐变化的发光灯组装置
CN102438046A (zh) * 2011-12-09 2012-05-02 广州杰赛科技股份有限公司 一种基于云计算的卡拉ok点歌***及其点歌方法
CN103985379A (zh) * 2014-05-04 2014-08-13 苏州乐聚一堂电子科技有限公司 灯光特效卡拉ok手机点歌***
CN104053280A (zh) * 2014-06-12 2014-09-17 苏州乐聚一堂电子科技有限公司 歌曲自动识别灯光特效***

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111742620A (zh) * 2018-02-26 2020-10-02 昕诺飞控股有限公司 根据效果类型和/或用户偏好重新开始动态灯光效果
CN111918453A (zh) * 2020-08-18 2020-11-10 深圳市秀骑士科技有限公司 Led灯光场景控制***及其控制方法
CN112959938A (zh) * 2021-03-22 2021-06-15 一汽奔腾轿车有限公司 一种用于人车互动的汽车灯光律动控制方法

Also Published As

Publication number Publication date
CN106332394B (zh) 2019-03-26
TWI601132B (zh) 2017-10-01
TW201701276A (zh) 2017-01-01
CN106332394A (zh) 2017-01-11
HK1231668A1 (zh) 2017-12-22

Similar Documents

Publication Publication Date Title
WO2017000805A1 (zh) 一种灯光随特定音乐互动的方法及***
JP6736186B2 (ja) オーディオ・ファイルを生成するためのシステム及び方法
JP5055901B2 (ja) 携帯型再生装置、関連情報通知方法および関連情報通知プログラム
RU2008152777A (ru) Терминалы и способы связи для приоритизации воспроизведения распределенных файлов мультимедиа
CN101802920B (zh) 内容再现设备和内容再现方法
JP5166549B2 (ja) 照明雰囲気に関連付けられている音を自動的に生成するシステム及び方法
JP2019091014A (ja) マルチメディアを再生するための方法及び装置
KR20150144321A (ko) 음악세탁기 및 그 제어방법
WO2019114015A1 (zh) 一种机器人的演奏控制方法及机器人
CN107770628A (zh) 一种卡拉ok实现方法及***、智能家庭终端
CN109845249A (zh) 用外部信息同步midi文件的方法和***
JP2018507667A (ja) 分散されたライブパフォーマンスのスケジュールされた音声レコーディング、クラウドベースの音声コンテンツ編集、並びに音声トラック及び関連するメタデータのオンラインコンテンツ配信のためのシステム、コンテンツ編集サーバ、音声レコーディングスレーブデバイス、及びコンテンツ編集インターフェース
US20130077937A1 (en) Apparatus and method for producing remote streaming audiovisual montages
CN104822095A (zh) 复合节拍特效***及复合节拍特效处理方法
JP7095597B2 (ja) 再生装置、再生方法、プログラム、及び再生システム
Huber The Midi manual: A practical guide to Midi within Modern Music production
CN108806732B (zh) 一种基于人工智能的背景音乐处理方法以及电子设备
US9176610B1 (en) Audiovisual sampling for percussion-type instrument with crowd-sourced content sourcing and distribution
CN104822094A (zh) 复合节拍特效***及复合节拍特效处理方法
KR20110056131A (ko) 사용자 정의의 단어 학습 콘텐츠를 제공하는 단어 학습 시스템 및 그 단어 학습 방법
Marasco et al. Bendit_I/O: A System for Networked Performance of Circuit-Bent Devices.
KR102220216B1 (ko) 데이터 그룹재생 장치 및 그 시스템과 방법
KR20140022537A (ko) 비트에 동기하는 조명 제어 방법 및 장치
JP6013879B2 (ja) コラボレーション歌唱システム
Marasco Bendit_I/O: A System for Extending Mediated and Networked Performance Techniques to Circuit-Bent Devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16817169

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16817169

Country of ref document: EP

Kind code of ref document: A1