Cabbage Logo
Back to Cabbage Site

Compendium of problems

I’m currently coming back to Cabbage after a bit, since I got stuck on a bunch of different little problems previously. I’m hoping to detail what these problems are so that someone might know the answer.

Actual technical problems:

  1. cabbageaudio.com 's security certificate is currently expired. I frequently use the docs so that would be nice to fix.

  2. When I’ve loaded a plugin into FL Studio, fiddled around with the controls of the loaded plugin, closed the plugin (by pressing the small x in the top right corner of the plugin border), and reopened it, it seems like Cabbage somehow reruns some parts of the plugin but saves some other parts. The plugin I’m using is one I made; it’s a synth that, when you press a button, generates some morse code based on some text the user has typed into a text box.

  3. It’s kind of annoying to have to explain to the user that they need to press Enter after typing in some text in order to load it. Right now, when they press the “generate signal” button, I check if the text box is empty. If it is, I make some text appear and then slowly fade out saying “Press Enter first.”

  4. I’ve been also trying to make a Synth (not effect) plugin that takes in some input, asks itself if it’s receiving midi, and then outputs the input if it is currently receiving some midi. The code I currently have (in addition to all the basic stuff) that really should work is:

<CsOptions>
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5
</CsOptions>

and then later

instr 1

a1 inch 1
a2 inch 2
outs a1, a2

endin
  1. (cont.) In FL Studio, I load up a Patcher (as an Instrument type) and add some basic synth (3x Osc rn, it really shouldn’t matter for this). I then connect the Midi from FL Studio to my plugin & the basic synth and then connect the audio from the basic synth to my plugin. Finally I connect the audio output from my plugin to FL Studio. When I send midi from FL Studio to both plugins, no audio gets output back.
    When I previously did some debugging, I believe I found that both a1 and a2 (the in signals) were always 0, even though the instrument was running. I’m wondering if somehow FL Studio is seeing that my plugin is a Synth and not an Effect, and is getting rid of that signal to be more efficient, because Synths don’t usually have effects.

QOLish type stuff about Cabbage:

  1. I’m curious whether or not there’s a way to both make the scroll speed in Cabbage faster, and also prevent Cabbage from scrolling slightly up once I stop scrolling. I frequently use my laptop to code, and use my trackpad because of that. If I use two fingers at the same time to scroll, and then tap two fingers to stop the scroll, Cabbage seems to expect me to be scrolling and scrolls a couple lines up. (Tapping one to stop finger fixes this problem, so it isn’t a big deal if it’s not possible to solve. The scroll speed thing is more annoying.)

  2. Another thing that is small but still annoys me is that cmd + scroll zooms in or out. I have an extremely bad habit of pressing modifier keys at random as a kind of fidget (especially when I’m waiting for something, like when I’m waiting for the screen to scroll slowly down my code :sob:). Is there a setting for disabling this somewhere?

  3. I can’t figure out how to scroll horizontally on a trackpad.

  4. A kind of bug thing is that when creating a label, I can’t use \ to escape a " in the text box. It still treats it as a normal ". Right now I’m using ” instead since it looks the exact same with the display font. Using \ to escape " does work when in the Instruments block, however.

Please let me know if you know the answer to any of these problems, have any ideas on how to debug them better, or want me to clarify anything :slight_smile:

I’ll get this sorted :+1:

I’ll need more details, can you share the instrument, or better yet, recreate teh issue with any of the instruments that come with Cabbage?

Many DAWs will rob the keypress from the plugin, so you need to be careful offering that kind of functionalty. With regards to your issue, I’m afraid I won’t be updating that widget considering Cabbage 3 is under development.

Synths in Cabbage 2 don’t take audio inputs. Might be best to export as an audio effect and then route MIDI to it?

I’m not sure if you are aware but I’m currently working on Cabage 3, which addresses most of the issues you raise in this section. The editor was/is one of the biggest problems for me in Cabbage 2. Cabbage 3 uses VS-Code so we no longer have to deal with the may quirks of the existing editor.

The big thing is I’m no longer working on Cabbage 2, apart from bug fixes if/when they pop up. I’m not adding any new features though as it would just take what free time I have away from Cabbage 3 development.

Thanks for answering so fast! Sorry about all the QOL stuff, I hadn’t really looked at Cabbage 3 since I was so focused on learning Csound and the basics of Cabbage. I should’ve realized that since Cabbage 3 would be a VS Code plugin it wouldn’t have any of the problems that I’d been having with the interface :sob:

I tried this, however in patcher, effects cannot take in MIDI note on & note off inputs. (MIDI CC inputs and MIDI channel aftertouches are allowed though. MIDI CCs seem to be classified as parameters instead of events, which means I can’t directly get the particular MIDI CC from FL Studio’s MIDI input to patcher. Sadly effects also can only output MIDI, and not particular MIDI CCs.)


^ is my code (there’s a lot of strcatk b/c I didn’t know about sprintfk yet)
My best guess is that this problem has something to do with the fact I have a text box, and I use it in a way that the examples do not (or at least through my search of them I didn’t find any with the same problem).
I’ll see if I can replicate the problem with some more simple code.

Oh I never tried the patcher before, looks interesting. It’s a pity that effects can’t take MIDI inputs. Do regular effect tracks in FL Stdio accept MIDI input?