Exemple #1
0
        public static ICapsule GetNote(long ticksToStart, Pitch pitch, int value, int velocity)
        {
            SmallCapsule non  = new SmallCapsule(0, new Note(pitch, value, velocity));
            SmallCapsule noff = new SmallCapsule(TimeSignature.GetTicksForNote(value), new OffNote(pitch));

            return(new BigCapsule(ticksToStart, non, noff));
        }
Exemple #2
0
        public Scuttler(int notes, params IGang[] minions) : base(minions)
        {
            this.duration = TimeSignature.GetTicksForNote(notes);
            Gaussianator gr = new Gaussianator(this.minionsEtc.Count - 1);

            this.index = Enumerable
                         .Repeat(0, 50)          // TODO: 50? praps calculate this somehow
                         .Select(i => gr.GetGaussian())
                         .ToArray();

            this.ix      = 0;
            this.current = this.index [ix];
        }
Exemple #3
0
 public long TicksToComplete()
 {
     return(TimeSignature.GetTicksForNote(this.NoteValue));
 }
Exemple #4
0
 public void GetTicksForNoteTest()
 {
     Assert.AreEqual(24, TimeSignature.GetTicksForNote(4));
 }