Csound Csound-dev Csound-tekno Search About

[Csnd] where are the temp files when editing with CsoundQt

Date2021-01-22 21:38
From"Dr. Richard Boulanger"
Subject[Csnd] where are the temp files when editing with CsoundQt
Hello Tarmo, Hello Csounders,

On the MacBook, I was working on a piece in CsoundQt yesterday - and as I was going alone, I was hitting Ctrl-S.  After about 8 very productive hours, it was done and I was putting the final touches on it - when... CsoundQt crashed.

And, I could not locate the file that I had been editing anywhere?
- I must have been saving it in some TMP directory somewhere - not sure.

It was derived from the new .csd on the manpage for the turnon opcode.
- does anyone have any suggestions on how I might find this file?

Tarmo, is there a folder in which the CsoundQt app typically stores the files it is temporarily editing?

I tried most of the tricks I know and yet, I was not successful.  It was a pretty little thing. It would be great if I could find the file (maybe it is 'hidden') (maybe it is 'invisible' or renamed with some tmp file name that does not have a .csd.

Maybe there is some power trick that one of you knows to reveal ALL files created on the Mac between 8 am and 6 pm on January 21, 2021.

Thanks for any suggestions and tips you might be able to offer.

Dr.B.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


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

Date2021-01-22 22:18
FromEduardo Moguillansky
SubjectRe: [Csnd] where are the temp files when editing with CsoundQt

Hi,

in linux and macos files are saved to "/tmp/csound-tmpXXXXXXXX.csd", where the Xs are replaced by some unique string. You can search there and grep the .csds for some known string in your specific file

good luck,

eduardo

On 22.01.21 22:38, Dr. Richard Boulanger wrote:

Hello Tarmo, Hello Csounders,

On the MacBook, I was working on a piece in CsoundQt yesterday - and as I was going alone, I was hitting Ctrl-S.  After about 8 very productive hours, it was done and I was putting the final touches on it - when... CsoundQt crashed.

And, I could not locate the file that I had been editing anywhere?
- I must have been saving it in some TMP directory somewhere - not sure.

It was derived from the new .csd on the manpage for the turnon opcode.
- does anyone have any suggestions on how I might find this file?

Tarmo, is there a folder in which the CsoundQt app typically stores the files it is temporarily editing?

I tried most of the tricks I know and yet, I was not successful.  It was a pretty little thing. It would be great if I could find the file (maybe it is 'hidden') (maybe it is 'invisible' or renamed with some tmp file name that does not have a .csd.

Maybe there is some power trick that one of you knows to reveal ALL files created on the Mac between 8 am and 6 pm on January 21, 2021.

Thanks for any suggestions and tips you might be able to offer.

Dr.B.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


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

Date2021-01-22 23:18
FromTarmo Johannes
SubjectRe: [Csnd] where are the temp files when editing with CsoundQt
Hi!

According to Qt documentation  https://doc.qt.io/qt-5/qstandardpaths.html I read for  MacOS:
"
TempLocation -> MacOS -> randomly generated by the OS
"
hm... I don't know how to figure it out.

Do you  have PythonQt support in your CsoundQt? You could try to enter the following lines in the python console:

from PythonQt.Qt import *

QDir.tempPath()

or

QStandardPaths.writableLocation(QStandardPaths.TempLocation)


It should return the temporaroy location in the Python console. Maybe it gives a hint?


But strange there was nothing in recent files? And, didn't you have "Save  automatically on Run" ticked on Configrue->Editor (should be by default, I guess... )

Hope you get it back...

tarmo

Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval L, 23. jaanuar 2021 kell 00:18:

Hi,

in linux and macos files are saved to "/tmp/csound-tmpXXXXXXXX.csd", where the Xs are replaced by some unique string. You can search there and grep the .csds for some known string in your specific file

good luck,

eduardo

On 22.01.21 22:38, Dr. Richard Boulanger wrote:

Hello Tarmo, Hello Csounders,

On the MacBook, I was working on a piece in CsoundQt yesterday - and as I was going alone, I was hitting Ctrl-S.  After about 8 very productive hours, it was done and I was putting the final touches on it - when... CsoundQt crashed.

And, I could not locate the file that I had been editing anywhere?
- I must have been saving it in some TMP directory somewhere - not sure.

It was derived from the new .csd on the manpage for the turnon opcode.
- does anyone have any suggestions on how I might find this file?

Tarmo, is there a folder in which the CsoundQt app typically stores the files it is temporarily editing?

I tried most of the tricks I know and yet, I was not successful.  It was a pretty little thing. It would be great if I could find the file (maybe it is 'hidden') (maybe it is 'invisible' or renamed with some tmp file name that does not have a .csd.

Maybe there is some power trick that one of you knows to reveal ALL files created on the Mac between 8 am and 6 pm on January 21, 2021.

Thanks for any suggestions and tips you might be able to offer.

Dr.B.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


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

Date2021-01-22 23:22
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] where are the temp files when editing with CsoundQt
There might have been something in Recent files, but I got so nervous, I started opening everything I could find on all my drives - which meant that the 'recent files' got filled up with all those... recently opened files.  My first place to look should have been the 'recent files' but I was in a state of panic and shock.  It was all done... I was just editing a note to thank Stefano Cucci for the inspiration - and then POOF - gone.  I will look now.  Thanks for your advice.

Thanks also to Eduardo too!!!!

-R

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division




On Fri, Jan 22, 2021 at 6:18 PM Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

According to Qt documentation  https://doc.qt.io/qt-5/qstandardpaths.html I read for  MacOS:
"
TempLocation -> MacOS -> randomly generated by the OS
"
hm... I don't know how to figure it out.

Do you  have PythonQt support in your CsoundQt? You could try to enter the following lines in the python console:

from PythonQt.Qt import *

QDir.tempPath()

or

QStandardPaths.writableLocation(QStandardPaths.TempLocation)


It should return the temporaroy location in the Python console. Maybe it gives a hint?


But strange there was nothing in recent files? And, didn't you have "Save  automatically on Run" ticked on Configrue->Editor (should be by default, I guess... )

Hope you get it back...

tarmo

Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval L, 23. jaanuar 2021 kell 00:18:

Hi,

in linux and macos files are saved to "/tmp/csound-tmpXXXXXXXX.csd", where the Xs are replaced by some unique string. You can search there and grep the .csds for some known string in your specific file

good luck,

eduardo

On 22.01.21 22:38, Dr. Richard Boulanger wrote:

Hello Tarmo, Hello Csounders,

On the MacBook, I was working on a piece in CsoundQt yesterday - and as I was going alone, I was hitting Ctrl-S.  After about 8 very productive hours, it was done and I was putting the final touches on it - when... CsoundQt crashed.

And, I could not locate the file that I had been editing anywhere?
- I must have been saving it in some TMP directory somewhere - not sure.

It was derived from the new .csd on the manpage for the turnon opcode.
- does anyone have any suggestions on how I might find this file?

Tarmo, is there a folder in which the CsoundQt app typically stores the files it is temporarily editing?

I tried most of the tricks I know and yet, I was not successful.  It was a pretty little thing. It would be great if I could find the file (maybe it is 'hidden') (maybe it is 'invisible' or renamed with some tmp file name that does not have a .csd.

Maybe there is some power trick that one of you knows to reveal ALL files created on the Mac between 8 am and 6 pm on January 21, 2021.

Thanks for any suggestions and tips you might be able to offer.

Dr.B.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


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

Date2021-01-22 23:23
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] where are the temp files when editing with CsoundQt
Thanks, Eduardo,

I will take your advice and look into this right away.  I will let you know what I find.  And thanks so much.  

-R

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division




On Fri, Jan 22, 2021 at 5:19 PM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:

Hi,

in linux and macos files are saved to "/tmp/csound-tmpXXXXXXXX.csd", where the Xs are replaced by some unique string. You can search there and grep the .csds for some known string in your specific file

good luck,

eduardo

On 22.01.21 22:38, Dr. Richard Boulanger wrote:

Hello Tarmo, Hello Csounders,

On the MacBook, I was working on a piece in CsoundQt yesterday - and as I was going alone, I was hitting Ctrl-S.  After about 8 very productive hours, it was done and I was putting the final touches on it - when... CsoundQt crashed.

And, I could not locate the file that I had been editing anywhere?
- I must have been saving it in some TMP directory somewhere - not sure.

It was derived from the new .csd on the manpage for the turnon opcode.
- does anyone have any suggestions on how I might find this file?

Tarmo, is there a folder in which the CsoundQt app typically stores the files it is temporarily editing?

I tried most of the tricks I know and yet, I was not successful.  It was a pretty little thing. It would be great if I could find the file (maybe it is 'hidden') (maybe it is 'invisible' or renamed with some tmp file name that does not have a .csd.

Maybe there is some power trick that one of you knows to reveal ALL files created on the Mac between 8 am and 6 pm on January 21, 2021.

Thanks for any suggestions and tips you might be able to offer.

Dr.B.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


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

Date2021-01-23 17:57
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] where are the temp files when editing with CsoundQt
Tarmo and Eduardo,

I found it!

Thanks.  

Sharing the "first versions" called Etude 2 ;-) in a minute.

-dB




On Fri, Jan 22, 2021 at 6:18 PM Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

According to Qt documentation  https://doc.qt.io/qt-5/qstandardpaths.html I read for  MacOS:
"
TempLocation -> MacOS -> randomly generated by the OS
"
hm... I don't know how to figure it out.

Do you  have PythonQt support in your CsoundQt? You could try to enter the following lines in the python console:

from PythonQt.Qt import *

QDir.tempPath()

or

QStandardPaths.writableLocation(QStandardPaths.TempLocation)


It should return the temporaroy location in the Python console. Maybe it gives a hint?


But strange there was nothing in recent files? And, didn't you have "Save  automatically on Run" ticked on Configrue->Editor (should be by default, I guess... )

Hope you get it back...

tarmo

Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval L, 23. jaanuar 2021 kell 00:18:

Hi,

in linux and macos files are saved to "/tmp/csound-tmpXXXXXXXX.csd", where the Xs are replaced by some unique string. You can search there and grep the .csds for some known string in your specific file

good luck,

eduardo

On 22.01.21 22:38, Dr. Richard Boulanger wrote:

Hello Tarmo, Hello Csounders,

On the MacBook, I was working on a piece in CsoundQt yesterday - and as I was going alone, I was hitting Ctrl-S.  After about 8 very productive hours, it was done and I was putting the final touches on it - when... CsoundQt crashed.

And, I could not locate the file that I had been editing anywhere?
- I must have been saving it in some TMP directory somewhere - not sure.

It was derived from the new .csd on the manpage for the turnon opcode.
- does anyone have any suggestions on how I might find this file?

Tarmo, is there a folder in which the CsoundQt app typically stores the files it is temporarily editing?

I tried most of the tricks I know and yet, I was not successful.  It was a pretty little thing. It would be great if I could find the file (maybe it is 'hidden') (maybe it is 'invisible' or renamed with some tmp file name that does not have a .csd.

Maybe there is some power trick that one of you knows to reveal ALL files created on the Mac between 8 am and 6 pm on January 21, 2021.

Thanks for any suggestions and tips you might be able to offer.

Dr.B.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


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