Kyma Forum
  Kyma Support
  special mapping

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   special mapping
flo
Member
posted 16 June 2005 13:04         Edit/Delete Message   Reply w/Quote
Hi,
how can I assign the first 16 note numbers (0-15) to the first 16 white keys of my kbd?
So that, when I press the first white key (0), kyma puts out a '0' and when I press the second white key (2), kyma puts out a '1', etc.
What is the most simple solution for this, with a midi-mapper?
What then is the syntax for mapping this. Could you maybe give me one example?
And how can I scale an existing midi file to the note number range 0 - 15?
I need this special mapping/scaling for a new instrument which is played by 16 magnetic driven modified old piano hammers - in case you're puzzled.
Best,

Florian

IP: Logged

pete
Member
posted 16 June 2005 14:03         Edit/Delete Message   Reply w/Quote
Hi Florian

I don't know what key, note number 0 is or what the first key on your keyboard is but this formula should work with a bit of experimentation

((nn+x)*12/7)truncated-x

You have to replace x with a number from 0 to 11 to make the inteferance patern of the formular match the shape of the black and white notes of a keyboard. If you try all twelve values for x, then one (and only one) should work for all notes.

I'm not sure if it's this way round that you want to convert ?

Hope it helps

Pete.


IP: Logged

jesges
Member
posted 17 June 2005 18:22         Edit/Delete Message   Reply w/Quote
Beautiful formula!!

IP: Logged

flo
Member
posted 18 June 2005 01:42         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by pete:
Hi Florian

I don't know what key, note number 0 is or what the first key on your keyboard is but this formula should work with a bit of experimentation

((nn+x)*12/7)truncated-x

You have to replace x with a number from 0 to 11 to make the inteferance patern of the formular match the shape of the black and white notes of a keyboard. If you try all twelve values for x, then one (and only one) should work for all notes.

I'm not sure if it's this way round that you want to convert ?

Hope it helps

Pete.



Hi Pete,

thanks for the formula.
Some questions for clarification:
1. 'nn' is the hot parameter for the pressed key on my kbd here, right?
So if I replace that with !Pitch the formula still works?
2. What is the function of 'x' then, a kind of offset?
3. If I enter this formula, with !Pitch for nn, in the frequency field
of an MidiOutputEvent, it should work?

Best,

Florian

IP: Logged

flo
Member
posted 18 June 2005 07:44         Edit/Delete Message   Reply w/Quote
Meanwhile I experimented a little-bit and arrived at this variation:
(!Pitch * 7/12) rounded
This implemented into the frequency field of a MidiOutputEvent accomplishes what I wanted.


IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c