Please familiarise yourself with the forum, including policy on feature requests, rules & guidelines

Magik

About

Username
Magik
Location
Brussels, Belgium
Joined
Visits
62
Last Active
Roles
Beta Tester
Points
2
Location
Brussels, Belgium
Posts
4
1
Badges
  • Deluge Kit Generator

    In addition, I wrote this little powershell script to

    • add the name of the first found folder sample to the kit name
    • rename the kit name to include the sound pack name

    The goal was to see the pack name from the display --> way more convenient.

    example= from 'KIT102.xml' to (102 AKAI XE8.xml)

    Code:

    Get-ChildItem "c:\temp\66 Legendary Drum kits\delugekits" -Filter *.xml | 
    Foreach-Object {
         $filename=$_.filename
         [XML]$xmlDetails = Get-Content $_.FullName
         $firstFoundFoldername= $xmlDetails.kit.soundSources.sound.Item(0).osc1.filename
         $array=$firstFoundFoldername.split("/")
         $newFilename=$array.item(2)
         $filenameWithoutKit=[io.path]::GetFileNameWithoutExtension($_).Replace("KIT","")
         $newFullName=$_.Directory.FullName  + "\" + $filenameWithoutKit + " " + $newFilename +".xml"
         Rename-Item -Path $_.FullName -NewName $newFullName
         }