All Projects → margox → Vudio.js

margox / Vudio.js

音频可视化展示模块

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vudio.js

Sincnet
SincNet is a neural architecture for efficiently processing raw audio samples.
Stars: ✭ 764 (+293.81%)
Mutual labels:  audio, waveform
Html5 audio visualizer
An audio spectrum visualizer built with HTML5 Audio API
Stars: ✭ 1,025 (+428.35%)
Mutual labels:  audio, visualizer
Waveform Playlist
Multitrack Web Audio editor and player with canvas waveform preview. Set cues, fades and shift multiple tracks in time. Record audio tracks or provide audio annotations. Export your mix to AudioBuffer or WAV! Project inspired by Audacity.
Stars: ✭ 919 (+373.71%)
Mutual labels:  audio, waveform
Monstercat Visualizer
A real time audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
Stars: ✭ 571 (+194.33%)
Mutual labels:  audio, visualizer
Soma Fm Player
This is a Vue.js web application for streaming radio stations from Somafm.com. This app uses the public SomaFM JSON channels API endpoint to pull in a list of stations and makes it easy to switch between stations. This app also uses Three.js and the HTML5 Web Audio Context API to sample audio data and create a visualizer effect for the selected station.
Stars: ✭ 86 (-55.67%)
Mutual labels:  audio, visualizer
Wavesurfer.js
Navigable waveform built on Web Audio and Canvas
Stars: ✭ 5,905 (+2943.81%)
Mutual labels:  audio, waveform
Fdwaveformview
Reads an audio file and displays the waveform
Stars: ✭ 997 (+413.92%)
Mutual labels:  audio, waveform
music visualizer
Shader viewer / music visualizer for Windows and Linux
Stars: ✭ 137 (-29.38%)
Mutual labels:  waveform, visualizer
Viwaveformview
Generate waveform view from audio data.
Stars: ✭ 76 (-60.82%)
Mutual labels:  audio, waveform
Fountain Of Colors
Music visualizer for Rainmeter
Stars: ✭ 65 (-66.49%)
Mutual labels:  audio, visualizer
Keyboardvisualizer
Audio visualizer and effects engine for RGB keyboards, mice, and accessories using the OpenRGB SDK. Supports Windows, Linux, and MacOS. Issue tracker on GitLab (https://gitlab.com/CalcProgrammer1/KeyboardVisualizer)
Stars: ✭ 458 (+136.08%)
Mutual labels:  audio, visualizer
Torch Audiomentations
Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning.
Stars: ✭ 164 (-15.46%)
Mutual labels:  audio, waveform
Audiowave Progressbar
Lightweight audiowave progressbar for Android
Stars: ✭ 380 (+95.88%)
Mutual labels:  audio, waveform
Audio Visualizer Android
🎵 [Android Library] A light-weight and easy-to-use Audio Visualizer for Android.
Stars: ✭ 581 (+199.48%)
Mutual labels:  audio, visualizer
Vue Audio Visual
VueJS audio visualization components
Stars: ✭ 355 (+82.99%)
Mutual labels:  audio, waveform
Blipkit
C library for creating the beautiful sound of old sound chips
Stars: ✭ 23 (-88.14%)
Mutual labels:  audio, waveform
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-91.24%)
Mutual labels:  waveform, visualizer
Keras Sincnet
Keras (tensorflow) implementation of SincNet (Mirco Ravanelli, Yoshua Bengio - https://github.com/mravanelli/SincNet)
Stars: ✭ 47 (-75.77%)
Mutual labels:  audio, waveform
Wfplayer
🌊 WFPlayer.js is an audio waveform generator
Stars: ✭ 124 (-36.08%)
Mutual labels:  audio, waveform
Waveform analysis
Functions and scripts for analyzing waveforms, primarily audio. This is currently somewhat disorganized and unfinished.
Stars: ✭ 193 (-0.52%)
Mutual labels:  audio, waveform

vudio.js

一个简单的音频数据可视化模块


概述:

  • 支持诸多样式调整
  • 动画效果基于Canvas和requestAnimationFrame,丝般顺滑
  • 仅供娱乐,开心就好

使用方法

模块式引入

# 使用npm安装此模块
npm i vudio.js --save
# 或者使用yarn安装此模块
yarn add vudio.js
import Vudio from 'vudio.js'

标签式引入

<script src="/path/to/vudio.js"></script>

实例化Vudio

var vudio = new Vudio(HTMLAudioElement | MediaStream, HTMLCanvasElement, [option]);
vudio.dance();

第一个参数用于指定音频源,可以是一个Audio标签,或者一个Audio对象,也可以是通过navigator.mediaDevices.getUserMedia获取到的音频MediaStream对象

第二个参数用于指定显示可视化内容的Canvas,

第三个参数用于指定显示效果的个性化配置

示例

在你的HTML文件中放入canvas和audio标签

<canvas width="256px" height="100px" id="canvas"></canvas>
<audio src="./path/to/audio.mp3" controls id="audio"></audio>

引入Vudio.js

<script src="path/to/vudio.js"></script>

注意,因为浏览器的同源策略,所以跨域情况下无法使用本模块(可在服务端进行控制)

开始搅基

var audioObj = document.querySelector('#audio');
var canvasObj = document.querySelector('#canvas');
var vudio = new Vudio(audioObj, canvasObj, {
    effect : 'waveform', // 当前只有'waveform'这一个效果,哈哈哈
    accuracy : 128, // 精度,实际表现为波形柱的个数,范围16-16348,必须为2的N次方
    width : 256, // canvas宽度,会覆盖canvas标签中定义的宽度
    height : 100, // canvas高度,会覆盖canvas标签中定义的高度
    waveform : {
        maxHeight : 80, // 最大波形高度
        minHeight : 1, // 最小波形高度
        spacing: 1, // 波形间隔
        color : '#f00', // 波形颜色,可以传入数组以生成渐变色
        shadowBlur : 0, // 阴影模糊半径
        shadowColor : '#f00', // 阴影颜色
        fadeSide : true, // 渐隐两端
        horizontalAlign : 'center', // 水平对齐方式,left/center/right
        verticalAlign: 'middle' // 垂直对齐方式 top/middle/bottom
    }
});

// 调用dance方法开始得瑟吧
vudio.dance();

// 也可随时停止得瑟
vudio.pause();

// 中途换个姿势得瑟也是可以的
vudio.setOption({
    waveform : {
        color : '#06f',
        verticalAlign: 'bottom'
    }
});

在线示例: http://margox.github.io/vudio.js/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].