Connexion
Ce forum permet à des personnes du monde entier de communiquer, c′est pourquoi les messages échangés sont en anglais.

Applying sfz parameters to wave files

Catégorie : Aide
  • CB 9 0
    I would like to apply some sfz parameters to modify a wave file sample. For ex. if I change the sample start offset in the sfz file, could it be possible to write a new wave file (or overwrite the one that is currently used) so it can reflect those changes? The reason why I want to do this is because I'm using a sequencer that doesn't recognize the sample start parameter. So in order to get the correct timing, I need to physically move the sample position in the wave files. But because there are so many sample wave files to modify, I was hoping to find a way to do this automatically. Any suggestions of tools that could do this is welcome!
  • 57 0
    Message de Michael le
    I am not quite sure what you mean.

    About the loop points of the samples: when you set them in Polyphone the loop points will be saved inside the samples themselves as metadata. (You know you can save additional info into sound-files such as the artist name, title, etc? In a very similar way the loop start and loop end will be stored.)

    By exporting an SF2 soundbank to the SFZ-format the loop start and end wil be saved as well into the SFZ-file. You can replace the individual samples with other files (For example you can convert them to flac). Because the loop start and loop end are written into the SFZ-file, it doesn't matter if the meta-data in the samples themselves will be lost.

    If your sequencer supports the use of VST-instruments you can use Plogue SForZando for your SFZ-soundbanks. SForZando can be used standalone but as a VST-instrument as well.
  • CB 9 0
    Like I said, the sequencer I'm using doesn't support sample start offset in sfz files. It does however support loop start and end points. But I would need to edit the sample start and end manually for every single sample. So I was just wondering if it could be possible to trim the start of a sample wave file automatically (rewriting the wave file). Basically applying sfz parameters directly to all the wave sample files
  • BO 282 13
    Message de bottrop le
    have you tried Remove Blank from Start ?
    open your soundfont in Polyphone
    in the Tree view > Samples; select the samples you want to edit
    in the Tool menu > Sample > Remove Blank fron Start
    regards bottrop
  • CB 9 0
    Well, actually the sample starts right from the beginning, but the attack comes a bit later, so I'm not sure if that would work, since the sample is not totally blank from the start. It's like a slow violin note and I just want the sound to start from the attack of the note
  • BO 282 13
    Message de bottrop le
    the attack of a sample is where it starts playing (no matter if this attack is fast or slow).
    so you want crop the attack and let the sample start where the volune is to tour liking?
    i think in a wave editor you could write a script that can do it in a Batch job, but for a really good waveform you will have to use your eyes and hands.

    just out of curiosity; what library are you working on?
    regards bottrop
  • CB 9 0
    Yes, I need a faster attack, so that means to cut a bit of the beginning of the sound.
    I can obtain a good result when modifying the sample start offset in the sfz parameter, but I was hoping to find a way to alter the wave file according to the parameter I modify. I guess it's not possible, unless using a sound editor with batch processing like you mentioned.
    I'm using an app on Android called G-stomper studio . It's a nice app but unfortunately it doesn't support sample start parameters in sfz files
  • BO 282 13
    Message de bottrop le
    what i was curious for is what sample library of the .sfz you are trying to edit, because you say there are so many samples. it is only the sustaining samples that can have a slow attack. you cant crop the attack of guitar picks, pizzicatoes, spiccatoes, pianoforte, percussive samples like tubular bells, etcetera without destroying the sample.
    regards bottrop
  • CB 9 0
    It's the String ensemble from Papelmedia.
    It's only strings samples. There are about 70 wave sample files.
  • BO 282 13
    Message de bottrop le
    it took me some time to dig it out, but i found it.
    which StringEnsemble are you talking about?
    which Instruments?
    i cant find that many samples.
    see attachment

    regards bottrop
    PapStreicher.png
  • Message de bottrop le
    maybe you are talking about this version, ?
    StringEnsemble 1b
    i dont see slow attacks there
    PapStreicher02.png
  • CB 9 0
    I think it's Strings ensemble 2
  • BO 282 13
    Message de bottrop le
    it has only 36 samples in my version
    try this;

    https://drive.google.com/file/d/10Hnuyg8…3er/view?usp=sharing 
  • CB 9 0
    What did you do exactly?
  • BO 282 13
    Message de bottrop le 1
    i boosted the start of the samples in a wave editor.
    36 samples means 36 minutes of my life have vanished in a soundfont.
  • CB 9 0
    I surely appreciate your help! But no need to waste too much time on this. I've already managed to fix this issue manually, sample by sample. I just wish there could be a way to do this quicker and automatically for any other soundfonts when it's needed in the future
  • BO 282 13
    Message de bottrop le
    there is a way to achieve this with Global Settings, but it is not very elegant.

    in the Instrument's Global Settings you let the sound Decay for about the time of the slow attack to a Sustain of, say 10 dB, so the whole samples will be played back softer, but at the same volume.

    in the Preset's Global Settings you Attenuate with a negative amount of dBs until you reach the desired volume.

    examine this;
    https://drive.google.com/file/d/1pzeKaT9…Bt-/view?usp=sharing 
  • 57 0
    Message de Michael le
    I know GStomper only from the free GRhythm version. I didn't know it supports SFZ-files.

    Well, if GStomper doesn't recognise the opcode you need than you just have to edit the samples themselves I guess. I often use Audacity for editing sound files. You can import multiple files: each one appears as a separate track. You can export those tracks separately, though keep in mind they will all have the same samplerate: the one you will see at the bottom left on the window.

    Talking about the PapelMedia Strings SF2: I've edited the one I found a while ago. I removed all duplicate samples and I've set the samples all to the same samplerate. By setting the samplerate all the same I didn't alter the data of the soundfiles, so no convertion. This however will change the playbackrate, which I've corrected by changing the root key and tune with Polyphone.

    When I find it I will share it here.
  • CB 9 0
    There are 3 different versions of G-stomper. The basic version (rhythm), which is a basic drum machine, the studio and the producer versions. Those two versions include a synth module that support sfz file import. However, not all parameters are supported unfortunately.
    I know it's possible to manually edit each wave samples with a sound editor, but there are over 70 samples and I just can't spend that much time for this. If you have a good working updated version of the Papelmedia strings ensemble, I would greatly appreciate!
  • 57 0
    Message de Michael le
    https://pabstblueribbon.stackstorage.com/s/1vP1WobgNyoBRxuA 

    Here you can download my altered version of the strings from Papelmedia.

    The password is: Tristan

Connectez-vous ou inscrivez-vous pour participer à la discussion.

Polyphone a besoin de vous !

Polyphone est gratuit mais il y a des coûts associés à son site web et à son développement. Un petit coup de pouce aidera beaucoup.

Faire un don
Apprenez les bases Voir le tutoriel
Haut de
page