Subject: Re: [AUDITORY] Generate IRNs in Matlab? From: Karl Lerud <karl.lerud@xxxxxxxx> Date: Fri, 15 Mar 2019 01:31:23 -0400 List-Archive:<http://lists.mcgill.ca/scripts/wa.exe?LIST=AUDITORY>This is a multi-part message in MIME format. --------------6677076BCD47BF109E613062 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by edgeum1.it.mcgill.ca id x2F5VRIJ026347 Hi Patricia and anyone else interested, At the Music Dynamics Lab at University of Connecticut, we have a MATLAB=20 toolbox for nonlinear oscillator modeling of auditory processes, but it=20 also has many stimulus generation functions that can be used for general=20 purposes in addition to usage within the toolbox. You can acquire the=20 toolbox here: https://github.com/MusicDynamicsLab/GrFNNToolbox and add it and its subdirectories to your MATLAB path. You can read the=20 documentation of the function stimulusMake() to learn how to generate=20 various types of stimuli. But here is an example of IRN: s =3D stimulusMake(1,'fcn',[0 1],44100,{'noi'},'iter',0.005,5); The above generates a stimulus structure s with the relevant fields s.t=20 the time vector, and s.x the stimulus, with parameters corresponding to=20 a time period of 0 to 1 seconds, 44,100 Hz sampling rate, and a white=20 noise carrier waveform. The 'iter' attribute then takes two parameters=20 for iterating the noise carrier: 0.005 corresponding to an iteration=20 delay of 0.005 seconds (5 ms), and 5 "iterations", or delay and add=20 steps. You can of course adjust all these parameters to your needs. Adjusting the iteration delay of course determines the resulting=20 periodicity of the IRN waveform, with the reciprocal of the delay in=20 seconds corresponding to the fundamental periodicity frequency in Hertz,=20 200 in this case. And the number of iteration steps determines the=20 narrowness of spectral peaks and resultant pitch salience, or "pitch=20 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=20 > rippled noises? I=92d like to be able to vary the gain, delay and numbe= r=20 > 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,=20 > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig=20 > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y=20 > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith=20 > a dilewch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i=20 > chi beidio a defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir=20 > ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn=20 > unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Bangor. Nid=20 > yw Prifysgol Bangor yn gwarantu bod y neges e-bost hon neu unrhyw=20 > atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn=20 > wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y=20 > neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr=20 > awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor. > > This email and any attachments may contain confidential material and=20 > is solely for the use of the intended recipient(s). If you have=20 > received this email in error, please notify the sender immediately and=20 > delete this email. If you are not the intended recipient(s), you must=20 > not use, retain or disclose any information contained in this email.=20 > Any views or opinions are solely those of the sender and do not=20 > necessarily represent those of Bangor University. Bangor University=20 > does not guarantee that this email or any attachments are free from=20 > viruses or 100% secure. Unless expressly stated in the body of the=20 > text of the email, this email is not intended to form a binding=20 > contract - a list of authorised signatories is available from the=20 > Bangor University Finance Office. > --------------6677076BCD47BF109E613062 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by edgeum1.it.mcgill.ca id x2F5VRIJ026347 <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1252"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hi Patricia and anyone else interested, <br> </p> <p>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:</p> <p><tt><a class=3D"moz-txt-link-freetext" href=3D"https://github.com/= MusicDynamicsLab/GrFNNToolbox">https://github.com/MusicDynamicsLab/GrFNNT= oolbox</a></tt></p> <p>and add it and its subdirectories to your MATLAB path. You can read the documentation of the function <tt>stimulusMake()</tt> to learn how to generate various types of stimuli. But here is an example of IRN:</p> <p><br> </p> <p><tt>s =3D stimulusMake(1,'fcn',[0 1],44100,{'noi'},'iter',0.005,5)= ;</tt></p> <p>The above generates a stimulus structure <tt>s</tt> with the relevant fields <tt>s.t</tt> the time vector, and <tt>s.x</tt> 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 <tt>'iter'</tt> attribute then takes two parameters for iterating the noise carrier: <tt>0.005</tt> corresponding to an iteration delay of 0.005 seconds (5 ms), and <tt>5</tt> "iterations", or delay and add steps. You can of course adjust all these parameters to your needs.<br> </p> <p>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. <br> </p> <p>Hope this is of some help, <br> </p> <p>Karl <br> </p> <p><br> </p> <p><br> </p> <div class=3D"moz-cite-prefix">On 3/14/19 10:03 AM, Patricia Bestelmeyer wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:8529_1552623169_5C8B2641_8529_273_1_DB6PR0502MB2950F4B951CF7C= CDC79EE493C04B0@xxxxxxxx"> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1252"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @xxxxxxxx {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @xxxxxxxx {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; mso-fareast-language:EN-US;} @xxxxxxxx WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Dear List,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p>=A0</o:p></p> <p class=3D"MsoNormal">Would anyone be happy to share Matlab scripts for generating iterated rippled noises? I=92d like to b= e able to vary the gain, delay and number of ripple iterations if possible.<o:p></o:p></p> <p class=3D"MsoNormal"><o:p>=A0</o:p></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >Patricia<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= ><o:p>=A0</o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >-------------------------------------------<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >Patricia E. G. Bestelmeyer, PhD<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >School of Psychology<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >Bangor University<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >Brigantia Building<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >LL57 2AS, Bangor, Gwynedd, UK<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-GB"= >Phone: +44 (0)1248 383488<o:p></o:p></span></p> <p class=3D"MsoNormal"><o:p>=A0</o:p></p> </div> <p>=A0</p> <table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" border=3D= "0"> <tbody> <tr> <td style=3D"padding:15px 0;" valign=3D"top"> <p><strong>Mae croeso i chi gysylltu gyda'r Brifysgol yn Gymraeg neu Saesneg</strong></p> <p><strong>You are welcome to contact the University in Welsh or English</strong></p> <p><strong>Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565</strong></p> <p>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.</p> <p>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.</p> </td> </tr> </tbody> </table> </blockquote> </body> </html> --------------6677076BCD47BF109E613062--