For Programmers: Free Programming Magazines  


Home > Archive > Prolog > April 2004 > Playing sounds with swi









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Playing sounds with swi
Massimiliano Masi

2004-04-04, 5:36 pm

Hi all !!!

I've a melody as list in prolog. I'd like to play it. How can I?
How can I call the timidity libs or similar?

Thank you!


--
Massimiliano Masi - http://gauss.comunidelchianti.it/~max

In un mondo dove regna l'incertezza, chi la sa misurare ha la carta vincente
Pento

2004-04-05, 8:34 am

Massimiliano Masi <max@gauss.comunidelchianti.it> wrote in
news:chpp4c.f6o.ln@127.0.0.1:

> I've a melody as list in prolog. I'd like to play it. How can I?
> How can I call the timidity libs or similar?


Maybe you could convert your list to a .mid file, using the standard format
as explained on http://faydoc.tripod.com/formats/mid.htm ?

Cheers,

--
Robby

De wereld was soep, en het denken meestal een vork,
tot smakelijk eten leidde dat zelden. - H. Mulisch
Paul Singleton

2004-04-05, 10:35 am

Massimiliano Masi wrote:

> I've a melody as list in prolog. I'd like to play it. How can I?


Via JPL and the Java Sound API?

You can get an alpha release of JPL from

http://jbgb.com/download/jpl303-18Mar2004.zip

and various Java Sound resources from

http://www.jsresources.org/

Maybe first try the self-contained (if you already
have Java :-) JavaSoundDemo from

http://java.sun.com/products/java-m.../JavaSoundDemo/

> How can I call the timidity libs or similar?


Dunno, but I think these are Windows-only and have
gone stale...

Paul Singleton

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com