For those of you who do not own a soundcard

Started by pjot, May 14, 2006, 07:54:45 AM

Previous topic - Next topic

pjot

Discover the possibilities of your PC speaker again!



http://www.turtle.dds.nl/newlisp/speaker.lsp">http://www.turtle.dds.nl/newlisp/speaker.lsp





Play the piano and find out if you are an artist - or not. Runs in Linux and Windoze...



Regards

Peter

m i c h a e l

#1
Quote from: "Peter"Play the piano and find out if you are an artist - or not. Runs in Linux and Windoze...


Hi Peter! I don't run Linux or Windows, but I'm interested in knowing if I'm an artist or not ;-)



Actually, the reason I'm responding is because at first, I thought this was spam! I was even in the process of seeing how Hans-Peter had responded to the last spammer in order to get it removed, when my wife noticed you had more than 400 posts! Then I saw the link had a .lsp extension and realized it was pointing to newLISP code! Whoops. That was close. Better pay more attention in future :-)





m i c h a e l

newdep

#2
Peter is alway spamming this forum with newLisp-Porn.. ;-)





Btw...on XP it worked directly out ot the box but on my linux machine ->



> (load "http://www.turtle.dds.nl/newlisp/speaker.lsp">http://www.turtle.dds.nl/newlisp/speaker.lsp")

Press the keys QWERTYUI to play the piano! ESC to exit.

ewqrewqrewqweqtrqwerwqrewqrewqrewquiyoiuy





The keys worked though but no sound and as you know Im running Xfce ;-)





Woeps...worked like a glove... "Thow shall turn on some speaker volume"..
-- (define? (Cornflakes))

newdep

#3
Btw, For linux you should also add a function for adjusting the Key-repetition/Key-speed under X..



else im playing the piano like I was a macro... (which is: Im already done

playing and finishing my coffee while the Beeps are still playing..)



Ow yes...and one more whishlist (haha) (Store the Keys in a file so they

can be played afterwards again...)
-- (define? (Cornflakes))

pjot

#4
Hi Michael!



Didn't know your wife is looking into the newLisp forum too! Good. My girlfriend doesn't, no matter how hard I try.



Norman: glad you solved your own problems yourself ;-)



About your change requests: go ahead! My idea was only to manage the PC speaker, the most undervalued piece of hardware. The piano is only a demonstration. But of course you can create a complete application out of it. Anyway I am glad you like the idea.



Actually I am planning to also port it to BSD and Solaris X86 when I have the time (currently I am abroad). Any volunteers for MacOSX are appreciated :-)



Regards

Peter

m i c h a e l

#5
Quote from: "Peter"Didn't know your wife is looking into the newLisp forum too! Good. My girlfriend doesn't, no matter how hard I try.


Melissa works pretty closely with me; that is, when she's not directing the local university's Publications Office! She is amazing. Do you think these little snippets of mine would even resemble English were it not for her? ;-)





m i c h a e l

m i c h a e l

#6
Quote from: "Norman"Peter is alway spamming this forum with newLisp-Porn.. ;-)


*lol* :-)





m i c h a e l

pjot

#7
Created a new context with embedded assembly, to talk to the PC speaker in a universal X86 way.



http://www.turtle.dds.nl/newlisp/x86-speaker.lsp">http://www.turtle.dds.nl/newlisp/x86-speaker.lsp



Still, depending on the platform, you need to organize access to lowlevel hardware ports. The program contains a working example with Linux.



Anyway, nice to remember the assembly. :-)



Peter