PDA

View Full Version : OneShot Sampler


PalmWino
11-12-2009, 03:30 PM
I'm trying (among other things!) to emulate an ancient delay/sampler pedal that I use in a manual 'record/sample' mode; i.e., one click records, next click retriggers first sample whilst recording over (i.e. 'Substitute' mode). Third click retriggers second sample & records third, etc. Each time you lose the sample before last.
Variations on:

!name OneShot

#TrackCount = 1, Insert Mode = Substitute

if mode == Reset
Record
end

else
NextTrack
Insert
endif

will work for the first & second click, but the third goes into play mode, & will retrigger (all quantize settings are off), but not substitute. Putting 'Substitute' instead of 'Insert' doesn't work either. 'Retrigger' instead of 'NextTrack' doesn't work! Is something over-riding the substitute function?
I can sort of get it to work using 'Overdub' with Feedback set to 0, but then I can't hear the one-time playback! It seems so close, yet.....

Any hints appreciated.

Dave

Jeff
11-14-2009, 01:48 AM
Just bumping this so I look at it over the weekend...

PalmWino
11-16-2009, 11:59 AM
Thanks in anticipation! I too looked at it over the weekend, & came up with a workaround:

!name ReSampler

!sustain 8000

Label sustain
if mode == reset
Record
end

else
Retrigger

Label endsustain
Substitute
end if

If I'm VERY quick with my clicks it's workable, but does tend to leave a few milliseconds of unsubstituted sample at the start.

I figured that part of the problem in my first script attempt is that calling retrigger (or nextLoop if LoopCount=1) results in Play mode, but I don't understand why Substitute is not called?
Putting a 'Wait 500' between Retrigger & Substitute did eventually call substitute, at the same point in the loop where it was called, but on the NEXT iteration of the loop! I am confused! (This happens whatever the value of the Wait)

Incidentally, I'm running 1.41 as a standalone on a MacBook Pro, OS 10.6.2. All quantize functions are off too, for the purpose of this particular experiment.

Dave

PalmWino
12-09-2009, 05:07 PM
Haven't messed with this for a while, but in case anyone's tried it out....
It doesn't work!!:(
At least, not as intended. When in substitute mode, a retrigger/substitute results in the entire previous sample being wiped, when all I really wanted wiped was the bit that had been played before the retrigger! (ie put it into play mode before the loop ends & the remainder of the loop has disappeared).
Anyway, apart from that, whilst it does sortof work from the keyboard (or maybe MIDI), my fragpedal setup (in case anyone's using these) won't do sustain scripts; since it's a mouse emulator, you can have click, or doubleclick (multiclick), but it don't recognise sustain.
Ah well, back to the drawing board....
Dave Draper