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

Leap handsLeap 雙手

A Leap Motion as an instrument; the mouse is a simulated hand when you have none.把 Leap Motion 當樂器,經本機橋接;沒開橋接時用滑鼠模擬手。

Try these three things試試這三件事

  1. No sensor? The page falls back to the simulator after two seconds (or press “simulate” in the L1 panel): the mouse is your right palm, its height sets energy and its position sets hue.
  2. Press the mouse button to pinch: a ring of ink starts at the index fingertip.
  3. Hold Shift for the left hand and right-click for a fist: the ink falls.
  1. 沒有感測器?頁面會在兩秒後改用模擬(或在 L1 面板按 simulate):滑鼠就是你的右手掌,高度決定 energy,左右位置決定 hue。
  2. 按住滑鼠鍵就是捏合:食指指尖會畫出一圈墨。
  3. 按住 Shift 是左手,按右鍵是握拳:墨會落下。

Needs: Leap Motion.需要:Leap Motion。 No hardware? Use Mouse as a hand.沒有硬體?用用滑鼠當手。

Read these lines讀這幾行

  • main.js:49–51 Drawing the hand is the one place a world reads the input directly.畫出手,是世界唯一直接讀輸入的地方。
  • main.js:92–110 The gestures reach the world through params: the timeline or a MIDI knob can play them too.手勢經由參數送進世界:時間軸或 MIDI 旋鈕也能彈它們。

In the docs文件裡: Leap MotionLeap Motion

Next: 08 Remote surface →下一個:08 遠端控制面板 → All examples所有範例