Csound Csound-dev Csound-tekno Search About

[Csnd] generative music,render to file

Date2011-11-27 18:27
FromGiorgio Zucco
Subject[Csnd] generative music,render to file
Hi,I created a simple example of generative music, since the score has only
trigger function (i1 0 1) and the instrument has an infinite lifetime ....
how can I do to make a render to file wav, aiff instrument? thanks

Giorgio


http://csound.1045644.n5.nabble.com/file/n5026951/generative.csd
generative.csd 

--
View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5026951.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-11-27 18:32
FromRory Walsh
SubjectRe: [Csnd] generative music,render to file
Add something like "-o test.wav" to your CsOptions section and then
set the instrument to play for as long as you would like the output
sound file to be. I just rendered 6 minutes of it to a wave file that
I'm listening back to as I type!

On 27 November 2011 18:27, Giorgio Zucco  wrote:
> Hi,I created a simple example of generative music, since the score has only
> trigger function (i1 0 1) and the instrument has an infinite lifetime ....
> how can I do to make a render to file wav, aiff instrument? thanks
>
> Giorgio
>
>
> http://csound.1045644.n5.nabble.com/file/n5026951/generative.csd
> generative.csd
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5026951.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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-11-27 18:33
FromAdam Puckett
SubjectRe: [Csnd] generative music,render to file

Just use the file rendering CsOptions.
On Nov 27, 2011 1:28 PM, "Giorgio Zucco" <giorgiobrx@libero.it> wrote:
>
> Hi,I created a simple example of generative music, since the score has only
> trigger function (i1 0 1) and the instrument has an infinite lifetime ....
> how can I do to make a render to file wav, aiff instrument? thanks
>
> Giorgio
>
>
> http://csound.1045644.n5.nabble.com/file/n5026951/generative.csd
> generative.csd
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5026951.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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-11-27 18:38
FromGiorgio Zucco
Subject[Csnd] Re: generative music,render to file
Hi,I had already tried the-o flag, the problem is that if I point the score
is longer than 1 instrument does not work, rendering the traditional way
generates an empty file ..... I can not understand the error

--
View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5026981.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-11-27 18:45
FromRory Walsh
SubjectRe: [Csnd] generative music,render to file
Whoops. Looks like I was playing my sound file before it finished
writing. I see that you are calling one instrument from itself. This
will create an endless loop unless you add a mechanism to stop it.



On 27 November 2011 18:33, Adam Puckett  wrote:
> Just use the file rendering CsOptions.
>
> On Nov 27, 2011 1:28 PM, "Giorgio Zucco"  wrote:
>>
>> Hi,I created a simple example of generative music, since the score has
>> only
>> trigger function (i1 0 1) and the instrument has an infinite lifetime ....
>> how can I do to make a render to file wav, aiff instrument? thanks
>>
>> Giorgio
>>
>>
>> http://csound.1045644.n5.nabble.com/file/n5026951/generative.csd
>> generative.csd
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5026951.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> 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-11-27 18:57
FromGiorgio Zucco
Subject[Csnd] Re: generative music,render to file
the strange thing is that the loop occurs only in render to file, listening
in real-time instrument works perfectly, there must be some problem related
to p3 ....

--
View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5027019.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-11-27 19:05
FromRory Walsh
SubjectRe: [Csnd] Re: generative music,render to file
I can write to a file here without any problems, apart from the fact
that it will keep writing forever. There's no logic to writing a sound
file that last forever!? You need to add a mechanism to stop all
instance of instrument 1 so that Csound can finish writing the sound
file.



On 27 November 2011 18:57, Giorgio Zucco  wrote:
> the strange thing is that the loop occurs only in render to file, listening
> in real-time instrument works perfectly, there must be some problem related
> to p3 ....
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5027019.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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-11-27 19:19
FromGiorgio Zucco
Subject[Csnd] Re: generative music,render to file
Thanks Rory, I always used event_i to control an external instrument, this
was just an experiment, I tried to change the instrument in this way :



-o test.wav



sr = 44100
kr = 4410
ksmps = 10
nchnls = 2

gifn	ftgen	1,0,1024,10,1
gifn	ftgen	2,0,1024,10,1,1
gifn	ftgen	3,0,1024,10,1,0,1
gifn	ftgen	4,0,1024,10,1,0,0,1
gifn	ftgen	5,0,1024,10,1,0,0,0,1


instr	1

indx = 1
incr = 1
iattack = 0
loop:
idur	=	rnd(1)	
iattack = iattack+idur
event_i	"i",2,iattack,idur	
loop_lt	indx,incr,1000,loop

endin


instr 2

iscale	=	200	;tabella con note in pitch
kmelody	=	rnd(15)	;sceglie una nota dalla tabella
kpitch	table	kmelody+1,iscale	;legge la funzione con le note
kamp	=	rnd(8000)	;genera valori random per l'ampiezza
ifn	=	rnd(4)	;sceglie una forma d'onda diversa ad ogni evento
a1	poscil	100+kamp,cpspch(kpitch),ifn+1	;oscillatore
aenv    line	.7,p3,0	;inviluppo per l'ampiezza

krndpan	=	rnd(1)	;valori random per pan
aL,aR	pan2	a1,krndpan	;random pan
outs	aL*aenv,aR*aenv	;uscita stereo con inviluppo

endin 





f200 0 16 -2  7.00 7.05 7.06 7.10 8.02 8.00 8.05 8.06 8.10 9.02 9.00 9.05
9.06 9.10 10.02 10.00
             
i1	0	1000




--
View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5027051.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-12-13 22:42
Frommark jamerson
SubjectRe: [Csnd] generative music,render to file

 I know this is a little late, but it's related.  In the past, I have recorded .CSD's that had no end by using an 'fout' instrument, but this does not seem to work anymore.  I'm not sure if this is a bug now, or if I was on the other side of the law back then, but ending the rendering prematurely would close the 'fout' file successfully and I would get a useable .WAV file.  


Mark 



----- Original Message -----
From: Giorgio Zucco 
To: csound@lists.bath.ac.uk
Cc: 
Sent: Sunday, November 27, 2011 12:27 PM
Subject: [Csnd] generative music,render to file

Hi,I created a simple example of generative music, since the score has only
trigger function (i1 0 1) and the instrument has an infinite lifetime ....
how can I do to make a render to file wav, aiff instrument? thanks

Giorgio


http://csound.1045644.n5.nabble.com/file/n5026951/generative.csd
generative.csd 

--
View this message in context: http://csound.1045644.n5.nabble.com/generative-music-render-to-file-tp5026951p5026951.html
Sent from the Csound - General mailing list archive at Nabble.com.


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"