Skip to content

Commit

Permalink
remove ctypes.util fluidsynth workaround (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansimon authored Feb 17, 2021
1 parent d86feda commit f4c8dcd
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions colab-notebooks/Multitrack_MusicVAE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@
"!apt-get update -qq && apt-get install -qq libfluidsynth1 build-essential libasound2-dev libjack-dev\n",
"!pip install -qU magenta pyfluidsynth pretty_midi\n",
"\n",
"import ctypes.util\n",
"def proxy_find_library(lib):\n",
" if lib == 'fluidsynth':\n",
" return 'libfluidsynth.so.1'\n",
" else:\n",
" return ctypes.util.find_library(lib)\n",
"ctypes.util.find_library = proxy_find_library\n",
"\n",
"print('Importing libraries...')\n",
"\n",
"import numpy as np\n",
Expand Down Expand Up @@ -506,4 +498,4 @@
"outputs": []
}
]
}
}

0 comments on commit f4c8dcd

Please sign in to comment.