Csound Csound-dev Csound-tekno Search About

[Csnd-dev] building stk opcodes

Date2015-10-23 18:11
FromPeter Burgess
Subject[Csnd-dev] building stk opcodes
Hi there, I am trying to build the STK opcodes. I have very limited knowledge of how this will all work. I have read the manual and a few other sources to help me, but I am still stuggling to get it to work.

So far, I have copied the src, include and rawwaves folders into the opcode folder, as specified in the stkOpcodes.cpp. I have downloaded scons, and found the SConstruct file in plugginSTD, aswell as the custom.py file. I have edited the bottom of the SConstuct file to add the source file paths. When I added the include folder path in the same section, I got what looked like an error.

This is the section of the SConstuct file I have altered:

# Plugin opcodes.

makePlugin(pluginEnvironment, 'stkOpcodes', Split('''
stkOpcodes.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/ADSR.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Asymp.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BandedWG.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BeeThree.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BiQuad.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Blit.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BlitSaw.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BlitSquare.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BlowBotl.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/BlowHole.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Bowed.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Brass.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Chorus.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Clarinet.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Delay.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/DelayA.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/DelayL.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Drummer.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Echo.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Envelope.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FileLoop.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FileRead.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FileWrite.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FileWvIn.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FileWvOut.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Fir.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Flute.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FM.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FMVoices.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FormSwep.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/FreeVerb.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Granulate.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Guitar.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/HevyMetl.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Iir.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/InetWvIn.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/InetWvOut.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/JCRev.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/LentPitShift.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Makefile.in
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Mandolin.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Mesh2D.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Messager.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/MidiFileIn.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Modal.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/ModalBar.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Modulate.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Moog.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Mutex.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Noise.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/NRev.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/OnePole.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/OneZero.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/PercFlut.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Phonemes.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/PitShift.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Plucked.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/PoleZero.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/PRCRev.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Resonate.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Rhodey.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/RtAudio.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/RtMidi.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/RtWvIn.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/RtWvOut.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Sampler.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Saxofony.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Shakers.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Simple.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/SineWave.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/SingWave.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Sitar.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Skini.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Socket.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Sphere.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/StifKarp.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Stk.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/TapDelay.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/TcpClient.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/TcpServer.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Thread.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/TubeBell.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Twang.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/TwoPole.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/TwoZero.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/UdpSocket.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Voicer.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/VoicForm.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Whistle.cpp
/home/pete/Documents/Csound6.05/Opcodes/stk/src/Wurley.cpp
'''))


Cheers for any pointers,

Pete

Date2015-10-23 19:21
Fromjpff
SubjectRe: [Csnd-dev] building stk opcodes
I do not see scons in y stk sources -- just cnfigure-make.  What versio 
etc?


On Fri, 23 Oct 2015, Peter Burgess wrote:

> Hi there, I am trying to build the STK opcodes. I have very limited knowledge
> of how this will all work. I have read the manual and a few other sources to
> help me, but I am still stuggling to get it to work.
> 
> So far, I have copied the src, include and rawwaves folders into the opcode
> folder, as specified in the stkOpcodes.cpp. I have downloaded scons, and
> found the SConstruct file in plugginSTD, aswell as the custom.py file. I have
> edited the bottom of the SConstuct file to add the source file paths. When I
> added the include folder path in the same section, I got what looked like an
> error.
> 
> This is the section of the SConstuct file I have altered:
> 
> # Plugin opcodes.
> 
> makePlugin(pluginEnvironment, 'stkOpcodes', Split('''
> stkOpcodes.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/ADSR.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Asymp.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BandedWG.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BeeThree.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BiQuad.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Blit.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BlitSaw.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BlitSquare.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BlowBotl.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/BlowHole.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Bowed.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Brass.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Chorus.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Clarinet.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Delay.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/DelayA.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/DelayL.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Drummer.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Echo.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Envelope.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FileLoop.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FileRead.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FileWrite.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FileWvIn.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FileWvOut.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Fir.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Flute.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FM.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FMVoices.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FormSwep.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/FreeVerb.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Granulate.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Guitar.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/HevyMetl.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Iir.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/InetWvIn.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/InetWvOut.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/JCRev.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/LentPitShift.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Makefile.in
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Mandolin.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Mesh2D.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Messager.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/MidiFileIn.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Modal.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/ModalBar.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Modulate.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Moog.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Mutex.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Noise.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/NRev.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/OnePole.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/OneZero.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/PercFlut.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Phonemes.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/PitShift.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Plucked.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/PoleZero.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/PRCRev.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Resonate.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Rhodey.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/RtAudio.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/RtMidi.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/RtWvIn.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/RtWvOut.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Sampler.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Saxofony.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Shakers.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Simple.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/SineWave.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/SingWave.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Sitar.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Skini.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Socket.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Sphere.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/StifKarp.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Stk.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/TapDelay.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/TcpClient.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/TcpServer.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Thread.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/TubeBell.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Twang.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/TwoPole.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/TwoZero.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/UdpSocket.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Voicer.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/VoicForm.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Whistle.cpp
> /home/pete/Documents/Csound6.05/Opcodes/stk/src/Wurley.cpp
> '''))
> 
> 
> Cheers for any pointers,
> 
> Pete
> 

Date2015-10-23 21:14
FromPeter Burgess
SubjectRe: [Csnd-dev] building stk opcodes

Csound: linux 6.05 stk: 4.5.0

Sorry, I've never actually used scons before, all my programming experience so far has been using IDE's like codeblocks and visual studio.