Author |
Message |
douthet
Joined: Apr 03, 2015 Posts: 8 Location: Canada
|
Posted: Sat Apr 04, 2015 12:09 am Post subject:
Need help with polyphonic Cmos 40106 project |
 |
|
I am currently trying to create a full polyphonic cmos 40106 synth with these features:
- Polyphonic(40106 cmos chip)
- (If possible) Square, Triangle, Sine, Saw wave (switch between them if possible)
- Cut Off Filter (Low Pass/ High Pass)
- Volume
- Envelope ADSR (I only really need attack and release)
Could anyone offer any schematics they have found on any of those features? And where to acquire the parts for that synth. Also your suggestions and help on how to go about this would be greatly appreciated!
I am using an old Thomas Compucon Alpha 1 organ for the keybed, I can give pictures of the perfboard used in the organ if needed. I got the idea from the C-MOnSter synth https://www.youtube.com/watch?v=PdIKnMvOMps[/url]
Thanks! |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Sat Apr 04, 2015 11:02 am Post subject:
Re: Need help with polyphonic Cmos 40106 project |
 |
|
douthet wrote: | I am currently trying to create a full polyphonic cmos 40106 synth with these features:
- Polyphonic(40106 cmos chip) |
That is an option but I would advice you to use double inverter oscillators instead using standard inverters (not a schmitt trigger one).
These oscillators are more stable and not dependent on the supply voltage. You will however need 4 chips instead of 2 to create 12
root notes. Another option would be to use 1 very high frequency oscillator and divide it down to get the 12 notes. more info about
that can be found here and here.
Quote: | - (If possible) Square, Triangle, Sine, Saw wave (switch between them if possible) |
not impossible but because all the notes are created by digital dividers that need a squarewave as input you would need
waveshapers for every note, which is a lot! Also turning a square into a saw or triangle isn't very easy but you could
create stepped waveforms.
Quote: | - Cut Off Filter (Low Pass/ High Pass) |
There are a lot filter circuits that can be used. In this case 1 filter on the output would work. Unless you want it polyphonic but than
you would need a seperate filter for each note, which again is a lot!
volume control is pretty easy to add just a simple attenuator will do the trick.
Quote: | - Envelope ADSR (I only really need attack and release) |
see filter. You could take a look at the Lun-A-Key for some inspiration on how to connect it. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
 |
douthet
Joined: Apr 03, 2015 Posts: 8 Location: Canada
|
Posted: Sat Apr 04, 2015 11:54 pm Post subject:
|
 |
|
Thanks for the reply and the advice! What chip would you recommend for the double inverter, what model? Also how would you assign the 12 roots notes to your keys? Is there still a need for a 4040 divider? Is there any schematics on that?
I am using a key bed with 44 notes.
thanks again |
|
Back to top
|
|
 |
umschmitt

Joined: Jun 29, 2011 Posts: 189 Location: brrlin
Audio files: 11
|
Posted: Sun Apr 05, 2015 4:06 am Post subject:
|
 |
|
Hi! The guy from the video you posted is Cynosure here (and a site admin!). You could consider contacting him if not already done… _________________ ::U::N::S::C::H::N::E::L::L:: |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Sun Apr 05, 2015 4:21 am Post subject:
|
 |
|
douthet wrote: | Thanks for the reply and the advice! What chip would you recommend for the double inverter, what model? Also how would you assign the 12 roots notes to your keys? Is there still a need for a 4040 divider? Is there any schematics on that?
I am using a key bed with 44 notes.
thanks again |
for the oscillator inverters you could use the CD4069 or CD4049. My personal preference would be the CD4049
because it can output a little bit more current. But since you will only have to drive the dividers the CD4069
should be fine and it might draw less power. Or you could the 74HC04 but then you're limited to a 5V supply voltage.
The 4040 dividers are needed to create all the seperate octaves from the root notes. However with 44 keys you
only have 4 octaves so you could use a CD4520 instead. This will save you half the amount of divider chips.
Then all the outputs of those divider chips, which will have the frequency for each note, have to be switched on/off
with the keys. You could do it directly with the keys themselves but if you also want to add an envelope generator
you'll need to create a trigger/gate aswell. So it depends if your keybed has more than 1 switch for each key.
Else you would have to use some electronic switches instead. Which could be done with logic chips (AND gates)
but a single transistor for each key should be possible too.
I'll point Cynosure, who build the C-MOnSter, to this thread if he doesn't see it. He should be able to explain a bit more. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube Last edited by PHOBoS on Sun Apr 05, 2015 1:35 pm; edited 1 time in total |
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Sun Apr 05, 2015 1:27 pm Post subject:
|
 |
|
I'd like to make a comment about the CMOnSter synth as one of Cynosure's technical advisers.
It is a rather large project which was done in a way that is quite common in DIY synth electronics - creeping features. That is, it started as something rather small and then "Hey, I have an idea" and another piece was added, and another etc. One thing of note is that the PSU was underestimated (as in too small) and used a virtual ground. Now I know a lot of people are going to groan "Oh no, not again", but this particular project is an example of why you want to avoid virtual ground as much as possible. The reason for the virtual ground was the desire to use a single supply, but many circuits need a reference point between the + and - poles of the supply. A virtual ground can be used to accomplish this - but there are limitations. In the case of the CMOnSter, as the project grew, it became more and more unstable and unpredictable to the point that when things were added, older working bits quit working or changed in a not so good way. This is because a virtual ground cannot handle very much current going into or out of it resulting in a ground reference that jumped around. This introduces noise and other problems into the circuits. My suggestion to Cynosure was to replace the single voltage supply with a true bipolar (two voltage) supply. I believe that Cynosure chose +5 and -5 for this. This kind of supply creates a real ground between the two PSU outputs, but this ground is far more stable than any virtual ground can be and caused the synth to stop behaving erratically.
So my advice, since this will be a big project, start by making a good bipolar power supply. Standard 3 terminal regulators are easy to use and most can handle one ampere easily. In the long run, this will save you a pile of headaches. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
douthet
Joined: Apr 03, 2015 Posts: 8 Location: Canada
|
Posted: Sun Apr 05, 2015 11:54 pm Post subject:
|
 |
|
My Goal for this synth is to be a pretty basic full polyphonic synth that could almost be used as a pad. Maybe almost like synthy organ tones at times. Any suggestions on how to achieve that?
So should my course of action be: Bipolar input --> Volume --> CD4520 --> octave divider (4024) --> 4040 divider --> 44 keys --> Gate (AR) --> mix --> Cutoff --> Output
Or did i get something incorrect with the order? is my setup simple enough that I may not need bipolar? How is the 4520 better for 44 keys?
I also came across what appeared to be some oscillators in the organ with a 5080 and 5098 chip. Any knowledge or thoughts on those? |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Mon Apr 06, 2015 5:37 am Post subject:
|
 |
|
best/easiest option would probably be:
12 oscillators (CD4069) --> octave dividers (CD4520) --> 44 keys --> mix --> Envelope Generator (AR) + voltage controlled amplifier (VCA) --> Filter --> Volume --> Output.
or for 44 key polyphonic: here is an example of a 4 note polyphonic synth
12 oscillators (CD4069) --> octave dividers (CD4520) --> 44 keys --> 44x Filter (+ 44x control circuits) --> 44x AR + 44x VCA --> mix --> Volume --> Output
or you could use just 1 filter after the mix as with the previous setup.
Quote: | is my setup simple enough that I may not need bipolar? |
With that setup you wouldn't really need a bipolar supply. The only thing that it could be useful for is the filter,
The rest works fine on a single supply. As long as you're sure that you don't want to add anything else later.
But as JovianPyx mentioned it can save you some headaches later on.
Quote: | How is the 4520 better for 44 keys? |
The CD4520 has 2 dividers instead of one, and it doesn't invert. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube Last edited by PHOBoS on Mon Apr 06, 2015 10:29 am; edited 1 time in total |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Mon Apr 06, 2015 8:57 am Post subject:
|
 |
|
two things I just thought about.
If you put the envelope generator + VCA before the filter you can make a very simple VCA with just a diode and a resistor
and maybe an extra opamp. However if you put the filter before the VCA you would be better of with an OTA based VCA and
in that case a dual supply would definitely be adviced.
The other thing is that instead of oscillators and dividers you could use the CD4060 which is also a divider but it has the inverters
to make the oscillator already build in. So with 12 of those chips you could create all your notes. And because you only have
1 oscillator per chip there is less chance of them interfering with eachother. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Mon Apr 06, 2015 10:04 am Post subject:
|
 |
|
Pardon me if I don't understand something...
Do you already have plans for a keybed scanner and voice assigner?
A 4 voice polysynth needs to know what keys are being held down and what order they were pressed and released (so that you have a sensible instrument - example: what happens if you press more than 4 keys?). The voice assigner uses the keybed scan information to set pitch and octave values for the selected oscillator and also asserts a gate signal for that voice.
An AVR based arduino seems perfect for this and as an added benefit, the synth could respond to the 44 key keyboard as well as MIDI input (if you want to add that). _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Mon Apr 06, 2015 10:27 am Post subject:
|
 |
|
JovianPyx wrote: | Pardon me if I don't understand something... |
I think you're overthinking this Scott, or did I miss something and has the CMOnSter also a keyboard scanner
and can only a couple keys be pressed at the same time ?
There is no pitch setting or octave selection, just 44 notes (created from 12 root notes) that can be turned on/off
with the keys and are mixed together.
Of course you could limit the amount of keys pressed at the same time and use a keyboard scanner so that you can save on
the number of enevelope generators/filters if one is wanted for each note. (true polyphony). And only 1 envelope generator
on the end would of course not be very interesting. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Mon Apr 06, 2015 10:41 am Post subject:
|
 |
|
Ok, not a 4 voice. More like an organ. Indeed, I did not understand. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
douthet
Joined: Apr 03, 2015 Posts: 8 Location: Canada
|
Posted: Mon Apr 06, 2015 1:41 pm Post subject:
|
 |
|
PHOBoS wrote: |
The other thing is that instead of oscillators and dividers you could use the CD4060 which is also a divider but it has the inverters
to make the oscillator already build in. So with 12 of those chips you could create all your notes. And because you only have
1 oscillator per chip there is less chance of them interfering with eachother. |
So if I were to go that route the 4060 has the capability to send the octave down to all the keys I have, with its divider capability? Or would I still need a 4040 or 4520 to get it to all the keys. Would I set the note of the CD4060 just with the resistor/ capacitors for the 12 root notes? |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Mon Apr 06, 2015 2:06 pm Post subject:
|
 |
|
douthet wrote: | So if I were to go that route the 4060 has the capability to send the octave down to all the keys I have, with its divider capability? Or would I still need a 4040 or 4520 to get it to all the keys. Would I set the note of the CD4060 just with the resistor/ capacitors for the 12 root notes? |
You would only need 12x the 4060 + resistors/capacitors. There is one difference with using a 4520/4040 which is that the first output
of the 4060 isn't just 1 octave down but 4 octaves down. This doesn't really matter though since you'll just be using the divisions and
not the root frequency itself. But when calculating you have to keep in mind that the frequency of the oscillators have to be 4x as high
as the highest octave you want.
you can find some more info on the CD4060 here _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Mon Apr 06, 2015 2:49 pm Post subject:
|
 |
|
Interesting IC the 4060, oscillator plus divider chain. I wonder why they decided not to bring O0, O1 and O2 out to pins...
Perfect for top octave oscillator and dividers. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
douthet
Joined: Apr 03, 2015 Posts: 8 Location: Canada
|
Posted: Mon Apr 06, 2015 3:01 pm Post subject:
|
 |
|
Thanks again PHOBoS and JovianPyx for all your help with this.
So from what I can see about the 4060 is that it has 10 outputs, would that mean it has the potential for 10 octaves? So I would set up my root note and that would be sent from output 4 outputs (44 key) to each corresponding octave of that note or would my resistors and capacitors to determine the note go after the division of the 4060 chip?
PHOBoS wrote: |
You would only need 12x the 4060 + resistors/capacitors. There is one difference with using a 4520/4040 which is that the first output
of the 4060 isn't just 1 octave down but 4 octaves down. This doesn't really matter though since you'll just be using the divisions and
not the root frequency itself. But when calculating you have to keep in mind that the frequency of the oscillators have to be 4x as high
as the highest octave you want.
you can find some more info on the CD4060 here |
so essentially my formula to determine the note would be 1 divided by 2 Pi times the square root of the resistor and capacitor all divided by 4? |
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Mon Apr 06, 2015 3:15 pm Post subject:
|
 |
|
douthet wrote: | so essentially my formula to determine the note would be 1 divided by 2 Pi times the square root of the resistor and capacitor all divided by 4? |
Yes, 10 octaves are available.
As for the oscillator frequency formula, the datasheet shows:
Fosc = 1 / ( 2.3 * R1 * C1 )
Not sure where the pi and square root come in. But yes, you want Fosc to be four times higher than the expected output at O3.
Also you probably will be very lucky to compute and buy resistors that produce exactly the frequencies you want. The tolerance of capacitors is pretty "sloppy", so the calculation will get you close, but not exact. You will need a trimmer resistor (a small pot) to adjust the resistor for tuning each oscillator precisely. Some algebra can be used to compute a basic fixed resistor which you want to be a bit too small, then add the trimmer resistor in series so that with it's wiper half way, it should theoretically have the correct resistance summed with the fixed resistor. This way, the oscillator will be tunable a bit above and a bit below the ideal frequency. You may be able to use fairly large trimmer resistors and not need the fixed resistor at all. I have 20 turn 20K trim pots that are PC board mount. Something like those with an appropriate capacitor would work. If, for example, you used 20K pots, you would use a value of 10K (10K is 1/2 the pot full scale resistance) for all of the 12 note top octave frequencies and compute the capacitor for each oscillator. Then, each oscillator will be approximately correct with the trimmer at half and they can be adjusted to give a nice equally tempered 12 tone scale. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
richardc64

Joined: Jun 01, 2006 Posts: 679 Location: NYC
Audio files: 26
|
Posted: Mon Apr 06, 2015 7:20 pm Post subject:
|
 |
|
Or, one could skip the tediousness of 12 calculations of R/C values and the expense of stable caps, stable metal-film resistors and trimpots, plus a perfboard big enough to contain all this stuff -- all of which in the end gives 12 oscillators that cannot have a Master Tuning that will maintain the equal tempered (or any other) relationship between all 12 oscillators -- and instead spend 40bucks for a modern top-octave replacement IC which needs only ONE oscillator.
http://www.organservice.com/crm/topdividers.htm#Fig5
Make a reasonable offer and I might be persuaded to part with one of my antique 50240s for considerably less $.
On the other hand, maybe one of the rocket surgeons from the Microcontroller forum could be persuaded to devise a pic or fpga top-octave generator and sell them!
(I always audibly groan when I see "polyphonic" and "40106" in the same sentence.) _________________ Revenge is a dish best served with a fork... to the eye |
|
Back to top
|
|
 |
douthet
Joined: Apr 03, 2015 Posts: 8 Location: Canada
|
Posted: Mon Apr 06, 2015 11:13 pm Post subject:
|
 |
|
So would I just send each output of the one oscillator to 12 4040's like normal to get 8 octaves? |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
|
Back to top
|
|
 |
richardc64

Joined: Jun 01, 2006 Posts: 679 Location: NYC
Audio files: 26
|
Posted: Tue Apr 07, 2015 4:11 am Post subject:
|
 |
|
PHOBoS wrote: |
or just save you all the trouble and buy a complete organ for that money or less.
(you van even get them for free if you look around a bit) |
Are those the only choices? Reducing effort or not making any effort at all? Or building something completely from scratch -vs- not building anything? _________________ Revenge is a dish best served with a fork... to the eye |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Tue Apr 07, 2015 7:18 am Post subject:
|
 |
|
richardc64 wrote: |
Are those the only choices? Reducing effort or not making any effort at all? Or building something completely from scratch -vs- not building anything? |
not at all,. but 40 bucks is a lot of money, at least to me. Especially if you make a mistake and accidentaly fry it.
And it's not a chip that, unlike CMOS, is widely available. You are however absolutely correct that it has the advantage
of one master pitch control, which can be extra fun if you control it with a VCO. At the same time it also means that
you're fixed to one tuning scale. So you can't do something like this.
As for the microcontroller option I did read a discussion about that, not sure if it was on this forum, and it turned out to be harder
than it seems. I would expect that by now someone would have done it with a simple PIC though. (let me look for that). _________________ "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: 5810 Location: Moon Base
Audio files: 709
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24411 Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320
|
Posted: Tue Apr 07, 2015 7:55 am Post subject:
|
 |
|
PHOBoS wrote: | It doesn't have an external clock input though. |
Most PICs can be externally clocked .. I think all. It may need a different mode for that though, and as no two PICs are the same you should check it in the data sheets .. there are some even that need be clocked on CLKO under some conditions  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 5810 Location: Moon Base
Audio files: 709
|
Posted: Tue Apr 07, 2015 8:04 am Post subject:
|
 |
|
Well it does use a standard crystal so it should indeed be possible to just replace that with a different oscillator.
Didn't think about that even though that's pretty much what I did with the EK2100.
edit: it even says in the code "16MHz crystal w/33pF caps or 16MHz clock to CLKI"  _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube Last edited by PHOBoS on Tue Apr 07, 2015 11:01 am; edited 2 times in total |
|
Back to top
|
|
 |
|