Closed ericnorman98 closed 4 years ago
Why all the […, 1] dimensions?
Oh right, forgot to move that into the function. It was to be able to multiply with the waveform. It should look like this now:
sr = 16000
samples_per_note = 8000
pitch_start = 60.0
n = 8
pitch = tf.range(tf.cast(n, tf.float32)) + pitch_start
vel = tf.ones([n])*2
amp = tf.ones([n])*0.5
note = generate(pitch, amp, vel, samples_per_note, sr)
Example generating 8 (
n
) different notes at the same time: