| 1 |
# PowerNoise instrument editor |
| 2 |
|
| 3 |
the PowerNoise instrument editor consists of two tabs. |
| 4 |
|
| 5 |
## LFSR-based synthesis |
| 6 |
|
| 7 |
PowerNoise employs LFSR-based synthesis for the noise channels, using linear-feedback shift registers for sound generation. |
| 8 |
|
| 9 |
a linear-feedback shift register is one method used for random number generation. |
| 10 |
it works by shifting a sequence of binary numbers (bits), taking the last bit into the output. then one of the bits is either pushed back into the register, or combined with another, doing a XOR (exclusive or) operation and then being pushed back. |
| 11 |
|
| 12 |
think of it as a conveyor carrying glass bottles. each bottle may be empty or carrying water. |
| 13 |
the bottle at the end is taken. if there's water, then the output is 1. if it's empty, the output is 0. |
| 14 |
depending on the LFSR configuration: |
| 15 |
- a bottle is pushed into the conveyor. it is either empty or filled with water depending on the bottle at a specific position in the conveyor (this is called a "tap"), or |
| 16 |
- two bottles at specific positions ("taps") are looked at and combined as follows: |
| 17 |
- if the bottles are identical, an empty bottle is pushed. |
| 18 |
- if one bottle has water but the other is empty, a water bottle is pushed. |
| 19 |
the process is repeated indefinitely. |
| 20 |
|
| 21 |
PowerNoise uses either one or two taps for the LFSR, configurable via the Control macro. |
| 22 |
|
| 23 |
the LFSR must be initialized before it can produce sound. the Load LFSR macro allows you to do so. |
| 24 |
|
| 25 |
by default the LFSR is configured to produce square waves, by having a single tap in position 1 and an alternating LFSR pattern. |
| 26 |
|
| 27 |
## Macros (noise) |
| 28 |
|
| 29 |
- **Volume**: volume sequence. |
| 30 |
- **Arpeggio**: pitch sequence. |
| 31 |
- **Panning (left)**: output level for left channel. |
| 32 |
- **Panning (right)**: output level for right channel. |
| 33 |
- **Pitch**: fine pitch. |
| 34 |
- **Phase Reset**: trigger reloading the LFSR. |
| 35 |
- **Control**: channel settings: |
| 36 |
- **slope AM**: when enabled, this channel's output and the slope channel go through amplitude modulation. the final output plays in the slope channel. |
| 37 |
- **tap B**: enables use of two taps for the LFSR. |
| 38 |
- **Tap A Location**: sets the position of the first tap. |
| 39 |
- **Tap B Location**: sets the position of the second tap. |
| 40 |
- **Load LFSR**: allows you to load the LFSR with a specific pattern. |
| 41 |
|
| 42 |
## PowerNoise tab |
| 43 |
|
| 44 |
this tab allows you to change the base octave - important when you have set a longer LFSR pattern. |
| 45 |
|
| 46 |
## PowerNoise (slope) instrument editor |
| 47 |
|
| 48 |
this channel has its own instrument type, as it does not use LFSR-based synthesis but instead generates saw waves. |
| 49 |
|
| 50 |
it uses a custom algorithm which will be (roughly) described below. |
| 51 |
|
| 52 |
the slope channel uses two "portions" - each with length, offset, invert and clip parameters. |
| 53 |
the channel alternates between these portions as it is cycled. |
| 54 |
|
| 55 |
on every cycle, the offset of the current portion is either added or subtracted into the accumulator (depending on the invert parameter), effectively behaving like a multiplier. |
| 56 |
if the clip parameter is enabled, this will make sure the accumulator doesn't go past 0 or 127 (depending on the invert parameter, again). otherwise, the accumulator will be ANDed with 127. |
| 57 |
once an amount of cycles set by the portion length parameter have elapsed, the channel switches into the other portion. |
| 58 |
|
| 59 |
the current value of the accumulator is output. |
| 60 |
|
| 61 |
## Macros (slope) |
| 62 |
|
| 63 |
- **Volume**: volume sequence. |
| 64 |
- **Arpeggio**: pitch sequence. |
| 65 |
- **Panning (left)**: output level for left channel. |
| 66 |
- **Panning (right)**: output level for right channel. |
| 67 |
- **Pitch**: fine pitch. |
| 68 |
- **Control**: channel settings: |
| 69 |
- **clip A**: sets clip parameter of first portion. |
| 70 |
- **clip B**: sets clip parameter of second portion. |
| 71 |
- **reset A**: resets the first portion. |
| 72 |
- **reset B**: resets the second portion. |
| 73 |
- **invert A**: sets invert parameter of first portion. |
| 74 |
- **invert B**: sets invert parameter of second portion. |
| 75 |
- **Portion A Length**: sets the duration of the first portion. |
| 76 |
- **Portion B Length**: sets the duration of the second portion. |
| 77 |
- **Portion A Offset**: sets the accumulator speed of the first portion. |
| 78 |
- **Portion B Offset**: sets the accumulator speed of the second portion. |