Csound Csound-dev Csound-tekno Search About

[Csnd] Streson i-value to k-value problem...

Date2011-05-06 18:10
FromAnthony Palomba
Subject[Csnd] Streson i-value to k-value problem...
Hey folks,

I am working on a csound FX that takes an audio signal and
runs it through streson to add some shimmer to it.
I am currently running my csd file in Max.

I want to be able to control the feedback gain via MIDI.
But since this an FX, it is constantly on. When I try to set
ikfdbgain using changet, it only sets it when the instrument
initially starts.

I tried creating a kfdbgain and updating that, but
the compiler gives me the following error:

Compiler Info/Warnings/Errors:
error:  input arg 'kfdbgain' of type k not allowed when expecting m, line 40:
    ifdbgain = kfdbgain
1 syntax errors in orchestra.  compilation invalid


How can I dynamically change an irate variable and
re-trigger execution of streson? Instrument is bellow.



Anthony





; reson fx
instr 1

    ; our in put signals
    ainL inch 1
    ainR inch 2

    iCps cpsmidi

    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay line.
    ; A value close to 1 creates a slower decay and a more pronounced resonance.
    ; Small values may leave the input signal unaffected. Depending on the filter
    ; frequency, typical values are > .9.
    kfdbgain chnget "fdbgain"
    ifdbgain = kfdbgain

    ; Run our sine wave through the string resonator.
    asig = ainL + ainR
    astres streson asig, iCps, ifdbgain


    ; The resonance can get quite loud.
    ; So we'll clip the signal at 30,000.
    a1 clip astres, 1, 30000
    outch 1, a1, 2, a1

endin




Date2011-05-06 18:21
FromVictor Lazzarini
SubjectRe: [Csnd] Streson i-value to k-value problem...
ifdbgain = i(kfdbgain) ?


On 6 May 2011, at 18:10, Anthony Palomba wrote:

> Hey folks,
>
> I am working on a csound FX that takes an audio signal and
> runs it through streson to add some shimmer to it.
> I am currently running my csd file in Max.
>
> I want to be able to control the feedback gain via MIDI.
> But since this an FX, it is constantly on. When I try to set
> ikfdbgain using changet, it only sets it when the instrument
> initially starts.
>
> I tried creating a kfdbgain and updating that, but
> the compiler gives me the following error:
>
> Compiler Info/Warnings/Errors:
> error:  input arg 'kfdbgain' of type k not allowed when expecting m,  
> line 40:
>     ifdbgain = kfdbgain
> 1 syntax errors in orchestra.  compilation invalid
>
>
> How can I dynamically change an irate variable and
> re-trigger execution of streson? Instrument is bellow.
>
>
>
> Anthony
>
>
>
>
>
> ; reson fx
> instr 1
>
>     ; our in put signals
>     ainL inch 1
>     ainR inch 2
>
>     iCps cpsmidi
>
>     ; ifdbgain -- feedback gain, between 0 and 1, of the internal  
> delay line.
>     ; A value close to 1 creates a slower decay and a more  
> pronounced resonance.
>     ; Small values may leave the input signal unaffected. Depending  
> on the filter
>     ; frequency, typical values are > .9.
>     kfdbgain chnget "fdbgain"
>     ifdbgain = kfdbgain
>
>     ; Run our sine wave through the string resonator.
>     asig = ainL + ainR
>     astres streson asig, iCps, ifdbgain
>
>
>     ; The resonance can get quite loud.
>     ; So we'll clip the signal at 30,000.
>     a1 clip astres, 1, 30000
>     outch 1, a1, 2, a1
>
> endin
>
>
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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-05-07 03:34
FromAnthony Palomba
SubjectRe: [Csnd] Streson i-value to k-value problem...
Hey Victor,

Thanks for the response, I did not know you could "cast" values.
That seems to have taken care of the compiler issue.

And I can see chnget changing when I printk it out. But it seems that
changing the i-value after the performance has started causes streson to have no
effect on the input sound.

I am trying to control the feedback gain in real time. Any ideas?




-ap




On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
ifdbgain = i(kfdbgain) ?



On 6 May 2011, at 18:10, Anthony Palomba wrote:

Hey folks,

I am working on a csound FX that takes an audio signal and
runs it through streson to add some shimmer to it.
I am currently running my csd file in Max.

I want to be able to control the feedback gain via MIDI.
But since this an FX, it is constantly on. When I try to set
ikfdbgain using changet, it only sets it when the instrument
initially starts.

I tried creating a kfdbgain and updating that, but
the compiler gives me the following error:

Compiler Info/Warnings/Errors:
error:  input arg 'kfdbgain' of type k not allowed when expecting m, line 40:
   ifdbgain = kfdbgain
1 syntax errors in orchestra.  compilation invalid


How can I dynamically change an irate variable and
re-trigger execution of streson? Instrument is bellow.



Anthony





; reson fx
instr 1

   ; our in put signals
   ainL inch 1
   ainR inch 2

   iCps cpsmidi

   ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay line.
   ; A value close to 1 creates a slower decay and a more pronounced resonance.
   ; Small values may leave the input signal unaffected. Depending on the filter
   ; frequency, typical values are > .9.
   kfdbgain chnget "fdbgain"
   ifdbgain = kfdbgain

   ; Run our sine wave through the string resonator.
   asig = ainL + ainR
   astres streson asig, iCps, ifdbgain


   ; The resonance can get quite loud.
   ; So we'll clip the signal at 30,000.
   a1 clip astres, 1, 30000
   outch 1, a1, 2, a1

endin




Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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-05-07 03:54
FromJustin Glenn Smith
SubjectRe: [Csnd] Streson i-value to k-value problem...
In your situation I would either considering making a new version of streson that takes a k value for feedback gain, or just use some other resonant filter that has adjustable feedback / quality / resonance like mode, reson, resony, resonx, moogladder, moogvcf. In terms of implementation they are all based on some combination of delay lines and feedback, whether you call them string models or resonant lowpass filters or whatever.

Anthony Palomba wrote:
> Hey Victor,
> 
> Thanks for the response, I did not know you could "cast" values.
> That seems to have taken care of the compiler issue.
> 
> And I can see chnget changing when I printk it out. But it seems that
> changing the i-value after the performance has started causes streson to
> have no
> effect on the input sound.
> 
> I am trying to control the feedback gain in real time. Any ideas?
> 
> 
> 
> 
> -ap
> 
> 
> 
> 
> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
> wrote:
> 
>> ifdbgain = i(kfdbgain) ?
>>
>>
>>
>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>
>>  Hey folks,
>>> I am working on a csound FX that takes an audio signal and
>>> runs it through streson to add some shimmer to it.
>>> I am currently running my csd file in Max.
>>>
>>> I want to be able to control the feedback gain via MIDI.
>>> But since this an FX, it is constantly on. When I try to set
>>> ikfdbgain using changet, it only sets it when the instrument
>>> initially starts.
>>>
>>> I tried creating a kfdbgain and updating that, but
>>> the compiler gives me the following error:
>>>
>>> Compiler Info/Warnings/Errors:
>>> error:  input arg 'kfdbgain' of type k not allowed when expecting m, line
>>> 40:
>>>    ifdbgain = kfdbgain
>>> 1 syntax errors in orchestra.  compilation invalid
>>>
>>>
>>> How can I dynamically change an irate variable and
>>> re-trigger execution of streson? Instrument is bellow.
>>>
>>>
>>>
>>> Anthony
>>>
>>>
>>>
>>>
>>>
>>> ; reson fx
>>> instr 1
>>>
>>>    ; our in put signals
>>>    ainL inch 1
>>>    ainR inch 2
>>>
>>>    iCps cpsmidi
>>>
>>>    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay
>>> line.
>>>    ; A value close to 1 creates a slower decay and a more pronounced
>>> resonance.
>>>    ; Small values may leave the input signal unaffected. Depending on the
>>> filter
>>>    ; frequency, typical values are > .9.
>>>    kfdbgain chnget "fdbgain"
>>>    ifdbgain = kfdbgain
>>>
>>>    ; Run our sine wave through the string resonator.
>>>    asig = ainL + ainR
>>>    astres streson asig, iCps, ifdbgain
>>>
>>>
>>>    ; The resonance can get quite loud.
>>>    ; So we'll clip the signal at 30,000.
>>>    a1 clip astres, 1, 30000
>>>    outch 1, a1, 2, a1
>>>
>>> endin
>>>
>>>
>>>
>>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> 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"
> 
> 



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-05-07 18:52
FromRene Jopi
SubjectRe: [Csnd] Streson i-value to k-value problem...
Attachmentsstreson_fl.csd  
Have a look at http://iainmccurdy.org/csound.html file streson.csd.

He use reinit to update the i-rate feedback k value from the gui. 

Best,
René





2011/5/7 Justin Glenn Smith <noisesmith@gmail.com>
In your situation I would either considering making a new version of streson that takes a k value for feedback gain, or just use some other resonant filter that has adjustable feedback / quality / resonance like mode, reson, resony, resonx, moogladder, moogvcf. In terms of implementation they are all based on some combination of delay lines and feedback, whether you call them string models or resonant lowpass filters or whatever.

Anthony Palomba wrote:
> Hey Victor,
>
> Thanks for the response, I did not know you could "cast" values.
> That seems to have taken care of the compiler issue.
>
> And I can see chnget changing when I printk it out. But it seems that
> changing the i-value after the performance has started causes streson to
> have no
> effect on the input sound.
>
> I am trying to control the feedback gain in real time. Any ideas?
>
>
>
>
> -ap
>
>
>
>
> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie>wrote:
>
>> ifdbgain = i(kfdbgain) ?
>>
>>
>>
>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>
>>  Hey folks,
>>> I am working on a csound FX that takes an audio signal and
>>> runs it through streson to add some shimmer to it.
>>> I am currently running my csd file in Max.
>>>
>>> I want to be able to control the feedback gain via MIDI.
>>> But since this an FX, it is constantly on. When I try to set
>>> ikfdbgain using changet, it only sets it when the instrument
>>> initially starts.
>>>
>>> I tried creating a kfdbgain and updating that, but
>>> the compiler gives me the following error:
>>>
>>> Compiler Info/Warnings/Errors:
>>> error:  input arg 'kfdbgain' of type k not allowed when expecting m, line
>>> 40:
>>>    ifdbgain = kfdbgain
>>> 1 syntax errors in orchestra.  compilation invalid
>>>
>>>
>>> How can I dynamically change an irate variable and
>>> re-trigger execution of streson? Instrument is bellow.
>>>
>>>
>>>
>>> Anthony
>>>
>>>
>>>
>>>
>>>
>>> ; reson fx
>>> instr 1
>>>
>>>    ; our in put signals
>>>    ainL inch 1
>>>    ainR inch 2
>>>
>>>    iCps cpsmidi
>>>
>>>    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay
>>> line.
>>>    ; A value close to 1 creates a slower decay and a more pronounced
>>> resonance.
>>>    ; Small values may leave the input signal unaffected. Depending on the
>>> filter
>>>    ; frequency, typical values are > .9.
>>>    kfdbgain chnget "fdbgain"
>>>    ifdbgain = kfdbgain
>>>
>>>    ; Run our sine wave through the string resonator.
>>>    asig = ainL + ainR
>>>    astres streson asig, iCps, ifdbgain
>>>
>>>
>>>    ; The resonance can get quite loud.
>>>    ; So we'll clip the signal at 30,000.
>>>    a1 clip astres, 1, 30000
>>>    outch 1, a1, 2, a1
>>>
>>> endin
>>>
>>>
>>>
>>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> 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"
>
>



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-05-07 18:56
FromRene Jopi
SubjectRe: [Csnd] Streson i-value to k-value problem...
Attachmentsstreson.csd  
Hi,

Have a look at Iain McCurdy file streson.csd.

He use reinit to update the i-rate feedback k value from the gui. 

Best,
René





2011/5/7 Justin Glenn Smith <noisesmith@gmail.com>
In your situation I would either considering making a new version of streson that takes a k value for feedback gain, or just use some other resonant filter that has adjustable feedback / quality / resonance like mode, reson, resony, resonx, moogladder, moogvcf. In terms of implementation they are all based on some combination of delay lines and feedback, whether you call them string models or resonant lowpass filters or whatever.

Anthony Palomba wrote:
> Hey Victor,
>
> Thanks for the response, I did not know you could "cast" values.
> That seems to have taken care of the compiler issue.
>
> And I can see chnget changing when I printk it out. But it seems that
> changing the i-value after the performance has started causes streson to
> have no
> effect on the input sound.
>
> I am trying to control the feedback gain in real time. Any ideas?
>
>
>
>
> -ap
>
>
>
>
> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie>wrote:
>
>> ifdbgain = i(kfdbgain) ?
>>
>>
>>
>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>
>>  Hey folks,
>>> I am working on a csound FX that takes an audio signal and
>>> runs it through streson to add some shimmer to it.
>>> I am currently running my csd file in Max.
>>>
>>> I want to be able to control the feedback gain via MIDI.
>>> But since this an FX, it is constantly on. When I try to set
>>> ikfdbgain using changet, it only sets it when the instrument
>>> initially starts.
>>>
>>> I tried creating a kfdbgain and updating that, but
>>> the compiler gives me the following error:
>>>
>>> Compiler Info/Warnings/Errors:
>>> error:  input arg 'kfdbgain' of type k not allowed when expecting m, line
>>> 40:
>>>    ifdbgain = kfdbgain
>>> 1 syntax errors in orchestra.  compilation invalid
>>>
>>>
>>> How can I dynamically change an irate variable and
>>> re-trigger execution of streson? Instrument is bellow.
>>>
>>>
>>>
>>> Anthony
>>>
>>>
>>>
>>>
>>>
>>> ; reson fx
>>> instr 1
>>>
>>>    ; our in put signals
>>>    ainL inch 1
>>>    ainR inch 2
>>>
>>>    iCps cpsmidi
>>>
>>>    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay
>>> line.
>>>    ; A value close to 1 creates a slower decay and a more pronounced
>>> resonance.
>>>    ; Small values may leave the input signal unaffected. Depending on the
>>> filter
>>>    ; frequency, typical values are > .9.
>>>    kfdbgain chnget "fdbgain"
>>>    ifdbgain = kfdbgain
>>>
>>>    ; Run our sine wave through the string resonator.
>>>    asig = ainL + ainR
>>>    astres streson asig, iCps, ifdbgain
>>>
>>>
>>>    ; The resonance can get quite loud.
>>>    ; So we'll clip the signal at 30,000.
>>>    a1 clip astres, 1, 30000
>>>    outch 1, a1, 2, a1
>>>
>>> endin
>>>
>>>
>>>
>>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> 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"
>
>



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-05-07 21:53
FromVictor Lazzarini
SubjectRe: [Csnd] Streson i-value to k-value problem...
Well, there is no real reason for fdbgain to be just i-time, so I'm  
changing it on GIT.

Victor


On 7 May 2011, at 03:54, Justin Glenn Smith wrote:

> In your situation I would either considering making a new version of  
> streson that takes a k value for feedback gain, or just use some  
> other resonant filter that has adjustable feedback / quality /  
> resonance like mode, reson, resony, resonx, moogladder, moogvcf. In  
> terms of implementation they are all based on some combination of  
> delay lines and feedback, whether you call them string models or  
> resonant lowpass filters or whatever.
>
> Anthony Palomba wrote:
>> Hey Victor,
>>
>> Thanks for the response, I did not know you could "cast" values.
>> That seems to have taken care of the compiler issue.
>>
>> And I can see chnget changing when I printk it out. But it seems that
>> changing the i-value after the performance has started causes  
>> streson to
>> have no
>> effect on the input sound.
>>
>> I am trying to control the feedback gain in real time. Any ideas?
>>
>>
>>
>>
>> -ap
>>
>>
>>
>>
>> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
>> wrote:
>>
>>> ifdbgain = i(kfdbgain) ?
>>>
>>>
>>>
>>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>>
>>> Hey folks,
>>>> I am working on a csound FX that takes an audio signal and
>>>> runs it through streson to add some shimmer to it.
>>>> I am currently running my csd file in Max.
>>>>
>>>> I want to be able to control the feedback gain via MIDI.
>>>> But since this an FX, it is constantly on. When I try to set
>>>> ikfdbgain using changet, it only sets it when the instrument
>>>> initially starts.
>>>>
>>>> I tried creating a kfdbgain and updating that, but
>>>> the compiler gives me the following error:
>>>>
>>>> Compiler Info/Warnings/Errors:
>>>> error:  input arg 'kfdbgain' of type k not allowed when expecting  
>>>> m, line
>>>> 40:
>>>>   ifdbgain = kfdbgain
>>>> 1 syntax errors in orchestra.  compilation invalid
>>>>
>>>>
>>>> How can I dynamically change an irate variable and
>>>> re-trigger execution of streson? Instrument is bellow.
>>>>
>>>>
>>>>
>>>> Anthony
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ; reson fx
>>>> instr 1
>>>>
>>>>   ; our in put signals
>>>>   ainL inch 1
>>>>   ainR inch 2
>>>>
>>>>   iCps cpsmidi
>>>>
>>>>   ; ifdbgain -- feedback gain, between 0 and 1, of the internal  
>>>> delay
>>>> line.
>>>>   ; A value close to 1 creates a slower decay and a more pronounced
>>>> resonance.
>>>>   ; Small values may leave the input signal unaffected. Depending  
>>>> on the
>>>> filter
>>>>   ; frequency, typical values are > .9.
>>>>   kfdbgain chnget "fdbgain"
>>>>   ifdbgain = kfdbgain
>>>>
>>>>   ; Run our sine wave through the string resonator.
>>>>   asig = ainL + ainR
>>>>   astres streson asig, iCps, ifdbgain
>>>>
>>>>
>>>>   ; The resonance can get quite loud.
>>>>   ; So we'll clip the signal at 30,000.
>>>>   a1 clip astres, 1, 30000
>>>>   outch 1, a1, 2, a1
>>>>
>>>> endin
>>>>
>>>>
>>>>
>>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> 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"
>>
>>
>
>
>
> 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"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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-05-08 14:54
FromVictor Lazzarini
SubjectRe: [Csnd] Streson i-value to k-value problem...
done.
On 7 May 2011, at 21:53, Victor Lazzarini wrote:

> Well, there is no real reason for fdbgain to be just i-time, so I'm  
> changing it on GIT.
>
> Victor
>
>
> On 7 May 2011, at 03:54, Justin Glenn Smith wrote:
>
>> In your situation I would either considering making a new version  
>> of streson that takes a k value for feedback gain, or just use some  
>> other resonant filter that has adjustable feedback / quality /  
>> resonance like mode, reson, resony, resonx, moogladder, moogvcf. In  
>> terms of implementation they are all based on some combination of  
>> delay lines and feedback, whether you call them string models or  
>> resonant lowpass filters or whatever.
>>
>> Anthony Palomba wrote:
>>> Hey Victor,
>>>
>>> Thanks for the response, I did not know you could "cast" values.
>>> That seems to have taken care of the compiler issue.
>>>
>>> And I can see chnget changing when I printk it out. But it seems  
>>> that
>>> changing the i-value after the performance has started causes  
>>> streson to
>>> have no
>>> effect on the input sound.
>>>
>>> I am trying to control the feedback gain in real time. Any ideas?
>>>
>>>
>>>
>>>
>>> -ap
>>>
>>>
>>>
>>>
>>> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
>>> wrote:
>>>
>>>> ifdbgain = i(kfdbgain) ?
>>>>
>>>>
>>>>
>>>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>>>
>>>> Hey folks,
>>>>> I am working on a csound FX that takes an audio signal and
>>>>> runs it through streson to add some shimmer to it.
>>>>> I am currently running my csd file in Max.
>>>>>
>>>>> I want to be able to control the feedback gain via MIDI.
>>>>> But since this an FX, it is constantly on. When I try to set
>>>>> ikfdbgain using changet, it only sets it when the instrument
>>>>> initially starts.
>>>>>
>>>>> I tried creating a kfdbgain and updating that, but
>>>>> the compiler gives me the following error:
>>>>>
>>>>> Compiler Info/Warnings/Errors:
>>>>> error:  input arg 'kfdbgain' of type k not allowed when  
>>>>> expecting m, line
>>>>> 40:
>>>>>  ifdbgain = kfdbgain
>>>>> 1 syntax errors in orchestra.  compilation invalid
>>>>>
>>>>>
>>>>> How can I dynamically change an irate variable and
>>>>> re-trigger execution of streson? Instrument is bellow.
>>>>>
>>>>>
>>>>>
>>>>> Anthony
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ; reson fx
>>>>> instr 1
>>>>>
>>>>>  ; our in put signals
>>>>>  ainL inch 1
>>>>>  ainR inch 2
>>>>>
>>>>>  iCps cpsmidi
>>>>>
>>>>>  ; ifdbgain -- feedback gain, between 0 and 1, of the internal  
>>>>> delay
>>>>> line.
>>>>>  ; A value close to 1 creates a slower decay and a more pronounced
>>>>> resonance.
>>>>>  ; Small values may leave the input signal unaffected. Depending  
>>>>> on the
>>>>> filter
>>>>>  ; frequency, typical values are > .9.
>>>>>  kfdbgain chnget "fdbgain"
>>>>>  ifdbgain = kfdbgain
>>>>>
>>>>>  ; Run our sine wave through the string resonator.
>>>>>  asig = ainL + ainR
>>>>>  astres streson asig, iCps, ifdbgain
>>>>>
>>>>>
>>>>>  ; The resonance can get quite loud.
>>>>>  ; So we'll clip the signal at 30,000.
>>>>>  a1 clip astres, 1, 30000
>>>>>  outch 1, a1, 2, a1
>>>>>
>>>>> endin
>>>>>
>>>>>
>>>>>
>>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 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"
>>>
>>>
>>
>>
>>
>> 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"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> 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"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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-05-08 17:12
FromAnthony Palomba
SubjectRe: [Csnd] Streson i-value to k-value problem...
Ahhh that is what I was looking for.
I will give it a try.



-ap



On Sat, May 7, 2011 at 12:56 PM, Rene Jopi <rene.jopi@gmail.com> wrote:
Hi,

Have a look at Iain McCurdy file streson.csd.

He use reinit to update the i-rate feedback k value from the gui. 

Best,
René





2011/5/7 Justin Glenn Smith <noisesmith@gmail.com>
In your situation I would either considering making a new version of streson that takes a k value for feedback gain, or just use some other resonant filter that has adjustable feedback / quality / resonance like mode, reson, resony, resonx, moogladder, moogvcf. In terms of implementation they are all based on some combination of delay lines and feedback, whether you call them string models or resonant lowpass filters or whatever.

Anthony Palomba wrote:
> Hey Victor,
>
> Thanks for the response, I did not know you could "cast" values.
> That seems to have taken care of the compiler issue.
>
> And I can see chnget changing when I printk it out. But it seems that
> changing the i-value after the performance has started causes streson to
> have no
> effect on the input sound.
>
> I am trying to control the feedback gain in real time. Any ideas?
>
>
>
>
> -ap
>
>
>
>
> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie>wrote:
>
>> ifdbgain = i(kfdbgain) ?
>>
>>
>>
>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>
>>  Hey folks,
>>> I am working on a csound FX that takes an audio signal and
>>> runs it through streson to add some shimmer to it.
>>> I am currently running my csd file in Max.
>>>
>>> I want to be able to control the feedback gain via MIDI.
>>> But since this an FX, it is constantly on. When I try to set
>>> ikfdbgain using changet, it only sets it when the instrument
>>> initially starts.
>>>
>>> I tried creating a kfdbgain and updating that, but
>>> the compiler gives me the following error:
>>>
>>> Compiler Info/Warnings/Errors:
>>> error:  input arg 'kfdbgain' of type k not allowed when expecting m, line
>>> 40:
>>>    ifdbgain = kfdbgain
>>> 1 syntax errors in orchestra.  compilation invalid
>>>
>>>
>>> How can I dynamically change an irate variable and
>>> re-trigger execution of streson? Instrument is bellow.
>>>
>>>
>>>
>>> Anthony
>>>
>>>
>>>
>>>
>>>
>>> ; reson fx
>>> instr 1
>>>
>>>    ; our in put signals
>>>    ainL inch 1
>>>    ainR inch 2
>>>
>>>    iCps cpsmidi
>>>
>>>    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay
>>> line.
>>>    ; A value close to 1 creates a slower decay and a more pronounced
>>> resonance.
>>>    ; Small values may leave the input signal unaffected. Depending on the
>>> filter
>>>    ; frequency, typical values are > .9.
>>>    kfdbgain chnget "fdbgain"
>>>    ifdbgain = kfdbgain
>>>
>>>    ; Run our sine wave through the string resonator.
>>>    asig = ainL + ainR
>>>    astres streson asig, iCps, ifdbgain
>>>
>>>
>>>    ; The resonance can get quite loud.
>>>    ; So we'll clip the signal at 30,000.
>>>    a1 clip astres, 1, 30000
>>>    outch 1, a1, 2, a1
>>>
>>> endin
>>>
>>>
>>>
>>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> 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"
>
>



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-05-08 17:51
FromVictor Lazzarini
SubjectRe: [Csnd] Streson i-value to k-value problem...
From the next release, this is not going to be needed...
On 8 May 2011, at 17:12, Anthony Palomba wrote:

Ahhh that is what I was looking for.
I will give it a try.



-ap



On Sat, May 7, 2011 at 12:56 PM, Rene Jopi <rene.jopi@gmail.com> wrote:
Hi,

Have a look at Iain McCurdy file streson.csd.

He use reinit to update the i-rate feedback k value from the gui. 

Best,
René





2011/5/7 Justin Glenn Smith <noisesmith@gmail.com>
In your situation I would either considering making a new version of streson that takes a k value for feedback gain, or just use some other resonant filter that has adjustable feedback / quality / resonance like mode, reson, resony, resonx, moogladder, moogvcf. In terms of implementation they are all based on some combination of delay lines and feedback, whether you call them string models or resonant lowpass filters or whatever.

Anthony Palomba wrote:
> Hey Victor,
>
> Thanks for the response, I did not know you could "cast" values.
> That seems to have taken care of the compiler issue.
>
> And I can see chnget changing when I printk it out. But it seems that
> changing the i-value after the performance has started causes streson to
> have no
> effect on the input sound.
>
> I am trying to control the feedback gain in real time. Any ideas?
>
>
>
>
> -ap
>
>
>
>
> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie>wrote:
>
>> ifdbgain = i(kfdbgain) ?
>>
>>
>>
>> On 6 May 2011, at 18:10, Anthony Palomba wrote:
>>
>>  Hey folks,
>>> I am working on a csound FX that takes an audio signal and
>>> runs it through streson to add some shimmer to it.
>>> I am currently running my csd file in Max.
>>>
>>> I want to be able to control the feedback gain via MIDI.
>>> But since this an FX, it is constantly on. When I try to set
>>> ikfdbgain using changet, it only sets it when the instrument
>>> initially starts.
>>>
>>> I tried creating a kfdbgain and updating that, but
>>> the compiler gives me the following error:
>>>
>>> Compiler Info/Warnings/Errors:
>>> error:  input arg 'kfdbgain' of type k not allowed when expecting m, line
>>> 40:
>>>    ifdbgain = kfdbgain
>>> 1 syntax errors in orchestra.  compilation invalid
>>>
>>>
>>> How can I dynamically change an irate variable and
>>> re-trigger execution of streson? Instrument is bellow.
>>>
>>>
>>>
>>> Anthony
>>>
>>>
>>>
>>>
>>>
>>> ; reson fx
>>> instr 1
>>>
>>>    ; our in put signals
>>>    ainL inch 1
>>>    ainR inch 2
>>>
>>>    iCps cpsmidi
>>>
>>>    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay
>>> line.
>>>    ; A value close to 1 creates a slower decay and a more pronounced
>>> resonance.
>>>    ; Small values may leave the input signal unaffected. Depending on the
>>> filter
>>>    ; frequency, typical values are > .9.
>>>    kfdbgain chnget "fdbgain"
>>>    ifdbgain = kfdbgain
>>>
>>>    ; Run our sine wave through the string resonator.
>>>    asig = ainL + ainR
>>>    astres streson asig, iCps, ifdbgain
>>>
>>>
>>>    ; The resonance can get quite loud.
>>>    ; So we'll clip the signal at 30,000.
>>>    a1 clip astres, 1, 30000
>>>    outch 1, a1, 2, a1
>>>
>>> endin
>>>
>>>
>>>
>>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> 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"
>
>



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"




Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2011-05-08 22:29
Fromjoachim heintz
SubjectRe: [Csnd] Streson i-value to k-value problem...
i think you should be able to achieve this with a combination of changed
and reinit.
code suggestion is below - can you try?
	joachim

; reson fx
instr 1

    ; our in put signals
    ainL inch 1
    ainR inch 2

    iCps cpsmidi

    ; ifdbgain -- feedback gain, between 0 and 1, of the internal delay
line.
    ; A value close to 1 creates a slower decay and a more pronounced
resonance.
    ; Small values may leave the input signal unaffected. Depending on
the filter
    ; frequency, typical values are > .9.
    kfdbgain chnget "fdbgain"
    knewval changed kfdbgain
    if knewval == 1 then
    reinit new
    endif
    new:
    ifdbgain = i(kfdbgain)

    ; Run our sine wave through the string resonator.
    asig = ainL + ainR
    astres streson asig, iCps, ifdbgain


    ; The resonance can get quite loud.
    ; So we'll clip the signal at 30,000.
    a1 clip astres, 1, 30000
    outch 1, a1, 2, a1

endin





Am 07.05.2011 04:34, schrieb Anthony Palomba:
> Hey Victor,
> 
> Thanks for the response, I did not know you could "cast" values.
> That seems to have taken care of the compiler issue.
> 
> And I can see chnget changing when I printk it out. But it seems that
> changing the i-value after the performance has started causes streson to
> have no
> effect on the input sound.
> 
> I am trying to control the feedback gain in real time. Any ideas?
> 
> 
> 
> 
> -ap
> 
> 
> 
> 
> On Fri, May 6, 2011 at 12:21 PM, Victor Lazzarini
> > wrote:
> 
>     ifdbgain = i(kfdbgain) ?
> 
> 
> 
>     On 6 May 2011, at 18:10, Anthony Palomba wrote:
> 
>         Hey folks,
> 
>         I am working on a csound FX that takes an audio signal and
>         runs it through streson to add some shimmer to it.
>         I am currently running my csd file in Max.
> 
>         I want to be able to control the feedback gain via MIDI.
>         But since this an FX, it is constantly on. When I try to set
>         ikfdbgain using changet, it only sets it when the instrument
>         initially starts.
> 
>         I tried creating a kfdbgain and updating that, but
>         the compiler gives me the following error:
> 
>         Compiler Info/Warnings/Errors:
>         error:  input arg 'kfdbgain' of type k not allowed when
>         expecting m, line 40:
>            ifdbgain = kfdbgain
>         1 syntax errors in orchestra.  compilation invalid
> 
> 
>         How can I dynamically change an irate variable and
>         re-trigger execution of streson? Instrument is bellow.
> 
> 
> 
>         Anthony
> 
> 
> 
> 
> 
>         ; reson fx
>         instr 1
> 
>            ; our in put signals
>            ainL inch 1
>            ainR inch 2
> 
>            iCps cpsmidi
> 
>            ; ifdbgain -- feedback gain, between 0 and 1, of the internal
>         delay line.
>            ; A value close to 1 creates a slower decay and a more
>         pronounced resonance.
>            ; Small values may leave the input signal unaffected.
>         Depending on the filter
>            ; frequency, typical values are > .9.
>            kfdbgain chnget "fdbgain"
>            ifdbgain = kfdbgain
> 
>            ; Run our sine wave through the string resonator.
>            asig = ainL + ainR
>            astres streson asig, iCps, ifdbgain
> 
> 
>            ; The resonance can get quite loud.
>            ; So we'll clip the signal at 30,000.
>            a1 clip astres, 1, 30000
>            outch 1, a1, 2, a1
> 
>         endin
> 
> 
> 
> 
>     Dr Victor Lazzarini
>     Senior Lecturer
>     Dept. of Music
>     NUI Maynooth Ireland
>     tel.: +353 1 708 3545 
>     Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> 
>     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"