Skip to content

0.7.0

Compare
Choose a tag to compare
@ddj231 ddj231 released this 29 Jan 03:41
· 54 commits to master since this release

New Features

  • adds if - else blocks (conditionals)
  • adds while loops

The syntax for an if - else block is as follows:

start
    if E4 greaterthan Cb3 then
        play E4 for 1b 
    else
        play Cb3 for 1b
    endif

    save mydigit = -5
    if mydigit equalto 5 then
        play C2 for 5b
    endif
finish

The syntax for an while loops is as follows:

start
    save note = C2
    block 
        play note for 1b 
        update note rshift 1
    endblock loop while note lessthan C3
finish