dear list,
what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file?
i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway…
cheers for some input.
[soundfiler]
Le 26/09/2017 à 13:52, Simon Iten a écrit :
dear list,
what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file?
i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway…
cheers for some input.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
thanks, ouch!!!
but the raw option seems only available when reading, not writing.
On 26 Sep 2017, at 13:57, cyrille henry ch@chnry.net wrote:
[soundfiler]
Le 26/09/2017 à 13:52, Simon Iten a écrit :
dear list, what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file? i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway… cheers for some input. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
I don't understand what you want as a raw 16bit audio file : Wav or aiff are raw (uncompressed) file.
Le 26/09/2017 à 14:09, Simon Iten a écrit :
thanks, ouch!!!
but the raw option seems only available when reading, not writing.
On 26 Sep 2017, at 13:57, cyrille henry ch@chnry.net wrote:
[soundfiler]
Le 26/09/2017 à 13:52, Simon Iten a écrit :
dear list, what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file? i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway… cheers for some input. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
i don’t want any header info written.
just samples.
On 26 Sep 2017, at 14:27, cyrille henry ch@chnry.net wrote:
I don't understand what you want as a raw 16bit audio file : Wav or aiff are raw (uncompressed) file.
Le 26/09/2017 à 14:09, Simon Iten a écrit :
thanks, ouch!!! but the raw option seems only available when reading, not writing.
On 26 Sep 2017, at 13:57, cyrille henry ch@chnry.net wrote:
[soundfiler]
Le 26/09/2017 à 13:52, Simon Iten a écrit :
dear list, what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file? i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway… cheers for some input. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
ah, ok. since you know the table size, you can remove the header after saving it as a wave file.
maybe with binfile or other similar externals. I don't have any better idea.
cheers c
Le 26/09/2017 à 14:29, Simon Iten a écrit :
i don’t want any header info written.
just samples.
On 26 Sep 2017, at 14:27, cyrille henry ch@chnry.net wrote:
I don't understand what you want as a raw 16bit audio file : Wav or aiff are raw (uncompressed) file.
Le 26/09/2017 à 14:09, Simon Iten a écrit :
thanks, ouch!!! but the raw option seems only available when reading, not writing.
On 26 Sep 2017, at 13:57, cyrille henry ch@chnry.net wrote:
[soundfiler]
Le 26/09/2017 à 13:52, Simon Iten a écrit :
dear list, what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file? i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway… cheers for some input. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
ok, thanks.
cheers
On 26 Sep 2017, at 14:38, cyrille henry ch@chnry.net wrote:
ah, ok. since you know the table size, you can remove the header after saving it as a wave file.
maybe with binfile or other similar externals. I don't have any better idea.
cheers c
Le 26/09/2017 à 14:29, Simon Iten a écrit :
i don’t want any header info written. just samples.
On 26 Sep 2017, at 14:27, cyrille henry ch@chnry.net wrote:
I don't understand what you want as a raw 16bit audio file : Wav or aiff are raw (uncompressed) file.
Le 26/09/2017 à 14:09, Simon Iten a écrit :
thanks, ouch!!! but the raw option seems only available when reading, not writing.
On 26 Sep 2017, at 13:57, cyrille henry ch@chnry.net wrote:
[soundfiler]
Le 26/09/2017 à 13:52, Simon Iten a écrit :
dear list, what is the cleanest/best/easiest way to save a table of known size and “amplitude” (i.e. 8192 point from 0 to 1) to a raw 16bit audio file? i tried something with switch~ and writesf~ but writesf does not seem to support raw output and there is nothing written to the file anyway… cheers for some input. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
not sure if it will help, but you can directly write an array to a text file.
click on the help for [table] to see how
ah, ok. since you know the table size, you can remove the header after saving it as a wave file.
maybe with binfile or other similar externals.
Or possibly SoX.