Butterchurn

Butterchurn 是 Milkdrop Visualizer 的一个 WebGL 实现。「Butterchurn is a WebGL implementation of the Milkdrop Visualizer」

Github星跟蹤圖

Butterchurn

Butterchurn is a WebGL implementation of the Milkdrop Visualizer

Try it out

Screenshot of Butterchurn

Usage

Installation

With yarn or npm installed, run

$ yarn add butterchurn butterchurn-presets
or
$ npm install butterchurn butterchurn-presets

Create a visualizer

import butterchurn from 'butterchurn';
import butterchurnPresets from 'butterchurn-presets';

// initialize audioContext and get canvas

const visualizer = butterchurn.createVisualizer(audioContext, canvas, {
  width: 800,
  height: 600
});

// get audioNode from audio source or microphone

visualizer.connectAudio(audioNode);

// load a preset

const presets = butterchurnPresets.getPresets();
const preset = presets['Flexi, martin + geiss - dedicated to the sherwin maxawow'];

visualizer.loadPreset(preset, 0.0); // 2nd argument is the number of seconds to blend presets

// resize visualizer

visualizer.setRendererSize(1600, 1200);

// render a frame

visualizer.render();

Browser Support

Butterchurn requires the browser support WebGL 2.

You can test for support using our minimal isSupported script:

import isButterchurnSupported from "butterchurn/lib/isSupported.min";

if (isButterchurnSupported()) {
  // Load and use butterchurn
}

Integrations

Thanks

License

This project is licensed under the MIT License - see the LICENSE file for details

主要指標

概覽
名稱與所有者jberg/butterchurn
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2018-04-22 05:35:19
推送於2024-03-18 10:55:12
最后一次提交2023-03-26 17:47:25
發布數0
用户参与
星數1.7k
關注者數26
派生數129
提交數189
已啟用問題?
問題數0
打開的問題數0
拉請求數17
打開的拉請求數4
關閉的拉請求數35
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?