Re: [Rosegarden-user] File Locking

2016-03-31 Thread D. Michael McIntyre
On 03/31/2016 05:34 PM, Yves Guillemot wrote:

>> OK, I figured somebody would find something like this.  Is there
>> something we can do about this?
>
> Usually QString::fromStdString() does the conversion.

Meant to mention I'll be happy to fiddle with that part of it if you 
don't get it worked out, Ted.

-- 
D. Michael McIntyre

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] File Locking

2016-03-31 Thread Yves Guillemot
Le jeudi 31 mars 2016, 16:00:12 Ted Felix a écrit :
> 
>How about this:
> 
> "Could not lock file.  Another user or instance of Rosegarden may
> already be editing this file.  If you are sure no one else is editing
> this file, delete the lock file and try again."
> 

Seems very good to me.

Yves


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] File Locking

2016-03-31 Thread Yves Guillemot
Le jeudi 31 mars 2016, 15:53:23 Ted Felix a écrit :
> On 03/31/2016 09:45 AM, Yves Guillemot wrote:
> > the displayed lock file name when the .rg file uses non ASCII characters
> > (I did the first test with a file name containing a diacritic).
> 
>OK, I figured somebody would find something like this.  Is there
> something we can do about this?

Usually QString::fromStdString() does the conversion.

Yves

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] File Locking

2016-03-31 Thread Ted Felix
On 03/31/2016 09:45 AM, Yves Guillemot wrote:
> An other (very) small problem is the "Could not lock file" message which may 
> be
> unclear for some users.
> An improvment should be to add in the popup a first sentence explaining that
> two different RG instances try to access the same file.

   How about this:

"Could not lock file.  Another user or instance of Rosegarden may 
already be editing this file.  If you are sure no one else is editing 
this file, delete the lock file and try again."

Ted.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] File Locking

2016-03-31 Thread Ted Felix
On 03/31/2016 09:45 AM, Yves Guillemot wrote:
> Then I tried a less obvious case:

   Thanks for finding that.  I'll have a look.

> There is a small issue (repeatedly occurring with RG) about UTF8 garbage in
> the displayed lock file name when the .rg file uses non ASCII characters (I 
> did
> the first test with a file name containing a diacritic).

   OK, I figured somebody would find something like this.  Is there 
something we can do about this?

> An other (very) small problem is the "Could not lock file" message which may 
> be
> unclear for some users.
> An improvment should be to add in the popup a first sentence explaining that
> two different RG instances try to access the same file.

   The wording is just a rough draft, so suggestions are definitely 
appreciated.  I'll see what I can come up with.

Ted.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


[Rosegarden-user] Request Rosegarden export to Drum Tab

2016-03-31 Thread Wachín
Hi Rosegarden Developers, I made a Video to explain:

Request Rosegarden export to Drum Tab
https://youtu.be/4VhtXMbDijQ

In this video refer a GPL software called  DrumBurp wich is a drum tab 
editor. I use UbuntuStudio 15.10 and the source code working fine, but 
first is necessary install:

python-pygame
timgm6mb-soundfont

and next run from command line with:

python DrumBurp.py

This software can print the drum tab, but not can import MIDI tracks.

Rosegarden can import MIDI but not have a module to export to drum tab.

I have a Idea, ¿Is possible use this software DrumBurp to make a module 
to Rosegarden to export drum tab?

I don't know nothing from writing software, but is a idea



--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] File Locking

2016-03-31 Thread Yves Guillemot
Le mercredi 30 mars 2016, 23:03:12 Ted Felix a écrit :
>Just finished implementing file locking (see bug #1510) to prevent
> having a file open in two instances of rg.  I would appreciate any
> testing anyone can do.

>The obvious test case to see the new behavior is to launch rg twice
> and try to open the same file with each instance.

I first tried the obvious case:

 - Open a file in a first RG instance
 - Try to open the same file from an other RG instance
 => Can't open the file in the new instance: a popup with a "could not lock 
file" message is displayed.

 - Close the file in the first RG instance
 - Try again to open the file in the second instance
 => file is normally opened.

 - Kill the second instance (Ctrl-C)
 - Try to open the file in the first instance
 => Can't open the file, the popup is displayed.

 - rm the lock file (whose name is given in the popup)
 - Try again to open the file in the first instance
 => file is normally opened.

 - Create a new RG instance 
 - Try to open the same file from this new instance
 => Can't open the file, the popup is displayed.


Then I tried a less obvious case:

 - Create a new composition in RG and save it in a file. Keep RG open.
 - Create again a new composition in another RG instance
 - Try to save the last composition in the same file as fhe first one. 
 => Can't save the file, the popup is displayed.

 - Try again the same save operation
 => no more popup.

There is now two RG instances able to write alternatively in the same file.


So, except this last problem, it works fine here.

There is a small issue (repeatedly occurring with RG) about UTF8 garbage in 
the displayed lock file name when the .rg file uses non ASCII characters (I did 
the first test with a file name containing a diacritic).

An other (very) small problem is the "Could not lock file" message which may be 
unclear for some users. 
An improvment should be to add in the popup a first sentence explaining that 
two different RG instances try to access the same file.

Yves




--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user