Dear all,
when I open the Bela-IDE and run the csound examples they work fine and as expected. My problem starts when I create a new csound project in the Project Explorer. The new file will not compile. The console says: "1 mode switch detected on the audio thread."

I am a beginner with Bela but have experience working with csound.
I'm on Mac OS 10.12.6 and using Bela Mini.
Thanks for any help.
Luís

    luis The console says: "1 mode switch detected on the audio thread."

    this is not a big issue by itself.

    luis The new file will not compile.

    What do you mean? Can you paste the source of the file and the error you are getting?

    Thanks for your reply.
    I create a new file in my own Project forlder, paste the same csound example that already worked before and then it doesn't work in the new file.

    Here's the console:

    Building project ...
    Build finished
    Running project ...
    0"068.421| WARNING: [main] duplicate call from main program to xenomai_init() ignored
    0"068.718| WARNING: [main] (xeno-config --no-auto-init disables implicit call)
    WARNING: [mError opening plugin directory '/usr/local/lib/csound/plugins-6.0': No such file or directory[m
    [m0dBFS level = 32768.0
    --Csound version 6.14 (float samples) Mar 11 2020
    [commit: 4c7d6882d2327be60bfd183f6ac3b63b6a7327c9]
    libsndfile-1.0.27
    realtime mode enabled
    UnifiedCSD: /root/Bela/projects/2020_FlexibleEvangelist/_main.csd
    STARTING FILE
    Creating options
    Creating orchestra
    closing tag
    Creating score
    realtime mode enabled
    sorting score ...
    ... done
    setting dummy interface
    displays suppressed
    0dBFS level = 1.0
    orch now loaded
    audio buffered in 256 sample-frame blocks
    SECTION 1:
    Initialising spinlock...
    Starting realtime mode queue: 0xb4b21010 thread: 0x2a2cf0

    Actually, when I create a new file, the option csd (for csound) is not available and the following message is on the window:

    Create new file
    Enter the new file name and extension (only files with .cpp, .c or .S extensions will be compiled).

    Maybe I'm missing something really simple...

      luis Building project ...
      Build finished
      Running project ...
      0"068.421| WARNING: [main] duplicate call from main program to xenomai_init() ignored
      0"068.718| WARNING: [main] (xeno-config --no-auto-init disables implicit call)
      WARNING: [mError opening plugin directory '/usr/local/lib/csound/plugins-6.0': No such file or directory[m
      [m0dBFS level = 32768.0
      --Csound version 6.14 (float samples) Mar 11 2020
      [commit: 4c7d6882d2327be60bfd183f6ac3b63b6a7327c9]
      libsndfile-1.0.27
      realtime mode enabled
      UnifiedCSD: /root/Bela/projects/2020_FlexibleEvangelist/_main.csd
      STARTING FILE
      Creating options
      Creating orchestra
      closing tag
      Creating score
      realtime mode enabled
      sorting score ...
      ... done
      setting dummy interface
      displays suppressed
      0dBFS level = 1.0
      orch now loaded
      audio buffered in 256 sample-frame blocks
      SECTION 1:
      Initialising spinlock...
      Starting realtime mode queue: 0xb4b21010 thread: 0x2a2cf0

      This all looks good, no error there. Does that make sound as expected?

      luis Create new file
      Enter the new file name and extension (only files with .cpp, .c or .S extensions will be compiled).

      Yes that message may be a bit misleading. It refers to C++ projects mostly. You can definitely create a .csd file, but remember that it has to be called _main.csd to be executed.

      • luis replied to this.

        giuliomoro That's it, the file must be saved as _main.csd. Now it works! Thanks for your reply.