Re: [haskell art] MIDI device ID in alsa-seq

2015-09-21 Thread amindfv

> On Sep 21, 2015, at 15:44, Henning Thielemann  
> wrote:
> 
> 
>> On Sat, 19 Sep 2015, amin...@gmail.com wrote:
>> 
>>I've written a little thing with alsa-seq that listens out for 
>> Sound.ALSA.Sequencer.Event.NoteOn messages and peforms actions based on 
>> the message. Something I'm stuck on, though, is I can't find where the 
>> MIDI device id is.
> 
> What MIDI device ID do you mean? There is no MIDI device information in a 
> Note event.
> 
>> It doesn't seem to be in the "T" value for that module.
> 
> The problem is certainly that I define the type in a private module and 
> export it from a public module. Haddock does not know the public module 
> that exports the identifier.
> 

Hi Henning,
 I'm not seeing it. Can you point to the type itself, or the module it's in?

Thanks,
Tom


>>Another (unrelated) question is about the warning about "this whole 
>> library does not appear to be particularly thread aware" -- does that 
>> just mean it has weird/undefined behavior when actions happen 
>> concurrently to the same Sequencer.T from separate threads?
> 
> This is what the comment in Sequencer.hs suggests to me and I think this 
> behaviour is sound. I do not think that it is the responsibility of an 
> (imperative) library to guard every access to a mutable data structure 
> with a lock. But I think it is a problem if a library uses mutable global 
> variables and then requires the programmer to use the same lock for all 
> functions of the library.
> 
> -- 
> 
> Read the whole topic here: Haskell Art:
> http://lurk.org/r/topic/4qxgR1RUItk019JjoDlaGC
> 
> To leave Haskell Art, email haskell-...@group.lurk.org with the following 
> email subject: unsubscribe

-- 

Read the whole topic here: Haskell Art:
http://lurk.org/r/topic/6ytl6vyYDo8BoV0gYXNKaB

To leave Haskell Art, email haskell-...@group.lurk.org with the following email 
subject: unsubscribe


Re: [haskell art] the library of beautiful instruments implemented in haskell / csound

2015-09-21 Thread Henning Thielemann

On Thu, 17 Sep 2015, Evan Laforge wrote:

> On Wed, Sep 16, 2015 at 12:59 PM, Anton Kholomiov
>  wrote:
>> That's the first piece of music done with csound-expression
>> not by me. I'm very happy to listen to it. I'm biased as an author.
>> and you have managed to do it so quickly!
>
> I was going to say, not only do these music production libraries tend to 
> lack instruments, they also tend to lack actual music.

That's my observation, too. Maybe they are developed for something 
different?

-- 

Read the whole topic here: Haskell Art:
http://lurk.org/r/topic/4fG8SEx9deEpstiCFva9CH

To leave Haskell Art, email haskell-...@group.lurk.org with the following email 
subject: unsubscribe