Esempio n. 1
0
 /// <summary>
 /// CompositionStrategy constructor.
 /// </summary>
 /// <param name="noteChoices">The note choices</param>
 /// <param name="noteChoiceWeightGenerator">The note choice weight generator</param>
 /// <param name="compositionContexts">The composition contexts</param>
 public CompositionStrategy(
     NoteChoiceCollection noteChoices,
     NoteChoiceWeightGenerator noteChoiceWeightGenerator,
     CompositionContextCollection compositionContexts
     )
 {
     _noteChoices = noteChoices;
     _noteChoiceWeightGenerator = noteChoiceWeightGenerator;
     _compositionContexts       = compositionContexts;
 }
Esempio n. 2
0
 /// <summary>
 /// Composition constructor.
 /// </summary>
 /// <param name="factory">The factory to initialize this composition with</param>
 public Composition(FuxExMachinaFactory factory)
 {
     _factory             = factory;
     _compositionContexts = _factory.CompositionContexts;
 }