Welcome to %s forums

BrainModular Users Forum

Login Register

sampler loop crossfade

I need help on a Patch
Post Reply
soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 29 May 2010, 06:06

Hello usine masters,
I am wondering if it is possible to have a crossfade on the loop points of a sampler. I have tried routing the "restarting" indicator of the sampler into an ADSR but it seems the loop is restarting too fast for the envelope or maybe the block size. I cannot use the zerocrossing feature of the sampler because the loop is tuned and when this is activated it messes up the tuning. I am using the loop function of the sampler as a sort of oscillator with a very short loop which its length is being modulated by some math calculations based on sample length to convert milliseconds to frequency which enables me to "tune" the loop to different pitches based on loop length. which makes a nice "raw" sounding oscillator but unfortunatly there can be some nasty clicks from the loop points. But if I am able to fade in the start and fade out the end of the loop it will sound nice. any suggestions? thanks.

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 29 May 2010, 06:33

maybe not the most elegent solution, but what about using two samplers with the same sample loaded, the same length loop and linked master controls The gain for each sampler could be triggered perhaps with use of some logic and math module to have one sampler fade out at say 90-100% and the other sampler to fade in at say sample position, at say 0-10%. A smoother might come in handy here. If I were sitting with Usine in front of me I would try to make a working example...

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 29 May 2010, 06:42

hehe soundmind you still play around with usine bloc limits, remember it's not a synthetiser hehe, not sure but maybe this
can give you better results:
you ll need one ramp up at start and one ramp down for end, problem when using restart pulse is that it could work for fade in,
but not for fade out, cause the envellope/ramp would have to be triggered Before the pulse.
I would try to use Ramp module instead of enveloppes that generate arrays you can multiply the audio with to get like an enveloppe, but i think they are more accurate
so a ramp Up triggered on restarting pulse,a rampdown trigered a small amount of time before sample end,either using a time counter,or something linked to percent.
or can cheat make it triger on loop restart, but slythly delay audio,so it's phase offsetted and you make booth down and up ramp one after the other (a V short volume down and reup , trig by loop end, but as audio is delayed the midle of v is occuring on end/start, where clic is occuring)
dk if im really clear hehe


or gurulogic solution ive just seen seems simpler and should work.

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 29 May 2010, 06:43

gurulogic wrote:two samplers with the same sample loaded, the same length loop and linked master controls The gain for each sampler could be triggered perhaps with use of some logic and math module to have one sampler fade out at say 90-100% and the other sampler to fade in at say sample position, at say 0-10%.
that is an interesting approach. I didnt think of modulating the gain on the sampler or using two samplers. I was using a volume module on the sampler output. I will try this. Maybe crossfading will be integrated in the sampler one day. which would then allow it to be used as a click free osc! :cool:

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 29 May 2010, 06:56

Thanks for the reply master 23. Yes my brain keeps trying to use usine as a synth and i know it is ALMOST possible all that is needed is some minor additions to the sampler module and we have very versitile oscillator. As a matter of fact I am already using it (sampler) like a synth and it makes some very characteristic sounds with the sampler loop point method described above. The ramp crossfade method you describe sounds like a good new approach to this issue. I will try. thanks for the info!

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 30 May 2010, 05:42

After much experimentation I have concluded that the problem is unavoidable because of the loop being "too fast" to have data triggered at the same rate. after trying both methods it made even more noise which sounded far worse than the noise without the fades. However the sound that this experimental loop osc creates without the fades has a certain raw characteristic sound which is very usable. maybe i will post an example to inspire further development. I see a lot of potential for usine in this area because the samplers are very versatile and extremely CPU friendly. I believe it can be the answer to the question of a native usine osc and much more! Thanks for all the help.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 30 May 2010, 11:46

could be a participative project ..?
here a little try too , too way by freq and by midi

synthesis_by_wav_test3and4

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 30 May 2010, 18:47

its good to have you on board master seven. I will check your example.

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 31 May 2010, 01:56

Here is a simple mono synth with an integrated slicer and sub slicer to select sections of the sample to use as the osc. the pitch is modulated by the loop points instead of the traditional sample pitch method. This allows you to take any sample or loop and use any section of it as an osc and pitch it anyway without losing the tonal character of the original sample. Works best with drum loops because the slicer works by dividing the loop into equal slices which makes it easy to select individual drum hits for use as the osc loop http://sensomusic.com/forums/uploaded/usinth.pat

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 31 May 2010, 10:36

nay-seven: Your patch was interesting. I forgot about using the grain samplers speed mode to "freeze" the sample. This is a great way to make an osc. This demonstrates yet another way to "synthesize" sound with the samplers. thanks for the example.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 31 May 2010, 11:03

yep, 2 different method for radically different results !
and that 's why it's interesting !
your 's sound really near a classic osc and it's an inventive method
congrats !

pfuu , a life will never be enough...do you think cats can use Usine..? :D

soundmind
Member
Posts: 236
Contact:

Unread post by soundmind » 31 May 2010, 21:01

Usine is deceptively simple. Yes there simply isn't enough time to try every single possibility.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests