I am running my tunes thing but when I get to the rest, I get an error
case "h"://this is when my code reads an h. it adds a rest to the melody
melody.Add(Tunes.Tone.Rest, a);//a is a duration. it is set to 200
break;
}
}
tunes.Play(melody);//then here it plays everything that was added
just a snippet. Is the rest note broken? Every note plays up until this one. Attached is screenshot of error
you got a PWM exception. So whatever was in your tune was causing an issue in PWM, most likely because it incorrectly set a PWM value that the PWM handler in netmf couldn’t recognise. You need to understand what note it was playing to really understand this, I suspect…