What is this?
- a sequencer with MIDI notes
- with bidirectional control (forward/backward)
- parameters can be changed manually
- my own original work consists of: the bidirectional control with adjustable parameters, accompanying documentation, the palindromic sequence idea, this whole post (documentation, explanations)
Feel free to use my pd files (open source) - download and play around with them as you like. (CC-BY-SA)
I built a bidirectional step sequencer in PureData, based on a 4-step sequencer tutorial I found at GitHub. Basically, you can rebuild it and use it by following the instructions, changing the parameters as you like.
Here is how it works, more or less:
The heart of the machine are the vertical sliders, each representing a MIDI pitch value which is sent to a number box and converted to a corresponding frequency. Whenever a bang is triggered (the number box above the select 0 1 2 3 box gives the select box a number ranging from 0 to 3, and the select box specifies to which position the bang is directed - slider 0, 1, 2 or 3), the float value of the corresponding slider is fed to the number box below, from where it is converted from MIDI to frequency, and being output as a sine wave.
Now, the machine has two step counters, a forward and a backward step counter. While the backward counter counts down from 3 to 0, the forward counter counts up from 0 to 3. At the end of the cycle, the counter is reset to the initial value (the inlet of the respective float). Also, a number is added to the cycle counter of the side which is currently running. After a given number of cycles (here: 4 cycles), the machine switches to the other step counter. The given number of cycles triggers a bang. This bang in turn triggers two bangs. These two bangs trigger two switches, of which one is always turned off and the other always turned on, which means that the running direction of the sequencer is switched. Whenever the bang that switches direction is triggered, the cycle counters are reset to 0.
You can change all of the parameters: speed (specify the ms as the number after metro), number of notes (add sliders and change values (do not forget to change all related arguments!) as needed), frequency range (adjust the settings of the vertical sliders if required), number of forward and backward cycles before the jump (change the sel argument of the cycle counters, try asymmetric setups if you like, for example make one metro slower/faster than the other, have more cycles in one direction than the other).
You could also change the sel arguments, e. g. if you want the sequencer to run only 3 notes when running forwards, but 4 notes when running backwards - then you would change the step counter sel argument to 2. It will now reset the step counter when reaching the argument 2 (after 3 notes instead of 4).
If you want the sequencer to run only in one direction, choose the counter you like better and remove the following: switch bang, tbb box, bang to reset cycle counter, the whole cycle counter plus the whole dismissed side of the machinery. You are left with one counter (either backward or forward) that resets to the initial value at the end of each run, therefore running as long as you like, at the metro tempo specified.
This is an open source machinery. If you use it, do buy me a coffee or beer if we ever bump into each other. Thank you.



Keine Kommentare:
Kommentar veröffentlichen