Not sure what you are looking for. Is it some effect similar to an arpeggio going up and down through the octaves? Then your solution is good. I would just feed the three selects to the highest three outputs of the 4016 so you can hear more than a few cycles of each octave frequency.
Joined: Sep 26, 2016 Posts: 134 Location: norwich, uk
Posted: Tue Apr 17, 2018 11:45 am Post subject:
Hey, im after the output in the second drawing. So rather than 16 small pulses follow by 8 twice as big pulses followed by 4 twice as big pulses ... etc ... I was after a configuration that give 1 small pulse, followed by 1 twice as big, followed by 1 twice as big then back down again....
Joined: Sep 26, 2016 Posts: 134 Location: norwich, uk
Posted: Tue Apr 17, 2018 11:49 am Post subject:
And I think Im kind of after a sort of timbral thingy with it rather than arping.
But of course these things are cool and useful to run at audio or event rates!
Joined: Sep 26, 2016 Posts: 134 Location: norwich, uk
Posted: Wed Apr 18, 2018 11:14 am Post subject:
Ha! Cool! Is that the circuit I just posted?
I guess its easy for my circuit to go out of sync so it outputs something else. Therefore, proding the reset on the 2nd part of the 4520 should put out different pulse patterns.
And also might get some freaky peaks adding the ol' steppy triangle XOR trick to it...
Last edited by mike page on Wed Apr 18, 2018 11:45 am; edited 1 time in total
Joined: Jan 14, 2010 Posts: 6058 Location: Moon Base
Audio files: 728
Posted: Wed Apr 18, 2018 11:39 am Post subject:
I did a quick simulation with digital works and it works about 50%. I'll have to draw a timing diagram to see what exactly is happening.
Or maybe someone can use some software that does that. I was thinking about the reset too but sofar it doesn't actually seem to
matter. I think it just changes the phase compared to something else running from the same clock, but the pattern stays the same. _________________ "My perf, it's full of holes!" SoundCloudBandCampMixCloudTwitchYouTube The Golden Shrimp Guild
Joined: Sep 26, 2016 Posts: 134 Location: norwich, uk
Posted: Mon Apr 23, 2018 7:47 am Post subject:
once again wow, thanks alot! I see what you mean about 50% working, the principal is sort of there but something is wrong. I'll keep staring at it and try and figure out if it is indeed the right approach...
Joined: Jan 14, 2010 Posts: 6058 Location: Moon Base
Audio files: 728
Posted: Mon Apr 23, 2018 12:09 pm Post subject:
When I initially tried to solve it I first drew up a timing diagram to see which divisions need to be selected and when.
As you can see there is a bit of a problem which is probably releated to why your version doesn't fully work.
This is also the reason why I opted for a 4029 to do the up/down counting.
I did make a mistake in the circuit diagram: there needs to be an inverter between the carry out of the 4029 and the CLK in of the 4013.
if you do that it counts:
0000
up
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Joined: Jan 14, 2010 Posts: 6058 Location: Moon Base
Audio files: 728
Posted: Tue Apr 24, 2018 2:01 pm Post subject:
That timing diagram is also how I came up with using a priority encoder.
While I was looked at it I noticed something:
/2 needs to be selected when /4 is high
/4 needs to be selected when /8 is high
/8 needs to be selected when /16 is high
etc.
I assumed CLK (inverted) can be selected when /2 is high but I didn't really check that, hence why I am not sure if the circuit
fully works or not, I also didn't check yet if it still works correct when counting down.
anyway,
/2 is connected to input 1 of the mux so is selected with CBA = 001
/4 is connected to input 2 of the mux so is selected with CBA = 010
/8 is connected to input 3 of the mux so is selected with CBA = 011
looking at the counter that means that when its output is 001x (Q4 = 0, Q3 = 0, Q2 = 1, Q1 = don't care)
the CBA control inputs of the mux need to be 001.
when its output is 01xx CBA inputs need to be 010
when its output is 1xxx CBA inputs need to be 011
and that's exactly what the priority encoder does.
I think it is also possible to chain 2 4029 counters which would give another 4 bits that can be connected to the priority encoder.
Q2 of the encoder can then be connected to input C of the mux. _________________ "My perf, it's full of holes!" SoundCloudBandCampMixCloudTwitchYouTube The Golden Shrimp Guild
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum