SynthMaker

Counting Accumulating problem/WaveLab/Skip Samples

Archive · 2006 7 old posts

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

rullyastronout ·

heloo. great sofware...i like it, make me boost my job, nomore c++ write. i have questions. 1. counting 0.1 float accumulated as a loop, never return 1.0 is always over than 1.0, why, but it does work with other number e.g 0.2 0.5 which meet 1.0. ps. i use code and data.

2. i was compiling the effect that you made into vst, i use wavelab , but once i bounce into new wave file, it doesn't give the value that it suppose to be, except default value and alwasy the same, does this due to trial or something else.

3. how can i be able to skip samples.

4. i want to buy the cool sm software.

thank you. rully....homelessboy

[/code]

sambean ·

Hey Rully, welcome to the forum 😀

1. Must be something to do with rounding, I was never aware of this, someone with more experience in the field should be able to advise..

streamout trig; float acc;

acc = acc + 0.1;

trig = (acc==1.0)&1.0;

If this is connected to an analyser + graph, no trigger is generated, if you change the acc to 0.2 a trigger is generated.. strange..

2. I imagine this is the copy protection, whicg adds noise bursts to compiled vsts, this can be solved by 4. (unless it's a wavelab issue??)

3. In code

hop(n){ ... }

where n = 2^k, ie 2, 4, 8, 16...

This will hop every n samples..

4. [old link]

Have fun!!

Sam

Tom7777 ·

Welcome to the forum rullyastronout 🙂

stefan ·

Floating point numbers usually can't represent exact values, so you should always avoid doing exact comparisons as well. You need a small "epsilon". Something like:

streamout trig; float acc; float epsilon = 0.001; // or whatever acc = acc + 0.1;

trig = (acc>=(1.0 - epsilon) & (acc<=(1.0 + epsilon) & 1.0;

Ought to do the trick.

stefan ·

sambean wrote: 3. In code

hop(n){ ... }

where n = 2^k, ie 2, 4, 8, 16...

This will hop every n samples..

I think I'd say that it'd hopy every sample BUT every n sample 🙂 That is, it will run for every n sample and skip the rest.

sambean ·

Dang! Thats why it never worked... 😉

rullyastronout ·

hi every one, thank yu for the welkome drink.

i was trying hop, then it read the first sample and then the rest sample is the same as previus one.

well, the actual question is, how can i be able to jump between samples then jump back to the first sample before sending output, regarding to vst has a block of sample before it start. 😉 i use to to this in c++

by the way, where did you all get the list of syntax of the code language ?? i didnt find it in help.

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.