Csound Csound-dev Csound-tekno Search About

write function table to audio file

Date2017-07-29 23:08
FromRichard
Subjectwrite function table to audio file
Is there an opcode for writing (part of) a function table to an audio 
file? Sort of inverse GEN1?
What I am trying to do is record some sound when a threshold is crossed 
and then stop recording when below a second threshold.
This should then be written to an audio file. I could not find an opcode 
to write a table to an audio file...

Richard

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

Date2017-07-29 23:34
From"Jeanette C."
SubjectRe: write function table to audio file
Jul 30 2017, Richard has written:

> Is there an opcode for writing (part of) a function table to an audio file? 
Hi Richard,
no, I don't think so. but there are different ways, that I can think of.

Writing RAW samples (optionally to be converted to a file with some
header externally) you can use ftsave/ftsavek. These files can easily be
loaded into Csound again without any further, external modification.

You might use fout with a special writing instrument, you only have to
calculate the "pitch" or rate of the part of you ftable, so it can be
played back at original tempo and frequency. You can use the table
opcode family (table, table3,...) and - perhaps - a modified phasor to
read your audio material and then write the resultant audio signal to a
file. AFAIK, fout can write multi-channel signals as well.

HTH.
...

Best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

But now I'm stronger than yesterday <3
(Britney Spears)

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

Date2017-07-30 08:51
FromVictor Lazzarini
SubjectRe: write function table to audio file
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C.  wrote:
> 
> Jul 30 2017, Richard has written:
> 
>> Is there an opcode for writing (part of) a function table to an audio file? 
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
> 
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
> 
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
> 
> HTH.
> ...
> 
> Best wishes,
> 
> Jeanette
> 
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
> 
> But now I'm stronger than yesterday <3
> (Britney Spears)
> 
> 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

Date2017-07-30 12:49
FromRichard
SubjectRe: write function table to audio file
Thanks, I'll give that a try..

Richard


On 30/07/17 09:51, Victor Lazzarini wrote:
> It should be easy enough to do an UDO.
>
> opcode TabWrite,0,Siii
> setksmps 1
> Sn,ifn,ist,iend xin
> kcnt init ist
> while kcnt < iend do
> asmp table a(kcnt), ifn
> fout Sn, 2, asmp
> kcnt+=1
> od
> endop
>
> Not tested but that's the gist of it.
>
>
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 29 Jul 2017, at 23:34, Jeanette C.  wrote:
>>
>> Jul 30 2017, Richard has written:
>>
>>> Is there an opcode for writing (part of) a function table to an audio file?
>> Hi Richard,
>> no, I don't think so. but there are different ways, that I can think of.
>>
>> Writing RAW samples (optionally to be converted to a file with some
>> header externally) you can use ftsave/ftsavek. These files can easily be
>> loaded into Csound again without any further, external modification.
>>
>> You might use fout with a special writing instrument, you only have to
>> calculate the "pitch" or rate of the part of you ftable, so it can be
>> played back at original tempo and frequency. You can use the table
>> opcode family (table, table3,...) and - perhaps - a modified phasor to
>> read your audio material and then write the resultant audio signal to a
>> file. AFAIK, fout can write multi-channel signals as well.
>>
>> HTH.
>> ...
>>
>> Best wishes,
>>
>> Jeanette
>>
>> --------
>> * website: http://juliencoder.de - for summer is a state of sound
>> * SoundCloud: https://soundcloud.com/jeanette_c
>>
>> But now I'm stronger than yesterday <3
>> (Britney Spears)
>>
>> 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

Date2017-09-26 21:15
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

Date2017-09-26 21:39
FromRichard
SubjectRe: [Csnd] write function table to audio file

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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


Date2017-09-26 21:51
FromVictor Lazzarini
SubjectRe: [Csnd] write function table to audio file
We don't use scons with Csound 6, that was Csound 5. The most up to date plugin opcode development guide is in the Csound FLOSS manual; have a look at it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Sep 2017, at 21:16, Patrick Hinkle <avmac1983@GMAIL.COM> wrote:

I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

Date2017-09-26 21:53
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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

Date2017-09-26 22:07
FromRichard
SubjectRe: [Csnd] write function table to audio file

Can you cd (change directory, or dir on Windows) to that path and execute the command? BTW, I do not think that is the full path. In my case (OSX) the full path starts with:

/Users/richard/Downloads/......

Richard


On 26/09/17 22:53, Patrick Hinkle wrote:
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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


Date2017-09-26 22:08
FromRichard
SubjectRe: [Csnd] write function table to audio file

What OS are you on?


On 26/09/17 22:53, Patrick Hinkle wrote:
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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


Date2017-09-26 22:10
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
Thanks, I found the plugin opcode development guide section in the FLOSS manual. 
Scons seemed like such a great toolset for software development - should I go back to using gcc, make, etc. and (since I'm on a Mac) Home-brew? or is there another good software development toolset that you know of? 

On Tue, Sep 26, 2017 at 1:51 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
We don't use scons with Csound 6, that was Csound 5. The most up to date plugin opcode development guide is in the Csound FLOSS manual; have a look at it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Sep 2017, at 21:16, Patrick Hinkle <avmac1983@GMAIL.COM> wrote:

I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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
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

Date2017-09-26 22:13
FromVictor Lazzarini
SubjectRe: [Csnd] write function table to audio file
We replaced with CMake, which was found to be better for what we do in Csound. 

For plugins, however, often a single command is all we need anyway.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Sep 2017, at 22:10, Patrick Hinkle <avmac1983@GMAIL.COM> wrote:

Thanks, I found the plugin opcode development guide section in the FLOSS manual. 
Scons seemed like such a great toolset for software development - should I go back to using gcc, make, etc. and (since I'm on a Mac) Home-brew? or is there another good software development toolset that you know of? 

On Tue, Sep 26, 2017 at 1:51 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
We don't use scons with Csound 6, that was Csound 5. The most up to date plugin opcode development guide is in the Csound FLOSS manual; have a look at it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Sep 2017, at 21:16, Patrick Hinkle <avmac1983@GMAIL.COM> wrote:

I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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
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

Date2017-09-26 22:18
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
I started my command with /Users/patrickalexander and I got the following (shortened) output and error ("Permission denied"):

running install

running build

running build_py

creating build

creating build/lib

creating build/lib/SCons

copying engine/SCons/__init__.py -> build/lib/SCons

...(I left out a lot here)

copying script/scons-configure-cache -> /usr/local/bin

running install_data

copying scons.1 -> /usr/local/man/man1

error: [Errno 13] Permission denied: '/usr/local/man/man1/scons.1'

Do you know how I could get permission?



On Tue, Sep 26, 2017 at 2:07 PM, Richard <zappfinger@gmail.com> wrote:

Can you cd (change directory, or dir on Windows) to that path and execute the command? BTW, I do not think that is the full path. In my case (OSX) the full path starts with:

/Users/richard/Downloads/......

Richard


On 26/09/17 22:53, Patrick Hinkle wrote:
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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

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

Date2017-09-26 22:19
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
OK, sounds good. Thank you for your time.


On Tue, Sep 26, 2017 at 2:13 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
We replaced with CMake, which was found to be better for what we do in Csound. 

For plugins, however, often a single command is all we need anyway.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Sep 2017, at 22:10, Patrick Hinkle <avmac1983@GMAIL.COM> wrote:

Thanks, I found the plugin opcode development guide section in the FLOSS manual. 
Scons seemed like such a great toolset for software development - should I go back to using gcc, make, etc. and (since I'm on a Mac) Home-brew? or is there another good software development toolset that you know of? 

On Tue, Sep 26, 2017 at 1:51 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
We don't use scons with Csound 6, that was Csound 5. The most up to date plugin opcode development guide is in the Csound FLOSS manual; have a look at it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Sep 2017, at 21:16, Patrick Hinkle <avmac1983@GMAIL.COM> wrote:

I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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
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

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

Date2017-09-26 22:23
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
Mac OS X Sierra.

On Tue, Sep 26, 2017 at 2:08 PM, Richard <zappfinger@gmail.com> wrote:

What OS are you on?


On 26/09/17 22:53, Patrick Hinkle wrote:
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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

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

Date2017-09-26 22:30
FromRichard
SubjectRe: [Csnd] write function table to audio file

ok, than you should preceed your command with sudo (super user do) and enter your admin password...


On 26/09/17 23:18, Patrick Hinkle wrote:
I started my command with /Users/patrickalexander and I got the following (shortened) output and error ("Permission denied"):

running install

running build

running build_py

creating build

creating build/lib

creating build/lib/SCons

copying engine/SCons/__init__.py -> build/lib/SCons

...(I left out a lot here)

copying script/scons-configure-cache -> /usr/local/bin

running install_data

copying scons.1 -> /usr/local/man/man1

error: [Errno 13] Permission denied: '/usr/local/man/man1/scons.1'

Do you know how I could get permission?



On Tue, Sep 26, 2017 at 2:07 PM, Richard <zappfinger@gmail.com> wrote:

Can you cd (change directory, or dir on Windows) to that path and execute the command? BTW, I do not think that is the full path. In my case (OSX) the full path starts with:

/Users/richard/Downloads/......

Richard


On 26/09/17 22:53, Patrick Hinkle wrote:
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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

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


Date2017-09-26 22:46
FromPatrick Hinkle
SubjectRe: [Csnd] write function table to audio file
I entered the following in the command line and it installed correctly! Then I typed in "scons" and got the following: 

scons: *** No SConstruct file found.

File "/usr/local/lib/scons-2.5.1/SCons/Script/Main.py", line 912, in _main

I thought that the SConstruct file would be a sort of base file to my scons-2.5.1 download but apparently the scons command isn't finding it. Any suggestions would be appreciated. 


On Tue, Sep 26, 2017 at 2:30 PM, Richard <zappfinger@gmail.com> wrote:

ok, than you should preceed your command with sudo (super user do) and enter your admin password...


On 26/09/17 23:18, Patrick Hinkle wrote:
I started my command with /Users/patrickalexander and I got the following (shortened) output and error ("Permission denied"):

running install

running build

running build_py

creating build

creating build/lib

creating build/lib/SCons

copying engine/SCons/__init__.py -> build/lib/SCons

...(I left out a lot here)

copying script/scons-configure-cache -> /usr/local/bin

running install_data

copying scons.1 -> /usr/local/man/man1

error: [Errno 13] Permission denied: '/usr/local/man/man1/scons.1'

Do you know how I could get permission?



On Tue, Sep 26, 2017 at 2:07 PM, Richard <zappfinger@gmail.com> wrote:

Can you cd (change directory, or dir on Windows) to that path and execute the command? BTW, I do not think that is the full path. In my case (OSX) the full path starts with:

/Users/richard/Downloads/......

Richard


On 26/09/17 22:53, Patrick Hinkle wrote:
I tried "python /Downloads/scons-2.5.1/setup.py install" which is the full path, if I am understanding full paths correctly, but I still got, essentially, the same error:

python /Downloads/scons-2.5.1/setup.py install

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Downloads/scons-2.5.1/setup.py': [Errno 2] No such file or directory

It's possible I need to "navigate the directory", but I am a novice command-line programmer and I am not clear on how to do this.


On Tue, Sep 26, 2017 at 1:39 PM, Richard <zappfinger@gmail.com> wrote:

You should navigate to the directory containing this setup.py and then execute the command, OR you can include the full path to setup.py..

Richard


On 26/09/17 22:15, Patrick Hinkle wrote:
I have downloaded scons on my MacBook Pro, Sierra, and have also downloaded and installed Python, versions 2.7.13 and 3.6.2 as was instructed by you in your "scons-guide" from The Audio Programming Book. I've read the README.txt and it says to enter "python setup.py install" into the Terminal command line if I am reading it correctly. I get the following error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Apparently the command isn't finding "setup.py". Any help with this would be greatly appreciated.

Thanks,

Patrick 




On Sun, Jul 30, 2017 at 12:51 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
It should be easy enough to do an UDO.

opcode TabWrite,0,Siii
setksmps 1
Sn,ifn,ist,iend xin
kcnt init ist
while kcnt < iend do
asmp table a(kcnt), ifn
fout Sn, 2, asmp
kcnt+=1
od
endop

Not tested but that's the gist of it.



Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Jul 2017, at 23:34, Jeanette C. <julien@MAIL.UPB.DE> wrote:
>
> Jul 30 2017, Richard has written:
>
>> Is there an opcode for writing (part of) a function table to an audio file?
> Hi Richard,
> no, I don't think so. but there are different ways, that I can think of.
>
> Writing RAW samples (optionally to be converted to a file with some
> header externally) you can use ftsave/ftsavek. These files can easily be
> loaded into Csound again without any further, external modification.
>
> You might use fout with a special writing instrument, you only have to
> calculate the "pitch" or rate of the part of you ftable, so it can be
> played back at original tempo and frequency. You can use the table
> opcode family (table, table3,...) and - perhaps - a modified phasor to
> read your audio material and then write the resultant audio signal to a
> file. AFAIK, fout can write multi-channel signals as well.
>
> HTH.
> ...
>
> Best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> But now I'm stronger than yesterday <3
> (Britney Spears)
>
> 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

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

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