buluca has quit [Read error: 113 (No route to host)]
yminsky has joined #ocaml
yminsky has quit []
^authentic has joined #ocaml
seafoodX has joined #ocaml
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
piggybox_ has joined #ocaml
fdgsoer has joined #ocaml
fdgsoer has left #ocaml []
piggybox has quit [Read error: 110 (Connection timed out)]
authentic has left #ocaml []
authentic has joined #ocaml
pango has quit [Remote closed the connection]
authentic has left #ocaml []
pango has joined #ocaml
authentic has joined #ocaml
authentic has left #ocaml []
authentic has joined #ocaml
seafoodX has quit []
fdgsoer has joined #ocaml
fdgsoer is now known as [azoic]
szs1 has joined #ocaml
seafoodX has joined #ocaml
diakopter has quit [Read error: 104 (Connection reset by peer)]
mpc has quit []
Abo-Marwan14 has quit [Remote closed the connection]
screwt840 has quit [Remote closed the connection]
[azoic] has quit []
screwt840 has joined #ocaml
zvrba has joined #ocaml
Abo-Marwan14 has joined #ocaml
l_a_m has joined #ocaml
mbishop has quit ["leaving"]
martin_ has joined #ocaml
martin_ is now known as mbishop
ramki has joined #ocaml
many-leg` has joined #ocaml
Nutssh has joined #ocaml
pango has quit ["I shouldn't really be here - dircproxy 1.0.5"]
pango has joined #ocaml
Tetsuo has joined #ocaml
EliasAmaral has joined #ocaml
joshcryer has quit [Read error: 104 (Connection reset by peer)]
seafoodX has quit [Read error: 110 (Connection timed out)]
<EliasAmaral>
Hello, there are any good sound library for ocaml that allow playing arbitrary sounds? (like a sound generated dinamically) I am seeing ocaml-alsa, but it's too low-level.
joelr1 has joined #ocaml
<joelr1>
good morning
<EliasAmaral>
hello joelr1
<joelr1>
:-)
<EliasAmaral>
la, la, la :)
<EliasAmaral>
I am having trouble in finding a lib that could do a thing like.. "play a sound at a given frequency", or better, "play that given note". like, uhn, jMusic for java
<EliasAmaral>
maybe is there any hope for me to find this written in ocaml? :~
<joelr1>
nope
<EliasAmaral>
I am afraid I can't figure out in one day how alsa works and how to abstract over functions like "val readn_float64 : handle -> float array array -> int -> int -> int"
<haelix>
EliasAmaral: why not go for Java ?
<haelix>
if the language is too much of a pain, then you can still hava access to Java classes from other JVM languages
<EliasAmaral>
haelix, hmm. this is part of a larger project, and i am already doing it in ocaml.
<EliasAmaral>
I was looking for an application to computations done by cellular automata, and algorithmically-generated music was nice. but to do that, i need a music library of course =o
<haelix>
YEs
<haelix>
that sounds nice :)
<haelix>
then, I'm afraid you're left using some socket RPC to connect to a small Java Sound server
leo037 has joined #ocaml
velco has quit ["<boris``> reduction ad absurdum is a fallacious method of proof"]
<EliasAmaral>
ahahahha. that sounds a bit of hack. but it could work. i also would learn a bit of java in the process
<joelr1>
haelix: do you know camlp4?
<haelix>
joelr1, sorry, no
<joelr1>
no problem
<haelix>
EliasAmaral: I'd go for one of the many xml-rpc solutions
<haelix>
praying to find one interoperable enough between the implementations available for OCaml and Java
<haelix>
(no specific advice - I've only done Java remoting throug RMI or Hessian)
<EliasAmaral>
java-to-ocaml binary interface (for calling functions) isn't an option? i think java can export functions for C programs, and OCaml can import functions from C programs..
<haelix>
Yes, Java JNI has provisions for native to JAva callbacks
<EliasAmaral>
that way I would not view an inconvenient sound server, but a nice sound library
<haelix>
(even ways of instantiating the whole VM if it's not already here)
<haelix>
_but_
<EliasAmaral>
(maybe I could arrange the RPC to act as a library, too)
<haelix>
the JNI system is sooooo cumbersome
joshcryer has joined #ocaml
<EliasAmaral>
cumbersome
<EliasAmaral>
it must be a terrible thing to say about a interface
<EliasAmaral>
(looking in a dictionary)
<EliasAmaral>
cumbersome = difficult or cumbersome = heavyweight? because i have no problem with slow things actually..
<haelix>
hmmm
<haelix>
what I mean is that it's more geared towards mechanical wrapper generation that manual coding
<haelix>
the good news is that you're trying to interface existing java code:
<EliasAmaral>
hell, in a page a guy recommended "very high level languages" for musical exploration, and he cited ocaml, along ruby and python..
<haelix>
java has enough reflection features that this is more easy than in the ocam way