Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Asked
Resolved Resolved by Nomad 6R!

How Do I Play Audio File In Blocky?

How do I load an audio file in blocky?
All I get is a small white line when I try to load an audio file.
I am using ARC-Beta-2020-03-19-00-19052

User-inserted image


Thanks
Steve


Related Hardware LattePanda
Related Control Soundboard (PC)
Synthiam
#17  
HAha yah - EZ-Script was always my ugly step child though. I really should have considered using a real language instead of trying to make a new one. I think you believe ezscript is easy because you learned it. It's actually quite ugly when it comes to a programming language. JavaScript is a very nice language and much easier. JavaScript is nice the way i have the commands separated in their own classes. Like you can type COM. and have access to all the local com ports on the pc. Or you can type UART. and have access to the ezb uart stuff. Or type Servo. and see all the servo stuff.

It's nice that way:)

I would have deleted ezscript in ARC if there weren't so many projects depending on it. PTP had mentioned a translator from ezscript to javascript, but i did consider it... however, it'd be more work than its worth and may not actually work fully lol
#18  
Hi DJ

I played a lil with EZ-Script tonight (to playing PC sounds)

Seems pretty cool to me, I tried pointing to filename, and using ControlCommand pointing to sounds loaded in the Soundboard PC. I'll stick with the Soundboard way for ease of testing/changing sounds. Got me pretty excited actually lol :-) 
I can hear you laughing now - Noob! lol

I guess I should look into learning java (recommended by a pro) :-)
but us old farts dont learn as quick as we use too :-(

Thanks again for your help and advice *love**love*
#19   — Edited
I'm glad you are making progress. I totally understand the thrill of getting something like this to work and respond to your commands. It's neat to see something move or make noise that you created. Keep coming back and sharing what you're up to. 

DJ, I can only imagine the work that would go into a EZ Script to Java Script conversion tool. I don't blame you for not wanting to undertake such a chore and especially if you don't know if it would even work 100%. God (and you) only knows what is going on behind the curtain of EZ Script. If there were such a tool it would help make learning JavaScript (for us stuck in EZ Script) a lot quicker and easier.  I do want to learn and need to find a good place for the computer language functional  illiterate like me to get started.
Synthiam
#20  
It’ll be important for everyone to know that ARC is JavaScript, not Java. Those are incredibly different things. If you’re going to learn java, it’s not JavaScript.:)

You can play the soundboard with JavaScript and audio files as well. It’s the same functionality, just with more features and much much faster. Over 10x faster:)

but, as I said, ezscript isn’t going away anytime soon so you can continue using it - don’t be surprised if you come across weird legacy bugs... I mean features haha
Synthiam
#22   — Edited
Hahah - oh my. I read that article and it certainly wouldn't help you. That article really didn't do anything to explain the differences. It really described "what the programming languages can do". And of course, all programming languages can do the same thing, so that's useless information.

What is a programming language
A programming language provides you the ability to create a list instructions and operations. The computer executes the instructions in a linear list from top to bottom. If there's an instruction that loops, it continues to run those instructions within the loop until a condition is met. It's that simple. If the instruction is a condition (i.e. IF X = 1), then the instructions within that condition are executed.

How Do They Differ
The difference in the name has to do with the syntax. Just like the syntax between german, english and polish. All of those languages have words for different things, but those words are different. That's the same as programming languages. Talking about C++ and C, even though they both have C in their name, use different words for things. The same applies to JavaScript and Java. The language itself uses different words for instructions, and different formats. The only reason Java and JavaScript have similar names is from a legacy coincidental scenario that happened a long time ago and is irrelevant to how they work.

It's That Easy
It's seriously simple as just a different language of words. Just like a real spoken language. That's why they're called PROGRAMMING LANGUAGES. Because it's a language, with words :). The words are different per language.