Csound Csound-dev Csound-tekno Search About

[Csnd] signal flow question

Date2013-12-21 11:53
Fromzappfinger
Subject[Csnd] signal flow question
I'm trying a slightly modified version of Michael Gogin's signal flow
example, but I get no sound.
The ifreq and iamp variables print normal values, but amplitudes show 0.
When I comment out the 'outs' I do get sound.
What is wrong here?

Richard

 
 
;-Wfo SignalFlowGraph1.wav 
-odac -+rtmidi=portmidi -Ma
 
 

sr=44100
ksmps=32
nchnls=2
;0dbfs=1

connect "moogLadder", "leftout",  "Reverberator", "leftin" 
connect "moogLadder", "rightout", "Reverberator", "rightin" 

connect "Reverberator", "leftout",  "SoundFile", "leftin" 
connect "Reverberator", "rightout", "SoundFile", "rightin"

; Turn on the "effect" units in the signal flow graph. 

alwayson "Reverberator", 0.91, 12000 
;alwayson "Compressor" 
alwayson "Soundfile" 

				instr moogLadder
				;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
				; Default values:   p1  p2  p3  p4  p5  p6  p7  p8  p9  p10
			    pset			    0,  0,  10, 0,  0,  5000
ifreq			= cpsmidinn(p4)
; Rescale MIDI velocity range to a musically usable range of dB. 
iamp	 		= ampdb(p5 / 127 * 20.0 + 60.0) 
				print ifreq, iamp
ifiltfreq		=	p6
aout 			vco2 iamp, ifreq
aout 			moogladder aout, ifiltfreq, 0.25
				;outs	aout,aout
			    outleta 	        "leftout", aout 
			    outleta 	        "rightout", aout/.5 
				endin

			    instr Reverberator 
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
			    ; Stereo input. 
aleftin 		inleta 			    "leftin" 
arightin 		inleta 			    "rightin" 
idelay 			= 			        p4 
icutoff 		= 			        p5 
aleft, aright 	reverbsc 	        aleftin, arightin, idelay, icutoff 
			    ; Stereo output. 
			    outleta 	        "leftout", aleft 
			    outleta 	        "rightout", aright 
			    endin 
			    
			    instr Soundfile 
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
			    ; Stereo input. 
aleftin 		inleta 		        "leftin" 
arightin 		inleta 		        "rightin" 
			    outs 		        aleftin, arightin 
			    endin
			    
 
 

i "moogLadder" 0 5 67 120 
i "moogLadder" 5 5 71 110 
e 1

 
 



--
View this message in context: http://csound.1045644.n5.nabble.com/signal-flow-question-tp5730905.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-12-21 13:48
FromMichael Gogins
SubjectRe: [Csnd] signal flow question
The signal flow opcodes are case-sensitive with respect to names. I changed "SoundFile" to "Soundfile" throughout the file, and it worked for me.

Hope this helps,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Dec 21, 2013 at 6:53 AM, zappfinger <zappfinger@gmail.com> wrote:
I'm trying a slightly modified version of Michael Gogin's signal flow
example, but I get no sound.
The ifreq and iamp variables print normal values, but amplitudes show 0.
When I comment out the 'outs' I do get sound.
What is wrong here?

Richard

<CsoundSynthesizer>
<CsOptions>
;-Wfo SignalFlowGraph1.wav
-odac -+rtmidi=portmidi -Ma
</CsOptions>
<CsInstruments>

sr=44100
ksmps=32
nchnls=2
;0dbfs=1

connect "moogLadder", "leftout",  "Reverberator", "leftin"
connect "moogLadder", "rightout", "Reverberator", "rightin"

connect "Reverberator", "leftout",  "SoundFile", "leftin"
connect "Reverberator", "rightout", "SoundFile", "rightin"

; Turn on the "effect" units in the signal flow graph.

alwayson "Reverberator", 0.91, 12000
;alwayson "Compressor"
alwayson "Soundfile"

                                instr moogLadder
                                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                                ; Default values:   p1  p2  p3  p4  p5  p6  p7  p8  p9  p10
                            pset                            0,  0,  10, 0,  0,  5000
ifreq                   = cpsmidinn(p4)
; Rescale MIDI velocity range to a musically usable range of dB.
iamp                    = ampdb(p5 / 127 * 20.0 + 60.0)
                                print ifreq, iamp
ifiltfreq               =       p6
aout                    vco2 iamp, ifreq
aout                    moogladder aout, ifiltfreq, 0.25
                                ;outs   aout,aout
                            outleta             "leftout", aout
                            outleta             "rightout", aout/.5
                                endin

                            instr Reverberator
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                            ; Stereo input.
aleftin                 inleta                      "leftin"
arightin                inleta                      "rightin"
idelay                  =                               p4
icutoff                 =                               p5
aleft, aright   reverbsc                aleftin, arightin, idelay, icutoff
                            ; Stereo output.
                            outleta             "leftout", aleft
                            outleta             "rightout", aright
                            endin

                            instr Soundfile
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                            ; Stereo input.
aleftin                 inleta                  "leftin"
arightin                inleta                  "rightin"
                            outs                        aleftin, arightin
                            endin

</CsInstruments>
<CsScore>

i "moogLadder" 0 5 67 120
i "moogLadder" 5 5 71 110
e 1

</CsScore>
</CsoundSynthesizer>



--
View this message in context: http://csound.1045644.n5.nabble.com/signal-flow-question-tp5730905.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-12-21 17:12
FromRichard van Bemmelen
SubjectRe: [Csnd] signal flow question
Thanks Michael! That was it...

Richard


2013/12/21 Michael Gogins <michael.gogins@gmail.com>
The signal flow opcodes are case-sensitive with respect to names. I changed "SoundFile" to "Soundfile" throughout the file, and it worked for me.

Hope this helps,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Dec 21, 2013 at 6:53 AM, zappfinger <zappfinger@gmail.com> wrote:
I'm trying a slightly modified version of Michael Gogin's signal flow
example, but I get no sound.
The ifreq and iamp variables print normal values, but amplitudes show 0.
When I comment out the 'outs' I do get sound.
What is wrong here?

Richard

<CsoundSynthesizer>
<CsOptions>
;-Wfo SignalFlowGraph1.wav
-odac -+rtmidi=portmidi -Ma
</CsOptions>
<CsInstruments>

sr=44100
ksmps=32
nchnls=2
;0dbfs=1

connect "moogLadder", "leftout",  "Reverberator", "leftin"
connect "moogLadder", "rightout", "Reverberator", "rightin"

connect "Reverberator", "leftout",  "SoundFile", "leftin"
connect "Reverberator", "rightout", "SoundFile", "rightin"

; Turn on the "effect" units in the signal flow graph.

alwayson "Reverberator", 0.91, 12000
;alwayson "Compressor"
alwayson "Soundfile"

                                instr moogLadder
                                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                                ; Default values:   p1  p2  p3  p4  p5  p6  p7  p8  p9  p10
                            pset                            0,  0,  10, 0,  0,  5000
ifreq                   = cpsmidinn(p4)
; Rescale MIDI velocity range to a musically usable range of dB.
iamp                    = ampdb(p5 / 127 * 20.0 + 60.0)
                                print ifreq, iamp
ifiltfreq               =       p6
aout                    vco2 iamp, ifreq
aout                    moogladder aout, ifiltfreq, 0.25
                                ;outs   aout,aout
                            outleta             "leftout", aout
                            outleta             "rightout", aout/.5
                                endin

                            instr Reverberator
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                            ; Stereo input.
aleftin                 inleta                      "leftin"
arightin                inleta                      "rightin"
idelay                  =                               p4
icutoff                 =                               p5
aleft, aright   reverbsc                aleftin, arightin, idelay, icutoff
                            ; Stereo output.
                            outleta             "leftout", aleft
                            outleta             "rightout", aright
                            endin

                            instr Soundfile
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                            ; Stereo input.
aleftin                 inleta                  "leftin"
arightin                inleta                  "rightin"
                            outs                        aleftin, arightin
                            endin

</CsInstruments>
<CsScore>

i "moogLadder" 0 5 67 120
i "moogLadder" 5 5 71 110
e 1

</CsScore>
</CsoundSynthesizer>



--
View this message in context: http://csound.1045644.n5.nabble.com/signal-flow-question-tp5730905.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"