Csound Csound-dev Csound-tekno Search About

[Csnd] Turning Risset Bell instrument to real time

Date2011-07-01 03:38
FromSamuel Sagan
Subject[Csnd] Turning Risset Bell instrument to real time
Dear Csound community,

How would you go about turning the following instrument (Risset Bells, from
the Dr Boulanger collection of Csound Instruments) into a real-time
instrument?
Clearly, the problem has to do with getting rid of p3 in the orchestra file,
while retaining the timber quality.

The code is below.

Thanks! (It's a great instrument. It would be an asset for everyone if we
could play it live.)



; RISSET'S INSTRUMENT DESIGN FO A BELL-LIKE SOUND



sr        =         44100

kr        =         4410

ksmps     =         10

nchnls    =         1



          instr 1,2,3,4



; p3      =         duration

; p4      =         freq in Hz

; p5      =         amplitude



; PEAK AMPS OF THE PARTIALS ARE A FUNCTION OF THE AMP OF THE LOWEST PARTIAL



i1        =         p5

i2        =         p5*0.67

i3        =         p5*1.35

i4        =         p5*1.80

i5        =         p5*2.67

i6        =         p5*1.67

i7        =         p5*1.46

i8        =         p5*1.33

i9        =         p5*1.33

i10       =         p5*0.75

i11       =         p5*1.33



; DURATIONS OF THE PARTIALS ARE A FUNCTION OF THE DURATION OF THE LOWEST
PARTIAL

                    

i12       =         p3

i13       =         p3*.9

i14       =         p3*.65

i15       =         p3*.55

i16       =         p3*.325

i17       =         p3*.35

i18       =         p3*.25

i19       =         p3*.2

i20       =         p3*.15

i21       =         p3*.1

i22       =         p3*.075



; FREQUENCIES OF THE PARTIALS ARE A FUNCTION OF THE FREQUENCY OF THE
FUNDAMENTAL



i23       =         p4*.56

i24       =         (p4*.56)+1

i25       =         p4*.92

i26       =         (p4*.92)+1.7

i27       =         p4*1.19

i28       =         p4*1.7

i29       =         p4*2

i30       =         p4*2.74

i31       =         p4*3

i32       =         p4*3.75

i33       =         p4*4.07



; THE INSTRUMENT CONSISTS OF PAIRS Of oscil1/oscili

; WHERE OSCIL1 PROVIDES THE ENVELOPE OF THE PARTIAL

; AND OSCILI THE PARTIAL ITSELF



k1        oscil1    0,i1,i12,1

a1        oscili    k1,i23,2



k2        oscil1    0,i2,i13,1

a2        oscili    k1,i24,2



k3        oscil1    0,i3,i14,1

a3        oscili    k1,i25,2



k4        oscil1    0,i4,i15,1

a4        oscili    k1,i26,2



k5        oscil1    0,i5,i16,1

a5        oscili    k1,i27,2



k6        oscil1    0,i6,i17,1

a6        oscili    k1,i28,2



k7        oscil1    0,i7,i18,1

a7        oscili    k1,i29,2



k8        oscil1    0,i8,i19,1

a8        oscili    k1,i30,2



k9        oscil1    0,i9,i20,1

a9        oscili    k1,i31,2



k10       oscil1    0,i10,i21,1

a10       oscili    k1,i32,2



k11       oscil1    0,i11,i22,1

a11       oscili    k1,i33,2



          out       a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11



          endin

--
View this message in context: http://csound.1045644.n5.nabble.com/Turning-Risset-Bell-instrument-to-real-time-tp4540816p4540816.html
Sent from the Csound - General mailing list archive at Nabble.com.


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"

Date2011-07-01 07:16
FromIain McCurdy
SubjectRE: [Csnd] Turning Risset Bell instrument to real time
something like this?
p3s changed to idur. Change envelopes from oscil1 to expsegr. p4,p5 from midi.
I.


<CsoundSynthesizer>

<CsOptions>
-odac -M0 -+rtmidi=virtual -dm0
</CsOptions>

<CsInstruments>
                                                             
; RISSET'S INSTRUMENT DESIGN FOR A BELL-LIKE SOUND
sr        =         44100
kr        =         4410
ksmps     =         10
nchnls    =         1
0dbfs     =         1
 
 
          instr 1
idur      =         8
p4        cpsmidi
p5 ampmidi 0.03
 
; PEAK AMPS OF THE PARTIALS ARE A FUNCTION OF THE AMP OF THE LOWEST PARTIAL
i1        =         p5
i2        =         p5*0.67
i3        =         p5*1.35
i4        =         p5*1.80
i5        =         p5*2.67
i6        =         p5*1.67
i7        =         p5*1.46
i8        =         p5*1.33
i9        =         p5*1.33
i10       =         p5*0.75
i11       =         p5*1.33
 
; DURATIONS OF THE PARTIALS ARE A FUNCTION OF THE DURATION
; OF THE LOWEST PARTIAL
i12       =         idur
i13       =         idur*.9
i14       =         idur*.65
i15       =         idur*.55
i16       =         idur*.325
i17       =         idur*.35
i18       =         idur*.25
i19       =         idur*.2
i20       =         idur*.15
i21       =         idur*.1
i22       =         idur*.075
 
; FREQUENCIES OF THE PARTIALS ARE A FUNCTION OF THE FREQUENCY
; OF THE FUNDAMENTAL
i23       =         p4*.56
i24       =         (p4*.56)+1
i25       =         p4*.92
i26       =         (p4*.92)+1.7
i27       =         p4*1.19
i28       =         p4*1.7
i29       =         p4*2
i30       =         p4*2.74
i31       =         p4*3
i32       =         p4*3.75
i33       =         p4*4.07
 
k1        expsegr   i1,i12,0.001*i1,0.1,0.001*i1
a1        oscili    k1,i23,2
 
k2        expsegr   i2,i13,0.001*i2,0.1,0.001*i2
a2        oscili    k2,i24,2
 
k3        expsegr   i3,i14,0.001*i3,0.1,0.001*i3
a3        oscili    k3,i25,2
 
k4        expsegr   i4,i15,0.001*i4,0.1,0.001*i4
a4        oscili    k4,i26,2
 
k5        expsegr   i5,i16,0.001*i5,0.1,0.001*i5
a5        oscili    k5,i27,2

k6        expsegr   i6,i17,0.001*i6,0.1,0.001*i6
a6        oscili    k6,i28,2
 
k7        expsegr   i7,i18,0.001*i7,0.1,0.001*i7
a7        oscili    k7,i29,2
 
k8        expsegr   i8,i19,0.001*i8,0.1,0.001*i8
a8        oscili    k8,i30,2

k9        expsegr   i9,i20,0.001*i9,0.1,0.001*i9
a9        oscili    k9,i31,2

k10       expsegr   i10,i21,0.001*i10,0.1,0.001*i10
a10       oscili    k10,i32,2
 
k11       expsegr   i11,i22,0.001*i11,0.1,0.001*i11
a11       oscili    k11,i33,2
 
          out       a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11

          endin
 </CsInstruments>

<CsScore>
f 2 0 4096 10 1
f 0 3600
e
</CsScore>

</CsoundSynthesizer>




> Date: Thu, 30 Jun 2011 19:38:20 -0700
> From: samuelsagan@gmail.com
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Turning Risset Bell instrument to real time
>
> Dear Csound community,
>
> How would you go about turning the following instrument (Risset Bells, from
> the Dr Boulanger collection of Csound Instruments) into a real-time
> instrument?
> Clearly, the problem has to do with getting rid of p3 in the orchestra file,
> while retaining the timber quality.
>
> The code is below.
>
> Thanks! (It's a great instrument. It would be an asset for everyone if we
> could play it live.)
>
>
>
> ; RISSET'S INSTRUMENT DESIGN FO A BELL-LIKE SOUND
>
>
>
> sr = 44100
>
> kr = 4410
>
> ksmps = 10
>
> nchnls = 1
>
>
>
> instr 1,2,3,4
>
>
>
> ; p3 = duration
>
> ; p4 = freq in Hz
>
> ; p5 = amplitude
>
>
>
> ; PEAK AMPS OF THE PARTIALS ARE A FUNCTION OF THE AMP OF THE LOWEST PARTIAL
>
>
>
> i1 = p5
>
> i2 = p5*0.67
>
> i3 = p5*1.35
>
> i4 = p5*1.80
>
> i5 = p5*2.67
>
> i6 = p5*1.67
>
> i7 = p5*1.46
>
> i8 = p5*1.33
>
> i9 = p5*1.33
>
> i10 = p5*0.75
>
> i11 = p5*1.33
>
>
>
> ; DURATIONS OF THE PARTIALS ARE A FUNCTION OF THE DURATION OF THE LOWEST
> PARTIAL
>
>
>
> i12 = p3
>
> i13 = p3*.9
>
> i14 = p3*.65
>
> i15 = p3*.55
>
> i16 = p3*.325
>
> i17 = p3*.35
>
> i18 = p3*.25
>
> i19 = p3*.2
>
> i20 = p3*.15
>
> i21 = p3*.1
>
> i22 = p3*.075
>
>
>
> ; FREQUENCIES OF THE PARTIALS ARE A FUNCTION OF THE FREQUENCY OF THE
> FUNDAMENTAL
>
>
>
> i23 = p4*.56
>
> i24 = (p4*.56)+1
>
> i25 = p4*.92
>
> i26 = (p4*.92)+1.7
>
> i27 = p4*1.19
>
> i28 = p4*1.7
>
> i29 = p4*2
>
> i30 = p4*2.74
>
> i31 = p4*3
>
> i32 = p4*3.75
>
> i33 = p4*4.07
>
>
>
> ; THE INSTRUMENT CONSISTS OF PAIRS Of oscil1/oscili
>
> ; WHERE OSCIL1 PROVIDES THE ENVELOPE OF THE PARTIAL
>
> ; AND OSCILI THE PARTIAL ITSELF
>
>
>
> k1 oscil1 0,i1,i12,1
>
> a1 oscili k1,i23,2
>
>
>
> k2 oscil1 0,i2,i13,1
>
> a2 oscili k1,i24,2
>
>
>
> k3 oscil1 0,i3,i14,1
>
> a3 oscili k1,i25,2
>
>
>
> k4 oscil1 0,i4,i15,1
>
> a4 oscili k1,i26,2
>
>
>
> k5 oscil1 0,i5,i16,1
>
> a5 oscili k1,i27,2
>
>
>
> k6 oscil1 0,i6,i17,1
>
> a6 oscili k1,i28,2
>
>
>
> k7 oscil1 0,i7,i18,1
>
> a7 oscili k1,i29,2
>
>
>
> k8 oscil1 0,i8,i19,1
>
> a8 oscili k1,i30,2
>
>
>
> k9 oscil1 0,i9,i20,1
>
> a9 oscili k1,i31,2
>
>
>
> k10 oscil1 0,i10,i21,1
>
> a10 oscili k1,i32,2
>
>
>
> k11 oscil1 0,i11,i22,1
>
> a11 oscili k1,i33,2
>
>
>
> out a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11
>
>
>
> endin
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Turning-Risset-Bell-instrument-to-real-time-tp4540816p4540816.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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"
>

Date2011-07-02 18:38
FromSamuel Sagan
Subject[Csnd] RE: Turning Risset Bell instrument to real time
Thank you very much Iain. It plays very nicely.

On another note, it's great to have someone like you that invests so much
work in creating real-time instruments.
Sometimes, going through collection of Csound instruments, real-time time
instruments tend to be rare, as if no one was really interested in them.


--
View this message in context: http://csound.1045644.n5.nabble.com/Turning-Risset-Bell-instrument-to-real-time-tp4540816p4545334.html
Sent from the Csound - General mailing list archive at Nabble.com.


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"

Date2011-07-03 16:54
FromJim Aikin
Subject[Csnd] RE: Turning Risset Bell instrument to real time
Thanks for posting this code. I'm going to have to play with it a little.
Mapping MIDI velocity to timbre would be useful, as would a release segment
for the envelopes, so the bell sounds as if it's being muted by hand.

--Jim Aikin

--
View this message in context: http://csound.1045644.n5.nabble.com/Turning-Risset-Bell-instrument-to-real-time-tp4540816p4547462.html
Sent from the Csound - General mailing list archive at Nabble.com.


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"