@Test public void shouldGetArrayOfMeans() { HashMap<Path, Double> means = normalizeAudio.createMeanVolumeMap(filePaths_original); assertThat(means).hasSize(10); }
public HashMap<Path, Double> createMeanVolumeMap(List<Path> paths) { HashMap<Path, Double> meanVolumeMap = new HashMap<>(); paths.forEach(p -> { try { meanVolumeMap.put(p, audioUtils.getMeanVolume(p.toFile())); } catch (InterruptedException e) { Application.logger.debug("LOG:", e); } }); return meanVolumeMap; }
NormalizeAudio { public HashMap<Path, Double> createMeanVolumeMap(List<Path> paths) { HashMap<Path, Double> meanVolumeMap = new HashMap<>(); paths.forEach(p -> { try { meanVolumeMap.put(p, audioUtils.getMeanVolume(p.toFile())); } catch (InterruptedException e) { Application.logger.debug("LOG:", e); } }); return meanVolumeMap; } }
NormalizeAudio { public HashMap<Path, Double> createMeanVolumeMap(List<Path> paths) { HashMap<Path, Double> meanVolumeMap = new HashMap<>(); paths.forEach(p -> { try { meanVolumeMap.put(p, audioUtils.getMeanVolume(p.toFile())); } catch (InterruptedException e) { Application.logger.debug("LOG:", e); } }); return meanVolumeMap; }  }
NormalizeAudio { public HashMap<Path, Double> createMeanVolumeMap(List<Path> paths) { HashMap<Path, Double> meanVolumeMap = new HashMap<>(); paths.forEach(p -> { try { meanVolumeMap.put(p, audioUtils.getMeanVolume(p.toFile())); } catch (InterruptedException e) { Application.logger.debug("LOG:", e); } }); return meanVolumeMap; }  double normalizeLoopFiles(String directory); double normalizeFilesInADirectory(String directory); void cleanup(String directoryPath); List<Path> renameToProcessing(String directoryPath); List<Path> getWavPathsFromDirectory(String directoryPath); List<Path> getProcessingPathsFromWavPaths(List<Path> wavPaths); Map<Path, Double> renameToProcessing(Map<Path, Double> wavPaths, List<Path> alreadyRenamed); HashMap<Path, Double> createMeanVolumeMap(List<Path> paths); void normalize(Map<Path, Double> meanVolumeMap, double targetMean, String directory); void normalizeToTarget(Map<Path, Double> meandddOffSets, List<Path> alreadyAdjusted, List<Path> alreadyRenamed); Double getMeanOfMeans(Map<Path, Double> meanVolumeMap); HashMap<Path, Double> calculateMeanOffset(Double target, Map<Path, Double> meanVolumeMap); boolean meansWithinTargetRange(Double target, Map<Path, Double> means); boolean meanIsWithinTargetRange(Double target, Double mean); void normalizeMix(String mixFilePath, String mixFileName, int numOfGeneratedMixes); }
NormalizeAudio { public HashMap<Path, Double> createMeanVolumeMap(List<Path> paths) { HashMap<Path, Double> meanVolumeMap = new HashMap<>(); paths.forEach(p -> { try { meanVolumeMap.put(p, audioUtils.getMeanVolume(p.toFile())); } catch (InterruptedException e) { Application.logger.debug("LOG:", e); } }); return meanVolumeMap; }  double normalizeLoopFiles(String directory); double normalizeFilesInADirectory(String directory); void cleanup(String directoryPath); List<Path> renameToProcessing(String directoryPath); List<Path> getWavPathsFromDirectory(String directoryPath); List<Path> getProcessingPathsFromWavPaths(List<Path> wavPaths); Map<Path, Double> renameToProcessing(Map<Path, Double> wavPaths, List<Path> alreadyRenamed); HashMap<Path, Double> createMeanVolumeMap(List<Path> paths); void normalize(Map<Path, Double> meanVolumeMap, double targetMean, String directory); void normalizeToTarget(Map<Path, Double> meandddOffSets, List<Path> alreadyAdjusted, List<Path> alreadyRenamed); Double getMeanOfMeans(Map<Path, Double> meanVolumeMap); HashMap<Path, Double> calculateMeanOffset(Double target, Map<Path, Double> meanVolumeMap); boolean meansWithinTargetRange(Double target, Map<Path, Double> means); boolean meanIsWithinTargetRange(Double target, Double mean); void normalizeMix(String mixFilePath, String mixFileName, int numOfGeneratedMixes); @Autowired
    public AppConfigs appConfigs; }