Lore icon indicating copy to clipboard operation
Lore copied to clipboard

Compiler error on Paradigm.csd

Open wyan opened this issue 2 years ago • 11 comments

When trying to compile or run Paradigm from either CSoundQt or the csound CLI I get the following error:

error: syntax error, unexpected T_IDENT, expecting T_OPCODE or T_FUNCTION or ',' or '='  (token "cabbageGet") from file Paradigm.csd (1)
 line 58:
>>>iXYPadBounds[] cabbageGet <<<
Parsing failed due to invalid input!

and the compilation fails.

I'm running on macOS 12 beta 6 on a Macbook Air M1 (2020).

wyan avatar Sep 16 '21 10:09 wyan

I can confirm the same issue here.

Running CsoundQt 0.10.0 on arch linux.

adeleglise avatar Sep 16 '21 11:09 adeleglise

Indeed, those Cabbage opcodes can only be compiled in Cabbage as they are part of the UI. Seeing if @rorywalsh has a solution.

micah-frank-studio avatar Sep 16 '21 14:09 micah-frank-studio

Hi guys, it would be a bit of work to get this going in CsoundQT, but possible. You would need to replace the UI with widgets provided by CsoundQT. and then replace all cabbageSet/Get stuff with calls to chnget/chnset. THere aren't that many widgets in this instrument so it would definitely be possible, but a bit of work.

To create a vanilla Csound version you can remove all the UI stuff and replace the channels with static values. This could be swapped out for MIDI controls once you have the basic build going. For example, chnget:k("Pulses") would be replaced with a variable such as kPulses. Again, a bit of work, be doable.

rorywalsh avatar Sep 16 '21 15:09 rorywalsh

If there's enough interest perhaps I should publish versions that don't depend on Cabbage - that just randomly control the params that are affected by the GUI.

In the the meantime I'll put a note that it should only be compiled in Cabbage.

micah-frank-studio avatar Sep 16 '21 16:09 micah-frank-studio

As I have little to no knowledge of Csound it would indeed be great if you provide stripped down version of this @micah-frank-studio However, thanks for providing those informations @rorywalsh !

adeleglise avatar Sep 17 '21 09:09 adeleglise

@adeleglise If you have little knowledge of Csound, why not simply run this code in Cabbage. That way you won't have to change a thing.

rorywalsh avatar Sep 17 '21 10:09 rorywalsh

I can confirm that it loads fine with Cabbage.

adeleglise avatar Sep 17 '21 13:09 adeleglise

Man, it's a whole new world! @rorywalsh @micah-frank-studio you guys should include a PSA for people to not forget about time while using this.

adeleglise avatar Sep 17 '21 14:09 adeleglise

You're through the looking glass now 🤣

rorywalsh avatar Sep 17 '21 14:09 rorywalsh

Ah thanks @rorywalsh, I'll see if I manage to strip the Cabbage instructions and get it running.

The only thing preventing me from running it in Cabbage is Cabbage crashing on M1 macs... hopefully that'll get solved 😅

wyan avatar Sep 17 '21 17:09 wyan

I've been running the latest beta version here without any problem on my M1 Mac Mini? You can grab installers here:

https://dev.azure.com/rorywalsh/cabbage/_build/results?buildId=1856&view=artifacts&pathAsName=false&type=publishedArtifacts

Might be best to do a separate install of the latest Csound, as I'm not sure the version that ships with Cabbage is up to date..

On Fri, 17 Sept 2021 at 18:23, Alice Wyan @.***> wrote:

The only thing preventing me from running it in Cabbage is Cabbage crashing on M1 macs... hopefully that'll get solved 😅

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/micah-frank-studio/Lore/issues/1#issuecomment-921959412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUQWGI4VF5UVT5CTGW7SQTUCN2PZANCNFSM5EEMEJ5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rorywalsh avatar Sep 17 '21 18:09 rorywalsh