Csound Csound-dev Csound-tekno Search About

[Csnd] stopping and starting monitor instr

Date2014-05-27 20:16
FromMatti Koskinen
Subject[Csnd] stopping and starting monitor instr
hi all,
I’ve almost succeeded with my video recording and freezing the frame and stretching the live input with sndwarp for the total time of the freeze. monitor-opcode works fine. But if turnoff the monitor instr, will it close the file and then turning it on again, it overwrites the file or does it append the new audio to the file?
If it overwrites, how to stop writing audio and after some time appending to the file? Otherwise if I freeze the frame for few seconds, and then wait, say 30 minutes to take the next, there will be blank audio for all that time.

tnx

-m


 

Date2014-05-27 20:21
FromRory Walsh
SubjectRe: [Csnd] stopping and starting monitor instr
Are you using fout to record the audio? Then once you turn off the
instrument it will finish writing the file. Turning it on again will
cause it to overwrite the file. What I usually do is append the time
and date to the end of the file name. That way I can start and stop
recording as often as I like and not have to worry about overwriting
anything.

On 27 May 2014 20:16, Matti Koskinen  wrote:
> hi all,
> I’ve almost succeeded with my video recording and freezing the frame and stretching the live input with sndwarp for the total time of the freeze. monitor-opcode works fine. But if turnoff the monitor instr, will it close the file and then turning it on again, it overwrites the file or does it append the new audio to the file?
> If it overwrites, how to stop writing audio and after some time appending to the file? Otherwise if I freeze the frame for few seconds, and then wait, say 30 minutes to take the next, there will be blank audio for all that time.
>
> tnx
>
> -m
>
>
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>


Date2014-05-27 20:30
FromMatti Koskinen
SubjectRe: [Csnd] stopping and starting monitor instr
Thanks Rory,
I’ve been using monitor-opcode, but it does behave probably like fout. In the manual of monitor, the filename must be a string enclosed in quotes, so how to change the filename? I’ll look at fout, maybe it’ll do filenames differently and can be used in the way I use monitor now.

-m

On 27 May, 2014, at 10:21 pm, Rory Walsh  wrote:

> Are you using fout to record the audio? Then once you turn off the
> instrument it will finish writing the file. Turning it on again will
> cause it to overwrite the file. What I usually do is append the time
> and date to the end of the file name. That way I can start and stop
> recording as often as I like and not have to worry about overwriting
> anything.
> 
> 



Date2014-05-27 20:40
FromRory Walsh
SubjectRe: [Csnd] stopping and starting monitor instr

I usually create my unique string using sprintf.

On 27 May 2014 20:31, "Matti Koskinen" <mjkoskin@kolumbus.fi> wrote:
Thanks Rory,
I’ve been using monitor-opcode, but it does behave probably like fout. In the manual of monitor, the filename must be a string enclosed in quotes, so how to change the filename? I’ll look at fout, maybe it’ll do filenames differently and can be used in the way I use monitor now.

-m

On 27 May, 2014, at 10:21 pm, Rory Walsh <rorywalsh@ear.ie> wrote:

> Are you using fout to record the audio? Then once you turn off the
> instrument it will finish writing the file. Turning it on again will
> cause it to overwrite the file. What I usually do is append the time
> and date to the end of the file name. That way I can start and stop
> recording as often as I like and not have to worry about overwriting
> anything.
>
>



Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-05-27 20:50
FromMatti Koskinen
SubjectRe: [Csnd] stopping and starting monitor instr

On 27 May, 2014, at 10:40 pm, Rory Walsh <rorywalsh@ear.ie> wrote:

I usually create my unique string using sprintf.



sorry, I remembered wrong. Yes I have fout. I’ll try your tip.
Can sox join the  files easily?

-m


Date2014-05-27 21:01
FromVictor Lazzarini
SubjectRe: [Csnd] stopping and starting monitor instr
Csound can join the files too.
On 27 May 2014, at 20:50, Matti Koskinen wrote:

> 
> On 27 May, 2014, at 10:40 pm, Rory Walsh  wrote:
> 
>> I usually create my unique string using sprintf.
>> 
> 
> 
> sorry, I remembered wrong. Yes I have fout. I’ll try your tip.
> Can sox join the  files easily?
> 
> -m
> 

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





Date2014-05-27 21:25
FromMatti Koskinen
SubjectRe: [Csnd] stopping and starting monitor instr
or just write a big file and then post-process with csound to remove the silence

-m

On 27 May, 2014, at 11:01 pm, Victor Lazzarini  wrote:

> Csound can join the files too.
> On 27 May 2014, at 20:50, Matti Koskinen wrote: