Text Or Data To midi file or sequence
Hello Everybody,
My name is Yassine, I live In morocco, I juste joined the community of max as I'm a great beginner :)
I Want To create à Patch that would transform a text ( News paper text, poetry, religious, lyrics) into a Midi sequence.
In deed, I want to use the gematrical correspondance between letters and numbers to rewrite a text into a serie of numbers.
For example, A Books is composed of chapters, chapter are composed of paragraphs, paragraphs are formed by words and words by letters and every letters in every languages has his historical equivalent in numbers :
if you add the numbers equivalents to letters in a word a chapter will look like :
3545 55 3545 45 4345 34 332 65. 543 322 88 2 3 676 3 3234 554 3. 434 5 32 76 323.
Between every dot there is a paragraph. A chapter could be very short, composed from 2 sentences, each one is a considered as a paragraph. In the others hand it could be very very long depending on original text.
I would love to know how can I do to transform these series of numbers into a midi sequences, with a tempo, chords and single notes. The result I expect is a midi sequence that represents faithfuly a Text .
Hope you will help to reach that goal.
Thanks in advance
The answer to your question and the cold hard truth are both the same: any mapping from your input to MIDI data will be arbitrary. You can say that the number 3 represents MIDI note number 3, or 103 or 42. It's all up to you. It could be a fun experiment in learning Max and you might hear some patterns back in your MIDI output, but it's really just up to you. So make a decision about what will be represented by a chord, and what will yield a note. If you study some music theory, you can easily make it all sound quite right too. By using notes that are within an existing scale, you can make sure the input results in something palatable.
As for the specific Max object to use, I would look at [dict]. It can help you to map a single symbol input to a single OR multiple symbol output. Which is, in fact, what you are suggesting. Good luck and have fun!