Joined: Apr 05, 2010 Posts: 63 Location: San Francisco
Posted: Fri Jun 18, 2010 9:20 am Post subject:
4017/4051 Melody Generator
I've been seeing a lot of set ups having this little circuit built in, and a lot of really good sound clips seem to come from it. So, how exactly does the Melody Generator work? Should all the inputs be oscillators of some sort? And then on the schem, what does the "EN" stand for? I'm sure I just missed something in the datasheet, but oh well
So what have your guys' experiences been with this neat little module?
melodygenerator_428_160.jpg
Description:
Filesize:
35.94 KB
Viewed:
4738 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.
Ive had exactly the same experience with the melodygenerator. No clue how it works, but boy does it work . The ABC outputs on the 4051 can be hooked up to clocks or audio osc, but Ive also had good results with dividers and multiplexers.
The EN stand for engage, you can feed it a square and find out what it does. Same goes for the pin 6 on the 4051. _________________ There he goes. One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
Hunter S. Thompson movies noise
Ah, here it is.... Well at least I think it is. I hear a bit about this legendary Slacker Melody Maker or some such title. Is this what I am looking at here? I'm assuming this would be a hard wired circuit comprising of the 4017 and the 4051. This seems to be one of those 'must haves' with this Lunetta design thing. Today I managed to find four 4051 IC's in this shitty little country town I live/am trapped in, which is quite remarkable!!!!
Hmm....wait a minute.... I thought the Slacker thing had a 4040 involved somewhere. Oh look, don't worry about me. I should work out what I'm on about before I post shit! ...and a bit of sleep would do me the world of good too! It's just that soon as I doze off I hear bleeps and clicks and drones and squeals in my head, and I have to get out of bed and feed my baby Lunetta some voltage.....
YAY! Just got this working in breadboard mode! I wasn't getting sound until I attached a fast(?) audio rate(?) oscillator to pin 13 of the 4017. The inhibit pin 6 of the 4051 seems less important whether it has a square wave on it or not. It does make a difference to the sound when it does though... it's a noticeable change, but it's the pin 13 which you can't live without. Unless I'm doing this all wrong...
I'm also unsure how this is working. Some Lunetta magic going on somewhere in there somehow. I really need to start making up these modules on stripboard or something. I have 6 breadboards and crap everywhere all over my floor and I'm finding it's getting a bit slow now trying out different patches. Running out of alligator clips and leads too!
Thanks for this thread! Took me ages finding this circuit before. This makes it heaps easier. I think separate threads for each IC would be nice. There is a lot we can do with a 4051 at least.
I like this... I like it a lot! New Wave Square Waves!
EDIT: Just placed an LED between pin 3 (out) of the 4017, and earth. This has made the signal louder and kind of clearer in a way.... I wonder why?
<<SNIP>>
Basically, the length of the pulses on the 4017 pin 3 (Out) in relation to the clock pulses on pin 14 (In) depend on which number it's counting up to. If it counts to 2 it's twice as long so half the frequency of the clock, if it counts to 3 it's 3 times as long so a third of the frequency and so on.
The outputs of the 4017 connect to the inputs on the 4051, and the output connects back to the 4017's reset pin. The signals on the A,B and C pins set which output gets connected to reset and this sets the number the 4017 will count up to, and therefore what note it will produce.
To make it play tunes you feed an audio speed signal into the 4017 clock Input and feed different clock signals into the ABC inputs. Changing the combination of signals on those pins gives you the different notes and patterns.
The 4017 clock enable (pin13) adds modulation, at slow speeds you get tremolo effects and higher speeds give ring mod type sounds.<</SNIP>>
Thanks bruce! I wonder how rapid a signal each of the A B C inputs can deal with. To get those lower binary numbers: 0 0 1 , 0 1 0 etc, I guess you would want to make sure that the C or A input (not sure which, still learning) has a slow pulse on it, otherwise you might miss out on the full range of notes. Lots more experimentation for me to do here! I really have to put some time aside to solder some mini boards up... too much fun playing though! This is one of those devices you leave plugged in all the time... like a refrigerator.
I wasn't getting sound until I attached a fast(?) audio rate(?) oscillator to pin 13 of the 4017
Remember about the pulldown resistors, when pin 13 is left floating it will just gate the signal and you wont hear it.
The ABC inputs are where the "magic" happens in the melodygen. You could try experimenting with logic gates and shift registers to drive the ABC pins. Ive had great results with a 4040 randomly plugged in a 4051 to generate an interesting data signal and then using that with a 4015 shift register and plugging the ABC into any of the available outs. Hope that makes sense, if not, just mess around like I do. _________________ There he goes. One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
Hunter S. Thompson movies noise
Posted: Thu Jun 24, 2010 1:33 pm Post subject:
Subject description: Some remarks on the 4017/4051 Melody Generator
The Melody Generator needs a fairly high frequency on the 4017 clock (pin 14).
As the output is a slower subdivision of this clock in, and I have my present 40106 osc's maximum frequency restricted with a 1.2k resistor in series with the potmeter, I have the 4017 clock in maxed out to get decent "melodic" results.
Conclusion: I need an oscillator that goes higher into supersonic.
The name Melody Generator might suggest using the output as audio. I have had nice results when slowing down the "melody" with a 4040 counter and use the outputs of the 4040 as control gates. I've used the slower 4040 outs as input on one of the ABC in's of the 4051, nice.
With higher speeds on the 4051 ABC's the "melody" aspect disappears. However this signal subdivided by 4040 is very useful to me again.
The original schematic has the 8 inputs of the 4051 hardwired to the 4017. Mine has these joining points availabe for patching. Even when probably not the officially approved method, they've proven useful as inputs as well as outputs.
That's very helpful! I'm getting better results now. Need to get some boards soldered up. This is a classic trap for me. Is a Lunetta ever finished I wonder? There are always improvements to be made! I need a building technique where I can keep adding. A kind of modular approach I guess. But how big to make the cabinet? Hmmm
The other thing, well for me anyway, is getting that randomness to the sound. I have achieved the surprise element of letting the Lunetta make its own tunes, but I am still having one long loop... eventually it repeats itself! Maybe I need more IC's... or more creative patching techniques? Maybe I'm filling this thread up with crap as I tend to do...
PS. I've made a start on your B&W logo... I've had other stuff to do for someone, but that should be finished this weekend... I'll pm you! Don't hold your breath!
Quik'n'Dirty demo of Melody Generator and miscellaneous Lunetta elements.
Nice! I love seeing your videos, the board looks really nice and clean. Good nice range of sounds too. Ive noticed that using different gates, XOR is really nice, can make your sounds a lot more interesting.
Could you take a shot of the underside of this blue beast? Im really curious as to how the different connections are made. _________________ There he goes. One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
Hunter S. Thompson movies noise
thanks! Again, amazingly neat and tight. I especially like the seperate pots, trimpots are nice, but real ones just feel so much nicer. For me as a visual kind of person this says more than a thousand words . _________________ There he goes. One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
Hunter S. Thompson movies noise
Does the melody generator need to be hooked up to a VCO to make sound?
No. It needs a clock in for the the 47017, and up to 3 (ABC) inputs to select one of the eight options from the 4017 into the 4051. One output is taken from the 4017. More can be added, but those are the basic in/outputs.
Joined: Apr 05, 2010 Posts: 63 Location: San Francisco
Posted: Fri Jul 02, 2010 9:46 pm Post subject:
electri-fire wrote:
Ajax wrote:
Does the melody generator need to be hooked up to a VCO to make sound?
No. It needs a clock in for the the 47017, and up to 3 (ABC) inputs to select one of the eight options from the 4017 into the 4051. One output is taken from the 4017. More can be added, but those are the basic in/outputs.
Joined: Apr 05, 2010 Posts: 63 Location: San Francisco
Posted: Tue Jul 06, 2010 12:29 pm Post subject:
Got this little bugger working, now just need to adjust the clock speeds from audio rate to actual clocks and it should be in business. Thanks a lot everyone![/right]
Does the melody generator need to be hooked up to a VCO to make sound?
No. It needs a clock in for the the 47017, and up to 3 (ABC) inputs to select one of the eight options from the 4017 into the 4051. One output is taken from the 4017. More can be added, but those are the basic in/outputs.
WEll - bloody hell! When I did my last 2 videos recently, I had completely FORGOTTEN that you don't hook the Mel.Gen. up to a VCO! And I did BOTH times. I were wondering why things sounded SO different with it!
Thankee for straightening out MY poor ol' timer's memory!
Thankee for straightening out MY poor ol' timer's memory!
And so it begins, Rich. It's all downhill from here.. !
lol
bruce
Haha! Noooooooooooooo ... you're a year or two older'n I if my failing memory recalls ... and more and worse of this I have to look foward (or backward?) to? Aiyeiyeyeyeeeeeeeeeeeeeeeeeeeeee!
I've been playing around slash blowing my mind with this module today. Just thought I'd note here for future reference the relationship between inputs A B and C and the output.
Joined: May 18, 2010 Posts: 308 Location: Oak Park, IL
Audio files: 5
Posted: Thu Oct 14, 2010 8:01 pm Post subject:
Thanks rich! I dig this module myself and it;s a keeper. Plenty of cool sounds to discover; check my latest track in the sound samples thread (WormSign). The melody gen plays a key role in it. _________________ Zontar Prevails!
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