Step-sequencer/synthesizer
« on: November 25, 2019, 09:29:51 AM »
Sup GDIY,

I was envisioning another project and came across 5-stage decade counters (IC's that count to 10)

Earlier I had prototyped a synth project which used an Arduino with PWM but it had very limited connectivity (and quite possibly poor serviceability)

Upon further investigating I read it's possible to cascade counter IC's and as I have been thinking for quite long time of building a clone TB-303 (from kit, now it's from scratch as I already own a reissue TB-03 and most of the x0xb0x kits are discontinued) I thought it would be a nice project.

Basically, the device would use a NE555 timer which feeds the clock inputs of cascaded decade/octal counters (CD4017BE or 4022 for example) at an adjustable tempo (I built a metronome back in school which I recall uses the 555) so that while one counts it disables the other(s) by pulling the enable pin(s) high.

Each of the outputs would have a fader for adjusting the control voltage (note pitch) to an oscillator (another NE555, CEM3340 etc) and a mute switch as well as a step indicator LED in parallel. I was thinking a capacitor in series with either the timer or the outputs for adjusting the note length.

Other stuff I was thinking was:

-external clock input (A/B switch between the timer and an input jack)
-CV output
-reset
-low-pass filter (and an opamp to buffer the output)
-selectable waveform
-a more sophisticated system would use a counter per 4 steps instead of 8 as they perform a high/low cycle in the Carry out pin during the count (this removes the need to connect each individual step to the Enable pin)

Stuff I'd imagine that can go wrong:

-it only "ticks", ie. the control signals are too short; the capacitors could save this but the discharge characteristics can make it wildly unstable (or funky, who knows..) I have no prior experience working with counters to be honest.
-too low/high voltage PSU; I've read some theory behind analog 1V/octave synthesizers and while the IC's typically function in the 5-18V range the oscillator circuits require much less, ie. it may lack resolution to produce musically accurate results. To control one or two octaves with a 40..80mm fader isn't quite accurate but stuffing a huge step switch and a bank of 12-24 trimmers per 16 steps in a case is a soldering nightmare.

I hope someone gets my point here.. I can scan a drawn schematic for clarification (I have no access to a CAD for the time being)

Any thoughts?

-ef

PS. Here's a link to the original Arduino forum dev thread. I also came across a very similar DIY kit in Sparkfun (the SparkPunk Sound kit and the SparkPunk Sequencer kit, there's also a seemingly popular Atari Punk Console project hovering around the internet)

PPS. Regarding the initial design it's very simple, kind of like two bums fighting to a classic timer IC. The clock running into a 1-to-4 demultiplexer (74HC139 or 4052B for example) triggered by the 4th step of a counter and held high by the Carry out would be more sound because connecting the steps to the Enable pins sums them which may introduce crosstalk, this could be however fixed with diodes or summing resistors.
« Last Edit: November 28, 2019, 12:55:53 PM by efinque »


Re: Step-sequencer/synthesizer
« Reply #1 on: November 27, 2019, 07:48:58 AM »
Here's a quick sketch..



EDIT : another idea is to feed the clock into a 4-bit binary counter that cycles the outputs of a 1:16 demultiplexer which would simplify the sequencer greatly; however I read about propagation delay with such circuits (and cascading in general). Stuff it's missing is start/stop, CV out prior the oscillator and the enable/reset of the counters/demux.
« Last Edit: November 27, 2019, 09:59:28 AM by efinque »

Re: Step-sequencer/synthesizer
« Reply #2 on: November 27, 2019, 10:03:35 AM »
Hello

Did you have a look at MidiBox seqV4+ ?
Not a synth but for the sequencer side it look great...especially with the CV/Gate extender

Best
Zam

Re: Step-sequencer/synthesizer
« Reply #3 on: November 27, 2019, 11:15:32 AM »
Did you have a look at MidiBox seqV4+ ?

No.. but it looks interesting as it has MIDI and LCDs meaning it uses a MCU. I've built an Arduino sequencer but it was capable of control voltages 5V max at 50mA which isn't enough to drive LEDs and an oscillator (without buffering, relays or optocouplers). I was also told that the AVR instruction set has something called timer interrupts which cause the MCU to stop executing code while it PWMs.

There are lots of 16/32-step sequencers commercially available but I'd like to build my own just for the sake of experimenting. Internally, this thing would use voltages around 9..15V to keep things stable (and because the ICs allow it, I guess it's easier to start with a moderately high signal and bring it down to the desired level than try to buffer a weak one)

I'd estimate the oscillator alone to have a 1/3rd voltage drop (according to the datasheets it's very close but temperature/duty cycle-dependant) hence the buffer.

Another thing is the clock may run hot (or go into hysteresis/self-oscillation) at voltages above 9-12V although it's a bit more forgiving due to the low frequency pulse (~1-6Hz which equals 60-360bpm or 30-180bpm) but the oscillator would have to do C1..C2 which is as low as ~32Hz meaning the control voltage it gets is in the range of 1-2V making it prone to ripple voltages etc (which is why I'm trying to design the circuit to have minimal crosstalk) At low frequencies it may be inaccurate, whereas at higher frequencies it may become unstable.

The low-pass filter also attenuates the outcoming signal a bit (but it smooths out square waves for example, although I read the 555 set as an oscillator can produce saw waves via a discharge capacitor)

Other things it needs/may need is master volume, CV out and master tune (and/or internal trimmers per step for fine-tuning)

As for how the sequencer would work I have no idea, but 8-step is always doable in case the demultiplexed counters won't function properly.

EDIT : as in the schematic the counters use the carry out pulse to keep the demux in the correct state; the output switching relies on the 4th step of the counter triggering one of the select inputs but I'm afraid it will not hold until the next clock pulse without a latch or a timing capacitor, although I remember seeing demuxers with internal latches. The last step of the sequence could use a solid-state relay to disconnect the carry wire to the demuxer which "resets" it by setting the sel inputs' state to 000 (the first counter)

EDIT 2: originally I was designing a modular, pressure-sensitive LED dance floor which uses a decade counter as a chaser (I found several circuits for this) but later on came across CD4022B 4-stage octal counters which would suit the sequencer better
« Last Edit: December 12, 2019, 08:29:08 AM by efinque »

Re: Step-sequencer/synthesizer
« Reply #4 on: November 29, 2019, 02:59:02 AM »
I also sketched a simple 8-bit memory module..



EDIT : basically it encodes the incoming voltage to binary at certain thresholds (10000000 would be 1V, 11000000 is ~1,12V and so on) via the resistor bank which acts sort of like a VU meter, writes the serial bits to the registers one by one and outputs them in parallel to the VCO. It's missing the register clock (shift from serial write?) as well as read enable and perhaps counter resets but I hope someone understands the idea (I noticed the 1:16 register demux bus is decimal but it should be binary, my mistake)

EDIT 2: to cover an octave it needs to be at least 12-bit which means scaling up the ADC (labeled as write bus) and the registers, otherwise it interpolates, ie. divides the 12-note octave by 8 which isn't musically very accurate but interesting from a technological viewpoint (my hypothesis is that at low bit depths the memory turns it into an "instant trepak"-generator). The problem is the tempo clock running at 8Hz requires the ADC timer to have a clock frequency of 96Hz to sample all the 12 bits, whereas addressing the ADC in parallel to the registers requires a very sophisticated/complex circuit (in theory a very large 12:192 address bus built from twelve 16ch demuxers that feed 12-bit parallel-in-parallel-out registers) but I belive many programmable sequencers on the market use a look-up table instead.

EDIT 3: another solution would be to use a 12-segment LED driver/VU-meter (two cascaded LM3914 IC's?) in dot mode or a keyboard/input interface to fetch a byte value from DIP switches or a programmable ROM lookup table (0001 being C, 0010 being C#, 0011 D and so on) via a 4:64 demux to address the 4-bit byte to one of the 16 registers based on the threshold voltage; this eliminates the need to use caveman binary to store values but requires a DAC (a 4-to-16 line decoder/dx through a resistor bank?) to decode the values back into the corresponding 12 voltage levels (making it 4-bit)
« Last Edit: December 04, 2019, 06:34:22 AM by efinque »

Re: Step-sequencer/synthesizer
« Reply #5 on: December 11, 2019, 07:59:21 AM »
Here's a revised version..



It's missing the register clear, LEDs, start/stop and an ADC for external CV among other stuff.

EDIT : or, replace the sequencer/register with the Arduino and use the input system to address notes to memory locations; code-wise by declaring an array and looping it in sequence. It'd use:
-5 digital input pins to cover 2 octaves
-another 4 to address the memory (I tried this with analog in but it didn't store the byte)
-4 to demultiplex 16 LEDs
-one to PWM the output (14 in total)
-a few analog pins for note length/tempo, start/stop etc

However, mine's already inside an optocompressor and I don't have a PC or a workshop to prototype it.

EDIT 2: yet another idea is to implement a simple 8-step drum machine; either a separate octal counter(?) triggered by every 2 cycles or use the odd steps of the existing sequencer (which may draw too much current from the register voltages causing them not to output) into 3x8 bank of slide switches which feed a sine wave oscillator for kick and 2 high-passed white noise generators for snare&hi-hats (with envelope controls), also I was thinking a phrase sampler (ISD1820?) with step-activated recording
« Last Edit: December 18, 2019, 01:03:33 PM by efinque »

Re: Step-sequencer/synthesizer New
« Reply #6 on: December 19, 2019, 09:24:54 AM »
Here's an updated version..



EDIT : to further improve it there could be a separate counter for the drum machine with a ripple clock to divide the master clock by two (one pulse per 2 cycles) The catch with the demux/RS latch/octal counter sequencer is the carry outs which can be used to perform various tasks (sampler etc)

EDIT 2 : forgot mute switches for the synth/drum tracks and minor stuff like start/stop, note length etc.. I think the drum machine also needs either diodes or a separate sequencer in order not to short into the synth steps.
« Last Edit: April 19, 2020, 12:54:31 PM by efinque »

shabtek

Re: Step-sequencer/synthesizer
« Reply #7 on: December 20, 2019, 10:17:40 AM »
thanks for this food for thought.
I don't think I need another project  but have had something like this in mind to build with the kids
"really fine players do not use stomp boxes or master volume, they match the amp to the room and turn it up to 11.  Stevie Ray, BB King, Albert King, Duane Allman, Dicky Betts, Louis Armstrong"
   -CJ

Re: Step-sequencer/synthesizer New
« Reply #8 on: December 20, 2019, 11:56:52 AM »
thanks for this food for thought.
I don't think I need another project  but have had something like this in mind to build with the kids

This isn't a tested circuit so there's no guarantee it works but feel free to breadboard it.. I'm not able to for the time being.

Here's a quick BOM:

-NE555 timer
-1..10k lin pot for tempo adjust
-1/4" jack for ext clock
-SPDT switch for clk source
-4051B 8ch demultiplexer
-4x 4022B octal counters (or two if there's no need for the carries)
-4043B quad RS latch for latching the counter demux
-16x LEDs for step indication
-16x slide switches for step mute

-12x 4-pin DIP switches & push buttons (for notes)
-16x 4-pin DIP switches & buttons (to address registers)
-4-pin DIP switch & button for clear (or use programmable ROM chips)
-4x 4067B 1:16 demultiplexers
-16x 4035B PIPO 4-bit shift registers
-4514B 4-to-16 line decoder
-12x resistors/trimmers for the VCO input voltages from the decoder (I was thinking those blue 10-turn Cermet trimmers)
-1k lin pot for master tune
-a VCO chip (NE555, 4046B, CEM/AS3340 etc)
-10k lin/log pot (for the LPF)
-a ~10..100uF/25V capacitor
-10k log pot for output vol
-1/4" audio jack for output

-74HC163(?) ripple counter (clocked from the timer)
-SPDT switch to toggle the output
-4022B octal counter
-24x slide switches for the drum machine (or 32 if there's a sampler)
-8x LEDs
-2x white noise generators for snare&hh (TL071?)
-2x ~10..100nF series capacitors (for HPF)
-2x shunt resistors
-a sine wave generator for the kick (NE555?)
-series resistor (for LPF)
-shunt capacitor (~100uF/25V or so)
-3-4x slide switches for drum track mute
-DPDT switch for toggling the audio output
-ISD1820 or a similar edge-triggered record/playback module (opt)
-1/4" audio jack

-start/stop/reset button
-IC sockets (5x DIL8, 1x DIL14, 23x DIL16, 5x DIL24 or so)
-jumper wire, connectors
-perfboard etc for assembly
-a case
-pot caps (for tempo, master tune, synth filter, output etc)

-9-12VDC PSU (SMPS etc)
-IEC power socket
-power button

That's about it.. I'm sure there's a lot of stuff missing though. It does look good on paper however and I estimate the parts cost around 150-200 in EUR; while it may sound tempting it could well mean weeks (or months) of labour and troubleshooting (note that I have very little experience working with logic level/CMOS IC's)

EDIT : it's a bit Roland MC-202/303-esque with the drum machine/sampler added.. to give it a more groovebox feel one could add an effect unit or an overdrive in the output but I think the core functionality is there (it could use a 12-LED display for note values from the decoder I think)
« Last Edit: April 13, 2020, 08:26:00 PM by efinque »

Re: Step-sequencer/synthesizer New
« Reply #9 on: January 04, 2020, 10:34:28 AM »
I think many drum machines benefit from a compressor so I sketched a simple VCA compressor... any thoughts?



EDIT : in short the audio signal enters via a smoothing capacitor and is split into two; the control signal which is buffered, low-passed and fed into a peak/level detector IC in dot mode which gives us voltages in increments determined by the resistor bank that charge a capacitor, which discharges once it reaches the zener voltage of the diode while the decoupling capacitors act as an energy reservoir for the VCA. The other signal is passed on to the VCA itself which then enters a Thiele network that blocks DC and forces it to the parallel resistor. I actually copied several ideas for this circuit, the decoupling/Thiele network came from a LM3886 power amplifier instructable, the capacitor/zener diode I figured out from the way a camera flash would work and the rest of the VCA circuitry is based on ESP designs (project 67 which I built a while ago) As for the exact component values I have no idea, but I'd pay attention to C1 so it doesn't high pass the signal too much, and the zener diode which should be fairly safe in the 3..5V range I guess. Other considerations are the feedback circuitry (so the IC doesn't go into self-oscillation) and the decoupling capacitor (and C2) values which determine the compression characteristics, as well as the Thiele network inductor value so it doesn't get too boomy or pick up RF.

EDIT 2 : poor man's version would replace the driver IC with a peak detector/Schmitt trigger circuit (or just a pot, another zener etc) and use a sidechain from the bass drum, replace the opamps with transistors and so on but it's there (for future purposes, who knows) although space could be an issue
« Last Edit: January 05, 2020, 04:11:52 PM by efinque »


shabtek

Re: Step-sequencer/synthesizer
« Reply #10 on: January 04, 2020, 04:25:33 PM »
not sure about that compressor --the theile network will not block dc, a cap in series like c1  will act as a ac couple/dc block

does dot/bar chip expect dc input signal?  are they still available?
 I am not sure I understand the cv design with series cap to zenner or quite how the bargraph driver is supposed to work

http://www.thatcorp.com/datashts/dn112.pdf shows an idea of an array of comparators with suitably scaled resistor string to output 'dots' with a log-ish response
"really fine players do not use stomp boxes or master volume, they match the amp to the room and turn it up to 11.  Stevie Ray, BB King, Albert King, Duane Allman, Dicky Betts, Louis Armstrong"
   -CJ

Re: Step-sequencer/synthesizer New
« Reply #11 on: January 04, 2020, 07:09:18 PM »
not sure about that compressor --the theile network will not block dc, a cap in series like c1  will act as a ac couple/dc block

Wouldn't a series cap create a HPF? Anyway, these are just "ideal" circuits/applications that could be of use in a device like this (filtering, impedance matching etc)

Quote
does dot/bar chip expect dc input signal?  are they still available?

It's a "logic" IC so I assume it uses DC for power, what the Vin+/- inputs see the IC splits in preset increments and in dot mode passes a logic high (depending on the IC supply voltage which is usually in the range of 7..12V minus voltage drop so ~5..9V) to one of the outputs. I'm too lazy to dig up datasheets but they usually have an input pin for sensitivity control, as for how "accurate" it is in practice is another thing (think 150mV resolution at best)

At high volumes the total R values are high so the voltage from the driver IC would be lower which "ducks" the VCA by giving it less power (or no power at all) and with low volumes the R values are low so the VCA runs at "full tilt" which may introduce distortion (one thing I didn't think of is what happens when the peak detector is idle as it doesn't provide any current to the VCA?)

It's a very "standard" IC used by hobbyists etc so availability shouldn't be a problem (I even recall that my Omnitronic VU meter which I once out of curiosity opened has same-y ICs that drive LEDs), I'm quite sure there are specialized ICs but I designed the circuit for use in a number of other applications too (standalone, speaker processing etc where it could be used to drive LEDs for metering as well)

Quote
I am not sure I understand the cv design with series cap to zenner or quite how the bargraph driver is supposed to work

The cap/zener is there to "enhance" the overall performance. I was going after a sort of pumping effect as the VCA requires a certain amount of power; otherwise it won't work (the idea was to load the cap with voltage peaks so the zener gives short bursts of current to the VCA when the bass drum hits).. but it could possibly (with the right combination of components) do the exact opposite (this however depends on the program material presented to the circuitry)

I'd imagine it does require some careful matching of components to keep it in the "sweet spot" so it isn't exactly a fire&forget-type of compressor (edit : which it in this case should be) but the feedback control lets the user to adjust the CV (the decoupling capacitors provide some additional power for the VCA when the diode isn't conducting, ie. the "zener" cap isn't charged at high volumes or when the driver IC is idle)
« Last Edit: January 05, 2020, 11:51:34 AM by efinque »


 

Related Topics

  Subject / Started by Replies Last post
11 Replies
3525 Views
Last post June 23, 2004, 06:42:18 PM
by jaotao
9 Replies
2997 Views
Last post November 02, 2005, 07:21:55 PM
by JW
7 Replies
3963 Views
Last post April 26, 2007, 07:09:09 PM
by moamps
How to build a stereo 2254c step by step

Started by reanimatorstudio « 1 2 » The Lab

27 Replies
16976 Views
Last post March 30, 2012, 04:16:22 AM
by khstudio