csound | Main repository for Csound
kandi X-RAY | csound Summary
kandi X-RAY | csound Summary
A sound and music computing system. Csound is copyright (c) 1991-2020 The Csound Developers, see CONTRIBUTORS. Csound is free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Csound is distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of csound
csound Key Features
csound Examples and Code Snippets
Community Discussions
Trending Discussions on csound
QUESTION
Build profile: -w ghc-9.0.1 -O1
In order, the following will be built (use -v for more details):
- csound-expression-dynamic-0.3.8 (lib) (requires build)
- csound-expression-typed-0.2.7 (lib) (requires build)
- csound-expression-opcodes-0.0.5.1 (lib) (requires build)
- csound-expression-5.3.4 (lib) (requires build)
- csound-sampler-0.0.10.0 (lib) (requires build)
- csound-catalog-0.7.4 (lib) (requires build)
- solve-0.2.0.0 (exe:solve) (first run)
Starting csound-expression-dynamic-0.3.8 (lib)
Building csound-expression-dynamic-0.3.8 (lib)
Failed to build csound-expression-dynamic-0.3.8.
Build log (
C:\Users\Shiro\AppData\Roaming\cabal\logs\ghc-9.0.1\csound-expres_-0.3.8-3e9f98bb37e846ae1dd789bc6c80c4d50504a214.log
):
Preprocessing library for csound-expression-dynamic-0.3.8..
Building library for csound-expression-dynamic-0.3.8..
[ 1 of 15] Compiling Csound.Dynamic.Tfm.DeduceTypes ( src\Csound\Dynamic\Tfm\DeduceTypes.hs, dist\build\Csound\Dynamic\Tfm\DeduceTypes.o )
[ 2 of 15] Compiling Csound.Dynamic.Tfm.UnfoldMultiOuts ( src\Csound\Dynamic\Tfm\UnfoldMultiOuts.hs, dist\build\Csound\Dynamic\Tfm\UnfoldMultiOuts.o )
[ 3 of 15] Compiling Csound.Dynamic.Types.Exp ( src\Csound\Dynamic\Types\Exp.hs, dist\build\Csound\Dynamic\Types\Exp.o )
src\Csound\Dynamic\Types\Exp.hs:202:66: error:
* No instance for (Data.Functor.Classes.Eq1 RatedExp)
arising from a use of `=='
* In the second argument of `(&&)', namely
`(ratedExpExp re == EmptyExp)'
In the expression:
isNothing (ratedExpDepends re) && (ratedExpExp re == EmptyExp)
In an equation for `isEmptyExp':
isEmptyExp e
= isNothing (ratedExpDepends re) && (ratedExpExp re == EmptyExp)
where
re = unFix e
|
202 | isEmptyExp e = isNothing (ratedExpDepends re) && (ratedExpExp re == EmptyExp)
| ^^
cabal.exe: Failed to build csound-expression-dynamic-0.3.8 (which is required
by exe:solve from solve-0.2.0.0). See the build log above for details.
...ANSWER
Answered 2021-Oct-17 at 15:16It seems csound-expression-dynamic
is not yet compatible with GHC 9.0.1. Try GHC 8.10.7, which is still the recommended version for general use.
I've opened an issue about this on their GitHub page: https://github.com/spell-music/csound-expression-dynamic/issues/2.
QUESTION
I'm trying to parse Csound opcode lines with Pyparser (to create a custom auto-formatter) and I'm stuck trying to define the following formula:
...ANSWER
Answered 2021-Aug-03 at 01:18A couple of notes before answering the core question:
I found it quite confusing that you list the input samples in a different order from the execution runs. I guess I understand why you ran them in that order -- although a
try
block would have solved the problem -- but it would have been a lot more reader-friendly to just reorder the input list. Just sayin', for future reference.)The
oscil
line cuts off early because yourparam
only recognises alphanumerics and quoted strings. Unsigned integers are made up ofalphanums
, but since.
is not an alphanum, floating point numbers like0.5
don't match.pp.Word(pp.alphanums)
stops after the0
.You'd run into a similar problem with
-1
, with the difference that there is no previous digit which could be matched.
The fundamental problem, though, is that the grammar is ambiguous unless you have a way of distinguishing an output variable from an opcode. Without that, a b
can be parsed either as output(a) opcode(b) param()
or output() opcode(a) param(b)
.
Pyparsing's optional
is greedy, so pp.optional(outputs)
will parse the first var
token as a one-element outputs
. That means that it would parse a b
as outputs(a) opcode(b) params()
, which resolves the ambiguity but doesn't always produce the correct parse. It will do that even in cases where it is obviously wrong (to a human observer who can see the entire command), such as the commands op
or op "foo"
. That fact that op
will be parsed as an output, not an opcode, means that both of those will produce syntax errors. (That's the problem with the prints
command.)
So to parse a line, it's necessary to distinguish between the following cases (I use [...]
to indicate optional):
QUESTION
Very basic question here. I am just starting out with C coding using Csound.
I am trying to invoke the compiler via instructions from a tutorial book.
It says open console window and type this command "cc mysource.c"
This is seemingly meant to invoke the compiler but I get this error message
...ANSWER
Answered 2021-Jan-23 at 01:01cc was a compiler for Unix. It doesn't come with Windows, and you probably want to use gcc instead because it is used much more. You must set up MinGW and add it to PATH. Following this guide will help: youtube.com/watch?v=sXW2VLrQ3Bs
You can then compile C using gcc mysource.c
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install csound
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page