Welcome to %s forums

BrainModular Users Forum

Login Register

how to deactivate the reading?

I need help on a Patch
Post Reply
héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 06 May 2009, 13:59

how to do this to be able to play the sample only when you change position,as i've seen in the workspace used by hervé birolini ,i've tried to make the pause off when i move the position fader,but it's playing a too short time to ear it...

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

Unread post by nay-seven » 06 May 2009, 17:41

not sure to understand , but :
add a wavedisplay on your sampler
link the outlet start pos of this wavdisplay to a "has changed " module
link this has changed module to the inlet of a button , and the button to the play of your sampler , ( sync mode set to "play button" of course )
is this what you mean...?

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 06 May 2009, 23:14

this is cool ,i'm gonna use it,but i want to read the sample only when i pass on it...it's not about deactivate reading,but read just when you modify the position...more clear?

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

Unread post by nay-seven » 06 May 2009, 23:44

so maybe you mean this :
you don't hear the change if you have this cursor ( when your mouse is on the waveform) :
Image
but if you put your mouse outside the waveform , you'll have this cursor , and then you hear the position changes in realtime...
Image
?

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 07 May 2009, 02:13

do you effectively want to be able to 'scratch' the file? so when you're not moving the cursor, no sound is made? and when you move the cursor sound is played at the rate at which you move the cursor?

if so, here's an example of a patch that does that:
Image
note that i'm using a grain sampler and i've got the play speed set to zero. effectively this mean that it keeps looping the same grain continusouly, but you mute that with the pass event switches on the audio output. the smoother on the position helps the sound stay, well, smoother - play with it and you'll see what i mean. you could probably use an envelope follower somewhere in there to stop the pass event flow being so clicky maybe?

ps - sorry about the big image, haven't linked images until recently so still learning how to do it...

[edit] whoops - i've got the grain sampler in play button mode here, it might be better off in loop mode.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 07 May 2009, 02:17

remember wanting the same, kind of scrub fuction independant from play/stp/
just contol the pos and hear audio?

off but not topic:
just thought bmoussay roll array script might emulate a scratcher/scubber? tried to put the wavform in an array and then get element value relating to percent position sampler (x5,12 trunk to get 512 at the end of the loop but audio out has a caracter of the drumloop in but very strange, flangy minimalistic synth style.. ).
is it possible to manipulate audio via arrays? or is is 512 array lengh is too short?

self answer mm yes 512 samples seems a short time arf.

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 07 May 2009, 02:42

Double whoops, forgot about the pause button - here's another way...
Image
more or less doing the same thing though...

also, i need to point out that in the top 'A=B' module B=1, and in the other 'A=B' module B=0
all these do is trigger the play and pause conditions of the grain sampler.

[edit] just found that if you use loop mode and delete the top 'A=B' module it's better...

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 07 May 2009, 10:08

thanks a lot guys! it was simple,i was missing the smooth module ,it 's very efficient,could you tell me what it does? how and when we can use it? thanks again...(P.S. to 23fx23: i never use array,but i've seen there is a new topic about it,i'm gonna read it now)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 07 May 2009, 21:23

héliouk 6 wrote:i was missing the smooth module ,it 's very efficient,could you tell me what it does? it? )
the smooth act as an average relating to time. it can be used to smooth hehe a weird suddently changing data.

you could be facing often a pb like above, when impulses are very short, going from 0 to 1 in a very short time, this can make
the transition instead of being 0 then suddently 1, it will make 0/ 0,1/ 0,3/ 0,6/ 0,9 (example) and the time defines the smoothing time. (note that extreme values will be lowered, and a relating to time factor slight latency will be added)

I think it work on taking a defined portion of time, and calculate the median of all received values.

so let's say a visual example is if you have short spikes from 0 to 1, the more you smooth the more spike will morph to rounded hills, if you smooth too much you ll get a flat line of 0,5 value.

smooth can be useful for example when dealing with wiimote, your hands could shake a litlle, adding a smooth can make shake less perceived, the noisy curve will be rounded. but there a lot's of other applications, generally to "smooth" a transition;)
but be aware the more you smooth, the less "responsive" it will be.

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 08 May 2009, 02:06

i tried the hysteresis module which should reject close on/off's, but i couldn't get it to work as expected. so the smoother seems to be the one to use for now. i'll have another go later on and see if i can get it to work right, as ultimately i think it'd give a better result again.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests