Re: [Rosegarden-user] Convert .rg to .mid with Command Line
I threw together a solution in the meantime: https://github.com/dpacbach/rg-2-midi Tested on Linux and Mac, seems to work. However, I wouldn't consider it an ideal/long-term solution, would be better for various reasons if this came from the Rosegarden project itself, so I am leaving the above feature request open. Rg-2-midi includes the minimal subset of Rosegarden source files needed to open an .rg file and export it to .mid. Just want to note that the shear number of source files that I had to import into this project just to get it to open .rg files and export .mid files was shocking... might be pointing to the necessity of some code redesign in Rosegarden :-) Contributions welcome, especially if you can delete code from the repository and still have it build :-) David On Wed, May 22, 2019 at 3:45 PM Will Godfrey wrote: > > On Wed, 22 May 2019 07:52:15 -0400 > Ted Felix wrote: > > >On 5/22/19 12:30 AM, David Sicilia wrote: > >> Thanks, I have just opened this ticket: > >> > >> https://sourceforge.net/p/rosegarden/feature-requests/476/ > > > > Great. Thanks. Providing a use case and rationale is really helpful > >in providing motivation for selecting this one next. > > > >Ted. > > Now, I could have done with that a few years ago when I was making lots of > demo > files. So... yes please :) > > -- > Will J Godfrey > http://www.musically.me.uk > Say you have a poem and I have a tune. > Exchange them and we can both have a poem, a tune, and a song. > > > ___ > 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 mailing list Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user
Re: [Rosegarden-user] Convert .rg to .mid with Command Line
On Wed, 22 May 2019 07:52:15 -0400 Ted Felix wrote: >On 5/22/19 12:30 AM, David Sicilia wrote: >> Thanks, I have just opened this ticket: >> >> https://sourceforge.net/p/rosegarden/feature-requests/476/ > > Great. Thanks. Providing a use case and rationale is really helpful >in providing motivation for selecting this one next. > >Ted. Now, I could have done with that a few years ago when I was making lots of demo files. So... yes please :) -- Will J Godfrey http://www.musically.me.uk Say you have a poem and I have a tune. Exchange them and we can both have a poem, a tune, and a song. ___ 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] Convert .rg to .mid with Command Line
On 5/22/19 12:30 AM, David Sicilia wrote: Thanks, I have just opened this ticket: https://sourceforge.net/p/rosegarden/feature-requests/476/ Great. Thanks. Providing a use case and rationale is really helpful in providing motivation for selecting this one next. Ted. ___ 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] Convert .rg to .mid with Command Line
On 5/22/19 2:02 AM, david wrote: It looks pretty clear. Not being Ted or a real coder, not sure how easy to do. Might require a touch of redesign here and there to make it clean and prevent it from popping up the GUI. Want something really tough? How about a general RG scripting interface, like for Python? ;) I think the testing harness that David added might be a step in that direction. Ted. ___ 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] Convert .rg to .mid with Command Line
It looks pretty clear. Not being Ted or a real coder, not sure how easy to do. Want something really tough? How about a general RG scripting interface, like for Python? ;) On 5/21/19 6:30 PM, David Sicilia wrote: Thanks, I have just opened this ticket: https://sourceforge.net/p/rosegarden/feature-requests/476/ David On Tue, May 21, 2019 at 7:50 PM Ted Felix wrote: On 5/21/19 10:01 AM, David Sicilia wrote: Is there a way to use Rosegarden (or some other program) as a command line tool to export Rosegarden files (*.rg) to MIDI? No. If such a feature doesn't exist, is it worth requesting it from the developers? All features are worth requesting. Open a feature request on SourceForge: https://sourceforge.net/p/rosegarden/feature-requests/ This is where I look for the next thing to work on. Ted. The other David. -- David W. Jones gn...@hawaii.rr.com authenticity, honesty, community http://dancingtreefrog.com ___ 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] Convert .rg to .mid with Command Line
Thanks, I have just opened this ticket: https://sourceforge.net/p/rosegarden/feature-requests/476/ David On Tue, May 21, 2019 at 7:50 PM Ted Felix wrote: > > On 5/21/19 10:01 AM, David Sicilia wrote: > > Is there a way to use Rosegarden (or some other program) as a command > > line tool to export Rosegarden files (*.rg) to MIDI? > >No. > > > If such a feature doesn't exist, is it worth requesting it from the > > developers? > >All features are worth requesting. Open a feature request on > SourceForge: > >https://sourceforge.net/p/rosegarden/feature-requests/ > >This is where I look for the next thing to work on. > > Ted. > > > ___ > 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 mailing list Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user
Re: [Rosegarden-user] Convert .rg to .mid with Command Line
On 5/21/19 10:01 AM, David Sicilia wrote: Is there a way to use Rosegarden (or some other program) as a command line tool to export Rosegarden files (*.rg) to MIDI? No. If such a feature doesn't exist, is it worth requesting it from the developers? All features are worth requesting. Open a feature request on SourceForge: https://sourceforge.net/p/rosegarden/feature-requests/ This is where I look for the next thing to work on. Ted. ___ 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] Convert .rg to .mid with Command Line
Hi there, Is there a way to use Rosegarden (or some other program) as a command line tool to export Rosegarden files (*.rg) to MIDI? Something like this: $ rosegarden export-midi --from=xyz.rg --to=xyz.mid This function would be equivalent to opening the .rg file in Rosegarden and selecting File->Export->MIDI. That would be really useful if such a thing existed because I save all of my MIDI compositions as Rosegarden files and only need to convert them to MIDI as part of the build process of my game. Currently I have to export them to MIDI in the Rosegarden GUI every time I make a change to a tune and then have to check the MIDI files into version control as part of my game, which seems non-ideal. With the above feature I could incorporate the conversion into the build system so that it happens automatically and only when necessary. If such a feature doesn't exist, is it worth requesting it from the developers? Thanks David ___ Rosegarden-user mailing list Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user