cs31day10 Wk 5 M

cs31day10 Wk 5 M - should process each beat separately try...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
should process each beat separately try to translate a song that has no sustains add sustains later try one digit sustain notes try two digit sustain notes try one beat song need to check for 0g or 1g while translation be careful that when using s.at(k) - make sure k is within range of the string length check for if a string ends with a number, then it's not well formed - can check this in beginning last character must be a slash - if not, then not well formed check for when string is empty separating each beat create a loop if its slash, continue to next letter if we see a letter(that's valid) and the letter after is a slash, then skip two beats if we see a number, continue next letter if we see a letter that's valid, and after letter is a slash, continue if slash continue loop each iteration by beat if slash - loop to next letter ______________________________________________ What should I shout? Hello there! HELLO THERE!
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/02/2011 for the course CS 31 taught by Professor Melkanoff during the Spring '00 term at UCLA.

Page1 / 5

cs31day10 Wk 5 M - should process each beat separately try...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online