Specific words typed triggering samples

klara wodehn's icon

Hi!

I am developing this artistic project - it is gonna be a performance of me visibly typing a poem into MAX Msp, computer reacting on specific words and those words trigger samples - therefore the music composes itself with the poem progressing.

I wanted to ask if anyone possibly had any prior experience with this kind of a work?

I guess I have to create lists of samples and list of words - and the thing is - how to connect them. If a word typed - sends a number and the number is connected to the sample, and it triggers it...that is how I imagine it. ? But practically it is hard for me to know which objects would be the simplest way how to achieve this...

Thank you very much in advance!!!!!!

Jean-Francois Charles's icon

Well, you could start with [textedit] to input the text and [sel] for string matching, [umenu] and [sfplay~] or [playlist~] to play a sound. When you know your maximum polyphony (how many overlapping samples) then you can refine, use several sound file players / buffers with other playback objects, etc.

11OLSEN's icon

Here's a very simple example. It matches the last typed word and looks for the related sample in a dict and plays it with maximum 4 voices polyphony.

Max Patch
Copy patch and select New From Clipboard in Max.

klara wodehn's icon

!! Hi, thank you very much.. i updated my dictionary, it reacts on the words that i write and displays bang everytime it spots the word i filled in the dic., so this works!! im very grateful. but - it does not play anything and i am not sure where it went wrong.. the samples are changing as i write, but they do not really play..do i need to load them somewhere - add some message to the sfplay object? i see there are open messages, it should! work! i do not know.

11OLSEN's icon

Is audio switched on (the big button with the speaker symbol)?
Are your samples in the search path (otherwise you have to specify the full path, not only the file name)?
You see errors in the Max console?

klara wodehn's icon

audio is switched on, yes! the path could be the problem, i will look into that, thank u very much..

klara wodehn's icon

yes!! it cannot find it, so i will put the full path. THANK U!