[Csnd] Released AutoSampler

Hey hey,
I've just released a small auto sampler. A tool to automatically sample a MIDI instrument.
http://juliencoder.de/sound/autosampler.csd
The little necessary documentation is in the file.

The auto sampler support round robins, velocity layers, overall note range, note intervals and both mono and stereo input.

The options are set for a Linux environment using JACK audio and ALSA MIDi, 18 audio channels at 48kHz. Remember to adapt.

There's no demo, since there isn't much to show.

I wanted to sample a few drums of a synth, I rarely use. So I hacked something together. It worked well, so I decided to clean up the concept and make it more comfortable and more general.

Enjoy and best wishes,

Jeanette

Hello Jeanette,

This looks interesting!

I might use this in my dissertation (still in incubation) , if I do, it should have a reference to the csd and you, if it's OK, I'd put "Jeanette C. , http://juliencoder.de/sound/autosampler.csd" as a reference. If you have an alternative preference please let me know. You may wish to put this in the source header, just so people can know where the code came from.

Many thanks and best regards,

Jacques

Hey Jeanette,

It's probably my ignorance (:-/) but I have no idea really what the use-case
for this would be! I set it up to use my usual MIDI input and changed to
audio channels 1 & 2, and it generates a heck of a lot of audio files, but
none of them have any non-zero data! And I'm not clear from the description,
but why do many of the files not have the assigned prefix (I left it at "Saw")
i.e they start "-n-0..." where 'n' is the note-number. Experimentally these
only happen when I hit a note.

And what do you mean by "round-robin" here. I'm not familiar with such
a concept.

Thanks if you can clarify!

  -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

and, looking a bit closer, I guess that's not surprising(!) as the sampler doesn't
generate any sound itself... I've never used chnget/set myself, can these share
data between csound instances? How would you do it in practice? Sorry about
my ignorance... (:-))

TIA
  -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

Hello Jacques!
Mar 30 2021, Jacques Leplat has written:
...

I'd put "Jeanette C. , http://juliencoder.de/sound/autosampler.csd" as a reference.

..
That's perfect. Thanks a lot. In the next update, I'll insert some
information for reference.

Best wishes,

Jeanette

Hi Pete!
Mar 30 2021, Pete Goodeve has written:
...

It's probably my ignorance (:-/) but I have no idea really what the use-case
for this would be!

Then you most likely won't need it anyway. :slight_smile:

Here's an example: you have an analogue synthesizer. You program a nice
patch on it. You're not sure whether you can ever repeat the patch. Then
you set up the auto sampler to record audio from the synthesizer and
send MIDI to it. Now you get a simple sample library of your synth patch
from the external synthesizer.

Since this code is simple, it works best for naturally decaying sounds.
Once you have all the audio files, you can create an SFZ or another
sample library format, set it up in Kontakt or whichever sampler. Maybe
even load it in some other hardware synth with sampling capability. :slight_smile:

HTH.
...

Best wishes,

Jeanette

Sorry Pete, I forgot to explain the round robins. You record a specific note, at a specific velocity several times and leave your sampler to change them round. This is most useful for acoustic instruments, which never exactly sound the same, but also works for analogue hardware, which can also drift slightly, be triggered at different phases,... The resultant sample library will sound more natural in those cases, not so static and repetitive. For drums it can avoid the "machine gun effect".

Best wishes,

Jeanette

Hi Jeanette. Yeah, you're right! It's not an area I'm likely to get involved in!
I'd never heard of the "round-robin" concept, before.

Thanks!
  -- Pete --

Hey hey,
version 2 is ready and it's much better. :slight_smile:
http://juliencoder.de/sound/autosampler-2.0.zip
Better documentation and automatic creation of an SFZ file. There's a short README and license to go with it now. I feel almost professional. :slight_smile:

Best wishes,

Jeanette