SynthMaker

Draw overlaid animation only?

Archive · 2012 14 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

nix ·

hey, I have built a basic audio editor. It has a cursor which is a line. Myco helped me with a trick to draw just the line- the area it is on and last area it passed, triggered by tick25. This works good. I have a problem though. Behind the line/cursor there is the waveform image. As I zoom on the image to edit in more detail, CPU used by the line goes up. It is redrawing a more complex waveform. Is there any way I can get SM to draw just the line- and not the waveform behind it? One workaround is to have the cursor in a blank patch of space... but the visual cue isn't as effective- I would like an overlaid line. hmm- can I render the 'drawgraph' out, so it is not an intricate vector or something? I can pm the .osm, it's not open source. All success 8D

attic ·

can I render the 'drawgraph' out, so it is not an intricate vector or something?

I was just messing with the same the problem, in my tests the graphs do not render in the output vst. The graph I'm working with doesn't zoom but its still to cpu heavy. I don't know if its just my setup but in Reaper on Win7 64 I have not been able to render a drawgraph to png. It renders fine in the SM environment. I also considered placing the line in an empty area but decided against it ... visually it just wasn't as helpful a cue for the end user. I'm really underwhelmed by SM's graphic performance.

infuzion ·

There are other ways to optimize graphics-CPU speed. Such as slowing down the refresh rate; 10-20FPS is just fine for most cases. Seems my heartbeat system gives the most stable trigger flow for this range.

attic ·

Agreed .. your heartbeat system works well, yet even with that in place it takes very little to max out the cpu with GUI stuff. 🙁

nix ·

I'm happy to solve my issue. Thanks much stw! It was an added view cache on my waveform, that entirely minimized the cursor draw. Now I just have to figure out how to make my zoom always max at 1 sample, whatever length sample is in there. I need to try and set up the cache myself, to figure out what is entirely, but I think it's that it renders to .bmp.

Thanks fer the redraws minimizing tip, hmm, the problem with that is that on zoomed samples, the 25 is jumpy already. I will look at the heartbeat system again, essentially triggers are more accurate iterations? not flurrying?

U r welcome to my schematic infuzion.

attic ·

OK ...but if the cache renders to bitmap does it actually work when you go to Vst? I have had issues with having a png render in Reaper, can you confirm that it will render the bitmap in a Vst?

nix ·

Will render & run at 0% when zoomed on form here when exported as VSTi in Orion 8.5 beta. This is down from maxing a core. Let me know if u want the cache module I have, I think it's OK to share. ooh! I have had problems with graphics too, generally I think it's pretty run of the mill to use a lot of CPU when moving controls. This was too much though, how much the cursor was using. I want to animate the waveform for another project, a soft DJing program. hmm, I'm not sure this will work there. You can test my project if u like, can pm it to you.

attic ·

I have several projects eating cycle's like crazy even with the Heartbeat system in place. On one of the projects the reason is obvious, 10 autoknobs going so no surprise there. On the one that's similar to yours it renders a drawgraph at wav load but in Vst form it just show's a blank region where the wav should have rendered. It does render fine in Synthmaker and did cut the CPU usage down, so it would be nice to know why it won't render in Reaper.

nix ·

hmm, I have sent u the project. If, after chopping out stw's module, it still won't display, u can send me ur .osm if u like. I hope this is your fix too. I can try in Reaper.

stw ·

Just to clarify (because i don't want take false credits) the used view cache module is part of "mwdlees" missing link toolbox. Though the method was introduced before and was already part of some older modules he organized and added some valuable stuff in that collection of useful goodies.

@attic: Maybe you have some purgeable modules inside your VST? E.g. a purgeable color picker prim could lead to these missing graphics.

nix ·

that's cool it was ok to share, should have cleared it though prolly. Thanks so much mwdlee! here is the component in question->

The flow doesn't seem that intuitive, but I see now, it draws the view onto the blank .bmp that's been created. Such a neat device in my instance. All success

trogluddite ·

I don't think there is a fundamental problem with bitmap caches and Reaper - Reaper is my regular DAW, and I use the view caching method with a few of my projects without any display problems.

attic ·

It looks like its just me with the issue. That's good! Means there is a fix. 😉 Thanks Nix & Trog.

trogluddite ·

stw wrote: E.g. a purgeable color picker prim could lead to these missing graphics

Something similar that I just remembered - the 'Colour Switch' primitive (used inside some other modules posted on the forum) does not remember its value when a schematic is saved or exported. More details HERE.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.