Esempio n. 1
0
 public static void ExportSampleSchema(SampleSchema sampleSchema, string exportFolder,
                                       Dictionary <SampleGeneratingArgs, SampleSoundGenerator> loadedSamples = null,
                                       SampleExportFormat format = SampleExportFormat.Default, SampleExportFormat mixedFormat = SampleExportFormat.Default)
 {
     foreach (var kvp in sampleSchema)
     {
         ExportMixedSample(kvp.Value, kvp.Key, exportFolder, loadedSamples, format, mixedFormat);
     }
 }
Esempio n. 2
0
 public void MergeWith(SampleSchema other)
 {
     foreach (var kvp in other)
     {
         if (!ContainsKey(kvp.Key))
         {
             Add(kvp.Key, kvp.Value);
         }
         else if (this[kvp.Key].Count == 0)
         {
             // Allow overwriting of value if the list of samples is empty, because those entries are useless
             this[kvp.Key] = kvp.Value;
         }
     }
 }