PC Keyboard to midi in a special Way

Jun 3, 2009 at 2:55pm

PC Keyboard to midi in a special Way

Hi,I surfed the internet for this without a result.
My Idea is to control a Midi-Signal with my PC-Keyboard.
And this is the way it should be controlled:

48 Keys on my keyboard should controle 32 Tones / Midisignals.

But these 48 Keys are divided in 6 groups.

these 6 groups are controlled by 6 other keys(group on or off).

so I push the tones on the 48 keys and use the 6 “control-keys” to decide which groupe i want to hear.

Also it would be nice to have the space key as “sustainpedal”

youtube.com/watch?v=DmOXDhsmSec

I hope its easy to understand. maybe its possible to realise my idea with MAX.

my email is: keytomidi@oleco.net

thanks for helping
sorry for my german english

#44228
Jun 3, 2009 at 4:24pm

It is definitely possible to realize this idea in Max. I’m not sure how new you are to Max, but the Max tutorials (any dealing with keyboard input and MIDI input) should show you all the objects you need.

Tonight after I get back from some rehearsing, I can give some more specific advice if you’d like.

Before I could go into detail about what you should do to program this in Max, I want to make sure I understand your goal.

Normally when I mapped my PC keyboard to MIDI, I would use row of 12 keys (1 through =) to represent a chromatic scale (pitch level, duration, and timbre parameters controlled by the other keys). In this setup, I would have NOTE-ON happen when I pressed the key, and NOTE-OFF when I would release the key.

If I understand your idea correctly, you want to chose pitches with the main groups on the keyboard, and then send a NOTE-ON/NOTE-OFF for each group when you pressed/released the groups key on the number pad?

How would you want the note selection in each group to work? Do you want to be able to pick one note at a time per group? or do you want to have each key toggle on or off its note? for example: I could press keys “1″, “2″, and “3″ and all three pitches would sound when I sent a NOTE-ON for that group–then if I press “2″ again, it would turn that off and now only “1″ and “3″ would sound when I sent a NOTE-ON for that group.

#158990
Jun 3, 2009 at 9:38pm

Have a look at the patch linked to below which uses the computer keyboard as a MIDI controller keyboard. It uses the [key] and [keyup] objects to detect keypresses and [coll] to output the desired midi notes. I hope it is helpful.

lh

http://www.cycling74.com/forums/index.php?t=msg&goto=165588&rid=7622&S=4423e90cb902dbd5e2a1d6c52154a3c5&srch=lh.keys#msg_165588

#158991
Jun 4, 2009 at 5:09am

Send your values from [key] and [keyup] through sprintf $c. This will output the letter/number instead of the ASCII value and is way easier to deal with:
sel q w e r t y

You still need to use ASCII values for non-printing characters like space, ESC, return, backspace, Tab, and the arrow keys.

#158992
Jun 4, 2009 at 10:32am

It schould be similar to a stringed instrument
so i want only the highest note in each group.
some of the 48 notes are used twice because each group is a string.

the Keyboard shortcuts are variable and it need not be the space-key.
can i use the numberblock and the numbers over the letters for diffrent commands?

thanks for helping

#158993

You must be logged in to reply to this topic.