SynthMaker

Wrong Value in Array

Archive · 2010 7 old posts

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

Tzarls ·

Using 1.1.6b4, but not sure if that happens in previous versions too.

Check the attached osm. I wanted to make some waveforms using SM´s oscillators, so I made this schematic. Just select an OSC, press a key (twice) on your controller and there should be a graph of 1 cicle of that osc. Everything works fine, except that the last value of the "captured" array is always different and always wrong. The other values are ok, always the same, its just the last one that fails.

Any ideas?

Tzarls ·

Also happens with 1.1.3b5.

malc ·

Looks like a bug to me. I suspect it's using the upper bound (2047) and not the array size (2048) so the last value in the array is never initialised.

While this is sorted you could try using the Signal Analyser (I reckon this is probably a better way to do this anyway). Hook up the osc to the analyser set up the frequency and a number of samples run - hey presto!

Tzarls ·

I don´t know if you worked on this bug yet, but using 1.1.6b5 the bug is gone.

malc ·

Yeah, that was corrected in the latest 1.1.6 betas.

infuzion ·

malc wrote: Yeah, that was corrected in the latest 1.1.6 betas.

What was exactly the cause please? I wonder if other float array systems had this issue, like the Multi Stage Envelope? I was using the grand father of that, & found the last item in the array was dropped there also...

malc ·

It was in the Poly to Graph. This grabs the first 2048 samples of the first poly signal. The audio code for this was calculating the last (2048th) sample constantly and was returning a different value depending on what the poly stream was doing at the time you asked for the array.

So it wasn't that the last sample was being dropped, it was being calculated all the time but using the wrong sample on every occasion.

I doubt the Poly to Graph is used in many synths or effects as it's intended use is as an analytical tool.

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.