So it seems if it’s located on a network or a drive other than the main drive, then it won’t show up unless you close and open it again. That’s how you should be able to reproduce it.
No waveform display
That was also the difference between the two machines. The wave files on my laptop are on the C drive, but the desktop my waves are on the E drive. When I moved it to the main drive it worked. It may also have something to do with the sample rate of the files, so I’ll play with it a little more.
The other person mentioned their files were on another drive, so that gave me the idea to check.
I’m guessing a newer build fixes the problem, because it reads fine from a network drive with a recent build.
Ok, tested and confirmed still occurring with 2.0.03 Dec.20
Unrelated, since I’ve been gone for a while… is there anything new and fun I should be looking to play with in the new builds?
The build I pulled was less than a week ago.
Edit: Sorry about that, I pulled it from the list of recent Beta links.
Yes, I just grabbed the latest green build.
Not that much in the way of new features, but @mauro contributed some very nice new look and feel updates. Widgets now have a flat look, which looks far more modern than the old style. And the IDE can be completely themed now. I’d say the IDE is in a much better place now than it was the last time you were around, although we’re still stuck using the same JUCE code editor, which isn’t great.
Just realized I’m still seeing this behavior with gentable. Fairly minimal example attached.
gentable.csd (1.2 KB)
In Cabbage the waveform never shows up after I open a file. When exported as a plug-in, the waveform appears when I close and reopen the plug-in window.
This is on macOS 10.12.16.
I see the issue here. Actually, there are a few things. Leave it with me and I will try to get a fix to you soon.
[edit] the issue here is that displaying sound files should be done with the soundfiler object. gentable needs to know the GEN routine of the table at init time. And the tables should for the most part stay the same size. If you pass it another GEN routine it works fine. Also, you need to pass the gentable a table number when you declare it.
Got it. Here’s my particular problem:
My .csd uses the contents of a table for synthesis/processing. The user can either load a file into a table or record straight into one. (Only one table will ever be used at a time, but the user can switch back and forth). The file table is created with GEN01, the record table with GEN07 (but doesn’t really matter, I just needed a way to create an empty table to record into).
So what I need is a widget that can show either of these two tables. My understanding is that soundfiler can only show GEN01 tables.
For now I’ve changed the above example to use soundfiler instead of gentable. With this change I can’t get the waveform to appear at all. What am I doing wrong? I’ve compared with some of the examples that ship with Cabbage, and the only difference I’m seeing is that I’m using tablenumber
instead of file
. Either should work according to the manual.
Here’s the new example: soundfiler.csd (1.2 KB)
file()
needs to be called for soundfiler. tablenumber() is an error in the docs. Thanks for pointing that out. For this to work, just do:
Smsg sprintf "file(%s)", chnget:S("filename")
instead of the tablenumber()
stuff.
gentable
can work with GEN01 tables, but they need to be known at init time. A work around would be to load a dummy soundfile that you include with your instrument. For example, if I do this in my header section it works fine:
giSampleTableL ftgen 1, 0, 0, 1, "silence.wav", 0, 0, 1
giSampleTableR ftgen 2, 0, 0, 1, "silence.wav", 0, 0, 2
Subsequent attempts to load files works fine after that. Note the reason there is a soundfiler
object is for fast drawing of long waveforms. If you wish to display files that are more than say 10 seconds long, the soundfiler
will be much faster than the gentable
That all makes sense, thanks. But why is soundfiler faster if you don’t mind me asking? I would think that because tables are already in RAM they’re faster to read and draw than reading from a file.
They use a JUCE component to display their waveforms. Having being written by a team of professionals, it’s pretty fast. My gentable
waveforms are drawn from scratch. It tries to stick to the good principles used in their AudioThumbnail class, but it’s never going to be as fast. Plus it also add user editable breakpoint envelopes. Thankfully not that many people use the envelope editing feature. If they did, my github issues list would be in triple figures