Hi all, I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-generic > /dev/dsp should be a command I can get the sound of my kernel into the speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd? thanks, Tim
Open it as a .wav or .snd. Or just load it directly into an array
using the [read( message.
.hc
On Sep 12, 2011, at 1:09 PM, tim vets wrote:
Hi all, I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-generic > /dev/dsp should be a command I can get the sound of my kernel into the
speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd? thanks, Tim _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
'You people have such restrictive dress for women,’ she said, hobbling
away in three inch heels and panty hose to finish out another pink-
collar temp pool day. - “Hijab Scene #2", by Mohja Kahf
Hi Hans, thanks, i tried: [; mytable read /boot/vmlinuz-2.6.35-30-generic( but i just get: 'read 0 elements into table of size 1000' any idea? Tim 2011/9/12 Hans-Christoph Steiner hans@at.or.at
Open it as a .wav or .snd. Or just load it directly into an array using the [read( message.
.hc
On Sep 12, 2011, at 1:09 PM, tim vets wrote:
Hi all,
I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-**generic > /dev/dsp should be a command I can get the sound of my kernel into the speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd? thanks, Tim ______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
------------------------------**------------------------------**
'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2", by Mohja Kahf
table's "read" message only reads in ascii files. To read binaries use "soundfiler" which can be asked to ignore header information and read in raw 2s-complement data. Or if you really want to jump a few feet, try reading it in as floating point.
/dev/dsp belonged to the OSS sound system which ALSA is supposed to be able to emulate. depending on your configuration, you might be able to do "sudo modprobe snd-pcm-oss" and get it.... that just worked for me on Fedora anyhow.
cheers Miller
On Mon, Sep 12, 2011 at 07:59:35PM +0200, tim vets wrote:
Hi Hans, thanks, i tried: [; mytable read /boot/vmlinuz-2.6.35-30-generic( but i just get: 'read 0 elements into table of size 1000' any idea? Tim 2011/9/12 Hans-Christoph Steiner hans@at.or.at
Open it as a .wav or .snd. Or just load it directly into an array using the [read( message.
.hc
On Sep 12, 2011, at 1:09 PM, tim vets wrote:
Hi all,
I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-**generic > /dev/dsp should be a command I can get the sound of my kernel into the speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd? thanks, Tim ______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
------------------------------**------------------------------**
'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2", by Mohja Kahf
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Ah, right, I forgot the format of the array files, its a list of floats, i.e. space separated values. You can use mrpeach/binfile to read any file byte-by-byte. Then use those bytes as floats.
.hc
On Mon, 2011-09-12 at 19:59 +0200, tim vets wrote:
Hi Hans, thanks, i tried: [; mytable read /boot/vmlinuz-2.6.35-30-generic( but i just get: 'read 0 elements into table of size 1000' any idea? Tim 2011/9/12 Hans-Christoph Steiner hans@at.or.at
Open it as a .wav or .snd. Or just load it directly into an array using the [read( message. .hc On Sep 12, 2011, at 1:09 PM, tim vets wrote: Hi all, I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-generic > /dev/dsp should be a command I can get the sound of my kernel into the speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd? thanks, Tim _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list ---------------------------------------------------------------------------- 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2", by Mohja Kahf
Hi all, thanks for the suggestions, I found out one way so far, with soundfiler and -raw 128 2 2 b.
Now, did I remember correctly that in /proc/... you can also read something that changes continuously, depending on the state of the machine? afaict, vmlinuz is just a static file.
About /dev/dsp, I tried that modprobe snd-pcm-oss thing, but still no /dev/dsp. Not that I would really need it now if I can do all this in pd anyway... It's just that I noticed it wasn't there when trying to do the original 'cat' trick as a quick test.
gr, Tim
2011/9/12 Hans-Christoph Steiner hans@at.or.at
Ah, right, I forgot the format of the array files, its a list of floats, i.e. space separated values. You can use mrpeach/binfile to read any file byte-by-byte. Then use those bytes as floats.
.hc
On Mon, 2011-09-12 at 19:59 +0200, tim vets wrote:
Hi Hans, thanks, i tried: [; mytable read /boot/vmlinuz-2.6.35-30-generic( but i just get: 'read 0 elements into table of size 1000' any idea? Tim 2011/9/12 Hans-Christoph Steiner hans@at.or.at
Open it as a .wav or .snd. Or just load it directly into an array using the [read( message. .hc On Sep 12, 2011, at 1:09 PM, tim vets wrote: Hi all, I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-generic > /dev/dsp should be a command I can get the sound of my kernel into the speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd? thanks, Tim _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2", by Mohja Kahf
also try /dev/urandom
j ,.
Am 13.09.2011 12:58, schrieb Charles Goyard:
Hi,
tim vets wrote:
Now, did I remember correctly that in /proc/... you can also read something that changes continuously, depending on the state of the machine? afaict, vmlinuz is just a static file.
Try /dev/random.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Tue, 13 Sep 2011, jwind wrote:
also try /dev/urandom
I bet that /dev/urandom and vmlinuz are undistinguishable from each other. I'm not going to try, though.
The main difference is the header of vmlinuz, which is the uncompressed machine code for a gzip decompressor of the rest of the file.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
Check out /proc/kcore also, this is the current contents of your entire memory ;)
-- Regards, buZz
2011/9/14 Bastiaan van den Berg buzz@spacedout.nl
Check out /proc/kcore also, this is the current contents of your entire memory ;)
Hi Bastiaan, I'd definitely want to try that one, but I would have to run
pd as root then, or is there another way? Tim
--
Regards, buZz
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Mon, 12 Sep 2011, tim vets wrote:
I would like to get the sound of my kernel into pd. cat /boot/vmlinuz-2.6.35-30-generic > /dev/dsp should be a command I can get the sound of my kernel into the speakers with. However, while I remember having done similar before, right now, on this machine there doesn't even seem to be a /dev/dsp present... also, how would I get this into pd?
the name vmlinuz means something like « virtual-memory linux, zipped », by opposition to the original vmlinux files of early nineties. This means that the sound will be highly entropic, as an efficient form of compression tends to make all combination of bits equally likely. This makes compressed files become undistinguishable from white noise.
you get a lot more interesting textures by playing noncompressed files, even though their «sampling» scale does not match presumed samples of sound : samples of sound are assumed to be 8, 16, 24 or 32 bits each, uniformly. Pentium-compatible executables can have such multiples and other multiples of 8 bits up to about 120 bits in the same opcode, but it's happening in an irregular fashion... each file has a mix of elements of various sizes.
However, those executables are still a lot more regular than a gzip or zip2 file, which are made by reading pieces of 8 bits and rewriting them as a variable number of bits, 3, 4, 5, ..., 9, 10, 11, whatever is most efficient. (Well, that's only half of what that compression method does, but it should give you a good idea of how scrambled things are already !)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
now I remember I tried with a max json preset file (attached), it produced at amazing rythmic pattern, something like a heavy metal gimmick. Maybe it can help finding interresting text files.