Thysbelon.Logo of a Hummingbird moth.

Famicom Two Square Pseudofilter

SquareWave has a 2A03 song that showcases a cool effect that can be achieved by playing two square waves with the same notes at the same time, with the first's waveform set to 25% duty, and the second's set to -25% duty. This effect is called the "pseudofilter" (at least, that's what the comments call it) because of how its tinny, needly waveform resembles the sound of a 50% square wave run through a high pass filter. The basic steps of how to create it are obvious, but SquareWave unfortunately did not go into detail about the other ways he used it, like changing the resulting waveform, and that bassy detune effect. I researched this myself, and I will share what I learned here.

Changing the Combined Waveform

Simply have one square wave play a different note from the other square wave for a moment, then go back to them both playing the same note; changing the note for even a single frame, and even if volume is set to 0, will still work. When they both start playing the same note again, the second square will be desynced ever-so-slightly, creating a different waveform. With this trick, you can make a pseudo-sawtooth, or a pseudo-triangle. The pitch of the note you use to change the waveform affects how drastically the waveform changes; for example, if you are playing C4 on both squares, then you have square 1 play C4 pitched up by 5 units for a single frame, then go back to C4 pitch 0 the next, the change in waveform will be very small, and it will still look needle-like. However, if you instead played C#4 for a single frame, the waveform will change a lot, resembling a triangle.

The shape of the combined waveform depends on what shape the waveform was previously; thus, if you are writing this effect into a song, and you start playback halfway through, the waveform will have a different shape than if you started playback at the beginning! This behavior can make it hard to write this effect into a song; I suggest doing test renders of the entire song to wav that only contain the two square channels.

Bass Drop Detune

Although this one may seem simple, I had trouble figuring it out because I wasn't very familiar with detune. Simply do a typical pseudofilter with a low note, like F#1, but have one square be pitched up slightly, by 4 units or so.

Please check out this example FamiStudio file that shows off these effects.

Also, all of these effects can also be done on any sound chip that has at least two squares where it is possible to set the duty cycles to be the inverse of eachother. I know the Game Boy is included on this list, and I have an example furnace file showing the combined waveform effect on Game Boy. It may also be possible on the AY-3-8910... etc.

Tags:
Categories: