Showing posts with label DIY. Show all posts
Showing posts with label DIY. Show all posts

Wednesday, 7 September 2016

The 3Trins case

I'm putting this portable Video Synth case together for a future gig.

 An old Haliburton Zero came in handy.



3TrinsRGB Patches

Recording some patches.
The 3Trins patchbay is where all the magic happens.

This page will develop as I add to the number of patches.

video modulating the red oscillator (Vid -->Rcv)
--------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

Video modulating red & blue oscillators.
..............................................................................................


------------------------------------------------------------------------------------------




Saturday, 27 August 2016

3TrinsRGB+1c build pics & initial tests

3TrinsRGB+1c is an analog audio/video synthesizer

 This build took about 3- 4 hrs. It's not difficult but it's not for beginners either.
Some closeups from various angles. Hopefully this will help future builders.




The pot in the foreground is the only 20K one . ... has the gold top.


There is a transistor missing in the above pic -- to the left of the 10uf cap.






This is the 2016 version
..
 Note the two resistors below "VidIn"
 In the pic below, the 10R is missing.
First tests:
The middle white LED didn't work, so had to be replaced... just like in GGs video.
I don't think the LEDs effect the operation of the buttons.






Nice, the video in works perfectly.
The manual is here:
http://gieskes.nl/instruments/files/3TrinsRGB1/3TrinsRGB1c-manualV1.pdf

Watch this video at least twice before you build anything.
Essential viewing.
https://www.youtube.com/watch?v=QqKOfuUpSV8

And GGs website is here:
http://gieskes.nl/instruments/?file=3TrinsRGB1
Assembly instructions:
https://www.flickr.com/photos/62323010@N00/26454192491/

Sunday, 21 August 2016

While Loops - Arduino

 While loops

Allows more flexibility than a for loop.
A while loop will loop continuously, and infinitely, until the expression 
inside the parenthesis, () becomes false. 
 

Syntax

while (condition) {
  // statement(s)
}
 
 -----------------------------------------------------------------

Example Code

var = 0;
while (var < 200) {
  // do something repetitive 200 times
  var++;
}
 -----------------------------------------------------------------------
 

 
//This code will print the numbers 1 to 10
//print a space
//then loop

int j; // counter
int delayTime=100;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  j=1;
  while (j<=10){
    Serial.println(j);
    delay(delayTime);
    j=j+1;
  }
  Serial.println(); // prints a gap
    
}
 
 ----------------------------------------------------
 example 2
while the voltage at the pot is less than 1023 (5V)
the LED is off.
Any voltage above this turns the LED on.
 


int j; // counter
int potVal; // 0 to 1023(5V).. value of pot
int delayTime=100;
int potPin=A0;
int redPin=7;


void setup()
{
  Serial.begin(9600);
  pinMode(potPin,INPUT);
  pinMode(redPin,OUTPUT);
 
}

void loop()
{
  potVal=analogRead(potPin);
  Serial.println(potVal);
  delay(delayTime);
 
  while (potVal>1000) {
    digitalWrite(redPin,HIGH);
    potVal=analogRead(potPin);
    Serial.println(potVal);
    delay(delayTime);
    
    
    
  }
 digitalWrite(redPin,LOW);
    
}

 
 Links
 
 ---------------------------------
------------------------------------- 

Wednesday, 17 August 2016

Compressors for Audio

 This is an attempt to demystify audio compressors.
They are useful both in the music studio and when performing live.
It's all about reducing & smoothing the audio peaks and troughs.

I have a few different types, ranging from small modules to rack units.
They all however have similar controls.
There are also quite a few eurorack compressors.
My favourites are the WMD MSCL and the L-1micro compressor 


You can actually build a compressor with a envelope follower, a an inverter and a VCA. A modular compressor is essentially a voltage controlled envelope follower tied to a VCA.
 
+ Modular Compressor -using eurorack modules
 
 
The MSCL is unusual in that it doesn't have the usual controls.It's inspired by the classic 
DBX "over easy"style compressor . The threshold, gain & output are all controlled with one
knob and two switches. 
 
This is an excellent stereo compressor for a small modular system. It packs in a lot for just 4HP
 
The Limit Switch limits the make-up gain allowing the MSCL to act like a peak limiter. 
The Threshold Switch helps compress signals of different amplitudes. Both modular & line level.


Both switches have 3 settings:left (off), middle(half on),right (full on).
The side chain input helps create your ducking sounds.
 
To turn on the compressor, I like to turn the LIMIT to the left & 
THLD (Threshold) slide switch to the middle to start with.
 
The Limit is your final volume. 
The Threshold is the volume the audio has to reach before compression begins.
 
I usually end up with both switches in the middle or maybe one of them 
to the right (usually the threshold).
Often I'm mixing Line Level audio with Modular audio and these have 
huge volume differences.
 
The lower toggle switch needs to be in the centre position.
I usually set the COMP knob to around 75% and GAIN to 50%
As you turn up the COMP knob you will see the LED change from red to green.
Red is your gain reduction. Green is gain addition.
(The GAIN knob is your Makeup... so use it at the end of the audio chain). 

Play around with the envelope. Turning up the attack will let the
beginning of your kick drum through. These envelop knobs are a great
performance feature

The bottom 3 throw toggle switch has side chain, in, out.
IN = wet compressed signal
OUT = dry uncompressed signal.
Switching between these two is a great way to compare.
As WMD say in their video .. "don't be afraid to use your ears"
Just listen to how each sounds and make your adjustments accordingly.






Threshold

 This sets the volume the audio has to reach before compression begins.
It acts like a gate. 
Adjusting this control sets the level at which the gate will open and allow the signal 
at the input to pass through to the output.

Ratio

This is the amount the audio is reduced (over the threshold).
It's as the name suggests a ratio.

When an input signal is above the THRESHOLD reference level, the setting of this control determines the number of decibels (dB) by which the input signal must change in level to produce a 1dB increase in the signal level at the output
 
Common ratios you will see are:
1:1
1.3:1
2:1
3:1
4:1
Infinity :1
---------------
 
1:1 is no compression
Infinity :1 , Here the compressor acts as a limiter as audio will never exceed the threshold.
 3:1 here the audio above the threshold is compressed a third.
So if the sound peaks 15dB over the threshold, it will be attenuated to 5dB over the threshold.
 
I tend to set the ratio between 3:1 to 10:1
Above this, it tends to clip the audio.
 

Attack

The ATTACK control is an envelope. Just like a ADSR. It sets the amount of time it takes the module to begin compressing a signal once the threshold is breached. The ATTACK range is from FAST (for a tighter and more noticeable compression effect) to SLOW (for more delayed, gradual compression). 
 

Release

The RELEASE control sets how fast the compression circuit returns the input to its original level. 
Again this is very similar to the ADSR envelopes you are used to with modular synths. The RELEASE rate is from FAST (where the compression slope is steep) to SLOW (for very smooth, gradual compression). 
 
There is no absolute right way to set the ATTACK and RELEASE controls.


MakeUp / Output Gain

The OUT-PUT GAIN control  is also known as MAKE-UP.
It does not interact with the threshold of compression.
Use it to compensate or Makeup for any drops in the final volume which may have occurred during compression 
 

Knee

While discussing the MSCL compressor above, I mentioned the DBX "over easy" style.
This is where Hard vs Soft knees curves come into the discussion. 
"Over easy" seems to be dbx's way to describe a "soft knee".
A soft knee will yield a generally "softer" more subtle compression effect. 
 

It is, in effect, a variable threshold since there is no distinct point at which processing begins.
The compression ratio will start climbing gradually before you approach the threshold as opposed to suddenly "kicking in" all at once at the threshold. 
 
Some compressors have an adjustable knee. I haven't seen many of these in the eurorack format
 

Multi-Band Compression.

There aren't many of these in Eurorack.
Here, the sound from your modulars is split into multiple frequency bands using modules like
EQs. Three bands is the most common number. 
Each frequency band is then compressed separately after which the audio streams are
mixed back together.


I particularly like the Endorphin.es golden master.
It's a 3 band equaliser with a compressor for each band.
Just 6HP
What it lacks in compressor controls it makes up for in size and ease of use.
Sounds great too.


















2HP also make a compressor.
It might be fun to have a few of these chained to an EQ to make a multi-band compressor  with lots of control

 

Peak vs. RMS

Peak value is the highest voltage that the waveform will ever reach, like the peak is the highest point on a mountain. The RMS (Root-Mean-Square) value is the effective value of the total waveform.
When it comes to compressors, these two settings refer to response times.
Peak compression is great for things like drums.The compressor's changes occur much quicker.
RMS changes are slower and good for slower sounds like strings or pads. 
 
 

Sidechain

This effect was first developed in radio studios. The background audio could
be dropped automatically when the announcer spoke. 
Thus, the volume level on one instrument is controlled by the volume 
level of another instrument. A common example would be making the 
compression level on a bass controlled by the output volume of the 
kick drum.  This is called Ducking.
 
I really like the endorphin.es Cockpit. 
Though it's not marketed as a compressor, it's ducking is great for getting
that pumping sound. 
It's really a mixer with a VCA.  
 
 
 
 
 
 
 
 
 
 
 
 

Feedback (feed forward) compression.

Here, the input signal is split into two. One goes into the compressor itself.
The other goes into the sidechain. The sidechain is then fed by the output of the compressor.
This type of compressor was made famous by the Universal Audio 1176.
 


LIMITING

This is where you set the max volume your signal will reach.
It provides overload protection.  
 
 
The Audio Damage ADM10 Kompressor is DSP based.
Just 6HP. Nice 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Other eurorack compressor modules
+ Autodyne - SSF
+  Dynamo - Bastl
+ Mutant Hot Glue - Hexinverter
+ Mutable Instruments Streams 
 
An example of a compressor in a pedal format.

Links

Friday, 5 August 2016

OLED - printing text to the screen

 OLEDs communicate with your Arduino via i2c.
Just 4 wires are needed.
 

Gnd
Vcc
Data connects to A4
Clock connects to A5 (Uno)
 
This is a basic start up splash screen.
There are 3 pages

Libraries Required :

  • Adafruit SSD1306
  • Adafruit GFX

The code:

// *****************

 // install these libraries
#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>

#define OLED_WIDTH 128
#define OLED_HEIGHT 64

#define OLED_ADDR   0x3C
// define the i2c address
// if you don't know the address, use a i2c scanner
// you can have over 100 devices connected

Adafruit_SSD1306 display(OLED_WIDTH, OLED_HEIGHT);

void setup() {
  display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR);
  // this begins the display
  display.clearDisplay();

  display.setTextSize(2); // range of 1 to 8
  display.setTextColor(WHITE);
  display.setCursor(0, 0); // first position on left
  display.println("Welcome");

  display.setTextSize(2);
  display.setTextColor(WHITE);
  display.setCursor(0, 17); // 17 positions dowm
  display.println("Page 1"); // just like a serial printer
  display.println("intro");
  display.println("display");

  display.display();
  //display function.
  // this is very impt .. it prints everything
  // from memory to the screen

  delay(5000);
}

void loop() {
  display.clearDisplay();

  display.setTextSize(2);
  display.setTextColor(WHITE);
  display.setCursor(0, 0);
  display.println("Jono");
 display.println("page 2");

  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0, 35);
  display.println("jondent");
  display.println("Synth Blog");
  display.println("jondent808@gmail.com");
 
 

  display.display();
  delay(5000);

  display.clearDisplay();

  display.setTextSize(2);
  display.setTextColor(WHITE);
  display.setCursor(0, 0); // 0 = collumn, 0 = row
  display.println("Jon's test");
  display.println("page 3");

  display.display();
  delay(5000);
}

// ****************** 

 Links
Thanks to Eli for the inspiration and great tutorials.
 

 ---------------------------------

-------------------------------------

Wednesday, 3 August 2016

NLC Bong0 - Drum - Build notes

These are my build notes for the Bong0.
Its a Eurorack module from Non-Linear Circuits

"The bong0 is a twin-T based drum module with a LED acting as a nonlinear resistor to give it some interesting characteristics. 
 
Twin-T Oscillators
(sometimes known as parallel-T oscillators) are another type of RC (resistor-capacitor) oscillator which produces a sinewave output . They require an Op-Amp, some resistors & capacitors.
They are very similar to the Wein-bridge oscillator

The two "Tee" shaped RC networks are part of the OP-amp's feedback loop
between the output and input of the op-amps inverting amplifier.
Note that each of the the resistor & capacitor elements are in an opposing formation
but are connected in parallel.

Because the inverting input is used there is a phase shift of the oscillator by 180 degrees.
Note the "Ladder Network" of resistors & capacitors that form this feedback loop.
This is pretty common with RC Phase-shift Oscillators.

The trigger input acts as a normal input to get your drum sound. The input marked ‘in’ can also be used, or you can jam a CV in there, or a gate or audio. You can just use the ‘in’ input without anything into the trigger.


Bong0 can also be used for basslines, drones and as a crude but useful VCO. It has about 20 passive components which are 0805 smd and 1 thru-hole TL072, meaning it is a good circuit for learning to solder smd parts and delivers way more fun than such a simple module should." (Andrew F).


More Links:
1. Muffs
2. Build notes (NLC)
3. Panel art
4. NLC Blog

 
"Not a smoking implement" - NLC words of wisdom.






The pots are linear 100K






As you can see in these pics I used a green LED.
The LED acts as a nonlinear resistor so i think the type of LED you choose is important.
I couldnt remember the specific specifications of the green LED that I used , but I found that the volume was very low if used as a drum.

I decided to bump it up by swapping the 470K resistor with a 1M.
 If you check the schematics this is the second -ve feedback loop of the 072 op amp.
Andrew reckons it wont hurt anything....except my speakers if I crank it to self-oscillate.

I'll try building this with a blue LED next and see if there is any difference.
--------------
05/05/2018
Yes, the blue LED made a huge difference.
I kept the 470K resistor.


 


-----------------------------------------------------------------------------------
You can find more NLC builds here.
---------------------------------------------------------------------------------------

A side note regarding TT  or twin T oscillators.
Instead of using  a operational amplifier , someting like a logic gate could be substituted to provide the oscillations.
Ive seen a 4011 ic used as a tone generator.
 
The CD 4011 is cheap and includes 4 positive logic NAND gates on a single chip.
The NAND gate is a logic gate that gives a LOW output only when all inputs are HIGH
 

 
 See the RC network below.
The circuit is of a drum machine from the magazine "Practical Electronics", 1978.