Re: changing a sound signal while listening to it (Daniel Bowling )


Subject: Re: changing a sound signal while listening to it
From:    Daniel Bowling  <danielliubowling@xxxxxxxx>
Date:    Tue, 10 Aug 2010 19:54:30 +0800
List-Archive:<http://lists.mcgill.ca/scripts/wa.exe?LIST=AUDITORY>

--000e0cd4d252b4635e048d76cba6 Content-Type: text/plain; charset=ISO-8859-1 Thanks to all who responded. This problem is now solved! Dan On Tue, Aug 10, 2010 at 4:53 PM, Dan Stowell <dan.stowell@xxxxxxxx>wrote: > In SuperCollider this code does a simple version of what you describe: > > ( > s.waitForBoot{ > { > var centre = 440; > var beat = Integrator.kr(KeyState.kr(124) - KeyState.kr(123)) > * 0.01 + 10; > var amp = Integrator.kr(KeyState.kr(126) - KeyState.kr(125)) > .linexp(-5000, 5000, 0.001, 1); > (beat*2).poll(1, "beat freq"); > SinOsc.ar([centre+beat, centre-beat], 0, amp).sum.dup; > }.play > } > ) > > arrow keys up/down for volume, left/right for beat freq. > > Dan > > > On 10/08/2010 03:32, Daniel Bowling wrote: > >> Dear List, >> >> I am trying to create a piece of software that will allow a subject to >> change the beat frequency and amplitude of a signal while listening to >> it in real time. >> >> More specifically, the signal will consist of two pure tones (e.g. T1 + >> T2), and the difference between them (T2 - T1) as well as the root mean >> square amplitude will be under the control of the subject via the >> keyboard. >> >> I have tried to execute this in Matlab using a loop, the problem is that >> the sound stops and then starts again at the beginning of each loop >> iteration. >> >> Can anyone suggest a way this might be implemented on a computer? Or >> perhaps just a suitable programming language? >> >> Thanks, >> >> Dan Bowling >> > > > -- > Dan Stowell > Centre for Digital Music > Queen Mary, University of London > Mile End Road, London E1 4NS > http://www.elec.qmul.ac.uk/digitalmusic/people/dans.htm > http://www.mcld.co.uk/ > --000e0cd4d252b4635e048d76cba6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks to all who responded. This problem is now solved!<div><br></div><div= >Dan<br><br><div class=3D"gmail_quote">On Tue, Aug 10, 2010 at 4:53 PM, Dan= Stowell <span dir=3D"ltr">&lt;<a href=3D"mailto:dan.stowell@xxxxxxxx= k">dan.stowell@xxxxxxxx</a>&gt;</span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;"><div><div></div><div class=3D"h5">In SuperC= ollider this code does a simple version of what you describe:<br> <br> (<br> s.waitForBoot{ =A0<br> =A0{<br> =A0 =A0var centre =3D 440;<br> =A0 =A0var beat =3D Integrator.kr(KeyState.kr(124) - KeyState.kr(123))<br> =A0 =A0 =A0 =A0 =A0 * 0.01 + 10;<br> =A0 =A0var amp =3D Integrator.kr(KeyState.kr(126) - KeyState.kr(125))<br> =A0 =A0 =A0 =A0 =A0 .linexp(-5000, 5000, 0.001, 1);<br> =A0 =A0(beat*2).poll(1, &quot;beat freq&quot;);<br> =A0 =A0SinOsc.ar([centre+beat, centre-beat], 0, amp).sum.dup;<br> =A0}.play<br> }<br> )<br> <br> arrow keys up/down for volume, left/right for beat freq.<br> <br> Dan<br> <br> <br> On 10/08/2010 03:32, Daniel Bowling wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Dear List,<br> <br> I am trying to create a piece of software that will allow a subject to<br> change the beat frequency and amplitude of a signal while listening to<br> it in real time.<br> <br> More specifically, the signal will consist of two pure tones (e.g. T1 +<br> T2), and the difference between them (T2 - T1) as well as the root mean<br> square amplitude will be under the control of the subject via the keyboard.= <br> <br> I have tried to execute this in Matlab using a loop, the problem is that<br= > the sound stops and then starts again at the beginning of each loop<br> iteration.<br> <br> Can anyone suggest a way this might be implemented on a computer? Or<br> perhaps just a suitable programming language?<br> <br> Thanks,<br> <br> Dan Bowling<br> </blockquote> <br> <br> -- <br> Dan Stowell<br> Centre for Digital Music<br> Queen Mary, University of London<br> Mile End Road, London E1 4NS<br> <a href=3D"http://www.elec.qmul.ac.uk/digitalmusic/people/dans.htm" target= =3D"_blank">http://www.elec.qmul.ac.uk/digitalmusic/people/dans.htm</a><br> <a href=3D"http://www.mcld.co.uk/" target=3D"_blank">http://www.mcld.co.uk/= </a><br> </div></div></blockquote></div><br></div> --000e0cd4d252b4635e048d76cba6--


This message came from the mail archive
/home/empire6/dpwe/public_html/postings/2010/
maintained by:
DAn Ellis <dpwe@ee.columbia.edu>
Electrical Engineering Dept., Columbia University