Re: [Rosegarden-user] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-22 Thread Ted Felix
On 06/17/2016 05:12 PM, Lorenzo Sutton wrote:
> And here is an example .rgd file generated from the default banks
> installed (in /usr/local/share/yoshimi/banks in my case):
>
> https://github.com/lorenzosu/rosegarden_yoshimi_banks/blob/master/yoshimi.rgd?raw=true

   I'm looking at this right now.  It only has programs for five of the 
23 banks: Arpeggios, Bass, Brass, Drums, and chip.  My install of 
yoshimi has many programs in all 23 the banks.  Is this just me?  Should 
I wait for this to be finished?

Ted.

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-21 Thread Abrolag
On Fri, 17 Jun 2016 18:34:29 -0400
Ted Felix  wrote:

> On 06/17/2016 05:12 PM, Lorenzo Sutton wrote:
> > Well here's my go at it:  
> 
>Thanks.  We'll have a look and add it to Rosegarden's collection of 
> device files.
> 
> Ted.

Had a quick look at this - seems fine to me.

-- 
W J G

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-17 Thread Ted Felix
On 06/17/2016 05:12 PM, Lorenzo Sutton wrote:
> Well here's my go at it:

   Thanks.  We'll have a look and add it to Rosegarden's collection of 
device files.

Ted.

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-17 Thread Lorenzo Sutton
On 16/06/16 13:06, Ted Felix wrote:
> On 06/16/2016 03:16 AM, Lorenzo Sutton wrote:
>> I think one could automatize that a with a (python) script. If I recall
>> correctly rgd is XML (any 'specification somewhere?), can't remember how
>> default yoshimi banks/programs are stored (files IIRC?)...
>
> If you un-gzip one and have a look, it's pretty obvious.  Even just
> doing the bank/program section then dropping that into a more complete
> one would be a huge timesaver.  It would be Yoshimi-specific, though, I
> would imagine.  So, reuse potential would be low.

Well here's my go at it:

https://github.com/lorenzosu/rosegarden_yoshimi_banks

And here is an example .rgd file generated from the default banks 
installed (in /usr/local/share/yoshimi/banks in my case):

https://github.com/lorenzosu/rosegarden_yoshimi_banks/blob/master/yoshimi.rgd?raw=true

Haven't fully tested it but seems to work nicely with yoshimi set to 
receive MSB.

Lorenzo.

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-16 Thread Abrolag
On Thu, 16 Jun 2016 11:37:06 +0200
Lorenzo Sutton  wrote:

> >
> > Cool.. Where does yoshimi pick the bank number (e.g. Arpeggios -> 5,
> > Bass -> 10).. It seems *almost* alphabetical with the exception of chip.
> > Actually it would be nice to have a script which could generate the rdg
> > file on a user's system :)  
> 
> Never mind... I figured it out: it's generated depending on the number 
> of banks..
> 
> Misc/Bank.cpp:size_t idStep = (size_t)128 / (bankDirsMap.size() + 2);
> 
> I was confused because "chip" came last, but that's because it's 
> lowercase vs all the other banks.
> 
> This means that probably one could do a script which generates a rgd 
> file given a yoshimi bank root directory (at least the banks part)... :)
> 
> Lorenzo

I'm back :)
The bad news is that this time next week I'll be down one wisdom tooth :(

NEway

Quite correct, but maybe I should make more fuss about yoshimi's "doc"
directory. There's a very detailed explanation of the root/bank/instrument
structure there in a text file called banks.txt :)

In short, Rosegarden is probably best off ignoring root and bank IDs, and using
just the installed location, simply taking the bank directory names. The
Instrument IDs however are an integral part of the filename so must be included.

The clever thing about the way this is structured is that adding new roots or
banks will never change the IDs of the existing ones (unless you lose
your .config/yoshimi/yoshimi.banks file somehow) and that is aimed purely at
those wanting to make bank and program changes via MIDI.

Also, the user can reorder roots and banks with new IDs without modifying
the directories/files themselves.

However, I have no intention of increasing the number of default banks so they
shouldn't change anyway.

Now I don't know if all that makes things simpler or more complicated.

-- 
W J G

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-16 Thread Lorenzo Sutton

>
> Cool.. Where does yoshimi pick the bank number (e.g. Arpeggios -> 5,
> Bass -> 10).. It seems *almost* alphabetical with the exception of chip.
> Actually it would be nice to have a script which could generate the rdg
> file on a user's system :)

Never mind... I figured it out: it's generated depending on the number 
of banks..

Misc/Bank.cpp:size_t idStep = (size_t)128 / (bankDirsMap.size() + 2);

I was confused because "chip" came last, but that's because it's 
lowercase vs all the other banks.

This means that probably one could do a script which generates a rgd 
file given a yoshimi bank root directory (at least the banks part)... :)

Lorenzo

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-16 Thread Lorenzo Sutton


On 16/06/2016 09:33, Abrolag wrote:
> On Thu, 16 Jun 2016 09:16:10 +0200
> Lorenzo Sutton  wrote:
>
>> On 16/06/2016 02:13, Ted Felix wrote:
>>> On 06/15/2016 06:51 PM, Abrolag wrote:
 On the next startup, if I start Yoshimi first, Rosegarden connects and 
 resets
 most of the controls to (now) wrong values. Changing bank root was a 
 particular
 problem (now pretty much resolved) because it then meant Yoshimi was 
 pointing to
 completely the wrong patches.
>>>
>>>Rosegarden provides support for (and works best with) device files.
>>> These contain lists of banks and programs and allow Rosegarden to
>>> control synths.  Without a proper device file for Yoshimi, Rosegarden
>>> will make a mess of things, sending whatever bank select and program
>>> changes are in whatever device file you are using.  This is what is
>>> causing trouble.
>>>
>>>You need a Yoshimi.rgd device file.  I've started working on one
>>> based on the banks/programs that were installed for me with Yoshimi.  So
>>> far, I have the Arpeggios, Bass, Brass, and Drums banks entered.  With
>>> this, RG and Yoshimi get along just fine for me.
>>>
>
> Hmmm, now you mention it I dimly remember something about this from about 10
> years ago! :o
>
>> I think one could automatize that a with a (python) script. If I recall
>> correctly rgd is XML (any 'specification somewhere?), can't remember how
>> default yoshimi banks/programs are stored (files IIRC?)... I could have
>> a try at it if other considered it useful (I did use lxml quite a lot in
>> the past so I'm quite ok with working on XML...) :)
>>
>> Lorenzo.
>
> The default installed set are in /usr{/local}/share/yoshimi/banks and are 
> normal
> directories of banks with instrument files in them. All the instrument files
> have a 4 digit number prefix.

Cool.. Where does yoshimi pick the bank number (e.g. Arpeggios -> 5, 
Bass -> 10).. It seems *almost* alphabetical with the exception of chip. 
Actually it would be nice to have a script which could generate the rdg 
file on a user's system :)

>
> Now I must go, I'm supposed to be several miles away in an hours time!
>

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
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] Yoshimi device file? [WAS]: Re: Bug or feature?

2016-06-16 Thread Abrolag
On Thu, 16 Jun 2016 09:16:10 +0200
Lorenzo Sutton  wrote:

> On 16/06/2016 02:13, Ted Felix wrote:
> > On 06/15/2016 06:51 PM, Abrolag wrote:  
> >> On the next startup, if I start Yoshimi first, Rosegarden connects and 
> >> resets
> >> most of the controls to (now) wrong values. Changing bank root was a 
> >> particular
> >> problem (now pretty much resolved) because it then meant Yoshimi was 
> >> pointing to
> >> completely the wrong patches.  
> >
> >Rosegarden provides support for (and works best with) device files.
> > These contain lists of banks and programs and allow Rosegarden to
> > control synths.  Without a proper device file for Yoshimi, Rosegarden
> > will make a mess of things, sending whatever bank select and program
> > changes are in whatever device file you are using.  This is what is
> > causing trouble.
> >
> >You need a Yoshimi.rgd device file.  I've started working on one
> > based on the banks/programs that were installed for me with Yoshimi.  So
> > far, I have the Arpeggios, Bass, Brass, and Drums banks entered.  With
> > this, RG and Yoshimi get along just fine for me.
> >  

Hmmm, now you mention it I dimly remember something about this from about 10
years ago! :o

> I think one could automatize that a with a (python) script. If I recall 
> correctly rgd is XML (any 'specification somewhere?), can't remember how 
> default yoshimi banks/programs are stored (files IIRC?)... I could have 
> a try at it if other considered it useful (I did use lxml quite a lot in 
> the past so I'm quite ok with working on XML...) :)
> 
> Lorenzo.

The default installed set are in /usr{/local}/share/yoshimi/banks and are normal
directories of banks with instrument files in them. All the instrument files
have a 4 digit number prefix.

Now I must go, I'm supposed to be several miles away in an hours time!

-- 
W J G

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user