Help identifying a programming/scripting language [closed] - programming-languages

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
Can anyone identify this programming/scripting language off of a few examples of the syntax? It appears each file (function?) starts with:
sym int all
terminal read off
hc read off
eq
And also contains such syntax as: (note IDENT is used for what appears to be an identifier)
IDENT1=(IDENT2/123.4)*IDENT3
INPUT TABLE
IDENT / 0. 0. 0. 0.
0. 0.
0. 0.
0. 0.
ENDIN
in tb '/unix/path' ident
And it appears each numeric literal in the source must end with a ., so valid numbers appear to be
123.
123.456
.456
There does not appear to be any form of epilogue to the samples I am looking at, the code just stops with a final assignment (or what I'm assuming is an assignment)

Since "sym int all" fails to google anything relevant, and since you've signed an NDA, I'm going to place my money on "proprietary."
I looked further into CSound (which I've messed with just a bit in CSoundVST), and while there is an ENDIN, I never see it close INPUT. It's used to close instr blocks.

It might be Csound / Algoscore

I have determined that this is in fact proprietary.

Related

My excel file keeps freezing

I have a file with the usual sumifs and vlookups. Nothing complicated computationally!
It has a lot of conditional formatting
As I remove the formulas the wait cursor remains there for shorter and shorter.
When I remove all the formulas and the formatting the file is fine as in I do not get the wait cursor. What is left is a file with no calculations and flat data.
Even with calculations that are just summing I am getting the wait cursor
I have tried excel open and repair. This does not work.
My sumifs have been changed to refer to a finite array as opposed to whole columns (which are also finite for the pedantic! but say these are infinite)
I think what I want to know, is what is known to cause a wait cursor to appear in excel? What can I do to minimize the time that the wait cursor appears?
I have looked on google and am not finding anything useful or relevant to my problem
I am starting to realise that wait cursor seems to always appear for a split second when I insert a column! however with my few sumifs formulas the wait cursor is getting longer and longer. Is it possible for sumifs formulas to calculate quickly but add to the wait cursor time the more sumifs you add?
Old question :
I have an excel file that keeps freezing
It calculates and saves very quickly. it is only 3090kb
Every time I insert a column or add a sheet for example I get the egg timer and if I click it starts to say 'not responding'
It only happens with this file so I don't believe it is my computer or excel version
the file was working fine before. I extended the formulas in about ten tabs (although not that many calcs added) and then it started to freeze
even if I delete every tab so there is just a blank sheet in the file it still freezes
Please help. Thanks
Please do not answer yet, I am still investigating and will get back to this. thank you
EDIT: The WAIT cursor not egg timer
Check if there are any hidden sheets with the data that is slowing it down.
Right click on sheet tab and unhide.
Make this practice to use this Macro or set Row Height to 15 so they don't Wrap. Wraptext in large excel files causes it to slow down to the point of freezing:
activesheet.cells.wraptext = false
#Jasmine - I wasn't suggesting that you are making anything up, nor was I my comment intended to be facetious. My point was that your question sounds self-contradictory to me.
When learning a new coding language, learning which questions to ask and how to phrase and share your problem is a skill in itself.
The fact that your file functions (a.k.a. calculates) 'properly'
until more identical formulas are added, sounds to me like it's no longer calculating properly, so I was unsure what you meant.
As for the `size doesn't matter' comment, it's another valid point about how some people ask questions when mistakenly thinking that file size has any significance. I've encountered and solved thousands of [seemingly unique] issues over the years but the last time I looked at the size of my file would have been back when it would've had to fit on a diskette.
Similarly, I often see questions here where the "asker" includes irrelevant statistics like the number of records in their database, as if you need to code differently for 10 records versus 10,000,000 (which isn't generally true, btw). I can't help but chuckle at some questions where the O.P. spends more time describing the formatting of a cell than the formula it contains (that's causing the issue). But from their point of view, it's significant.
Think of the people reading your question as sitting in your office blindfolded while you explain your problem. If you're asking for (free) help from others who cannot see what you can, with zero previous knowledge, does it not make sense to make a question absolutely as clear as possible -- even if that involves Googling a word to update your terminology that you know is incorrect? (or is the onus on the reader to figure out what you mean?
**Did you click the links I posted for you (above) to learn how to better communicate your problem and edit your question to add more specific examples and more information as requested and described in those links? (or was that a "waste of time" as well?) There were specific questions for you as well.
This site was frustrating for me when I first joined too but the rules and posting etiquette were not made immediately known to me by a stranger with a few seconds to spare. I had a major learning curve and some pretty nasty comments from people since I was breaking rules I wasn't even aware of. I am actually breaking a major rule right now, can you identify it perhaps by familiarizing yourself with the site in the Help Center?
Hint: I'm probably going to get "scolded" for the method I am using to give you this advice as opposed to the short comments and links I would normally post on a question that needs more information so I or others can give an informed answer. Some people don't like posting a question and not getting a custom written set of code promptly written just for them. Some people are grateful for every bit of advice they can get from a stranger, others never come back and find a site more suited to their needs.
Remember, there is a ton of existing information on this site and others because it's very unlikely that whatever problem you're having has been experienced - and solved - by many, many people before you. By researching as much as possible, you learn both about your problem and about which questions get "better" answers than others.
Anyhow I hope you read fast, this answer might not be here long (I wanted to be clear but without a whole whack of comments back and forth...)
Jasmine, if you're still angry with me, you can "get me back" if you can find the correct Flag button. The answer to my question for you in is there too... (It's not option #2, as lest not intentionally!)
Good luck & happy holidays to all!

Excel SUMPRODUCT and ROW Function Error

I keep getting a #NAME? error with this function:
=1/A5*SUMPRODUCT((IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)*EulerPhi(ROW(1:24))*COMBIN(A5/ROW(1:24),B4/ROW(1:24))))
(EulerPhi is a user defined function that does Euler's Totient function)
Does anyone know what could be causing this? Or is there a better way to sum up this from i=1-24 such that
=1/A5*SUMPRODUCT((IF(FLOOR((GCD(A5,B4)/i),1)=GCD(A5,B4)/i,1,0)*EulerPhi(i)*COMBIN(A5/i,B4/i)))
Thanks for your help!
The correct answer to your question "what could be causing this" is: lack of troubleshooting.
Asking why a formula isn't working, without sharing the data that it's looking at, or the code for custom functions, is like if I were to call you and say "what color is that thing?" ... You'd have no idea what I was asking (even though you know what colors are).
Troubleshooting
Your question's title indicates that the problem is [SUMPRODUCT] or [ROW]. I can only assume those terms were randomly chosen since:
you didn't indicate why you suspect those functions specifically
explanation as to why those are any more of an issue than others in the formula like [ROW], [COMBIN] or even custom function [EulerPhi]
you haven't checked back to answer questions about your post since a few minutes after posting.
Troubleshooting Steps
The five-step troubleshooting process consists of the following:
((More detail from the [source])(https://www.myodesie.com/wiki/index/returnEntry/id/2956#Troubleshooting%20Steps))
Verify that a problem actually exists.
Isolate the cause of the problem.
Correct the cause of the problem.
Verify that the problem has been corrected.
Follow up to prevent future problems.
You stopped at Step 1. Even if the next step was:
Post the problematic line as a question on Stack Overflow.
. . . you still couldn't expect a reliable solution since nobody else has the information required for steps 2,3 & 4. (Also, this isn't SO's purpose. Please see the tour.)
Isolating the Problem
Normally, I wouldn't have spent this much time on an "unattended" Question, missing information required to solve the problem, but I'm documenting my troubleshooting steps and this works as a partial an example.
For the sake of illustration I've broken this down into all 25 formula sections. (15 without repeats). Obviously it's not necessary to go this extent, when checking such a simple formula.
(Download a copy of the worksheet here.)
Thus, I can't know for sure where the problem lies without knowing:
- the value of A5
- the value of B5
- the contents of ROW(1:24)
- the code behind custom function EulerPhi
. . . but I can almost guarantee it comes down to:
1. The custom function EulerPhi, and
2. Unintended effects of referring to range ROW(1:24).
You can confirm my theory by checking if this formula calculates properly:
=EulerPhi(ROW(1:24))
If that happens to be working as it should, then copy-and-paste the following 15 forumlas to a blank area of the same worksheet where the data is. Your problem lies with the errors you get:
=1/A5*SUMPRODUCT((IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)*EulerPhi(ROW(1:24))*COMBIN(A5/ROW(1:24),B4/ROW(1:24))))
=A5*SUMPRODUCT((IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)*EulerPhi(ROW(1:24))*COMBIN(A5/ROW(1:24),B4/ROW(1:24))))
=SUMPRODUCT((IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)*EulerPhi(ROW(1:24))*COMBIN(A5/ROW(1:24),B4/ROW(1:24))))
=(IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)*EulerPhi(ROW(1:24))*COMBIN(A5/ROW(1:24),B4/ROW(1:24)))
=IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)*EulerPhi(ROW(1:24))*COMBIN(A5/ROW(1:24),B4/ROW(1:24))
=IF(FLOOR((GCD(A5,B4)/ROW(1:24)),1)=GCD(A5,B4)/ROW(1:24),1,0)
=FLOOR((GCD(A5,B4)/ROW(1:24)),1)
=GCD(A5,B4)/ROW(1:24)
=GCD(A5,B4)
=EulerPhi(ROW(1:24))
=COMBIN(A5/ROW(1:24),B4/ROW(1:24))
=A5
=B4/ROW(1:24)
=B4
=ROW(1:24)
(The formulas were just copies from the image, with duplicates removed.)
By this point, you will have either solved the problem, or at least, have a specific question to ask. Please, read tips on what example information needs to be included here: How to create a Minimal, Complete, and Verifiable example.
Proper troubleshooting methods seem time consuming but the elimination process gets quicker with practice, and will save a lot of time and frustration (for yourself and others) in the long run.

Trying to interpret a VMF file

I read a question about a similar topic on stackoverflow and I have part of the solution to my problem, let me explain what the problem is;
I need to know each and every block's position, and on the question that I read the questioner mentioned that the 3 vectors for "plane" are the determinants of the position, but I read the 1 answer that was there, and also checked the webpage the questioner provided and I couldn't understand it fully, could anyone please simplify it for me, this is holding me back from parsing VMF files.

Just a couple of really basic syntax questions (Basic)

I'm in the process of updating an old BS2 (basic stamp) Rev for an Ardunio for a piece of hardware for the company I work for, and I've just encountered a couple pieces of code that I'm not too sure on and I'd like some clarification. I've looked for a bit, but a couple of these are just not listed anywhere. I can't post the full code here for obvious reason, so I'll clarify other information as needed.
CONVERT_AD:
CONFIG_AD = CONFIG_AD |%1011 'Set all bits except channel.
LOW CHIP_SELECT 'Activate the ADC.
SHIFTOUT DATA_IO,CLOCK,LSBFIRST,[CONFIG_AD\4] 'Send config bits.
SHIFTIN DATA_IO,CLOCK,MSBPOST,[AD_RESULT\12] 'Get data bits.
HIGH CHIP_SELECT 'Deactivate the ADC.
RETURN
The line that's got me here is the CONFIG_AD = CONFIG_AD |%1011. It appears to obvious be a binary conversion, but I don't know what the operators are in this case. It looks like a 'assign'.
The value of CONFIG_AD is a word, if that's of any importance. It is hooking a pin for a half-duplex communication with a LTC1298 CN8 A-D converter. I've also read the data sheet, but it doesn't provide a lot of information regarding this. I think it's a 12 bit device? (though I'm not sure).
Just a lot of this information is really outdated and not maintained, so finding good information is really proving to be a bitch.
Also, the shift in/shift out, I'm curious why they have the two division functions on this? It seems to be converting it to another format, any explanation of why this is?
And on a slightly related note that is more of a save me time question, rather than I need to know, for the basic stamp, does anyone know it's hertz rates for the clock speed?

Trying to program a piano staff/stave. Is this what it's supposed to look like? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I'm currently writing a software application which creates notes on a staff, when a piano key is pressed. Unfortunately I have no background in music, and thus am finding it quite hard to get started.
Could someone kindly tell me if the following screenshot represents what it would look like on the staff (approximately) if someone presses all the white keys on a 25-key keyboard (15 white, 10 black) from left to right, and then from right to left?
Am I on the right track, or is this completely wrong? (The notes are just displayed as circles for now - im trying to get the positioning right).
Almost. You need a few extra things. (NB. This is a simplified list just to get you going. Music notation is a complex beast that can take years of study to master)
A Clef. Presumably in this instance you're looking for a treble clef.
You need to imagine that there are invisible lines (ledger lines) above and below the 5 you can see. In your example, the very first note played is immediately below the first of the invisible lines at the bottom, so you need to draw that as part of the note. (See the example on the wikipedia page I linked to.)
Obviously, note duration is required, but you mention you're already on that so I won't talk about it here.
A Key signature to tell the player what key the music is in, and therefore what sharps and flats to expect
There's a lot more to drawing music on a stave than meets the eye, I'm afraid, but these should point you in the right direction.
Try looking at examples of sheet music. That may be helpful.
For instance: http://en.wikipedia.org/wiki/Sheet_music
I think so..
But what I'm missing at the most left side of the staff is the 'key'. This is pretty important.

Resources