For those of you who do not own a soundcard

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

For those of you who do not own a soundcard

Post by pjot »

Discover the possibilities of your PC speaker again!

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
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

Peter wrote: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
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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")
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
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

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
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

Peter wrote: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
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

Norman wrote:Peter is alway spamming this forum with newLisp-Porn.. ;-)
*lol* :-)


m i c h a e l

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

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

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

Locked