Feedback on optimizing "code"?

I know he specializes in Java but he knows lots of them. He’s a consultant for businesses that have website issues and they all have their own languages that they use.

I’m somewhat okay at coding, a bit above average, I’ve taken computer classes my whole life but I hadn’t paid attention most of the time. I did scratch from 1st-6th grade, then i started java for a few weeks in 7th grade in semi-private classes before I moved away, and recently got back into it in 9th grade with my computer class. I’ve been teaching myself “programming” in desmos ever since.

3 Likes

haha im actually not great at math. fun fact, I failed my algebra 1 class and had to retake it. :joy: it was mostly because my teacher wasnt great but still

2 Likes

Honestly learning Desmos is basically learning Algebra 1 :rofl:

Again, the music lab thing was quite impressive

2 Likes

Thank you! I really like your calculator thats something i’ve attempted before and got frustrated and quit haha.

1 Like

Thanks.. I did spend 5 long gruesome months making it.

I used floor to parse each of the digits into individual segments so the segment reader could make it actually display. Everything else just makes it cooler… more features etc.

2 Likes

Cool! I have to get going, but its awesome to meet you

1 Like

Nice to meet you too! I believe you’re in school, yes? I’m also in school :+1:

1 Like

made some changes, lmk what yall think Desmos Music Lab | Desmos

2 Likes

Bug: The music keeps playing even though the blue bar has reached the end. I believe it keeps cycling indefinitely. I think you need to make a halt command, like this:

halt = pause -> {note=end:1,0}

1 Like

amazing! i really like the way you had a folder of stuff you didnt know where to put.im totally copying that!

ps.you missed three statements at the bottom of that folder

pps.i cant hear the sound btw

is we are talking about bad teachers, i had a teacher who favoured girls and homeroom kids(i was neither),had back problems and was so bad that even the girls in the home room class hate her :scream:

1 Like

The graph is defaulted to be muted. Check on the very top of the equation part and you will see the sound button.

You might already know this but you can type folder into the expression area and Desmos will automatically make a folder for you

2 Likes

I actually have a glitch sometimes where desmos wont play sound at all. its not just this graph it applies to the entirety of desmos. that might be ur issue

1 Like

Maybe you turned off the tone, idk. I think you know this but you can turn a tone off just like any other graph element.

1 Like

[Copy of] [Copy of] Desmos Music Lab | Desmos the final version for now @NTMDev @Daniel_Grubbs @bhssingul

2 Likes

nice! best of luck with the expo!a way you sould make this better would be to have a list of pre set songs,for inspiration

1 Like

ooh that would be nice

1 Like

alright yall.. having another issue. the sound is playing late (2-3 seconds late) and im not sure if its because of my computer lagging or an issue in the math. Would yall test it for me? Desmos Music Lab | Desmos

1 Like

found nothing ,think its a lag issue

I agree it may be lag. I also see the delay, but if I manually adjust things the bar seems to align fine with the correct tones. (Running a search, I’m not sure what S_lider and S_liderMark are doing though they’re included in actions and the ticker and may be slowing things down.)

A side suggestion: You can have variable names for sets of actions, which can help with making updates. For example, you have 4 polygons all running the same set of actions. You could have:

R_{eset} = s_{lider} → 0, s_{how1} → 1, S_{lidermark} → 0, v → 0, v_{olume} → 1

Then use R_{eset} for each “Run: “, that way you only need to edit R_{eset} and it links to all the actions you’ve attached. You can also do this with the ticker.

An alternative to having actions for all the parts of your button is to make a white circle polygon with almost zero opacity that is layered on top of the others. Then, you only need an action on that one.

1 Like