aboutsummaryrefslogtreecommitdiff
path: root/vm.ttl
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-22 16:31:50 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-22 16:31:50 +0100
commitf2c2b7f892bf7ec8b74e891bd3468e1429c6d749 (patch)
treea62960df78938ec595d2064e418b9a94af79f0be /vm.ttl
parent60c4e7231f76536e6111e4cf61c324e537c26846 (diff)
downloadvm.lv2-f2c2b7f892bf7ec8b74e891bd3468e1429c6d749.tar.xz
add pop operation. prototype keyboard shortcuts.
Diffstat (limited to 'vm.ttl')
-rw-r--r--vm.ttl21
1 files changed, 21 insertions, 0 deletions
diff --git a/vm.ttl b/vm.ttl
index daf6598..b6ff5c4 100644
--- a/vm.ttl
+++ b/vm.ttl
@@ -60,6 +60,8 @@ vm:opInput
a rdfs:Datatype .
vm:opPush
a rdfs:Datatype .
+vm:opPop
+ a rdfs:Datatype .
vm:opSwap
a rdfs:Datatype .
vm:opStore
@@ -507,6 +509,25 @@ vm:rand
]
] .
+vm:sampleAndHold
+ a pset:Preset ;
+ lv2:appliesTo vm:vm ;
+ rdfs:label "Sample and hold" ;
+ state:state [
+ vm:graph [
+ a atom:Tuple ;
+ rdf:value (
+ # Reg0 := (Beat % 1 == 0) ? Rand : Reg0
+ vm:opRand
+ 0 vm:opLoad
+ time:barBeat vm:opModF vm:opPop
+ 0 vm:opEq vm:opTernary
+ vm:opPush
+ 0 vm:opStore
+ )
+ ]
+ ] .
+
vm:lfo
a pset:Preset ;
lv2:appliesTo vm:vm ;