Closed rvl closed 2 months ago
Thanks for report, I'll investigate that. I've fixed lots of bugs recently regarding low-level renderer. Maybe this one is also fixed.
Thanks @anton-k
I've tried your example, it's a bug indeed. Recently I've dedicated lots of effort to debug the core underlying library csound-expression-dynamic. It renders haskell expression trees to imperative csound programs. I've found the bug in the way SE-expressions were handled, it rendered expressions in the wrong order. I was wrong in the original idea of implementing SE-monad. But now I've got a new algorithm. It's hopefully more sound one.
I've tried your example on the branch where I'm developing new core for CE. It seems to work. It's csound-core branch. I plan to merge it soon to master.
NB: I am looking forward to csound-core.
NB: I am looking forward to csound-core.
To test it I've implemented a non-trivial app that requires lots of SE-expressions: https://github.com/anton-k/csound-live-sampler. An example of new design and where CE is going. It's sort of sub-set of Abelton live clip launcher.
My plan for upcoming release is to integrate new ce-dynamic with bug fixes and then gradually rebuild CE on top of csound-core in the next releases.
It's fixed on master. I've uploded new version to hackage also.
Thanks very much @anton-k. I'm building the new version and am about to try it out now.
It is working well now - thanks.
I'm trying to use a MIDI keyboard to play a Csound instrument through csound-expression, but the instrument never makes any noise.
This is the code I'm using:
If I run
test1
from ghci, it produces a tone as expected.If I run
test2
from ghci, and then press keys on my MIDI keyboard, I can see that MIDI events are processed, but no tones are audible.This is the output:
This is the contents of
/tmp/tmp.csd
:If I edit
/tmp/tmp.csd
and move the linegargg0 = 0.0
to after the linear1 = gargg0
, then runcsound /tmp/tmp.csd
, then I can hear tones when I play on the keyboard.The order of opcodes in
/tmp/tmp.csd
looks wrong to me.I have the following software versions:
Thanks