Skip to content

Commit

Permalink
FilterReview: spectogram remove array spread to reduce call stack
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Nov 1, 2024
1 parent e1a3890 commit dff6632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FilterReview/FilterReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -1579,8 +1579,8 @@ function redraw_Spectrogram() {
freq = []

for (let j=0;j<fundamental.freq.length;j++) {
time.push(...(time_array ? fundamental.time[j] : fundamental.time))
freq.push(...fundamental.freq[j])
time = time.concat(time_array ? fundamental.time[j] : fundamental.time)
freq = freq.concat(fundamental.freq[j])

// Add NAN to remove line from end back to the start
time.push(NaN)
Expand Down

0 comments on commit dff6632

Please sign in to comment.