How to make a 1V/oct keyboard controller

Thread Starter

CiaranM

Joined Jul 15, 2012
25
hello! I found a good site yesterday which has good synthesizer schematics (I'll give you the link if you want). I'm going to try and build a VCO, VCF, and VCA.
My problem is how to get pitch and gate signals. Obviously its the keyboard that does this, but how? What circuit do I need to make to recognise note presses and output CV signals? thanks.

Note: as the keyboard is a 1V/oct synthesizer, I'll need each successive 12 notes (i.e. an octave) to output one volt higher than the last. If one octave ranges up to a volt, then each key should output 0.083333..V .. I think
 

Thread Starter

CiaranM

Joined Jul 15, 2012
25
great, thanks! I've found a keyboard CV on that site; it looks bloody complex though. I hoped it would be simple.. haha
 

#12

Joined Nov 30, 2010
18,224
Each half-step in music is the 12th root of two times the frequency of previous note. On a 1 volt per octave scale, each voltage should be 1.0594631 times the previous voltage.
 

Thread Starter

CiaranM

Joined Jul 15, 2012
25
are you sure that's right? I typed '1 x 1.0594631^12' (12 because I'm ascending an octave), and this gave me near enough 2V. However, 1 x 1.0594631^24 is calculated to be 4V instead of the required 3V
 

#12

Joined Nov 30, 2010
18,224
The intervals are still 12th root of two for a "well tempered clavier".

If A is 440 hz and the next A is 880 hz, then the third A is 1760 hz. Right?
What's 1760/440?
4
What's the 12th root of 2 to the 24th power?
4
Two octaves: 4x the frequency

If the oscillator doubles frequency for every doubling in input voltage this will work.
If the oscillator doubles frequency for every 1 volt of input, it won't work, and you will have to math out a different formula.

Ediit: Good news. The schematic for the 1v/octave oscillator has been provided by the site Bertus mentioned.
 

Attachments

Last edited:

Thread Starter

CiaranM

Joined Jul 15, 2012
25
right, I see.
I want to use the 1 volt per octave configuration, so that I don't have to use a high voltage (I haven't got any power supplies, and I'm just using batteries.)
I think that double V = double fq config was used by Yamaha? thanks for your help. that schematic looks good

b.t.w., what's that the bottom right; named PN4391? is that called a MOSFET? what makes these different from BJTs? (in terms of performance)
 

#12

Joined Nov 30, 2010
18,224
It's an n-channel jfet. You can find these datasheets by searching for, "pn4391 datasheet".
Jfets are very differet from bjt's because they are born in the "on" condition. You use them by biasing them more towards "off". They use very close to zero input current and generally, never pass more current than the idle current they pass at zero volts from gate to source.
 

Attachments

SgtWookie

Joined Jul 17, 2007
22,230
Bipolar junction transistors (BJT's) are controlled by current; a small current through the base controls a large current through the collector.

FETs are controlled by voltage; a voltage on the gate controls the drain current.
The PN4391 thru PN4393 appear to be obsolete; the PN4391 is fairly hard to get nowadays. However, Arrow has over 100k of the PN4392 in stock for $0.053:
http://components.arrow.com/part/detail/1342709S3111758N7769
You could likely get by with that.

As noted in Bertus' link; this really isn't a project for a beginner. A beginner needs to start with less complex projects; as there is much less risk involved. The more complex a project is, the higher the risk of failure. The more small projects you complete successfully, the more likely a complex project will be completed successfully.

We don't want you to fail. At the same time, there is only so much we can do for you remotely.
 

Thread Starter

CiaranM

Joined Jul 15, 2012
25
I understand now, thanks. so current won't affect a JFET at all? and voltage won't affect a BJT at all (other than making it hot, probably)?
Thanks for the advice. I'm not that much of an amateur, ha ha. I'm able to solder, fault-find (its a surprisingly good thing to be competent at) and I've made a few things... which makes me think, do any of you ever buy project books or anything like that?
 

MrChips

Joined Oct 2, 2009
30,824
I presume that you are attempting to build an electronic keyboard. Any reason why you wish to go analog instead of doing it digitally using a microcontroller?
 

Thread Starter

CiaranM

Joined Jul 15, 2012
25
you can use a microcontroller for 1V/octave control?? I'm not really concerned about whether its digital or analogue, just whether it works or not
 

MrChips

Joined Oct 2, 2009
30,824
You can use an mcu to deliver just about anything you want.
In this case 1V/octave is irrelevant. The mcu will just detect which key is pressed and deliver any note that you desire.
(or any sound, siren, drum beat, bird whistle).
 

Thread Starter

CiaranM

Joined Jul 15, 2012
25
sounds interesting. would I have to set up resistors or whatever across the keys so that the microcontroller gets different voltages for different keys?
 

MrChips

Joined Oct 2, 2009
30,824
You're thinking too much analog. You have to take a systems approach.

Tell me what you are attempting to do. Are you building a keyboard from scratch?
Is it a digital keyboard or more like an analog synthesizer?

A lot has to do with the mechanical keys. If you are building your own that's a huge task.
If you already have a keyboard that you wish to adapt that makes a huge difference.

Digital polyphonic keyboards can recognized any number of keys pressed and are touch/velocity sensitive. The velocity sensing is the difficult part and I am no expert at this.

Once you have this pair of information for each key, the sky's the limit. You just have to use your imagination as to what type of sound you wish to generate. Everything from here on is done in software so you don't have to mess around with hardware VCF, VCA, filters, etc.

Another approach if you wish to create your own sound effects is to use a MIDI keyboard and capture the keys pressed on a computer. Then the computer software can generate the sounds for you. There must be tons of software already out there that does this.

If you wish, you can do away with keys entirely and use a touch sensitive screen, much like an iPad. Then you can have smooth glides from one note to another.
 

Thread Starter

CiaranM

Joined Jul 15, 2012
25
I'm going to try and build a VCO, VCF, and a VCA. So its all analogue, for now.. I'm most likely going to buy a cheap keyboard off eBay so that I can take the keys from it. I'm not concerned with velocity or any of those sorts of things (aftertouch? what, you think I'm Bach?! .. I'll be Bach! ..sorry), just gate and CV for pitch. Analogue synths have a limitation of one note at a time, unless you add more oscillators, is that right?
I guess with VC synthesizers, the ability to use any signal for modulation appeals to me. and the sound :D

thanks for your help, its immensely useful!
 
Hello! I found a good site yesterday which has good synthesizer schematics (I'll give you the link if you want). I'm going to try and build a VCO, VCF, and VCA.
My problem is how to get pitch and gate signals. Obviously, its the keyboard that does this, but how? What circuit do I need to make to recognize note presses and output CV signals? thanks.

Note: as the keyboard is a 1V/oct synthesizer, I'll need each successive 12 notes (i.e. an octave) to output one volt higher than the last. If one octave ranges up to a volt, then each key should output 0.083333..V .. I think
I found an old Casio on the street and the keyboard used diodes each with a forward resistance of 338 MegaOhms (338 was actually written on the circuit board). Because the voltage drop on a diode is 0.7 and 0.7*12 (octave has 12 notes, not including the octave interval itself) EQUALS 8.4 volts. so the whole unit was receiving 9V which leaves 0.6 V (this being the diode drop of the 13th note). Thus bringing all 13 notes of the chromatic scale down to GND from a 9-Volt PSU for the processor (which was one chip on this Casio that supplied 99tones, 50 drum tones, and 40 pre-supplied rhythm patterns which is nuts! On a chip the size of my thumbnail) It had six octaves and I couldn't measure voltage or amperage as it was taken apart (I'm bringing it into work to get access to PSU to do the measurements, but each keys resistance was around a 1% tolerance of the PCB stated rating of 3M389 MOhms: 1-C (3M44), 2-C#/Db (3M48), 3-D (3M6), 4-D#/Eb (3M47), 5-EFb (3M55), 6-F (3M52), 7-F#/Gb (3M39), 8-G (3M47), 9-G#/Ab (3M37), 10-A (3M35), 11-A#/Bb (3M37), 12- B/Cb (3M6).

I originally figured Zener diodes would be used due to their property of dropping .7 voltage regardless of Voltage input which was confirmed. I work at an electronics workshop in SF called TechShop (TechShop.ws) and will be figuring out how to make an ANALOG keyboard to go with my synth. I'm going to measure the CV output by y Arturia Keystep as well as my ANALOG VCO uses a CV through a 1V/Octave Expo-Converter topology but I want to manufacture both MIDI capable Hardware synths and modular synths (which would require a MIDI/CV Module.

Also, I have attached a helpful schematic designed for your specific use. I know this is an old thread, but I looked it up in 2017 so I know people are googling (Diode Midi Keyboard Schematic and this is what popped up as the first google link so maybe this will help out in the future):


I hope this helps in the future
 

Gerry9

Joined Jan 30, 2020
2
Each half-step in music is the 12th root of two times the frequency of previous note. On a 1 volt per octave scale, each voltage should be 1.0594631 times the previous voltage.
Hi there ..hope you helpme toto understand this... so you say if before the expo function I have lets say 30mv. At the out of thet expo I have to have 30mv*1.0594631....?????
 
Top