HugeTracker Part 6: Subpatterns

If you’ve followed the tutorials up until now, you’ve probably become fairly proficient at making music in hUGEtracker. But maybe you wondered, what is that Subpattern option for on the instrument tab? What secrets lie in that weird grid on the edge of the instrument page? Well, today we will find out.

Subpatterns are similar to tables in LSDj or patterns in SID wizard; when you play a note, a series of commands are fired off that impact the playing note in real time. When you trigger a new note, this routine starts over regardless of whether it has completed or not. This will be very important when it comes to making drums

NOTE: In older versions of hUGEdriver, there was a “sort of” subpattern in the noise channel to allow you to quickly pitch it up or down. If you were wondering where that went, subpatterns can do what it did along with a host of other things.

I always like to teach with an example that shows something you might want to actually do instead of an abstract. So here’s our situation. We wrote a fairly fast song, but then we realized it would sound better with some really punchy staccato bass. Unfortunately we made a tight compact song and there are no blank rows between bass notes.

Our Bass Wave instrument is defined like this:

And the bass line is this:

In rows 0-31, we’d like it if the bass notes were very short, instead of all blending together. This is the kind of scenario where a subpattern can help you.

Making a Subpattern

On our instrument tab click the Enable subpattern checkbox. Subpatterns work the same on all the instruments (the same rules of effects apply to whatever channel you use them on however).

We’ll get into what each thing does in a minute.

The subpattern box might look exactly like the channel columns in the main tracker pattern view, but its actually somewhat different.

 Let’s start with the easiest way to use it and move on from there.

For our needs, if we had made the song a faster tempo to make the bass notes shorter we might do something like this:

Even if this didn’t mean we’d have to rewrite our whole song, we might want the bass note to be even shorter than one row of time in the tempo. And what’s more, we’d get pretty tired of putting C07 after every single note. Instead, we can use a sub pattern to say, “whenever I play instrument 01, I want you to put a C07 just after it plays.

Go to wave instrument one, and enable the subpattern, then put a C07 on the second line in the subpattern editor:

If you push the test octave 3 button with subpattern enabled, and then with disabled, you should hear the difference. Lets take it one step further and drop it down even lower after 2 counts, add a C03 as shown.

Now go play your song. The first 32 rows sound great! Snappy crisp bass that has more energy than when the notes just played at 100% volume the whole time, and you didn’t need to put a single C07 on the main pattern! What luxurious convenience! But wait, we have a problem…

Looping

After row 32 you hear something like a skipping record in the long sustained bass notes. That doesn’t sound good at all. What’s happening is that once the subpattern runs its course, it starts over, popping the C03 volume back up to C07 for a quick moment, then back down to C03, causing the little crackle you hear.

Let’s say our intention is for the bass to drop out here, only have some punchy moments and let the drums shine. In that case, we can tell the looping of the subpattern to never come back to the C07 after one time through.

On the 8th line, position the cursor as shown in the pattern jump column and press 7. Although it looks like an effect, this is a special command that says when you get here, go back to row 7.

The image below contrasts what happens:

The instrument can now play forever at C03 volume, the C07 will never play again until a new note is triggered. Perfect! Side note: If we did want the long notes to sustain, we could make a second wave instrument with the same wave form and no subpattern.

Note/Pitch Changing

So this is all handy, but aren’t tables in LSDJ also used for making drums and arpeggios? You can do the same here with hUGEtracker. If you’re used to an older version of hUGEtracker, you might remember a little graph-like image that lets you do that. Let’s do that with subpatterns.

The note part of the subpattern also does not behave as you might expect. If you push a note on your keyboard that would lay down a note, it instead will produce a number value. The number is how many notes are between the note you pushed and C6.

So if you push, for example C#6 (pressing the S key while in octave 2), it will put a +1. Press

 C5 (q on keyboard in octave 2), you’ll get a -12. This tells the system, you need to change +1 or -12 from the current playing note.

Let’s try it first with a Duty channel to make a quick arpeggio type sound.

Set up a duty instrument like this:

The subpattern tells it with each tick of time, move the note up 3, then 7 then back to the base note, etc. When you play it you have some demoscene goodness happening! Now let’s bring in everything else we know. Change the duty to 50% for the instrument. Then put a 900 on line 3 and play it. You’ll hear that the effect fires in unison with the note change, the note becomes thinner after the first time through the arpeggio. This type of setup allows you to find all kinds of cool textures.

Lets add in a loop in case we decide we want a longer sustained note:

There you have it! You don’t need 037 to make the arpeggio play each time, and you can also change the duty with 9xx without stopping the arpeggio. Now that’s powerful!

We can use the same concept to make a drum that goes up after it starts to play.
Set up a noise instrument as follows:

When played at the right octave, this gives the feeling that a snare drum has been hit and the higher frequency reverberations can be heard as it fades away.

Using With Other Effects

The real power comes from the fact that you can still use some other effects in the regular pattern as well. Using our arpeggio instrument we can create echoing arpeggios.

Keep in mind that if you use an effect here that’s also in the sub routine, it will cancel out the subroutine’s pattern. There’s also one extra special trick you can use in the wave channel. Putting a 9xx effect in the wave channel will change the current playing wave form. This can make a bit of a pop sound, but if used properly you can get some really cool distortions or percussive sounds out of the waves.

Also don’t be afraid to double things up. For example if we wanted a slower arpeggio we could do the following:

Subroutines really unlock a lot of sound design tricks and tactics. Since they run at the highest speed regardless of the tempo, they can add a lot of texture to a simple pulse or wave note. Spend some time coming up with patterns that you can reuse to take your songs to the next level.

This article is part of a series: hUGETracker

Back To Top