[Csnd] release of transegr
| Date | 2010-11-12 21:12 |
| From | Stefan Thomas |
| Subject | [Csnd] release of transegr |
| Dear community, I've read in the manual: transegr — Constructs a user-definable envelope with extended release segment.But where do I have to define the release-segment, which reacts on noteon and noteoff from midi? |
| Date | 2010-11-12 22:48 |
| From | Oeyvind Brandtsegg |
| Subject | [Csnd] Re: release of transegr |
I would expect it to be the last segment specified. Maybe the manual should read (as for linsegr) ares transegr ia, idur, itype, ib [, idur2] [, itype] [, ic], irel, itype, iz Oeyvind 2010/11/12 Stefan Thomas |
| Date | 2010-11-13 07:15 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: release of transegr |
| Dear Oeyvind, I don't know what is wrong, but the following snippet works (for me) just for one note from the midi-keyboard, than nothing happens. <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 48000 kr = 480 ksmps = 100 nchnls = 2 massign 1, 101 ; alle Midi-Ereignisse an instr. 101 instr 101 icps cpsmidi iamp ampmidi 10000 ia = 0.001 itype = 0 idur = 1 ib = 1 irel = 0.1 iz = 0.001 kenv transegr ia, idur, itype, ib , irel, itype, iz iwave = 1 asig oscil kenv*iamp, icps, iwave outs asig, asig endin </CsInstruments> <CsScore> f0 3600 f1 0 8192 10 1 i101 0 3600 </CsScore> </CsoundSynthesizer> 2010/11/12 Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> I would expect it to be the last segment specified. |
| Date | 2010-11-13 13:56 |
| From | joachim heintz |
| Subject | [Csnd] Re: Re: Re: release of transegr |
i think you should clear the line "i101 0 3600" in the score, as your instr 101 is triggered by midi. joachim Am 13.11.2010 um 08:15 schrieb Stefan Thomas: > Dear Oeyvind, > I don't know what is wrong, but the following snippet works (for me) > just for one note from the midi-keyboard, than nothing happens. > > |
| Date | 2010-11-13 19:46 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: release of transegr |
| I've deleted the line i101 0 3600 in the score. Unfortunately the problem remains! 2010/11/13 joachim heintz <jh@joachimheintz.de> i think you should clear the line "i101 0 3600" in the score, as your instr 101 is triggered by midi. |
| Date | 2010-11-13 19:54 |
| From | Victor Lazzarini |
| Subject | [Csnd] Re: Re: Re: Re: Re: release of transegr |
I think you need
massign 0,101
to do what you are asking in your comment.
Victor
On 13 Nov 2010, at 19:46, Stefan Thomas wrote:
> massign 1, 101 ; alle Midi-Ereignisse an instr. 101
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"
|
| Date | 2010-11-13 21:46 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: release of transegr |
| Unfortunately, massign 0,101 doesn't help 2010/11/13 Victor Lazzarini <Victor.Lazzarini@nuim.ie> I think you need |
| Date | 2010-11-13 22:24 |
| From | joachim heintz |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: release of transegr |
for me, your csd in this version works: |
| Date | 2010-11-13 22:26 |
| From | Victor Lazzarini |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: release of transegr |
| It works as expected here (with virtual keyboard). On 13 Nov 2010, at 21:46, Stefan Thomas wrote: Unfortunately, massign 0,101 doesn't help |
| Date | 2010-11-13 22:36 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Unfortunately, for me not. Maybee I didn't install the program properly from source? 2010/11/13 joachim heintz <jh@joachimheintz.de> for me, your csd in this version works: |
| Date | 2010-11-15 08:25 |
| From | Oeyvind Brandtsegg |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
Could you try this (even simpler) csd If this works, you can try adding the transeg again and see if it breaks. best Oeyvind |
| Date | 2010-11-15 11:10 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Dear community, I've got transgr working. After having some more troubles with the newly installed csound from source I uprgaded to the newest version of Ubuntu. There is Csound 5.12 in the repositories (as well as qutecsound) and everything works fine now! 2010/11/15 Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> Could you try this (even simpler) csd |
| Date | 2010-11-23 19:27 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Dear community, sorry, I do have still problems with transegr. Although I don't have the problem that csound stops after one note, transegr reacts in a different manner than I've expected. I thought if I write kenv transegr 0.001, 1, 0 , 1 , 0.1, 0, 0.00001I would get an organ-like envelope, that stays at full key-velocity. Unfortunately I get a sound that dies after a second. I can't recognize my mistake. Here is my code: <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 48000 kr = 480 ksmps = 100 nchnls = 2 massign 0, 101 ; alle Midi-Ereignisse an instr. 101 instr 101 icps cpsmidi iamp ampmidi 10000 kenv transegr 0.001, 1, 0 , 1 , 0.1, 0, 0.00001 iwave = 1 asig oscil kenv*iamp, icps, iwave outs asig, asig endin </CsInstruments> <CsScore> f0 3600 f1 0 8192 10 1 </CsScore> </CsoundSynthesizer> 2010/11/15 Stefan Thomas <kontrapunktstefan@googlemail.com> Dear community, |
| Date | 2010-11-26 03:02 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| ia=0.001 idur=1 itype=0 ib=0.1 idur=0 itype=0.00001 ???? one always has to follow the pattern of: level, duration, type, level, duration, type.......level (end with a level!!!) in this case I think your envelope doesn't make sense and would give a brief sound as you describe!! try kenv transegr 0.001, 0.01, 0 , 1 , 0, 0, 1, 0, 0, 1, 0.03, 0, 0 if it works at all as linsegr does, but with the addition of types, the code above should work. (if I didn't make a mistake that is) Here I assume type always to be '0' for a linear segment. the old analogous envelope in linsegr would be: kenv linsegr 0, 0.01, 1, 0, 1, 0, 1, 0.03, 0 you might also try to use variables for easier human-parsing of the line...it's easy to make a mistake when scaning the line without tokens that we can make sense of!! so you can try this for a simple organ like envelope: kenv linsegr istart, iattack, itype1, imid1, isus, itype2, imid2, ireltime, itype3, iend if all the types are the same, of course, you could use one variable, but that would of course defeat the purpose of using transegr! AKJ On Tue, Nov 23, 2010 at 1:27 PM, Stefan Thomas <kontrapunktstefan@googlemail.com> wrote: Dear community, -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-27 10:13 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Dear Aaron, thanks for Your explanations. I've understood that transegr has to end with an level. I've tried it now with: aenv transegr 0.001, 0.1, 0, 1, 15, 1, 0.0001, 0.1, 0, 0.000001 But now, using midi, the sound makes a clipping-noise, when I stop playing midi after a time shorter than 15 seconds. Where do I have to put the release time? 2010/11/26 Aaron Krister Johnson <aaron@akjmusic.com> ia=0.001 idur=1 itype=0 ib=0.1 idur=0 itype=0.00001 ???? |
| Date | 2010-11-27 14:30 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Stefan, you have a discontinuity from 1 to 0.0001 that you've not handled. what you mean to do is go from 1 to 0.0001 at the END....so try this: aenv transegr 0.001, 0.1, 0, 1, 15, 0,1, 0.1, 0, 0.001 it helps to think of the levels as 'framing' the arguments: here my levels are 0.001, 1, 1 and 0.001...then the 'times and 'type' pairs are interspersed between....does that make sense? so when building your envelope, start with your envelope levels, and put the time/curve-type pairs in after. I believe it helps if you use parenthesis on the levels, for visual cue: aenv transegr 0.001, (0.1), (0), 1, (15), (0), 1, (0.1), (0), 0.001 Make sense? Best, AKJ On Sat, Nov 27, 2010 at 4:13 AM, Stefan Thomas <kontrapunktstefan@googlemail.com> wrote: Dear Aaron, -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-27 14:49 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| By 'parenthesis on the levels', I made a mistake and meant putting parenthesis around the times and curve types, but you probably figured that out....so here's my final answer again, but corrected so that the final curve is non-linear: aenv transegr 0.001, (0.1), (0), 1, (15), (0), 1, (0.1), (1), 0.001 of course you could do it around the levels if you think that makes more sense: aenv transegr (0.001), 0.1, 0, (1), 15, 0, (1), 0.1, 1, (0.001) AKJ On Sat, Nov 27, 2010 at 8:30 AM, Aaron Krister Johnson <aaron@akjmusic.com> wrote: Stefan, -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-27 15:08 |
| From | Dave Seidel |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
Hi Aaron,
Just as aside, this is a great way to use a simple typographical
technique to make code more readable. Very nice.
- Dave
On 11/27/2010 9:49 AM, Aaron Krister Johnson wrote:
> By 'parenthesis on the levels', I made a mistake and meant putting
> parenthesis around the times and curve types, but you probably figured
> that out....so here's my final answer again, but corrected so that the
> final curve is non-linear:
>
> aenv transegr 0.001, (0.1), (0), 1, (15), (0), 1, (0.1), (1), 0.001
>
> of course you could do it around the levels if you think that makes more
> sense:
>
> aenv transegr (0.001), 0.1, 0, (1), 15, 0, (1), 0.1, 1, (0.001)
>
> AKJ
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"
|
| Date | 2010-11-27 15:56 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Dear Aaron, thank You. It works perfectly now! 2010/11/27 Dave Seidel <dave@superluminal.com> Hi Aaron, |
| Date | 2010-11-27 23:55 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Stefan, Glad to be of help; I'm always glad when someone who knows what they are doing with Csound helps me! I'm still learning---it's a massively complex system! AKJ
On Sat, Nov 27, 2010 at 9:56 AM, Stefan Thomas <kontrapunktstefan@googlemail.com> wrote: Dear Aaron, -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-27 23:58 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| I forgot where I picked up that trick---was it Steven Yi? I forget, but I remember thinking it was a cool technique. I don't really use it alot, but with envelopes---they tend to be confusing quite a bit, and I think it helps a great deal. I think it would alos work well in the context of certain GEN tables that have breakpoints as well. AKJ On Sat, Nov 27, 2010 at 9:08 AM, Dave Seidel <dave@superluminal.com> wrote: Hi Aaron, -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-28 19:02 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Although I think I understand how transegr works, I still do have the problem, that I can always hear clearly a clicking noise, when the note off command is sended. I thought that iend = 0 iaus = 7 irel = 0.1 aenv transegr 0.001, (0.01), (-1), 1, (iaus*0.2), (-10), 0.5, (iaus*0.8), (0), iend , (irel), (10), iend could be a nice envelope, but the release is not as smooth as with the linsegr.
2010/11/28 Aaron Krister Johnson <aaron@akjmusic.com> I forgot where I picked up that trick---was it Steven Yi? I forget, but I remember thinking it was a cool technique. I don't really use it alot, but with envelopes---they tend to be confusing quite a bit, and I think it helps a great deal. I think it would alos work well in the context of certain GEN tables that have breakpoints as well. |
| Date | 2010-11-29 17:32 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Try a less severe curve than 10 at the last curve type entry.... AKJ On Sun, Nov 28, 2010 at 1:02 PM, Stefan Thomas <kontrapunktstefan@googlemail.com> wrote: Although I think I understand how transegr works, I still do have the problem, that I can always hear clearly a clicking noise, when the note off command is sended. -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-29 17:33 |
| From | Aaron Krister Johnson |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Also, note that you shouldn't end at zero if you are using non-linear curves---that's a mathematical error liable to cause a discontinuity....I'm surprised that Csound isn't throwing an error message your way! AKJ On Sun, Nov 28, 2010 at 1:02 PM, Stefan Thomas <kontrapunktstefan@googlemail.com> wrote: Although I think I understand how transegr works, I still do have the problem, that I can always hear clearly a clicking noise, when the note off command is sended. -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
| Date | 2010-11-30 08:03 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Dear Aaron, what I don't understand is: If itype > 0, there is a slowly rising (concave) or slowly decaying (convex) curveSo I would expect a slowly decaying end after the note-off command is ended. I tried it also with iend = 0.001 and itype = 1 or itype = -1 but the result is alwys with an audible click after the noteoff is sended. 2010/11/29 Aaron Krister Johnson <aaron@akjmusic.com> Also, note that you shouldn't end at zero if you are using non-linear curves---that's a mathematical error liable to cause a discontinuity....I'm surprised that Csound isn't throwing an error message your way! |
| Date | 2010-11-30 13:50 |
| From | Michael Gogins |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
In general, you will get a click at the end unless the release is moderately concave and about .005 or even longer depending on the timbre. In a situation like this, set up a test instrument and/or score and try systematically changing one parameter at a time one increment at a time so that you can hear the effects. Like tweaking the knobs on a modular analog synthesizer. Hope this helps, Mike On Tue, Nov 30, 2010 at 3:03 AM, Stefan Thomas |
| Date | 2010-12-01 06:52 |
| From | Stefan Thomas |
| Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: release of transegr |
| Dear Michael, I will try to find the right settings. Thanks for Your advice. Stefan 2010/11/30 Michael Gogins <michael.gogins@gmail.com> In general, you will get a click at the end unless the release is |