csound 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csound.rb +60 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8d1eccd6d24dd57acf2dac59b06ffbc9e1ed4dbe69bce2fa1ffddc5c172206f
|
4
|
+
data.tar.gz: 98855f8130235cb7fd37889d4fc80300c8b415b729a99705af605469cd1faa26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09f1f16780eda1e289226f855f07de63a03c916e59df856d939372e6764a0595692ecce48bb927e7afc5bcadd51b7fafbe776fcde9cd8a07699ada22ae7d4193'
|
7
|
+
data.tar.gz: 6d3ae7730a612b6145aaa7dccb1c1e03be46abecef1df4175fe3a63d28be69d546e23481096de8b67d44510178812e1351d482f05bc9905d8e5d85d2eba4e692
|
data/lib/csound.rb
CHANGED
@@ -183,6 +183,22 @@ module CsoundModule
|
|
183
183
|
attach_function :csoundClearSpin,[:pointer],:void
|
184
184
|
attach_function :csoundAddSpinSample,[:pointer,:int,:int,:double],:double
|
185
185
|
attach_function :csoundSetSpinSample,[:pointer,:int,:int,:double],:void
|
186
|
+
|
187
|
+
|
188
|
+
attach_function :csoundGetEnv,[:pointer,:string],:string
|
189
|
+
attach_function :csoundCreateGlobalVariable,[:pointer,:string,:size_t],:int
|
190
|
+
|
191
|
+
attach_function :csoundQueryGlobalVariable,[:pointer,:string],:pointer
|
192
|
+
attach_function :csoundQueryGlobalVariableNoCheck,[:pointer,:string],:pointer
|
193
|
+
|
194
|
+
attach_function :csoundRunUtility,[:pointer,:string,:int,:pointer],:int
|
195
|
+
attach_function :csoundListUtilities,[:pointer],:pointer
|
196
|
+
attach_function :csoundGetUtilityDescription,[:pointer,:string],:string
|
197
|
+
|
198
|
+
attach_function :csoundCreateCircularBuffer,[:pointer,:int,:int],:pointer
|
199
|
+
attach_function :csoundReadCircularBuffer,[:pointer,:pointer,:pointer,:int],:int
|
200
|
+
attach_function :csoundPeekCircularBuffer,[:pointer,:pointer,:pointer,:int],:int
|
201
|
+
attach_function :csoundWriteCircularBuffer,[:pointer,:pointer,:pointer,:int],:int
|
186
202
|
#Missing
|
187
203
|
#csoundSetMessageCallback
|
188
204
|
#csoundSetMessageStringCallback
|
@@ -707,5 +723,48 @@ class Csound
|
|
707
723
|
def SetSpinSample(frame, channel, sample)
|
708
724
|
CsoundModule.csoundSetSpinSample(@csound, frame, channel, sample)
|
709
725
|
end
|
710
|
-
end
|
711
726
|
|
727
|
+
def GetEnv(name)
|
728
|
+
return CsoundModule.csoundGetEnv(@csound,name)
|
729
|
+
end
|
730
|
+
|
731
|
+
def CreateGlobalVariable(name, nbytes)
|
732
|
+
return CsoundModule.csoundCreateGlobalVariable(@csound, name, nbytes)
|
733
|
+
end
|
734
|
+
|
735
|
+
def QueryGlobalVariable(name)
|
736
|
+
return CsoundModule.csoundQueryGlobalVariable(@csound, name)
|
737
|
+
end
|
738
|
+
|
739
|
+
def QueryGlobalVariableNoCheck(name)
|
740
|
+
return CsoundModule.csoundQueryGlobalVariableNoCheck(@csound, name)
|
741
|
+
end
|
742
|
+
|
743
|
+
def RunUtility(name, argc, argv)
|
744
|
+
return CsoundModule.csoundRunUtility(@csound, argc, argv)
|
745
|
+
end
|
746
|
+
|
747
|
+
def ListUtilities
|
748
|
+
return CsoundModule.csoundListUtilities(@csound)
|
749
|
+
end
|
750
|
+
|
751
|
+
def GetUtilityDescription(name)
|
752
|
+
return CsoundModule.csoundGetUtilityDescription(@csound,name)
|
753
|
+
end
|
754
|
+
|
755
|
+
def CreateCircularBuffer(numelem, elemsize)
|
756
|
+
return CsoundModule.csoundCreateCircularBuffer(@csound,numelem,elemsize)
|
757
|
+
end
|
758
|
+
|
759
|
+
def ReadCircularBuffer(buffer, out, items)
|
760
|
+
return CsoundModule.csoundReadCircularBuffer(@csound,buffer,out,items)
|
761
|
+
end
|
762
|
+
|
763
|
+
def PeekCircularBuffer(buffer, out, items)
|
764
|
+
return CsoundModule.csoundPeekCircularBuffer(@csound, buffer, out, items)
|
765
|
+
end
|
766
|
+
|
767
|
+
def WriteCirularBuffer(p,inp,items)
|
768
|
+
return CsoundModule.csoundWriteCircularBuffer(@csound,p,inp,items)
|
769
|
+
end
|
770
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csound
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johann Philippe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|