micah-frank-studio / Lore

Puremagnetik Lore
212 stars 25 forks source link

The effects do not produce any output until explicitly initialized. #8

Open yaremenko8 opened 2 years ago

yaremenko8 commented 2 years ago

LORE 1.0.22 The effect chain produces no sound output until you actually set each individual effect manually. This issue occurs in the following four scenarios:

  1. LORE is launched (standalone/VST synth/VST effect)
  2. LORE is disabled and re-enabled in DAW (VST synth/VST effect)
  3. Options --> Reset to default state
  4. Options --> Load a saved state... (+ proceeding to actually select a file)
micah-frank-studio commented 2 years ago

Hi ā€” sorry I missed this. I am only now seeing the few issues posted here. is this still an issue? Are you on Windows or OSX?

TartanLlama commented 2 years ago

I have this issue, or at least a very similar one. If I have any effects set, then I export the audio in Ableton, then the effects produce no output, and to get them to work again I need to nudge the settings of all of them. I'm on Windows.

TartanLlama commented 2 years ago

I don't really understand how CSound and Cabbage work, but it seems like the effects only get loaded in when the user changes selection on one of the slots, but the current selections should also be loaded on initialization?

Edit: scratch that, loadeffects gets called fine when exporting, but it gets an empty effect name

TartanLlama commented 2 years ago

I did a reaaaaaally deep dive of this today and discovered it's actually a bug in Cabbage.

https://github.com/rorywalsh/cabbage/blob/develop/Source/Audio/Plugins/CsoundPluginProcessor.cpp#L483

On the line above, filetype should be fileType. This bug prevents the data from combo boxes being correctly restored to the CSound channels when Ableton does an export.

I'm going to send Cabbage a PR.

TartanLlama commented 2 years ago

I sent them a PR: https://github.com/rorywalsh/cabbage/pull/137

micah-frank-studio commented 2 years ago

Wow - thanks for doing the deep digging here. Iā€™m going to test it out myself next week, will follow up with Rory too.

On Fri, Nov 25, 2022 at 4:03 PM Sy Brand @.***> wrote:

I sent them a PR: rorywalsh/cabbage#137 https://github.com/rorywalsh/cabbage/pull/137

ā€” Reply to this email directly, view it on GitHub https://github.com/micah-frank-studio/Lore/issues/8#issuecomment-1327884737, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARBWJI4CLPNGWDKNZ3VARTWKESTTANCNFSM573UXVCA . You are receiving this because you commented.Message ID: @.***>

TartanLlama commented 2 years ago

There seem to be a few issues with the current development version of Cabbage for Lore. There's the one in my PR, but to make the ComboBox work properly, there's also a few lines which need uncommented, and a recent commit removes setting the current working directory, which breaks the ComboBox population. This branch has all the necessary changes for it to work: https://github.com/TartanLlama/cabbage/tree/lore

rorywalsh commented 2 years ago

Thanks @TartanLlama As Micah knows only too well, comboboxes have been a constant pain for us. I'll go over that PR and we can take it up from there. :+1:

rorywalsh commented 2 years ago

@TartanLlama would you mind making a PR for the branch you're using to sort the combobox issues in Lore? I'm swamped with other work at the moment and haven't had a chance to look into this, so a gentle nudge by the way of a PR would be most appreciated :+1:

TartanLlama commented 2 years ago

@rorywalsh can do! One issue is that a recent commit which removed CWD setting breaks part of the functionality, so my changes are based on an earlier commit: https://github.com/rorywalsh/cabbage/commit/9c449f8d63bcb69783bf08d51a3ce58e56e83848

From this issue (https://github.com/rorywalsh/cabbage/issues/136) I understand that it creates issues with some hosts. So perhaps the best option is for me to:

rorywalsh commented 2 years ago

That sounds good to me. The CWD issue was a long standing hack that is best avoided. I wonder could that change have been the thing that broke Lore?

On Wed 30 Nov 2022, 8:13 a.m. Sy Brand, @.***> wrote:

@rorywalsh https://github.com/rorywalsh can do! One issue is that a recent commit which removed CWD setting breaks part of the functionality, so my changes are based on an earlier commit: @.*** https://github.com/rorywalsh/cabbage/commit/9c449f8d63bcb69783bf08d51a3ce58e56e83848

From this issue (rorywalsh/cabbage#136 https://github.com/rorywalsh/cabbage/issues/136) I understand that it creates issues with some hosts. So perhaps the best option is for me to:

  • Rebase my changes onto HEAD
  • Modify the Combo Box populate code to:
    • Still avoid setting CWD
    • If the path used is relative, assume it is relative to the current open file

ā€” Reply to this email directly, view it on GitHub https://github.com/micah-frank-studio/Lore/issues/8#issuecomment-1331784709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUQWGNF3FUXB6INWRNHUHTWK4EDZANCNFSM573UXVCA . You are receiving this because you were mentioned.Message ID: @.***>

TartanLlama commented 2 years ago

Okay, I created PRs in both repos to address the combo box issues: https://github.com/rorywalsh/cabbage/pull/138/ https://github.com/micah-frank-studio/Lore/pull/13

rorywalsh commented 2 years ago

Merged :+1: Thanks again for this :) The CI build should be ready shortly for testing..

rorywalsh commented 2 years ago

Actually, I just looked over this, and the following change seems like it might break something: https://github.com/rorywalsh/cabbage/pull/138/files#diff-93ccddd7cd131680e1799beded76ee70034eab9d8281ad07834dea95327b34ffL505

In the original code the full file, path and extension is returned, but now only the filename is returned? On the other hand, the extension can be got on the Csound side. I'm just concerned it will break existing instruments..

TartanLlama commented 2 years ago

Previously I think the exact contents of that channel were a bit inconsistent, e.g. this line sends just the filename from the Combo Box https://github.com/rorywalsh/cabbage/blob/develop/Source/Widgets/CabbageComboBox.cpp#L97

I do think that one line I uncommented (this one https://github.com/rorywalsh/cabbage/blob/develop/Source/Widgets/CabbageComboBox.cpp#L401) needs changed to match though.

rorywalsh commented 2 years ago

@TartanLlama can you confirm that these latest changes let you work with the Lore effects? I'm still not sure it resolves the problems reported here.

TartanLlama commented 2 years ago

@rorywalsh it does, but requires these changes to Lore to fix the relative path compileorc thing

rorywalsh commented 2 years ago

I just looked through the changes now after confirming it works. Great stuff. On behalf of all the Cabbage and Lore, users thank you for sorting this out šŸ’Ŗ