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)); }
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]; }
public long TicksToComplete() { return(TimeSignature.GetTicksForNote(this.NoteValue)); }
public void GetTicksForNoteTest() { Assert.AreEqual(24, TimeSignature.GetTicksForNote(4)); }