Example 06 · Anything can be an instrument範例 06 · 什麼都能當樂器

Cylinder earthCylinder Earth

A 2020 voice-controlled WebGL sketch; mic bands or the built-in drum machine play it.2020 年用聲音控制的 WebGL 作品。低頻推動柱體,高頻讓旋轉閃爍,大鼓一下就換一組配色。

Try these three things試試這三件事

  1. Turn on 🎤 mic in the L1 panel and clap or sing: lows pump the towers, highs shimmer the spin.
  2. No microphone? The drum machine plays it: a kick turns the palette.
  3. Drag Pump or Density in the params panel to hear and see what each one does.
  1. 在 L1 面板打開 🎤 mic,拍手或唱歌:低頻推動柱體,高頻讓旋轉閃爍。
  2. 沒有麥克風?用鼓機彈它:大鼓一下就換一組配色。
  3. 在參數面板拖動 Pump 或 Density,看每一個參數做什麼。

Needs: Microphone.需要:麥克風。 No hardware? Use Drum machine.沒有硬體?用鼓機。

Read these lines讀這幾行

  • main.js:101–109 Mic bands and drum onsets reach the params, one route each.麥克風的頻段與鼓的起音,各自一條路由接到參數。
  • main.js:111 audio: 'mic' switches the analyzer on; drums: true brings the stand-in.audio: 'mic' 開啟分析器;drums: true 帶來替身。

In the docs文件裡: Microphone麥克風

Next: 03 Hand instrument →下一個:03 手的樂器 → All examples所有範例

Artwork credit: Che-Yu Wu, 200412 3D Cylinder Earth, 2020. Artwork © Che-Yu Wu, used here as a demo, all rights reserved. The framework is MIT.作品版權:吳哲宇,200412 3D Cylinder Earth,2020。作品 © 吳哲宇,在這裡當作示範,版權所有。框架採 MIT 授權。