gogins / csound-android

Almost all of Csound as an Android app, with a built-in code editor and support for HTML5 and JavaScript.
GNU Lesser General Public License v2.1
6 stars 0 forks source link

Restore missing plugin opcode libraries #19

Closed ST-Music closed 1 year ago

ST-Music commented 1 year ago

I get the same error with both opcodes:

https://www.dropbox.com/scl/fi/s1e84t0gguc2v56trr9dn/Screenshot_20230827_220514.jpg?rlkey=h88072vavvy5l5r7yys3waiaf&dl=0

I have tried the manual example: https://csound.com/docs/manual/directory.html

as well as:

-odac ;browse for text files in current directory instr 1 iCnt init 0 SFilenames[] directory "/storage/emulated/0/Music/samples/", ".wav" iNumberOfFiles lenarray SFilenames until iCnt>=iNumberOfFiles do printf_i "Filename = %s \n", 1, SFilenames[iCnt] iCnt = iCnt+1 od endin i1 0 1

and changing the path to: "/storage/emulated/0/Music/samples", ".wav"

(no backslash following samples)

I tested with the previous version & either path will work.

Side note: I have no difficulty loading single samples from directories now so that's working great.

gogins commented 1 year ago

I have reproduced the directory bug. It looks like the opcode does not exist in the Android build. I am investigating.

ST-Music commented 1 year ago

Thanks for the reply Michael.

On Tue, Aug 29, 2023, 9:31 p.m. Michael Gogins @.***> wrote:

I have reproduced the directory bug. It looks like the opcode does not exist in the Android build. I am investigating.

— Reply to this email directly, view it on GitHub https://github.com/gogins/csound-android/issues/19#issuecomment-1698358948, or unsubscribe https://github.com/notifications/unsubscribe-auth/A23TOBRMGXUCDZRKUIUTWBDXX2JVPANCNFSM6AAAAAA4AX44QA . You are receiving this because you authored the thread.Message ID: @.***>

gogins commented 1 year ago

Indeed, the directory opcode is in the same plugin library as the ftsamplebank opcode. Rory Walsh wrote this. The android build system does not build or package this library. It should be easy to fix. There are a few other plugins like this that might also be missing and could be put back.

ST-Music commented 1 year ago

Odd as it was included in the previous build but good to hear you can hopefully resolve this. Then I can get back to putting it thru it's paces. Thanks again.

On Tue, Aug 29, 2023, 9:48 p.m. Michael Gogins @.***> wrote:

Indeed, the directory opcode is in the same plugin library as the ftsamplebank opcode. Rory Walsh wrote this. The android build system does not build or package this library. It should be easy to fix. There are a few other plugins like this that might well be missing.

— Reply to this email directly, view it on GitHub https://github.com/gogins/csound-android/issues/19#issuecomment-1698370471, or unsubscribe https://github.com/notifications/unsubscribe-auth/A23TOBQ2MARXM675K7JPNH3XX2LVNANCNFSM6AAAAAA4AX44QA . You are receiving this because you authored the thread.Message ID: @.***>

gogins commented 1 year ago

This situation was caused a few years ago when the core Csound developers removed a number of plugin opcodes from the Csound GitHub repository, and changed the way that the remaining opcodes are built. The current situation is clearly explained in Opcodes/CMakeLists.txt.

By the way, although this change involved removing a number of my own contributions from the Csound repository, I nevertheless agree that it was a good idea. Csound was becoming difficult to maintain due to increasing external dependencies, lack of manpower, dislike of C++, and lack of C++ expertise. I think it is very important to keep maintaining and improving Csound, and there aren't enough people involved.

The Csound for Android build system was already building some of these plugins. The following is a list of all plugin opcode libraries built by the standard Csound build system, with notes as to their current status for Android.

gogins commented 1 year ago

The directory opcode now works.

ST-Music commented 1 year ago

That's great, let me know when to test the next beta (with a link).

Thanks!

On Wed, Aug 30, 2023, 5:25 p.m. Michael Gogins @.***> wrote:

Closed #19 https://github.com/gogins/csound-android/issues/19 as completed.

— Reply to this email directly, view it on GitHub https://github.com/gogins/csound-android/issues/19#event-10237529324, or unsubscribe https://github.com/notifications/unsubscribe-auth/A23TOBQVGLIUEL5PDJNN6NDXX6VUXANCNFSM6AAAAAA4AX44QA . You are receiving this because you authored the thread.Message ID: @.***>

gogins commented 1 year ago

https://github.com/gogins/csound-android/releases/tag/v36

On Wed, Aug 30, 2023, 17:29 stmusic @.***> wrote:

That's great, let me know when to test the next beta (with a link).

Thanks!

On Wed, Aug 30, 2023, 5:25 p.m. Michael Gogins @.***> wrote:

Closed #19 https://github.com/gogins/csound-android/issues/19 as completed.

— Reply to this email directly, view it on GitHub https://github.com/gogins/csound-android/issues/19#event-10237529324, or unsubscribe < https://github.com/notifications/unsubscribe-auth/A23TOBQVGLIUEL5PDJNN6NDXX6VUXANCNFSM6AAAAAA4AX44QA>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/gogins/csound-android/issues/19#issuecomment-1699867656, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQIGJLSLNADYXPCTJQI6S3XX6WB7ANCNFSM6AAAAAA4AX44QA . You are receiving this because you modified the open/close state.Message ID: @.***>