class PitchDetectionHandlerImp implements PitchDetectionHandler {

    public List<List<String>> getWindowMarix(int barCount) {

        List<List<String>> windows = new ArrayList<>();

        if (barCount == 1) {
            for (int i = 0; i < 16; i++) {
                windows.add(new ArrayList<>());
            }
        } else if (barCount == 2) {
            for (int i = 0; i < 32; i++) {
                windows.add(new ArrayList<>());
            }
        } else if (barCount == 4) {
            for (int i = 0; i < 64; i++) {
                windows.add(new ArrayList<>());
            }
        } else {
            throw new RuntimeException("unknown bar count");
        }

        return windows;
    }

}