public void SelectKey(int key) { sounds.PlayNote(key, 95, 1.0f); PianoSoundItem item = itemPool.GetObject(); item.Initialize(0.0f, 0.0f, key, 0, this); items.Add(item); }
public void Activate(EditorController edit, List <PianoSound> sounds) { editor = edit; CurrentState.ignoreAllInput = true; foreach (PianoSound sound in sounds) { PianoSoundItem item = itemPool.GetObject(); item.Initialize(sound.duration, sound.delay, sound.pitch, sound.volume, this); items.Add(item); } }