I am trying to create a simple midi keyboard. When I press a certain key on my keyboard, it should generate a certain midi note. Sure, I can use a [route] object and a message, but then I have to generate [route] objects/messages for every key/note combination an wire them up. This will rather cumbersome and will result in a confusing patch.
So I am looking for ONE object which can convert values in other predefined values, kind of a lookup table.
So I have only one wire to this object and one wire from this object. One should be able to define a simple table when creating this object (or use a text file), e.g.
If I send 33 to the object, it should send out hello.
If I send 43 to the object, it should send out bye.
If I send 55 to the object, it should send out bar, etc.
Is there such a object in pure data???