Circuitbenders Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2

Author Topic: my first keyboard...  (Read 18162 times)

jamiewoody

  • This person is dangerously insane.
  • *******
  • Karma: 8
  • Offline Offline
  • Posts: 643
my first keyboard...
« on: November 04, 2010, 08:25:56 PM »

i am ready to try this now! (well, i will be when i order components...).

what i need to do is carefully plan this out before i start building it. thanks to everyone here for advice on components, etc.

so, far, my plan is to make a 555 tone generator. instead of using a potentiometer for the pitch control, do a parallel circuit of push putton switches where the pot would normally be. i will use trimmers to tune the "keys".

i still like the idea of an actual keyset. i have one or 2 keyboards laying around which i am sure i will never use again, so i may harvest 12 keys and see what i can come up with. maybe i can place the push buttons under the back side of the keys?
Logged
"gravity...it's what's for dinner!"

Dylan

  • Closer to the meat
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 287
Re: my first keyboard...
« Reply #1 on: November 13, 2010, 07:29:28 PM »

Logged
www.palmetronics.com
BitCoin accepted.

jamiewoody

  • This person is dangerously insane.
  • *******
  • Karma: 8
  • Offline Offline
  • Posts: 643
Re: my first keyboard...
« Reply #2 on: November 14, 2010, 01:47:18 AM »

thanks dylan, i'll check that out...i am actually close to this now! check out my BASS PEDALS thread on the synths forum! ;-)
Logged
"gravity...it's what's for dinner!"

computer at sea

  • Closer to the meat
  • *****
  • Karma: 20
  • Offline Offline
  • Posts: 301
Re: my first keyboard...
« Reply #3 on: November 29, 2010, 01:35:49 AM »

I bet you could also do it with a couple of 40106's and trimmers.  Each 40106 could give you 6 notes which could be tuned (albeit somewhat roughly) with the trimmers.  While you wouldn't have super tight pitch control, you would have tons of polyphony.
Logged

jamiewoody

  • This person is dangerously insane.
  • *******
  • Karma: 8
  • Offline Offline
  • Posts: 643
Re: my first keyboard...
« Reply #4 on: November 29, 2010, 02:47:15 AM »

i'm thinking about trying some different circuits. i breadboarded it with a 555 and it seemed to work. i may build at least 2 different keyboards into one box, well, one keyboard controlling 2 different VCOs...

right now, i need to order components, which i cannot do...but as soon as i can, i will be happy.
Logged
"gravity...it's what's for dinner!"

moordenaar

  • Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: my first keyboard...
« Reply #5 on: November 29, 2010, 07:19:13 AM »

It is very simple to make a VCO with a 555. Just inject a voltage into pin 5. So you can also set the pitch with voltage instead. Or you can ad an LFO.

Logged

jamiewoody

  • This person is dangerously insane.
  • *******
  • Karma: 8
  • Offline Offline
  • Posts: 643
Re: my first keyboard...
« Reply #6 on: November 29, 2010, 04:29:09 PM »

this is very similar to the VCOs i have been building. even before i ever looked at a drawing of one, and just soldered the components together...(this was my method before i got my breadboard. solder and pray it works...80% of the time, it did!).

the only difference was r1, maybe that 220k resistor would make a huge difference.

i would like to get lower pitch, if my memory serves me correctly, do i go with bigger caps?
Logged
"gravity...it's what's for dinner!"

moordenaar

  • Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: my first keyboard...
« Reply #7 on: November 29, 2010, 07:01:03 PM »


the only difference was r1, maybe that 220k resistor would make a huge difference.

i would like to get lower pitch, if my memory serves me correctly, do i go with bigger caps?

220 K  :o No mate that's just 220 ohm. Also it should't make any difference it's just there to control the "volume," so you could replace with a pot.

Yes, bigger caps = Lower Hz
« Last Edit: November 29, 2010, 07:03:06 PM by moordenaar »
Logged

druzz

  • Way to much time on his hands
  • **
  • Karma: 7
  • Offline Offline
  • Posts: 59
Re: my first keyboard...
« Reply #8 on: December 02, 2010, 04:56:55 AM »

i was also thinking about making some sort of keyboard for my squarewave things . what i thnik i'll do is install a couple of push buttons (5 or 7)  that closes the circuit and re-routes it  trough a different pot for each switch .

so you can tune each note like you want easily  and play little melodies ''morse style'' in the weird unconventional scale of your choice  .  8)


have fun with youre project
Logged
if its not broken , brake it

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: my first keyboard...
« Reply #9 on: December 02, 2010, 07:46:08 AM »

"Real" analogue monosynths often use a chain of precision resistors with the keys wired across them so that you end up shorting a section of the chain when you press a key.  This way, you don't get out-of-tune noises when you press two keys at once and the highest key always "wins".
Logged
If at first you don't succeed, stick it through a fuzzbox.

untune

  • Way to much time on his hands
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 81
Re: my first keyboard...
« Reply #10 on: December 02, 2010, 10:15:12 AM »

"Real" analogue monosynths often use a chain of precision resistors with the keys wired across them so that you end up shorting a section of the chain when you press a key.  This way, you don't get out-of-tune noises when you press two keys at once and the highest key always "wins".

That's what I've been curious about lately.  So if you hold a high key, say F3, and then press C3, you wouldn't hear a change becuse it's lower... but if you pressed C4 while holding it the note would change?
Logged

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: my first keyboard...
« Reply #11 on: December 02, 2010, 10:37:33 AM »

Correct.  Have a look at the scans of the article on the Transcendent 2000 monosynth available on the 'net, and look at how the keyboard circuit works.

These days I'd avoid all the tedious mucking about with precision resistors and the like, and implement a matrix scanner and DAC to generate a true volt-per-octave controller keyboard.  I might do that with my T2000 so I can use it with MIDI...
Logged
If at first you don't succeed, stick it through a fuzzbox.

untune

  • Way to much time on his hands
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 81
Re: my first keyboard...
« Reply #12 on: December 02, 2010, 04:22:14 PM »

I'll have a look for that now :D

That's exactly what i've been studying lately but something didn't make sense to me.  If you implement a matrix (using diodes to stop backward flow) I can't seen any way that the circuit can tell which key you've pressed?

http://www.headfuzz.co.uk/midihack1?q=midihack2

Example there.  I see how everything connects up, and with the resistors the resitors would give each key a unique voltage I assume, but how does it work in the case of a microcontroller?  I've been looking everywhere for the past 2 days and nowhere seems to have a definite explanation of it, they all assume that you know that bit already :P
Logged

Gordonjcp

  • This person is dangerously insane.
  • *******
  • Karma: 78
  • Offline Offline
  • Posts: 1005
    • http://www.nekosynth.co.uk
Re: my first keyboard...
« Reply #13 on: December 02, 2010, 04:37:09 PM »

It does explain it...

What you do is, you switch on each of the five rows in turn, and read the eight columns.  From that you can tell which keys are pressed.  You scan through the five rows very quickly and at a steady rate, so that there isn't a noticeable delay between pressing a key and the note sounding.

So, in your microcontroller you have a timer set to fire an interrupt every 1/1000th of a second (for example).  Every time the interrupt fires, you read each key as quickly as possible (actually twice, because you want to debounce the keypresses, but ignore that for now).  Put every key that's pressed on a list, and remove any keys that are no longer pressed from the list.  Depending on which key you want to have priority, decide which note you're actually going to play.  For a "classic" monosynth keyboard, take the highest key that's pressed.  For a "classic" polysynth keyboard, take the most recent N notes where N is however many voices your synth has.
Logged
If at first you don't succeed, stick it through a fuzzbox.

untune

  • Way to much time on his hands
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 81
Re: my first keyboard...
« Reply #14 on: December 02, 2010, 04:41:17 PM »

Of course, makes sense now!  I'd been stuck thinking about resistor ladders rather than reading it logically  ::)

Classic case of wood for trees there.  Cheers for clarifying that :P
Logged
Pages: [1] 2