登录
本论坛汇聚了来自世界各地的人们,因此大家使用英文交流。

Bug with bulk rename

分类:错误与安装
  • BA 64 0
    消息来自 batata004,发表于
    I got a soundfont in which all samples have exactly the same name. The problem is that if I export all those files as wav to apply some effects on Audacity and then I try to import them later, all the names get ovewritten because all names are equal. So I selected all samples -> BULK RENAME -> OVEWRITE EXISTING NAME WITH NUMERICAL ASCENDING SUFFIX. The problem is that at the end, multiple samples still get exactly the same numerical suffix, they are not unique, and even worse, RIGH and LEFT samples get assigned completely different numbers, they should at least have the same NUMBER + R or L at the end (as is the default when importing a sample in polyphone).

    Please check attached image in which the same numeric suffix is being applied randomly to completely different samples on different root notes.
  • 422 17
    消息来自 bottrop,发表于 1
    this is not a bug in Polyphone, but the result of someone making a soundfont without first reading the tutorial. sample names MUST be shorter than 20 characters, otherwise they get corrupted. you can try exporting the samples and detect the properties by hand or find a version of that soundfont in which the sample names are still intact.
    regards bottrop
  • BA 64 0
    消息来自 batata004,发表于
    bottrop 写于 -
    this is not a bug in Polyphone, but the result of someone making a soundfont without first reading the tutorial. sample names MUST be shorter than 20 characters, otherwise they get corrupted. you can try exporting the samples and detect the properties by hand or find a version of that soundfont in which the sample names are still intact.
    regards bottrop
    Thank you @bottrop. After reading your comment I selected all samples BULK RENAME and I gave a shorter name `AAA` and then I used the feature of adding Suffix but the same bug happened, even following your suggestion of reducing the sample char count. Please check attached image below, you can see the name are way shorter but the indexes 00, 01... still repeat a lot.
  • 422 17
    消息来自 bottrop,发表于
    thats because the samples have been imported with too long names in that soundfont. the soundfont protocol chops all characters beyond 21 characters and that part is lost FOREVER. open the samples in a wave editor and detect the pitch by ear, save as....
    regards
  • BA 64 0
    消息来自 batata004,发表于
    That's not very simple because for every pitch I have 4 samples (for 4 different velocities). That would consume a lot of time... I know how to program with PHP, Python... is there a way I can "load" a soundfont using a programming language and make the changes and save? I know the sf2 is a binary format, is there some library I can use to load a sounfont and programatically loop the samples? This way I could very easily solve this.
  • 422 17
    消息来自 bottrop,发表于 1
    i dont think a machine or program can solve that human mess.
    from where did you get that soundfont? maybe i will have a look at it.
    regards
  • BA 64 0
    消息来自 batata004,发表于
    Hi,

    Thanks a lot for your help! I bought this soundont (inside a pack with other 7) by US$ 150 about 2 or 3 years ago and I never used it, but now I liked it so much that I want to make some changes to the wav files of the samples however it's been impossible because of the mess of the names. I bought a pack with 8 soundfonts and all of them have exactly the same naming problem. I will provide you some links for the soundfonts so you can see the problem:

    https://drive.google.com/file/d/1sp1PMtw…/view?usp=drive_link 
    https://drive.google.com/file/d/1CFJ7R8f…FZ7/view?usp=sharing 
    https://drive.google.com/file/d/1NHtNFow…/view?usp=drive_link 
    https://drive.google.com/file/d/10otc0PJ…/view?usp=drive_link 

    All of those have multiple velocities for the same pitch and the naming is a mess, as you concluded! If polyphone could provide a feature to rename all samples with incrementing suffix but giving the same suffix to the same L/R it would solve this problem. But that bulk rename tool +suffix is not working as expected because, as you said, the person who created this soundfont didnt take care of naming convension.
  • 422 17
    消息来自 bottrop,发表于 1
    tried your links but get no permission, i think because i have to use my google account. can you send a personal message (here) with the links or....? 
    regards bottrop
  • BA 64 0
    消息来自 batata004,发表于
  • 422 17
    消息来自 bottrop,发表于 1
    ok, they are in my download folder now. quite a lot, will take some time to investiga all.
    will be back
    regards
  • 消息来自 bottrop,发表于 1
  • BA 64 0
    消息来自 batata004,发表于
    Thank you a lot! The file RoyalG_3D.sf2 you created is exactly what I needed: a common prefix to all samples + velocity + root key + same numeric index shared to the L and R + the channel itself as a suffix (L or R). That's awesome! 

    Would you mind sharing with me how you did this? If you had done this "manually" it think it would take a long long time and it would be prone to some small errors (missing key, assigning wrong velocity...). How did you manage to fix this problem so gracefully?
  • 422 17
    消息来自 bottrop,发表于 1
    i did all of them in about one and a half hour, so if like i can post them in Drive.
    it is easy;
    select all samples> F2> overwrite names with key as suffix
    in the samples folder you see sets of 5 of the same key, L & R
    Ctrl-select the first sample of left and right sets from top to bottom> F2> add a 1 tot the name
    Ctrl-select the second sample (now first of a set od 4 ) of left and right sets from top to bottom> F2> add a 2 tot the name
    etc.
  • BA 64 0
    消息来自 batata004,发表于
    That's an awesome idea, very clever! I used your idea and improved it only a little bit: i went to the INSTRUMENT folder and used the GUI to select all the samples in the highest velocity range (I just dragged the mouse in the bars) and then all those samples were already selected and it was easy to INSERT STRING AT 0 POSITION (like RG-VEL1-....). 

    If you really already done that to all the soundfonts it would be nice if you could send me, otherwise no problem at all, your tip was incredibly useful and I can take from now!
  • 422 17
    消息来自 bottrop,发表于 1
  • BA 64 0
    消息来自 batata004,发表于
    That's awesome, thank you a lot! These soundfonts are very good but I need to apply a stretch of 20% to the lenght of all samples, and because of that I had to export them and it would be impossible without your help. Thank you, I wish you a merry christmas!

登录或注册后即可参与讨论。

Polyphone 需要您!

Polyphone 是免费的,但其网站和开发都会产生费用。一笔小小的捐赠就能帮上大忙。

捐赠
学习基础知识 试试教程
返回
顶部