How do you save and export sound files that you make in Pure Data?
-
How do you save and export sound files in pure data?
-
Hi, welcome to Pure Data and to this forum.
Pure data has several objects that allow you to record sounds. Probably the most common and simpler one is called [writesf~] (or type [writesf~ 2] if you want to record in stereo). Basically, you need to connect the sound sources you want to record into its outlet(s), just like you do with [dac~].
Then you have to first open a file, let's say [open myrec.wav(. To start recording, send a message [start( to this object and to stop recording send a message [stop(.
If you want to see a simple example of how it works, you can create a [writesf~] object in an empty canvas, then right click on it and select Help. Then the help file for this object will be opened.
Good luck,
Gilberto -
You can make your own recorder using [writefs~] as already suggested or depending on your OS you can open a different audio recording application and route the audio signal from pd to your app. If you're under Linux you can do it via Jack and Audacity, in Windows you have to set the audiocard to receive from other applications then use SoundForge or something like that. I know you can do it in MacOS too but don't know how but probably it's simpler than the others.
cheers -
Also have a look at ob wex's tutorial:
Pure Data Tutorial 20 - writesf~ object pure data
The tutorial shows the use of writesf and readsf directly afterwards. The readsf object in pure data plays wav and aiff files. The writesf object records files to the hard disk.
Note: for recording at other sample rates, you simply need to adjust Pd's audio preferences.
I live and love in Argentina
-
This post is deleted!
-
actually this tutorial is more thorough and shows you how to record a PD performance
as its happening...
-
@LandonPD thanks! Just found this..
-
Another thing you may find useful: DSP must be on. If you try to record without DSP running firstly...it just doesn't work that way. (It happened to me ). So you first turn DSP on...and ONLY THEN you do your recording things.
I live and love in Argentina
-
Moreover, have a look at Johannes Kreidler's online book:
http://www.pd-tutorial.com/english/ch03s04.htmlAt the very beginning of the page: 3.4.1.1 Storing sound
And 1/3 deeper into the page: 3.4.1.2 Playback of saved soundI live and love in Argentina