[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUDITORY] Generate IRNs in Matlab?



Hi Patricia and anyone else interested,

At the Music Dynamics Lab at University of Connecticut, we have a MATLAB toolbox for nonlinear oscillator modeling of auditory processes, but it also has many stimulus generation functions that can be used for general purposes in addition to usage within the toolbox. You can acquire the toolbox here:

https://github.com/MusicDynamicsLab/GrFNNToolbox

and add it and its subdirectories to your MATLAB path. You can read the documentation of the function stimulusMake() to learn how to generate various types of stimuli. But here is an example of IRN:


s = stimulusMake(1,'fcn',[0 1],44100,{'noi'},'iter',0.005,5);

The above generates a stimulus structure s with the relevant fields s.t the time vector, and s.x the stimulus, with parameters corresponding to a time period of 0 to 1 seconds, 44,100 Hz sampling rate, and a white noise carrier waveform. The 'iter' attribute then takes two parameters for iterating the noise carrier: 0.005 corresponding to an iteration delay of 0.005 seconds (5 ms), and 5 "iterations", or delay and add steps. You can of course adjust all these parameters to your needs.

Adjusting the iteration delay of course determines the resulting periodicity of the IRN waveform, with the reciprocal of the delay in seconds corresponding to the fundamental periodicity frequency in Hertz, 200 in this case. And the number of iteration steps determines the narrowness of spectral peaks and resultant pitch salience, or "pitch strength" as it is referred to in Yost's work.

Hope this is of some help,

Karl



On 3/14/19 10:03 AM, Patricia Bestelmeyer wrote:

Dear List,

 

Would anyone be happy to share Matlab scripts for generating iterated rippled noises? I’d like to be able to vary the gain, delay and number of ripple iterations if possible.

 

Patricia

 

-------------------------------------------

Patricia E. G. Bestelmeyer, PhD

School of Psychology

Bangor University

Brigantia Building

LL57 2AS, Bangor, Gwynedd, UK

Phone: +44 (0)1248 383488

 

 

Mae croeso i chi gysylltu gyda'r Brifysgol yn Gymraeg neu Saesneg

You are welcome to contact the University in Welsh or English

Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565

Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilewch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio a defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor.

This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of Bangor University. Bangor University does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the Bangor University Finance Office.