[Csnd] Write a .txt file
| Date | 2024-04-22 18:41 |
| From | Philipp Neumann |
| Subject | [Csnd] Write a .txt file |
Hello everybody!
Is there a function in csound to create a text file from scratch?
i don’t want to write in it, just create if filevalid is 0 and to use it after the init phase.
Greetings,
Philipp
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 |
| Date | 2024-04-22 18:47 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] Write a .txt file |
fiopen Prof. Victor Lazzarini Maynooth University Ireland > On 22 Apr 2024, at 18:42, Philipp Neumann |
| Date | 2024-04-22 21:27 |
| From | Philipp Neumann |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] Write a .txt file |
Thanks Victor!
Now, related to the first question, i want to know if i can delay the #include of the same file. is this possible in some kind of way?
i do this
instr file_validity
iValid filevalid "midi-presets.txt"
if iValid == 1 igoto skip
print iValid
iFile fiopen "midi-presets.txt", 0
skip:
turnoff
endin
and later i do the #include „midi-presets.txt". but when i start csound the files does not exist yet. but i guess the #include is part of the preprocessor, so this is happening even before the init phase.
Or is there a way around this?
Greetings,
Philipp
> Am 22.04.2024 um 19:47 schrieb Victor Lazzarini |
| Date | 2024-04-23 00:06 |
| From | thorin kerr |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] Write a .txt file |
Instead of #include, perhaps use compileorc ? Thorin On Tue, 23 Apr 2024, 6:28 am Philipp Neumann, <philipp@von-neumann.com> wrote: Thanks Victor! |
| Date | 2024-04-23 07:05 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] Write a .txt file |
|
I guess you can try recompiling the code
Prof. Victor Lazzarini
Maynooth University
Ireland
On 22 Apr 2024, at 21:28, Philipp Neumann <philipp@von-neumann.com> wrote:
|