Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Extended graphics?

Date2016-02-16 11:11
FromAnders Genell
Subject[Csnd-dev] Extended graphics?
Dear devs!

The recent discussion about different opcodes that generate linear or exponential segments useful for e.g. envelopes reminded me about a though I had when I was first exosed to csound.
It took me a while to get my head around the notion of k-rate essentially being a loop updating all kvars each pass.

I would really love to have some easy way of examining what 'future' kvar values will be. One example is when using some of the linseg/expseg opcodes, and incorrectly assume that the last value will be held thus having an envelope (and hence amp) that may be continuously increasing as time passes. If there was a way of haveing a graph plotting future values of the envelope, such thing would be easily spotted.

Perhaps there could be some special 'explore'-pass or something, allowing a certain amount of future values to be calculated?

All this could of course to some extent be handled by tables and ordinary graphs, but it would really be nice to be able to plot future k (and a) values...



Another thought I had that might already be incorporated was that as part of some of the very basic tutorials it would be nice to mention the versatility of csound in that most oscillator opcodes can be used to render almost any waveform, and that the use of GEN-routines for e.g. sine waves are just a shortcut - the above mentioned linear and exponential segments could e.g. be used to create custom waveforms. For many csound users (and I suppose for many composers of computer rendered music in general) this is likely obvious, but it might be enlightening to some (like me).

Regards,
Anders

Date2016-02-16 11:54
FromMichael Gogins
SubjectRe: [Csnd-dev] Extended graphics?
You could put your envelope into a table and run a spline on the table
for the duration of the note. That would give you future values,
interpolated at either arate or krate.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Feb 16, 2016 at 6:11 AM, Anders Genell  wrote:
> Dear devs!
>
> The recent discussion about different opcodes that generate linear or
> exponential segments useful for e.g. envelopes reminded me about a though I
> had when I was first exosed to csound.
> It took me a while to get my head around the notion of k-rate essentially
> being a loop updating all kvars each pass.
>
> I would really love to have some easy way of examining what 'future' kvar
> values will be. One example is when using some of the linseg/expseg opcodes,
> and incorrectly assume that the last value will be held thus having an
> envelope (and hence amp) that may be continuously increasing as time passes.
> If there was a way of haveing a graph plotting future values of the
> envelope, such thing would be easily spotted.
>
> Perhaps there could be some special 'explore'-pass or something, allowing a
> certain amount of future values to be calculated?
>
> All this could of course to some extent be handled by tables and ordinary
> graphs, but it would really be nice to be able to plot future k (and a)
> values...
>
>
>
> Another thought I had that might already be incorporated was that as part of
> some of the very basic tutorials it would be nice to mention the versatility
> of csound in that most oscillator opcodes can be used to render almost any
> waveform, and that the use of GEN-routines for e.g. sine waves are just a
> shortcut - the above mentioned linear and exponential segments could e.g. be
> used to create custom waveforms. For many csound users (and I suppose for
> many composers of computer rendered music in general) this is likely
> obvious, but it might be enlightening to some (like me).
>
> Regards,

Date2016-02-16 11:57
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Extended graphics?
There is a way, you could run an envelope in a loop inside the instrument and read its values into an array or table. You can control it
with as much a read-ahead as you’d like.

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 16 Feb 2016, at 11:11, Anders Genell  wrote:
> 
> Dear devs!
> 
> The recent discussion about different opcodes that generate linear or exponential segments useful for e.g. envelopes reminded me about a though I had when I was first exosed to csound.
> It took me a while to get my head around the notion of k-rate essentially being a loop updating all kvars each pass.
> 
> I would really love to have some easy way of examining what 'future' kvar values will be. One example is when using some of the linseg/expseg opcodes, and incorrectly assume that the last value will be held thus having an envelope (and hence amp) that may be continuously increasing as time passes. If there was a way of haveing a graph plotting future values of the envelope, such thing would be easily spotted.
> 
> Perhaps there could be some special 'explore'-pass or something, allowing a certain amount of future values to be calculated?
> 
> All this could of course to some extent be handled by tables and ordinary graphs, but it would really be nice to be able to plot future k (and a) values...
> 
> Regards,