Code Monkey home page Code Monkey logo

csoundengine's People

Contributors

gesellkammer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

csoundengine's Issues

Error opening necessary plugin libraries

Hello,

I was able to install csoundengine on my MacBook Pro (macOS 13.5.1) today and successfully import it in Python. However, when I create an Engine() I get the following error:

>>> from csoundengine import *
>>> engine = Engine()
Asked for backend sr, but backend pa_cb, does nothave a fixed sr. Using sr=44100

error: syntax error, unexpected T_IDENT  (token "dict_new")
 line 14:
 >>> gi__soundfontIndexes dict_new <<<
Unexpected untyped word gi__soundfontIndexes when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
Error compiling base orchestra. A copy of the orchestra has been saved to /var/folders/lr/q0m4k0hx34q16lqv0x138d980000gn/T/csoundengine-lshfzgse.orc

When I run csound -z in the command line I don't see dict_new in the list. At the bottom of the opcodes list printout I see these warnings:

WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libjsfx.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libpathtools.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libelse.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libbeosc.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libcsound_webserver.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/librisset.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libklib.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libsndmeta.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libpoly.dylib' (-1)

Csound clearly knows to look in this directory and load the libraries, but apparently it can't open them. Is this a permissions issue? Do you have any suggestions for what I could try?

Thanks!
Jason

Engine().session() occasionally crashes

Hi Eduardo,

About one out of 100 times that I run csoundengine my program crashes and gives me this error:

Traceback (most recent call last):
  File "/Users/hallenj/Documents/csound/aya/aya.py", line 1922, in <module>
    main()
  File "/Users/hallenj/Documents/csound/aya/aya.py", line 1903, in main
    window = MainWindow()
             ^^^^^^^^^^^^
  File "/Users/hallenj/Documents/csound/aya/aya.py", line 63, in __init__
    self.initialize_csound()
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hallenj/Documents/csound/aya/aya.py", line 126, in initialize_csound
    self.cs = CsoundThread()
              ^^^^^^^^^^^^^^
  File "/Users/hallenj/Documents/csound/aya/csoundthread.py", line 24, in __init__
    self.session = ce.Engine(nchnls=1, backend = "auhal", ksmps=64, buffersize=256, numbuffers=4, outdev="dac0", globalcode = half_sine_table).session()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hallenj/miniconda3/envs/csound/lib/python3.11/site-packages/csoundengine/engine.py", line 1829, in session
    self._session = Session(self.name)
                    ^^^^^^^^^^^^^^^^^^
  File "/Users/hallenj/miniconda3/envs/csound/lib/python3.11/site-packages/csoundengine/session.py", line 436, in __init__
    bucketSizes = [int(size) for size in bucketSizeCurve.map(numpriorities)]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hallenj/miniconda3/envs/csound/lib/python3.11/site-packages/csoundengine/session.py", line 436, in <listcomp>
    bucketSizes = [int(size) for size in bucketSizeCurve.map(numpriorities)]
                   ^^^^^^^^^
ValueError: cannot convert float NaN to integer
Exiting python, closing all active engines
... stopping engine0

Any idea why this is happening?

Thanks,
Jason

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.