Пример #1
0
    void NoteOn(MidiChannel channel, int note, float velocity)
    {
        if (channel == LaunchControl)
        {
            LaunchNotes _note = (LaunchNotes)note;
            switch (_note)
            {
            default:
                break;
            }
        }
        if (channel == Arturia)
        {
            var _note = (ArturiaNotes)note;
            switch (_note)
            {
            case ArturiaNotes.BpmTap:
                SceneMan.I.BpmTap();
                break;

            case ArturiaNotes.CameraNext:
                SceneMan.I.CameraNext();
                break;

            case ArturiaNotes.LensDistort:
                PostProcessManager.I.BarrelPop();
                break;

            case ArturiaNotes.TexturePop:
                SceneMan.I.MainTexturePop();
                break;
            }
        }
    }
Пример #2
0
 void NoteOff(MidiChannel channel, int note)
 {
     if (channel == LaunchControl)
     {
         LaunchNotes _note = (LaunchNotes)note;
         switch (_note)
         {
         default: break;
         }
     }
     if (channel == Arturia)
     {
         var _note = (ArturiaNotes)note;
         switch (_note)
         {
         default: break;
         }
     }
 }