csound 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/csound.rb +38 -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: dce5327347e59186bf07e259d45c6ee9573a8664bc0e3280153b605a2d9bd3e7
|
4
|
+
data.tar.gz: 5cf5c2f805a6216ed1c68e49b23d587b4a3e924aec2424b5b1ff0389d9c304f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f1421a193f84611a2eb6eed3549c245416c2d04fb36c2fcd40e24f0e6dab22f2253997e4cf2e4b365faefc30f2530cee09a5030c4293ba2349aa67144927be
|
7
|
+
data.tar.gz: e4fa19a0a9d7f11f6a48c8c78f980c634f2513159eeb8bb2956f0e3f9cd0824a6f038cff8ff6d10f4e81645bb6cd9518e8585f651270e875093278e697ef26f3
|
data/lib/csound.rb
CHANGED
@@ -173,6 +173,16 @@ module CsoundModule
|
|
173
173
|
|
174
174
|
attach_function :csoundGetFirstMessage,[:pointer],:string
|
175
175
|
|
176
|
+
attach_function :csoundGetSr,[:pointer],:double
|
177
|
+
|
178
|
+
attach_function :csoundGetSpout,[:pointer],:pointer
|
179
|
+
attach_function :csoundGetSpoutSample,[:pointer,:int,:int],:double
|
180
|
+
|
181
|
+
|
182
|
+
attach_function :csoundGetSpin,[:pointer],:pointer
|
183
|
+
attach_function :csoundClearSpin,[:pointer],:void
|
184
|
+
attach_function :csoundAddSpinSample,[:pointer,:int,:int,:double],:double
|
185
|
+
attach_function :csoundSetSpinSample,[:pointer,:int,:int,:double],:void
|
176
186
|
#Missing
|
177
187
|
#csoundSetMessageCallback
|
178
188
|
#csoundSetMessageStringCallback
|
@@ -669,6 +679,33 @@ class Csound
|
|
669
679
|
def GetFirstMessage()
|
670
680
|
return CsoundModule.csoundGetFirstMessage(@csound)
|
671
681
|
end
|
672
|
-
end
|
673
682
|
|
683
|
+
def GetSr
|
684
|
+
return CsoundModule.csoundGetSr(@csound)
|
685
|
+
end
|
686
|
+
|
687
|
+
def GetSpout
|
688
|
+
return CsoundModule.csoundGetSpout(@csound)
|
689
|
+
end
|
690
|
+
|
691
|
+
def GetSpoutSample(frame, channel)
|
692
|
+
return csoundGetSpoutSample(@csound, frame, channel)
|
693
|
+
end
|
694
|
+
|
695
|
+
def GetSpin
|
696
|
+
return CsoundModule.csoundGetSpin(@csound)
|
697
|
+
end
|
698
|
+
|
699
|
+
def ClearSpin
|
700
|
+
CsoundModule.csoundClearSpin(@csound)
|
701
|
+
end
|
702
|
+
|
703
|
+
def AddSpinSample(frame, channel, sample)
|
704
|
+
CsoundModule.csoundAddSpinSample(@csound,frame,channel,sample)
|
705
|
+
end
|
706
|
+
|
707
|
+
def SetSpinSample(frame, channel, sample)
|
708
|
+
CsoundModule.csoundSetSpinSample(@csound, frame, channel, sample)
|
709
|
+
end
|
710
|
+
end
|
674
711
|
|
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.3
|
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-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|