diff --git a/config.ru b/config.ru index 3bc3b2a..8d04c46 100644 --- a/config.ru +++ b/config.ru @@ -1,7 +1,7 @@ $stdout.sync = true use Rack::Static, - :urls => ["/css", "/js", "/images"], + :urls => ["/css", "/js", "/images", "/spec"], :root => "." run lambda { |env| diff --git a/spec/scratchml.json b/spec/scratchml.json new file mode 100644 index 0000000..a5e70a1 --- /dev/null +++ b/spec/scratchml.json @@ -0,0 +1,84 @@ +{ + "sml": { + "version": { + "major": "0", + "minor": "6" + }, + "info": { + "client": "Cutcapture 9000 version 1.1", + "author": { + "name": "Qbert", + "url": "http://www.djqbert.com", + "location": { + "description": "San Francisco, CA", + "latlon": "32.44, 22.34" + } + }, + "description": "Crab/flare combo, 1998", + "tags": "crab, flare, old", + "created": "2012-07-17T09:24:17Z", + "url": "http://scratchml.com/data/340923" + }, + "audio": { + "sample": { + "filename": "samples/fresh.wav", + "deck": "left" + } + }, + "performance": { + "turntable": { + "deck": "left", + "samplerate": "375", + "data": { + "p": [ + "1000.02", + "1010.32", + "1020.34", + "1030.23" + ] + } + }, + "mixer": { + "fader": { + "hamster": "true", + "data": { + "events": [ + { + "t": "0", + "p": "0" + }, + { + "t": "1736", + "p": ".5" + }, + { + "t": "2362", + "p": "1" + }, + { + "t": "3034", + "p": ".5" + } + ] + } + } + } + }, + "transcription": { + "turntable": { + "deck": "left", + "scratch": { + "name": "flare", + "curve": { + "t": "0", + "p": "0" + }, + "line": { + "t": "1000", + "p": "1000" + } + } + } + } + } +} \ No newline at end of file diff --git a/spec/scratchml.xml b/spec/scratchml.xml new file mode 100644 index 0000000..74c37a5 --- /dev/null +++ b/spec/scratchml.xml @@ -0,0 +1,107 @@ + + + 0 + 6 + + + + Cutcapture 9000 version 1.1 + + Qbert + http://www.djqbert.com + + San Francisco, CA + 32.44, 22.34 + + + Crab/flare combo, 1998 + crab, flare, old + 2012-07-17T09:24:17Z + http://scratchml.com/data/340923 + + + + + + + + left + 375 +

1000.02

1010.32

1020.34

1030.23

+
+ + + true + + + 0 +

0

+
+ + 1736 +

.5

+
+ + 2362 +

1

+
+ + 3034 +

.5

+
+
+
+
+
+ + + + + left + + + flare + + 0 +

0

+
+ + 1000 +

1000

+ +
+
+ + + + + 1000 +

center

+
+ + + 1500 +

right

+
+ + +

right

+ 3 + + 3000 + 3400 + +
+
+
+
+