SynthMaker

A sh*tload of code questions

Archive · 2006 4 old posts

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

jobro ·

1: I've been using this formula in SE and sometimes in SM:

float x; x = (sin(x)/y));

That code generates a squelchy distortion effect. Now I know that divide is a hassle to work with, so I wouldn't mind if I could use Multiply instead. Can this be done?

2: I am using Software Passport to protect my software. Now my question is this. It uses inline assembler instructions to process the data. Can I use these instructions in SM's assembler routine in any way? If not, would it be too much to ask for an inline assembler code module?

3: Can one make a check on startup if a necesery file exist on the system? If not then refuse to execute the program / vst. Can this be done?

4: Is it possible to code SM components in Delphi?

5. Can you export a Mac version of a plugin?

oddson ·

1 - if 'y' is a variable in the code then no. If it's constant you can multiply by it's multiplicitve inverse. If it's mostly constant (only varies on longer time intervals) you can recalculate the inverse using the hop control structure to avoid calculating the same thing over and over at sample rate.

2 - no idea but is suspect not

3 - if its path can be predicted reliably you might be able to use the 'text load' primitive and check the contents from that

4 - No. There is no SDK for SM and none planned for near future so no external components for now.

5 - Not at present.

angstrom ·

oddson wrote: 1 - if 'y' is a variable in the code then no. If it's constant you can multiply by it's multiplicitve inverse. If it's mostly constant (only varies on longer time intervals) you can recalculate the inverse using the hop control structure to avoid calculating the same thing over and over at sample rate.

rather than hop I would do it on change in the green section then feed that reciprocal value into code. No need to keep calculating in audio realm. As its a distortion here that value would most likely be the 'drive' knob.

BTW, I'm sure you know but ... reciprocals are created as 1/value=reciprocal . Then use the reciprocal in your multiplication in place of the division

jobro ·

Ok could you give me an example of this reciprocals then? Nothing I've been working with.

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.