Pd - soundflower or jack -\> ableton live
I hope i don't offend anyone by posting this - there are other threads about the same subject. I don't get it working by reading them.. - unfortunatly.
I'm trying to get PD to run through ableton using soundflower (I tried jackpilot, but I couldn't get any sound out of it..).
When I choose "Built in output", my patch sounds like it should, I just really want it to go through ableton.
PD pref:
input device: (0)Built-in input channels: 2
output device: (0)Soundflower (2ch) channels: 2
What does the (0) <-- mean?
patch is running, sending audio compute audio switched on.
Soundflower pref:
Standard sound input: built in input
Standart sound out: built in output
System sound out: built in output
Ableton pref:
Driver type: Core Audio
Audio input device: soundflower (2ch) (2in, 2 out)
Audio output: built-in output
What am I doing wrong?
Long soundfiles in PD
This seems easy but I'm stumped or missing the obvious. How do you play longer soundfiles in PD using [soundfiler]? I see -maxsize argument but am unsure as to the syntax (with or without the <>) Here's my message box feeding into [soundfiler]
[read -resize birds_in_forest.wav birds01;
pd dsp 1;(
|
[soundfiler]
(though it's obvious, there's an array called birds01)
The file in questions, birds_in_forest.wav, is 5 min long but I only get about 1:30 of it (or maybe 2:00, but I know it isn't the whole thing).
thanks as always,
hdez
Passing symbol to soundfiler does not work
I am building a symbol to pass to soundfiler to load a stereo .wav file to a pair of local arrays, but it does not work, whereas passing an identical string from a message works fine. The string looks like:
read -resize c:/Samples/Dubstep_vol_4/140_bpm_beat_01.wav Ha01L Ha01R
where Ha01L and Ha01R are the arrays.
I can see in a symbol object that I am building this string correctly, but when I connect it to soundfiler it does not work, with the message
error: soundfiler: no method for 'symbol'
Is there something I need to do to convert the symbol before passing to soundfiler?
Seq Sampler Loop
No sound out of this Oscar.
Here's a bit of the error message:
ch file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus13.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus16.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus16.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus14.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus14.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/zapa06.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav: No such file or directory
error: soundfiler_read: /home/pelao/Documentos/audio/loops/terminus15.wav:
But, it looks awesome.
Keep well ~ Shankar
Textfile issue
i want to save the path of a soundfile with [openpanel] via [textfile] to a textfile and read out the textfile with a bang and feed it into soundfiler.
this all works so far, i can print out the content of the textfile to the pd window, but it seems, that the output of textfile will not be recognized from [soundfiler] as a valid path? when i use:
[bang(
|
[t b b b]
| | |
[bang( [rewind( [read filepath.txt(
| | |
[textfiler]
|
[read -resize $1 array1(
|
[soundfiler]
pd tells me, that $1's argument number is out of range.
any help?
How do you load a sample into pd? (brand spankin' newb!)
The most basic approach is using [soundfiler] with the appropriate message :
[read c:/somefolder/somesubfolder/myfile.wav myTable(
|
[soundfiler]
Secondly you can add some extra parameters to the read message, e.g. the -resize flag so that the table will auto-grow or shrink to the size of your file:
[read -resize c:/somefolder/somesubfolder/myfile.wav myTable(
|
[soundfiler]
For a stereo file you can do this (make sure you first create the tables myTableLeft and myTableRight) :
[read -resize c:/somefolder/somesubfolder/myfile.wav myTableLeft myTableRight(
|
[soundfiler]
To make things a bit more dynamic you can insert an "open file" dialog and push the selected file in the message like this :
[bang]
|
[openpanel]
|
[read -resize $1 myTableLeft myTableRight(
|
[soundfiler]
The [soundfiler] object always outputs the number of samples.
Hope this helps,
D.
Automatic saving a array as wave file.
@sunji said:
check out [makefilename]
Thanks for the tip. 'Found' this object/command just before reading your reply
.
@thep said:
Hey,
I don't know if I'm understanding you correctly, but it seems like you think that the [savepanel] object has something to do with the actual saving of the soundfile.It doesn't it just generates a filename. It's the 'write' message being sent to the soundfiler which causes the soundfiler object to write to disk.
My suggestion is this:
[counter] (assuming this outputs a float when you bang the top)
|
[makesymbol sound%s.wav]
|
|write $1(
|
[soundfiler]The makesymbol will take whatever float you send it and output a symbol soundXXX.wav (the %s in the argument is replaced by whatever float you input to the object). The write $1 then prepends write to the filename, and sends the instruction to soundfiler to write the wav file.
Theo
I tried couple of things without savepanel, but I didn't get any saved file(s). Now I see what I did wrong: I forgot to connect [write] and [soundfiler]. The following works
[bang(
|
[test.wav]
|
[write $1]
|
[soundfiler]
Now going to change this to get the filenames right!
By the way I think [makesymbol] should be [symbol]?
Automatic saving a array as wave file.
Hey,
I don't know if I'm understanding you correctly, but it seems like you think that the [savepanel] object has something to do with the actual saving of the soundfile.
It doesn't it just generates a filename. It's the 'write' message being sent to the soundfiler which causes the soundfiler object to write to disk.
My suggestion is this:
[counter] (assuming this outputs a float when you bang the top)
|
[makesymbol sound%s.wav]
|
|write $1(
|
[soundfiler]
The makesymbol will take whatever float you send it and output a symbol soundXXX.wav (the %s in the argument is replaced by whatever float you input to the object). The write $1 then prepends write to the filename, and sends the instruction to soundfiler to write the wav file.
Theo
Newbie: convert an audio file to a text file
The [read -resize $1 mysound( should is actually what pd calls a message. You can send all kind of messages to all objects to do things. In this case it is a message sent to the [soundfiler] object and contains instructions for that object. It is interpretted as follows :
read : tells the soundfiler to... read a soundfile (there's also a write)
-resize : this flag tells the soundfiler to resize the table it will read the file into
$1 : this is a parameter from the message and is actually replaced by the output of the [openpanel] object => it will contain the full path of your selected file
mySound : this is the final parameter and is the name of the table
The [;mySound write sound.txt( is a kind of special message you can perform on tables. It just instructs the table to write its contents to a specified file.
Remember that you can almost always right click an object to request its help file and further I can recommend you to read the patches from the help browser (2.control.examples/15.array.pd and 16.more.arrays.pd will show you what's possible with tables).
Enjoy it,
Domien
Soundflower to Decrease CPU usage for those with Firewire interfaces
Hey Guys,
I've noticed, consistently, that if I select my MOTU 828mkII as both Audio In and Audio Out in PD .39extended (newest build from Hans in daily builds, RC4) my CPU usage jumps to almost double as compared to CPU usage with my Built In audio as Audio In and Audio Out. I have not seen this behaviour in any other Mac OS X application.
I've found a way around this.
If you're a Mac OS X user, go ahead and download Soundflower from Cycling74's website: http://www.cycling74.com/downloads/soundflower
Soundflower mirrors Jack in function, but is only available for OS X. It creates a virtual 2 channel and 16 channel interface in your OS so you can route audio between applications and out the soundcard.
To work around this CPU usage bug with firewire interfaces, select Soundflower 2ch or Soundflower 16ch as your default Audio Out / Audio In within Pd. Then within the Soundflowerbed menu, select your firewire interface as your soundflower output. I don't know why this works, but it does. You can now decrease your CPU usage up to about 2x when using a firewire interface. Screenshots follow.
Builtin audio OR soundflower as output while playing the 7. datastructure sequencer demo

Firewire as audio output while playing the 7. datastructure sequencer demo

Soundflower config

