Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: alexis on April 16, 2012, 10:07:32 AM



Title: Track copy
Post by: alexis on April 16, 2012, 10:07:32 AM
Hello all,

This forum needs some activity...  ;)

Just a question (maybe already asked): the "copy" command permits to duplicate a track.
Why is that a sequence attached to the source track is not copied into the new track?

Bob, any plan to release a MMA stable version soon?

Thanks.


Title: Re: Track copy
Post by: bvdp on April 16, 2012, 04:29:48 PM
This forum needs some activity...  ;)

No it doesn't. Everytime there's a post here it means that I have to reply :)

Quote
Just a question (maybe already asked): the "copy" command permits to duplicate a track.
Why is that a sequence attached to the source track is not copied into the new track?

Copy will permit you to copy a limited set of setting from different tracks. Ie, duplicate stuff from a BASS to WALK. And, in this case the sequences are not compatible. Same for some other things as well.

When I added COPY I didn't have macros. So, you couldn't do things like:

     Arpeggio Voice $_Bass_Voice

and COPY was a way around that.

You should be able to do:

     Bass-2 Sequence $_Bass_Sequence

But it doesn't work :) Guess I better fix that :)

Quote
Bob, any plan to release a MMA stable version soon?

Well, apart from the bug I just found ... I think the current beta is pretty solid. I really suggest using this one.


Title: Re: Track copy
Post by: bvdp on April 16, 2012, 05:59:42 PM
Okay, that was a simple fix. Just a matter of changing line 1840 of pat.py to read:

            s.append("%.0ft " % p.duration)


Note, we just inserted 't' after the '.0f'.

This changes the resulting pattern durations to MIDI ticks and that can be recompiled.


Title: Re: Track copy
Post by: alexis on April 17, 2012, 11:51:41 AM
Quote
Copy will permit you to copy a limited set of setting from different tracks. Ie, duplicate stuff from a BASS to WALK.
Here is what I read in MMA official manual (p. 183): The COPY command only works between tracks of the same type.
Isn't there a contradiction?!
IMHA, copy should copy everything (including sequence), but work only with tracks of the same type.
And macros would be used for tracks of different types.
This is the more "natural" behavior.

Quote
You should be able to do:
Bass-2 Sequence $_Bass_Sequence
But it doesn't work :) Guess I better fix that :)
In addition of a full-fledged copy command, this would be cool.

Best,

Alexis


Title: Re: Track copy
Post by: bvdp on April 17, 2012, 04:38:37 PM

Here is what I read in MMA official manual (p. 183): The COPY command only works between tracks of the same type.

You are correct. I have no idea what drug I was on yesterday :) Nor do I have any idea why I set it up like I did. It should be much easier to duplicate/copy the entire mess ... including the sequence.

Let me look at this. IIRC, copy was a very early command and never really got updated.

Quote
Quote
You should be able to do:
Bass-2 Sequence $_Bass_Sequence
But it doesn't work :) Guess I better fix that :)
In addition of a full-fledged copy command, this would be cool.

That does work now with the 1 character patch from my previous post.


Title: Re: Track copy
Post by: bvdp on April 19, 2012, 11:20:17 PM
The next test version of MMA (probably the week of April 22) will have an enhanced copy command. I've rewritten it so that it copies the same same data as the groove commands. Keeps the mind a bit less befuddled :)

But, the neat part is that you can now grab a track from an existing groove in memory or on disk using an extended notation:


    Chord-new copy Chord-old  /// in memory track
    Chord-new copy ballad::chord   /// from the groove ballad
    chord-new copy ballad:balladsus::chord   ///  chord track from the groove balladsus in the the FILE ballad

The last one could just as well use "balladsus::chord". See the manual: Extended Groove Notation.

I think it's working now, but I want to test a bit more :)





Title: Re: Track copy
Post by: Oren on April 20, 2012, 04:50:58 PM
Glad to see you guys are working this out... :;