NXT-G, NXC, I2C..What to use to make fastest operations?
Posted: 04 Dec 2011, 13:39
Hi,
I'm actually working on my second NXT musical project: a LEGO musical workstation.
It would be made of two sections:
First Section: a sample based drum machine,very close to my NXT-606.
NXT-606 is a Beat sequencer:
-16 steps sequencer, real time editing.
-memory: 96 measures
-24 sounds, 8bits quality (Drumbass, Snare, Fx,etc..)
-Tempo and Groove functions.
- Jack 6,35mm audio output. (NXT board hacked)
NXT-606 program was made with NXT-G.
If you don't know this COOL project, take a look to this video:
http://www.youtube.com/watch?v=CilCI2kSXnA
Second Section: a polyphonic synthetizer using one or several NXT SuperPro Prototype boards.
Hitechnic SuperPro prototype board can generate many waveforms as a synth. It can be use as OSC(audible frequency) and LFO(low frequency oscillator) to control many things: Voltage Controled Amplifier, Voltage Controled Filter, etc...
I have to say I have a lot of ideas concerning Hitechnic boards and audio control process.
My questions:
-I always use NXT-G, it is friendly to me. I like to think about programing without knowledge of how to use NXC, java, basic, etc... In fact those things are chinese for me.
BUT do my program would operate faster by using another thing than NXT-G ?? Which programming language is the fastest ??
-It seems I2C communication between Hitechnic SuperPro board and NXT is quite slow by using NXT-G. I have not test with card but it seems SuperPro NXT-G block takes 45ms when LEGO Proximity sensor block(another I2C device) takes only 6ms to operate.
Which laguage is the best to reduce I2C operation time?
-What are your ideas about all this?
Thanks.
Peter.
I'm actually working on my second NXT musical project: a LEGO musical workstation.
It would be made of two sections:
First Section: a sample based drum machine,very close to my NXT-606.
NXT-606 is a Beat sequencer:
-16 steps sequencer, real time editing.
-memory: 96 measures
-24 sounds, 8bits quality (Drumbass, Snare, Fx,etc..)
-Tempo and Groove functions.
- Jack 6,35mm audio output. (NXT board hacked)
NXT-606 program was made with NXT-G.
If you don't know this COOL project, take a look to this video:
http://www.youtube.com/watch?v=CilCI2kSXnA
Second Section: a polyphonic synthetizer using one or several NXT SuperPro Prototype boards.
Hitechnic SuperPro prototype board can generate many waveforms as a synth. It can be use as OSC(audible frequency) and LFO(low frequency oscillator) to control many things: Voltage Controled Amplifier, Voltage Controled Filter, etc...
I have to say I have a lot of ideas concerning Hitechnic boards and audio control process.
My questions:
-I always use NXT-G, it is friendly to me. I like to think about programing without knowledge of how to use NXC, java, basic, etc... In fact those things are chinese for me.
BUT do my program would operate faster by using another thing than NXT-G ?? Which programming language is the fastest ??
-It seems I2C communication between Hitechnic SuperPro board and NXT is quite slow by using NXT-G. I have not test with card but it seems SuperPro NXT-G block takes 45ms when LEGO Proximity sensor block(another I2C device) takes only 6ms to operate.
Which laguage is the best to reduce I2C operation time?
-What are your ideas about all this?
Thanks.
Peter.