-
Notifications
You must be signed in to change notification settings - Fork 21
A simple sequence
Tom Swirly edited this page Jun 19, 2013
·
1 revision
Now let's create a score that does two things.
In your text editor, create a new score file in the same directory as the other two and call it seq.yml.
Put the following text in it:
type: sequence
elements:
-
begin: 0 sec
type: print
text: First part.
-
begin: 2 seconds
type: print
text: Second part.
-
begin: 4 seconds
type: print
text: Third part.
sequence is a very common element type, which has many fun features we'll be discussing later in this tutorial. This sequence has three elements, each of type print.
If you run it in echomesh, you get the following results.
echomesh: start seq
First part.
Second part.
Third part.
As expected, there's a two second delay between each part.
By the way, you don't have to write "2 seconds" - all time is in seconds by default, so you can just write "2" or "2s" or "2000ms" for that matter.