You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create input generator (so we can adjust priming and
# decode length on the fly).
def input_generator():
global targets
global decode_length
while True:
yield {
'targets': np.array([targets], dtype=np.int32),
'decode_length': np.array(decode_length, dtype=np.int32)
}
# These values will be changed by subsequent cells.
targets = []
decode_length = 0
# Start the Estimator, loading from the specified checkpoint.
input_fn = decoding.make_input_fn_from_generator(input_generator())
To be frank, my question is that is it possible to iterate the model output and then playing, means that do midi generation with decoding and midi playing simultaneously instead of playing the midi file after the midi file is ready?
Thanks & Regards!
Jun Yan
The text was updated successfully, but these errors were encountered:
Hello, dear google-magenta guys,
I tried to use your APIs to generate music.
First, create an estimator:
Second, I have a midi input interface:
Third, do prediction:
Fourth, I have an API to generate the MIDI note one by one, after the generation, it will read the MID file as playing:
To be frank, my question is that is it possible to iterate the model output and then playing, means that do midi generation with decoding and midi playing simultaneously instead of playing the midi file after the midi file is ready?
Thanks & Regards!
Jun Yan
The text was updated successfully, but these errors were encountered: