return melody_signal
def create_harmonic_mask(self, melody_signal):
normalized_melody_stft = np.abs(melody_signal.stft())
normalized_melody_stft /= np.max(normalized_melody_stft)
// Need to threshold the melody stft since the synthesized
// F0 sequence overtones are at different weights.
normalized_melody_stft = normalized_melody_stft > 1e-2
After Change
:return:
melody_signal.stft()
normalized_melody_stft = melody_signal.log_magnitude_spectrogram_data
// Need to threshold the melody stft since the synthesized
// F0 sequence overtones are at different weights.