Hello

First time on the site? Say hello here!
User avatar
BlueHell
Newbie
Posts: 1
Joined: Sun Nov 20, 2016 3:43 am

Hello

Postby BlueHell » Sun Nov 20, 2016 4:19 am

Hello

Just bought me a https://www.xmos.com/support/boards?product=18334 .. and this forum seemed to be not a bad place .. so signed up for it.

I don't understand fuck of it all, but at least I've got me some nicely blinking LEDs on it now - after all it's Christmas soon :-)

Hmm .. can't find any code tag things .. ok .. as text then :

-- -- -- --

#include <platform.h>
#include <xs1.h>
#include <timer.h>

on tile [ 1] : out port row = XS1_PORT_4C;
on tile [ 1] : out port col = XS1_PORT_4D;

#define TIME 1

int seed = 123874;

int random_or_maybe_not_so( void)
{
seed = ( seed * 1108122346 + 12543) >> ((( seed & 1) == 1) * ( seed & 0x0f));

return seed;
}


void task( void)
{
int i = 0;
int c = 0;
int r = 0;
int p;

while( 1)
{
col <: ( c & ( i * 13)) & 0x0f;
row <: ( r | ( i * 37)) & 0x0f;
p = ( random_or_maybe_not_so() & 0x7f) + 1;
delay_milliseconds( TIME * p);
row <: ~ r;
p = ( random_or_maybe_not_so() & 0x7f) + 1;
delay_milliseconds( TIME * p);

if(( i % 5) == 0)
{
c ++;
}

if(( i % 11) == 0 )
{
r ++;
}

if(( i % 17) == 0 )
{
r >>= 1;
}

if(( i % 131) == 0 )
{
c >>= 1;
}

i ++;
}
}

int main( void)
{
par
{
on tile [ 1] : task();
}

return 0;
}

-- -- -- --

Still here? great! What I would like to accomplish is something like the Windows modular soft synth I've made : http://bluehell.electro-music.com/modules/index.php but the architecture is a bit strange to me and so is the platform support right now .. for one there are libs and modules .. I've found some xmos based synthesizer software needing modules that I do not seem to have (for i2s), but that was for another platform .. puzzles . but that's ok.

After receiving the the evaluation kit the first thing I did was to break the debug thingie, the USB connector on it was soldered badly and broke off immediately ... had that fixed at work .. some golden hands there, myself I'm too bad sighted to fix stuff like that .. anyways . .this is not a work thing for me but a hobby.

Jan.
User avatar
infiniteimprobability
XCore Legend
Posts: 1049
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Tue Nov 22, 2016 2:23 pm

Hello

Just bought me a https://www.xmos.com/support/boards?product=18334 .. and this forum seemed to be not a bad place .. so signed up for it.

I don't understand fuck of it all, but at least I've got me some nicely blinking LEDs on it now - after all it's Christmas soon :-)


Welcome. Great - blinking LEDs. Nothing more more seasonal than that!

Hmm .. can't find any code tag things .. ok .. as text then :

Code: Select all

How about this?

With spaces it's [ c o d e ] and [ / c o d e ]

Still here? great! What I would like to accomplish is something like the Windows modular soft synth I've made : http://bluehell.electro-music.com/modules/index.php but the architecture is a bit strange to me and so is the platform support right now .. for one there are libs and modules .. I've found some xmos based synthesizer software needing modules that I do not seem to have (for i2s), but that was for another platform .. puzzles . but that's ok.

That looks like a nice project. Using CSP with lots of distributed server tasks each doing something (mixer, voice, mod, filter...) could be a nice way to do such things. The only thing is, you may run out of cores quite quickly. So you could consider using combinable and distributable tasks, which are software mechanisms to allow you to still use the programming idom, except not be limited by the number of physical threads in a chip.

https://www.xmos.com/download/private/a ... 1.1.1rc0.a).pdf

xmos based synthesizer software

Where did you find that? Which module do you need - if it's the later library based modules then the tools should automatically attempt to download it.

After receiving the the evaluation kit the first thing I did was to break the debug thingie, the USB connector on it was soldered badly and broke off immediately ... had that fixed at work .. some golden hands there, myself I'm too bad sighted to fix stuff like that .. anyways . .this is not a work thing for me but a hobby.

Oh dear - I have heard of that happen but have not personally managed to do that (although I have ripped off a few 3.5mm jacks which was annoying. Easy to fix though)

Anyhow, hope you have fun with it. There are loads of resources and this is a good place to share ideas.

Who is online

Users browsing this forum: No registered users and 4 guests