Kara-Moon Forum
March 28, 2024, 09:39:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: On/Off  (Read 6695 times)
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« Reply #15 on: December 12, 2019, 05:52:39 PM »

The way I see it is that it is confusing Smiley

Firstly, we have track names. A name can be DRUM or DRUM-FOO. If I could go back in time, apart from solving world peace, I would have done this differently. But, for now we have to accept that a name can be DRUM or DRUM-FOO.

Secondly, we get into types. The types are DRUM, CHORD, etc. and they should not be confused with names.

So, gettng back to the docs ... Probably having the line read:

 You can use the command with or without a track modifier/name (depending on the context) as the second
    argument:


But, thinking more I'm thinking that the section should be replaced with:

Everything after AllGrooves is interpreted as a legitimate MMA  command.

  AllGrooves Volume p

or

  AllGrooves Chord Octave 5

  A warning message will be displayed if the command had no
effect.


  
« Last Edit: December 12, 2019, 05:58:15 PM by bvdp » Logged

My online life: http://www.mellowood.ca
sciurius
Sr. Member
****
Posts: 443



« Reply #16 on: December 12, 2019, 06:30:10 PM »

Actually this looks clear to me:

Everything after AllGrooves is interpreted as a legitimate MMA  command.

The syntax definition is AllGrooves MMA-Command. So the command

AllGrooves Chord Octave 5

sets the octave to 5 for track Chord (and only Chord, not Chord-Foo etc) in all grooves.

So this is different from AllTracks, that has the definition AllTracks OptionalChordType MMACommand.

AllTracks Chord Octave 5

affects tracks Chord, Chord-Foo and so on.

So, if desired, you can write

AllGrooves AllTracks Chord Octave 5

to set octave to 5 for tracks Chord, Chord-Foo and so on.
Logged
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« Reply #17 on: December 13, 2019, 02:08:46 AM »

It would never occur to me to use Alltracks inside of a Allgrooves ... but it works Smiley Here is my, hopefully final cut of manual section:
Code:
The ALLGROOVES command operates by applying its arguments to each GROOVE currently defined. This includes the environment you are currently in, even if this is not a defined GROOVE.

Everything after ALLGROOVES is interpreted as a legitimate MMA command. The syntax definition for ALLGROOVES is “Allgrooves MMA-Command”, so

AllGrooves Chord Octave 5

sets the OCTAVE to 5 for track Chord (and only Chord, not Chord-Foo etc) in all grooves.

Note: this is different from the ALLTRACKS, here, command which lets you specify tracks for track types. Or course, there is nothing to stop you from combining these with something like:

ALLGROOVES ALLTRACKS CHORD OCTAVE 5

the results of which are left as an exercise for the reader.
Logged

My online life: http://www.mellowood.ca
sciurius
Sr. Member
****
Posts: 443



« Reply #18 on: December 13, 2019, 07:34:03 AM »

Looks good!

Nitpick: AllGrooves doesn't accept any valid command. This is refused:

    AllGrooves AllGrooves Volume -10

 Smiley Smiley Smiley
Logged
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« Reply #19 on: December 13, 2019, 04:41:37 PM »

well, at least there is a nice error message Smiley
Logged

My online life: http://www.mellowood.ca
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.045 seconds with 19 queries.