asigalov61 commited on
Commit
1c2cbb3
·
verified ·
1 Parent(s): dffc8b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -88,19 +88,13 @@ def plot_ms_SONG(ms_song,
88
 
89
  if plot_curve_values is not None:
90
 
91
- stimes = start_times[::plot_curve_notes_step]
92
 
93
  min_val = min(plot_curve_values)
94
  max_val = max(plot_curve_values)
95
  spcva = [((value - min_val) / (max(max_val - min_val, 0.00001))) * 100 for value in plot_curve_values]
96
-
97
- #x = stimes
98
- #x_smooth = np.linspace(min(x), max(x), 300)
99
- #spl = make_interp_spline(x, spcva, k=3)
100
- #y_smooth = spl(x_smooth)
101
- #ax.plot(x_smooth, y_smooth, color='white')
102
- x = [v / 2 for v in stimes]
103
- ax.plot(x, spcva, marker='o', linestyle='-', color='w')
104
 
105
  # Set the limits of the plot
106
  ax.set_xlim([min(start_times), max(add_arrays(start_times, durations))])
 
88
 
89
  if plot_curve_values is not None:
90
 
91
+ stimes = start_times[plot_curve_notes_step // 2::plot_curve_notes_step]
92
 
93
  min_val = min(plot_curve_values)
94
  max_val = max(plot_curve_values)
95
  spcva = [((value - min_val) / (max(max_val - min_val, 0.00001))) * 100 for value in plot_curve_values]
96
+
97
+ ax.plot(stimes, spcva, marker='o', linestyle='-', color='w')
 
 
 
 
 
 
98
 
99
  # Set the limits of the plot
100
  ax.set_xlim([min(start_times), max(add_arrays(start_times, durations))])