[PD] [Pd] Multiple audio devices

nick burge tectp at telefonica.net
Wed Jun 11 16:38:01 CEST 2008


 
I also have problems with an RME fireface (400 model in my case)
I cannot get PD to make use of the asio fireface driver to give me full
duplex...I can only get input or output but not both.
Nick.

-----Original Message-----
From: pd-list-bounces at iem.at [mailto:pd-list-bounces at iem.at] On Behalf Of
pd-list-request at iem.at
Sent: 11 June 2008 15:57
To: pd-list at iem.at
Subject: Pd-list Digest, Vol 39, Issue 38

Send Pd-list mailing list submissions to
	pd-list at iem.at

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.puredata.info/listinfo/pd-list
or, via email, send a message with subject or body 'help' to
	pd-list-request at iem.at

You can reach the person managing the list at
	pd-list-owner at iem.at

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Pd-list digest..."


Today's Topics:

   1. Re: Size of a table (marius schebella)
   2. Re: Size of a table (Enrique Erne)
   3. Re: Multiple Audio Devices (marius schebella)
   4. Re: Pd-extended PPC autobuild & Jack OSX (Si Mills)
   5. Re: Multiple Audio Devices (Roman Haefeli)
   6. Re: Size of a table (Roman Haefeli)
   7. Re: Size of a table (Roman Haefeli)
   8. Simplification problem (Andy Farnell)


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

Message: 1
Date: Wed, 11 Jun 2008 09:04:37 -0400
From: marius schebella <marius.schebella at gmail.com>
Subject: Re: [PD] Size of a table
To: Hans Roels <hans.roels at versateladsl.be>
Cc: pd-list at iem.at
Message-ID: <484FCD65.9090801 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hans Roels wrote:
> Apart from [soundfiler] I use this trick to get the size of any array 
> (audio or data) in pd vanilla:
> (array1 = the name of an example array)
> 
> bang
> |
> [expr size("array1")]
> |
> print
> 
> or replace the expr with [expr size("$s2")] and connect a message 
> [symbol array1( to the second inlet of this expr object
> 
> hans r

hi,
that's cool. did not know that expr can do that! are there more features of
expr that are hidden or unknown??
marius.


> 
> At 09:38 11/06/2008, you wrote:
>> On Wed, Jun 11, 2008 at 10:03:28AM +0200, IOhannes m zmoelnig wrote:
>>> raul diaz wrote:
>>>> I have a dumb question. What's the best way to get the size of a table?
>>>> Sometimes I load a lot of samples on tables with soundfiler and I would
>>>> like to take the size of each sample as a variable in order to use it
>>>> with phasor + tabread4~.
>>>> Is there any object which gets the size of a table?
>>> well i have a dumb answer: why not use the "length" output of
[soundfiler]?
>>>
>>> i think that in this case the philosophy of Pd his, that there are 2
>>> ways to change the length of a table: do it interactively (e.g. create a
>>> [table bla 1024] or do it programmatically (e.g. via [; bla resize 216()
>>> in the first case the author of the software is responsible for using
>>> (e.g. "hardcoding") the right table-size throughout there patch, in the
>>> latter case you could just listen to these programmatical changes).
>>> tables suddenly changing there size are beyond Pd :-)
>> There is one situation I have encountered where it would be useful to
>> have a built in [arraysize]. In some of the s-abstractions such as
>> [s-samplepiece~] you have to pass in the table name that you'd like the
>> abstraction to use. This means that at some point the user loads some
>> audio data into the named table (for example using [s-loader~]) and they
>> then know the sample table size. When they create the [s-samplepiece~]
>> playback abstraction they must manually enter the array size as one of
>> the arguments to the abstraction, along with the table name.
>> Inefficient.
>>
>> Best,
>>
>> Chris.
>>
>> -------------------
>> http://mccormick.cx
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> http://lists.puredata.info/listinfo/pd-list
> 
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
> 




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

Message: 2
Date: Wed, 11 Jun 2008 09:32:42 -0400
From: Enrique Erne <enrique at netpd.org>
Subject: Re: [PD] Size of a table
To: marius schebella <marius.schebella at gmail.com>
Cc: pd-list at iem.at
Message-ID: <484FD3FA.8030706 at netpd.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

marius schebella wrote:
> Hans Roels wrote:
>> Apart from [soundfiler] I use this trick to get the size of any array 
>> (audio or data) in pd vanilla:
>> (array1 = the name of an example array)
>>
>> bang
>> |
>> [expr size("array1")]
>> |
>> print
>>
>> or replace the expr with [expr size("$s2")] and connect a message 
>> [symbol array1( to the second inlet of this expr object
>>
>> hans r
> 
> hi,
> that's cool. did not know that expr can do that! are there more features 
> of expr that are hidden or unknown??
> marius.
> 

very nice indeed. i remember sven posted once a way to directly access 
the value of [value] with expr but i can't remember.
eni



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

Message: 3
Date: Wed, 11 Jun 2008 09:38:47 -0400
From: marius schebella <marius.schebella at gmail.com>
Subject: Re: [PD] Multiple Audio Devices
To: Mika Ristim?ki <mika.ristimaki at tkk.fi>
Cc: pd-list at iem.at
Message-ID: <484FD567.6000002 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

hi mika,

have you tried -audioindev 4,7 -inchannels 12? I think you should be 
able to use different soundcards, but maybe there is no possibility to 
use 4 from the one and 8 from the other, but rather all channels from 
both soundcards?? but I don't know about that. maybe -audioindev 
4,5,7,8,9,10?
on the other hand, if the octamic pre-amp is connected to adat1 can you 
do -audioindev 1, and -inchannels 36, does that give you all inchannels?
marius.

Mika Ristim?ki wrote:
> Hi again,
> 
> I've been searching the list archives even more and I've found several  
> posts that say that this can be done and that the instructions can be  
> found from the archives. However I haven't been able to find any  
> instructions. =) So any ideas how to do it in Windows XP? Sorry for  
> nagging, but I really like using Pd, but if there is not support for  
> my hardware I might have to change the software.
> 
> -Mika
> 
> 
>> Hi all,
>>
>> I have a problem how to use multiple audio devices in Pd. I tired to
>> search the archives but didn't find anything useful. Anyway...
>>
>> I have RME Fireface 800 audio interface and RME Octamic microphone
>> pre-amplifier. Octamic is connected to Fireface with ADAT. I'm using
>> Windows XP. I have connected 8 mics to Octamic and 4 mics to Fireface
>> (it also has 4 mic level inputs). The problem is that I don't know how
>> to get all 12 channels to work in Pd.
>>
>> when I start Pd with -listdev, I get
>>
>> audio input devices:
>> 0. Live! Cam Optia AF (Mic)
>> 1. Fireface Analog (1+2) MME
>> 2. Fireface Analog (3+4) MME
>> 3. Fireface Analog (5+6) MME
>> 4. Fireface Analog (7+8) MME
>> 5. Fireface Analog (9+10) MME
>> 6. Fireface SPDIF MME
>> 7. Fireface ADAT1 (1+2) MME
>> 8. Fireface ADAT1 (3+4) MME
>> 9. Fireface ADAT1 (5+6) MME
>> 10. Fireface ADAT1 (7+8) MME
>> 11. Fireface ADAT2 (1+2) MME
>> 12. Fireface ADAT2 (3+4) MME
>> 13. Fireface ADAT2 (5+6) MME
>> 14. Fireface ADAT2 (7+8) MME
>> 15. Fireface Analog (1+2)
>> 16. Fireface Analog (3+4)
>> 17. Fireface Analog (5+6)
>> 18. Fireface Analog (7+8)
>> 19. Fireface Analog (9+10)
>>
>> I can have the 8 Octamic channels if  start Pd with -audioindev 7
>> -inchannels 8. Or the 4 Fireface channel by -audioindev 4 -inchannels
>> 4. But when I try to define both like this, -audioindev 4,7
>> -inchannels 4,8 pd gives an error "separate audio device choice not
>> supported\; using sequential devices."
>>
>> -audioindev 4 -inchannels 12, does not work either.
>>
>> So is it impossible to get the two different devices working
>> simultaneously or is there some kind of hack?
>>
>> Thanks for any help
>>
>> -Mika
>>
>>
>>
>>
> 
> 
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
> 




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

Message: 4
Date: Wed, 11 Jun 2008 14:42:07 +0100
From: Si Mills <smills at rootsix.net>
Subject: Re: [PD] Pd-extended PPC autobuild & Jack OSX
To: Hans-Christoph Steiner <hans at eds.org>
Cc: PDlist list <pd-list at iem.at>
Message-ID: <DB983D8F-18B4-4060-91A4-7398794BB181 at rootsix.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hi Hans et al.

I tried the RC1 test build of the latest Pd-extended. Will the Jack  
problem be resolved in this version of do you know?

many thanks for all the hard work everyone!


On 25 May 2008, at 21:24, Hans-Christoph Steiner wrote:

>
> Yeah, there are some jack issues under investigation, so please test  
> things once there is something new to test. :)
>
> .hc
>
> On May 22, 2008, at 11:23 AM, Si Mills wrote:
>
>> I noticed the other day that when selecting to run in Jack mode (with
>> Jack booted) the system becomes unusably sluggish.
>>
>> This happens in the PPC version of 0.40.3 -extended that I downloaded
>> the other day from Autobuild and Jack osx 0.77. I haven't tried one  
>> of
>> the latest builds.
>>
>> I'm adding this to the bug tracker
>>
>> thanks
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
>
>
>
>
----------------------------------------------------------------------------
>
> Looking at things from a more basic level, you can come up with a  
> more direct solution... It may sound small in theory, but it in  
> practice, it can change entire economies.     - Amy Smith
>




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

Message: 5
Date: Wed, 11 Jun 2008 13:36:07 +0200
From: Roman Haefeli <reduzierer at yahoo.de>
Subject: Re: [PD] Multiple Audio Devices
To: Mika Ristim?ki <mika.ristimaki at tkk.fi>
Cc: pd-list at iem.at
Message-ID: <1213184167.5880.22.camel at yoyo>
Content-Type: text/plain; charset=utf-8

hi mika

On Wed, 2008-06-11 at 11:53 +0300, Mika Ristim?ki wrote:
> Hi again,
> 
> I've been searching the list archives even more and I've found several  
> posts that say that this can be done and that the instructions can be  
> found from the archives. However I haven't been able to find any  
> instructions. =) So any ideas how to do it in Windows XP? Sorry for  
> nagging, but I really like using Pd, but if there is not support for  
> my hardware I might have to change the software.

a friend of mine successfully used exactly the same setup on mac osx.
she also used 12 mic inputs simultaneously in pd, which worked well over
jackosx. 

> -Mika
> 
> 
> > Hi all,
> >
> > I have a problem how to use multiple audio devices in Pd. I tired to
> > search the archives but didn't find anything useful. Anyway...
> >
> > I have RME Fireface 800 audio interface and RME Octamic microphone
> > pre-amplifier. Octamic is connected to Fireface with ADAT. I'm using
> > Windows XP. I have connected 8 mics to Octamic and 4 mics to Fireface
> > (it also has 4 mic level inputs). The problem is that I don't know how
> > to get all 12 channels to work in Pd.
> >
> > when I start Pd with -listdev, I get
> >
> > audio input devices:
> > 0. Live! Cam Optia AF (Mic)
> > 1. Fireface Analog (1+2) MME
> > 2. Fireface Analog (3+4) MME
> > 3. Fireface Analog (5+6) MME
> > 4. Fireface Analog (7+8) MME
> > 5. Fireface Analog (9+10) MME
> > 6. Fireface SPDIF MME
> > 7. Fireface ADAT1 (1+2) MME
> > 8. Fireface ADAT1 (3+4) MME
> > 9. Fireface ADAT1 (5+6) MME
> > 10. Fireface ADAT1 (7+8) MME
> > 11. Fireface ADAT2 (1+2) MME
> > 12. Fireface ADAT2 (3+4) MME
> > 13. Fireface ADAT2 (5+6) MME
> > 14. Fireface ADAT2 (7+8) MME
> > 15. Fireface Analog (1+2)
> > 16. Fireface Analog (3+4)
> > 17. Fireface Analog (5+6)
> > 18. Fireface Analog (7+8)
> > 19. Fireface Analog (9+10)
> >
> > I can have the 8 Octamic channels if  start Pd with -audioindev 7
> > -inchannels 8. Or the 4 Fireface channel by -audioindev 4 -inchannels
> > 4. But when I try to define both like this, -audioindev 4,7
> > -inchannels 4,8 pd gives an error "separate audio device choice not
> > supported\; using sequential devices."
> >
> > -audioindev 4 -inchannels 12, does not work either.

can you elaborate that a bit? i am not too used to windows anymore, but
iirc, using all mme devices sequentially, that are actually driven from
the same card and from the same clock, is supposed to work well.
you might already have tried that: what about accessing just _ALL_
inputs of the card? i don't know, where your octamic is connected to,
adat1 or adat2. if it is on adat2, -audioindev 4 -inchannels 12 wouldn't
work, since this would access actually the analog inputs and some adat1
inputs. try:

-audioindev 1 -inchannels 28

then the [adc~] numbers in pd are not continous, but this wouldn't cause
any harm, would it?

roman



		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de




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

Message: 6
Date: Wed, 11 Jun 2008 13:23:28 +0200
From: Roman Haefeli <reduzierer at yahoo.de>
Subject: Re: [PD] Size of a table
To: Hans Roels <hans.roels at versateladsl.be>
Cc: pd-list at iem.at
Message-ID: <1213183408.5880.10.camel at yoyo>
Content-Type: text/plain

On Wed, 2008-06-11 at 12:09 +0100, Hans Roels wrote:
> Apart from [soundfiler] I use this trick to get the size of any array 
> (audio or data) in pd vanilla:
> (array1 = the name of an example array)
> 
> bang
> |
> [expr size("array1")]
> |
> print

hey, nice trick. thanks for sharing.

roman


	
		
___________________________________________________________ 
Der fr|he Vogel fdngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de




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

Message: 7
Date: Wed, 11 Jun 2008 13:40:55 +0200
From: Roman Haefeli <reduzierer at yahoo.de>
Subject: Re: [PD] Size of a table
To: raul diaz <raul.lete at gmail.com>
Cc: pd-list at iem.at
Message-ID: <1213184455.5880.28.camel at yoyo>
Content-Type: text/plain

On Wed, 2008-06-11 at 13:18 +0200, raul diaz wrote:
> Hi list!
> 
> Thanks for your answers!
> 
> I think arraysize is the best way to obtain table size in my case.
> I know as IOhannes said that I can use the length output from
> soundfiler, but I load a lot of samples at the same time in the same
> soundfiler, so it's difficult to get each size separately.

this is certainly not true. pd's execution order is very strict, so it
shouldn't cause any trouble at all to load several samples in 0 logical
time through the same [soundfiler] while keeping track of all sample
lengths. from pd's perspective, everything is processed sequentially,
even if for the user it looks like to happen at the same time. so
conceptually, there isn't actually no 'at the same time', so there is
also no need to wait until all samples are loaded and then ask each
array about its size.

roman



	
		
___________________________________________________________ 
Der fr|he Vogel fdngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de




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

Message: 8
Date: Wed, 11 Jun 2008 14:56:49 +0100
From: Andy Farnell <padawan12 at obiwannabe.co.uk>
Subject: [PD] Simplification problem
To: pd-list at iem.at
Message-ID: <20080611145649.12178f2d.padawan12 at obiwannabe.co.uk>
Content-Type: text/plain; charset="us-ascii"


I am trying to reduce a log waveform oscillator (as found with
a charging/discharging capacitor) to it's simplest form.

Note: It uses the soon to be deprecated form of [pow~] (with
reversed inlets)

Attached is the first attempt, and a slight improvement that
saves a couple of subtractions.

Any thoughts on reducing this further?

Also any ideas on constructing a proof that this has the
same spectrum as a triangle wave?

best to all,

Andy

-- 
Use the source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: police00.pd
Type: application/octet-stream
Size: 2606 bytes
Desc: not available
Url :
http://lists.puredata.info/pipermail/pd-list/attachments/20080611/03bbab86/a
ttachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: police01.pd
Type: application/octet-stream
Size: 2481 bytes
Desc: not available
Url :
http://lists.puredata.info/pipermail/pd-list/attachments/20080611/03bbab86/a
ttachment-0001.obj 

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

_______________________________________________
Pd-list mailing list
Pd-list at iem.at
to manage your subscription (including un-subscription) see
http://lists.puredata.info/listinfo/pd-list


End of Pd-list Digest, Vol 39, Issue 38
***************************************





More information about the Pd-list mailing list