Csound Csound-dev Csound-tekno Search About

Re: [Csnd] A random reading

Date2023-07-17 17:16
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] A random reading
Thank you Jeanette,
I try to work on it...

In the meantime it is possible to see some more concrete examples, such as a csd with codes and some digits...?

E

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2023-07-17 22:55
FromOeyvind Brandtsegg
SubjectRe: [Csnd] A random reading
Attachmentssegment_player2.csd  
Hi Enrico

I have something that (I think) resembles what you asked for. It does sample segments from an incoming audio stream, and play back segments with a simple algorithm for segment selection and trigger time. 
The csd was only written for my own use, specifically for one project, so it is not very well documented. Sorry about that. Still, I thought I'd share it, since it resembles what you asked for. 

A short introduction:
It is written as a Cabbage plugin, to be compiled to VST or AU. To tell what it does, I think it makes sense to talk about the GUI, at least as an initial overview.
Segment recording is triggered by a transient (amplitude attack) in the incoming sound. You can see the numberbox "current_rec" counting up when it records new segments.  You start playing with the "Play" button". It will show the currently playing segment number in "curr_play".
You select the segment number by entering a number in the "rand center" number box. Segment selection also has randomness, and the amount of random deviation (from the "rand center)) is set in "rand width". 
Segment trigger "rhythm" is set by the "min time" and "max time" controls (minimum and max time between trigger pulses). The control "density" scales these time values. 
There are controls for transposition and random transposition, and also output (I use 8 outputs here) and random deviation for output. 
Both the transposition and output randomness has a "shape" control ("rtranspsh" and "routsh"), where you have uniform randomness when shape is 1.0, it will favour outliers if shape is less than 1, and favour central values if shape is larger than 1.
The controls "noisefloor", "trans thresh" etc controls the transient detector (that in turn controls how the incoming audio is chopped into segments).

In the code, instrument 21 controls the segment playback, instrument 22 is the actual segment playback, and instrument 99 is the recording instrument.

all best
Øyvind

man. 17. juli 2023 kl. 18:16 skrev Enrico Francioni <00000005323c8739-dmarc-request@listserv.heanet.ie>:
Thank you Jeanette,
I try to work on it...

In the meantime it is possible to see some more concrete examples, such as a csd with codes and some digits...?

E

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2023-07-24 18:34
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] A random reading
Thanks for sharing Oeyvind.  It's really great.  Love the live-looping aspect especially!

- Dr.B


Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division



On Mon, Jul 17, 2023 at 5:56 PM Oeyvind Brandtsegg <obrandts@gmail.com> wrote:
Hi Enrico

I have something that (I think) resembles what you asked for. It does sample segments from an incoming audio stream, and play back segments with a simple algorithm for segment selection and trigger time. 
The csd was only written for my own use, specifically for one project, so it is not very well documented. Sorry about that. Still, I thought I'd share it, since it resembles what you asked for. 

A short introduction:
It is written as a Cabbage plugin, to be compiled to VST or AU. To tell what it does, I think it makes sense to talk about the GUI, at least as an initial overview.
Segment recording is triggered by a transient (amplitude attack) in the incoming sound. You can see the numberbox "current_rec" counting up when it records new segments.  You start playing with the "Play" button". It will show the currently playing segment number in "curr_play".
You select the segment number by entering a number in the "rand center" number box. Segment selection also has randomness, and the amount of random deviation (from the "rand center)) is set in "rand width". 
Segment trigger "rhythm" is set by the "min time" and "max time" controls (minimum and max time between trigger pulses). The control "density" scales these time values. 
There are controls for transposition and random transposition, and also output (I use 8 outputs here) and random deviation for output. 
Both the transposition and output randomness has a "shape" control ("rtranspsh" and "routsh"), where you have uniform randomness when shape is 1.0, it will favour outliers if shape is less than 1, and favour central values if shape is larger than 1.
The controls "noisefloor", "trans thresh" etc controls the transient detector (that in turn controls how the incoming audio is chopped into segments).

In the code, instrument 21 controls the segment playback, instrument 22 is the actual segment playback, and instrument 99 is the recording instrument.

all best
Øyvind

man. 17. juli 2023 kl. 18:16 skrev Enrico Francioni <00000005323c8739-dmarc-request@listserv.heanet.ie>:
Thank you Jeanette,
I try to work on it...

In the meantime it is possible to see some more concrete examples, such as a csd with codes and some digits...?

E

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here