| 1 |
<?xml version="1.0"?> |
| 2 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.hydrogen-music.org/drumkit_pattern" elementFormDefault="qualified"> |
| 3 |
|
| 4 |
<!-- BOOL --> |
| 5 |
<xs:simpleType name="bool"> |
| 6 |
<xs:restriction base="xs:string"> |
| 7 |
<xs:enumeration value="true"/> |
| 8 |
<xs:enumeration value="false"/> |
| 9 |
</xs:restriction> |
| 10 |
</xs:simpleType> |
| 11 |
|
| 12 |
<!-- PSFLOAT - positive small float [0.0;1.0 ] --> |
| 13 |
<xs:simpleType name='psfloat'> |
| 14 |
<xs:restriction base='xs:float'> |
| 15 |
<xs:minInclusive value='0.0'/> |
| 16 |
<xs:maxInclusive value='1.0'/> |
| 17 |
</xs:restriction> |
| 18 |
</xs:simpleType> |
| 19 |
|
| 20 |
<!-- NOTE --> |
| 21 |
<xs:element name="note"> |
| 22 |
<xs:complexType> |
| 23 |
<!-- |
| 24 |
<xsd:all> |
| 25 |
BUG libqt4-xml 4.6.3 and 4.7.1 |
| 26 |
http://bugreports.qt.nokia.com/browse/QTBUG-12534?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs |
| 27 |
--> |
| 28 |
<xs:sequence> |
| 29 |
<xs:element name="position" type="xs:nonNegativeInteger" default="0"/> |
| 30 |
<xs:element name="leadlag" type="xs:float" default="0.0"/> |
| 31 |
<xs:element name="velocity" type="psfloat" default="0.8"/> |
| 32 |
<xs:element name="pan_L" type="psfloat" default="0.5"/> <!-- maxINclusive="0.5" --> |
| 33 |
<xs:element name="pan_R" type="psfloat" default="0.5"/> <!-- maxInclusive="0.5" --> |
| 34 |
<xs:element name="pitch" type="xs:float" default="0.0"/> |
| 35 |
<xs:element name="key" type="xs:string" default="C0"/> |
| 36 |
<xs:element name="length" type="xs:integer" default="-1"/> |
| 37 |
<xs:element name="instrument" type="xs:integer"/> |
| 38 |
<xs:element name="note_off" type="bool" default="false"/> |
| 39 |
</xs:sequence> |
| 40 |
<!--</xsd:all>--> |
| 41 |
</xs:complexType> |
| 42 |
</xs:element> |
| 43 |
|
| 44 |
<xs:element name="pattern"> |
| 45 |
<xs:complexType> |
| 46 |
<xs:sequence> |
| 47 |
<xs:element name="name" type="xs:string" default="unknown"/> |
| 48 |
<xs:element name="info" type="xs:string"/> |
| 49 |
<xs:element name="category" type="xs:string" default="unknown"/> |
| 50 |
<xs:element name="size" type="xs:nonNegativeInteger"/> |
| 51 |
<xs:element name="noteList"> |
| 52 |
<xs:complexType> |
| 53 |
<xs:sequence> |
| 54 |
<xs:element ref="note" maxOccurs="1000"/> |
| 55 |
</xs:sequence> |
| 56 |
</xs:complexType> |
| 57 |
</xs:element> |
| 58 |
</xs:sequence> |
| 59 |
</xs:complexType> |
| 60 |
</xs:element> |
| 61 |
|
| 62 |
<!-- DRUMKIT PATTERN --> |
| 63 |
<xs:element name="drumkit_pattern"> |
| 64 |
<xs:complexType> |
| 65 |
<xs:sequence> |
| 66 |
<xs:element name="drumkit_name" type="xs:string"/> |
| 67 |
<xs:element ref="pattern" minOccurs="1" maxOccurs="1"/> |
| 68 |
</xs:sequence> |
| 69 |
</xs:complexType> |
| 70 |
</xs:element> |
| 71 |
|
| 72 |
</xs:schema> |