To see the lookback configuration in action, we'll first generate a new sequence using the following parameters:
generator.generate( "lookback_rnn.mag", melody_rnn_sequence_generator, "lookback_rnn", primer_filename="Fur_Elisa_Beethoveen_Monophonic.mid", total_length_steps=64, temperature=1.1)
You can see we're using the same melody_rnn_sequence_generator function but changing the configuration and bundle files. Let's look at the generated sample for the lookback configuration:
You can see here that bar 1 and bar 3 have a repeating musical structure annotated with s1 and s2 in the diagram, ...