Fluidsynth error: "Name 'ctypes' is not defined"
<p>I am trying to use FluidSynth in a game that I'm working on, but I can't seem to get Fluidsynth to work properly. Whenever I try to import I get this:</p>

<pre><code>&gt;&gt;&gt; import fluidsynth
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "C:\Python26\lib\site-packages\fluidsynth.py", line 35, in &lt;module&gt;
    _fl = ctypes.cdll.LoadLibrary("./libfluidsynth")
NameError: name 'ctypes' is not defined
</code></pre>

<p>I read that you can do some import command to get rid of the Ctypes error but when I try that this happens:</p>

<pre><code>&gt;&gt;&gt; lib = ctypes.WinDLL('C:\Python26\Lib\site-packages\libfluidsynth.dll')
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "C:\Python26\lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
</code></pre>

<p>I'm aware that the win32 application error usually happens when you're trying to run an app that's not designed for the computer's processor, but the source I downloaded the libfluidsynth.dll from said it was for Windows 32.<br>
I am using Windows 7 64 bit, and Python 2.6.<br>
Also, I downloaded Python on my 32-bit computer, and also the pyFluidSynth package and the FluidSynth DLL itself, however it was telling me it couldn't find the FluidSynth library or something.</p>