Csound Csound-dev Csound-tekno Search About

[Csnd]

Date2010-01-28 13:33
FromEnrico Francioni
Subject[Csnd]


Hi csounders!

…I ask for advice.

I would like to import an audio file (for example:
"/Users/enrico/Desktop/original_file.wav") to save it with another name and
another folder (for example: "/Users/enrico/Desktop/Test/anothername.wav),
but without running the audio file!

Someone has an idea of how to do?

Thanks in advance for any answer ...!

e

p.s.
i work with Csound 5.10 and MacCsound 1.4b1
-- 
View this message in context: http://old.nabble.com/save_as%E2%80%A6--tp27356047p27356047.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-28 17:12
FromIain McCurdy
Subject[Csnd]
Is this what you are looking for?

<CsoundSynthesizer>

<CsOptions>
-W -oOutput.wav
</CsOptions>

<CsInstruments>

sr    =        44100
kr    =        44100
ksmps    =        1
nchnls    =        1

;DEFINE A MACRO FOR INPUT  SOUND FILE
#define      INPUTFILE #"Input.wav"#

instr    1
;DERIVE DURATION OF INPUT FILE
idur    filelen        $INPUTFILE
event_i    "i",2,0,idur
endin

instr    2
a1    diskin2    $INPUTFILE, 1
out    a1
endin

</CsInstruments>

<CsScore>
i1 0 0.01
</CsScore>

</CsoundSynthesizer>

This is for a mono sound file but could easily be adapted for stereo file.

Iain









> Date: Thu, 28 Jan 2010 05:33:16 -0800
> From: francioni61021@libero.it
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] save_as…?
>
>
>
>
> Hi csounders!
>
> …I ask for advice.
>
> I would like to import an audio file (for example:
> "/Users/enrico/Desktop/original_file.wav") to save it with another name and
> another folder (for example: "/Users/enrico/Desktop/Test/anothername.wav),
> but without running the audio file!
>
> Someone has an idea of how to do?
>
> Thanks in advance for any answer ...!
>
> e
>
> p.s.
> i work with Csound 5.10 and MacCsound 1.4b1
> --
> View this message in context: http://old.nabble.com/save_as%E2%80%A6--tp27356047p27356047.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Not got a Hotmail account? Sign-up now - Free

Date2010-01-28 18:59
Fromjpff@cs.bath.ac.uk
Subject[Csnd]
Why not just copy it?  Or C-C and C-V it in Windows?  Sorry if I am being
obtuse

==John ff
>
>
>
> Hi csounders!
>
> …I ask for advice.
>
> I would like to import an audio file (for example:
> "/Users/enrico/Desktop/original_file.wav") to save it with another name
> and
> another folder (for example: "/Users/enrico/Desktop/Test/anothername.wav),
> but without running the audio file!
>
> Someone has an idea of how to do?
>
> Thanks in advance for any answer ...!
>
> e
>
> p.s.
> i work with Csound 5.10 and MacCsound 1.4b1
> --
> View this message in context:
> http://old.nabble.com/save_as%E2%80%A6--tp27356047p27356047.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-28 21:15
FromEnrico Francioni
Subject[Csnd]

Thanks Iain!

Unfortunately this is not what I'm trying ...


I try to explain it even better:

I want to import an audio file (ex: original_file.wav) - with diskin2 or
otherwise ... soundin, Gen1, fin, etc ... 
Then I save this audio file itself under a different name (ex:
another_file.wav) into another folder.

Perhaps with system?

thanks

e



Iain McCurdy wrote:
> 
> 
> Is this what you are looking for?
> 
> 
> 
> 
> -W -oOutput.wav
> 
> 
> 
> 
> sr    =        44100
> kr    =        44100
> ksmps    =        1
> nchnls    =        1
> 
> ;DEFINE A MACRO FOR INPUT  SOUND FILE
> #define      INPUTFILE #"Input.wav"#
> 
> instr    1
> ;DERIVE DURATION OF INPUT FILE
> idur    filelen        $INPUTFILE
> event_i    "i",2,0,idur 
> endin
> 
> instr    2
> a1    diskin2    $INPUTFILE, 1
> out    a1
> endin
> 
> 
> 
> 
> i1 0 0.01
> 
> 
> 
> 
> This is for a mono sound file but could easily be adapted for stereo file.
> 
> Iain
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> Date: Thu, 28 Jan 2010 05:33:16 -0800
>> From: francioni61021@libero.it
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd]  save_as…?
>> 
>> 
>> 
>> 
>> Hi csounders!
>> 
>> …I ask for advice.
>> 
>> I would like to import an audio file (for example:
>> "/Users/enrico/Desktop/original_file.wav") to save it with another name
>> and
>> another folder (for example:
>> "/Users/enrico/Desktop/Test/anothername.wav),
>> but without running the audio file!
>> 
>> Someone has an idea of how to do?
>> 
>> Thanks in advance for any answer ...!
>> 
>> e
>> 
>> p.s.
>> i work with Csound 5.10 and MacCsound 1.4b1
>> -- 
>> View this message in context:
>> http://old.nabble.com/save_as%E2%80%A6--tp27356047p27356047.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> 
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>  		 	   		  
> _________________________________________________________________
> We want to hear all your funny, exciting and crazy Hotmail stories. Tell
> us now
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 

-- 
View this message in context: http://old.nabble.com/save_as%E2%80%A6--tp27356047p27361165.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-28 21:33
FromEnrico Francioni
Subject[Csnd]

Thanks John!

I'm writing a prototype of multi-track editor with Csound (such as exercise
on the code csound).
When the user decides to import an audio file in the editor,
the file will overwrite a file that can be called "file_traccia_01.wav" or
"file_traccia_02.wav" or
"file_traccia_03.wav" ... and so on, depending on the chosen track. As in an
audio editor.


Let me give another example:
on track 1 to record something (from a microphone or signal input) this will
create a file called "file_traccia_01.wav";
but I later I might need, like an editor to delete what occupied
track 1 to go and put a file_audio.wav: the latter then take the name of
"file_traccia_01.wav," although of course the content will be changed ...

It is not clear?


e







jpff-2 wrote:
> 
> Why not just copy it?  Or C-C and C-V it in Windows?  Sorry if I am being
> obtuse
> 
> ==John ff
>>
>>
>>
>> Hi csounders!
>>
>> …I ask for advice.
>>
>> I would like to import an audio file (for example:
>> "/Users/enrico/Desktop/original_file.wav") to save it with another name
>> and
>> another folder (for example:
>> "/Users/enrico/Desktop/Test/anothername.wav),
>> but without running the audio file!
>>
>> Someone has an idea of how to do?
>>
>> Thanks in advance for any answer ...!
>>
>> e
>>
>> p.s.
>> i work with Csound 5.10 and MacCsound 1.4b1
>> --
>> View this message in context:
>> http://old.nabble.com/save_as%E2%80%A6--tp27356047p27356047.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
> 
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://old.nabble.com/save_as%E2%80%A6--tp27356047p27362295.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"