Updated Music notation (markdown)
@@ -59,12 +59,12 @@ C = [@c, @d, @e, @f];
|
||||
The code results in following notes:
|
||||
[[notes/cdef.svg]]
|
||||
|
||||
You can also use _staff construction_ syntax which is a special way to construct a list of notes, integers and strings and allows you to keep correct time signature of inserted notes. Find out more about _staff construction_ at the [[Supported data types#list]] section.
|
||||
You can also use _staff construction_ syntax which is a special way to construct a list of notes, integers and maps and allows you to keep correct time signature of inserted notes. Find out more about _staff construction_ at the [[Supported data types#list]] section.
|
||||
```php
|
||||
C = $ 4/4 @c @d @e @f ||;
|
||||
```
|
||||
|
||||
Note, that only notes and integers (rests) are used to evaluate time signature of the measure. Strings acting as a command have no duration and are just ignored in process of evaluating the total duration of measure.
|
||||
Note, that only notes and integers (rests) are used to evaluate time signature of the measure. Maps acting as the commands have no duration and are just ignored in process of evaluating the total duration of measure.
|
||||
|
||||
### Rests
|
||||
Rest is nothing but integer placed among the notes. Value of number determines rest's length and works similar to duration part of note literal. For example:
|
||||
|
||||
Reference in New Issue
Block a user