#sequencer

Ronnie / Rekkerd.orgrekkerd
2026-02-03
Ronnie / Rekkerd.orgrekkerd
2026-02-03

WIMS Studio updates WoodPecker MIDI Sequencer to v2.5 rekkerd.org/wims-studio-update

'sImmaculateMapleSyrupStudio

WIMS Studio WoodPecker
Ronnie / Rekkerd.orgrekkerd
2026-02-02
Sugar Bytes Looperator
Simple DIY Electronic Music Projectsdiyelectromusic.com@diyelectromusic.com
2026-01-31

TD4 4-bit Sound

Over on my other blog, I spentt a fair bit of time looking at the TD4 4-bit CPU. One of the things I wanted to do with my NAND Oscillators and Logic Sequencer PCB was hook up the address/select pins to something else. And with three select pins, allowing the choice between 8 notes, what better to connect it to, than a 4-bit CPU?

https://makertube.net/w/aroDZYM2BHYpoB9QLJvHnk

Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

If you are new to microcontrollers, see the Getting Started pages.

Parts list

The Setup

The most obvious thing in my mind, is to hook up three of the four outputs to the three selection pins of the NAND sequencer, so that is what this post explores.

The NAND PCB needs the jumpers removing, which disconnects the pot-driven oscillators. Then the three select/address lines can be connected to three of the four resistors supporting the OUTPUT LEDs of the TD4, as shown above.

It is also possible to use the POWER header pins to power the NAND PCB too.

Any of the variants of TD4 I’ve built could be used, but I’ve shown above where they would need to be connected on the original. In the end I actually soldered four header pins to the appropriate side of the resistors on my own PCB version of the TD4 as shown below. A bit crude, but it does the job.

Connecting these over to the NAND sequencer and hooking up power gives me the following.

The Code

The simplest way to create a sequence is a set of OUT xx instructions where the least significant 3 bits (so values 0 to 7) map onto the three possible notes played by the NAND sequencer.

This is the simple LED OUTPUT code from Part 3 of my series, but this continually toggles between the lowest and highest notes.

0000 OUT 0001   # 1000 1101
0001 OUT 0111 # 1110 1101
0010 JMP 0000 # 0000 1111

A counter can be used to play all 8 notes. Note that in this code B will go from 0 to 15 (b0000 to b1111) but only the last three bits select notes. This means that the sequence will count from b000 to b111 twice for each pass through this loop with the top bit being ignored.

0000 ADD B,0001  # 1000 1010
0001 OUT B # 0000 1001
0010 JMP 0000 # 0000 1111

There are only two speeds though, 1Hz and 10Hz so the above, which has three instructions, has a tempo of 20 bpm (1 note every 3 seconds) or 200 bpm (approx 3 notes every second). The tempo can be slowed down in steps of 1 second or 1/10 second by moving the JMP an instruction further down and back-filling with other instructions (ADD A,0 or b00000000 is a good one, and is essentially equivalent to a NOP).

The following code uses the INPUT as a counter in a loop to provide a partly configurable tempo.

0000 IN A        # 0000 0100    A = INPUT
0001 OUT B # 0000 1001 OUTPUT = B # Plays the note in B
0010 ADD B,0001 # 1000 1010 B = B + 1
0011 ADD A,1111 # 1111 0000 A = A + (-1) # Loops until A = 0
0100 JNC 0000 # 0000 0111 JUMP IF NO CARRY TO 0000 # Jump back to start for next note
0101 ADD A,0 # 0000 0000 Optional additional NOPs
0110 JMP 0011 # 1100 1111 JUMP to 0011 # Else keep counting

This is still only cycling through each note individually though, but that is kind of what an 8-step sequencer would do.

To get more creative with the programmability of the sequencer requires a series of OUT instructions and NOPs between them, for example:

0000 OUT 0000    # 0000 1101    OUTPUT = 0000 # Play note 000
0001 OUT 0010 # 0100 1101 OUTPUT = 0010 # Play note 010
0010 ADD A,0 # 0000 0000 A = A + 0 # NOP
0011 OUT 0001 # 1000 1101 OUTPUT = 0001 # Play note 001
0100 OUT 0100 # 0010 1101 OUTPUT = 0100 # Play note 100
0101 ADD A,0 # 0000 0000 A = A + 0 # NOP
0110 ADD A,0 # 0000 0000 A = A + 0 # NOP
0111 OUT 0110 # 0110 1101 OUTPUT = 0110 # Play note 110
1000 OUT 0101 # 1010 1101 OUTPUT = 0101 # Play note 101
1001 OUT 0011 # 1100 1101 OUTPUT = 0011 # Play note 011
1010 ADD A,0 # 0000 0000 A = A + 0 # NOP
1011 ADD A,0 # 0000 0000 A = A + 0 # NOP
1100 ADD A,0 # 0000 0000 A = A + 0 # NOP
1101 OUT 0111 # 1110 1101 OUTPUT = 0111 # Play note 111
1110 ADD A,0 # 0000 0000 A = A + 0 # NOP
1111 ADD A,0 # 0000 0000 A = A + 0 # NOP

This last programme is the one running in the video at the start of this post.

Closing Thoughts

I appear to have made a sound card for a 4-bit CPU 🙂

One thing I am quite keen to do is connect up the sequencer’s select pins to the TD4’s address lines, as I’d like to be able to have some incidental (accidental?) music that appears as a result of the CPU just running any other normal programme.

To do this I’d need to either hook into the output of the PC register or the input to the HC154 ROM decoder.

In fact, it would be really interesting to be able to hook up any sets of four signals – so the INPUT selector, or even the control decoding logic – just to see what it sounds like as the CPU is running normal code. That might require a special build of the CPU though.

I also have an address line spare of course, so it would also be interesting to use that to select between two NAND sequencers to give me a 16 step sequence.

Kevin

#4Bit #74hc4051 #nand #sequencer #td4

Rob Leaves :verified: :antifa:robleaves@norden.social
2026-01-29

Nach dem Update von #apple #logicpro auf Version 12 kommt beim Start von Logic folgende Meldung (Bild):
Kennt jemand Abhilfe? Ansonsten lieber nicht updaten!!

Ich habe mein #backup (Logic 11.2.2) einfach wieder installiert.

#daw #synth #synthesizer #sequencer #software

Fehlermeldung von Apple Logic Pro 12:
"Die App kann nicht verwendet werden, da die Authentifizierung im App Store fehlgeschlagen oder kein Netzwerk verfügbar ist.
Bitte überprüfe die App Store-Authentifizierung und die Internetverbindung."

Darunter zwei Buttons:
"Zum App Store",  "Beenden"
Simple DIY Electronic Music Projectsdiyelectromusic.com@diyelectromusic.com
2026-01-28

NAND Oscillators and Logic Sequencers

I’ve had a bit of a play with logic based synthesizes in the past, but not in anger. However I’ve recently picked up “Make: Electronic Music From Scratch” by Kirk Pearson from Dogbotic.

It is excellent and a good chunk of that is based on circuits using the CD4093 Quad NAND chip, so I’ve started messing around properly with that again for a bit.

https://makertube.net/w/tJat6R4RqNqvvExkpWTgpA

Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

If you are new to electronics, see the Getting Started pages. Or better yet, buy their book 🙂

NAND Oscillators

As shown in the book, using a Schmitt Trigger NAND or NOT gate is a good, and relatively understandable, way to get a simple oscillator going. It is almost a “Hello World” of electronic music and has been covered and repeated all over the Internet!

Here are a few good references to dig into what is going on:

Most circuits hook up a capacitor and potentiometer and there is an instant, tunable oscillator, but I’d like to see what is involved in generating specific frequencies, for a reason that might become clear later (in at least in a future blog post if not).

The All About Circuits page has a detailed breakdown of how the voltage, resistance, capacitance and frequency all relate to each other, and eventually, assuming a 50% duty cycle square wave, ends up with the following formula:

VT+ and VT- are the threshold voltages for the Schmitt trigger turning on and off. This will depend on the device in use, the supply voltage, and even the temperature (apparently) but for a CD4093, I’ve found the following extract of a datasheet:

So taking the operation at 25 degrees and 5V, the typical values are 3.3V and 2.3V respectively, but minimum values could be 2.6V to 1.4V. Putting these into the equation I can work out the constant 2ln(VT+/VT-) to be anything between 0.722 and 1.238. This isn’t particularly helpful…

Ok, so I can see why people just use tunable potentiometers…

So after some messing around with some capacitors and potentiometers, I seem to get a fairly decent range with a 1uF capacitor and 10K pot, so that is probably the way to go, using a trimpot to “tune” to notes I want.

At this point a simple monophonic keyed oscillator is possible, so that is what I’ll look at next,

The Basic Circuit

Here is a simple switched version of the previous circuit, with three “keys” and hence three possible notes.

The schematic for the above is as follows:

This makes it a little easier to see what is going on. Essentially we have three different resistor values available, but which one gets connected to the circuit is dependent on one of the switches being pressed.

In principle there could be as many switches and potentiometers as we like. And this is essentially the principle behind the Oskitone Poly555 except that is using a 555 timer circuit rather than a NAND oscillator, and actually the Oskitone has an individual, tunable, oscillator per key which allows for whole keyboard polyphony.

Note, that if two or more switches are pressed at the same time, then we’ll end up with several resistors in parallel giving a lower total resistance. This means that the resulting note would change as a result. So I guess one could argue that there are more possible notes than just three, but I’m not sure they’d be particularly useful notes…

A Step (or 8) Further

I’m not particularly interested in building a circuit with lots of switches on a breadboard, but some of the other circuits in the book have planted some interesting ideas.

Later on in the book, a few other chips are added to the mix:

  • CD4017: Decade Counter
  • CD4040: 12-Stage Ripple-Carry Binary Counter/Divider
  • CD4046: Phase Locked Loop
  • CD4051: 8:1 way Analog Multiplexer
  • CD4053: 3-channel Analog Multiplexer
  • CD4066: Quad Bilateral Switch

I won’t spoil the fun here (buy the book, I’m not linked to it – I bought my own copy, but it really is good), but it has really paved the way for me to reconsider how to use logic chips with oscillators.

What I’m interested in now is using the CD4051 analog multiplexer in place of the switches of the previous circuit, allowing me to “address” a note to be played by the oscillator.

The CD4051 datasheet has this diagram showing how it works:

This allows one of 8 circuits to be made, depending on the values of ABC, which are binary coded through the 8 values from 000 (0) to 111 (7).

The book pairs this with a CD4040 to count through the 8 values and hence produces a 8-step pitch sequencer from three chips, 8 pots, and a few passive components. But I want to drive the three address lines in a different way.

For now I’m going to connect each one up to each of the spare NAND oscillators – the 4093 has four NAND gates in total. The idea is that each of the bits will be controlled by a different oscillator, so as they go on and off in various combinations I’ll get what might feel like a fairly random selection between 0 and 7, and thus a fairly random note. I’m hoping for some interesting combinations as the they count in and out of phase.

But at this point I’m not even going to attempt to wire this up on a breadboard, so I’ve gone ahead and had a PCB built.

PCB Design

In the design I’ve included a jumper between each controlling oscillator and the sequencer, which allows the possibility of something externally controlling the sequence. I’ve also included two GND connections for use too.

I’ve also included jumper headers for power in and (audio) signal out. Note: the output signal is a 0-5V square wave signal and it is wired to the tip and shield of a TRS socket. The ring is left unconnected so either a mono or stereo lead can be used.

There are one or two silkscreen erratas on this board:

  • I managed to miss out the label for the 4051, but as I’ve put it in the name for the PCB, I’m guessing that can probably be figured out in the future, when I’ve forgotten why I designed this board…
  • I perhaps should have labelled the pots and trim pots.
  • As described below, the values for the components used for the three additional oscillators are more useful if changed.

It might have been more useful to allow the channel select jumpers to be directly jumpered to GND, allowing me to test each oscillator in isolation, by grounding the other two channel inputs. But that can be done with leads.

So, with hindsight, there is something I should have changed on this design. The three oscillators as described are generating audio frequencies, but to drive the sequences I really want them to be acting as low-frequency oscillators. To do this, the capacitors should be swapped from 100nF to something more like 22uF, and the pots are better as 100K pots.

Unfortunately this doesn’t fit so well on the PCB – well the capacitors don’t anyway. The following highlights where the capacitors should be placed, and their polarity, instead. But it should be doable.

Bill of Materials:

  • PCB
  • 1x 4051 8:1 way Analog Multiplexer
  • 1x 4093 quad NAND
  • 8x 10K trimpots
  • 3x 100K PCB mount potentiometers
  • 2x 100nF ceramic capacitors
  • 1x 1uF; 3x 22uF; 1x 47uF electrolytic capacitors
  • 1x 3.5mm PCB mount stereo TRS socket
  • Jumpers and header pins
  • 1x 14-way; 1x 16-way DIP sockets

Here is a photo of a finished build:

Closing Thoughts

This was a really nice diversion. I do like the idea of using digital signals from something to select notes, so I’ll definitely come back to that at some point.

I’m not entirely sure I have anything of particular musical interest yet. But for now, it has shown some of the principles, and the book has really set off a number of ideas about using logic chips with oscillators. So I’ll come back to that at some point too.

Kevin

#4093 #cd4051 #nand #oscillator #sequencer

Ronnie / Rekkerd.orgrekkerd
2026-01-27
Stepic 1.6 Dub Ambient Live Set Walkthrough
Ronnie / Rekkerd.orgrekkerd
2026-01-27
Polaris iOS
Ronnie / Rekkerd.orgrekkerd
2026-01-23
Noise Engineering Multi Repetitor
2026-01-23

A new one from the D*Time Zone!

Discover a journey through cold, distant skies and hidden worlds.
Listen now and step into the shadows of the cosmos.

dtime.bandcamp.com/album/a-sky

Just a  nice picture
2026-01-22

@nanopore to discontinue P2 Solo #sequencer
this is surprising, although I can imagine selling sequencer integrated with computer (P2i) is way more profitable (and you get to charge for support on annual basis), so probably P2S reduces their profit from larger sequencers significantly
regarding USB connection problems it is a stupid excuse imho because they keep selling MinIONs
we've been using P2S happily since it was released, so it's sad news!

aseq.substack.com/p/ont-p2-sol
a.storyblok.com/f/196663/x/d0d

Discontinuation of the PromethION 2 Solo
Key characteristics of the change
Product discontinuation.
Key Milestones
• Product withdrawn from sale: 30th June 2026
• New feature software support ends: 30th June 2027
• Software support ends: 30th June 2028*
• Hardware support ends: 30th June 2028*
*Customers with contracts that include support beyond these dates will be honoured in line with the
terms set out within those contracts.

#Korg has presented a new instrument at NAMM and it's the first new #instrument by Korg that I find interesting in a long time.

The #Phase8, which creates its sound by making metal reeds vibrate using magnets, and picking up the sound again.

The last Korg synth that really made me jump for joy was the Trident MK II from the late 70ties. Unfortunately I don't have it any more. I also had a Poly61m, which was decent. But the recent synthesizers by Korg didn't work out for me during the last 20 years or so.

For me, this guy in the video works as the perfect infuencer, he does the kind of stuff I like. Tangerine Dream and Klaus Schulze meet ambient noise opportunities.

Yet for almost 1k€ estimated retail prize, I'll have to continue reviewing products monthly on Thomann and thereby finally win their 1k€ voucher…

youtube.com/watch?v=mpMxHfxuNco

#synthesizer #sequencer

Ronnie / Rekkerd.orgrekkerd
2026-01-20
AKAI Pro MPC XL
Ronnie / Rekkerd.orgrekkerd
2026-01-19
HY-Plugins January Sale
Ronnie / Rekkerd.orgrekkerd
2026-01-19
Mario Nieto Novagrid
2026-01-16

A new one from the D*Time Zone!

The tracks focus on atmosphere and restraint rather than progression, letting repetition and subtle shifts shape the album. Enjoy listening and have a good weekend.

dtime.bandcamp.com/album/silen

Just a nice picture
Ronnie / Rekkerd.orgrekkerd
2026-01-15
510k SEQUND Lite

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst