Skip to content

Commit

Permalink
Make grayscale spectrogram by default if the user changes the recording
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhina-e committed Sep 18, 2024
1 parent c76386b commit a0b4523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/app/app/analysis/patternmatching/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ angular.module('a2.analysis.patternmatching', [
rois = this.getSelectedRois()
}
if (rois.length > 50){
notify.error('Please reduce the number of selected ROIs to 50 or fewer to proceed.');
notify.error('Please reduce the number of selected ROIs <br> to 50 or fewer to proceed.');
return;
}
var roiIds = rois.map(function(roi){ return roi.id; })
Expand Down
3 changes: 3 additions & 0 deletions assets/app/app/visualizer/audioplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ angular.module('a2.visualizer.audio-player', [])
this.isSavingPlaylist = false;
this.playlistData = {};
this.clustersData = null;

$localStorage.setItem('visualizer.is_spectro_colored', this.is_colored);

if(options){
if(options.gain){
this.gain = Math.min(Math.max(1, (options && options.gain)|0), this.gain_levels[this.gain_levels.length-1]);
Expand Down

0 comments on commit a0b4523

Please sign in to comment.