Ejemplo n.º 1
0
    public void changeToVoice(string voiceStr, Motif motif)
    {
        if (voiceNames.Count == 0)
        {
            voiceNames.Add(voiceStr);
            return;
        }

        for (int i = 0; i < voiceNames.Count; i++)
        {
            if (voiceNames[i] == voiceStr)
            {
                currentVoice = i;
            }
        }

        voiceNames.Add(voiceStr);
        motif.addVoice(new Voice());
        currentVoice = voiceNames.Count - 1;
    }