-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hallo,
I would like to pass some data from a shell to a pd patch that is on
another machine in the subnetwork. I have solved most of the troubles
using nc in the form
more junk | nc 146.50.10.35 9000
and putting my patch with netsreceive on port 9000.
My problem is rather banale for you guys, but i had not find a
solution in the archives of the list...
but how do i translate these data (floating point values in between
0 and 1) in audio signal? The data represents a 8khz sample of sound....
Thanks
fredd
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
thank you for the rapid answer :)
I start experimenting, read the helps etc... let's see how much time
it takes to get it to play... how does the number to sound work? Does
it takes the values as samples? That is what i actually need...
f
On 21 Dec 2005, at 15:59, IOhannes m zmoelnig wrote:
Federico Bonelli wrote:
but how do i translate these data (floating point values in
between 0 and 1) in audio signal? The data represents a 8khz
sample of sound....[sig~] [line~] ... and if you are a real daredevil you can use [unpack~] (zexy)
mf.a.dsr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Federico Bonelli wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
thank you for the rapid answer :) I start experimenting, read the helps etc... let's see how much time it takes to get it to play... how does the number to sound work? Does it takes the values as samples? That is what i actually need... f
well [sig~] sets the signal to the value, BUT only at the signalblock border (each 64 samples if you don't tune it with [block~]) [line~] can interpolate between values (but again you can only set them at the block borders) [vline~] is like line but can also set values within the signalblock.
[unpack~] takes a list of (64) values and outputs them as a signal.
and most likely you will want to play with the up/downsampling feature of [block~]
mfg.asd.r IOhannes
On Wed, 21 Dec 2005, Federico Bonelli wrote:
but how do i translate these data (floating point values in between 0 and 1) in audio signal? The data represents a 8khz sample of sound....
Use a temporary array. If you want it to be "more realtime" than that, just use a smaller array and, of course, reuse the parts of the array that already got handled by [tabread~] or [delread~].
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Mathieu Bouchard wrote:
On Wed, 21 Dec 2005, Federico Bonelli wrote:
but how do i translate these data (floating point values in between 0 and 1) in audio signal? The data represents a 8khz sample of sound....
Use a temporary array. If you want it to be "more realtime" than that, just use a smaller array and, of course, reuse the parts of the array that already got handled by [tabread~] or [delread~].
of course! sorry for my noise
mf.asdr IOhannes
hi
"Mathieu Bouchard" matju@artengine.ca wrote:
On Wed, 21 Dec 2005, Federico Bonelli wrote:
but how do i translate these data (floating point values in between
0
and 1) in audio signal? The data represents a 8khz sample of
sound....
Use a temporary array. If you want it to be "more realtime" than that, just use a smaller array and, of course, reuse the parts of the array
that
already got handled by [tabread~] or [delread~].
yeah, this sounds quite more reasonnable than the unpack~-thing. thanks for the hint.
roman
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
hi
i once tried something similar with sending audio-data over a tcp-connection (i must say that i only got a signal with many glitches, but i didn't tweak around a lot).
i didn't test it, but i would try to receive this data with [netreceive] and pass it to [unpack~] from zexy, which converts a list of 64 (depending on the vector-size)floats into a signal-vector of 64 samples. first i would try to run pd with sr 8000 (add -r 8000 to your start-script). further its important that you send your values as lists with the length of 64 values. that means that you have to put an ';' after 64 floats. maybe it won't sound very 'clean' (it's also depending on your connection), but you could declare it as a form of audio-glitchart... :-)
roman
"Federico Bonelli" unorosso@mac.com wrote:
Hallo,
I would like to pass some data from a shell to a pd patch that is on another machine in the subnetwork. I have solved most of the troubles using nc in the form
more junk | nc 146.50.10.35 9000
and putting my patch with netsreceive on port 9000.
My problem is rather banale for you guys, but i had not find a solution in the archives of the list...
but how do i translate these data (floating point values in between 0 and 1) in audio signal? The data represents a 8khz sample of
sound....
Thanks
fredd
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de