Forums > MaxMSP

Hearing Test with max?

June 15, 2012 | 8:46 pm

Hi everyone,

I am putting together a simple experiment in which I have a list of specific frequencies: 20 25 31.5 40 50 63 80 100 125 160 200 250 315 400 500 630 800 1000 1250 1600 2000 2500 3150 4000 5000 6300 8000 10000 12500

And basically what I want is to have the list in an array / table so that I can randomly select a single value from the list, have it play that frequency. The premise is that once I have selected that audible frequency I want to increase the volume level until it becomes uncomfortable. Once you have reached this threshold you can save that frequency and the volume level to file and listen to another frequency (randomly).

I have looked into the urn, select, table, and random object but I can’t get it to work the way I wanted it to….any help would be appreciated :-)

Thanks.

Mark


June 15, 2012 | 10:53 pm

You could save your list into a coll object and randomly select a frequency from that. Also, I would suggest that you might have trouble producing anything below about 80Hz to a degree where it becomes uncomfortable without a serious amount of subs (obviously dependent on the space you are using them in)

Benny



o s
June 15, 2012 | 10:56 pm
– Pasted Max Patch, click to expand. –

hth o


June 15, 2012 | 11:16 pm

This gets you as far as getting the frequency and amplitude. Now how you then save the frequency/amplitude pairs in a table or list, I’m not sure of the best way to do that.

– Pasted Max Patch, click to expand. –

June 17, 2012 | 2:10 am

Thanks a lot guys! You both rock. I think I can manage getting the data saved to file based on the examples you have created. If you have any questions I will let you know.

Once again, thanks for helping out :-)

Mark



o s
June 18, 2012 | 10:22 pm

I did some more work on it- and be surprised how quickly things are going complex… maybe you can use something :-)

– Pasted Max Patch, click to expand. –

Viewing 6 posts - 1 through 6 (of 6 total)