Page 1 of 1

Robot vio-trom-tar instrument

Posted: 01 Jun 2011, 13:04
by themindstormman
I am currently making an instument for music class. it rocks. it has 4 notes, a metronome and automatic playing. it is a mix of a violin, trombone and guitar. the only issue is that it takes up all my file space. how do i convert nxt-g programs to nxc? and the reason i had touse nxt-g is
1) it was a team project and the other person is'nt very techy.
2) i don't know if nxc has a sound editor.
my questions are does nxc have a sound editor and how do i convert nxt-g programs to nxc?

Re: Robot vio-trom-tar instrument

Posted: 01 Jun 2011, 16:02
by h-g-t
There is no direct way to convert NXT-G to NXC.

However, once you have created a program in one language you have done the hardest part, which is to define the logic. All you have to do is look through the NXC commands to find those equivalent to whatever the NXT-G blocks are doing.

The worst bit is learning the new conventions (data types, commands, etc) but after that it is relatively simple.

There are plenty of examples, both in the Bricx Command Center and the guides found on the 'net. If you get stuck on a particular problem there is also plenty of help available through this site.

I put off changing over but now wish I had done it earlier as NXC is much easier to use as well as offering more functions.

Re: Robot vio-trom-tar instrument

Posted: 02 Jun 2011, 09:03
by timpattinson
Yes, NXC can convert sounds. It cannot edit them though.
To edit sounds, use Audacity: http://audacity.sourceforge.net/
or the built-in sound editor in nxt-g
Sound conversion:
soundediting.GIF
soundediting.GIF (3.85 KiB) Viewed 5056 times