Skip to content

Benzaiten Adlib TensorFlow version Sample for M1 Mac

License

Notifications You must be signed in to change notification settings

log5r/BenzaitenAdlib

Repository files navigation

BenzaitenAdlib

Benzaiten Adlib TensorFlow version Sample for M1 Mac

based on https://docs.google.com/document/d/1CizJ6b9i2yZ9OIDPrBWUROyJahlZrlqe-naxh4brACQ/edit

How to setup

  1. Set up Python and TensorFlow for the M1Mac environment.

  2. Install each module.

    • Since the following import statements appear in the program, please install the respective modules so that these can be resolved:
     import music21
     import numpy as np
     import matplotlib.pyplot as plt
     import mido
     import csv
     import IPython.display as ipd
     import midi2audio
     import glob
     import tensorflow as tf
     import tensorflow_probability as tfp
  3. Download the training musicXML from https://homepages.loria.fr/evincent/omnibook/ and place it in the omnibook directory.

  4. Download the following sample file from the here and place it in the sample directory.

  5. Rename sample files as follows:

    • sample1_backing.mid -> sample_backing.mid
    • sample1_chord.csv -> sample_chord.csv
  6. Obtain a soundfont and place it in the soundfont directory.

  7. Run learn.py to generate the model.

  8. Run generate.py to output a midi file in the output directory with the melody on the accompaniment.

    • At the same time, a wav file is output to the root directory.

About

Benzaiten Adlib TensorFlow version Sample for M1 Mac

Resources

License

Stars

Watchers

Forks

Packages