6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

nanoKONTROL2にアサインされてるknobの番号一覧チートシート(Unity MidiJack用)

Last updated at Posted at 2016-09-16

nanoKONTROL2とは

ちっさいMidiコントローラー。

nanoシリーズ2 : nanoKONTROL2|KORG INC.

貼り付けた画像_2016_09_16_18_54.jpg

↑で、ここにアサインされてるknobの番号です。

nano.cs
//左側のボタン
// Track < 58,   > 59
// cycle: 46    set: 60, < 61, > 62,
// << 43, >> 44, ■ 42, > 41, ● 45

// フェーダー、ツマミ側
// knob    (0-1)        : 16 17 18 19 20 21 22 23
// fader  (btm:0-top:1) : 0  1  2  3  4  5  6  7
// S      (off:0, on:1) : 32 33 34 35 36 37 38 39
// M      (off:0, on:1) : 48 49 50 51 52 53 54 55
// R      (off:0, on:1) : 64 65 66 67 68 69 70 71

Unityで使うには

keijiro大先生のライブラリを使う
https://github.com/keijiro/MidiJack

sample.cs
  // nanoKONTROL2はknobの値だけがくる
  void OnEnable()
  {
    MidiMaster.knobDelegate += Knob;
  }
  
  void Knob(MidiChannel channel, int knobNumber, float knobValue)
  {
    Debug.Log("Knob: " + knobNumber + "," + knobValue);
  }

あるいは、nanoKontrol2用にカスタムされたスクリプトを使う

MIDIコントローラーNanoKONTROL2をUnityアナログ入力デバイスとして利用する | Psychic VRラボの殴り書き

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?