Author |
Message |
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Sat Aug 10, 2019 11:53 am Post subject:
|
|
|
Meanwhile had implemented it differently (might change it still .. but having a few extra constraints .. as I'm wanting to use it in the Sieve module ... so I can type stuff there like:
Code: | hanoipegs2 * random( 0.5) |
to get a random element pick from the p sequence (the peg sequence is made of from the differences from its p sequence)
or:
Code: | prime * hanoipegs2 + random( 0.3) * hanoipegs1 |
for some other weird stuff.
the peg1 are the non alternating sequence and the pegs2 is the alternating one .. btw),
As want it to BEEP <now>
The recursive stuff I now use is not actually too bad .. as I can pre-compute the sequence as in practice it will never get longer than 1024 elements (current module constraint).
_________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
Posted: Mon Aug 12, 2019 11:42 am Post subject:
|
|
|
I just had another look at the other video which goes into a restricted tower of hanoi verion.
With the previous unrestricted version it is allowed to move between all pegs, so: A<->B, B<->C, C<->A
With this restricted version it is only allowed to move between adjacent pegs, so: A<->B, B<->C
The solution is very similar to the unrestricted version with the difference that instead of counting in binary you now have to count in
ternary (base 3). So a disc is moved when it's corresponding trit (ternary bit) changes from 0 to 1, or 1 to 2.
I think a discrete logic version might be very tricky to do but maybe there is some easy solution.
The first problem is just counting in ternary. A binary counter is easy to make by chainging 2-step counters (flip-flops), which you can
get prewired in a single package (like CD4040, CD4060, CD4520). For a ternary counter you'd have to chain 3-step counters, which
would already require a seperate counter per disc. But there is another problem; trits. With digital logic you only have 2 possible states; 0 or 1,
there is no third state. You could use something with a tri-state output and add some resistors to create a voltage between 0 and 1, but this
can't be directly connected to another input. (hmm, that could actually be useful for the output of a lunetta synth and it also makes me curious
about ternary logic, assuming something like that exists). So you'd have to use 2 or 3 bits to represent a trit. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Mon Aug 12, 2019 12:11 pm Post subject:
|
|
|
Ternaries .. oh dear .. wild puzzle .. just had a look at the Wiki page for it ... they have 6 models to choose from ... 27 distinct single trit operations and 19683 distinct two input operations ... anyway, maybe the 0, 1, 2 model would be most suitable for this puzzle. _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
Posted: Wed Aug 14, 2019 5:50 am Post subject:
|
|
|
Blue Hell wrote: | Ternaries .. oh dear .. wild puzzle .. just had a look at the Wiki page for it ... they have 6 models to choose from ... 27 distinct single trit operations and 19683 distinct two input operations ... anyway, maybe the 0, 1, 2 model would be most suitable for this puzzle. |
yeah I looked into it a trit too, it doesn't seem to be very practical (in hardware) but I might open a seperate thread for it.
here are the disc and peg sequences for a restricted Tower of Hanoi (3 discs)
Code: | D: 1 1 2 1 1 2 1 1 3 1 1 2 1 1 2 1 1 3 1 1 2 1 1 2 1 1
P: B C B B A C B C B B A B B C A B A C B C B B A C B C |
Unlike the unrestricted version the discs now all move in the same direction and pattern, just a factor 3 slower, which isn't really surprising.
I haven't really done much else with it but I have some ideas on how to make a circuit for it, _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
Posted: Fri Aug 16, 2019 7:26 am Post subject:
|
|
|
I gave up on the restricted version (for now). It's possible of course but it looks like it would just require too many chips.
I did breadboard the unrestricted Hanoi Sequencer V2 and that one seems to be working .
I added 6 extra buffers (CD4050); 3 for the peg outputs, 2 for even/odd outputs and 1 extra output for the start/end
when no discs are moved. This was easy to add because it is just the signal that controls pin 6 of the CD4053.
Here's a demo video. Yellow LEDs are the 8 disc outputs (0 on the right), the green LEDs indicate even/odd, red LED is
start/end and the orange LEDs are the 3 peg outputs (A on the left). The 3 red LEDs in the bottom left corner are connected
to the 3-step counter. (background music: Luna Supreme (Part II))
( https://streamable.com/mbpr9 ) _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Fri Aug 16, 2019 11:51 am Post subject:
|
|
|
Nice!
That other restricted thingie seemed a bit over the top yeah from what you said in chat. _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Mon Sep 16, 2019 10:21 am Post subject:
|
|
|
_________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
diablojoy
Joined: Sep 07, 2008 Posts: 809 Location: melbourne australia
Audio files: 11
|
Posted: Thu Sep 19, 2019 1:56 am Post subject:
|
|
|
nice work
sounds really interesting _________________ In an infinite universe one might very well
ask where the hell am I
oh yeah thats right the land of OZ
as good an answer as any |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
|