Csound Csound-dev Csound-tekno Search About

[Csnd] Envelopes with absolute times

Date2011-06-04 21:56
FromAlex Weiss
Subject[Csnd] Envelopes with absolute times
Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

Date2011-06-04 21:59
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
What do you mean 'absolute times'?
On 4 Jun 2011, at 21:56, Alex Weiss wrote:

> Hi,
>
> Are there any opcodes that allow for the creation of envelopes with  
> absolute time values for each segment instead of duration  
> parameters? Specifically, I'm looking for something that works like  
> linseg or expseg  but absolute time values instead of idur  
> parameters. I skimmed the manual but I couldn't find anything.
>
> Thanks,
>
> Alex

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-06-04 22:05
FromAlex Weiss
SubjectRe: [Csnd] Envelopes with absolute times
E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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-06-04 22:32
Fromrichard duckworth
SubjectRe: [Csnd] Envelopes with absolute times
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05

E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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-06-04 22:33
Fromjoachim heintz
SubjectRe: [Csnd] Envelopes with absolute times
this is a possible solution:



-n


instr 1
ktim timeinsts
if ktim > 3 then
kline linseg 0, p3-3, 1
else
kline = 0
endif
printk 1, kline
endin


i1 0 10



best -

	joachim


Am 04.06.2011 23:05, schrieb Alex Weiss:
> E.g. I want val1 5s after the instrument started, and val2 10s after the
> instrument started (instead of specifying a duration of 5s).
> 
> On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini
> > wrote:
> 
>     What do you mean 'absolute times'?
> 
>     On 4 Jun 2011, at 21:56, Alex Weiss wrote:
> 
>         Hi,
> 
>         Are there any opcodes that allow for the creation of envelopes
>         with absolute time values for each segment instead of duration
>         parameters? Specifically, I'm looking for something that works
>         like linseg or expseg  but absolute time values instead of idur
>         parameters. I skimmed the manual but I couldn't find anything.
> 
>         Thanks,
> 
>         Alex
> 
> 
>     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"

Date2011-06-04 23:06
FromAlex Weiss
SubjectRe: [Csnd] Envelopes with absolute times
Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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-06-04 23:18
FromAdam Puckett
SubjectRe: [Csnd] Envelopes with absolute times
As I've probably said before, I like the "ugliness" of the way that is
done personally. For me, the orchestra is only the "how" component of
music, and giving it such an opcode seems contrary to Music-N
principle. As for the limit to the number of arguments you can give
linseg, I think it's the same for every other opcode.

On 6/4/11, Alex Weiss  wrote:
> Hi Richard
>
> Thanks for your answer, but that's not what I'm looking for. I think I
> wasn't clear enough earlier.
>
> I often control parameters in my pieces in a separate instrument that is on
> from beginning to end and only consists of linsegs and expsegs with lots of
> parameters. Usually, I want to specify what certain values ought to be at
> absolute times in my piece, and then interpolate between those values.
> Here's an example:
>
> 0 at beginning of performance
> 1 at 5s   into the performance,
> 2 at 30s into the performance,
> 0 at 1:30min into the performance
>
> Using linseg, I always have to calculate the differences between the
> absolute times and use those:
>
> kvalue linseg 0, 5, 1, 25, 2, 60, 0
>
> Not only is this tedious (especially if there a many control points), but it
> is also prone to errors, as changing one duration changes everything that
> follows after it.
>
> Alex
>
> P.S. Is there a limit on how many parameters can be specified with linseg? I
> remember a while back I got some erratic behavior with a linseg that had a
> couple hundred (IIRC) parameters.
>
>
>
>
> By the way: Is there a limit on how many parameters linseg can take?
>
>
> On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth
> wrote:
>
>> Hi Alex,
>> These are actual times - there is a technique (as shown in RB's Toots)
>> whereby the duration of the current note is used to determine the length
>> of
>> each segment w/o the envelope becoming longer than the note event (this
>> results in truncation).
>> If you know your note length, you can happily plug in durations in seconds
>> into those fields
>> All the best, Rich
>>
>> Rich Duckworth
>> Lecturer in Music Technology
>> Department of Music
>> House 5
>> Trinity College
>> Dublin 2
>> Ireland
>>
>> Tel 353 1 896 1500
>>
>> It's the most devastating moment in a young mans life, when he quite
>> reasonably says to himself, "I shall never play The Dane!"
>>
>> --- On *Sat, 4/6/11, Alex Weiss * wrote:
>>
>>
>> From: Alex Weiss 
>> Subject: Re: [Csnd] Envelopes with absolute times
>> To: csound@lists.bath.ac.uk
>> Date: Saturday, 4 June, 2011, 22:05
>>
>>
>> E.g. I want val1 5s after the instrument started, and val2 10s after the
>> instrument started (instead of specifying a duration of 5s).
>>
>> On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <
>> Victor.Lazzarini@nuim.ie
>> >wrote:
>>
>> What do you mean 'absolute times'?
>>
>> On 4 Jun 2011, at 21:56, Alex Weiss wrote:
>>
>>  Hi,
>>
>> Are there any opcodes that allow for the creation of envelopes with
>> absolute time values for each segment instead of duration parameters?
>> Specifically, I'm looking for something that works like linseg or expseg
>>  but absolute time values instead of idur parameters. I skimmed the manual
>> but I couldn't find anything.
>>
>> Thanks,
>>
>> Alex
>>
>>
>> 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.ukwith
>> 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-06-04 23:23
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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




Date2011-06-04 23:27
FromAlex Weiss
SubjectRe: [Csnd] Envelopes with absolute times
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie





Date2011-06-04 23:29
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
I think it's quite high, possibly 256?
On 4 Jun 2011, at 23:27, Alex Weiss wrote:

Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie





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




Date2011-06-05 01:23
Frompeiman khosravi
SubjectRe: [Csnd] Envelopes with absolute times

Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






Date2011-06-05 01:25
Frompeiman khosravi
SubjectRe: [Csnd] Envelopes with absolute times
Correction:

Then using an oscil with 1/10 as frequency value should reproduce the bpf.


On 05/06/2011 01:23, peiman khosravi wrote:

Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie







Date2011-06-05 01:33
Frompeiman khosravi
SubjectRe: [Csnd] Envelopes with absolute times
Of course in reality the values can be anything, not necessarily in seconds. And now that we're at it, it may be nice to have the option of doing the internal conversion logarithmically so that the x values may represent frequencies too (useful for pvs-based UDOs).

I'm too tired and am not sure if what I just said makes any sense or not!

P   


On 05/06/2011 01:25, peiman khosravi wrote:
Correction:

Then using an oscil with 1/10 as frequency value should reproduce the bpf.


On 05/06/2011 01:23, peiman khosravi wrote:

Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie








Date2011-06-05 08:15
FromAndres Cabrera
SubjectRe: [Csnd] Envelopes with absolute times
Hi,

I think you are looking for the times opcode:
http://www.csounds.com/manual/html/times.html

Cheers,
Andres

On Sat, Jun 4, 2011 at 11:06 PM, Alex Weiss <alexweiss86@gmail.com> wrote:
Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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-06-05 10:44
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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




Date2011-06-05 11:40
Frompeiman khosravi
SubjectRe: [Csnd] Envelopes with absolute times
Awesome! You are a hero Victor :-)

Best,

Peiman

On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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





Date2011-06-05 12:00
FromAlex Weiss
SubjectRe: [Csnd] Envelopes with absolute times
@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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






Date2011-06-05 16:11
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
yes, just a simple function reordering things for linseg will do. Of course, expseg will follow.

Victor


On 5 Jun 2011, at 12:00, Alex Weiss wrote:

@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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






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




Date2011-06-05 16:34
FromAlex Weiss
SubjectRe: [Csnd] Envelopes with absolute times
Great, thanks a lot. Looking forward to it.

Alex

On Sun, Jun 5, 2011 at 5:11 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
yes, just a simple function reordering things for linseg will do. Of course, expseg will follow.

Victor



On 5 Jun 2011, at 12:00, Alex Weiss wrote:

@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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






Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie





Date2011-06-05 18:24
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
Ok, linsegb  and expsegb are in GIT now. They are just like linseg and expseg  but with breakpoint times instead of durations.

Victor
On 5 Jun 2011, at 16:34, Alex Weiss wrote:

Great, thanks a lot. Looking forward to it.

Alex

On Sun, Jun 5, 2011 at 5:11 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
yes, just a simple function reordering things for linseg will do. Of course, expseg will follow.

Victor



On 5 Jun 2011, at 12:00, Alex Weiss wrote:

@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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






Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie





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




Date2011-06-05 18:51
FromAlex Weiss
SubjectRe: [Csnd] Envelopes with absolute times
Great, thanks. Forgive my ignorance, but where is the git repository and how do I access it?

On Sun, Jun 5, 2011 at 7:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Ok, linsegb  and expsegb are in GIT now. They are just like linseg and expseg  but with breakpoint times instead of durations.

Victor

On 5 Jun 2011, at 16:34, Alex Weiss wrote:

Great, thanks a lot. Looking forward to it.

Alex

On Sun, Jun 5, 2011 at 5:11 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
yes, just a simple function reordering things for linseg will do. Of course, expseg will follow.

Victor



On 5 Jun 2011, at 12:00, Alex Weiss wrote:

@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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






Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie





Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie





Date2011-06-05 20:24
FromVictor Lazzarini
SubjectRe: [Csnd] Envelopes with absolute times
The sources repository is git://csound.git.sourceforge.net/gitroot/csound/csound 

All you need is a git client. Then you can just clone the directory and you'll have the most up to date sources.

Victor

On 5 Jun 2011, at 18:51, Alex Weiss wrote:

Great, thanks. Forgive my ignorance, but where is the git repository and how do I access it?

On Sun, Jun 5, 2011 at 7:24 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Ok, linsegb  and expsegb are in GIT now. They are just like linseg and expseg  but with breakpoint times instead of durations.

Victor

On 5 Jun 2011, at 16:34, Alex Weiss wrote:

Great, thanks a lot. Looking forward to it.

Alex

On Sun, Jun 5, 2011 at 5:11 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
yes, just a simple function reordering things for linseg will do. Of course, expseg will follow.

Victor



On 5 Jun 2011, at 12:00, Alex Weiss wrote:

@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex

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
Victor dot Lazzarini AT nuim dot ie






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






Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie





Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie





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




Date2011-06-10 20:59
FromDavidW
SubjectRe: [Csnd] Envelopes with absolute times
Can someone also update the manual please?
ta,
David
On 06/06/2011, at 3:24 AM, Victor Lazzarini wrote:

Ok, linsegb  and expsegb are in GIT now. They are just like linseg and expseg  but with breakpoint times instead of durations.

Victor
On 5 Jun 2011, at 16:34, Alex Weiss wrote:

Great, thanks a lot. Looking forward to it.

Alex

On Sun, Jun 5, 2011 at 5:11 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
yes, just a simple function reordering things for linseg will do. Of course, expseg will follow.

Victor



On 5 Jun 2011, at 12:00, Alex Weiss wrote:

@Victor: Awesome, I just wanted to do that. I think a simple addition to lsgset (as a new function, of course) would be enough, and if I'm not mistaken the new opcode could still use the klnseg/linseg functions.

While you're at it, do you think you could the same for expseg? I'd really appreciate it. Of course, I could also do it myself but I'd need somebody to commit it anyways.

Thanks,
Alex

On Sun, Jun 5, 2011 at 12:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Awesome! You are a hero Victor :-)

Best,

Peiman


On 05/06/2011 10:44, Victor Lazzarini wrote:
I'm adding a linseg etc based on breakpoints, which is very easy to do. Will report when done.

Victor
On 5 Jun 2011, at 01:23, peiman khosravi wrote:


Actually this may be an idea for future development.

An alternative to GEN27 that takes in x values in seconds and internally normalizes them to fit within the table. I don't suppose that this will be too difficult to implement right?

So this:

f 1 0 8193 (-27) 0 1 10 0

would be internally converted to:

f 1 0 8193 (-27) 0 1 8192 0

Then using an oscil with 1/p3 as frequency value should reproduce the bpf.

Best,

Peiman  

On 04/06/2011 23:27, Alex Weiss wrote:
Nice, thanks. Do you know what the limit for number of inputs is for UDOs?

On Sun, Jun 5, 2011 at 12:23 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
You mean breakpoints. I think you could try a UDO for that

opcode Brklinseg,k,iiiiiiiii

i1,i2,i3,i4,i5,i6,i7,i8,i9  xin

k1 linseg  i1,i2,i3,i4-i2,i5,i6-i4-i2,i7,i8-i6-i4-i2,i9

    xout k1

endop

Victor

On 4 Jun 2011, at 23:06, Alex Weiss wrote:

Hi Richard

Thanks for your answer, but that's not what I'm looking for. I think I wasn't clear enough earlier.

I often control parameters in my pieces in a separate instrument that is on from beginning to end and only consists of linsegs and expsegs with lots of parameters. Usually, I want to specify what certain values ought to be at absolute times in my piece, and then interpolate between those values. Here's an example:

0 at beginning of performance
1 at 5s   into the performance,
2 at 30s into the performance,
0 at 1:30min into the performance

Using linseg, I always have to calculate the differences between the absolute times and use those:

kvalue linseg 0, 5, 1, 25, 2, 60, 0

Not only is this tedious (especially if there a many control points), but it is also prone to errors, as changing one duration changes everything that follows after it.

Alex

P.S. Is there a limit on how many parameters can be specified with linseg? I remember a while back I got some erratic behavior with a linseg that had a couple hundred (IIRC) parameters.




By the way: Is there a limit on how many parameters linseg can take? 


On Sat, Jun 4, 2011 at 11:32 PM, richard duckworth <richduckworth@yahoo.com> wrote:
Hi Alex,
These are actual times - there is a technique (as shown in RB's Toots) whereby the duration of the current note is used to determine the length of each segment w/o the envelope becoming longer than the note event (this results in truncation). 
If you know your note length, you can happily plug in durations in seconds into those fields
All the best, Rich   

Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5
Trinity College
Dublin 2
Ireland

Tel 353 1 896 1500

It's the most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"

--- On Sat, 4/6/11, Alex Weiss <alexweiss86@gmail.com> wrote:

From: Alex Weiss <alexweiss86@gmail.com>
Subject: Re: [Csnd] Envelopes with absolute times
To: csound@lists.bath.ac.uk
Date: Saturday, 4 June, 2011, 22:05


E.g. I want val1 5s after the instrument started, and val2 10s after the instrument started (instead of specifying a duration of 5s).

On Sat, Jun 4, 2011 at 10:59 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
What do you mean 'absolute times'?

On 4 Jun 2011, at 21:56, Alex Weiss wrote:

Hi,

Are there any opcodes that allow for the creation of envelopes with absolute time values for each segment instead of duration parameters? Specifically, I'm looking for something that works like linseg or expseg  but absolute time values instead of idur parameters. I skimmed the manual but I couldn't find anything.

Thanks,

Alex



___________________________________________
Dr David Worrall
Adjunct Research Fellow, School of Music, 
Australian National University
- experimental polymedia:  worrall.avatar.com.au
- sonification:                     sonification.com.au
- trading education:            mindthemarkets.com.au