Page 1 of 1

abc player for Mac mountain lion

Posted: Thu Jul 04, 2013 4:09 pm
by cavefish
i like the barfly i was using for years but it does not work for my new system any others out there

Re: abc player foe Mac mountain lion

Posted: Thu Jul 04, 2013 9:06 pm
by stanton135
I checked the Barfly website, www.barfly.dial.pipex.com. Quote:

"Please note that BarFly does not currently work under OS 10.7 (Lion). While I may be able to fix this at some point, there are a number of technical problems, and it's not likely to happen in the very near future."

So I imagine you're not alone. While I'm sorry you're experiencing this problem, I'm glad you brought it up, because now I know to hold off on upgrading my own system. Thanks!

Re: abc player foe Mac mountain lion

Posted: Thu Jul 04, 2013 9:07 pm
by highwood
I use 'Ernie' on OS 10.7 - I have not tried it on 10.8 or 10.9 yet

edit: I used to use Barfly and Skink - I used the latter most before converting to Ernie

Re: abc player foe Mac mountain lion

Posted: Thu Jul 04, 2013 10:15 pm
by highwood

Re: abc player for Mac mountain lion

Posted: Fri Jul 05, 2013 2:50 am
by kmarty
I use EasyABC http://www.nilsliberg.se/ksp/easyabc/
I used Ernie before, but it was unstable and EasyABC seems to work better.

Re: abc player for Mac mountain lion

Posted: Fri Jul 05, 2013 9:58 am
by cavefish
kmarty wrote:I use EasyABC http://www.nilsliberg.se/ksp/easyabc/
I used Ernie before, but it was unstable and EasyABC seems to work better.
i did the easyabc, but it works weird, does not delete songs right, it felt glitchy-- it echoed too

Re: abc player for Mac mountain lion

Posted: Fri Jul 05, 2013 10:40 am
by kmarty
Weird newlines: Yes, it randomly mixing '\r' and '\n' as a newline (it is a bug).
Echo: It uses system midi sequencer which is weird since some version of OS X. That's general problem of OS X, not just EasyABC. Result is quiet and echoed.

Nevertheless it is the best ABC editor/player I've found yet for MT. Sad, isn't it?

Re: abc player for Mac mountain lion

Posted: Sat Jul 06, 2013 7:15 am
by cavefish
kmarty wrote:Weird newlines: Yes, it randomly mixing '\r' and '\n' as a newline (it is a bug).
Echo: It uses system midi sequencer which is weird since some version of OS X. That's general problem of OS X, not just EasyABC. Result is quiet and echoed.

Nevertheless it is the best ABC editor/player I've found yet for MT. Sad, isn't it?
too bad Barfly was great

Re: abc player for Mac mountain lion

Posted: Sat Jul 06, 2013 7:56 pm
by cboody
I don't understand the problems expressed about EasyABC. There are a couple of errors in the last release though. If you are having trouble with EasyABC drop me a note off list about it and I'll try to help. I've been using it since it first came out and except for those glitches in the last version (fixed in the version I have) have not had any serious issues.

I've never heard the echoing problem. EasyABC uses abc2MIDI to playback. Perhaps you have an early version with an early version of abc2MIDI that has the problems. I don't have that problem here.

Re: abc player for Mac mountain lion

Posted: Sun Jul 07, 2013 6:09 am
by kmarty
The only thing what concern me in EasyABC is strange behaviour with newlines. Everytime I editing "abc" file, after that I open it with vim editor and check whether newlines are good. Sometime yes, sometime not (didn't find the reason why EasyABC corrupts it).
When ABC file is with "unix lines" ('\n' or '0A'), then only edited lines are weird (newly added newlines has '\r\n'). When ABC file is with "DOS newlines" ('\r\n' or '0D0A') then all lines which wasn't edited are corrupted (they has just '\r' as newline):
Image
Image

About echo/reverb and quiet play I'm convinced that it is not caused by EasyABC (abc2midi), because it is general thing in Mountain Lion. You can create MID file everywhere else and when is played (for example in QuickLook) in OS X, it is quiet and with reverb.

Re: abc player for Mac mountain lion

Posted: Sun Jul 07, 2013 8:23 pm
by cboody
Hmmm. The end line issue shows up everywhere because of the different ways different operating systems handle the different line ends. I'm sure you know that though. I do not know the code in that area of the program, but will try to contact some folks and see what I can see. I'll get back to you if I discover what the issues are.

I don't use Mountain Lion (OS 10.7 here) so I can' speak for that MIDI issue. Fascinating though...and stupid if Apple really did it on purpose...

Re: abc player for Mac mountain lion

Posted: Mon Jul 08, 2013 3:28 am
by kmarty
cboody wrote:... I do not know the code in that area of the program, but will try to contact some folks and see what I can see....
There is funny that source code itself has the same problem (i.e. mixed dos/unix newlines) :-).
Also I'm not sure that it is a good idea to open a text file as a binary file - it bring more troubles because of using os.linesep and/or explicit separating/including '\r' for DOS/Windows:
Do not use os.linesep as a line terminator when writing files opened in text mode (the default); use a single '\n' instead, on all platforms.
Which doesn't have to be used when file is opened as text file.

EDIT: I'm not familiar with Python, but this should be minimal solution to me:

Code: Select all

--- easy_abc.py.orig    2012-07-23 18:50:58.000000000 +0200
+++ easy_abc.py 2013-07-08 21:44:44.000000000 +0200
@@ -1862,7 +1862,11 @@
         self.tune_list.SetAutoLayout(True)
         self.editor = stc.StyledTextCtrl(self, -1)
         self.editor.SetCodePage(stc.STC_CP_UTF8)
-        
+        if wx.Platform == "__WXMSW__":
+            self.editor.SetEOLMode(stc.STC_EOL_CRLF)   # for DOS/Windows
+        else:
+            self.editor.SetEOLMode(stc.STC_EOL_LF)     # almost every OS except DOS/Windows
+
         self.music_pane = MusicScorePanel(self, lambda: self.zoom_factor, self.settings['can_draw_sharps_and_flats'])
         self.music_pane.SetBackgroundColour((255, 255, 255))
         self.music_pane.OnNoteSelectionChangedDesc = self.OnNoteSelectionChangedDesc
@@ -3042,12 +3046,13 @@
             wx.MessageBox(_("Could not find file.\nIt may have been moved or deleted. Choose File,Open to locate it."), _("File not found"), wx.OK)
             return

-        if wx.Platform == "__WXMAC__":
-            text = text.replace('\r\n', '\r')
-        else:
+        # '\r' was used by pre-OS X Mac. All Macs with OS X has '\n' as newline as well as unix(-like) systems (incl. Linux)
+        if wx.Platform == "__WXMSW__":
             text = re.sub('\r+', '\r', text)
             if not '\n' in text:
-                text = text.replace('\r', '\r\n')        
+                text = text.replace('\r', '\r\n')
+        else:
+            text = text.replace('\r\n', '\n')

         self.current_file = filepath
         self.document_name = os.path.basename(filepath)
But still, better should be treat with ABC files as with text files, not binary files.