Skip to content

m0xpd/SubHarmonics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

263 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SubHarmonics

'SubHarmonics' is a Eurorack module which generates two squarewaves ('A' and 'B') which are sub-harmonics of another signal, 'X'.

The signal X is either
i) generated by the module's internal Voltage Controlled Oscillator
or
ii) is derived from an external signal applied to the module's 'Ext X In' input.

The sub-harmonics are generated by hardware dividers, which divide the frequency of X by integer divisors (m, n) of 2, 4, 6, 8, 10, 12, 14, 16 or 18, giving the unit a range of a little over four octaves (18 ≈ 2 4.17 ).

These divisors (m := f x / f A , n := f x / f B ) are voltage controlled - they can be set by potentiometers or by control voltages applied from external sources.

It is seen that the signals A and B are themselves related in frequency by 'the ratio of two small integers' (m/n). So, in addition to each being sub-harmonics of X, the ratio between A and B often falls at a musically useful interval;

'SubHarmonics' generates harmony as well as bass.

Other applications of 'SubHarmonics' in Clock Division and Rhythm Generation are described here.

Internal Modulators

SubHarmonics includes a pair of internal modulators, which combine the A and B signals together (through an OR and an Exclusive OR operation) to exploit and develop the harmonic relationship between A and B into a richer sound. The OR modulation is equivalent (for these signals A, B) to simple amplitude modulation, as performed by (e.g.) an AND gate, whilst the Exclusive OR modulation implements the balanced modulation of A with B (as in a 'ring modulator'). I described the equivalence of OR and AND gates as modulators for the special class of 'antipalindromic' inputs (such as the present A and B signals) at tedious length here.

The two different modulation results are combined in a voltage-controlled crossfader circuit (controlled by a potentiometer or an external CV input) to give a single output which offers a choice OR A MIX of the modulation types at the 'Mod Mix' output.

An introductory video, demonstrating SubHarmonics' features, is available here

Setup

There are two presets that need adjustment on completion of the module to setup for use. Both are located on the topside of the Main Board.

TR2 (a multi-turn 1k preset) controls the 1V/Octave tracking. It should be set by connecting the module to a reliable source of pitch CV signals and monitoring the outputs. I use octave outputs from a BeatStep Pro (you can use a keyboard with CV pitch outputs or simply a known voltage source) and listen to the pitch change. I find it easy to tune octaves by ear but, if you are uncertain, use a tuner or frequency counter.

TR1 (a single turn 100k preset) controls the balance of the modulation mix crossfader. To set it properly requires access to an oscilloscope to see the 'Mod Mix' output waveform. If you have no access to a 'scope, set TR1 to about 60kΩ.

If you do have a 'scope, set the divisors to m=2, n=6 (using the front panel controls) and the frequency to an arbitrary value (around 300Hz). View the 'A' and 'Mod Mix' outputs on the 'scope. Adjust TR1 until you see these waveforms when you put the Mix control at extreme ends of its travel (or, equivalently, apply 0V or 5V CV signals to the Mix input):

(the yellow trace is the 'A' output, which stays the same in this setup process and is included only as a 'reference', the blue trace is the 'Mod Mix' output, which will change when you adjust TR1)

[If you do not see this waveform on the ModMix output with these settings, it may be due to the phase relationship between the dividers - if this is the case, change the value of 'n' using the potentiometer all the way up to 18 and back to 6 and see if the phase is re-aligned. This is perfectly normal and is not a fault - there is another 'mode' of the system in the m=2, n=6 configuration to that illustrated above.]

Note that the 'Mod Mix' output is inverted (it runs 0 to approx -4V); there wasn't a spare op-amp stage to restore polarity after the crossfader. This doesn't matter in ordinary applications; the ear is insensitive to the inversion and it will sound the same! There are, however, some implications of this inversion which are important to the 'time-domain' applications discussed here.

Miscellaneous Details

The sub-harmonic generation and all signal processing is performed in hardware.

A small (PIC) microcontroller is used to read the potentiometers and CV inputs and set the dividers.

Details of the two PCBs and front panel are provided in the Hardware folder. Code for the 16F676 PIC is presented in the Controller folder.

SubHarmonics is:
12HP wide,
requires 38mm behind the front panel (with the power header fitted) and
draws 13.5mA from the 12V rail and 5mA from the -12V rail.

The design is published under a Creative Commons CC BY-SA 4.0 License.

About

A Voltage Controlled Sub-Harmonic Generator for Eurorack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages