Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8948 > unrolled thread

Real time sound processing?

Started byDavid Kahle <david.kahle@gmail.com>
First post2012-03-10 11:18 +0000
Last post2012-03-11 09:10 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Real time sound processing? David Kahle <david.kahle@gmail.com> - 2012-03-10 11:18 +0000
    Re: Real time sound processing? Szabolcs <szhorvat@gmail.com> - 2012-03-11 09:05 +0000
    Re: Real time sound processing? David Bailey <dave@removedbailey.co.uk> - 2012-03-11 09:06 +0000
    Re: Real time sound processing? Roger Bagula <roger.bagula@gmail.com> - 2012-03-11 09:10 +0000

#8948 — Real time sound processing?

FromDavid Kahle <david.kahle@gmail.com>
Date2012-03-10 11:18 +0000
SubjectReal time sound processing?
Message-ID<jjfda9$802$1@smc.vnet.net>
Hi all -

I was wondering if anyone could point me in the right direction. 

Is there any equivalent to something like Dynamic@CurrentImage[] for 
sounds?  I'm looking for ways to interact with sound (in and out) in 
real time, but the Play function and other similar functions seem to be 
static and pre-set.

Ideas?

Thanks!
david.

[toc] | [next] | [standalone]


#8955

FromSzabolcs <szhorvat@gmail.com>
Date2012-03-11 09:05 +0000
Message-ID<jjhpsu$is3$1@smc.vnet.net>
In reply to#8948
On Saturday, 10 March 2012 13:18:33 UTC+2, David Kahle  wrote:
> Hi all -
> 
> I was wondering if anyone could point me in the right direction. 
> 
> Is there any equivalent to something like Dynamic@CurrentImage[] for 
> sounds?  I'm looking for ways to interact with sound (in and out) in 
> real time, but the Play function and other similar functions seem to be 
> static and pre-set.
> 


Mathematica is not able to handle precise timings in real time, and is likely to introduce significant latency.  I don't think it's a good tool for real time sound processing.

It IS a good tool for generating sounds and exporting them (to be played later), it is just not suitable for real time work---in my opinion.

[toc] | [prev] | [next] | [standalone]


#8957

FromDavid Bailey <dave@removedbailey.co.uk>
Date2012-03-11 09:06 +0000
Message-ID<jjhpus$isq$1@smc.vnet.net>
In reply to#8948
On 10/03/2012 11:18, David Kahle wrote:
> Hi all -
>
> I was wondering if anyone could point me in the right direction.
>
> Is there any equivalent to something like Dynamic@CurrentImage[] for
> sounds?  I'm looking for ways to interact with sound (in and out) in
> real time, but the Play function and other similar functions seem to be
> static and pre-set.
>
> Ideas?
>
> Thanks!
> david.
>
>
I think the simplest answer would be to use J/Link and record/ playback 
sounds from within Java. I don't know the relevant details, but I would 
imagine suitable classes exist.

Since the Java code would probably not be totally trivial, it would 
probably be most convenient to write actual Java code (rather than doing 
everything from J/Link calls) and call the top level functions using 
J/Link. These functions must be declared public.

David Bailey
http://www.dbaileyconsultancy.co.uk

[toc] | [prev] | [next] | [standalone]


#8965

FromRoger Bagula <roger.bagula@gmail.com>
Date2012-03-11 09:10 +0000
Message-ID<jjhq6i$j05$1@smc.vnet.net>
In reply to#8948
>From Japanese file turned in Google search:
http://www.cs.takushoku-u.ac.jp/~ymiki/MatSigProcExercise/MatSigProcEx1.nb
Needs["Miscellaneous`Audio`"];
(* read an aiff file*)
x = ReadSoundFile["TimeSignal2.aiff"];
(*Alternative:*)
(*Needs["Utilities`BinaryFiles`"];
x=ReadListBinary["TimeSignal2.aiff",SignedInt16];*)
y = Take[x, {1, Length[x]}];
ListPlay[y, SampleRate -> 44100]
I haven't tried it.
You have to have the audio file in the Mac Aiff format in your
Mathematica -> Directory[]
On Mar 10, 3:18 am, David Kahle <david.ka...@gmail.com> wrote:
> Hi all -
>
> I was wondering if anyone could point me in the right direction.
>
> Is there any equivalent to something like Dynamic@CurrentImage[] for
> sounds?  I'm looking for ways to interact with sound (in and out) in
> real time, but the Play function and other similar functions seem to be
> static and pre-set.
>
> Ideas?
>
> Thanks!
> david.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web