Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: alexis on January 04, 2021, 05:11:00 PM



Title: [20.12] 'Tweaks DefaultDrum' not working
Post by: alexis on January 04, 2021, 05:11:00 PM
Hello all and happy new year!

I have upgraded MMA to version 20.12.
And since then, no way to set a particular drumkit.

The command:
Code:
Tweaks DefaultDrum=25

...issues:
Code:
Found MMA directory in 'C:\Program Files\mma'. Unable to execute MMA.main.py.

I checked the doc, and apparently this command is still valid.
Is this behavior intentional, and thus the command deprecated?
Or is this a bug?

Cheers,

Alexis


Title: Re: [20.12] 'Tweaks DefaultDrum' not working
Post by: bvdp on January 04, 2021, 05:24:06 PM
It's a bug :) Let me look at this later today and I'll post a fix. Sorry.


Title: Re: [20.12] 'Tweaks DefaultDrum' not working
Post by: bvdp on January 04, 2021, 05:31:45 PM
I wish all fixes were this easy!

In the python file tweaks.py please change line 36 from:

   from miditables import drumKits

to

   from MMA.miditables import drumKits
   
I forgot to include the "MMA."



Title: Re: [20.12] 'Tweaks DefaultDrum' not working
Post by: alexis on January 05, 2021, 02:32:20 PM
Problem solved!
Thanks a lot, Bob.

Maybe you can include this 'Tweaks DefaultDrum' line in the batch you launch to check there are no regresssions?


Title: Re: [20.12] 'Tweaks DefaultDrum' not working
Post by: bvdp on January 05, 2021, 03:30:51 PM
Checking for regressions is a good point. Hard to do ... there always seems to be something :)