@Chitch That's great !!
You are going to need a trigger here as well........
As I noticed that unless the same note is triggered twice it will not sound.
Probably (well..... definitely... ) you connected to the toggle after you connected to the message box [113(..... so the spigot is not opened until the note value has already been sent.
It is a good idea to use triggers everywhere that an object sends on to more than one other object.
Errors in the "order of operations" are the most common errors in Pd, and sometimes the most difficult to spot, or find.
Although you could just do away with the spigot and use [select 1] to reject any zeros.....!!
Corrected and simplified....... code3.pd
Prepare to learn about "abstractions" next.....
Ok...... so it's not really necessary for your patch, but when things need correcting in the same way in many places, or you want to add a dinky new tool to your note/pitch control, it makes it much easier.
Here is your patch with the note/pitch bit as an abstraction.
It is as simple as can be..... and an introduction to the power of abstractions........ that were called "sub-routines" in the 1970's when I was at Uni (punch cards and ticker-tape) and are now generally called "libraries".....