And for "hands" with an arbitrary number of fingers:

NB. eg Homer Simpson plays a three-fingered scale twice
   ($(,|.@}:@}. )@:>:@i.@}.) 5 3
1 2 3

2 1 2

3 2 1


NB. If Paul the Octopus doesn't omit any limbshe can manage a whole octave
<:($(,|.@}:@}. )@:>:@i.@}.) 4 8

0 1 2 3 4 5 6 7

6 5 4 3 2 1 0 1

2 3 4 5 6 7 6 5

4 3 2 1 0 1 2 3


It's interesting that this representation can show certain numbers of complete scales for Homer or Paul (eg 12321 for Homer) but not for Mike:

    |:($(,|.@}:@}. )@:>:@i.@}.) 20 3  NB. transpose to save space

1 2 3 2 1 2 3 2 1 2 3 2 1 2 3 2 1 2 3 2

2 1 2 3 2 1 2 3 2 1 2 3 2 1 2 3 2 1 2 3

3 2 1 2 3 2 1 2 3 2 1 2 3 2 1 2 3 2 1 2

So this can show 2 full scales, in 3 rows (columns here),or 5 in 7, or 8 in 11 etc....


|:($(,|.@}:@}. )@:>:@i.@}.) 20 4 NB. eg Mike can only "finish" on 2 or 4

1 3 3 1 3 3 1 3 3 1 3 3 1 3 3 1 3 3 1 3

2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2

3 1 3 3 1 3 3 1 3 3 1 3 3 1 3 3 1 3 3 1

4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2


Thanks, Kip!

Mike

On 27/06/2014 07:50, Kip Murray wrote:
That's what I was thinking of.  Quick work!  --Kip

On Friday, June 27, 2014, robert therriault <[email protected]> wrote:

Hi Kip,

I came up with

    6 4 $ 1 2 3 4 3 2
1 2 3 4
3 2 1 2
3 4 3 2
1 2 3 4
3 2 1 2
3 4 3 2

Are you looking for a deeper pattern?

Cheers, bob

On Jun 26, 2014, at 10:18 PM, Kip Murray <[email protected]
<javascript:;>> wrote:

Hold up your right hand with its back toward you and number the
forefinger
through little finger 1 through 4.  (I suppose the thumb has index 0.)
  Now
try finger tapping this pattern:

1 2 3 4
3 2 1 2
3 4 3 2
1 2 3 4
3 2 1 2
3 4 3 2

Write a J expression to produce this pattern.

--Kip Murray


--
Sent from Gmail Mobile
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm





-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4592 / Virus Database: 3986/7751 - Release Date: 06/27/14

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to