electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
Multiple 40106 oscillators with common detune control
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [27 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
egasimus



Joined: Feb 11, 2011
Posts: 113
Location: Bulgaria

PostPosted: Sun Jun 05, 2011 12:57 am    Post subject: Multiple 40106 oscillators with common detune control Reply with quote  Mark this post and the followings unread

Probably will end up as another of my ideas which I'll never get around to doing, but "as soon as I get the parts I need" (or at least no sooner than that), I'm going to make a sort of a 40106 box with multiple (7+) oscillator pairs. I would like, though, to have a single detune potentiometer for all of them. Is this even possible? Maybe with voltage sag?
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 4:46 am    Post subject: Reply with quote  Mark this post and the followings unread

That is what voltage controlled pitch (as in VCO) is all about.

I assume that "voltage sag" means to starve the 40106 power supply pin by using a pot. That might work, but I don't know how well. But it really depends on what you are trying to accomplish with the 40106 oscillators. If you are looking for accurate pitch control, "sag" won't work for that. Also, if you "sag" the voltage, the amplitude will also reduce, so as the voltage to the power pin goes lower, so does the output.

If you have a solderless breadboard, you can throw one together and try it.

A 7555 CMOS timer has an FSK or frequency input, it would be easier to do it with such ICs, but they don't come 6 oscillators in a package. I think there is a 7556 which would have 2 timers per IC.

Or you can go all the way to voltage controlled oscillators.

Last edited by JovianPyx on Sun Jun 05, 2011 4:53 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
PHOBoS



Joined: Jan 14, 2010
Posts: 5841
Location: Moon Base
Audio files: 709

PostPosted: Sun Jun 05, 2011 4:52 am    Post subject: Re: Multiple 40106 oscillators with common detune control Reply with quote  Mark this post and the followings unread

egasimus wrote:
Probably will end up as another of my ideas which I'll never get around to doing, but "as soon as I get the parts I need" (or at least no sooner than that), I'm going to make a sort of a 40106 box with multiple (7+) oscillator pairs. I would like, though, to have a single detune potentiometer for all of them. Is this even possible? Maybe with voltage sag?

Controlling the supply voltage is indeed what comes to my mind (with a
variable voltage regulator), or you could make 40106 VCO's.

Another thing that might be possible is some sort of vactrol control.
Include an LDR in series with the pots for each oscillator and either put them
all together with one controllable light source or connect all the light sources
together.

(heh, JovianPyx posted while I was typing this)

_________________
"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 Jun 05, 2011 4:54 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 4:54 am    Post subject: Reply with quote  Mark this post and the followings unread

Or H11Fx ICs which work similarly to vactrols.
_________________
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
View user's profile Send private message Visit poster's website
-minus-



Joined: Oct 26, 2008
Posts: 787

Audio files: 13

PostPosted: Sun Jun 05, 2011 5:10 am    Post subject: Reply with quote  Mark this post and the followings unread

I've been wondering a similar thing. I've been playing around on breadboard with Ken Stone's Chime Simulator circuit. This has three 40106 oscillators per chime modulated together with an envelope on the end result. When tuned properly it sounds quite good. I'd like to be able to change the pitch of the 'bell' somehow... but without going through each oscillator and retuning them all. A single pot to do this would be good. With CV it would be ideal... but how?


EDIT: Two new posts since I began replying! Laughing
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 5:16 am    Post subject: Reply with quote  Mark this post and the followings unread

My opinion - if you want to retain the harmonic relationship between the oscillators, you need real VCOs.
_________________
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
View user's profile Send private message Visit poster's website
egasimus



Joined: Feb 11, 2011
Posts: 113
Location: Bulgaria

PostPosted: Sun Jun 05, 2011 6:12 am    Post subject: Re: Multiple 40106 oscillators with common detune control Reply with quote  Mark this post and the followings unread

PHOBoS wrote:
Another thing that might be possible is some sort of vactrol control.
Include an LDR in series with the pots for each oscillator and either put them
all together with one controllable light source or connect all the light sources
together.


This. Smile

Well, either this, or sag, or both. I'm trying to keep it simple, since I still don't feel ready to take up a circuit with as high a parts count as a VCO - and I'm going to have to build a separate oscillator for each voice. What I'm trying to make is a fully polyphonic drone box, akin to the Indian shruthi. It would still have those "keys" that you push aside, but there would be LDRs under them so that it would interact with the environment.

Thanks guys Smile
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 6:57 am    Post subject: Reply with quote  Mark this post and the followings unread

a 40106 is a schmitt trigger gate. The frequency of the oscillator depends on the threshhold points which are a proportion of the supply voltage. Since it's a proportion and not an absolute figure, the frequency should not change much if at all. There may be some effect from current starvation using a resistor inline with Vdd, but I doubt it will be much - but you can breadboarded it and see. The thing that will be most affected will be amplitude.

Also, starving current will likely cause oscillators that are set fairly close in pitch to lock together. That is probably undesirable in your context.

_________________
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
View user's profile Send private message Visit poster's website
-minus-



Joined: Oct 26, 2008
Posts: 787

Audio files: 13

PostPosted: Sun Jun 05, 2011 7:17 am    Post subject: Reply with quote  Mark this post and the followings unread

Interesting you mention the shruthi box. I was experimenting with these sorts of sounds a few months back. You might like to look at this schematic for an electronic tanpura:

http://books.google.com.au/books?id=AnUTQ4FT25sC&pg=PA85&lpg=PA85&dq=electronic+tanpura+circuit&source=bl&ots=gfqk0IlTc9&sig=EB7BPhUGFOxYrI0670TymJofChg&hl=en&ei=_Z7ITLq6LYWkvgPJloSWCQ&sa=X&oi=book_result&ct=result&resnum=2&ved=0CBkQ6AEwATgK#v=onepage&q=electronic%20tanpura%20circuit&f=false

I still have it in part on breadboards. I used 555's for the oscillators. It sounded kind of cheap in a way... not like those Radel digital models we see nowadays. There's a nice one here at the bottom of this page:

http://matrixsynth.blogspot.com/2007_11_01_archive.html

I'll be interested to see what you come up with... I haven't quite come back to this yet. I seemed to drift off in other drone directions...
Back to top
View user's profile Send private message
egasimus



Joined: Feb 11, 2011
Posts: 113
Location: Bulgaria

PostPosted: Sun Jun 05, 2011 7:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Well, I'm not really into Indian music. It's a field I do not dare enter, for I will become lost. Besides, they have it all figured out, don't they? It's the Western culture that needs lots creative labour to fix the mess it is.

But the other day I was listening to 2/7ths of a local trip-hop band (only bass and vocals, since the remaining 5 members couldn't come) and thought - a drone box would have fit their sound very well. This made me think of a drone box that is readily usable in a more traditional musical context and still a bit unpredictable, and the concept of a light-controlled Shruthi came to mind.

I have some other questions, too. I'd figure them out myself, but I'm gonna let pride take a rest now and just ask away.

Is there a formula to determine the RC values for a 40106 osc for any given frequency, or does it depend on the particular device used? (Probably so. Gonna tune using trimmers, then.)
A 40106 overheats if it has more than 3 of its gates oscillating, right? Well, perhaps a heatsink would rectify that? (Probably so. Gonna put chips in a row, with a strip of aluminum across them, held by screws in between.)
And there was something else, but I forgot, meh.

Last edited by egasimus on Tue Jun 07, 2011 12:46 am; edited 1 time in total
Back to top
View user's profile Send private message
Cynosure
Site Admin


Joined: Dec 11, 2010
Posts: 1000
Location: Toronto, Ontario - Canada
Audio files: 82

PostPosted: Sun Jun 05, 2011 7:40 am    Post subject: Reply with quote  Mark this post and the followings unread

I have already done some testing with this. Starving the voltage will only work if all the oscillators are at the same frequency. Otherwise the detuning will effect the different notes differently. (ie. low notes are detuned slightly, and higher notes get detuned a lot).

Instead, you might be able to create a single oscillator and use dividers to create your other notes. Check out this thread I started about creating 5ths:

http://electro-music.com/forum/topic-48037.html

There are some great suggestions there and you should be able to divide things up to create full sounding chords.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 7:50 am    Post subject: Reply with quote  Mark this post and the followings unread

Cynosure wrote:
I have already done some testing with this. Starving the voltage will only work if all the oscillators are at the same frequency. Otherwise the detuning will effect the different notes differently. (ie. low notes are detuned slightly, and higher notes get detuned a lot).

Instead, you might be able to create a single oscillator and use dividers to create your other notes. Check out this thread I started about creating 5ths:

http://electro-music.com/forum/topic-48037.html

There are some great suggestions there and you should be able to divide things up to create full sounding chords.


Are doing this with 40106 or something else? I was writing specifically about 40106. If it works with the 40106 then it has a crappy schmitt implementation. But then no CMOS IC was intended to be current starved...

_________________
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
View user's profile Send private message Visit poster's website
Cynosure
Site Admin


Joined: Dec 11, 2010
Posts: 1000
Location: Toronto, Ontario - Canada
Audio files: 82

PostPosted: Sun Jun 05, 2011 9:37 am    Post subject: Reply with quote  Mark this post and the followings unread

JovianPyx wrote:
Are doing this with 40106 or something else? I was writing specifically about 40106. If it works with the 40106 then it has a crappy schmitt implementation. But then no CMOS IC was intended to be current starved...

I tested it with a 40106. I was trying to create a pitch bender using a joystick from a playstation controller. It was very inconsistent across the musical scale, so I ended up not using it at all. I needed a 50k resistor in the lower range, but the 10k playstation one worked fine in the higher range. (or maybe it was the other way around?) Maybe it works because you are starving the capacitor, which makes it take longer to fill and drain.

The thread I started about the 5ths is for something else, but it was also using a 40106 oscillator.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 10:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Ah, ok, that's interesting to know. I haven't a clue why it works. I can guess that having a finite limit to the current available at Vdd probably changes the schmitt threshholds, those calculations assume a supply that has more current than the gate will ever need. And I agree that the resistor, especially after a certain resistance can act as a charge current limiter. I'm quite sure that it's not even close to linear so it may work in a funky manner, like all the action at one end of the pot.

What you say about inconsistent behavior is umm consistent with using a method like current starving...

As for the 5th thing, the way to get true perfect fifths that work at any pitch is to use the counter method. Even VCOs can't do that perfectly across the entire range of hearing. They can get very close, but not perfect.

_________________
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
View user's profile Send private message Visit poster's website
Cynosure
Site Admin


Joined: Dec 11, 2010
Posts: 1000
Location: Toronto, Ontario - Canada
Audio files: 82

PostPosted: Sun Jun 05, 2011 10:47 am    Post subject: Reply with quote  Mark this post and the followings unread

JovianPyx wrote:
I haven't a clue why it works.

I assumed it was because it was limiting the amplitude or amount of energy getting to the capacitor, and it's the capacitor that's firing the schmidt trigger. I'm very new to this though, so I could be wrong.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 11:33 am    Post subject: Reply with quote  Mark this post and the followings unread

I think that's at least part of it. It can't charge any faster than that resistor lets it. But I'll bet if you put a 50K pot in series with Vdd, a good portion of the low resistance end does almost nothing, which is why I was saying it won't be linear.

Did you notice the amplitude changing when you change the inline resistance? I'd bet that it does, at least to some degree.

_________________
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
View user's profile Send private message Visit poster's website
Cynosure
Site Admin


Joined: Dec 11, 2010
Posts: 1000
Location: Toronto, Ontario - Canada
Audio files: 82

PostPosted: Sun Jun 05, 2011 12:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

JovianPyx wrote:
Did you notice the amplitude changing when you change the inline resistance?

I didn't notice a significant change, but it likely did. I did the test a while ago, and I was paying attention to the pitch, not the amplitude.
Back to top
View user's profile Send private message
diablojoy



Joined: Sep 07, 2008
Posts: 809
Location: melbourne australia
Audio files: 11

PostPosted: Sun Jun 05, 2011 2:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

I did a mod like this quite sometime ago on a WSG for starving the supply
with 10K pot on the supply rail to provide roughly between +5v and +15v
freq control is very haphazard more for fun than anything else
the output amplitude was affected quite a lot as well there is a large differance in volume noticeable when changing the voltage
really screams at 15v and fairly quiet at 5v
edit : yeah not very linear at all as i remember, its been a while since i played with it though.
from memory output cuts out at about 4.5volts where the 40106 will stop
oscillating altogether.
Back to top
View user's profile Send private message
diablojoy



Joined: Sep 07, 2008
Posts: 809
Location: melbourne australia
Audio files: 11

PostPosted: Sun Jun 05, 2011 2:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

ha i just remembered i also tried a vactrol in there [well it was a couple of years ago] which also worked ok as far as this cct goes
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sun Jun 05, 2011 2:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks diablojoy, that all makes perfect sense.

I think the only ways to get control of the 6 oscillators in a 40106 without the aforementioned side effects are the Vactrols that PHOBoS suggested or the H11Fx IC that I suggested. Of course, if those side effects are desired, then fire up the soldering iron.

As for other ways to make a drone machine like that with one-pot-controls-all one could use the oscillator in the 4046 which would provide a nice wide range. Of course, that's only one VCO per IC. 7555 timers can also be used (or 7556 for dual), but with less pitch range available than the 4046. And the 7555/7556 freq input also causes a decrease in amplitude for higher pitches. There's probably others that I can't think of at the moment, but those two are both CMOS for those of us that like CMOS. I think the 4046 might track better than the 7555/7556 method for what it's worth.

_________________
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
View user's profile Send private message Visit poster's website
egasimus



Joined: Feb 11, 2011
Posts: 113
Location: Bulgaria

PostPosted: Mon Jun 06, 2011 5:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Great info in this thread Smile

Is there an IC out of which you can build more than one divider by 2? Adding a sub-octave would fatten the sound substantially, which might be desirable, but I'm reluctant to do it if I have to use a chip per voice.

And what it is that stretches the page in Opera? Very Happy
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Mon Jun 06, 2011 6:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, and assuming you want CMOS (I would), there is at least 4013, a dual D type flip flop. Connect the Q-bar output to the D input and when you clock it, the Q output will give 1/2 the frequency of the clock.

Also there is the 4027, a dual J-K flip flop which can be set up to do the same thing. Read the datasheet to see how. J-K flip flops are very versatile and can do many things as you will see in the data sheet.

I don't believe there are quad packages for T flip flops, (T = toggle), they are made as I described above from D flip flops.

Edge triggered flip flops like these will probably do unpredictable things if you current starve them. Smile

_________________
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
View user's profile Send private message Visit poster's website
richardc64



Joined: Jun 01, 2006
Posts: 679
Location: NYC
Audio files: 26

PostPosted: Mon Jun 06, 2011 6:09 am    Post subject: Reply with quote  Mark this post and the followings unread

egasimus wrote:

Is there an IC out of which you can build more than one divider by 2? Adding a sub-octave would fatten the sound substantially, which might be desirable, but I'm reluctant to do it if I have to use a chip per voice.


CD4013 contains 2 D flipflops that can each divide by 2. Any dual JK f.f. can also provide 2 divide 2s.
CD4520 contains 2 independent 4-bit synchronous counters, each could provide 2-4-8-16 divide by.
74C93 (a little hard to find, now,) contains a divide by 2 and a 3-bit ripple counter.

I'm afraid 2 independent dividers is the most you can get from common logic ICs. There's some obscure ICs for electronic organs that might have more dividers, but the prices are ridiculous.

_________________
Revenge is a dish best served with a fork... to the eye
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24440
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Mon Jun 06, 2011 6:29 am    Post subject: Reply with quote  Mark this post and the followings unread

egasimus wrote:
And what it is that stretches the page in Opera? Very Happy


Long URLs <-- click me click me Wink

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
egasimus



Joined: Feb 11, 2011
Posts: 113
Location: Bulgaria

PostPosted: Mon Jun 06, 2011 7:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh. Smile

On the other hand, the (not "a" Laughing) Bulgarian musician's forum runs IPB 3, which automatically shortens long links. The result? It turns out people copying their own posts (and that's done a lot since you can't bump threads in "Buy/Sell", you have to repost your ad every 7 days) hardly ever think to use "quote". They copy the shortened links, then wonder why they don't work Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [27 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

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


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use