[haskell-art] hsndfile

2010-09-22 Thread John Lato
Hello, I recently upgraded to hsndfile-0.4.0, and I have a few questions about its operation. My test program is pretty much this: test = do (info, chunks) <- Sound.File.Sndfile.readFile file print info putStrLn "Max is: " print $ foldl' myMax 0 chunks myMax :: D

Re: [haskell-art] hsndfile

2010-09-22 Thread John Lato
Hi Stefan, Thanks for the quick reply. On Wed, Sep 22, 2010 at 10:59 AM, Stefan Kersten wrote: > hi john, > > On 22.09.10 11:37, John Lato wrote: > > Initially I tried using readFileChunks, but I never got any data from it. > The > > info would print out, but the ca

Re: [haskell-art] [Haskell-cafe] Lazy cons, Stream-Fusion style?

2011-01-04 Thread John Lato
I've been using the CCA package with good results so far. Several people (including myself) appear to have tried performing the CCA transformations with a GADT rather than Template Haskell, without much success. Although the code is transformed to normal form, performance isn't good. I suspect t

[haskell-art] Linux Audio Conference (Call for participation)

2011-01-04 Thread John Lato
Hello, Probably many of you are aware of this, but I'd like to get some Haskell representation at this year's LAC! Any Open Source music software would be welcome, even if it's not Linux-based. The submission date is approaching, so please submit if you haven't already. John [cross-posted from

Re: [haskell-art] [Haskell-cafe] Lazy cons, Stream-Fusion style?

2011-01-04 Thread John Lato
On Tue, Jan 4, 2011 at 12:23 PM, Balazs Komuves wrote: > > Hi, > > On Tue, Jan 4, 2011 at 11:40 AM, John Lato wrote: > >> I've been using the CCA package with good results so far. Several people >> (including myself) appear to have tried performing the CCA trans

Re: [haskell-art] Haskell art?

2011-02-03 Thread John Lato
Hello, I'm John Lato, a musician/technologist currently based outside of Dublin. I'm the author of a few audio-related Haskell packages: hCsound: http://hackage.haskell.org/package/hCsound sndfile-enumerators: http://hackage.haskell.org/package/sndfile-enumerators although I'm

Re: [haskell-art] Haskell art?

2011-02-03 Thread John Lato
On Thu, Feb 3, 2011 at 8:05 PM, Evan Laforge wrote: > > I'm at last in a state where I can start using Haskell for real work, > > although most of it isn't ready for release yet. Recently I've been > > concentrating on physical modeling, an audio EDSL[0], and a csound-ish > > front-end based on

Re: [haskell-art] Haskell art?

2011-02-03 Thread John Lato
On Thu, Feb 3, 2011 at 6:46 PM, Anton Kholomiov wrote: > sorry i've started new thread, it goes here > > Hi > > I'm making dsl's for music/sound composition. Hope some day i will stop > making dsls and do some music with them. But haskell makes it difficult. > With haskell It's too interesting to

Re: [haskell-art] Haskell art?

2011-02-03 Thread John Lato
On Thu, Feb 3, 2011 at 10:26 PM, Evan Laforge wrote: > I should have mentioned Pianoteq back there as an exception to "no > interesting physical models since the '90s" thing. But it's pretty > specialized, and since it's proprietary who knows what they're doing > in there anyway. > I always ass

Re: [haskell-art] Haskell art?

2011-02-04 Thread John Lato
On Fri, Feb 4, 2011 at 2:14 AM, Evan Laforge wrote: > On Thu, Feb 3, 2011 at 5:27 PM, John Lato wrote: > > On Thu, Feb 3, 2011 at 10:26 PM, Evan Laforge wrote: > >> > >> I should have mentioned Pianoteq back there as an exception to "no > >> interest

Re: [haskell-art] Haskell art?

2011-02-15 Thread John Lato
On Tue, Feb 15, 2011 at 1:58 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > On Fri, 4 Feb 2011, Stephen Sinclair wrote: > > Anyways, due to the field I work in, one subject area I find myself >> obsessed with is the seeming conflicts of interest between functional >> programmi

Re: [haskell-art] Haskell art?

2011-02-15 Thread John Lato
On Tue, Feb 15, 2011 at 2:03 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > On Sun, 13 Feb 2011, Hudak, Paul wrote: > > First, my group has designed a new computer music library that I call >> Euterpea (named after Euterpe, the Greek muse of music). Euterpea has all >> of the

[haskell-art] purely functional circular buffers

2011-02-17 Thread John Lato
Does anyone know of a purely functional equivalent to a circular buffer? I'm looking for something that supports efficient insertion and lookup, and doesn't rely upon mutable data. I don't want to use mutable data because I'd like to embed this in CCA, which to my knowledge doesn't yet support Kl

Re: [haskell-art] purely functional circular buffers

2011-02-17 Thread John Lato
On Thu, Feb 17, 2011 at 6:21 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > John Lato schrieb: > > > Does anyone know of a purely functional equivalent to a circular buffer? > > It depends on the application you have in mind. > For programming a const

Re: [haskell-art] purely functional circular buffers

2011-02-18 Thread John Lato
On Fri, Feb 18, 2011 at 1:14 AM, Sebastian Fischer wrote: > So far the best I've found is Data.Sequence.Seq, which in my tests >> outperforms mutable vectors, but only for reads from the head or tail of the >> sequence. Indexing into the middle of the sequence is relatively slow. >> > > Data.Sequ

Re: [haskell-art] purely functional circular buffers

2011-02-19 Thread John Lato
On Sat, Feb 19, 2011 at 9:14 AM, Sebastian Fischer wrote: > On Sat, Feb 19, 2011 at 2:05 AM, John Lato wrote: > >> On Fri, Feb 18, 2011 at 1:14 AM, Sebastian Fischer wrote: >> >>> Maybe one of the simpler structures presented there (like random access >>

Re: [haskell-art] Haskell art?

2011-02-23 Thread John Lato
On Wed, Feb 23, 2011 at 8:50 AM, Stephen Tetley wrote: > On 22 February 2011 23:41, Evan Laforge wrote: > > > > > I'm not super knowledgable about supercollider, but isn't it basically > > a synthesizer which you configure by sending OSC over, and can then > > play it by sending more OSC? > > Sup

[haskell-art] request for review - circular buffer performance

2011-07-06 Thread John Lato
Hello all, In a nutshell, after some discussion and review, I concluded that there are only two circular buffer implementations worth considering in Haskell (3 if you only need access to the end of the buffer) - a mutable implementation and a Data.Sequence-based one. Somewhat to my surprise, my t

Re: [haskell-art] request for review - circular buffer performance

2011-07-06 Thread John Lato
On Wed, Jul 6, 2011 at 10:33 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > On Wed, 6 Jul 2011, John Lato wrote: > > Somewhat to my surprise, my tests show that the Data.Sequence >> implementation both performs better overall and scales better. >

Re: [haskell-art] umbrella term for flats and sharps

2012-01-16 Thread John Lato
t; article mentions this usage. Don't use "sign", as that term refers to something else (the navigation marker of dal Segno (D.S.) and would just be confusing more likely than not. John Lato On Mon, Jan 16, 2012 at 4:04 PM, Duncan Mortimer wrote: > Hi Henning, > > I just le

Re: [haskell-art] umbrella term for flats and sharps

2012-01-17 Thread John Lato
Whether or not I'd use it in this case depends upon the rest of the system. John Lato On Tue, Jan 17, 2012 at 5:50 AM, wrote: > In English flats, sharps, and naturals are all "accidentals" whether they are > in the key signature or in a measure. They can be doubled o

Re: [haskell-art] code golf: diatonic transposition

2012-01-26 Thread John Lato
This is what I would suggest also. Sometimes called a "movable-do" system, because "do" (C) is always the root, but the actual pitch it refers to varies with the key. Although, if you are interested in going outside church modes, you'll need more flexibility. If the modes are all symmetric, as i

Re: [haskell art] Mixing sound files with haskell

2014-06-21 Thread John Lato
On Jun 21, 2014 12:47 AM, "Anton Kholomiov" wrote: > > Yes, you can. Csound is not only a programm (compiler) > but also a C API. There are bindings for C, Java, Python. There is also a Haskell binding to the Csound API. Although I think it's a bit out of date, I'll try to update it this week.

Re: [haskell art] Mixing sound files with haskell

2014-06-21 Thread John Lato
gt; > > > I got hCsound to compile (on debian), I just had to add the line: > > > > include-dirs:/usr/include/csound > > > > to hCsound.cabal. Haven't tested it beyond that though. > > > > On 06/21/2014 10:12 AM, John Lato wrote: > > > O

Re: [haskell art] Possible to create a LADSPA plugin in haskell?

2014-10-29 Thread John Lato
Yes, it certainly is possible to call Haskell from C code. Some information is in the ghc User's Guide at http://www.haskell.org/ghc/docs/7.8.3/html/users_guide/ffi-ghc.html#foreign-export-ghc, and there are some examples on StackOverflow as well (e.g. http://stackoverflow.com/questions/4418901/in

Re: [haskell-art] Haskore - state of affairs

2008-08-10 Thread John Lato
On Sat, Aug 9, 2008 at 11:51 AM, Henning Thielemann <[EMAIL PROTECTED]> wrote: > > On Wed, 23 Jul 2008, John Lato wrote: > >> Although I haven't yet used Haskore much (it's generally addressed >> towards a different style of music than what I typically wor

Re: [haskell-art] Music Project pages at HaskellWiki

2008-08-11 Thread John Lato
Thanks, Henning. Looks like a great start. I'll expand upon what I can. John On Mon, Aug 11, 2008 at 10:15 AM, Henning Thielemann <[EMAIL PROTECTED]> wrote: > > As recently suggested on Haskell-Cafe I have initialized some project home > pages for the musical Haskell projects I am aware of. Ple

[haskell-art] Haskell audio I/O packages

2008-12-03 Thread John Lato
Hello, This is the sort of thing that most people would put in a blog post, but I don't have a blog so I'm sending it to this list, since I think most readers would be interested. I've recently been doing some tests of different sound file I/O packages in Haskell, and I would like to share the re

Re: [haskell-art] Haskell audio I/O packages

2008-12-08 Thread John Lato
On Fri, Dec 5, 2008 at 7:04 PM, stefan kersten <[EMAIL PROTECTED]> wrote: > Henning Thielemann wrote: >> Thank you for this benchmark! I'm particularly interested in >> StorableVector because I hacked it quite a bit and use it for my own >> signal processing. >> >> I would also like to know how Fus

Re: [haskell-art] Haskell audio I/O packages

2008-12-08 Thread John Lato
On Fri, Dec 5, 2008 at 4:36 PM, Henning Thielemann <[EMAIL PROTECTED]> wrote: > >> >> Data Types: >> HSoundFile-3 - custom AudioBuffer class. Implementations are >> provided for UArr Double, List Double, and StorableVector Double > > StorableVector or StorableVector.Lazy? The latter seems appropr

Re: [haskell-art] Haskell audio I/O packages

2008-12-08 Thread John Lato
> On Fri, Dec 5, 2008 at 7:04 PM, stefan kersten <[EMAIL PROTECTED]> wrote: > hsndfile - a recursive I/O function reads a chunk from the file (using IOCArray type) and accumulates the maximum values from each chunk. I attempted to create a framework like used for HSoundFile-3, howev

Re: [haskell-art] Haskell audio I/O packages

2008-12-09 Thread John Lato
On Tue, Dec 9, 2008 at 4:45 PM, stefan kersten <[EMAIL PROTECTED]> wrote: > hi john, > > John Lato wrote: >> Using unsafeFreezeIOCArray and my stream implementation provides the >> fastest version yet, with an average of about 1.9s per run. This is >> in the

Re: [haskell-art] Haskell audio I/O packages

2008-12-09 Thread John Lato
On Tue, Dec 9, 2008 at 4:58 PM, Henning Thielemann <[EMAIL PROTECTED]> wrote: > > What are the reasons, you do not like lazy IO? Yes, currently it's a hack > using unsafeInterleaveIO. But I hope someday one can hide this safely in a > nice monad. But in general I find lazy stream processing a very

Re: [haskell-art] Haskell audio I/O packages

2008-12-10 Thread John Lato
On Tue, Dec 9, 2008 at 9:15 PM, Henning Thielemann <[EMAIL PROTECTED]> wrote: > > > I think the problem is that readFile style routines are not modular > enough. We need open/getContent/close style routines and sadly, > composition of them is error-prone. You can easily close a file and try to > re

[haskell-art] OT (sort of): new haskell audio blog

2009-02-11 Thread John Lato
Hello, I'd like to announce that I've begun a blog for my explorations of audio programming in haskell. The first posts deal with developing a high-performance, iteratee-based, WAVE reader. Please do look if you're interested. http://johnlato.blogspot.com/ Since

Re: [haskell-art] OT (sort of): new haskell audio blog

2009-02-13 Thread John Lato
On Fri, Feb 13, 2009 at 4:50 PM, Henning Thielemann wrote: > > On Wed, 11 Feb 2009, John Lato wrote: > >> I'd like to announce that I've begun a blog for my explorations of >> audio programming in haskell. The first posts deal with developing a >> high-per

[haskell-art] what do people use for audio output

2009-02-16 Thread John Lato
k files or controlling an external program (e.g. SuperCollider). If anyone is willing to share their techniques, I'd like to know. Thanks, John Lato ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art

Re: [haskell-art] what do people use for audio output

2009-02-17 Thread John Lato
Hi Henning, Thanks for replying. I wasn't aware of the SOX method. Do you still use this (in new code), or do you mostly use ALSA? John On Tue, Feb 17, 2009 at 2:10 AM, Henning Thielemann wrote: > > On Mon, 16 Feb 2009, John Lato wrote: > >> Hello, >> >> I

Re: [haskell-art] Announcement: Sox wrapper

2009-04-22 Thread John Lato
If you just need to play audio, have you tried the portaudio package, http://hackage.haskell.org/cgi-bin/hackage-scripts/package/portaudio? It worked out of the box for me (mac osx 10.4, ghc-6.10.1), at least as far as playing back about 7 minutes of 16-bit, 48K stereo. John Lato On Wed, Apr 22

Re: [haskell-art] Cross-platform Audio I/O (was Re: Sox wrapper)

2009-04-24 Thread John Lato
On Fri, Apr 24, 2009 at 6:40 PM, Achim Schneider wrote: > Eric Cheng wrote: > >> So a solution has to be cross-platform (Linux, Mac, and Windows) and >> real-time (be it callback based or loop based).  I've briefly looked >> at Jack, but its OSX and Windows support does not seem quite polished >>

Re: [haskell-art] Cross-platform Audio I/O (was Re: Sox wrapper)

2009-04-24 Thread John Lato
On Fri, Apr 24, 2009 at 6:00 PM, Eric Cheng wrote: > Hello folks, > > It sounds like there have been a lot of exciting things about Haskell > audio going on lately! > > I agree with Balazs that a cross-platform solution would be very nice. >  Here at Yale we've been designing the next-generation o

[haskell-art] ANN: word24 on hackage

2009-08-18 Thread John Lato
Hello, Please excuse my posting of an announcement on this low-traffic list; I think this package is primarily of interest to audio developers. I have recently published the "word24" package on hackage, which provides 24-bit Int and Word types (GHC only). Feedback is welcome. Cheers,

Re: [haskell-art] Most simple way to make some noise

2009-11-18 Thread John Lato
On Wed, Nov 18, 2009 at 9:20 PM, Balazs Komuves wrote: > > Hi, > >> as a beginner I have a beginner's question: Which is the most simple way >> to make my haskell programm play a sound? > > It really depends what kind of sound you want to make. Play a beep, or a > .wav file, > or a waveform genera

Re: [haskell-art] methods for dealing with garbage collection

2010-05-21 Thread John Lato
On Fri, May 21, 2010 at 4:56 AM, Renick Bell wrote: >> I found hp2any-manager extremely useful. > > Thank you for your advice. You put me on the right path. I had been > running my code and interacting with it in ghci, which is where I > experienced the lateness. To use hp2any, I prepared a compil

Re: [haskell-art] methods for dealing with garbage collection

2010-05-23 Thread John Lato
On Sun, May 23, 2010 at 5:47 PM, Henning Thielemann wrote: > > On Sun, 23 May 2010, Sönke Hahn wrote: > >> On Friday, May 21, 2010 11:45:18 am John Lato wrote: >>> >>> You could try compiling the time-critical stuff with ghc -O2, then >>> just load th

Re: [haskell-art] methods for dealing with garbage collection

2010-05-24 Thread John Lato
On Mon, May 24, 2010 at 9:56 AM, Henning Thielemann wrote: > > On Mon, 24 May 2010, John Lato wrote: > >> On Sun, May 23, 2010 at 5:47 PM, Henning Thielemann >> >>> With the LLVM based signal processing EDSL that I developed recently >>> (http://arxiv.or

Re: [haskell-art] LLVM = Lively Lovely Virtuosic Music

2010-08-16 Thread John Lato
Thanks for sharing; very nice indeed. On Mon, Aug 16, 2010 at 10:25 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > I asked a friend to perform a song on my Haskell-LLVM-Softsynth. It's more > lovely than an extensive technical demonstration. > http://www.youtube.com/user/amig