csound 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/csound.rb +38 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a740b782dca09b5ce20793b492bb45fcc19267273d71fff31768dacfcb34c5a
4
- data.tar.gz: 44f99b1b5f334b7fe054140801b4c800095190239ab45a12a7a64a90247dd8d2
3
+ metadata.gz: dce5327347e59186bf07e259d45c6ee9573a8664bc0e3280153b605a2d9bd3e7
4
+ data.tar.gz: 5cf5c2f805a6216ed1c68e49b23d587b4a3e924aec2424b5b1ff0389d9c304f4
5
5
  SHA512:
6
- metadata.gz: 0b228bf632fc3710d0b442814f077d9772eb43562758e8d2443c5023e9e84ef1556cd4a22db6b0c887dc7377b629e20de7932d94fb7ca6547fd58f51420ce2f0
7
- data.tar.gz: b37553b3a4d4a280ae916c478445172d4d22ea545b295f950bcdfe5c1fb0c5f739e09a29ade0b408eb098924db3dde098997c3ea65682cc5d6a3881f9b1a02a8
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.2
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-28 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler