Csound Csound-dev Csound-tekno Search About

[Csnd] Help with MIDI scanned synth...

Date2010-04-15 15:13
FromAnthony Palomba
Subject[Csnd] Help with MIDI scanned synth...
Hey folks, I am trying to create a MIDI instrument that uses scanned synthesis.
I am using scanu/scans, it seems that when I run the .csd  below, it exits
and will not let me enter notes. Am I doing something wrong here?

I am running Vista csound 5.10 in Winxound.



<CsoundSynthesizer>
<CsOptions>
;-odac19 -+rtmidi=virtual -M0
</CsOptions>
<CsInstruments>

sr =   44100
ksmps =   4410
nchnls =   1

massign         0, 1  ; assign all channels to instr1

instr 1

    iCPS cpsmidi
    iAmp veloc 0.01, 1
   
    a0  = 0
    ;   scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp, kmass, kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp, id
    scanu 1,     .01,    6,       2,       3,     4,        5,       2,     .1,    .1,     -.01,  .1,    .5,     0,    0,        a0,  1,     2
    ;ar scans kamp,      kfreq,      ifntraj, id
    a1  scans iAmp, iCPS, 7,       2
    out a1
endin



</CsInstruments>
<CsScore>

; Initial condition
f1 0 128 7 0 64 1 64 0
  
; Masses
f2 0 128 -7 1 128 1
  
; Spring matrices
f3 0 16384 -23 "ScanMatrices/string-128.matrix"
  
; Centering force
f4  0 128 -7 0 128 2
  
; Damping
f5 0 128 -7 1 128 1
  
; Initial velocity
f6 0 128 -7 0 128 0
  
; Trajectories
f7 0 128 -5 .001 128 128

; Note list
;i1 0  10  86 6.00
;i1 11 14  86 7.00
;i1 15 20  86 5.00

i1 0 -1

e


</CsScore>
</CsoundSynthesizer>


Date2010-04-15 15:40
FromSteven Yi
Subject[Csnd] Re: Help with MIDI scanned synth...
Hi Anthony,

I think the "i1 0 -1" doesn't do what you think it does.  It will hold
a note while other notes exist, but since none other exist, it's going
to close out early. I'd try putting in an "f0 3600" to keep csound
running instead.  (Note: There was an email thread titled "Infinite
Duration Proposal" here a little while back that discussed a little
bit about held notes)

Hope that helps!
steven

On Thu, Apr 15, 2010 at 10:13 AM, Anthony Palomba
 wrote:
> Hey folks, I am trying to create a MIDI instrument that uses scanned
> synthesis.
> I am using scanu/scans, it seems that when I run the .csd  below, it exits
> and will not let me enter notes. Am I doing something wrong here?
>
> I am running Vista csound 5.10 in Winxound.
>
>
>
> 
> 
> ;-odac19 -+rtmidi=virtual -M0
> 
> 
>
> sr =   44100
> ksmps =   4410
> nchnls =   1
>
> massign         0, 1  ; assign all channels to instr1
>
> instr 1
>
>     iCPS cpsmidi
>     iAmp veloc 0.01, 1
>
>     a0  = 0
>     ;   scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp,
> kmass, kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp, id
>     scanu 1,     .01,    6,       2,       3,     4,        5,       2,
> .1,    .1,     -.01,  .1,    .5,     0,    0,        a0,  1,     2
>     ;ar scans kamp,      kfreq,      ifntraj, id
>     a1  scans iAmp, iCPS, 7,       2
>     out a1
> endin
>
>
>
> 
> 
>
> ; Initial condition
> f1 0 128 7 0 64 1 64 0
>
> ; Masses
> f2 0 128 -7 1 128 1
>
> ; Spring matrices
> f3 0 16384 -23 "ScanMatrices/string-128.matrix"
>
> ; Centering force
> f4  0 128 -7 0 128 2
>
> ; Damping
> f5 0 128 -7 1 128 1
>
> ; Initial velocity
> f6 0 128 -7 0 128 0
>
> ; Trajectories
> f7 0 128 -5 .001 128 128
>
> ; Note list
> ;i1 0  10  86 6.00
> ;i1 11 14  86 7.00
> ;i1 15 20  86 5.00
>
> i1 0 -1
>
> e
>
>
> 
> 
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-04-15 19:52
FromAnthony Palomba
Subject[Csnd] Re: Re: Help with MIDI scanned synth...
Hey Steven., thanks for the response.

I got it working, fixed csd is bellow. Obviously I need to hook
up the rest of the parameters to MIDI and experiment with them.
As is, my scanned synth instrument sounds a little weak and lacks
any real warmth.

Since you have a lot of experience using scanned synthesis,
I was wondering if you could give me some recommendations on
what I could do to make it sound better.



Thanks,
Anthony




<CsoundSynthesizer>
<CsOptions>
;-odac19 -+rtmidi=virtual -M0
</CsOptions>
<CsInstruments>

sr =   44100
ksmps =   4410
nchnls =   1

massign         0, 1  ; assign all channels to instr1

instr 1

    iCPS cpsmidi
    iAmp veloc 0.01, 1
  
    a0  = 0
    ;   scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp, kmass, kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp, id
    scanu 1,     .01,    6,       2,       3,     4,        5,       2,     .1,    .1,     -.01,  .1,    .5,     0,    0,        a0,  1,     2
    ;ar scans kamp,      kfreq,      ifntraj, id
    a1  scans iAmp * 30000, iCPS, 7,       2
    out a1
endin



</CsInstruments>
<CsScore>

f0 3600

; Initial condition
f1 0 128 7 0 64 1 64 0
 
; Masses
f2 0 128 -7 1 128 1
 
; Spring matrices
f3 0 16384 -23 "ScanMatrices/string-128.matrix"
 
; Centering force
f4  0 128 -7 0 128 2
 
; Damping
f5 0 128 -7 1 128 1
 
; Initial velocity
f6 0 128 -7 0 128 0
 
; Trajectories
f7 0 128 -5 .001 128 128

; Note list
i1 0  10  86 6.00
;i1 11 14  86 7.00
;i1 15 20  86 5.00


e


</CsScore>
</CsoundSynthesizer>

On Thu, Apr 15, 2010 at 9:40 AM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Anthony,

I think the "i1 0 -1" doesn't do what you think it does.  It will hold
a note while other notes exist, but since none other exist, it's going
to close out early. I'd try putting in an "f0 3600" to keep csound
running instead.  (Note: There was an email thread titled "Infinite
Duration Proposal" here a little while back that discussed a little
bit about held notes)

Hope that helps!
steven

On Thu, Apr 15, 2010 at 10:13 AM, Anthony Palomba
<apalomba@austin.rr.com> wrote:
> Hey folks, I am trying to create a MIDI instrument that uses scanned
> synthesis.
> I am using scanu/scans, it seems that when I run the .csd  below, it exits
> and will not let me enter notes. Am I doing something wrong here?
>
> I am running Vista csound 5.10 in Winxound.
>
>
>
> <CsoundSynthesizer>
> <CsOptions>
> ;-odac19 -+rtmidi=virtual -M0
> </CsOptions>
> <CsInstruments>
>
> sr =   44100
> ksmps =   4410
> nchnls =   1
>
> massign         0, 1  ; assign all channels to instr1
>
> instr 1
>
>     iCPS cpsmidi
>     iAmp veloc 0.01, 1
>
>     a0  = 0
>     ;   scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp,
> kmass, kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp, id
>     scanu 1,     .01,    6,       2,       3,     4,        5,       2,
> .1,    .1,     -.01,  .1,    .5,     0,    0,        a0,  1,     2
>     ;ar scans kamp,      kfreq,      ifntraj, id
>     a1  scans iAmp, iCPS, 7,       2
>     out a1
> endin
>
>
>
> </CsInstruments>
> <CsScore>
>
> ; Initial condition
> f1 0 128 7 0 64 1 64 0
>
> ; Masses
> f2 0 128 -7 1 128 1
>
> ; Spring matrices
> f3 0 16384 -23 "ScanMatrices/string-128.matrix"
>
> ; Centering force
> f4  0 128 -7 0 128 2
>
> ; Damping
> f5 0 128 -7 1 128 1
>
> ; Initial velocity
> f6 0 128 -7 0 128 0
>
> ; Trajectories
> f7 0 128 -5 .001 128 128
>
> ; Note list
> ;i1 0  10  86 6.00
> ;i1 11 14  86 7.00
> ;i1 15 20  86 5.00
>
> i1 0 -1
>
> e
>
>
> </CsScore>
> </CsoundSynthesizer>
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-04-15 20:19
FromSteven Yi
Subject[Csnd] Re: Re: Re: Help with MIDI scanned synth...
Hi Anthony,

Glad you got it going!  I haven't used scanned synthesis in a while,
but when I did write down my experiences regarding it back in 2003 in
an article called "Working with Scanned Synthesis":

http://www.csounds.com/stevenyi/

I think the points in the section "Thoughts about String Instruments"
sum up most of what I found in working with scanned synth.  To get the
sounds I most enjoyed with scanned I needed to add at least one
reverb. I think if I was to use it today I would probably try it out
with streson or some fixed reson filters to work like a body of an
instrument, and depending on the musical material I would try running
it through a chorus effect.  I do remember when I first worked with it
I was doing things with glissando for pitch and it came across as
having a very electic guitar like sound, but I don't remember exactly
what I had done and am not sure if I have the project files for that
around.

You may also want to check out the demo for Scanned Synth VST
(http://www.humanoidsounds.co.uk/products.html) to get ideas for
sounds that can be made with scanned synthesis.  I'm not much into the
really sound effect-y sounds that are in the demo audio files there
myself, but it's nice to know the kinds of sounds Scanned can make.

Hope that helps!
steven

On Thu, Apr 15, 2010 at 2:52 PM, Anthony Palomba  wrote:
> Hey Steven., thanks for the response.
>
> I got it working, fixed csd is bellow. Obviously I need to hook
> up the rest of the parameters to MIDI and experiment with them.
> As is, my scanned synth instrument sounds a little weak and lacks
> any real warmth.
>
> Since you have a lot of experience using scanned synthesis,
> I was wondering if you could give me some recommendations on
> what I could do to make it sound better.
>
>
>
> Thanks,
> Anthony
>
>
>
>
> 
> 
> ;-odac19 -+rtmidi=virtual -M0
> 
> 
>
> sr =   44100
> ksmps =   4410
> nchnls =   1
>
> massign         0, 1  ; assign all channels to instr1
>
> instr 1
>
>     iCPS cpsmidi
>     iAmp veloc 0.01, 1
>
>     a0  = 0
>     ;   scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp,
> kmass, kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp, id
>     scanu 1,     .01,    6,       2,       3,     4,        5,       2,
> .1,    .1,     -.01,  .1,    .5,     0,    0,        a0,  1,     2
>     ;ar scans kamp,      kfreq,      ifntraj, id
>     a1  scans iAmp * 30000, iCPS, 7,       2
>     out a1
> endin
>
>
>
> 
> 
>
> f0 3600
>
> ; Initial condition
> f1 0 128 7 0 64 1 64 0
>
> ; Masses
> f2 0 128 -7 1 128 1
>
> ; Spring matrices
> f3 0 16384 -23 "ScanMatrices/string-128.matrix"
>
> ; Centering force
> f4  0 128 -7 0 128 2
>
> ; Damping
> f5 0 128 -7 1 128 1
>
> ; Initial velocity
> f6 0 128 -7 0 128 0
>
> ; Trajectories
> f7 0 128 -5 .001 128 128
>
> ; Note list
> i1 0  10  86 6.00
> ;i1 11 14  86 7.00
> ;i1 15 20  86 5.00
>
>
> e
>
>
> 
> 
>
> On Thu, Apr 15, 2010 at 9:40 AM, Steven Yi  wrote:
>>
>> Hi Anthony,
>>
>> I think the "i1 0 -1" doesn't do what you think it does.  It will hold
>> a note while other notes exist, but since none other exist, it's going
>> to close out early. I'd try putting in an "f0 3600" to keep csound
>> running instead.  (Note: There was an email thread titled "Infinite
>> Duration Proposal" here a little while back that discussed a little
>> bit about held notes)
>>
>> Hope that helps!
>> steven
>>
>> On Thu, Apr 15, 2010 at 10:13 AM, Anthony Palomba
>>  wrote:
>> > Hey folks, I am trying to create a MIDI instrument that uses scanned
>> > synthesis.
>> > I am using scanu/scans, it seems that when I run the .csd  below, it
>> > exits
>> > and will not let me enter notes. Am I doing something wrong here?
>> >
>> > I am running Vista csound 5.10 in Winxound.
>> >
>> >
>> >
>> > 
>> > 
>> > ;-odac19 -+rtmidi=virtual -M0
>> > 
>> > 
>> >
>> > sr =   44100
>> > ksmps =   4410
>> > nchnls =   1
>> >
>> > massign         0, 1  ; assign all channels to instr1
>> >
>> > instr 1
>> >
>> >     iCPS cpsmidi
>> >     iAmp veloc 0.01, 1
>> >
>> >     a0  = 0
>> >     ;   scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp,
>> > kmass, kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp,
>> > id
>> >     scanu 1,     .01,    6,       2,       3,     4,        5,       2,
>> > .1,    .1,     -.01,  .1,    .5,     0,    0,        a0,  1,     2
>> >     ;ar scans kamp,      kfreq,      ifntraj, id
>> >     a1  scans iAmp, iCPS, 7,       2
>> >     out a1
>> > endin
>> >
>> >
>> >
>> > 
>> > 
>> >
>> > ; Initial condition
>> > f1 0 128 7 0 64 1 64 0
>> >
>> > ; Masses
>> > f2 0 128 -7 1 128 1
>> >
>> > ; Spring matrices
>> > f3 0 16384 -23 "ScanMatrices/string-128.matrix"
>> >
>> > ; Centering force
>> > f4  0 128 -7 0 128 2
>> >
>> > ; Damping
>> > f5 0 128 -7 1 128 1
>> >
>> > ; Initial velocity
>> > f6 0 128 -7 0 128 0
>> >
>> > ; Trajectories
>> > f7 0 128 -5 .001 128 128
>> >
>> > ; Note list
>> > ;i1 0  10  86 6.00
>> > ;i1 11 14  86 7.00
>> > ;i1 15 20  86 5.00
>> >
>> > i1 0 -1
>> >
>> > e
>> >
>> >
>> > 
>> > 
>> >
>> >
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"