EXCITING ARDCORE NEWS---NEW SKETCH TOO

Discussion and Support for our Atmospheric Modification Devices.

Moderators: Kent, loss1234

Post Reply
loss1234
Wiggling with Experience
Posts: 304
Joined: Sat Sep 12, 2009 11:29 pm

EXCITING ARDCORE NEWS---NEW SKETCH TOO

Post by loss1234 » Thu Mar 14, 2013 9:31 pm

I have been diving back into Ardcore related programming and planning again. I am pretty sure I will SOON BE RELEASING THE EURO-RACK ARDCORE GATE/TRIG EXPANDER MODULE...yes we have found a way to do it.

I said it wasnt going to happen BUT I think people want it so.....


BUT in more immediate news...I have stumbled upon a wonderful, open-source library for Arduino called MOZZI...AND these people have gone to the trouble of making really nice sounding filters, OSCILLATORS, etc and they are all open, and we can use them in ardcore patches! in fact, tonight I found a sketch which used a MOZZI FILTER and I manipulated it just enough to work with 4 knobs and jack D0 as the output!


So try it out...and google MOZZI. its basically a zip file full of libraries that you put in your libraries folder and then you learn how to call them, etc.

I THINK IT WILL MEAN A LOT OF NEW AUDIO BASED SKETCHES FOR THE ARDCORE!! GOOD SOUNDING STUFF!


by the way, for this code to work, i think you need to remove the FILTER tabs, and just use the MOZZI library in your libraries directory...email if you get stuck
anyway, try this sketch. if it doesnt work, you might need to put the H and CPP files in your LIBRARIES directory in your sketchbook...let me know
You do not have the required permissions to view the files attached to this post.
Last edited by loss1234 on Sat Mar 16, 2013 12:00 pm, edited 1 time in total.

User avatar
Matos
Modular masturbator
Posts: 3779
Joined: Tue Jul 05, 2011 4:03 am

Post by Matos » Thu Mar 14, 2013 9:45 pm

oh yeah!!! i want an expander por favor señor. About to test this sketch now. where's that pesky cable now.... :doh:

User avatar
mckenic
pew!pew!pew!kthnxbye!
Posts: 6364
Joined: Fri Aug 06, 2010 8:05 pm
Location: Limerick, Ireland

Post by mckenic » Thu Mar 14, 2013 9:57 pm

:yay:

Great news on the expander! I really can see 2 Ardcores in my future... TBH there isn't another module I'm lusting after quite as much! Turing expander, A-199 & 2 Ardcores then I think I'm done!!!

:yay: :tu:

User avatar
AsceticUnderground
Common Wiggler
Posts: 138
Joined: Sun Nov 25, 2012 9:22 pm
Location: London
Contact:

Post by AsceticUnderground » Fri Mar 15, 2013 7:29 am

fantastic news :D i cant wait to get one of those expanders, definitely opens up a lot of possibility.
That library looks cool as well, i'll have to have a play about with it.

User avatar
ikkini
Veteran Wiggler
Posts: 677
Joined: Wed May 16, 2012 3:13 pm
Location: Angers - France

Post by ikkini » Sat Mar 16, 2013 10:58 am

:goo: :goo: :goo:

loss1234
Wiggling with Experience
Posts: 304
Joined: Sat Sep 12, 2009 11:29 pm

Post by loss1234 » Sat Mar 16, 2013 11:59 am

well last night I was working with a prototype of the expander.

my thoughts so far

1. it should have two extra analog inputs (jacks and pots)
2. it should have the 8 bits as separate outs.

Pin 11, the most commonly used pin for non-dac based arduino sketches, should have its own extra out with a very basic filter for PWM audio.

it should take up as little HP as possible.

Sound good?

User avatar
mckenic
pew!pew!pew!kthnxbye!
Posts: 6364
Joined: Fri Aug 06, 2010 8:05 pm
Location: Limerick, Ireland

Post by mckenic » Sat Mar 16, 2013 8:24 pm

Sounds very good indeed!!!

Exciting times!

User avatar
AsceticUnderground
Common Wiggler
Posts: 138
Joined: Sun Nov 25, 2012 9:22 pm
Location: London
Contact:

Post by AsceticUnderground » Wed Mar 20, 2013 6:04 pm

That sounds like a great plan for the expander, im really excited about this. The one thing i wish the ardcore did was negative voltage out, could you do that with your pin 11 expander plan? If so this will be the best module ever (for a geek like me)

Inspired by your discovery of mozzi i made this experimental lfo, it uses some of the mozzi Oscil code to do some pretty cool stuff, reset on the clock input, speed on a2, fm (kind of, if you have a scope you could get this right but i dont have an otool yet so i do what i can :P It makes some groovy shapes though) on a3. As with all the stuff i've done its experimental and not really perfect but you can get some really cool shapes out of it to mod things with, its really quite a useful sketch, it could do with some more waveforms etc..... but whatever :P Also the big issue is cos it uses mozzi theres some output on the digital pins we dont want, i dont have time to edit their code to get rid of this sadly so no EOR trigger which would have been nice. but still the dac out does the good stuff for us.

You'll need mozzi installed in your arduino software to run it though (i didnt really want to distribute their code on my github) http://sensorium.github.com/Mozzi/

phew! list of caveats over, if you can stomach all that though give it a try, you shouldnt be disappointed (and if you are, its free! so suck it up)

you can get it here, its ASCTard005 https://github.com/asceticunderground/ASCT-Ardcore

let me know what y'all think

loss1234
Wiggling with Experience
Posts: 304
Joined: Sat Sep 12, 2009 11:29 pm

Post by loss1234 » Wed Mar 20, 2013 7:22 pm

very very cool
!!!!!
a couple things

id comment out your serial read

also...he has some fast analog read functions in the library called

mozzi_analog.h which seem to help a lot

if you dont mind, i will email this to the mozzi guy and see if he can recommend any optimizations

I must say i am really impressed that you figured out how to get audio routed to the DAC using his libraries.

his filter library actually sounds really really good, BUT as of yet I cant figure out how to make it process external audio, only the oscil players

but still...LOTS AND LOTS of potential to MOZZI


also...as I have started working on the expander, i have been able to hear it on ONE PWM out with filtering...it sounds quite good


anyway...negative voltages? on the output? you mean a dc offset applied to the out of the arcore?


or do you mean the in? the in would require more work


comments?


thanks

User avatar
AsceticUnderground
Common Wiggler
Posts: 138
Joined: Sun Nov 25, 2012 9:22 pm
Location: London
Contact:

Post by AsceticUnderground » Wed Mar 20, 2013 8:44 pm

Glad you like the sketch Dan, your totally right about the serial read, what a dingus I am! I've recommitted it to the git with it commented out now, thanks for letting me know.

I'll check out the analog read functions as well, i really knocked this together in a couple of hours to see if i could do something fun with mozzi so theres a million improvements that could be made to it, feel free to pass it on to the guy who made mozzi if you want, im sure he can suggest some ways to make it a much better sketch. As usual time is the killer, if only i didnt have a job :P

Getting the oscil to the dac wasnt too hard as all the tables are just arrays of -127 to 127 values and the oscil functions basically just read those out at a phase position so with a little scaling they are good to go for the ardcore.

I've not tried this yet but looking at the mozzi state variable filter sketch you should be able to do something similar, this is pure speculation as its too late at night to start more programming but if you look at this line in the update audio loop of the state variable filter example

return svf.next(aNoise.next())>>3;

you should be able to alter it to be

$var =svf.next(ardcoreinput scaled to -127 to 127) >>3
(maybe you dont need the bitshifting at the end, i dunno what scale svf outputs) and then you could rescale $var so you get to between 0 and 255 and send it to the DAC. As i say i've not tested it so i could be COMPLETELY off base here but thats what springs to mind when looking at it (You also could move it to the loop rather than update audio)

As for the inputs/outputs, yeah both please, i always end up scaling things, offsetting etc..... before and after i send stuff into the ardcore and it'd be nice to free up my cvtools for some other duties :P Its not like it kills me not to have it, but i might as well shout out my wishlist if the expander is coming ;)

User avatar
numan7
the most autistic amongst us
Posts: 6431
Joined: Wed Nov 25, 2009 9:09 pm

Post by numan7 » Wed Mar 20, 2013 9:07 pm

loss1234 wrote:well last night I was working with a prototype of the expander.

my thoughts so far

1. it should have two extra analog inputs (jacks and pots)
2. it should have the 8 bits as separate outs.

Pin 11, the most commonly used pin for non-dac based arduino sketches, should have its own extra out with a very basic filter for PWM audio.

it should take up as little HP as possible.

Sound good?
:sb: sounds wonderful, snazzydan!

cheers
“i'm telling you my dear that it can't happen here because i've been checking it out. i've been checking it out for a couple of days...”

User avatar
FSK1138
Common Wiggler
Posts: 139
Joined: Mon Jan 30, 2012 7:15 pm
Location: MONTREAL

expander

Post by FSK1138 » Mon Mar 25, 2013 9:12 pm

i really need this expander - :hyper:
the ardcore just keeps getting better -

i will be getting another ardcore so make that 2 expanders :love: :love:

User avatar
Neo
Ultra Wiggler
Posts: 906
Joined: Wed Jul 06, 2011 2:22 am
Location: Bogota

Post by Neo » Tue Mar 26, 2013 10:03 pm

loss1234 wrote:well last night I was working with a prototype of the expander.

my thoughts so far

1. it should have two extra analog inputs (jacks and pots)
2. it should have the 8 bits as separate outs.

Pin 11, the most commonly used pin for non-dac based arduino sketches, should have its own extra out with a very basic filter for PWM audio.

it should take up as little HP as possible.

Sound good?
Sounds good,
Extra analog inputs would be aaaawwwwwwwwwwwweeesssooome!
A built in filter for pwm out would be great too (I'm trying to make some DIY ones).
The most useful expansion for me though would be a second 8 bit out, or (now I'm being completely ridiculous) a 16 bit out. Probably not practical but just thought I'd mention it.

Post Reply

Return to “SNAZZY FX”