This repository was archived by the owner on Jul 10, 2019. It is now read-only.
File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "WebDirt "]
2
2
path = WebDirt
3
3
url = https://github.com/d0kt0r0/WebDirt.git
4
+ [submodule "samples "]
5
+ path = samples
6
+ url = https://github.com/tidalcycles/Dirt-Samples.git
Original file line number Diff line number Diff line change 19
19
< script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js "> </ script >
20
20
< script src ="https://cdnjs.cloudflare.com/ajax/libs/fitvids/1.1.0/jquery.fitvids.min.js "> </ script >
21
21
< script src ="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js "> </ script >
22
+ < script src ="{{ site.baseurl }}/WebDirt/SampleBank.js "> </ script >
23
+ < script src ="{{ site.baseurl }}/WebDirt/WebDirt.js "> </ script >
24
+ < script src ="{{ site.baseurl }}/WebDirt/Graph.js "> </ script >
22
25
< script src ="{{ site.baseurl }}/js/tidal.js "> </ script >
23
26
24
27
</ head >
Original file line number Diff line number Diff line change 1
- ( function ( $ , window ) {
2
- $ ( document ) . ready ( function ( ) { $ ( ".tidal-video" ) . fitVids ( ) ; } ) ;
1
+ var dirt ;
3
2
3
+ ( function ( $ , window ) {
4
+ $ ( document ) . ready ( function ( ) {
5
+ $ ( ".tidal-video" ) . fitVids ( ) ;
6
+ } ) ;
4
7
var metas = document . getElementsByTagName ( 'meta' ) ;
5
8
var i ;
6
9
if ( navigator . userAgent . match ( / i P h o n e / i) ) {
19
22
}
20
23
}
21
24
} ( jQuery , this , undefined ) ) ;
25
+
26
+ $ ( document ) . ready ( function ( ) {
27
+ dirt = new WebDirt ( "/WebDirt/sampleMap.json" , "/samples" ) ;
28
+ WebDirt . prototype . testPlaybackOfSimpleMessage = function ( ) {
29
+ var msg = { sample_name : 'cp' , sample_n :0 , when :this . ac . currentTime + 0.5 } ;
30
+ this . queue ( msg ) ;
31
+ }
32
+
33
+ $ ( ".render" ) . each ( function ( ) {
34
+ // alert($(this).text());
35
+ $ ( this ) . append ( "<button onclick=\"dirt.testPlaybackOfSimpleMessage();\">play</button>" ) ;
36
+ } ) ;
37
+ } ) ;
You can’t perform that action at this time.
0 commit comments