|
|
Solfege /
FinkInstallMacOsX(redirected from Main.FinkInstallMacOsX) The following information is incomplete. Please contribute! Solfege 3.12.1 runs without fink. --- You will need Os X 10.3 or higher to test GNU Solfege! http://pdb.finkproject.org/pdb/package.php/pygtk2-py24 Here are the preliminary instructions to make it work under MacOSX, hopefully all the mods will be integrated in the sources... You need X11 from Apple, and fink, from http://fink.sf.net. With fink, install packages gtk+2, python23 and pygtk2-py23. I did the port with solfege's "easy install distrib":
edit Makefile and remove "soundcard" from the subdirs list. under mac, we need a .mid filename to make "open" happy... And, passing arguments to the command line launching the apple script is impossible, so the filename must be hardwired. To do so, edit soundcard/midifilesynth.py and replace around line 32 the line: self.m_tmpfilename = tempfile.mktemp() with these lines: if sys.platform == 'darwin': self.m_tmpfilename = "/tmp/solfegetmp.mid" try: os.unlink(self.m_tmpfilename) except OSError: pass else: self.m_tmpfilename = tempfile.mktemp() type "make" I didn't install it, instead I use it directly from the src directory. Try to launch it once ( don't forget to launch X11 if it can't open display, and set the DISPLAY env variable to ":0": export DISPLAY=0:0 ...)
it will fail, but will create a ~/.solfegerc Edit it, and in section [sound] type the following lines: midi_player=/usr/bin/env foo="%s" /usr/bin/osascript macplaymidi.scpt type=external-midiplayer The midi_player command seems complicated but the %s must be there even if we don't need it, python will complain if it can't replace it with the filename of the temporary midifile... Basically, this will enable solfege to use quicktime as a sequencer through an applescript. Here is the source of the applescript (macplaymidi.scpt): tell application "QuickTime Player" ignore auto play if exists (movie "solfegetmp.mid") then close movie "solfegetmp.mid" saving no end if open location {"file:///tmp/solfegetmp.mid"} rewind movie "solfegetmp.mid" play movie "solfegetmp.mid" end tell You can grab it here in a source form: Attach:macplaymidi.applescript Δ and save it in the source directory. Relaunch it. It should work. Pbs: the rhythm exercises seem to have a different structure, so they sound weird... St�ephane. -- It also works wit Gnome and gtkhtml: ./configure --disable-oss-sound I use qtplay (via fink) for playing instead of this applescript: qtplay %s If you install solfege, you have to copy the soundcard folder to. David -- qtplay doesn't seem to existe anymore, where can we get it ? |