On Thu, 11 Nov 2010 18:50:26 -0600 grant centauri <[email protected]> wrote:
> i imagine what you really want to do is be able to somehow map data > coming in from the scanner to some sort of musical or more > interesting sound. use scanner data as control data for some audio > generator. > > i'm not sure how you'd manage that... i'm guessing it is possible > with some level of programming knowledge. > > if that is the case let me know, then we can maybe attack this at a > different angle. > > On Thu, Nov 11, 2010 at 6:23 PM, grant centauri <[email protected]> > wrote: > > > cat simply dumps the output of one thing into the standard output. > > if you type cat readme.txt you'll get the whole text of the readme > > file pumped out into your terminal screen. if you do cat mysong.mp3 > > you'll get a bunch of gobbledygook flooding your terminal. > > > > /dev/dsp is the device name of your sound card. so if you cat the > > contents of a file or the output of another device you can use the > > redirect command, > > >, to send that output to /dev/dsp and you'll likely hear something. > > > > for example i just did this command: > > > > sudo cat audio/HumanAfterAll.wav > /dev/dsp > > > > and i'm now listening to a sort of ringing noisy mess. > > > > doing: > > > > sudo cat Desktop/americas_logo.png > /dev/dsp > > > > gave me like 15 seconds of whitish noise. > > > > if your scanner is a usb scanner, you can find out what device it > > is by plugging it in and running this command in a terminal: > > > > dmesg | tail > > > > I just did it with a wireless mouse device and got this info: > > > > [17792.582043] usb 3-2: new low speed USB device using uhci_hcd and > > address 2 > > [17792.746260] usb 3-2: configuration #1 chosen from 1 choice > > [17792.781655] input: Wireless Mouse Wireless Mouse as > > /devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0/input/input6 > > [17792.781866] generic-usb 0003:05FE:0011.0002: input,hidraw1: USB > > HID v1.10 Mouse [Wireless Mouse Wireless Mouse] on > > usb-0000:00:10.1-2/input0 > > > > i searched around my /dev directory and found this: > > > > /dev/bus/usb/003/002 > > > > I take that as usb3-2 > > > > your machine might be different, but the usb scanner should come up > > as a device somewhere in /dev/bus/usb > > > > so then you could have a terminal open, run the cat command and then > > control your scanner with whatever software you have on your > > computer to scan images or something like that. > > > > its not very elegant, but you might get some noise out of it. > > > > 2010/11/11 João Mário <[email protected]> > > > > On Thu, 11 Nov 2010 23:45:13 +0000 > >> Rob Myers <[email protected]> wrote: > >> > >> > On 11/11/2010 11:29 PM, esphera wrote: > >> > > > >> > > Just wondering that you might understand me wrong the previous > >> > > post. I want to know how can I make a scanner's input data, > >> > > transformed into sound? > >> > > > >> > > I had some advices such as "hack the drivers" or "you can do > >> > > it with puredata" > >> > > > >> > > but I would really like to know how? > >> > > > >> > > thanks very much > >> > > > >> > > p.s.: I already use arss and enscribe software. but I want > >> > > hardware stuff. > >> > > >> > I don't think you'll be able to just do it with pure hardware. > >> > Every scanner has a commmunication protocol, even old-fashioned > >> > parallel port scanners. You need at least something like an > >> > Arduino to send the commands the scanner is listening for to > >> > start it scanning. > >> > > >> > Which isn't really related to pure:dyne... > >> > > >> > - Rob. > >> > > >> > --- > >> > [email protected] > >> > http://identi.ca/group/puredyne > >> > irc://irc.goto10.org/puredyne > >> > >> It certainly isn't related to p:d but I thought that p:d community > >> would fit in this kind of project... so I ask for opinion > >> > >> @grant centauri - what those commands do? > >> > >> --- > >> [email protected] > >> http://identi.ca/group/puredyne > >> irc://irc.goto10.org/puredyne > >> > > > > yes it's exactly that! :) like arss or enscribe (maybe this software can be taken as study?..) I don't know as I'm from image and type cult rather than programming. I do have a strong and growing interest in electronics and programming thanks to puredyne! and I would like very much to see this work as a kind of instrument with some controls over the speed of scan light or sensitivity... I want to go that way if you read me. probably with pd and some midi controllers? --- [email protected] http://identi.ca/group/puredyne irc://irc.goto10.org/puredyne
