Playing sound from keyboard

pixelde's icon

hi friends...I am new here..could you ppl help me out to design a patch which can play sound as key board.
like i would like to connect key board to max interface and play a sound.then the key board which is in max should play a same note as i press in real key board....thanks pixelde.

jbl's icon

Hi,

Are we talking about the kind of keyboard that I am using to type these words here or the kind of keyboard that sends midi notes?

To trigger stuff in your patcher from your computer keyboard, you need to look at the key object.

To use a midi keyboard, you need to look at the notein and midiin objects.

These objects will help you trigger your sounds but you need something to make sound with first. For example, to playback a sample you can look at groove~ and play~ objects.

Wojciech Morawski's icon

In h.elpers package (download: http://lowertone.net/software/helpers/) there is object h.midi_Key which converts computer keyboard into midi input.

Check it out!

Christopher Dobrian's icon