Re: [haskell-art] Playing a beep
On Sun, 9 Aug 2009, Håkan Thörngren wrote: On Sat, Aug 8, 2009 at 10:44 PM, Henning Thielemann wrote: The sox I tried first which caused the problems was a prebuilt sox Mac OS X binary downloaded from http://sox.sourceforge.net. How does the binary from http://sox.sourceforge.net/ differ from your custom one? The one I had trouble with is version 14.3.0 and the one I built with MacPorts reports 14.0.1. I have 14.2.0. I remember I switched to the newer version because 'soxi' was added to the package.___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
Håkan Thörngren schrieb: > On Sat, Aug 8, 2009 at 10:44 PM, Henning Thielemann > mailto:lemm...@henning-thielemann.de>> > wrote: > > > The sox I tried first which caused the problems was a prebuilt > sox Mac OS X binary downloaded > from http://sox.sourceforge.net. > > > How does the binary from http://sox.sourceforge.net/ differ from > your custom one? > > > The one I had trouble with is version 14.3.0 and the one I built with > MacPorts reports 14.0.1. I have 14.2.0. I remember I switched to the newer version because 'soxi' was added to the package. ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Sat, Aug 8, 2009 at 10:44 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > The sox I tried first which caused the problems was a prebuilt sox Mac OS X >> binary downloaded >> from http://sox.sourceforge.net. >> > > How does the binary from http://sox.sourceforge.net/ differ from your > custom one? The one I had trouble with is version 14.3.0 and the one I built with MacPorts reports 14.0.1. ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Sat, 8 Aug 2009, Håkan Thörngren wrote: I can report success now with Synthesizer and sox on Mac OS X Intel! I built a sox binary using MacPorts and it works just fine for the simple things I am doing! Good news! The sox I tried first which caused the problems was a prebuilt sox Mac OS X binary downloaded from http://sox.sourceforge.net. How does the binary from http://sox.sourceforge.net/ differ from your custom one? Now I will head on porting it all to Linux, Mac OS X PowerPC and Windows and see how that turns out.___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
I can report success now with Synthesizer and sox on Mac OS X Intel! I built a sox binary using MacPorts and it works just fine for the simple things I am doing! The sox I tried first which caused the problems was a prebuilt sox Mac OS X binary downloaded from http://sox.sourceforge.net. Now I will head on porting it all to Linux, Mac OS X PowerPC and Windows and see how that turns out. /Håkan > ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Mon, 3 Aug 2009, Håkan Thörngren wrote: I tried the oscillator example as given, if it plays, it plays forever. But about half of the times it just dies with the broken pipe error and no sound at all. I did not find any examples in the sox package? Sometimes, when I press Ctrl-C too often, a newly played sound is aborted immediately. But that wasn't a problem for me, so far.___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Mon, Aug 3, 2009 at 9:06 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > Too bad. I thought Sox would be an easy and portable way. But people > already reported problems on Windows. Now Mac. I use Linux, where I also > encountered a bug recently. Maybe a Sox bug? Have you tried 'sox' package > and included examples alone? I tried the oscillator example as given, if it plays, it plays forever. But about half of the times it just dies with the broken pipe error and no sound at all. I did not find any examples in the sox package? Apparantly the play command crashes. I have a crash dump, but it does not say so much, I probably need a debug version of it. I will see if I can investigate it later this week. I will also take a look in the archives. ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Mon, 3 Aug 2009, Henning Thielemann wrote: On Mon, 3 Aug 2009, Håkan Thörngren wrote: Hi, I am developing a calculator simulator which can do simple beeps. The simulator figures out the frequency and duration of the beep and informs a separate thread about it. That thread is then supposed to perform the actual playing of the beep. So far I have tried to use Synthesizer and I can sometimes get some fragments of beeps to occur, but it is very erratic and often/soon I tend to get: : fd:19: hPutBuf: resource vanished (Broken pipe) after which no beeps occurs. Probably my thread dies when this happens. Too bad. I thought Sox would be an easy and portable way. But people already reported problems on Windows. Now Mac. I use Linux, where I also encountered a bug recently. Maybe a Sox bug? Have you tried 'sox' package and included examples alone? Please see haskell-art archive. We had a discussion about such issues a month ago or so. I also have http://hackage.haskell.org/package/synthesizer-alsa where I output sound via ALSA. Would that be an alternative?___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Mon, 3 Aug 2009, Håkan Thörngren wrote: Hi, I am developing a calculator simulator which can do simple beeps. The simulator figures out the frequency and duration of the beep and informs a separate thread about it. That thread is then supposed to perform the actual playing of the beep. So far I have tried to use Synthesizer and I can sometimes get some fragments of beeps to occur, but it is very erratic and often/soon I tend to get: : fd:19: hPutBuf: resource vanished (Broken pipe) after which no beeps occurs. Probably my thread dies when this happens. Too bad. I thought Sox would be an easy and portable way. But people already reported problems on Windows. Now Mac. I use Linux, where I also encountered a bug recently. Maybe a Sox bug? Have you tried 'sox' package and included examples alone? Please see haskell-art archive. We had a discussion about such issues a month ago or so.___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
[haskell-art] Playing a beep
Hi, I am developing a calculator simulator which can do simple beeps. The simulator figures out the frequency and duration of the beep and informs a separate thread about it. That thread is then supposed to perform the actual playing of the beep. So far I have tried to use Synthesizer and I can sometimes get some fragments of beeps to occur, but it is very erratic and often/soon I tend to get: : fd:19: hPutBuf: resource vanished (Broken pipe) after which no beeps occurs. Probably my thread dies when this happens. I modified the oscillator example in Synthesizer.Plain.Tutorial to: oscillator :: Double -> Int -> IO ExitCode oscillator step len = play (SigSt.take len $ Osci.static SigG.defaultLazySize Wave.square NP.zero step) My idea is to use 'take' to limit the length of the play as the original example played forever. Example values used are 0.03 and 1 Why do I have this problem? Am I doing something wrong? Are there other portable ways of doing this? Versions: Synthesizer 0.2.0.1, Mac OS X 10.5.7 Intel, sox v14.3.0 Regards, Håkan ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art