Author |
Message |
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Thu Nov 27, 2014 7:21 am Post subject:
Random Chimes Subject description: from random beeps to chimes to singing bowls |
|
|
I was looking for a simple pseudo-random pattern generator and came up with this random beep circuit. The output almost sounds like morse code, but it isn't. When you look at the wave form output, you will notice that the length of the beeps and the pauses are not that uniform as they should be in real morse code. Both, the gaps and beeps have varying length instead. Nevertheless, the circuit is an interesting starting point to generate pseudo-random patterns. The randomness comes from feeding back the high frequency from the audio oscillator into the shift register input.
Edit: Of course, instead of the 4093 NAND gates, 40106 inverters can be used for the oscillators. I have used the available NANDs because it saves one chip
Description: |
|
Filesize: |
19.24 KB |
Viewed: |
826 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
|
Download |
Filename: |
RandomBeeps.mp3 |
Filesize: |
334.81 KB |
Downloaded: |
1345 Time(s) |
Last edited by synaesthesia on Tue Dec 16, 2014 12:28 pm; edited 4 times in total |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Thu Nov 27, 2014 7:23 am Post subject:
|
|
|
When replacing the NAND by an XOR and adding a second shift register for the audio frequency, different tones can be produced. This is because the XOR in the feedback path sends the output back either inverted or not. This rotates the current bit pattern or turns the shift register into a Johnson counter. I found at least five different tones being generates this way. I didn't count the silence when all bits are either 0 or 1.
Description: |
|
Filesize: |
24.19 KB |
Viewed: |
896 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
|
Download |
Filename: |
RandomTones.mp3 |
Filesize: |
496.85 KB |
Downloaded: |
1410 Time(s) |
|
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Thu Nov 27, 2014 7:26 am Post subject:
|
|
|
Starting from the random tones circuit above, I added a second short shift register as a tone generator. Each short shift register may generate a pause, or one of the different tones. Again, the tone depends on the clock frequency and the actual bit pattern that is in the shift register. The XOR feedback for each short shift register is controlled this time by one of the outputs from the longer shift register and is changed in a pseudo-random pattern. When the two oscillators are tuned to harmonic frequencies, a nice chime pattern evolves. It is constantly changing because the long shift register is fed back from the result of XORing both feedback signals together, which gives a pretty random input.
Description: |
|
Filesize: |
24.05 KB |
Viewed: |
920 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
|
Download |
Filename: |
RandomChimes.mp3 |
Filesize: |
953.58 KB |
Downloaded: |
1447 Time(s) |
|
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
RingMad
Joined: Jan 15, 2011 Posts: 427 Location: Montreal, Canada
Audio files: 4
|
Posted: Thu Nov 27, 2014 5:31 pm Post subject:
|
|
|
Interesting circuits, thanks for sharing. The "Morse code" one might be useful for a certain project I was trying to figure out.
-- James.
.: www.jamesschidlowsky.ca :. |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Sun Dec 07, 2014 4:15 pm Post subject:
|
|
|
Don't forget to connect RESET to GND, Ringmad. I accidentally left that out in the first schematic. Hope to hear from your project soon. |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Tue Dec 16, 2014 1:08 pm Post subject:
|
|
|
Taking the idea about the chimes one step further, this circuit resembles the sound of singing bowls. The same principle used in the RandomChimes circuit is used here to generate two oscillators that are are triggered by two signals t1 and t2 and change the generated tone based on the control signals s1 and s2. The outputs of the two shift registers are mixed using a resistor network to generate a triangle waveform. Each of the trigger signals controls a simple VCA using a transistor as a variable resistor. The attenuated signals are finally mixed and amplified by a LM386.
In this circuit the triggers are not random, but are generated from three counter outputs that are decoded into two trigger signals. A rather long 4040 counter has been used to keep the tempo oscillator capacitor small. Three counter outputs are used to generate the trigger signals t1,t2 and control signals s1,s2. The idea was to generate one trigger t1 with a low frequency and a long tone decay, and a second trigger t2 with a higher frequency and a shorter tone decay. The XOR gate U3A is used to shift the faster trigger signal by one clock cycle, so the two trigger signals t1 and t2 are never active at the same time. The 4016 inverter U1D is then used to generate a short pulse for trigger t1, and XOR gate U3D generates a short pulse for trigger t2 on each change of the result from XOR(Q6,Q7). This way it is also guaranteed that the signals s1 or s2 will not change until the next trigger signal occurs.
The recording is using a rather high tempo setting and gives you an idea of the generated tone sequence. As with the previous circuit, the actual tones depend on the content of the shift register at the moment when the control signals change. The resulting sequence thus appears rather random, but follows a constant rhythm.
Description: |
|
Filesize: |
48.65 KB |
Viewed: |
1059 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
|
Download |
Filename: |
SingingBowls.mp3 |
Filesize: |
3.38 MB |
Downloaded: |
1383 Time(s) |
Last edited by synaesthesia on Wed Dec 17, 2014 4:28 am; edited 2 times in total |
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Wed Dec 17, 2014 3:47 am Post subject:
|
|
|
You bet I like it. Your recording has a nice relaxing soundscape. Just what I had in mind when building the circuit. |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Wed Feb 18, 2015 4:59 pm Post subject:
|
|
|
This circuit generates a sound similar to that of a large metallic spring that is plucked. It is based on the same principle as in the Random Chimes circuit. Again, the tones generated vary with the pattern that is rotated either as-is or inverted through a shift register. This generates a range of harmonic frequencies that change with the modulation speed. This time the modulation speed can be increased significantly and a percussive envelope is also applied to the output. Because of the pretty high modulation speed, there wasn't really a need to avoid bit patterns with all 0's or 1's this time.
The recording demonstrates the range of sounds with six example settings of pitch and modulation speed that are played four times each. There are no effects added to the recording. I believe that the slight echo-like timbre comes from the combination of the percussive envelope and the modulated frequencies. I like the metallic sound that the circuit generates.
Description: |
|
Filesize: |
31.02 KB |
Viewed: |
815 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
|
Download |
Filename: |
Spring Chimes.mp3 |
Filesize: |
896.43 KB |
Downloaded: |
1261 Time(s) |
|
|
Back to top
|
|
|
rico C
Joined: Feb 27, 2014 Posts: 26 Location: Redondo Beach
|
Posted: Fri Feb 20, 2015 2:42 pm Post subject:
|
|
|
very cool...you and phobos are hitting it out of the ball park these days you should get a band together! Last edited by rico C on Sat Feb 21, 2015 9:43 am; edited 1 time in total |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Sat Feb 21, 2015 3:12 am Post subject:
|
|
|
Thanks a lot rico! I appreciate all feedback, even criticism. This is what keeps me sharing my ideas. Yours is more than feedback, it is a parade. |
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
Posted: Sat Feb 21, 2015 4:08 am Post subject:
|
|
|
It sounds good XOR's (digital ringmods) are indeed good for metallic sounds which makes me wonder:
have you tried taking the output directly from the XOR gate itself ? (using the transistor VCA)
rico C wrote: | very cool...you and phobos are hitting it out of the ball park these days |
Thanks !
I actually find the things synaesthesia is doing more interesting (and more in the spirit of lunetta) than what i do _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Sat Feb 21, 2015 4:26 am Post subject:
|
|
|
I like the designs PHOBoS shares a lot. They are much more suitable for serious electro-music. I am happy if an idea works and uses a minimum number of parts.
PHOBoS wrote: | have you tried taking the output directly from the XOR gate itself ? (using the transistor VCA) |
Yes, tried that as well. It is the same signal, only eight clocks earlier. Actually, you can use any output of the shift register to feed it into the VCA.
Interestingly, running multiple outputs of the shift register through a resistor network first does not improve the output, but actually degrades it. |
|
Back to top
|
|
|
RingMad
Joined: Jan 15, 2011 Posts: 427 Location: Montreal, Canada
Audio files: 4
|
Posted: Sat Feb 21, 2015 5:19 am Post subject:
|
|
|
Thanks for sharing these circuits, synaesthesia! I love the SpringChimes! I'm lost in other projects right now, but hope to find the time and breadboard space soon to try some of these out myself.
-- James.
.: www.jamesschidlowsky.ca :. |
|
Back to top
|
|
|
commathe
Joined: Jul 26, 2013 Posts: 153 Location: Beijing
Audio files: 5
|
Posted: Tue Feb 24, 2015 12:04 am Post subject:
|
|
|
These are awesome little sound effect generators! |
|
Back to top
|
|
|
NOISEBOB
Joined: Oct 13, 2019 Posts: 33 Location: NOISE
|
Posted: Thu Apr 01, 2021 6:19 am Post subject:
|
|
|
synaesthesia wrote: | |
six years late to the party.... but i'm wondering what the POS.TRIGGER and the transistor part is for? |
|
Back to top
|
|
|
Steveg
Joined: Apr 23, 2015 Posts: 182 Location: Perth, Australia
|
Posted: Thu Apr 01, 2021 10:09 pm Post subject:
|
|
|
Hi NoiseBob, they form a simple envelope generator and VCA.
When you get a 0->5v transition at POS.Trigger it charges up C5 wich allows the transistor to pass the 4015 output to OUT at a volume determined by the voltage on C5 so you get a gong like sound trailing away. |
|
Back to top
|
|
|
NOISEBOB
Joined: Oct 13, 2019 Posts: 33 Location: NOISE
|
Posted: Fri Apr 02, 2021 1:47 am Post subject:
|
|
|
Steveg wrote: | Hi NoiseBob, they form a simple envelope generator and VCA.
When you get a 0->5v transition at POS.Trigger it charges up C5 wich allows the transistor to pass the 4015 output to OUT at a volume determined by the voltage on C5 so you get a gong like sound trailing away. |
ooh, that sounds like fun!
i breadboarded the circuit without that part and it does sound quite good already (especially on high speed).. a bit crunchy.
i suppose it can be any type of transistor --- got a box of obscure/old transistors from what i think used to belong to a TV-repair mechanic - including some very specific B&O transistors. |
|
Back to top
|
|
|
Steveg
Joined: Apr 23, 2015 Posts: 182 Location: Perth, Australia
|
Posted: Sat Apr 03, 2021 1:27 am Post subject:
|
|
|
Sounds good, as long as you can identify what transistors you have. You will need an N type and anything over a few tens of milliamps will be overkill. Something like a BC547 is dirt cheap from an electronics hobby store. |
|
Back to top
|
|
|
R_Gol
Joined: Oct 17, 2019 Posts: 34 Location: World
|
Posted: Tue Apr 20, 2021 12:39 pm Post subject:
|
|
|
Beautiful stuff here! Thanks for sharing!
I was wandering if there is any way to replace the 4015 shift register with 4021 ? |
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5591 Location: Moon Base
Audio files: 705
|
|
Back to top
|
|
|
R_Gol
Joined: Oct 17, 2019 Posts: 34 Location: World
|
Posted: Mon May 09, 2022 5:05 am Post subject:
|
|
|
Regarding the singing bowls - If I would like to add a manual trigger with a push button can I just connect one of the button terminal to VDD and the other terminal to point t1 (diode anode) ?
Will it work? will it bypass the ongoing triggering of the sound envelope? |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Tue May 10, 2022 7:13 am Post subject:
|
|
|
Hi R_Gol, not at the anode, but at the cathode. At the anode you would create a shortcut through your switch to the output of the gate when it is LOW. You can use a momentary switch (normally open) safely to send Vdd to the cathode however. If you use a gate instead, another diode would be needed. Maybe add a small resistor when you do so to limit the current for the switch and capacitor a bit. 1K should be just fine.
This modification would bypass the ongoing triggering, and add to it, not supress it. |
|
Back to top
|
|
|
R_Gol
Joined: Oct 17, 2019 Posts: 34 Location: World
|
Posted: Tue May 10, 2022 8:13 am Post subject:
|
|
|
synaesthesia wrote: |
This modification would bypass the ongoing triggering, and add to it, not supress it. |
If I would like to suppress the internal triggering of the two voices and control them both manualy with two different buttons. I can I do so? is it complicated?
another question I have:
What about omitting the lm386 amp circuit and connecting the output to a mixer instead? Do I need to add an op amp buffer? or shall I just connect the 100k resistor and the 47k resistor to the tip of a mono jack? |
|
Back to top
|
|
|
|