Monday, February 15, 2010

Complicated Relationships : Gong 1

So it's been a couple weeks since my last post when I was still fooling around with the Akai. That's going to be an ongoing thing, especially since I have much work to do. But it's time to get back to my original project: Thor versions of DX7 patches.

I have to remind myself of the importance of this project. It's not so much recreating DX7 sounds in the Thor synthesizer. It's more about what kinds of sounds we can spin off from them.

It's also about learning the synthesizer and coming up with ways of solving problems. We've already established that there can be no perfect replication of the DX7 architecture in Thor. We have, though, also established that by mimicking DX7 architecture (feedback loops, long chains or stacks of modulators and carriers) we can get results that approach the DX7 patch. I think that certain kinds of sounds are enhanced by these differences.

But sometimes these differences can make life really complicated for us. This week, we'll examine Gong 1.

Gong 2 is actually more difficult. But in looking at Gong 1, we can gather some clues that will hopefully make the variation a little easier to understand.

In making a synthesized FM gong sound, someone spent some good time working out how to emulate some of the nuances of a real gong. So imagine the sound of a lightly-struck gong. The initial sound is a pretty but deep, slightly ominous bell sound. Along those same lines, consider that the gong will have similar properties as bells and cymbals. This means a strong fundamental with unstable harmonics, maybe even some pitch instability as the gong settles into its core sound. There might also be a slow, gentle rise in those upper partials.

Translated into FM terms, this means at least two distinctively different envelopes--immediate attack and a slow attack, long decay times on both. We need a solid fundamental tone but with a first partial that is relatively close by. We'll have to be creative in picking out inharmonic partials and ratios and devise interesting ways of maintaining sidebands.

This is very much unlike any patch I've created up to this point!

Looking at the FM Matrix in FM8, we have a single carrier (at the bottom) modulated by 2 mod/carrier pairs and a single modulator. I don't normally consider this to be a problem. Big deal... Start at the top and work our way down, right?

Here's the problem with the usual routine: Look at ops A and B, C and D as mod/carrier pairs and consider their ratios. We have 1.2:1.4 and 3:0.745. OK, no problem. We'll simply use the chorus effect since this is obviously a product of detuning. But what about the last mod/carrier pair, the carrier being the only real carrier in this algorithm? Here the ratio is 0.8:0.5. This tells me that if what we're doing is a product of detuning, it's going to be a wild effect.

While I'll always champion the art of listening, I think what we need here is some basic mathematics to help us rebuild this FM gong timbre.

I'm not very good at math, so let's go ahead and get that straight right now! I'm not worried about getting everything exactly right: My satisfaction is in whether or not I like the results. We have to start with the core sound, and since the other oscillators will be routed to this one, let's start with oscillator 3.

Here's what I did: To get something like a ratio of decimals, I went ahead and multiplied the numbers by 10 to get 8:5. The 5 (carrier ratio) represents a tone that is 1/2 the fundamental--in other words, an octave lower. Here, however, I like to think in terms of a pitch class relative to scale, quite simply, in the key of C. In this case, it would be the note E. 8, by contrast, represents the note C three octaves up. What we're really talking about here is the difference of a minor 6th. So what we need to do is set the octave not 3 but 4 octaves down (oct 0) and semi up by 8 (to account for the minor sixth). That will convert the carrier ratio back to 0.5.

As you can already see, a top-down approach wouldn't take this kind of tuning into account. As we've succeeded in created a core sound by looking at the math, we'll need to continue on in the same way to get the proper ratio for oscillator 2.

The ratio here is 3:0.745. Note the carrier ratio. Thor doesn't allow anything less than whole numbers, but in some cases we can use approximations. Let's round this up to 0.75. What do we know about this? Well, 0.5 is an octave lower than fundamental. That means 0.75 (halfway between 0.5 and 1.0) is analogous to a perfect 4th below fundamental, or the note G in the key of C. What about the 3 mod ratio? Simple: It's a 12th up, or the note G. This is serendipitous. All we need to do is tune these operators in octaves and reset the oct and semi settings to get a note a 5th above our lowest partial (octave below fundamental). Very simple. Set carrier at 1, mod at 4, oct 3, semi 7.

Now let's look at the top of the chain. The ratio is 1.2:1.4. This one took me a while. I decided to look at the decimals as 10ths of an octave. This is unusual in normal circumstances because we tend to think in terms of octaves divided into 12 equal parts. We do have one convenient way into re-dividing the octave, though. The distance from one semitone to another is divided into 100 cents. So 1 octave=12 semitones. 1 semitone=100 cents. Add them up, and you get 1 octave=1,200 cents. That means that 0.1 octave=120 cents. Makes sense in theory, but how do we put this in practice?

Let's look at that ratio again. 0.2 octave (do the math)=240 cents=2 semitones+40 cents. 0.4 octave=480 cents=4 semitones+80 cents or, in Thor terms, 5 semitones-20 cents. What we're looking at here is sharp D and a seriously flat F, so somewhere in the neighborhood of a minor 3rd. This could easily be done now that we have the information we need. So even though we won't get exact results, I think what we'll have will be interesting.

To do this without resorting to some severe octave tuning not possible in Thor, I went with 6:7, or G:Bb. To get it in the right octave, the setting has to go one more lower than our target. That means 3 octaves lower or oct 1. Semi has to be a perfect 5th up, so semi 7. I chose to further tune this just 20 cents sharp.

I suppose I could also have gone 8:7 and brought the interval even closer together. It's just a personal preference of mine that inharmonic ratios have a little bit of spread to them. When I say inharmonic, remember that Thor doesn't do inharmonic ratios. They have to be created artificially within Thor by using combinations of FM oscillators that are detuned relative to each other enough to count. So even though the ratios of one oscillator are harmonic ratios, they are heard as inharmonic when used in concert with other oscillators and displaced by an octave or other interval.

Now that we are beyond our relationship issues, we need to tie everything together. Keep in mind when you use an osc to mod another osc, you should use two scalings: An envelope and a voice key note. Scaling by voice key helps alleviate some of the pitch instability that occurs in this line of work. I'd also normally route FM pairs to osc 3 pitch, but after experimenting with this for a while, I conceded that the gong sideband effect just wouldn't be pronounced enough where I needed it in the spectrum. So here's the routing: Osc2, amount 37, Osc3FM, scale 100 Mod Env, 100 Key Note. Osc1, amount 30, Osc3 FM, scale 100 Mod Env, 100 Key Note. Over in the "single" section, Amp Env, amount 29 Osc3 FM Amt; Mod Env, amount 57, Osc2 FM Amt; Amp Env, amount 28, Osc1 FM Amt.

The Mod Env. settings are: Delay 1.12 sec, A 4.63 sec, D 11.9 sec, R 10.8 sec. Amp Env. settings are: A 1.9 ms, D 19.2 sec, R 552 ms.

Only Oscillator 3 is routed to Filter 1 (bypass). You might try applying chorus to this one, but I preferred using the Delay only with no mod amount. The lower registers are more effective and noisy (don't stray below C2) while the higher octaves have a very bright, pretty asian bell kind of character. The synth crescendo is less noisy here, but doesn't really sound much like a gong. As always, these notes could be used for other kinds of effects or as inspiration for more variations of this sound.

Wednesday, February 3, 2010

Back to work: Sampling with the Akai S2000

As soon as a create a schedule, I'm doomed to fall behind. Maybe that's for the best!

Anyway, I got some good get-to-know-you time with my Akai S2000 yesterday. Considering what I want to do, my goals in using a sampler, I've made some observations which I'll share here.

I decided for the sake of practice I'd create an additive waveform in Absynth and sample that directly to the Akai and do all the necessary edits on screen. Now, if you aren't familiar with the Akai S2000, you need to know that the only user interface is a tiny, 2-line LCD with that classic green glow. There is no graphic editing whatsoever, and this came as a complete shock after having used NN-XT for so many months now. Actually, the Casiotone side-project has been the first in-depth use of NN-XT for me. It's easy to set the zones, automap, and so on in NN-XT. Using the trackpad or my handy trackball mouse, fine-tuning is easy--on the head, on the eyes, and on the wrist!

Not so on the Akai. Anyone out there who takes the plunge and gets an Akai S2000, here's a little advice: My new eBay friend who sold it to me sent a disk with MESA, which is a graphic editor for the Akai S-series samplers. He told me I should pick up a Mac with SCSI running OS 9.22. Absolutely right! If you go the route of buying an old sampler like the S2000, you'll probably want a graphic editor. So go ahead and bid on an old Mac while you're at it.

I'm too poor, though. I'm going to stick with original plan and program this thing right from the face of the machine.

So I figured out how to record a sample. I'm not to the mapping phase yet, just doodling around. I also figured out how to loop that sample. The steps to do this aren't difficult. I sampled an additive sound from Absynth to start with. Here's the hard part: Akai has a "find" function that will find loop points for you, except they aren't really that accurate, at least not the way I'm working. I have to set the "loop at" point all the way at the end of the sample. Also, I found this works best (for me) if the entire length of a sample is 100 ms. The loop length is set at 0.

Here's where I unhappily discovered one of the most useless features of this sampler. The loop length apparently is in samples, but there are 3 decimal places after that. I'd like to know why! I adjusted that thing with the data wheel until I thought my thumb would fall off! Useless. So I went back to spinning around through samples until I found a proper loop point. Because I've practiced this in NN-XT without a graphic editor, it wasn't long before I found a perfect fit.

On to my next experiment: I created another wave in Absynth, loaded it into another oscillator, and detuned it for an inharmonic effect. I sampled it. Before I continue, let me just say that I've never been diagnosed an Aspie, but I think it's obvious that I am one. While I do enjoy the effects of my creative focus, some of the more harmful effects of the condition came out during this experiment. I must have spent hours trying to find a loop point! Now, if there are any more experienced sound designers out there reading this, you're probably laughing because you already know what I found out yesterday: inharmonic sines will never line up, which makes it impossible to find loop points in a few cycles. Mathematically I'm sure it can be done, but I'm no good with math.

Solution: Sample each Absynth oscillator separately and create a layered sample instrument in the same way as the Absynth patch. Even though this eats up just a little more memory, it's worth it. This will create some lovely bells and similar pad sounds. I also found that by re-detuning the second wave you can create different inharmonic effects. I'm talking here about complex waveforms, not generic chorusing that we normally do by detuning. Take this and run it through Mainstage to add chorusing or other effects, and you got quite a powerful little instrument!

I'm still fumbling around right now and I still have so much to learn. Time to put on a pot of coffee and get to work...

Monday, February 1, 2010

Sound Vacation part 3

My vacation is over as of this week. I've spent enough time in NN-XT sampling an old Casiotone MT-205, although I have just three more voices to loop--I've already trimmed and normalized them. I think I'm going to extend my vacation just slightly to finish that bit of work. I'm shooting for 16 more Thor patches and two more blogs this week before I slow my pace down again. I think that's reasonable, anyway!

I'm also entering another composition contest, and the postmark deadline for that is February 8. So here's a tentative schedule for this week:

Monday, Feb. 1: Finish the Casiotone samples. Revise Mainstage concert to fix problems encountered at last week's rehearsal. Band rehearsal tonight.

Tuesday, Feb. 2: 8 Thor patches, work on Mainstage concert, work on blog after work.

Wednesday, Feb. 3: 4 Thor patches, Korg T2 programming if time permits. Begin editing composition. Spend an hour on Mainstage.

Thursday, Feb. 4: 4 more Thor patches, work on blog in the evening. Edit composition afterwards. Spend an hour on Mainstage.

Friday, Feb. 5: Edit/post blog if not done already, spend at least 8 hours editing the composition, 4 hours tweaking Mainstage.

Saturday, Feb. 6: Take 3 hours in the morning tweaking Mainstage, get ready for gig; spend rest of day working on composition, extract parts; DO NOT SLEEP.

Sunday, Feb. 7: Edit parts, take breaks to write Thor patches, try to get at least two in; print and copy parts, prepare for mailing.

Monday, Feb. 8: Mail off composition score and parts; pick where left off Sunday with Thor patches for a total of 8 patches; begin writing blog.

Tuesday, Feb 9: Post blog if not done already, absolutely NO PROGRAMMING for the rest of the day!!!

At some point from Monday, Feb. 8, through the rest of next week, I plan on taking one day to completely decompress, which means NO MUSICAL ACTIVITY beyond piano lessons. I'd like to add that I've succeeded in not touching Thor at all last week. There have also been days when I only picked up my computer to goof off on the internet. I even got on Second Life a couple of times to say hello to some virtual friends!

While it has been a successful week off from Thor, I've also had this experience that I need a vacation from my vacation. I don't feel fully rested, and I'm not looking forward to getting back to work. The reason is, as you can see, that there's SO MUCH to do. I also received notification that my Akai sampler arrived over the weekend and I'm very eager to get to work on it. I don't think the mail runs until later in the day, so I'm resisting the temptation to run to my studio to get to work on it right away (if it isn't there, what's the point?). I also really want to finish this NN-XT side project so I can get back to work on Thor.

So in wrapping up my vacation, I have a few immediate goals in working with the new sampler. My first goal is to create a large number of waveforms in Absynth that I'll sample with the S2000. I want to try to max out 32 MB, and theoretically this should be difficult to do. I'm aiming these sounds at my own live performances, so forget about stereo samples! Low notes will be sampled at a lower sample rate, no more than 3 wave cycles will be used--really anything to keep memory usage down and still get good results.

I plan to experiment with the Akai for a long time. If I use a single instrument for all 16 available channels, I shouldn't even come close to the 32 MB limit. That allows for layering, velocity splits, and a vast combination of possibilities.

I'll also return to Absynth, maybe when I finish with the initial phase of the Thor experiment. I'd like to use Absynth to re-synthesize sounds I've retrieved from other sources, such as the Casiotone and Thor. And once I have a good collection of those sounds in Absynth, I can--you guessed it!--sample those sounds with the S2000. So it's like sound design/redesign/re- redesign, on and on and on. My ultimate goal is to be an unstoppable force in sound design--muah ha ha ha ha ha ha haaaaaa!!!

OK, all kidding aside, I'm not looking forward to getting back to Thor. But on the other hand, I feel about sound design much the same way as composition: It's not something reserved for those time we WANT to work on it. It's something we HAVE to do. So I'm committed to the Thor experiment and will see it through to the end. When I finish all 128 patches, I'll take more than a week off! But there will be an explosion of output when I come back to it, and probably more of the kind of work I DO want to do.

I'll be back later in the week with updates on the Casiotone and Thor progress as well any news of the S2000. There are yet greater things to come, which means I've got phone calls to make and emails to write. It's gonna be AWESOME!