Csound Csound-dev Csound-tekno Search About

[Cs-dev] Two new opcodes now in CVS

Date2006-07-24 15:00
FromVictor Lazzarini
Subject[Cs-dev] Two new opcodes now in CVS
I have added a couple of new opcodes to
csound CVS, which might of use to some of
you. The two are basically loopers: syncloop, a
variable-loop-point version of syncgrain; and
flooper2, a variable-loop-point crossfade looper
with 3 looping modes.

SYNCLOOP:

A variation on syncgrain allowing for loop points to be set,
as well as sound start position

asig  syncloop kamp, kfreq, kpitch, kgrsize,
kprate,kloopstart, kloopend, ifun1, ifun2, iolaps [, istart]

INIT

ifun1: source signal function table. Deferred-allocation
tables are accepted.
ifun2: grain envelope function table.
iolaps: maximum number of overlaps, max(kfreq)*max(kgrsize).
istart - start position (in secs), defaults to 0.

PERFORMANCE

kamp: amplitude scaling
kfreq: frequency of grain generation, or density, in
grains/sec.
kpitch: grain pitch scaling (1=normal pitch, < 1 lower, > 1
higher; negative, backwards)
kgrsize: grain size in secs.
kprate: grain pointer rate, in relation to grainsize.
The value of 1 will advance the reading pointer 1 grain
ahead in the source table.Larger values will time-compress
and smaller values will time-expand the source signal.
Negative values will cause the pointer to run backwards and
zero will freeze it.
kloopstart - loop start point (in secs)
kloopend - loop end point (in secs)

=========
FLOOPER2

asig flooper2 kamp, kpitch, kloopstart, kloopend,
kcrossfade, ifn [, istart, imode, ifenv]

Function-table crossfading looper with variable loop
parameters and
different looping modes.

INIT

ifn - sound source function table. Non-power-of-two and
deferred allocation
tables are allowed.
istart - playback starting point in secs, only applicable to
loop modes 0 & 2 [def:0]
imode - loop modes: 0 forward, 1 backward, 2 back-and-forth
[def: 0]
ifenv - if non-zero, crossfade envelope shape table number.
0, the default, sets
the crossfade to linear.

PERFORMANCE

kamp - amplitude scaling
kpitch - playback pitch ratio (1 - normal, > 1 faster, < 1
slower). Negative
ratios are not allowed.
kloopstart - loop start point (secs). Note that although
k-rate, loop parameters
such as this are only updated once per loop cycle.
kloopend - loop end point (secs), updated once per loop
cycle.
kcrossfade - crossfade length (secs), updated once per loop
cycle and limited to
loop length.

Victor Lazzarini, 2006
--------------------------------------
   This Email Was brought to you by
               WebMail
    A Netwin Web Based EMail Client
  http://netwinsite.com/webmail/tag.htm

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-07-25 03:15
FromIain Duncan
SubjectRe: [Cs-dev] Two new opcodes now in CVS
Wicked cool! I'm curious as to how you are using these kind of things.
Are you or students of yours making Ableton live type rigs in csound?
And if so, is this code up anywhere? One of my long range goals has been
to rig up something like that in tandem with my sequencing set up.

Thanks
Iain

Victor Lazzarini wrote:
> I have added a couple of new opcodes to
> csound CVS, which might of use to some of
> you. The two are basically loopers: syncloop, a
> variable-loop-point version of syncgrain; and
> flooper2, a variable-loop-point crossfade looper
> with 3 looping modes.
> 
> SYNCLOOP:
> 
> A variation on syncgrain allowing for loop points to be set,
> as well as sound start position
> 
> asig  syncloop kamp, kfreq, kpitch, kgrsize,
> kprate,kloopstart, kloopend, ifun1, ifun2, iolaps [, istart]
> 
> INIT
> 
> ifun1: source signal function table. Deferred-allocation
> tables are accepted.
> ifun2: grain envelope function table.
> iolaps: maximum number of overlaps, max(kfreq)*max(kgrsize).
> istart - start position (in secs), defaults to 0.
> 
> PERFORMANCE
> 
> kamp: amplitude scaling
> kfreq: frequency of grain generation, or density, in
> grains/sec.
> kpitch: grain pitch scaling (1=normal pitch, < 1 lower, > 1
> higher; negative, backwards)
> kgrsize: grain size in secs.
> kprate: grain pointer rate, in relation to grainsize.
> The value of 1 will advance the reading pointer 1 grain
> ahead in the source table.Larger values will time-compress
> and smaller values will time-expand the source signal.
> Negative values will cause the pointer to run backwards and
> zero will freeze it.
> kloopstart - loop start point (in secs)
> kloopend - loop end point (in secs)
> 
> =========
> FLOOPER2
> 
> asig flooper2 kamp, kpitch, kloopstart, kloopend,
> kcrossfade, ifn [, istart, imode, ifenv]
> 
> Function-table crossfading looper with variable loop
> parameters and
> different looping modes.
> 
> INIT
> 
> ifn - sound source function table. Non-power-of-two and
> deferred allocation
> tables are allowed.
> istart - playback starting point in secs, only applicable to
> loop modes 0 & 2 [def:0]
> imode - loop modes: 0 forward, 1 backward, 2 back-and-forth
> [def: 0]
> ifenv - if non-zero, crossfade envelope shape table number.
> 0, the default, sets
> the crossfade to linear.
> 
> PERFORMANCE
> 
> kamp - amplitude scaling
> kpitch - playback pitch ratio (1 - normal, > 1 faster, < 1
> slower). Negative
> ratios are not allowed.
> kloopstart - loop start point (secs). Note that although
> k-rate, loop parameters
> such as this are only updated once per loop cycle.
> kloopend - loop end point (secs), updated once per loop
> cycle.
> kcrossfade - crossfade length (secs), updated once per loop
> cycle and limited to
> loop length.
> 
> Victor Lazzarini, 2006
> --------------------------------------
>    This Email Was brought to you by
>                WebMail
>     A Netwin Web Based EMail Client
>   http://netwinsite.com/webmail/tag.htm
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-07-25 16:27
FromRichard Dobson
SubjectRe: [Cs-dev] Two new opcodes now in CVS
If it's not too late, and if it's possible, can an [iskip] argument be 
added to support legato use?



Richard Dobson




Victor Lazzarini wrote:
> I have added a couple of new opcodes to
> csound CVS, which might of use to some of
> you. The two are basically loopers: syncloop, a
> variable-loop-point version of syncgrain; and
> flooper2, a variable-loop-point crossfade looper
> with 3 looping modes.
> 
> SYNCLOOP:
> 
> A variation on syncgrain allowing for loop points to be set,
> as well as sound start position
> 
> asig  syncloop kamp, kfreq, kpitch, kgrsize,
> kprate,kloopstart, kloopend, ifun1, ifun2, iolaps [, istart]
> 
..
> =========
> FLOOPER2
> 
> asig flooper2 kamp, kpitch, kloopstart, kloopend,
> kcrossfade, ifn [, istart, imode, ifenv]
> 
> Function-table crossfading looper with variable loop
> parameters and
> different looping modes.
> 
..



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net