private static BeatData ToData(PatternBeat beat, SoundsList patternSounds) { return(new BeatData { Time = beat.T.Index, Sound = patternSounds.IndexOf(beat.Sound), Velocity = beat.Velocity.Value }); }
private static SoundData ToData(ISoundId sound, SoundsList sounds) { return(new SoundData { Technique = sound.Technique, Instrument = sound.Instrument.Name, Id = sounds.IndexOf(sound), Mark = sound.Mark }); }