SynthMaker

Math help needed ?

Archive · 2005 17 old posts

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

Nu Audio Science ·

http://uk.geocities.com/nas_sound/Tgate.zip

OK i built this from the example LFO It works great if you dont mind setting BPMs manually 🙂 What i actually need is some info on the speed input to this LFO, I want to be able to make it host sinced but have no idea what the speed input is relative to, I need more info to work out the maths. Anybody know ?

The Sharpness works great and the sliders actually make it better than any TG i have used (All of em). Oh for the math these 32 sliders would represent two loops (Bars).

Cheers

Tom7777 ·

Just make it so theres 1 hit/blip ect on the bar (ther first one) record 60 seconds of audio, count the number of blips/hits there is. That should give you a bpm. Hope this helps

stefan ·

Nu Audio Science wrote: http://uk.geocities.com/nas_sound/Tgate.zip

OK i built this from the example LFO It works great if you dont mind setting BPOMs manually 🙂 What i actually need is some info on the speed input to this LFO, I want to be able to make it host sinced but have no idea what the speed input is relative to, I need more info to work out the maths. Anybody know ?

The Sharpness works great and the sliders actually make it better than any TG i have used (All of em). Oh for the math these 32 sliders would represent two loops (Bars).

Cheers

The ones in Nildon sync to Tempo. And are derived from the same LFO's those example LFO's are coming from... 🙂

Basicly, you want the frequency of the ramp oscillator to be a function of the host tempo. The tempo you can extract from the TimeInfo component.

Nu Audio Science ·

Cheers guys I'm still a little lost to be honest but am going to investigate the tips you gave now.

Nu Audio Science ·

This 2e-005 business is confusing, I better go and get some maths books i think 🙂 I'm guessing its the ramp that has the speed connected to it ? How can i find out te ramps duration at a given freq ? For instance what is the ramps duration at 0 or 1 ? Very confused but enjoying it, I will keep you updated on progress 🙂

PS Stef i cant even find a ramp in yours DOH

Tom7777 ·

The method i said basically calculates the BPM correctly, it takes slightly longer but in theory it should give the correct value.

stefan ·

Tom7777 wrote: The method i said basically calculates the BPM correctly, it takes slightly longer but in theory it should give the correct value.

He most likely isn't after calculating BPM but just syncing his LFO's to the current BPM of the host 🙂

stefan ·

Nu Audio Science wrote: This 2e-005 business is confusing, I better go and get some maths books i think 🙂 I'm guessing its the ramp that has the speed connected to it ? How can i find out te ramps duration at a given freq ? For instance what is the ramps duration at 0 or 1 ? Very confused but enjoying it, I will keep you updated on progress 🙂

PS Stef i cant even find a ramp in yours DOH

Oh, yeah, right, I got rid of that and wrote some code instead 🙂 I'll have a look!

Nu Audio Science ·

I dont need the BPM of the host i can take this from host info cant i ? I actualy need to sinc this to the host tempo like Stef said 🙂 I know the freq of the ramp needs to change with the tempo of the host, I just dont know how to achieve the calculation YET 😉

stefan ·

Here's how I did it

polyin speed; polyin bpm; polyin loop; polyin size; polyout index; float freq; float cnt; freq = bpm * speed / 60.0; cnt = cnt + (freq / 44100.0); cnt = cnt - ((cnt > loop) & loop); index = cnt * size - 0.5;

Basicly, I do the ramp myself here. The frequency of the ramp is a function of the speed setting and the current bpm. This way I can use speed to set the LFO to sync to 1/4ths, 1/16ths or whatever I want to.

The only input missing in this code is the sample rate, you can probably add that on your own and divide by that instead of by 44100.

The loop value sets the range of the output. So if you have a lfo with 32 different values in a graph, you can use a loop value up to 32.

All with reservations to errors.... 🙂

Nu Audio Science ·

Cheers Stef I have that code component in front of me at the moment 🙂 What im actually struggling with is the actual speed on your LFOs. I see the floats that make up the differing divisions but how were these numbers arrived at ? This is where i'm a little lost with SM at the moment, Im still used to SEs 1 volt oct and so on.

Nu Audio Science ·

So am i right in thinking if i want permanant 32 controls i can kill the loop polyin and just make it a value of 32 instead ?

Sorry for the Qs.

Nu Audio Science ·

http://uk.geocities.com/nas_sound/Tgate.zip

I tried converting one of Stefs LFOs but i've messed it up completly somewhere ?

BEWARE THIS IS EXTREMELY LOUD IF YOU TRY IT, I MEAN SPEAKER KILLAZ

Nu Audio Science ·

Help someone please 🙁 I'm actually really struggling with this, I thought if i worked on some GUI stuff it would help me get used to SM, This bloody thing is doin my head in though. I've copied Stefs design but still cant get a host sinced gate ?

Shifrin ·

I'm away from my machine now so can't check your .osm. But this is a shot in the dark. Are you trying this as an exported VST? If so, the TimeInfo (or whatever its name is) component has to be one level deep in your schematic iirc, any deeper and it doesn't pass the relevant information - jorge told me about this when I tried for ages to get it to work and failed!!!

Here's the thread [old link]

HTH,

Shif.

unkargherth ·

I also tested it and don't work for me, But i extracted the Code module that it's suposed to calculate the "Ticks" liked to a wave viewer and after divide by 32 it seems to do what it's suposed to do

So the problem could be in the LFO code itself or derived from you havent any mdii input nor DSOut, so is probable that whole mono sections are stopped, though i'm not sure

Nu Audio Science ·

Yeah its never gonna work the way i have done it. I'm gonna throw it away and use the one i made in SE instead, I'll come back to it when i start to understand SM a bit 🙂

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.