NEED HELP WITH MY SAMPLE PLAYER !!!

If you require help or assistance with anything then please post here

Moderators: electrogear, exonerate

NEED HELP WITH MY SAMPLE PLAYER !!!

Postby pianovintage on Wed Jun 13, 2012 10:07 am

Hi there !!!

I used synthmaker software for almost 2 yeards and I am regular reader of this forum.
Hopefully, the forum is very active and all those contributions are great and very useful for a beginner like me :)

Basically, I need help or advices about my new project which is an organ emulation based on my own samples (Vox Continental) ...

I have two major issues on my project :

As I use four sample looper modules to play my samples and I have noticed that when I play and hold a chord, my samples (7s lenght) dont seem to end together ... but one by one ... bizarre no ?

Therefore, when I play or try to record a midi sequence via Ableton live, my CPU is rising to 70% despite my PC configuration which is quiet good ...

I assume that I certainly made some mistake on my schematic and I spent may hours to find out what's wrong with my
plugins ... but without result :S Hey guyz can you please help me :)


Here's my OSM SCHEMATIC if it can helps
https://docs.google.com/open?id=0B7r0_G ... lNybWhLZlE

Thank you for your help :)
PS: Hope my English is understandable ... I'm just a French Guy :D
User avatar
pianovintage
essemer
 
Posts: 5
Joined: Tue Jun 29, 2010 4:13 pm
Location: France

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby DigitalWhiteByte on Wed Jun 13, 2012 10:35 am

Hi pianovintage,
some quick answers:

1 . As I use four sample looper modules to play my samples and I have noticed that when I play and hold a chord, my samples (7s lenght) dont seem to end together ... but one by one ... bizarre no ?

Bizzarre? No.
Do you play your sample without having loop and without an envelope generator, then the sample is only executed faster to get the difference in pitch.
the hard work is to sample all voices of the organ one by one. use a wave array, and use as index, the midi key.

2. Therefore, when I play or try to record a midi sequence via Ableton live, my CPU is rising to 70% despite my PC configuration which is quiet good ...

For this we must use a bit of study, genius, and ass, and make some primitive, in a Code Version, optimizing.
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby trogluddite on Wed Jun 13, 2012 12:42 pm

Hello pianovintage, welcome to the forum,

DigitalWhiteByte wrote:envelope generator

This is the key problem with your schematic - a simple ADSR envelope module following the filter should get your samples playing in time.

A little background info about poly signals may help you to understand this...

The 'MIDI to Poly' and envelope generators have a special 'hidden' relationship inside the SynthMaker engine.
The stock envelope generators have special code that tells the poly streams how to behave when voices are started and ended. For example, this allows SM to know when a voice is finished at the end of a long release envelope, so that the sound is not 'killed' until the envelope has completed.
In this case, it also has some control over the counters inside the sample players - particularly, when to reset to the first sample of the file, and when to stop counting.
Without this, changes to the pitch etc. are only correctly recognised each time the sample player resets to the first sample - so the timing problem is caused by each note starting at some random point inside the wave file, and then having to wait until the next reset of the sample loop before the new pitch takes effect - leading to those random time delays.
It also means that SM does not know when to stop playing the sample - hence the extra high CPU due to lots of overlapping voices that are still playing even though you may not be able to hear them (a pitch of zero stops the counter, but the code for the counter is still running, but 'frozen' in position).

An envelope with very fast attack and decay will also help to prevent nasty clicks and pops caused by the sample starting and stopping too quickly.

Hope that helps to get your design working.
Happy SM'ing!
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby pianovintage on Thu Jun 14, 2012 6:28 am

Hi DigitalWhiteByte and thanks for your quick reply :D

the hard work is to sample all voices of the organ one by one. use a wave array, and use as index, the midi key.


For sure the best solution is to assign all my individuals samples to the midi key via a wave array, in order to get a sound more realistic + adding and envelop generator ... Hopefully, I have already sampled my entire keyboards with differents presets, just need to do the hard work as you said :D
But, with 49 audio samples for the entire keyboards, my plugin should be quiet heavy no ?

That's why, I try initialy this solution, using only 4 samples (like an osc) to generate my sound and thought that with "following pitch" option it should be good ...

Well, I try to change all my settings and keep you in touch ... Many thanks !!!
User avatar
pianovintage
essemer
 
Posts: 5
Joined: Tue Jun 29, 2010 4:13 pm
Location: France

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby pianovintage on Thu Jun 14, 2012 6:51 am

Hi trogluddite !!! Many thanks for your help and explanation!!!!

Indeed, I understand that I need to add and envelop generator in relation with midi to poly module ...

In this case, it also has some control over the counters inside the sample players - particularly, when to reset to the first sample of the file, and when to stop counting.


You mean, I have to change settings in this part of my schematics : "Counter / loop control"
In order to define a starting and ending point for my samples

Image

Unfortunately, I don't know exactly what to change and precisely where ... I'm lost in schematics :)
Any of your advices are and will be welcome !!!!
I try my best to find a solution and keep you in touch :D
Thankssssssssssssssssssssssss
User avatar
pianovintage
essemer
 
Posts: 5
Joined: Tue Jun 29, 2010 4:13 pm
Location: France

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby trogluddite on Thu Jun 14, 2012 5:26 pm

pianovintage wrote:You mean, I have to change settings in this part of my schematics : "Counter / loop control"

As long as your files are already trimmed OK for proper looping (they sound very smooth to me!), that shouldn't be necessary. The loop start and end points should only need changing if, for example, the looped part was 'inside' the middle of the sample - like if your samples had a 'percussion' type click at the start of the note that didn't need repeating as part of the loop.
It's just an odd behaviour of poly signals that they sometimes need the 'hidden' envelope messages so that the input values (pitch etc.) get updated at the right time. You may see this referred to as 'stage(0)' in some posts - many poly components have a 'stage(0)', and it is simply a short piece of code that only gets used at the start of a new note to make sure that everything is initialised properly (it also happens, for example, when you first load a plugin, or when you change presets, that kind of thing).
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby pianovintage on Wed Jun 20, 2012 8:39 am

Hi Trogluditte ;)
Thanks for you reply !!!!
I try to update my osm following your advices and keep you in touch
User avatar
pianovintage
essemer
 
Posts: 5
Joined: Tue Jun 29, 2010 4:13 pm
Location: France

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby pianovintage on Thu Jun 21, 2012 10:24 am

Hi all !!!

Following all your advices, i have made some change in my schematics
https://docs.google.com/open?id=0B7r0_G ... 1gtRXhmdHM

I have changed my initial sample player and replace it with something more simple, add an envelopp ...
I have also cleaned my samples :D in order to get a better sound ...

The result seems good, no click or high CPU, my plugin is now playable ...
Many Thanks for your help ...I'm still a beginner but I'd try to improve my abilities for the next plugin :love:

Do not hesitate to give me a feedback :D

+++
User avatar
pianovintage
essemer
 
Posts: 5
Joined: Tue Jun 29, 2010 4:13 pm
Location: France

Re: NEED HELP WITH MY SAMPLE PLAYER !!!

Postby trogluddite on Thu Jun 21, 2012 10:49 am

You're welcome, glad to hear you're player is now working. :D
And thanks for your feedback, it is always good to know when the advice is useful (or not).
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 2 guests