[yoshimi] Re: More code stuff

  • From: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Fri, 17 Aug 2018 11:04:52 +0100

On Thu, 16 Aug 2018 22:36:31 +0100
Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx> wrote:

On a brighter note, I discovered this when starting to prepare the CLI for
reading min, max and default settings.


Well! This is turning out to be *far* easier than I expected - that's almost
worrying :)

All the formal controls can new have there limits checked in exactly the same
was as set and read, so:

max vol
returns:

Max - learnable - 127.000000

min part 0 shift
returns:
Min -36.000000

/def part 4 pan {going from top level again}
returns:
Default - learnable - 64.000000

Eventually, we'll trim off trailing zeros for integer values.

The icing on the cake is that you can use exactly the same process to MIDI
learn the controls.

From the last position:
 ml vol
returns:
Learning {eventually we'll add what it is learning}

Then when you move a MIDI controller you'll get:
Learned
CC 71  Chan 1  Part 4 Volume

As you can see I moved controller number 71 on channel 1

Currently you can't cancel a learn command from the CLI, as all other CLI
entry is blocked what in the learn state. If you change your mind you have just
move any controller, then use the pre-existing 'remove' command to get rid of
the unwanted entry.

So it's all there, but the rough edges need trimming, and the CLI controls
still need to be greatly expanded.

Have fun :)

-- 
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.
Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: