Wednesday, December 31, 2014

The New Xanu Oscillator - Breakdown and Explanation

The last time I posted here about a VCO, I forgot to mention that it's not very good in most applications as it was only linear FM and the waveforms were very... not right, I'll say. My latest design is somewhat complex, but can be simplified as it has eight different waveforms, a ton of different kinds of modulation (including an accurate 1 volt per octave FM input), and a very modular design made up of simple parts. Let's get started!

The Power:

As this is an electronic device, it needs power.
Most modular power supplies have four rails: main positive and negative voltage, a +5V rail, and ground. However, for this and other designs, a -5V rail is necessary. The easy way to make this rail is to power an inverting amplifier with the main rails and run the +5V rail through it. Now you have a -5V rail. Easy enough?

The FM Inputs:

For the inputs, you have manual frequency, exponential frequency, 1v/oct with built-in portamento (glide), and linear FM. This can be used on most VCO circuits, not just this one.
How it works: The three exponential inputs (manual frequency, exponential FM, and 1v/oct) are mixed together with the array of 100k resistors. The pot on the exponential FM input controls the level, and the manual frequency pot acts like a simple crossfader between the positive and negative 5V voltage rails. The exponential inputs are then attenuated slightly and run through a trimpot, which adjusts the 1v/oct tracking accuracy. That final signal is then sent into the final stage called an exponential converter which, as you might guess, converts the more or less linear voltages into exponential voltages, thus allowing you to control linear VCOs with exponential voltages. After that, the linear FM input is mixed into the exponential signal.

The part in the box is the built-in portamento (aka glide) section. It is made up of two buffers with an RC lowpass filter in between. Lowering the cutoff via the rheostat (or pot, whatever you use) smooths out the stepped voltage signal, thus making the voltage 'glide' to the next voltage value.

The Core:

The core of this new VCO is a simple Schmitt-trigger ramp (inverted saw) oscillator with linear FM capable of a wide range of frequencies.
How it works: A Schmitt trigger can be configured as an oscillator by using a capacitor connected from the trigger's input to ground and a resistor (or in this case, a diode acting as a resistor as it would in a diode filter) connected from the trigger's output to its input. This configuration makes a square wave with a very thin, nearly inaudible pulse width (because of its quietness, it's not counted as one of this oscillator's waveforms). Feeding that signal back to the beginning not only allows the trigger to oscillate by itself, but it also fills the capacitor with electricity when the square wave is high, and the capacitor depletes when the square wave is low. The unique duty cycle of this oscillator means that the capacitor's output forms a ramp wave.

Then you have the problem of getting the ramp output to other parts of the oscillator or even other parts of the synth. With too much output load (that is, too much circuitry after the ramp is extracted from the cap), the oscillator will lose stability. That is why both the square (trigger) output and ramp output are fed into Class-A transistor amplifiers - to act as buffers. They also make the signal very loud, so the resistors attenuate the amplified signal to a more manageable level.

Waveshaping the Basic Waveforms:

Like I said, this oscillator has 8 waveforms, one of which (ramp) has already been covered. Most good synthesizer oscillators have at least four waveforms: saw, triangle, sine, and square. This next section will show you how to get those waveforms.
How it works: the first wave, saw, is easy to get: invert the ramp wave and you have a saw wave. On most oscillators this doesn't matter as they sound identical. This VCO can go into LFO territory, however, so the different wave shapes are very useful. The triangle wave is formed using a simple comparator to get a 50% duty cycle square wave and an active lowpass filter. The output capacitor is for decoupling so you get an even waveform. For a sine wave, this oscillator uses an approximation based off the triangle and uses another active filter and large capacitor. For most of the oscillator's frequency range, the triangle and sine waves will actually form the proper waves despite the fixed filters.

The square wave section also uses a comparator, but instead of grounding the reference side of the comparator, there is a linear pulse width modulation section that allows manual and voltage control over the pulse width.

Waveshaping the Complex Waveforms:

By this point, we have the basic waveforms. But, every good oscillator has those, so why not add some flair with more unique waveforms?
The top section is a simple wavefolder that uses the sine wave as its input. The mangle pot controls how loud the sine wave is going into the folder - more volume, more folding. You could make this voltage controlled by feeding the sine wave into a small resistor then have the other resistor replaced by a transistor, vactrol, or optocoupler. The transistor section is what does the actual folding and acts a bit like a compressor except instead of limiting the volume, it folds the excess waveform over. After that, the signal splits off for an amplifier with a trimpot to adjust gain and a comparator which creates a ton of interesting square waves based off the folded sine wave. This square output is not counted as one of the main waveforms since the square wave shaper can sound very similar with PWM.

The bottom section is composed of two parts: the spike generator and the morpher. The spike generator is a simple RC highpass filter which could be voltage controlled if you wanted with either a transistor, vactrol, or optocoupler. The morph section splits the voltage into a normal diode and a zener diode. The voltage cutoffs of each of these make for an interesting waveform out of each diode. The pot acts as a crossfader between the two. This can also be voltage-controlled with a VC crossfader.

Putting It All Together:

Put all those parts together, and you have the Xanu Oscillator:
As one of the notes say, the trigger outputs do not go to the front panel, as explained earlier. This oscillator could do with a sync input, but otherwise I don't see what else you'd need or want in an oscillator. Of course, it could be narrowed down to using just the core with the triangle and square waveshapers for a simple, less feature rich oscillator. Or, you can add more things like yet more waveshaping (a saw animator would be interesting, as well as a suboscillator), a range switch to swap between core capacitors for ultra-low frequencies, more FM inputs... the sky is the limit, really.

I hope you enjoyed reading this, and if you have any questions, feel free to comment below. Oh and happy new year!

Tuesday, December 30, 2014

Updates

It's been almost a year since I posted here last. What's really awesome is that despite this, this blog gets an average of 22 unique views a day and at least one or two comments a month. I guess I'm doing generally OK if a blog that never gets updates continues to grow like that, yeah? haha

In general, at least in terms of what this blog is about ("Gamer. Electronic Music Producer. DIY Synthesizer builder."), not much has changed. I'm going to update you anyway, and tell you about a few future projects. 


In terms of gaming, I've gotten much more into PC gaming, as can be proven by my Steam library having 310 games in it, as well as me building a new computer. This is my first time building a PC so it's kind of exciting. At the moment it's got an i5-4690k running at stock speed with the stock cooler, 8GB Vengeance RAM, a 128GB MX100 SSD, GA-Z97X-SLI mobo, Rosewill 650W PSU, optical drive, and a multimedia reader all in a NZXT Phantom 410 case in white. Soon I'll install Win8.1, a 2TB HDD, and a GTX 970, and eventually, slowly, I'll add another 970 for SLI, double the RAM, install a liquid cooler to OC the CPU to 4.5GHz, and install lighting and more USB ports. All told, it'll be a $2000 computer. 


In terms of music production, I really haven't done much. So little, in fact, that if you go to my SoundCloud page (https://soundcloud.com/yoa01), you'll see that it's gone. No, I didn't quit music or anything, I just didn't see much of a point of having my stuff up there, especially given its poor production and terrible composition. I'm working on those as well as going deeper into the world of synthesis so I can make synths sound as good as I can make guitars and orchestras sound. Maybe I'll release an album in 2015, this time using real instruments with honed skills as opposed to using free virtual synths and MIDI tracks with some sample editing.


And, on to what this blog is mainly about, Synth DIY. I'm actually going to college in January for electrical and computer engineering. I figure, if I'm going to go to college for something and get a degree and eventually a job in something, it may as well be a something I enjoy very much. Designing and building my own audio and voltage devices for a living sounds like a plan. 


What this means, of course, is that Xanu (if you forgot, that's my company which has a branch in synthesizers, particularly modular ones) will probably be put off even longer. It's been a thing since 2008, it can continue being an idea for now as I work on new designs and learn more about electronics. That said I do hope to start selling modules in 2015, complete with a new website and online store.


As part of my foray into building modules for modular synthesizers, I've built a Synthrotek DIRT filter kit. This is my second kit-built electronics thing, and after soldering it properly, it actually works. But, of course, that's just a kit. I am also working on prototype Xanu modules:


Yes, almost all Xanu modules have been reworked since I last showed them here, and some have even more changes to undergo. These are my hand-cut faceplates for the first set of modules I want to put on the market. Sadly, the Xanu MIDI-CV module is not included here because I messed it up big time when cutting the panel.

So, on to upcoming projects:

I'm going to be showing you some new Xanu designs, of course complete with schematics and explanations. Things have been moving along nicely in that department, with 27 new Eurorack modules and 16 new 5U modules having been designed. Nothing really for Frac or 4U yet.

I will be turning my trusty little monotron into a modular synthesizer. Along with adding voltage and audio I/O, I'll be increasing the amount of things each part of the Monotron can do, as well as adding entirely new functions. I must admit, I'm not sure if it'll still run on the two AAA batteries...

I may still cover interesting circuits and/or simple circuits using simple parts to make neat stuff (like my multi-wave 555 oscillator which needs revising). I have quite a few digital delay chips to play with now, and I have a few ideas for my extra 555 and 556 chips.

And, unless college or other things prevent it, I hope to post more in 2015. I've more than enough things to talk about.

...God, that almost sounds like a resolution or something. Screw it... *raises and slightly tips bottle of Gerolsteiner* here's to remembering I have a blog in 2015, and helping other SDIY people build simple yet solid circuits to expand their own projects! *chugs*

Cya next time. And really, thanks for the pageviews. Maybe this time next year that number will double.

Monday, February 17, 2014

New Modules!

Sooo... guess what I got in the mail today?
BEWM. Synthesis Tech E340 Cloud Generator and a Pittsburgh Modular Outs. And what's funny is I'm already finding that more patch cables would be useful. wtf.

And yeah, that's all this post is about. Well... almost... should I explain a bit?

You see the only reason I like modular synthesizers (aside from being incredibly useful as sound-creation tools) is this video from Deadmau5:

As you can see, one of the main modules used (and in my opinion sounds coolest) is the E340 (look around 2:50). Ever since I first saw this video like a year and a half ago or whatever, I've wanted it, and now I do. Now all I need is a cheap little MIDI-CV (like a MIDImplant) and a nice reverb and I can recreate this melody, as well as do a bunch more cool stuff with it.

In case you were curious, this is how I want to fill out the rest of my little rack there:
First steps into building a modular. Now wouldn't it be cool if I could even get my own modules to fit in the rack? haha

Tuesday, January 28, 2014

New Blog Layout

So as you can probably tell if you read this material on its website, I changed the layout. It's wider so the posts look shorter and I can make pictures larger. I'm not really sure if it looks good yet, but it's simple and plain so I guess it'll work for now. Feel free to suggest stuff.

How I Play GTA Online

So I've been playing GTA Online (part of GTA 5) pretty much since a couple weeks or so since it came out. Hackers, bugs, and douche players aside, I have a lot of fun playing it. It's kinda like a modern Skyrim, but instead of armours you have clothes, instead of swords you have guns, and instead of horses you have cars. Oh, and it takes place in a modern city instead of an epic mystical land of partial confusion. It's great!
Oh and you work at a newspaper place, obviously...
I do play the game slightly differently than most players, however. It seems that, where most people are hell-bent on murdering you for no reason, I'm chillin' in Passive mode just watching the bullets and tanks roll by on a lovely sunny day in the heart of Los Santos. People wonder how I got to be level 72 by doing essentially nothing, but what they do not know about is what I do when they're not around...
...such as using an airport as a drift track!
I start my day (or night, whenever I happen to log in at that particular moment) by entering Passive Mode, walking outside and stealing a car. Yeah, ok, not cool, but I then sell it and make some dough, usually around $5k. Then I hit up a few missions (Jobs, whatever) back-to-back, gaining me several thousand RP and about $40k in no more than half an hour or so, depending on the Jobs. Then I go back to freemode, still in Passive, and watch other players go about their business of trying to kill each other. It gets interesting when you see what they are doing and start guessing what they will do next.
Hiding behind a Rolls-Royce is obviously the best way to not get killed. 
It's usually around this time that Simeon, the local not-so-legit car salesman asks for you help in 'acquiring' some vehicles for his business. Usually this involves stealing a car, losing the cops, repainting the car, and driving it to the Docks where it gets loaded into a garage for exporting, then you get paid around $10k. After that I tend to sell another car individually, maybe do a few more missions, watch people, then go home and log off.

In between all that I do other stuff as well. Various activities, like golf and darts, are always options, but I prefer the things that aren't marked on the map: off-roading in the desert, riding my bike around town, cruising on the freeway, or of course the aforementioned walking around aimlessly, just exploring the city. I also enjoy shopping. Hit up a gas station or clothes store, or maybe restock ammo at Ammu-Nation. Some Ammu-Nation stores have a shooting range where you can try out new or locked weapons, too.
Or, hey, hit up your local night club.
I also love the detail in the game. Minor things that most players wouldn't bat an eye at if they were missing are in the game, like GPS and phones losing signal underground, water making your clothes and skin wet, even down to power lines swaying in the breeze. You can go bird hunting by shooting them out of the sky, or race NPCs between redlights.
Also, wind can blow around your sailboat. 
The thing I love most, as you may have figured out, is the freedom. You can go and do anything you want. Terrorise the city, or act normal. Have fun by yourself (in an appropriate way, of course) or with others. Pretty much whatever you want to do, it's there. Would I say it is my favourite game? You know, maybe not, but it is definitely in the top 5.

Images taken from in-game. All vehicles the woman is posing by are mine. The woman is my character, Avareth. Also, if you were curious, no she's not usually dressed like what you see here. The first two images are closer to what she usually wears.