Control Surface API  2.2.2
PlayingNoteArrayValue.java
1 package com.bitwig.extension.controller.api;
2 
6 public interface PlayingNoteArrayValue extends ObjectArrayValue<PlayingNote>
7 {
8  default public boolean isNotePlaying(int note)
9  {
10  PlayingNote[] playingNotes = get();
11  assert playingNotes != null;
12 
13  for (PlayingNote playingNote : playingNotes)
14  {
15  assert playingNote != null;
16  if (playingNote.pitch() == note)
17  return true;
18  }
19  return false;
20  }
21 }