abc player for Mac mountain lion

Oxymorons "R" Us
Forum rules
Please see forum announcement for description and rules!
Post Reply
User avatar
cavefish
Posts: 1016
Joined: Sat Jan 29, 2005 4:22 am
antispam: No
Please enter the next number in sequence: 8
Tell us something.: been out of it for awhile and decided to start back up on the flute and whistle , been doing NAFs and saxophones
Location: San Pedro

abc player for Mac mountain lion

Post by cavefish »

i like the barfly i was using for years but it does not work for my new system any others out there
Choose you this day, whom ye shall serve
User avatar
stanton135
Posts: 235
Joined: Sun Mar 20, 2011 6:39 am
antispam: No
Please enter the next number in sequence: 8
Tell us something.: Hi Nano. I was somewhat active on the Chiffboards maybe 5 or 6 years ago, participating in several whistle tours (Bracker, Hardy, Ellis). I took a break from the Chiffboards, and music mostly, for several years because I got a full-time job and had a baby. I'm easing back into the music, though (which is great, I missed it). It's good to be back!
Location: Northwest Indiana

Re: abc player foe Mac mountain lion

Post 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!
highwood
Posts: 562
Joined: Thu Feb 07, 2008 3:30 pm
antispam: No
Please enter the next number in sequence: 12
Location: Ohio

Re: abc player foe Mac mountain lion

Post 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
“When a Cat adopts you there is nothing to be done about it except put up with it until the wind changes.” T.S. Elliot
highwood
Posts: 562
Joined: Thu Feb 07, 2008 3:30 pm
antispam: No
Please enter the next number in sequence: 12
Location: Ohio

Re: abc player foe Mac mountain lion

Post by highwood »

“When a Cat adopts you there is nothing to be done about it except put up with it until the wind changes.” T.S. Elliot
User avatar
kmarty
Posts: 80
Joined: Tue Jan 17, 2012 4:51 pm
antispam: No
Please enter the next number in sequence: 10
Location: Prague, CZ

Re: abc player for Mac mountain lion

Post 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.
User avatar
cavefish
Posts: 1016
Joined: Sat Jan 29, 2005 4:22 am
antispam: No
Please enter the next number in sequence: 8
Tell us something.: been out of it for awhile and decided to start back up on the flute and whistle , been doing NAFs and saxophones
Location: San Pedro

Re: abc player for Mac mountain lion

Post 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
Choose you this day, whom ye shall serve
User avatar
kmarty
Posts: 80
Joined: Tue Jan 17, 2012 4:51 pm
antispam: No
Please enter the next number in sequence: 10
Location: Prague, CZ

Re: abc player for Mac mountain lion

Post 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?
User avatar
cavefish
Posts: 1016
Joined: Sat Jan 29, 2005 4:22 am
antispam: No
Please enter the next number in sequence: 8
Tell us something.: been out of it for awhile and decided to start back up on the flute and whistle , been doing NAFs and saxophones
Location: San Pedro

Re: abc player for Mac mountain lion

Post 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
Choose you this day, whom ye shall serve
cboody
Posts: 676
Joined: Sat Nov 21, 2009 10:45 pm
antispam: No

Re: abc player for Mac mountain lion

Post 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.
User avatar
kmarty
Posts: 80
Joined: Tue Jan 17, 2012 4:51 pm
antispam: No
Please enter the next number in sequence: 10
Location: Prague, CZ

Re: abc player for Mac mountain lion

Post 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.
cboody
Posts: 676
Joined: Sat Nov 21, 2009 10:45 pm
antispam: No

Re: abc player for Mac mountain lion

Post 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...
User avatar
kmarty
Posts: 80
Joined: Tue Jan 17, 2012 4:51 pm
antispam: No
Please enter the next number in sequence: 10
Location: Prague, CZ

Re: abc player for Mac mountain lion

Post 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.
Post Reply